1jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options=$.extend({},options);options.expires=-1}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000))}else{date=options.expires}expires='; expires='+date.toUTCString()}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('')}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=cookies[i].trim();if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}}return cookieValue}};(function(factory){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof exports==="object"&&typeof require==="function"){factory(require("jquery"))}else{factory(jQuery)}})(function($){"use strict";(()=>{var $2=null;function setJQuery(jq){ $2=jq}var utils={escapeRegExChars(value){return value.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode(containerClass){const div=document.createElement("div");div.className=containerClass;div.style.position="absolute";div.style.display="none";return div}};var keys={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};function lookupFilter(suggestion,_originalQuery,queryLowerCase){return suggestion.value.toLowerCase().indexOf(queryLowerCase)!==-1}function transformResult(response){return typeof response==="string"?JSON.parse(response):response}function formatResult(suggestion,currentValue){if(!currentValue){const span=document.createElement("span");span.textContent=suggestion.value;return span.innerHTML}const pattern="("+utils.escapeRegExChars(currentValue)+")";return suggestion.value.replace(new RegExp(pattern,"gi"),"<strong>$1</strong>").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")}function formatGroup(_suggestion,category){const div=document.createElement("div");div.className="autocomplete-group";div.textContent=category;return div.outerHTML}var noop=()=>{};var defaults={ajaxSettings:{},autoSelectFirst:false,appendTo:"body",width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult,formatGroup,zIndex:9999,type:"GET",noCache:false,onSearchStart:noop,onSearchComplete:noop,onSearchError:noop,preserveInput:false,containerClass:"autocomplete-suggestions",tabDisabled:false,dataType:"text",triggerSelectOnValidInput:true,preventBadQueries:true,lookupFilter,paramName:"query",transformResult,showNoSuggestionNotice:false,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:false};var _Autocomplete=class _Autocomplete{constructor(el,options){this.suggestions=[];this.badQueries=[];this.selectedIndex=-1;this.cachedResponse={};this.onChangeTimeout=null;this.isLocal=false;this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};this.hint=null;this.hintValue="";this.selection=null;this.currentRequest=null;this.element=el;this.el=$2(el);this.currentValue=el.value;this.options=$2.extend(true,{},_Autocomplete.defaults,options);this.initialize();this.setOptions(options)}initialize(){const self=this;const suggestionSelector=`.${this.classes.suggestion}`;const selected=this.classes.selected;const options=this.options;this.element.setAttribute("autocomplete","off");this.$noSuggestionsContainer=$2('<div class="autocomplete-no-suggestion"></div>').html(options.noSuggestionNotice);this.noSuggestionsContainer=this.$noSuggestionsContainer.get(0);this.suggestionsContainer=_Autocomplete.utils.createNode(options.containerClass);this.$container=$2(this.suggestionsContainer);this.$container.appendTo(options.appendTo||"body");if(options.width!=="auto"){this.$container.css("width",options.width)}const container=this.$container;container.on("mouseover.autocomplete",suggestionSelector,function(){self.activate($2(this).data("index"))});container.on("click.autocomplete",suggestionSelector,function(){self.select($2(this).data("index"))});container.on("mouseout.autocomplete",()=>{this.selectedIndex=-1;container.children(`.${selected}`).removeClass(selected)});container.on("click.autocomplete",()=>{if(this.blurTimeoutId!==void 0){clearTimeout(this.blurTimeoutId)}});this.fixPositionCapture=()=>{if(this.visible){this.fixPosition()}}; $2(window).on("resize.autocomplete",this.fixPositionCapture);
1this.el.on("keydown.autocomplete",(e)=>this.onKeyPress(e));this.el.on("keyup.autocomplete",(e)=>this.onKeyUp(e));this.el.on("blur.autocomplete",()=>this.onBlur());this.el.on("focus.autocomplete",()=>this.onFocus());this.el.on("change.autocomplete",(e)=>this.onKeyUp(e));this.el.on("input.autocomplete",(e)=>this.onKeyUp(e))}onFocus(){if(this.disabled){return}this.fixPosition();if(this.el.val().length>=this.options.minChars){this.onValueChange()}}onBlur(){const options=this.options;const query=this.getQuery(this.el.val());this.blurTimeoutId=setTimeout(()=>{this.hide();if(this.selection&&this.currentValue!==query){options.onInvalidateSelection?.call(this.element)}},200)}abortAjax(){if(this.currentRequest){this.currentRequest.abort();this.currentRequest=null}}setOptions(suppliedOptions){const options={...this.options,...suppliedOptions};this.isLocal=Array.isArray(options.lookup);if(this.isLocal){options.lookup=this.verifySuggestionsFormat(options.lookup)}options.orientation=this.validateOrientation(options.orientation,"bottom");this.$container.css({"max-height":`${options.maxHeight}px`,width:`${options.width}px`,"z-index":options.zIndex});this.options=options}clearCache(){this.cachedResponse={};this.badQueries=[]}clear(){this.clearCache();this.currentValue="";this.suggestions=[]}disable(){this.disabled=true;if(this.onChangeTimeout){clearTimeout(this.onChangeTimeout)}this.abortAjax()}enable(){this.disabled=false}fixPosition(){const $container=this.$container;const containerParent=$container.parent().get(0);if(containerParent!==document.body&&!this.options.forceFixPosition){return}let orientation=this.options.orientation;const containerHeight=$container.outerHeight()??0;const height=this.el.outerHeight()??0;const offset=this.el.offset()??{top:0,left:0};const styles={top:offset.top,left:offset.left};if(orientation==="auto"){const viewPortHeight=$2(window).height()??0;const scrollTop=$2(window).scrollTop()??0;const topOverflow=-scrollTop+offset.top-containerHeight;const bottomOverflow=scrollTop+viewPortHeight-(offset.top+height+containerHeight);orientation=Math.max(topOverflow,bottomOverflow)===topOverflow?"top":"bottom"}styles.top+=orientation==="top"?-containerHeight:height;if(containerParent!==document.body&&containerParent!==void 0){const opacity=$container.css("opacity");if(!this.visible){ $container.css("opacity",0).show()}const parentOffsetDiff=$container.offsetParent().offset()??{top:0,left:0};styles.top-=parentOffsetDiff.top;styles.top+=containerParent.scrollTop;styles.left-=parentOffsetDiff.left;if(!this.visible){ $container.css("opacity",opacity).hide()}}if(this.options.width==="auto"){styles.width=`${this.el.outerWidth() ?? 0}px`} $container.css(styles)}isCursorAtEnd(){const valLength=this.el.val().length;const{selectionStart}=this.element;return typeof selectionStart==="number"?selectionStart===valLength:true}onKeyPress(e){if(!this.disabled&&!this.visible&&e.which===keys.DOWN&&this.currentValue){this.suggest();return}if(this.disabled||!this.visible){return}switch(e.which){case keys.ESC:this.el.val(this.currentValue);this.hide();break;case keys.RIGHT:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case keys.TAB:if(this.hint&&this.options.onHint){this.selectHint();return}if(this.selectedIndex===-1){this.hide();return}this.select(this.selectedIndex);if(this.options.tabDisabled===false){return}break;case keys.RETURN:if(this.selectedIndex===-1){this.hide();return}this.select(this.selectedIndex);break;case keys.UP:this.moveUp();break;case keys.DOWN:this.moveDown();break;default:return}e.stopImmediatePropagation();e.preventDefault()}onKeyUp(e){if(this.disabled){return}if(e.which===keys.UP||e.which===keys.DOWN){return}if(this.onChangeTimeout){clearTimeout(this.onChangeTimeout)}if(this.currentValue!==this.el.val()){this.findBestHint();if(this.options.deferRequestBy>0){this.onChangeTimeout=setTimeout(()=>this.onValueChange(),this.options.deferRequestBy)}else{this.onValueChange()}}}onValueChange(){if(this.ignoreValueChange){this.ignoreValueChange=false;return}const options=this.options;const value=this.el.val();const query=this.getQuery(value);if(this.selection&&this.currentValue!==query){this.selection=null;options.onInvalidateSelection?.call(this.element)}if(this.onChangeTimeout){clearTimeout(this.onChangeTimeout)}this.currentValue=value;this.selectedIndex=-1;if(options.triggerSelectOnValidInput&&this.isExactMatch(query)){this.select(0);return}if(query.length<options.minChars){this.hide()}
1else{this.getSuggestions(query)}}isExactMatch(query){const{suggestions}=this;return suggestions.length===1&&suggestions[0].value.toLowerCase()===query.toLowerCase()}getQuery(value){const{delimiter}=this.options;if(!delimiter){return value}const parts=value.split(delimiter);return parts[parts.length-1].trim()}getSuggestionsLocal(query){const options=this.options;const queryLowerCase=query.toLowerCase();const filter=options.lookupFilter;const limit=parseInt(options.lookupLimit,10);const lookup=options.lookup;const matched=lookup.filter((suggestion)=>filter(suggestion,query,queryLowerCase));return{suggestions:limit&&matched.length>limit?matched.slice(0,limit):matched}}getSuggestions(q){const options=this.options;let serviceUrl=options.serviceUrl;let response;let cacheKey;options.params[options.paramName]=q;if(options.onSearchStart.call(this.element,options.params)===false){return}const params=options.ignoreParams?null:options.params;if(typeof options.lookup==="function"){options.lookup(q,(data)=>{const suggestions=this.verifySuggestionsFormat(data.suggestions);this.suggestions=suggestions;options.onSearchComplete.call(this.element,q,suggestions);this.suggest()});return}if(this.isLocal){response=this.getSuggestionsLocal(q)}else{if(typeof serviceUrl==="function"){serviceUrl=serviceUrl.call(this.element,q)}cacheKey=`${serviceUrl}?${$2.param(params ?? {})}`;response=this.cachedResponse[cacheKey]}if(response&&Array.isArray(response.suggestions)){this.suggestions=response.suggestions;options.onSearchComplete.call(this.element,q,response.suggestions);this.suggest()}else if(!this.isBadQuery(q)){this.abortAjax();const ajaxSettings={url:serviceUrl,data:params??void 0,type:options.type,dataType:options.dataType,...options.ajaxSettings};this.currentRequest=$2.ajax(ajaxSettings).done((data)=>{this.currentRequest=null;const result=options.transformResult(data,q);result.suggestions=this.verifySuggestionsFormat(result.suggestions);options.onSearchComplete.call(this.element,q,result.suggestions);this.processResponse(result,q,cacheKey)}).fail((jqXHR,textStatus,errorThrown)=>{options.onSearchError.call(this.element,q,jqXHR,textStatus,errorThrown)})}else{options.onSearchComplete.call(this.element,q,[])}}isBadQuery(q){if(!this.options.preventBadQueries){return false}return this.badQueries.some((bad)=>q.indexOf(bad)===0)}hide(){if(this.options.onHide&&this.visible){this.options.onHide.call(this.element,this.$container)}this.visible=false;this.selectedIndex=-1;if(this.onChangeTimeout){clearTimeout(this.onChangeTimeout)}this.$container.hide();this.onHint(null)}groupSuggestionsByCategory(suggestions,key){const groups=new Map();for(const s of suggestions){const cat=s.data[key];const arr=groups.get(cat);if(arr){arr.push(s)}else{groups.set(cat,[s])}}return Array.from(groups.values()).flat()}suggest(){if(!this.suggestions.length){if(this.options.showNoSuggestionNotice){this.noSuggestions()}else{this.hide()}return}const options=this.options;const{groupBy,formatResult:formatResultFn,beforeRender}=options;const value=this.getQuery(this.currentValue);const className=this.classes.suggestion;const classSelected=this.classes.selected;const container=this.$container;if(options.triggerSelectOnValidInput&&this.isExactMatch(value)){this.select(0);return}if(groupBy){this.suggestions=this.groupSuggestionsByCategory(this.suggestions,groupBy)}let category;const formatGroupFn=(suggestion)=>{const currentCategory=suggestion.data[groupBy];if(category===currentCategory){return""}category=currentCategory;return options.formatGroup(suggestion,category)};const html=this.suggestions.map((suggestion,i)=>{const group=groupBy?formatGroupFn(suggestion):"";return`${group}<div class="${className}" data-index="${i}">${formatResultFn(suggestion, value, i)}</div>`}).join("");this.adjustContainerWidth();this.$noSuggestionsContainer.detach();container.html(html);beforeRender?.call(this.element,container,this.suggestions);this.fixPosition();container.show();if(options.autoSelectFirst){this.selectedIndex=0;container.scrollTop(0);container.children(`.${className}`).first().addClass(classSelected)}this.visible=true;this.findBestHint()}noSuggestions(){const{beforeRender}=this.options;const container=this.$container;this.adjustContainerWidth();
1this.$noSuggestionsContainer.detach();container.empty().append(this.$noSuggestionsContainer);beforeRender?.call(this.element,container,this.suggestions);this.fixPosition();container.show();this.visible=true}adjustContainerWidth(){const{width}=this.options;if(width==="auto"){const w=this.el.outerWidth()??0;this.$container.css("width",w>0?w:300)}else if(width==="flex"){this.$container.css("width","")}}findBestHint(){const value=this.el.val().toLowerCase();if(!value){return}const bestMatch=this.suggestions.find((s)=>s.value.toLowerCase().indexOf(value)===0)??null;this.onHint(bestMatch)}onHint(suggestion){const{onHint:onHintCallback}=this.options;const hintValue=suggestion?this.currentValue+suggestion.value.substr(this.currentValue.length):"";if(this.hintValue!==hintValue){this.hintValue=hintValue;this.hint=suggestion;onHintCallback?.call(this.element,hintValue)}}verifySuggestionsFormat(suggestions){if(suggestions.length&&typeof suggestions[0]==="string"){return suggestions.map((value)=>({value,data:null}))}return suggestions.map((s)=>typeof s.value==="string"?s:{...s,value:String(s.value)})}validateOrientation(orientation,fallback){const normalized=(orientation||"").trim().toLowerCase();if(normalized==="auto"||normalized==="top"||normalized==="bottom"){return normalized}return fallback}processResponse(result,originalQuery,cacheKey){const options=this.options;result.suggestions=this.verifySuggestionsFormat(result.suggestions);if(!options.noCache){this.cachedResponse[cacheKey]=result;if(options.preventBadQueries&&!result.suggestions.length&&originalQuery){this.badQueries.push(originalQuery)}}if(originalQuery!==this.getQuery(this.currentValue)){return}this.suggestions=result.suggestions;this.suggest()}activate(index){const selected=this.classes.selected;const container=this.$container;const children=container.find(`.${this.classes.suggestion}`);container.find(`.${selected}`).removeClass(selected);this.selectedIndex=index;if(this.selectedIndex!==-1&&children.length>this.selectedIndex){const activeItem=children.get(this.selectedIndex); $2(activeItem).addClass(selected);return activeItem}return null}selectHint(){this.select(this.suggestions.indexOf(this.hint))}select(i){this.hide();this.onSelect(i)}moveUp(){if(this.selectedIndex===-1){return}if(this.selectedIndex===0){this.$container.children(`.${this.classes.suggestion}`).first().removeClass(this.classes.selected);this.selectedIndex=-1;this.ignoreValueChange=false;this.el.val(this.currentValue);this.findBestHint();return}this.adjustScroll(this.selectedIndex-1)}moveDown(){if(this.selectedIndex===this.suggestions.length-1){return}this.adjustScroll(this.selectedIndex+1)}adjustScroll(index){const activeItem=this.activate(index);if(!activeItem){return}const heightDelta=$2(activeItem).outerHeight()??0;const offsetTop=activeItem.offsetTop;const container=this.$container;const upperBound=container.scrollTop()??0;const lowerBound=upperBound+this.options.maxHeight-heightDelta;if(offsetTop<upperBound){container.scrollTop(offsetTop)}else if(offsetTop>lowerBound){container.scrollTop(offsetTop-this.options.maxHeight+heightDelta)}if(!this.options.preserveInput){this.ignoreValueChange=true;this.el.val(this.getValue(this.suggestions[index].value))}this.onHint(null)}onSelect(index){const onSelectCallback=this.options.onSelect;const suggestion=this.suggestions[index];this.currentValue=this.getValue(suggestion.value);if(this.currentValue!==this.el.val()&&!this.options.preserveInput){this.el.val(this.currentValue)}this.onHint(null);this.suggestions=[];this.selection=suggestion;onSelectCallback?.call(this.element,suggestion)}getValue(value){const{delimiter}=this.options;if(!delimiter){return value}const currentValue=this.currentValue;const parts=currentValue.split(delimiter);if(parts.length===1){return value}return currentValue.substr(0,currentValue.length-parts[parts.length-1].length)+value}dispose(){this.el.off(".autocomplete").removeData("autocomplete");if(this.fixPositionCapture){ $2(window).off("resize.autocomplete",this.fixPositionCapture)}this.$container.remove()}};_Autocomplete.defaults=defaults;_Autocomplete.utils=utils;var Autocomplete=_Autocomplete;var dataKey="autocomplete";function installAutocomplete($3){setJQuery($3); $3.Autocomplete=Autocomplete;
1 $3.fn.devbridgeAutocomplete=function(options,args){if(!arguments.length){return this.first().data(dataKey)}return this.each(function(){const inputElement=$3(this);let instance=inputElement.data(dataKey);if(typeof options==="string"){if(instance&&typeof instance[options]==="function"){instance[options](args)}}else{if(instance&&instance.dispose){instance.dispose()}instance=new Autocomplete(this,options);inputElement.data(dataKey,instance)}})};if(!$3.fn.autocomplete){ $3.fn.autocomplete=$3.fn.devbridgeAutocomplete}}installAutocomplete($)})()});"use strict";const Oc=function(){};Oc.superCall=function(className,method,context,parameters){return className.prototype[method].apply(context,parameters)};Oc.autoProxy=function(obj,proxy,properties){if(typeof(obj)=='undefined'||typeof(proxy)=='undefined'){throw new TypeError('Expected 2 object parameters, one or both are missing');};const normalizedProperties={...{ignoreList:[],ignoreInternalMethods:false,overrideMethods:false},...properties};if(normalizedProperties.ignoreInternalMethods){properties.ignoreList.push('^_')};var methodListProxy=Object.getOwnPropertyNames(Object.getPrototypeOf(proxy));const methodListApply=[];if(!normalizedProperties.overrideMethods){const methodListOrig=Object.getOwnPropertyNames(Object.getPrototypeOf(obj));const methodListDiff=OcArray.diff(methodListOrig,methodListProxy);methodListProxy=[];for(var i=0;i<methodListDiff.length;i++){const method=methodListDiff[i];if(!methodListOrig.includes(method)){methodListProxy.push(method)}}};for(var i=0;i<methodListProxy.length;++i){const methodName=methodListProxy[i];var ignore=false;for(var j=0;j<normalizedProperties.ignoreList.length;++j){const regexp=new RegExp(normalizedProperties.ignoreList[j]);if(regexp.test(methodName)){ignore=true;break}};if(!ignore){methodListApply.push(methodName)}};for(var i=0;i<methodListApply.length;++i){const proxyMethod=methodListApply[i];if(obj[proxyMethod]){continue};Object.defineProperty(obj,proxyMethod,{get:function(){if(typeof(proxy[proxyMethod])=='function'){return proxy[proxyMethod].bind(proxy)}else{return proxy[proxyMethod]}},set:function(f){proxy[proxyMethod]=f}})}};Oc._setProperty=function(property,value){console.trace('The OcComponent class now provides a "setProperty()" method. Don\'t override it with this method');if(OcDatatype.isLiteralObject(value)&&!this.propertyHandlers[property]){for(var key in value){this.setProperty([property,key].join('.'),value[key])};return}else if(Array.isArray(value)){for(var i=0;i<value.length;++i){this.setProperty(property,value[i])};return};if(typeof(this.propertyHandlers[property])=='function'){this.propertyHandlers[property].call(this,value)}};Oc.setProperties=function(obj,defaults,parameters){console.trace('Use the "__initProperties()" method of the OcComponent instance instead');if(typeof(parameters)!='object'){parameters={}};for(var property in defaults){const value=OcUtilities.define(parameters[property],defaults[property]);obj.setProperty(property,value)}};Oc.flatPromise=function(fn){return new Promise((resolve)=>{const resolver=(resolveData)=>{resolve([resolveData,null])};const rejecter=(rejectData)=>{resolve([null,rejectData])};try{fn(resolver,rejecter)}catch(e){rejecter(e)}})};Oc.flattenPromise=function(promise){return new Promise((resolve)=>{promise.then((resolveData)=>{resolve([resolveData,null])}).catch((rejectData)=>{resolve([null,rejectData])})})};Oc.createNamespaceIfNotExist=function(namespace){const namespaceParts=namespace.split('.');let currentNamespace=window;for(const namespacePart of namespaceParts){if(typeof currentNamespace[namespacePart]=='undefined'){currentNamespace[namespacePart]={}}currentNamespace=currentNamespace[namespacePart]}};Oc.getInstanceFromElement=function(element){return OcUi.getInstanceFromElement(element)};Oc.destroyEventually=function(instance){instance.events.cancelAll();instance.deferUntil(innerInstance=>{innerInstance.destroy()},{condition:'idle'})};Oc.const={compare:{comesBefore:-1,equal:0,comesAfter:1}};Oc.File=File;var defOc;(function(defOc){})(defOc||(defOc={}));Oc.Oc=Oc;var oc={};"use strict";class OcComponent{constructor(properties){let normalizedProperties={...properties};this.refID=OcBasic.generateID();const setHandler=function(obj,prop,value){const oldValue=obj[prop];obj[prop]=value;if(this.initialized&&oldValue!==value){this.__trigger__propertyChange({property:prop,value:value,oldValue:oldValue})};return true}.bind(this);this.properties=new Proxy(this.defaults().properties,{set:setHandler});this.propertyHandlers={};this.__createInterface();this.__buildInstanceStructure();this.__initialize(normalizedProperties);this.__internals.initialized=true;this.__postInitialization(properties)}defaults(){return OcComponent.defaults()}__interfaceDefinitions(){return{events:{get:this.__getEvents.bind(this)},initialized:{get:this.__getInitialized.bind(this)}}}__getEvents(){return this.__internals.events}__getInitialized(){return this.__internals.initialized}__createInterface(){const advancedPropertyDefinitions=this.__interfaceDefinitions();
1for(const[property,definition]of Object.entries(advancedPropertyDefinitions)){Object.defineProperty(this,property,definition)}}__generateInternalProperties(){return{}}__buildInstanceStructure(){let fn=(out)=>{};const doneInitializing=new Promise((resolve,reject)=>{fn=resolve});this.__internals={initialized:false,properties:this.__generateInternalProperties(),events:new OcEvents(),ocInstances:{},doneInitializing:doneInitializing,__doneInitializingResolveFunction:fn}}__initProperties(properties){if(typeof(properties)!='object'){properties={}};const defaultProperties=this.defaults().properties;for(const property of Object.keys(defaultProperties)){const value=OcUtilities.define(properties[property],defaultProperties[property]);this.__setPropertyViaPropertyHandler(property,value,value===defaultProperties[property])}}__initEvents(){this.__internals.events.listen(OcComponent.events.PROPERTY_CHANGE,this.__onSelf__propertyChange.bind(this),this.refID)}__onSelf__propertyChange(ev){}__initialize(properties){}__postInitialization(properties){}__onPropertyValueChangeHandler(instance,oldValue,newValue){this.__trigger__propertyChange({instance:this,oldValue:oldValue,property:instance.name,value:newValue})}__setPropertyViaPropertyHandler(property,value,setAsDefault){if(OcDatatype.isLiteralObject(value)&&!this.propertyHandlers[property]){for(const key of Object.keys(value)){this.__setPropertyViaPropertyHandler([property,key].join('.'),value[key],setAsDefault)};return}else if(Array.isArray(value)){for(let i=0;i<value.length;++i){this.__setPropertyViaPropertyHandler(property,value[i],setAsDefault)};return};if(typeof(this.propertyHandlers[property])=='function'){this.propertyHandlers[property].call(this,value,setAsDefault)}}__deferOnce(id,fn,condition='instant'){return OLEFA.basics.deferOnce(this.refID+id,fn.bind(this,this),this.isDestroyed.bind(this),condition)}__recursiveDestroy(e){for(const i of Object.keys(e)){if(e[i]instanceof OcComponent){e[i].destroy();delete e[i]}else if(OcDatatype.is('object',e[i])||Array.isArray(e[i])){this.__recursiveDestroy(e[i])}}}exportProperties(){let exportData={};for(const[key,value]of Object.entries(this.properties)){if(value instanceof OcComponent){exportData[key]=value.exportProperties()}else{exportData[key]=value}};return exportData}importProperties(original,ignoreProperties=[]){if(!(original instanceof this.constructor)){OLEFA.log.warn('Not of the same type',arguments);return};for(const entry of Object.entries(original.exportProperties())){const[property,value]=entry;if(ignoreProperties.includes(property)){continue};this.setProperty(property,value)}}setProperty(property,value){const propertyDescriptor=Object.getOwnPropertyDescriptor(this,property);if(propertyDescriptor?.set){propertyDescriptor.set(value)}}getProperty(property){const propertyDescriptor=Object.getOwnPropertyDescriptor(this,property);if(!propertyDescriptor?.get){return undefined}return propertyDescriptor.get()}isDestroyed(){return Object.isFrozen(this)}defer(fn,waitForFnBeforeResolve){return OcUtilities.defer(fn.bind(this,this),this.isDestroyed.bind(this),waitForFnBeforeResolve)}deferUntil(fn,parameters){const normalizedParameters={...parameters,cancelExecution:this.isDestroyed.bind(this)};return OcUtilities.deferUntil(fn.bind(this,this),normalizedParameters)}bindTo(remoteInstance){if(!(remoteInstance instanceof this.constructor)){return};this.unbind();this.__internals.remoteSource=remoteInstance;this.importProperties(remoteInstance);remoteInstance.events.listen(OcComponent.events.DESTROY,()=>{this.unbind()},this.refID).listen(OcComponent.events.PROPERTY_CHANGE,(ev)=>{this.setProperty(ev.property,ev.value)},this.refID)}unbind(){if(!this.__internals.remoteSource){return};const remoteSource=this.__internals.remoteSource;this.__internals.remoteSource.events.cancelAllFromScope(this.refID);delete this.__internals.remoteSource;return remoteSource}clone(){const clone=new this.constructor();clone.importProperties(this);return clone}toJson(){return{}}__trigger__propertyChange(data){const normalizedData={instance:this,property:'',value:null,oldValue:null,...data};this.__internals.events.trigger(OcComponent.events.PROPERTY_CHANGE,normalizedData)}__trigger__destroy(){this.__internals.events.trigger(OcComponent.events.DESTROY,undefined)}destroy(){this.__trigger__destroy();this.unbind();this.__internals.ocInstances={};this.__recursiveDestroy(this.__internals);this.__internals.events.destroy();OLEFA.events.cancelAllFromScope(this.refID);this.destroy=function(){};Object.freeze(this)}static defaults(){return{properties:{}}}static toInstance(data){if(data instanceof this){return data};return new this(data)}static from(data){let obj;if(data instanceof this){obj=new this();obj.importProperties(data)}else{obj=new this(data)};return obj}static createReflection(obj,original){OLEFA.log.deprecated('DEPRECATED! Use bindTo instead!');const reflection=new obj(original.exportProperties());original.events.listen(OcComponent.events.PROPERTY_CHANGE,function(eventData){reflection.setProperty(eventData.property,eventData.value)},reflection.refID).listen(OcComponent.events.DESTROY,function(){reflection.events.cancelAllFromScope(original.refID)});reflection.events.listen(OcComponent.events.DESTROY,function(){original.events.cancelAllFromScope(reflection.refID)},original.refID);return reflection}}OcComponent.events={PROPERTY_CHANGE:'property-change',DESTROY:'destroy'};OcComponent.errors={IGNORABLE_ERROR:0};Oc.OcComponent=OcComponent;"use strict";class OcL10nGeneral{static async loadLangkit(){return OLEFA.i18n.load(OcL10nDimmi.FILE)}
1static generateTextNode(key,values){return new OcNodeTextI18n({file:this.FILE,key:key,values:values})}static get BACK(){return OLEFA.i18n.get(this.keys.BACK)}static get CLOSE(){return OLEFA.i18n.get(this.keys.CLOSE)}static get COLOR(){return OLEFA.i18n.get(this.keys.COLOR)}static get SEARCH(){return OLEFA.i18n.get(this.keys.SEARCH)}static get SEARCHING(){return OLEFA.i18n.get(this.keys.SEARCHING)}}OcL10nGeneral.FILE='general.json';OcL10nGeneral.keys={BACK:'back',CLOSE:'close',COLOR:'color',COPY:'copy',DELETE:'delete',DOWNLOAD:'download',DOWNLOAD_ALL:'download-all',EXPIRES:'expires',EXPIRES2:'expires2',GALLERY:'gallery',SEARCH:'search',SEARCHING:'searching'};Oc.OcL10nGeneral=OcL10nGeneral;"use strict";class OcNodeText extends OcComponent{constructor(properties){super(properties)}defaults(){return OcNodeText.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,text:{get:this.__getText.bind(this),set:this.__setText.bind(this)},node:{get:this.__getNode.bind(this)}}}__getText(){return this.properties.text}__setText(value){this.properties.text=value}__getNode(){return this.__internals.textNode}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.textNode=document.createTextNode('');this.propertyHandlers.text=this.__setText}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'text':this.__handleTextNodeInstance();break;default:break}}__initialize(properties){super.__initialize(properties);this.__initEvents();this.__initProperties(properties);this.__handleTextNodeInstance()}__handleTextNodeInstance(){const node=this.__internals.textNode;const text=this.__getText();node.textContent=text;this.__trigger__render({})}__trigger__render(eventData){const event=new OcEvent({eventName:OcNodeText.events.RENDER,data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,text:''}}}}OcNodeText.events={...OcComponent.events,RENDER:'render'};Oc.OcNodeText=OcNodeText;"use strict";class OcNodeTextI18n extends OcNodeText{constructor(properties){super(properties)}defaults(){return OcNodeTextI18n.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,text:{get:this.__getText.bind(this)},file:{get:this.__getFile.bind(this),set:this.__setFile.bind(this)},key:{get:this.__getKey.bind(this),set:this.__setKey.bind(this)},values:{get:this.__getValues.bind(this),set:this.__setValues.bind(this)}}}__setText(value){}__getFile(){return this.__internals.properties.file.value}__setFile(value){this.__internals.properties.file.value=value}__getKey(){return this.__internals.properties.key.value}__setKey(value){this.__internals.properties.key.value=value}__getValues(){return this.__internals.properties.values.get()}__setValues(value,setAsDefault=false){this.__internals.properties.values.set(value,setAsDefault)}__generateInternalProperties(){const inheritedInternalProperties=super.__generateInternalProperties();const defaults=this.defaults();return{...inheritedInternalProperties,file:new OcProperty({name:'file',value:defaults.properties.file,onChange:this.__onPropertyValueChangeHandler.bind(this)}),key:new OcProperty({name:'key',value:defaults.properties.key,onChange:this.__onPropertyValueChangeHandler.bind(this)}),values:new OcProperty({name:'values',value:defaults.properties.values,onChange:this.__onPropertyValueChangeHandler.bind(this)})}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.file=this.__setFile;this.propertyHandlers.key=this.__setKey}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'file':this.__onPropertyChange__file(ev.value,ev.oldValue);break;case'key':case'values':this.__handleTextNodeInstance();break;default:break}}__initialize(properties){super.__initialize(properties);this.__onPropertyChange__file(this.__getFile())}
1__onPropertyChange__file(newValue,oldValue){if(newValue){OLEFA.i18n.load(newValue).finally(()=>{this.__handleTextNodeInstance()})}}__handleTextNodeInstance(){const node=this.__internals.textNode;let parsedString='';const file=this.__getFile();const key=this.__getKey();if(file&&key){const values=this.__getValues();parsedString=OLEFA.i18n.getFrom(file,key,values)}node.textContent=parsedString;this.__trigger__render({})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,file:null,key:null,values:{}}}}}Oc.OcNodeTextI18n=OcNodeTextI18n;"use strict";class OcProperty{constructor(constructorData){this.__isDefaultValue=true;this.__name=constructorData.name;this.__value=constructorData.value;this.__onChange=constructorData.onChange}get name(){return this.__name}get value(){return this.get()}set value(value){this.set(value)}get isDefaultValue(){return this.__isDefaultValue}set(value,setAsDefault=false){if(this.__value!==value){const oldValue=this.__value;this.__value=value;this.__isDefaultValue=setAsDefault;if(this.__onChange){this.__onChange(this,oldValue,value)}}}get(){return this.__value}resetDefaultValue(){this.__isDefaultValue=true}}"use strict";class OcUi extends OcComponent{constructor(properties){super(properties)}defaults(){return OcUi.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,visible:{get:this.__getVisible.bind(this),set:this.__setVisible.bind(this)},clickable:{get:this.__getClickable.bind(this),set:this.__setClickable.bind(this)},ariaLabel:{get:this.__getAriaLabel.bind(this),set:this.__setAriaLabel.bind(this)},ariaLabelledBy:{get:this.__getAriaLabelledBy.bind(this),set:this.__setAriaLabelledBy.bind(this)},ariaDescription:{get:this.__getAriaDescription.bind(this),set:this.__setAriaDescription.bind(this)},ariaDescribedBy:{get:this.__getAriaDescribedBy.bind(this),set:this.__setAriaDescribedBy.bind(this)},ariaControls:{get:this.__getAriaControls.bind(this),set:this.__setAriaControls.bind(this)},base:{get:this.__getBase.bind(this)}}}__getVisible(){return this.properties.visible}__setVisible(value){this.properties.visible=value;this.__internals.states.set(OcUi.__states.HIDDEN,!value);this.__handleBaseNode()}__getClickable(){return this.properties.clickable}__setClickable(value){this.properties.clickable=value;this.__internals.states.set(OcUi.__states.CLICKABLE,this.properties.clickable)}__getAriaLabel(){return this.__internals.properties.ariaLabel.get()}__setAriaLabel(value,setAsDefault=false){this.__internals.properties.ariaLabel.set(value,setAsDefault)}__getAriaLabelledBy(){return this.properties.ariaLabelledBy}__setAriaLabelledBy(value){this.properties.ariaLabelledBy=value;this.__handleAriaHandlerProperty()}__getAriaDescription(){return this.properties.ariaDescription}__setAriaDescription(value){this.properties.ariaDescription=value;this.__handleAriaHandlerProperty()}__getAriaDescribedBy(){return this.properties.ariaDescribedBy}__setAriaDescribedBy(value){this.properties.ariaDescribedBy=value;this.__handleAriaHandlerProperty()}__getAriaControls(){return this.properties.ariaControls}__setAriaControls(value){this.properties.ariaControls=value;this.__handleAriaHandlerProperty()}__getBase(){return this.__internals.dom.base}__generateInternalProperties(){const inheritedInternalProperties=super.__generateInternalProperties();const defaults=this.defaults();return{...inheritedInternalProperties,ariaLabel:new OcProperty({name:'ariaLabel',value:defaults.properties.ariaLabel,onChange:this.__onPropertyValueChangeHandler.bind(this)})}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.dom={base:jQuery()};this.__internals.elements={};this.__internals.textNodes={};this.__internals.states=new OcStates();const defaults=this.defaults();const langkits={};for(const[key,file]of Object.entries(defaults.langkitFiles)){langkits[key]=OLEFA.i18n.load(file)}this.__internals.langkitPromises=langkits;const cssFiles={};for(const[key,fileDefinition]of Object.entries(defaults.cssFiles)){if(fileDefinition.key){cssFiles[key]=OLEFA.css.getIfNotLoaded(fileDefinition.file,fileDefinition.key)}else{cssFiles[key]=OLEFA.css.get(fileDefinition.file)}}
1this.__internals.cssPromises=cssFiles;this.__internals.observedHtmlAttributes=[];this.propertyHandlers.visible=this.__setVisible;this.propertyHandlers.clickable=this.__setClickable;this.propertyHandlers.ariaLabel=this.__setAriaLabel;this.propertyHandlers.ariaLabelledBy=this.__setAriaLabelledBy;this.propertyHandlers.ariaDescription=this.__setAriaDescription;this.propertyHandlers.ariaDescribedBy=this.__setAriaDescribedBy;this.propertyHandlers.ariaControls=this.__setAriaControls}__initElements(){const cssBase='oc-ui';this.defer(()=>{this.__internals.dom.base.addClass(cssBase)})}__initStates(){this.__internals.states.define({state:OcUi.__states.CLICKABLE,onChange:this.__onStateChange__clickable.bind(this)}).define({state:OcUi.__states.HIDDEN});this.__internals.states.define({state:OcUi.__states.CLICKABLE,onChange:this.__onStateChange__clickable.bind(this)}).define({state:OcUi.__states.HIDDEN})}__onStateChange__clickable(){const clickable=this.__internals.states.hasState(OcUi.__states.CLICKABLE);if(clickable){this.__internals.dom.base.on(`click.${this.refID}`,this.__onBase__click.bind(this))}else{this.__internals.dom.base.off(`click.${this.refID}`)}}__initEvents(){super.__initEvents();this.__internals.states.events.listen('stateChange',this.__onStates__stateChange.bind(this),this.refID);this.__internals.baseNodeAttributeMutationObserver?.events.listen('attribute-change',this.__onBaseNodeAttributeMutationObserver__attributeChange.bind(this),this.refID)}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'ariaLabel':this.__onPropertyChange__ariaLabel(ev.value,ev.oldValue);break;default:break}}__onBase__click(ev){this.__trigger__click({nativeEvent:ev.originalEvent})}__onStates__stateChange(ev){this.__deferOnce(`__onStates__stateChange__${ev.state}`,()=>{const hasState=this.__internals.states.hasState(ev.state);OcHtml.setAttributeIfTrue(hasState,this.__internals.dom.base,`data-state-${ev.state}`,'')})}__onBaseNodeAttributeMutationObserver__attributeChange(ev){}__onAriaHandler__propertyChange(ev){switch(ev.property){case'label':this.__setAriaLabel(ev.value);break;case'labelledby':this.__setAriaLabelledBy(ev.value);break;case'description':this.__setAriaDescription(ev.value);break;case'describedBy':this.__setAriaDescribedBy(ev.value);break;case'controls':this.__setAriaControls(ev.value);break}}__initEvents__ariaLabelProperty(ariaLabel){ariaLabel.events.listen(OcNodeText.events.RENDER,this.__onAriaLabelProperty__render.bind(this),this.refID)}__onAriaLabelProperty__render(ev){this.__handleAriaHandlerProperty()}__getAriaHandler(){return OcAriaLabellable};__initialize(properties){super.__initialize(properties);this.__initElements();if(this.__internals.observedHtmlAttributes.length>0){this.__internals.baseNodeAttributeMutationObserver=OLEFA.mutations.createObserver({element:this.__internals.dom.base,event:`${this.refID}--attribute-change`,mutations:{attributes:true,attributeFilter:this.__internals.observedHtmlAttributes,attributeOldValue:true}})}const node=this.__internals.dom.base.get(0);if(node){const ariaHandler=this.__getAriaHandler();this.__internals.ariaHandler=new ariaHandler(node)}this.__initStates();this.__initEvents();this.__initProperties(properties);if(this.__internals.dom.base){if(!this.__internals.dom.base.prop('olefa-object-reference')){this.__internals.dom.base.prop('olefa-object-reference',this)};this.__internals.dom.base.prop('oc-instances',this.__internals.ocInstances)};this.__onPropertyChange__ariaLabel(this.__getAriaLabel())}__onPropertyChange__ariaLabel(newValue,oldValue){if(oldValue instanceof OcNodeText){oldValue.events.cancelAllFromScope(this.refID)};if(newValue instanceof OcNodeText){this.__initEvents__ariaLabelProperty(newValue)};this.__handleAriaHandlerProperty()}__handleBaseNode(){this.__deferOnce('__handleBaseNode__OcUi',()=>{const node=this.__internals.dom.base;const visible=this.__getVisible();const attributesToSet={'aria-hidden':{condition:!visible,value:'true'},'inert':{condition:!visible,value:''}};OcHtml.setAttributesIfTrue(node,attributesToSet)})}__handleAriaHandlerProperty(){const element=this.__internals.ariaHandler;if(!element){return};const ariaLabel=this.__getAriaLabel();let ariaLabelText=null;if(ariaLabel!==null){ariaLabelText=OcDatatype.coerceValueToType('string',ariaLabel,(value=>value?.node.textContent))}if(OcUtilities.hasSetter(element,'label')){element.label=ariaLabelText}if(OcUtilities.hasSetter(element,'labelledBy')){element.labelledBy=this.__getAriaLabelledBy()}element.description=this.__getAriaDescription();element.describedBy=this.__getAriaDescribedBy();
1element.controls=this.__getAriaControls()}__createDOMNodes(definitions,parentNode){return new Promise((resolve,reject)=>{Oc.flatPromise((resolve,reject)=>{for(const[key,definition]of Object.entries(definitions)){this.__recursiveCreateDOMNode(key,definition)};this.defer(()=>{for(const[key,definition]of Object.entries(definitions)){this.__recursiveAdjustDOMNode(key,definition,parentNode)}}).then(()=>{resolve()})}).then(()=>{resolve()})})}__recursiveCreateDOMNode(nodeName,definition){const fullLog=function(addendum){let message='Error in DOM definition';if(addendum){message+=' - '+addendum};OLEFA.log.warn(message,{instance:this,nodename:nodeName,definition:definition})}.bind(this);if(!nodeName){fullLog('Missing node name');return};if(!OcDatatype.is('object',definition)){fullLog('Object expected for node definition');return}if('tag'in definition){this.__internals.dom[nodeName]=jQuery(document.createElement(definition.tag));if(definition.attributes){this.__internals.dom[nodeName].attr(definition.attributes)}}else if("component"in definition&&typeof(definition.component)!='undefined'){const instance=new definition.component(definition.properties);if(OcDatatype.is('OcComponent',instance)&&instance instanceof OcUi){this.__internals.elements[nodeName]=instance;if(definition.attributes){this.__internals.elements[nodeName].base.attr(definition.attributes)}}else{fullLog('Component is not of type "OcUi');return}}else if("node"in definition&&definition.node instanceof OcNodeText){this.__internals.textNodes[nodeName]=definition.node}else{fullLog('Missing "tag" or "component" property in definition');return};if('children'in definition&&definition.children){for(const entry of Object.entries(definition.children)){this.__recursiveCreateDOMNode(entry[0],entry[1])}}}__recursiveAdjustDOMNode(nodeName,definition,parent){const fullLog=function(addendum){let message='Error in DOM definition';if(addendum){message+=' - '+addendum};OLEFA.log.warn(message,{instance:this,nodename:nodeName,definition:definition})}.bind(this);if(!nodeName){fullLog('Missing node name');return};if(!OcDatatype.is('object',definition)){fullLog('Object expected for node definition');return}let thisNode=null;let parentNode=null;if('tag'in definition&&definition.tag){thisNode=this.__internals.dom[nodeName]}else if('component'in definition&&definition.component&&this.__internals.elements[nodeName]){thisNode=this.__internals.elements[nodeName].base}else if('node'in definition&&definition.node&&this.__internals.textNodes[nodeName]){thisNode=this.__internals.textNodes[nodeName].node}else{fullLog('Missing "tag" or "component" property in definition');return};if(parent){if(OcDatatype.is('jQuery',parent)){parentNode=parent}else if(OcDatatype.is('object',parent)&&'nodeName'in parent&&parent.nodeName){if('tag'in parent.definition&&parent.definition.tag){parentNode=this.__internals.dom[parent.nodeName]}else if('component'in parent.definition&&parent.definition.component&&this.__internals.elements[parent.nodeName]){parentNode=this.__internals.elements[parent.nodeName].base}}};if(!thisNode){return};if("addClass"in thisNode&&"class"in definition&&definition.class){thisNode.addClass(definition.class)};if('children'in definition&&definition.children){for(const entry of Object.entries(definition.children)){this.__recursiveAdjustDOMNode(entry[0],entry[1],{nodeName:nodeName,definition:definition})}};if(parentNode){parentNode.append(thisNode)}}__allLangkitsSettled(){return OcUtilities.allSettled(Object.values(this.__internals.langkitPromises))}__detachIfInside(element){return OcHtml.detachIfInside(element,this.__internals.dom.base)}__trigger__click(ev){this.__internals.events.trigger(OcUi.events.CLICK,ev)}destroy(){this.__internals.dom.base.detach();OcUtilities.defer(()=>{for(const key of Object.keys(this.__internals.dom)){this.__internals.dom[key].remove();delete this.__internals.dom[key]};for(const key of Object.keys(this.__internals.elements)){this.__internals.elements[key].destroy();delete this.__internals.elements[key]}});super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,visible:true,clickable:true,ariaLabel:null,ariaLabelledBy:null,ariaDescription:null,ariaDescribedBy:null,ariaControl
1s:null},langkitFiles:{general:"general.json"},cssFiles:{}}}static getInstanceFromElement(element){const instance=jQuery(element).prop('olefa-object-reference');if(!(instance instanceof this)){return undefined};return instance}static async destroyWhenIdle(element){return new Promise((resolve,reject)=>{element.deferUntil(()=>{element.destroy();resolve()},{condition:'idle'})})}}OcUi.__states={CLICKABLE:'clickable',HIDDEN:'hidden'};OcUi.events={...OcComponent.events,CLICK:'click'};Oc.OcUi=OcUi;"use strict";class OcApi{static generateAJAXParameters(path,data){const normalizedParameters={...{host:'',path:'',mode:'',APILevel:0,data:{},session:'',idempotencyToken:Date.now().toString()+'-'+OLEFA.basics.generateID(),returnHeaders:false,onProgress:OLEFA.basics.doNothing,modifiers:{headers:{}}},...data,path:path,};if(!normalizedParameters.modifiers.headers){normalizedParameters.modifiers.headers={}};normalizedParameters.modifiers.headers['X-OLEFA-Idempotency-Token']=normalizedParameters.idempotencyToken;if(normalizedParameters.session){normalizedParameters.modifiers.headers['olefa-session']=normalizedParameters.session};return normalizedParameters}}Oc.OcApi=OcApi;"use strict";class OcArray{static push(arr,values){if(!Array.isArray(values)){values=[values]};for(var i in values){arr.push(values[i])};return arr};static unshift(arr,values){if(!Array.isArray(values)){values=[values]};for(var i in values){arr.unshift(values[i])};return arr};static insert(arr,index,values){if(!Array.isArray(values)){values=[values]};if(index>=0){values=values.reverse()}if(index<0){index=arr.length-(index-1)}index=OcUtilities.clamp(0,index,arr.length);for(const value of values){arr.splice(index,0,value)};return arr};static forcedInsert(arr,index,value){while(arr.length<=index){arr.push(undefined)}if(Array.isArray(value)){value.forEach((v,i)=>{arr[index+i]=v})}else{arr[index]=value}return arr}static merge(arrayN){const arrays=[...arrayN];let returnArray=[];arrays.forEach(array=>{returnArray=returnArray.concat(array)});return returnArray};static remove(arr,index){arr.splice(index,1);return arr};static removeValue(arr,value){var newarr=[];for(var i=0;i<arr.length;++i){if(arr[i]==value){continue};newarr.push(arr[i])};return newarr};static diff(a1,a2){const a=[];const diff=[];let i=null;for(i=0;i<a1.length;++i){a[a1[i]]=true};for(i=0;i<a2.length;++i){if(a[a2[i]]){delete a[a2[i]]}else{a[a2[i]]=true}};for(var k in a){diff.push(k)};return diff};static intersection(a1,a2){if(!Array.isArray(a1)||!Array.isArray(a2)){return[]};var result=a1.filter(function(n){return a2.indexOf(n)>-1});return result};static forEachChange(a1,a2,handlers){a1=(Array.isArray(a1))?a1:[];a2=(Array.isArray(a2))?a2:[];handlers=OcDatatype.is('object',handlers)?handlers:{};const onAddition=typeof handlers.onAddition=='function'?handlers.onAddition:OLEFA.basics.doNothing;const onUpdate=typeof handlers.onUpdate=='function'?handlers.onUpdate:OLEFA.basics.doNothing;const onRemoval=typeof handlers.onRemoval=='function'?handlers.onRemoval:OLEFA.basics.doNothing;const setA=new Set(a1);const setB=new Set(a2);const setUnion=new Set(a1.concat(a2));setUnion.forEach(function(value){if(setA.has(value)&&setB.has(value)){onUpdate(value)}else if(setA.has(value)){onRemoval(value)}else if(setB.has(value)){onAddition(value)}})};static moveItem(arr,atPosition,toPosition){const element=arr[atPosition];arr.splice(atPosition,1);arr.splice(toPosition,0,element)};static pad(arr,len,fillValue){if(arr.length>len){OLEFA.log.info('Array is larger than given length',arguments);return[...arr]};const paddedArray=arr.concat(Array(len).fill(fillValue)).slice(0,len);return paddedArray}static copy(arr){return[...arr]}static getLastItem(arr){return arr[arr.length-1]};static has(arr,value){return arr.includes(value)}static mapToObject(arr,key){;const mappedArray=arr.reduce((map,obj)=>{if(OcObject.hasProperty(obj,key)){map[obj[key]]=obj}return map},{});return mappedArray}static splitByFilter(arr,filterMethod){const arrayTrue=[];const arrayFalse=[];arr.forEach(item=>{if(filterMethod(item)){arrayTrue.push(item)}else{arrayFalse.push(item)}});return[arrayTrue,arrayFalse]}static includes(arr,value){return arr.includes(value)}}Oc.OcArray=OcArray;"use strict";class OcObject{static copy(object){if(typeof(object)!='object'){OLEFA.log.warn('Expected object; got '+typeof(object));return{}};return JSON.parse(JSON.stringify(object))}static merge(objects){var result={};if(!Array.isArray(objects)){OLEFA.log.warn('Expected array; got '+typeof(objects));return result};for(var i=0;i<objects.length;++i){result=jQuery.extend(true,result,objects[i])};return result};static assign(a,b){if(!OcDatatype.isLiteralObject(a)||!OcDatatype.isLiteralObject(b)){return a};const result={};for(var property in a){result[property]=OcUtilities.define(b[property],a[property])};return result};static updateProperties(base,delta){const normalizedBase={...{},...base};if(!OcDatatype.isLiteralObject(delta)){return normalizedBase};
1Object.entries(delta).forEach(entry=>{const[key,value]=entry;if(value===undefined){delete normalizedBase[key]}else{normalizedBase[key]=value}});return normalizedBase};static compare(object1,object2){for(const property in object1){if(Object.prototype.hasOwnProperty.call(object1,property)!==Object.prototype.hasOwnProperty.call(object2,property)){return false};switch(typeof(object1[property])){case'object':if(!OcObject.compare(object1[property],object2[property])){return false};break;case'function':if(typeof(object2[property])=='undefined'||(property!='compare'&&object1[property].toString()!=object2[property].toString())){return false};break;default:if(object1[property]!=object2[property]){return false}}};for(var property in object2){if(typeof(object1[property])=='undefined'){return false}};return true};static sortByValue(o,key,sortFunction){const result=[];if(!OcDatatype.isLiteralObject(o)){return result};const sortable=[];const unsortable=[];for(const index in o){if(Object.prototype.hasOwnProperty.call(o[index],key)){sortable.push({key:index,value:o[index][key]})}else{unsortable.push({key:index,value:null})}};const defaultSortFunction=function(a,b){const compA=typeof(a.toLowerCase)=='function'?a.toLowerCase():a;const compB=typeof(b.toLowerCase)=='function'?b.toLowerCase():b;if(compA<compB){return-1};if(compA>compB){return 1};return 0};const usedSortFunction=(typeof(sortFunction)=='function')?sortFunction:defaultSortFunction;const sorted=sortable.sort(function(a,b){return usedSortFunction(a.value,b.value)});for(const index in sorted){result.push(o[sorted[index].key])};for(var index in unsortable){result.push(o[sorted[index].key])};return result};static defineProperty(obj,property,defaultValue){if(!OcDatatype.is('object',obj)){OLEFA.log.debug('OcObject.defineProperty: Not an object',arguments);return};if(typeof(obj[property])!='undefined'){return};obj[property]=defaultValue};static hasProperty(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)};static forEach(obj,handler){for(const key in obj){handler(key,obj[key])}};static keys(obj){return Object.keys(obj)}static filter(obj,predicate){const keys=OcObject.keys(obj);const keysToKeep=keys.filter(key=>predicate(key,obj[key]));const out={};for(const key of keysToKeep){out[key]=obj[key]};return out}static safeExtract(obj,property,expectedDataType,fallback){if(!OcObject.hasProperty(obj,property)){return fallback};if(typeof obj[property]=='undefined'||obj[property]==null){return fallback}let extractedValue;switch(expectedDataType){case'boolean':extractedValue=OcDatatype.toBoolean(obj[property]);break;case'number':extractedValue=Number(obj[property]);break;case'string':extractedValue=String(obj[property]);break}return extractedValue}}Oc.OcObject=OcObject;"use strict";class OcDatatype{static byteToHex(byte){return(`0${byte.toString()}`).slice(-2)};static numberToHex(number,minDigits){minDigits=OcUtilities.define(minDigits,0);const processedNumber=Number(number);if(!OcDatatype.isNumeric(processedNumber)){OLEFA.log.warn('Not a number!');return'0'};var converted=processedNumber.toString(16);while(converted.length<minDigits){converted=`0${converted}`};return converted};static hexToRGB(hex){var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/iu;hex=hex.replace(shorthandRegex,function(m,r,g,b){return r+r+g+g+b+b});var result=(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/iu).exec(hex);return result?{red:parseInt(result[1],16),green:parseInt(result[2],16),blue:parseInt(result[3],16)}:null};static dataURItoBlob(dataURI,type){var byteString=atob(dataURI.split(',')[1]);var ab=new ArrayBuffer(byteString.length);var ia=new Uint8Array(ab);for(var i=0;i<byteString.length;i++){ia[i]=byteString.charCodeAt(i)};return new Blob([ab],{type:type})};static blobToDataUrl(blob){return new Promise((resolve,reject)=>{const reader=new FileReader();reader.onload=(ev)=>{if(!ev.target){return reject(new OcError({data:{blob:blob},debugMessage:'Failed to convert blob',level:OcLog.defaults().loglevels.ERROR}))};resolve(ev.target.result)};reader.readAsDataURL(blob)})}static urlToAbsolute(relativeUrl){const link=document.createElement('a');link.href=relativeUrl;return link.href}static textToHue(str){var hash=0;str=CryptoJS.MD5(String(str)).toString(CryptoJS.enc.Base64);for(var i=0;i<str.length;i++){hash=str.charCodeAt(i)+((hash<<5)-hash)};hash=OLEFA.basics.modulo(hash,360);return`hsl(${hash}, 100%, 30%)`};static toBoolean(value){return Boolean(value)};static toInteger(value,base){value=OcUtilities.define(value,0);
1base=OcUtilities.define(base,10);return Number.parseInt(value,base)};static toString(value){return String(value)};static dateToPaddedUNIXString(dateString){if(!OcDatatype.isDate(dateString)){return''.padStart(20,'0')};const date=OcDatatype.toDate(dateString);return date.valueOf().toString().padStart(20,'0')};static dateToISODate(dateString){if(!OcDatatype.isDate(dateString)){return'0000-00-00'};const date=OcDatatype.toDate(dateString);const year=date.getFullYear();const month=String(date.getMonth()+1).padStart(2,'0');const day=String(date.getDate()).padStart(2,'0');const formattedDate=`${year}-${month}-${day}`;return formattedDate}static stringToBase64(string){const bytes=new TextEncoder().encode(string);const binString=String.fromCodePoint(...bytes);return btoa(binString)};static base64ToString(base64){const binString=atob(base64);const bytes=Uint8Array.from(binString,(m)=>m.codePointAt(0));return new TextDecoder().decode(bytes)};static toFuzzyFileSize(bytes,binary){binary=OcUtilities.define(binary,false);const divider=(binary)?1024:1000;const sizes=(binary)?['B','KiB','MiB','GiB','TiB']:['B','KB','MB','GB','TB'];let i=0;let size=bytes;while(size>=divider&&i<sizes.length-1){size/=divider;i+=1}return`${Math.round(size * 10) / 10} ${sizes[i]}`};static toFormData(data){const formData=new FormData();if(!OcDatatype.is('object',data)){return formData};for(const[key,value]of Object.entries(data)){OcDatatype.__toFormData__recursive(formData,key,value)}return formData};static __toFormData__recursive(formData,key,value){if(OcDatatype.is('object',value)){for(const[thisKey,thisValue]of Object.entries(value)){const newKey=`${key}[${thisKey}]`;OcDatatype.__toFormData__recursive(formData,newKey,thisValue)}}else if(OcDatatype.is('array',value)){const newKey=`${key}[]`;for(const arrayValue of Object.values(value)){OcDatatype.__toFormData__recursive(formData,`${newKey}`,arrayValue)}}else{if(typeof(value)!='undefined'&&value!==null){formData.append(key,value)}}};static fromJson(value){if(!value){return null};let json;try{json=JSON.parse(value)}catch(e){json=null};return json}static fromPerlBoolean(value){return Boolean(Number(value))}static fromBooleanString(value){return value=='true'}static toBooleanString(value){return(value)?'true':'false'}static toDate(dateProperty){let normalizedDate=dateProperty;if(typeof dateProperty=='string'&&/^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d$/.test(dateProperty)){normalizedDate=dateProperty.replace(' ','T')};return new Date(normalizedDate)}static toUrl(url){let urlInstance;try{urlInstance=new URL(url)}catch(e){urlInstance=null}return urlInstance}static coerceValueToType(type,value,setter){if(typeof value===type){return value}return setter(value)}static coerceValueToInstanceOf(type,value,setter){if(value instanceof type){return value}return setter(value)}static is(type,value){if(typeof(value)=='undefined'||!OcDatatype.isString(type)){return false};switch(type.toLowerCase()){case'date':return OcDatatype.isDate(value);case'function':return OcDatatype.isFunction(value);case'numeric':case'number':return OcDatatype.isNumeric(value);case'boolean':return OcDatatype.isBoolean(value);case'string':return OcDatatype.isString(value);case'array':return OcDatatype.isArray(value);case'object':return OcDatatype.isLiteralObject(value);case'occomponent':return value instanceof OcComponent;case'jquery':return OcDatatype.isJQuery(value);default:return false}};static isDate(value){const tester=OcDatatype.toDate(value);return!isNaN(tester.getTime())};static isFunction(value){return(typeof(value)==='function')};static isNumeric(value){return!isNaN(value)&&value!==''&&value!==null};static isBoolean(value){return(value==0||value==1||value==false||value==true)};static isString(value){return(typeof value==='string')};static isArray(value){return Array.isArray(value)};static isLiteralObject(o){return o&&typeof o=='object'&&o.constructor==Object};static isJQuery(value){return(value instanceof jQuery)};static isUrl(value){let isUrl;try{new URL(value);isUrl=true}catch(e){isUrl=false};return isUrl}}Oc.OcDatatype=OcDatatype;"use strict";class OcEvents{constructor(){this.__internals={events:jQuery('<div></div>')};this.refID=OcBasic.generateID()};defaults(){return OcEvents.defaults()}__generateFullEventName(eventName,scope){if(!eventName){return''};let event=['oc-events',this.refID,eventName].join('__');const scopes=this.__generateScopes(scope);event+=`.${scopes.join('.')}`;return event};__generateScopes(scopes){let scopeArray=[this.refID];if(scopes){if(Array.isArray(scopes)){scopeArray=scopeArray.concat(scopes)}else{scopeArray.push(scopes)}};return scopeArray};listen(eventName,f,scope){const eventName2=String(eventName);const event=this.__generateFullEventName(eventName2,scope);if(!event||typeof(f)!='function'){return this};this.__internals.events.on(event,function(e,data){f(data)});return this};cancel(eventName,scope){const eventName2=String(eventName);const event=this.__generateFullEventName(eventName2,scope);if(!event){return this};this.__internals.events.off(event);return this};cancelAll(){this.__internals.events.off(`.${this.refID}`);return this};cancelAllFromScope(scope){const scopes=this.__generateScopes(scope);this.__internals.events.off(`.${scopes.join('.')}`);return this};trigger(eventName,data,scope){const eventName2=String(eventName);const event=this.__generateFullEventName(eventName2,scope);if(!event){return this};this.__internals.events.trigger(event,data);const wildcard=this.__generateFullEventName('*',scope);this.__internals.events.trigger(wildcard,{event:eventName,data:data});return this};triggerEvent(eventInstance){this.trigger(eventInstance.eventName,eventInstance)}destroy(){this.cancelAll();this.__internals.events.remove()}}OcEvents.defaults=()=>{return{}};(function(OcEvents){})(OcEvents||(OcEvents={}));;Oc.OcEvents=OcEvents;"use strict";class OcEvent extends OcComponent{constructor(properties){super(properties)}defaults(){return OcEvent.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,data:{get:this.__getData.bind(this)},eventName:{get:this.__getEventName.bind(this)}};return extendedDefinitions}__getData(){return this.properties.data}__setData(value){this.properties.data=value}__getEventName(){return this.properties.eventName}__setEventName(value){this.properties.eventName=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.data=this.__setData;this.propertyHandlers.eventName=this.__setEventName}__initialize(properties){super.__initialize(properties);this.__initProperties(properties)}static defaults(){const inheritedDefaults=super.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,eventName:"",data:{}}};return extendedDefaults}}Oc.OcEvent=OcEvent;"use strict";class OcAwaitingEvent extends OcEvent{constructor(properties){super(properties)};defaults(){return OcAwaitingEvent.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,onReject:{get:this.__getOnReject.bind(this)},onResolve:{get:this.__getOnResolve.bind(this)},finally:{get:this.__getFinally.bind(this)},promise:{get:this.__getPromise.bind(this)}};return extendedDefinitions};__getOnReject(){return this.properties.onReject};__setOnReject(value){if(typeof value!=='function'){OLEFA.log.warn(`OcAwaitingEvent.__setOnReject: Expected function, received ${typeof value}`);return};this.properties.onReject=value}__getOnResolve(){return this.properties.onResolve};__setOnResolve(value){if(typeof value!=='function'){OLEFA.log.warn(`OcAwaitingEvent.__setOnResolve: Expected function, received ${typeof value}`);return};this.properties.onResolve=value}__getFinally(){return this.properties.finally}__setFinally(value){if(typeof value!=='function'){OLEFA.log.warn(`OcAwaitingEvent.__setFinally: Expected function, received ${typeof value}`);return};this.properties.finally=value}__getPromise(){return this.__internals.promise.promise}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promise=new OcManualpromise();this.propertyHandlers.onResolve=this.__setOnResolve;this.propertyHandlers.onReject=this.__setOnReject;this.propertyHandlers.finally=this.__setFinally}__initialize(properties){super.__initialize(properties);this.__internals.promise.promise.then(response=>{this.properties.onResolve(response)}).catch(error=>{this.properties.onReject(error)}).finally(()=>{this.properties.finally()})};resolve(response){this.__internals.promise.resolve(response)}reject(error){this.__internals.promise.reject(error)};static defaults(){const inheritedDefaults=super.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,onReject:OLEFA.basics.doNothing,onResolve:OLEFA.basics.doNothing,finally:OLEFA.basics.doNothing}};return extendedDefaults}}
1(function(OcAwaitingEvent){})(OcAwaitingEvent||(OcAwaitingEvent={}));oc.OcAwaitingEvent=OcAwaitingEvent;"use strict";class OcComponentmanager extends OcComponent{defaults(){return OcComponentmanager.defaults()};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.componentListPromise=null;this.__internals.preloadedCSSFiles=new Set();OLEFA.errors.registerErrorCodes({COMPONENTMANAGER__COMPONENT_LOAD_FAIL:34882})};__initialize(properties){this.__initProperties(properties)};__fetchFiles(files){return new Promise((resolve,reject)=>{while(files.length&&files[0]=='blocking'){files.shift()};if(!files.length){return resolve()};const loadPromises=[];while(files.length&&files[0]!='blocking'){const file=files.shift();if(!file){continue};const namespaceMatch=file.match(/^namespace\((.*)\)$/u);if(namespaceMatch){this.__createNamespace(namespaceMatch[1])}else{loadPromises.push(OLEFA.js.get(file))}};Promise.all(loadPromises).then(()=>{if(!files.length){return Promise.resolve()}return this.__fetchFiles(files)}).then(function(){return resolve()}).catch(function(){return reject()})})};__createNamespace(namespace){if(this.isLoaded(namespace)){return};const parentComponent=this.__getComponentParent(namespace);let node=window;if(parentComponent){node=this.__fetchComponentNode(parentComponent)};const componentName=namespace.split('.').pop();if(componentName){node[componentName]={}}};__fetchComponentNode(component){const parentComponent=this.__getComponentParent(component);let node=window;if(parentComponent){node=this.__fetchComponentNode(parentComponent)};const componentName=component.split('.').pop()||'';return node[componentName]};__getDependenciesFiles(component){const componentFiles=[];this.__handleCSSFiles(component);if(!this.isLoaded(component)){componentFiles.push(this.__getComponentFile(component))};const requiredComponents=this.__getRequiredComponentFiles(component);if(requiredComponents.length){requiredComponents.push('blocking')};const auxComponents=this.__getAuxComponents(component);const allFiles=requiredComponents.concat(componentFiles,auxComponents);const finalFilesList=[];const uniqueFiles={};for(let i=0;i<allFiles.length;++i){const file=allFiles[i];if(file=='blocking'||!uniqueFiles[file]){uniqueFiles[file]=1;finalFilesList.push(file)}};return finalFilesList};__handleCSSFiles(component){if(!this.__internals.componentList){return};const componentData=this.__internals.componentList[component];if(!componentData){return};if(!Array.isArray(componentData.css)){return};for(const file of componentData.css){if(!this.__internals.preloadedCSSFiles.has(file)){OLEFA.log.debug(`${component} requires CSS file ${file}`);this.__internals.preloadedCSSFiles.add(file);jQuery('<link>').attr({rel:'preload',href:OLEFA.environment.folders.stylesheets+'/'+file+'?v='+Core.status.version,as:'style'}).appendTo('head')}}};__getRequiredComponentFiles(component,circularCatcher){let required=[];if(!circularCatcher){circularCatcher={}};if(circularCatcher[component]){return required};circularCatcher[component]=1;const parent=this.__getComponentParent(component);if(parent&&!this.isLoaded(parent)){const beforeRequired=this.__getRequiredComponentFiles(parent);if(beforeRequired.length){required=required.concat(beforeRequired,['blocking'])};this.__handleCSSFiles(parent);const file=this.__getComponentFile(parent);if(file){required.push(file)}};if(!this.__internals.componentList){return required};const componentData=this.__internals.componentList[component];if(!componentData){return required};if(componentData.requires){for(let i=0;i<componentData.requires.length;++i){const requiredComponent=componentData.requires[i];if(requiredComponent){if(!this.isLoaded(requiredComponent)){const beforeRequired=this.__getRequiredComponentFiles(requiredComponent);if(beforeRequired.length){required=required.concat(beforeRequired,['blocking'])};const file=this.__getComponentFile(requiredComponent);if(file){required.push(file)};const afterRequired=this.__getAuxComponents(requiredComponent,circularCatcher);required=required.concat(afterRequired)};this.__handleCSSFiles(requiredComponent)}}};return required};__getAuxComponents(component,circularCatcher){let required=[];if(!circularCatcher){circularCatcher={}};if(circularCatcher[component]){return required};
1circularCatcher[component]=1;if(!this.__internals.componentList){return required};const componentData=this.__internals.componentList[component];if(!componentData){return required};if(componentData.aux){for(let i=0;i<componentData.aux.length;++i){const requiredComponent=componentData.aux[i];if(requiredComponent){if(!this.isLoaded(requiredComponent)){const beforeRequired=this.__getRequiredComponentFiles(requiredComponent);if(beforeRequired.length){required=required.concat(beforeRequired,['blocking'])};const file=this.__getComponentFile(requiredComponent);if(file){required.push(file)};const afterRequired=this.__getAuxComponents(requiredComponent,circularCatcher);required=required.concat(afterRequired)};this.__handleCSSFiles(requiredComponent)}}};return required};__getComponentFile(component){if(!this.__internals.componentList){return''};const componentData=this.__internals.componentList[component];let componentFile='';if(componentData){if(typeof(componentData.file)=='undefined'){const componentParent=this.__getComponentParent(component);componentFile=this.__getComponentFile(componentParent)}else{const aliasMatch=componentData.file.match(/^alias\((.+)\)$/u);if(aliasMatch){const aliasComponent=aliasMatch[1];componentFile=this.__getComponentFile(aliasComponent)}else{componentFile=componentData.file}}};if(!componentFile){OLEFA.log.warn('OcComponentmanager._getComponentFile(): No file defined for component',component)};return componentFile};__getComponentParent(component){const componentParts=component.split('.');componentParts.pop();return componentParts.join('.')};__getComponentList(){const that=this;return new Promise(function(resolve,reject){OLEFA.fetch.getJson({path:`${OLEFA.environment.folders.javascript}/components.json`,parameters:{v:Core.status.version}}).then((json)=>{that.__internals.componentList=json.data;resolve()}).catch(()=>{reject(OLEFA.errors.errorCodes.COMPONENTMANAGER__COMPONENT_LOAD_FAIL)})})};__isLoaded(component,base){if(!base){base=window};const componentArray=component.split('.');if(componentArray.length>1){const childComponent=componentArray.shift();const subComponent=componentArray.join('.');if(!childComponent||!base[childComponent]){return false};return this.isLoaded(subComponent,base[childComponent])};if(base[component]){return true}return false}require(components){const that=this;return new Promise((resolve,reject)=>{if(!Array.isArray(components)){throw Error('Array expected');};const unloadedComponents=components.filter(component=>!this.isLoaded(component));if(unloadedComponents.length==0){return resolve()}if(!that.__internals.componentListPromise){that.__internals.componentListPromise=that.__getComponentList()};that.__internals.componentListPromise.then(()=>{let requiredFiles=[];for(let i=0;i<unloadedComponents.length;++i){requiredFiles=requiredFiles.concat(that.__getDependenciesFiles(unloadedComponents[i]))};OLEFA.log.info('Files that need downloading for the following components',unloadedComponents,new Set(requiredFiles.filter(function(x){return(x!='blocking')})));return this.__fetchFiles(requiredFiles)}).then(function(){return resolve()}).catch((reason)=>{that.__internals.componentListPromise=null;return reject(reason)})})};isLoaded(component,base){return(this.__isLoaded(component,base)||this.__isLoaded(component,window.oc)||this.__isLoaded(component,Oc))};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData};return extendedData}};Oc.OcComponentmanager=OcComponentmanager;"use strict";class OcNotifications extends OcComponent{defaults(){return OcNotifications.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,permission:{get:function(){return that.__getPermission()}},notificationsTray:{get:function(){return that.__internals.elements.webNotifications.base}}};return extendedDefinitions};__getPermission(){if(!this.__internals.isNativeNotificationSupported){return false};if(Notification.permission!=this.defaults().permissions.GRANTED){return false};return true};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.isNativeNotificationSupported=false;this.__internals.askedPermission=false};__initialize(properties){this.__initElements();this.__initProperties(properties);if(window.Notification){this.__internals.isNativeNotificationSupported=true};this.__loadFromCache()};__initElements(){this.__internals.elements={webNotifications:new OcUiWebNotifications()}};__updateCache(){OLEFA.storage.store('oc-notifications',{askedPermission:this.__internals.askedPermission})};__loadFromCache(){const cached=OLEFA.storage.get('OcNotifications');if(cached){this.__internals.askedPermission=Boolean(OcUtilities.define(cached.askedPermission,false))}};__requestPermission(){return new Promise((resolve,reject)=>{const defaultValues=this.defaults();if(!this.__internals.isNativeNotificationSupported){reject(defaultValues.errors.NOT_SUPPORTED);return};if(this.permission){resolve();return};Notification.requestPermission().then(function(permission){if(permission==defaultValues.permissions.GRANTED){resolve()}else{reject(defaultValues.errors.PERMISSION_DENIED)}}).catch(function(errorCode){reject(errorCode)})})};__createNotification__native(data){const normalizedData={title:'',body:undefined,data:null,tag:undefined,icon:undefined,image:undefined,requireInteraction:undefined,timestamp:undefined,vibrate:undefined,onClick:null,onClose:null,onError:null,onShow:null,...data};const notification=new Notification(normalizedData.title,normalizedData);if(typeof(normalizedData.onClick)=='function'){const fn=normalizedData.onClick;notification.onclick=function(){notification.close();fn(normalizedData.data,notification)}};if(typeof(normalizedData.onClose)=='function'){const fn=normalizedData.onClose;
1notification.onclose=function(){fn(normalizedData.data,notification)}};if(typeof(normalizedData.onError)=='function'){const fn=normalizedData.onError;notification.onerror=function(){fn(normalizedData.data,notification)}};if(typeof(normalizedData.onShow)=='function'){const fn=normalizedData.onShow;notification.onshow=function(){fn(normalizedData.data,notification)}}};__createNotification__web(data){this.__internals.elements.webNotifications.createNotification(data)};requestPermission(){return new Promise((resolve,reject)=>{if(this.permission){resolve();return};if(Notification.permission==this.defaults().permissions.DENIED){reject();return};this.__internals.elements.webNotifications.requestPermissionForNativeNotifications().then((resolveData)=>{return this.__requestPermission()}).then(function(){resolve()}).catch((errorCode)=>{if(errorCode==OcUiWebNotifications.defaults().errors.REQUEST_NATIVE_NOTIFICATIONS_DENIED){this.__internals.askedPermission=true;this.__updateCache()};reject()})})};createNotification(notificationData){if(!this.permission&&!this.__internals.askedPermission){this.requestPermission().catch(function(errorCode){})};if(document.hidden&&this.permission){this.__createNotification__native(notificationData)}else{this.__createNotification__web(notificationData)}};destroy(){super.destroy()}static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,defaultNotificationIcon:'/osr/olefa/logo.jpg',permissions:{GRANTED:'granted',DENIED:'denied',DEFAULT:'default'},errors:{NOT_SUPPORTED:3214,PERMISSION_DENIED:56749}};return extendedData}};oc.OcNotifications=OcNotifications;"use strict";class OcUiWebNotifications extends OcUi{defaults(){return OcUiWebNotifications.defaults()};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMain:OLEFA.css.getIfNotLoaded('ui/web/notifications.css','--loaded--ui-web-notifications')};this.__internals.notifications={};this.__internals.notificationTags={}};__initElements(){super.__initElements();this.__createDOMNodes({base:{tag:'div',class:'oc-ui-web-notifications'}});this.__internals.intersectionObserver=new IntersectionObserver(this.__onIntersection.bind(this),{root:this.__internals.dom.base.get(0),threshold:1})};__initEvents__notification(notification,notificationData){notification.events.listen('request-close',this.__onNotification__requestClose.bind(this,notification,notificationData),this.refID).listen('click',this.__onNotification__click.bind(this,notification,notificationData),this.refID)};__onNotification__click(notification,notificationData,eventData){if(typeof(notificationData.onClick)=='function'){notification.close();notificationData.onClick(notification.data,notification)}};__onNotification__requestClose(notification,notificationData,eventData){this.__closeNotification(notification.refID);if(typeof(notificationData.onClose)=='function'){notificationData.onClose(notification.data,notification)}};__onIntersection(entries,observer){for(var entry of entries){if(entry.isIntersecting){const notification=entry.target['olefa-object-reference'];notification.defer(function(){notification.base.css({'animation-name':'elastic-show'})}.bind(this));if(!notification.requireInteraction){OLEFA.crontab.addJob({id:notification.refID,inMS:10000,instances:1});OLEFA.crontab.events.listen('tick',(eventData)=>{if(eventData.id==notification.refID){this.__closeNotification(notification.refID)}},[this.refID,notification.refID])};const notificationEntry=this.__internals.notifications[notification.refID];if(notificationEntry&&typeof(notificationEntry.data.onShow)=='function'){notificationEntry.data.onShow(notification.data,notification)}}}};__closeNotification(notificationID){const notificationEntry=this.__internals.notifications[notificationID];if(!notificationEntry){return};const notification=notificationEntry.instance;OLEFA.crontab.events.cancel('tick',[this.refID,notification.refID]);notification.base.on('animationend',(eventData)=>{if(eventData.originalEvent.animationName=='elastic-hide'){this.__destroyNotification(notification.refID)}});notification.base.css({'animation-name':'elastic-hide'})};__destroyNotification(notificationID){const notificationEntry=this.__internals.notifications[notificationID];if(!notificationEntry){return};const notification=notificationEntry.instance;OLEFA.crontab.removeJob(notification.refID);notification.base.off();delete this.__internals.notificationTags[notification.tag];notification.destroy();delete this.__internals.notifications[notificationID]};__insertNotification(notification,notificationData){this.__internals.notifications[notification.refID]={instance:notification,data:notificationData};if(notification.tag){if(this.__internals.notificationTags[notification.tag]){this.__destroyNotification(this.__internals.notificationTags[notification.tag])};this.__internals.notificationTags[notification.tag]=notification.refID};this.__initEvents__notification(notification,notificationData);const node=notification.base.get(0);if(node){this.__internals.intersectionObserver.observe(node)}this.defer(()=>{notification.base.addClass('oc-ui-web-notifications__notification').appendTo(this.__internals.dom.base)})};createNotification(notificationData){const notification=new OcUiWebNotificationsNotification(notificationData);this.__insertNotification(notification,notificationData)};requestPermissionForNativeNotifications(){return new Promise((resolve,reject)=>{const notification=new OcUiWebNotificationsNotificationRequestpermissionfornativenotifications();this.__insertNotification(notification,{onClose:()=>{return reject(this.defaults().errors.REQUEST_NATIVE_NOTIFICATIONS_DENIED)}});notification.events.listen('request-permission',function(){resolve()})})};static defaults(){const inheritedData=OcUi.defaults();const expandedData={...inheritedData,errors:{REQUEST_NATIVE_NOTIFICATIONS_DENIED:41766}};return expandedData}
1destroy(){OLEFA.crontab.events.cancelAllFromScope(this.refID);super.destroy()}}oc.OcUiWebNotifications=OcUiWebNotifications;"use strict";class OcUiWebNotificationsNotification extends OcUi{constructor(properties){super(properties)}defaults(){return OcUiWebNotificationsNotification.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,title:{get:function(){return that.__getTitle()}},body:{get:function(){return that.__getBody()}},data:{get:function(){return that.__getData()}},tag:{get:function(){return that.__getTag()}},icon:{get:function(){return that.__getIcon()}},image:{get:function(){return that.__getImage()}},requireInteraction:{get:function(){return that.__getRequireInteraction()}},timestamp:{get:function(){return that.__getTimestamp()}},vibrate:{get:function(){return that.__getVibrate()}}};return extendedDefinitions};__setTitle(value){this.properties.title=value;this.__handleNotificationBody()};__getTitle(){return this.properties.title};__setBody(value){this.properties.body=value;this.__handleNotificationBody()};__getBody(){return this.properties.body};__setData(value){this.properties.data=value};__getData(){return this.properties.data};__setTag(value){this.properties.tag=value};__getTag(){return this.properties.tag};__setIcon(value){this.properties.icon=value;this.__handleNotificationBody()};__getIcon(){return this.properties.icon};__setImage(value){this.properties.image=value;this.__handleNotificationBody()};__getImage(){return this.properties.image};__setRequireInteraction(value){this.properties.requireInteraction=value};__getRequireInteraction(){return this.properties.requireInteraction};__setTimestamp(value){this.properties.timestamp=value;this.__internals.elements.timestamp.date=value};__getTimestamp(){return this.properties.timestamp};__setVibrate(value){this.properties.vibrate=value;this.__deferOnce('__setter__vibrate',()=>{if(!navigator.vibrate||!this.properties.value){return};navigator.vibrate(value)})};__getVibrate(){return this.properties.vibrate};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.title=this.__setTitle;this.propertyHandlers.body=this.__setBody;this.propertyHandlers.data=this.__setData;this.propertyHandlers.tag=this.__setTag;this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.image=this.__setImage;this.propertyHandlers.requireInteraction=this.__setRequireInteraction;this.propertyHandlers.timestamp=this.__setTimestamp;this.propertyHandlers.vibrate=this.__setVibrate};__initElements(){super.__initElements();this.__createDOMNodes({card:{component:OcMdCard,class:'oc-ui-web-notifications-notification__card'}});this.__createDOMNodes({buttonClose:{component:OcMdButtonIcon,class:'oc-ui-web-notifications-notification__button-close',properties:{icon:'md:close',label:OLEFA.i18n.get('close')}},eventCatcher:{tag:'div',class:'oc-ui-web-notifications-notification__event-catcher'}},this.__internals.elements.card.base);this.__createDOMNodes({icon:{component:OcMdIcon,class:'oc-ui-web-notifications-notification__icon',properties:{icon:'access_time',}},timestamp:{component:OcHtmlTime,class:'oc-ui-web-notifications-notification__timestamp'},},this.__internals.elements.card.content);this.__internals.dom.base=this.__internals.elements.card.base;this.__internals.dom.base.prop('olefa-object-reference',this).addClass('oc-ui-web-notifications-notification')};__initEvents(){super.__initEvents();this.__internals.dom.base.on('click',this.__onBase__click.bind(this));this.__internals.elements.buttonClose.base.on('click',this.__onButtonClose__clickDOM.bind(this));this.__internals.elements.buttonClose.events.listen('click',this.__onButtonClose__click.bind(this),this.refID)};__onBase__click(ev){this.__trigger__click({nativeEvent:ev.originalEvent})};__onButtonClose__clickDOM(e){e.originalEvent.stopPropagation()};__onButtonClose__click(){this.close()};__handleNotificationBody(){this.__deferOnce('__handleNotificationBody',()=>{if(this.__internals.elements.wrapper){this.__internals.elements.wrapper.destroy()};let listItem;if(this.body){this.__internals.elements.wrapper=new OcMdListTwoline();listItem=new OcMdListitemTwoline();this.__internals.elements.wrapper.addItem(listItem);listItem.primaryText=this.title;listItem.secondaryText=this.body}else{this.__internals.elements.wrapper=new OcMdListSingleline();listItem=new OcMdListitemSingleline();this.__internals.elements.wrapper.addItem(listItem);listItem.label=this.title};if(this.icon){this.__internals.elements.wrapper.iconType='image';listItem.icon='image:'+this.icon};if(this.image){this.__internals.elements.card.mediaStyle='wide';
1this.__internals.elements.card.mediaBackground=this.image};this.__internals.elements.wrapper.base.addClass('oc-ui-web-notifications-notification__wrapper').appendTo(this.__internals.elements.card.content)})};close(){this.__trigger__requestClose()};__trigger__requestClose(){this.__internals.events.trigger('request-close',undefined)};static defaults(){const inheritedData=OcUi.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,title:'',body:'',data:{},tag:'',icon:'',image:'',requireInteraction:false,timestamp:Date.now(),vibrate:[]},cssFiles:{...inheritedData.cssFiles,uiWebNotificationsNotification:{file:'ui/web/notifications/notification.css',key:'--loaded--ui-web-notifications-notification'}}};return extendedData}}oc.OcUiWebNotificationsNotification=OcUiWebNotificationsNotification;"use strict";class OcUiWebNotificationsNotificationRequestpermissionfornativenotifications extends OcUiWebNotificationsNotification{defaults(){return OcUiWebNotificationsNotificationRequestpermissionfornativenotifications.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure()};__initialize(properties){super.__initialize(properties);this.defer(()=>{this.__internals.dom.notificationTitle.text(OLEFA.i18n.get('enable_desktop_notifications'));this.__internals.dom.notificationText.text(OLEFA.i18n.get('enable_desktop_notifications__explain'));this.__internals.elements.notificationNotNow.label=OLEFA.i18n.get('not_now');this.__internals.elements.notificationEnable.label=OLEFA.i18n.get('enable')+'...'})};__initElements(){super.__initElements();this.__createDOMNodes({notificationBody:{tag:'div',class:'oc-ui-web-notifications-notification-request-permission-for-native-notifications__notification-body',children:{notificationTitle:{tag:'h4',class:'oc-ui-web-notifications-notification-request-permission-for-native-notifications__notification-title'},notificationText:{tag:'span',class:'oc-ui-web-notifications-notification-request-permission-for-native-notifications__notification-text'}}},notificationActions:{tag:'div',class:'oc-ui-web-notifications-notification-request-permission-for-native-notifications__notification-actions',children:{notificationNotNow:{component:OcMdButtonStandard,class:'oc-ui-web-notifications-notification-request-permission-for-native-notifications__notification-not-now',properties:{style:'outlined'}},notificationEnable:{component:OcMdButtonStandard,class:'oc-ui-web-notifications-notification-request-permission-for-native-notifications__notification-enable',properties:{style:'containedFlush'}}}}},this.__internals.elements.card.content);this.__internals.dom.base.addClass('oc-ui-web-notifications-notification-request-permission-for-native-notifications')};__initEvents(){super.__initEvents();this.__internals.elements.notificationNotNow.events.listen('click',this.__onNotificationNotNow__click.bind(this),this.refID);this.__internals.elements.notificationEnable.events.listen('click',this.__onNotificationEnable__click.bind(this),this.refID)};__onNotificationNotNow__click(){this.close()};__onNotificationEnable__click(){this.__trigger__requestPermission();this.close()};__handleNotificationBody(){};__trigger__requestPermission(){this.__internals.events.trigger('request-permission',undefined)};static defaults(){const inheritedData=OcUiWebNotificationsNotification.defaults();return{...inheritedData,properties:{...inheritedData.properties,tag:'request-permission-for-native-notifications',requireInteraction:true},cssFiles:{...inheritedData.cssFiles,uiWebNotificationsNotificationRequestpermissionfornativenotifications:{file:'ui/web/notifications/notification/requestPermissionForNativeNotifications.css',key:'--loaded--ui-web-notifications-notification-requestpermissionfornativenotifications'}}}}}(function(OcUiWebNotificationsNotificationRequestpermissionfornativenotifications){})(OcUiWebNotificationsNotificationRequestpermissionfornativenotifications||(OcUiWebNotificationsNotificationRequestpermissionfornativenotifications={}));oc.OcUiWebNotificationsNotificationRequestpermissionfornativenotifications=OcUiWebNotificationsNotificationRequestpermissionfornativenotifications;"use strict";class OcJs extends OcComponent{constructor(properties){super(properties)}defaults(){return OcComponent.defaults()};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.jsFiles={}}
1;__fetch(file){return new Promise((resolve,reject)=>{const base=OLEFA.environment.folders.javascript;this.__directFetch(base+'/'+file+'?v='+Core.status.version).then(resolve).catch(reject)})};get(file){if(!this.__internals.jsFiles[file]){if((/^\w+:\/\//u).test(file)){this.__internals.jsFiles[file]=this.__directFetch(file)}else{this.__internals.jsFiles[file]=this.__fetch(file)}};this.__internals.jsFiles[file].catch(()=>{delete this.__internals.jsFiles[file]});return this.__internals.jsFiles[file]};__directFetch(url){return new Promise(function(resolve,reject){const script=document.createElement('script');script.onload=()=>{resolve()};script.onerror=reject;script.async=false;script.src=url;document.body.appendChild(script)})};static defaults(){const inheritedDefaults=OcComponent.defaults();const extendedDefaults={...inheritedDefaults};return extendedDefaults}}oc.OcJs=OcJs;"use strict";class OcApiUsers{static defaults(){return{path:'/ajax/users'}}static getUsers(userIDs){if(!Array.isArray(userIDs)){userIDs=[userIDs]};return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiUsers.defaults().path,{mode:'get-users',APILevel:1,data:{users:userIDs}}))}static async getUser(userId){const response=await this.getUsers([userId]);return response.users[userId]}static searchUsers(string){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiUsers.defaults().path,{mode:'search-users',APILevel:1,data:{string:string}}))}static getUsersUniversal(parameters){const normalizedParameters={...{returnUsers:true,},...parameters};return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiUsers.defaults().path,{mode:'get-users-universal',APILevel:1,data:normalizedParameters}))}}oc.OcApiUsers=OcApiUsers;"use strict";class OcUsers extends OcComponent{defaults(){return OcUsers.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.cache=new OcCache({storageID:'users'});this.__internals.promises={};this.__internals.getUser={queue:new Map(),running:false}};__initialize(properties){this.__initProperties(properties)};get(users){return new Promise((resolve,reject)=>{if(Array.isArray(users)){var result={};var notInCache=[];for(var i=0;i<users.length;++i){const userid=users[i];if(this.__internals.cache.isInCache(userid)){result[userid]=new OcUser(this.__internals.cache.getFromCache(userid))}else{notInCache.push(userid)}};this.__getAjax(notInCache).then((json)=>{for(var userid in json.users){this.__internals.cache.putInCache(userid,json.users[userid]);var User=new OcUser(json.users[userid]);if(User instanceof OcUser){result[userid]=User}};resolve(result)})}else{return reject('OcUsers.get: Expected array but got '+typeof(users))}})};__getAjax(users){return new Promise((resolve,reject)=>{if(Array.isArray(users)){if(users.length){OcApiUsers.getUsers(users).then((resolveData)=>{resolve(resolveData)}).catch((errorCode)=>{reject(errorCode)})}else{resolve({users:{}})}}else{reject('OcUsers.__getAjax: Expected array but got '+typeof(users))}})};getUser(userid){if(this.__internals.cache.isInCache(userid)){return Promise.resolve(new OcUser(this.__internals.cache.getFromCache(userid)))};const existingPromise=this.__internals.getUser.queue.get(String(userid));if(existingPromise){return existingPromise.promise};const newPromise=new OcManualpromise();this.__internals.getUser.queue.set(String(userid),newPromise);this.__getUserLoop();return newPromise.promise};__getUserLoop(){this.__deferOnce('__getUserLoop',()=>{if(this.__internals.getUser.running){return};this.__internals.getUser.running=true;const users=Array.from(this.__internals.getUser.queue.keys());this.__getAjax(users).then((resolveData)=>{for(var entry of Object.entries(resolveData.users)){this.__internals.cache.putInCache(entry[0],entry[1]);const promise=this.__internals.getUser.queue.get(entry[0]);if(promise){promise.resolve(new OcUser(entry[1]));this.__internals.getUser.queue.delete(entry[0])}}}).catch((errorCode)=>{for(var userid of users){const promise=this.__internals.getUser.queue.get(userid);if(promise){promise.reject(errorCode);this.__internals.getUser.queue.delete(userid)}}}).finally(()=>{this.__internals.getUser.running=false;if(this.__internals.getUser.queue.size){this.__getUserLoop()}})})};search(string){return new Promise((resolve,reject)=>{var result={};
1this.__searchAjax(string).then((json)=>{for(var userid in json.users){this.__internals.cache.putInCache(userid,json.users[userid]);var User=new OcUser(json.users[userid]);if(Object.getPrototypeOf(User)==OcUser.prototype){result[userid]=User}};resolve(result)})})};__searchAjax(string){return new Promise(function(resolve,reject){OcApiUsers.searchUsers(string).then((resolveData)=>{resolve(resolveData)}).catch((errorCode)=>{reject(errorCode)})})};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData};return extendedData}}oc.OcUsers=OcUsers;"use strict";class OcUser extends OcComponent{constructor(properties){super(properties)};defaults(){return OcUser.defaults()}__interfaceDefinitions(){const definitions=super.__interfaceDefinitions();const that=this;definitions.usermode={get:function(){return that.__getUsermode()},set:function(a){that.__setUsermode(a)}};definitions.firstname={get:function(){return that.__getFirstname()},set:function(a){that.__setFirstname(a)}};definitions.lastname={get:function(){return that.__getLastname()},set:function(a){that.__setLastname(a)}};definitions.userid={get:function(){return that.__getUserid()},set:function(a){that.__setUserid(a)}};definitions.username={get:function(){return that.__getUsername()},set:function(a){that.__setUsername(a)}};definitions.email={get:function(){return that.__getEmail()},set:function(a){that.__setEmail(a)}};definitions.nick={get:function(){return that.__getNick()},set:function(a){that.__setNick(a)}};definitions.accesslevel={get:function(){return that.__getAccesslevel()},set:function(a){that.__setAccesslevel(a)}};definitions.name={get:function(){return that.__getName()},set:function(a){that.__setName(a)}};definitions.photo={get:function(){return that.__getPhoto()},set:function(a){that.__setPhoto(a)}};definitions.primaryGroup={get:function(){return that.__getPrimaryGroup()},set:function(a){that.__setPrimaryGroup(a)}};definitions.secondaryGroups={get:function(){return that.__getSecondaryGroups()}};definitions.fullname={get:function(){return that.__getFullname()}};return definitions};__setUsermode(value){this.properties.usermode=value};__getUsermode(){return this.properties.usermode};__setFirstname(value){this.properties.firstname=value};__getFirstname(){return this.properties.firstname};__setLastname(value){this.properties.lastname=value};__getLastname(){return this.properties.lastname};__setUserid(value){this.properties.userid=value};__getUserid(){return this.properties.userid};__setUsername(value){this.properties.username=value};__getUsername(){return this.properties.username};__setEmail(value){this.properties.email=value};__getEmail(){return this.properties.email};__setNick(value){this.properties.nick=value};__getNick(){return this.properties.nick};__setAccesslevel(value){this.properties.accesslevel=value};__getAccesslevel(){return this.properties.accesslevel};__setName(value){this.properties.name=value};__getName(){return this.properties.name};__setPhoto(value){this.properties.photo=value};__getPhoto(){return this.properties.photo};__setPrimaryGroup(value){const group=OcGroup.from(value);if(typeof(group.id)=='undefined'){return};this.properties.primaryGroup=group};__getPrimaryGroup(){return this.properties.primaryGroup};__getSecondaryGroups(){return this.properties.secondaryGroups};__getFullname(){const nameFragments=[];if(this.firstname){nameFragments.push(this.firstname)};if(this.lastname){nameFragments.push(this.lastname)};return nameFragments.join(' ')};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.groups={};this.propertyHandlers.usermode=this.__setUsermode;this.propertyHandlers.firstname=this.__setFirstname;this.propertyHandlers.lastname=this.__setLastname;this.propertyHandlers.userid=this.__setUserid;this.propertyHandlers.username=this.__setUsername;this.propertyHandlers.email=this.__setEmail;this.propertyHandlers.nick=this.__setNick;this.propertyHandlers.accesslevel=this.__setAccesslevel;this.propertyHandlers.name=this.__setName;this.propertyHandlers.photo=this.__setPhoto;this.propertyHandlers.primaryGroup=this.__setPrimaryGroup;this.propertyHandlers.secondaryGroups=this.addSecondaryGroup};__initialize(properties){this.__initProperties(properties)};addSecondaryGroup(groupData){let instance=OcGroup.from(groupData);if(typeof(instance.id)=='undefined'){return undefined};if(this.__internals.groups[instance.id]){return undefined};this.__internals.groups[instance.id]=instance;this.__updateProperty__secondaryGroups();return instance};getSecondaryGroup(groupID){return this.__internals.groups[groupID]};removeSecondaryGroup(groupID){if(!this.__internals.groups[groupID]){return};delete this.__internals.groups[groupID];this.__updateProperty__secondaryGroups()};__updateProperty__secondaryGroups(){this.properties.secondaryGroups=Object.values(this.__internals.groups).map(function(x){return x})};getAllGroups(){const groups=[];if(this.primaryGroup){groups.push(this.primaryGroup)};for(var group of this.secondaryGroups){groups.push(group)};return groups};static defaults(){const data=OcComponent.defaults();data.properties.usermode='';data.properties.firstname='';data.properties.lastname='';data.properties.userid='';data.properties.username='';data.properties.email='';data.properties.nick='';data.properties.accesslevel=0;data.properties.name='';data.properties.photo='';data.properties.primaryGroup=null;data.properties.secondaryGroups=[];return data}}OcUser.superClass=OcComponent;oc.OcUser=OcUser;"use strict";class OcGroups extends OcComponent{defaults(){return OcGroups.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,cache:{get:function(){OLEFA.log.deprecated('DEPRECATED! Use this.__internals.cache instead!');return that.__internals.cache}}};return extendedDefinitions}__buildInstanceStructure(){super.__buildInstanceStructure();const defaults=this.defaults();this.__internals.cache=new OcCache({cacheToLive:defaults.cache.ttl,storageID:defaults.cache.id})}get(groups){return new Promise((resolve,reject)=>{if(Array.isArray(groups)){const result={};const notInCache=[];for(var i=0;i<groups.length;++i){const groupid=groups[i];if(this.__internals.cache.isInCache(groupid)){result[groupid]=new OcGroup(this.__internals.cache.getFromCache(groupid))}else{notInCache.push(groupid)}};this.__getAjax(notInCache).then((json)=>{for(var groupid in json.groups){this.__internals.cache.putInCache(groupid,json.groups[groupid]);const Group=new OcGroup(json.groups[groupid]);if(Group instanceof OcGroup){result[groupid]=Group}};resolve(result)}).catch(reject)}else{throw new TypeError('OcGroups#get: Expected array but got '+typeof(groups));}})};__getAjax(groups){return new Promise((resolve,reject)=>{if(Array.isArray(groups)){if(groups.length){OLEFA.ajax({'path':this.defaults().apiURL,'mode':'get_groups','APILevel':1,'data':{groups:JSON.stringify(groups)}}).then((json)=>{resolve(json)}).catch((reason)=>{reject(reason)})}else{resolve({groups:{}})}}else{throw new TypeError('OcGroup#getAjax: Expected array but got '+typeof(groups));}})};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,apiURL:'/ajax/userhome',cache:{id:"groups",ttl:3600000}};return extendedData}};oc.OcGroups=OcGroups;"use strict";class OcGroup extends OcComponent{constructor(properties){super(properties)}defaults(){return OcGroup.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const expandedDefinitions={...inheritedDefinitions,id:{get:function(){return that.__getId()},set:function(a){that.__setId(a)}},name:{get:function(){return that.__getName()},set:function(a){that.__setName(a)}},maxMembers:{get:function(){return that.__getMaxMembers()},set:function(a){that.__setMaxMembers(a)}},parent:{get:function(){return that.__getParent()},set:function(a){that.__setParent(a)}},hidden:{get:function(){return that.__getHidden()},set:function(a){that.__setHidden(a)}},modified:{get:function(){return that.__getModified()},set:function(a){that.__setModified(a)}}};return expandedDefinitions};__setId(value){this.properties.id=value};__getId(){return this.properties.id};__setName(value){this.properties.name=value};__getName(){return this.properties.name};__setMaxMembers(value){this.properties.maxMembers=value};__getMaxMembers(){return this.properties.maxMembers};__setParent(value){this.properties.parent=value};__getParent(){return this.properties.parent};__setHidden(value){this.properties.hidden=value};__getHidden(){return this.properties.hidden};__setModified(value){this.properties.modified=value};__getModified(){return this.properties.modified};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.id=this.__setId;this.propertyHandlers.name=this.__setName;
1this.propertyHandlers.maxMembers=this.__setMaxMembers;this.propertyHandlers.parent=this.__setParent;this.propertyHandlers.hidden=this.__setHidden;this.propertyHandlers.modified=this.__setModified};__initialize(properties){this.__initProperties(properties)};static toInstance(value){OLEFA.log.deprecated('Deprecated! Use OcGroup.from() instead');return OcGroup.from(value)};static from(value){let instance=value;if(!OcDatatype.is('OcComponent',value)||!(value instanceof OcGroup)){instance=new OcGroup(value)};return instance}static defaults(){const inheritedDefaults=OcComponent.defaults();const expandedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,id:'',name:'',maxMembers:0,parent:undefined,hidden:'0',modified:''}};return expandedDefaults}}OcGroup.superClass=OcComponent;oc.OcGroup=OcGroup;function createOlefaButtons(pRoot){var root=(typeof(pRoot)=='undefined')?'body':pRoot;jQuery(root).find(':not(".headerdialog-controls") button.oljq-button').add(jQuery(root).filter('button.oljq-button')).each(function(){const jThis=jQuery(this);const attributes=OLEFA.basics.getAllSetAttributesFromElement(this);let classes='';let icon='';if(typeof(attributes.class)!='undefined'){classes=attributes.class;if(jThis.is('.oljq-button-plus')){icon='md:add'}else if(jThis.is('.oljq-button-minus')){icon='md:remove'}else if(jThis.is('.oljq-button-refresh')){icon='md:refresh'}else if(jThis.is('.oljq-button-trash')){icon='md:delete'}else if(jThis.is('.oljq-button-search')){icon='md:search'}else if(jThis.is('.oljq-button-power')){icon='md:power_settings_new'}else if(jThis.is('.oljq-button-arrowthick-1-e')){icon='md:east'}else if(jThis.is('.oljq-button-cancel')){icon='md:block'}else if(jThis.is('.oljq-button-arrowthick-1-w')){icon='md:west'}else if(jThis.is('.oljq-button-arrowreturnthick-1-w')){icon='md:keyboard_return'}else if(jThis.is('.oljq-button-check')){icon='md:check'}else if(jThis.is('.oljq-button-pencil')){icon='md:edit'}else if(jThis.is('.oljq-button-print')){icon='md:print'}else if(jThis.is('.oljq-button-calculator')){icon='md:calculate'}else if(jThis.is('.oljq-button-wrench')){icon='md:build'}else if(jThis.is('.oljq-button-unlock')){icon='md:lockopen'}else if(jThis.is('.oljq-button-link')){icon='md:link'}else if(jThis.is('.oljq-button-disk')){icon='md:save'}else if(jThis.is('.oljq-button-arrow-4-diag')){icon='md:open_with'}else if(jThis.is('.oljq-button-triangle-1-e')){icon='md:arrow_right'}else if(jThis.is('.oljq-button-triangle-1-s')){icon='md:arrow_drop_down'}else if(jThis.is('.oljq-button-triangle-1-w')){icon='md:arrow_left'}else if(jThis.is('.oljq-button-triangle-1-n')){icon='md:arrow_drop_up'}else if(jThis.is('.oljq-button-calendar')){icon='md:event'}else if(jThis.is('.oljq-button-locked')){icon='md:lock'}else if(jThis.is('.oljq-button-copy')){icon='md:content_copy'}else if(jThis.is('.oljq-button-help')){icon='md:help'}else if(jThis.is('.oljq-button-comment')){icon='md:comment'}delete attributes.class};const buttonAttributes={label:this.innerHTML,style:(classes.includes('oljq-button-raised')?'contained':'outlined'),icon:icon};const buttonType=jThis.attr("type");if(buttonType){buttonAttributes.type=buttonType};const button=new OcMdButtonStandard(buttonAttributes);
1if(classes!=''){button.base.addClass(classes)};button.base.attr(attributes).removeClass('oljq-button');jQuery(this).replaceWith(button.base)});jQuery(root).find('.oljq-hold').each(function(){var timer=undefined;var clicky=undefined;var startHoldButton=function(e){if(clicky==undefined){var caller=this;clicky=Date.now();clearTimeout(timer);timer=setTimeout(function(){jQuery(caller).trigger('click');jQuery(caller).trigger('clickHold')},2000);jQuery(this).addClass('animation-fill-left-to-right-filling');e.preventDefault()}};var stopHoldButton=function(e){clearTimeout(timer);jQuery(this).removeClass('animation-fill-left-to-right-filling');if(Date.now()-clicky<200){magictooltip(this,OLEFA.i18n.get('hold_to_confirm'))};clicky=undefined;e.preventDefault()};jQuery(this).addClass('animation-fill-left-to-right').on('mousedown touchstart',function(e){startHoldButton.call(this,e)}).on('keydown',function(e){if(e.which==32){startHoldButton.call(this,e)}}).on('mouseup mouseout touchend',function(e){stopHoldButton.call(this,e)}).on('keyup',function(e){if(e.which==32){stopHoldButton.call(this,e)}}).on('click',function(e){jQuery(this).removeClass('animation-fill-left-to-right-filling');if(e.hasOwnProperty('originalEvent')){e.preventDefault();return false}else{if(jQuery(this).is('a')){window.location=jQuery(this).prop('href')}}})});jQuery(root).find('.oljq-back').on('click',function(){if(!!(window.history&&history.pushState)){window.history.back()}})};"use strict";class OcWsclientLegacy{constructor(wshost,host,sessionid){this.instanceID=OLEFA.basics.generateID();this.plTypes={AUTH:1,MESSAGE:2,SUBSCRIBE:3,UNSUBSCRIBE:4,CHATTYPING:5};this.queued=[];this.subscriptions=new Object();var secure=(window.location.protocol=='https:')?true:false;this.protocol=(secure)?'wss':'ws';this.wshost=wshost||'';this.port=(secure)?443:80;this.sessionID=sessionid;this.olefaProtocol=(secure)?'https':'http';this.olefahost=host||'';this.authed=false;this.serverid=0;this.debug=false;this.connectionRetry=0;this.reconnectDelay=3000;var that=this;wsclientCronTrigger=function(){that.connect()};this.events=jQuery('<div></div>');this.initEvents();this.initEventForwarder();if(this.sessionID){this.connect()}}initEvents(){var that=this;that.events.off('.core').on('olefa-websocket-connection-open.core',function(e,wsEvent){that.auth()}).on('olefa-websocket-connection-closed.core',function(e,wsEvent){that.disableServices()}).on('olefa-websocket-connection-closed.core',function(e,data){that.authed=false;that.autoReconnect(data.data)}).on('olefa-websocket-message-raw.core',function(e,data){that.onWSMessage(data)}).on('olefa-websocket-auth-success.core',function(){that.reinitializeServices()})};initEventForwarder(){this.events.off('.forwarder').on('olefa-websocket-auth-error.forwarder',function(e,data){jQuery(document).trigger('olefa-session-invalid',data)}).on('olefa-websocket-connection-closed.forwarder',function(e,data){jQuery(document).trigger('olefa-websocket-connection-closed',data)}).on('olefa-websocket-message-NOTIFICATION.forwarder',function(e,data){jQuery(document).trigger('olefa-notification',data)}).on('olefa-websocket-message-CHATMESSAGE.forwarder',function(e,data){jQuery(document).trigger('olefa-conversation-message',data)}).on('olefa-websocket-message-CHATMESSAGESEEN.forwarder',function(e,data){jQuery(document).trigger('olefa-conversation-seen',data)}).on('olefa-websocket-message-CHATMEMBERSHIP.forwarder',function(e,data){jQuery(document).trigger('olefa-conversation-membership',data);switch(data.type){case'1':jQuery(document).trigger('olefa-conversation-membership-join',data);break;case'2':jQuery(document).trigger('olefa-conversation-membership-leave',data);break;case'3':jQuery(document).trigger('olefa-conversation-membership-kick',data);break}}).on('olefa-websocket-message-CHATTYPING.forwarder',function(e,data){jQuery(document).trigger('olefa-conversation-typing',data);if(data.action){jQuery(document).trigger('olefa-conversation-typing-start',data)}else{jQuery(document).trigger('olefa-conversation-typing-stop',data)}}).on('olefa-websocket-message-VIDEOENCODESTATE.forwarder',function(e,data){jQuery(document).trigger('olefa-videoencode-state-change',data);if(data.state=='running'){jQuery(document).trigger('olefa-videoencode-state-running',data)}else if(data.state=='ready'){jQuery(document).trigger('olefa-videoencode-state-ready',data)}else if(data.state=='broken'){jQuery(document).trigger('olefa-videoencode-state-broken',data)}}).on('olefa-websocket-message-ASSIGNMENTCREATE.forwarder',function(e,data){jQuery(document).trigger('olefa-assignment-create',data)}).on('olefa-websocket-message-ASSIGNMENTUPDATE.forwarder',function(e,data){jQuery(document).trigger('olefa-assignment-update',data)}).on('olefa-websocket-message-ASSIGNMENTDELETE.forwarder',function(e,data){jQuery(document).trigger('olefa-assignment-delete',data)}).on('olefa-websocket-message-ASSIGNMENTINTERACTION.forwarder',function(e,data){jQuery(document).trigger('olefa-assignment-interaction',data)}).on('olefa-websocket-message-CALUPDATES.forwarder',function(e,data){if(data.action=='add'){jQuery(document).trigger('olefa-calendar-ad
1d',data)}else if(data.action=='delete'){jQuery(document).trigger('olefa-calendar-delete',data)}else if(data.action=='update'){jQuery(document).trigger('olefa-calendar-update',data)}}).on('olefa-websocket-message-DMEUPDATES.forwarder',function(e,data){jQuery(document).trigger('olefa-dme-update',data)}).on('olefa-websocket-message-TIPARLOUPDATES_API_1.forwarder',function(e,data){jQuery(document).trigger('olefa-tiparlo-'+data.action,[data.data,data.meta])}).on('olefa-websocket-message-STORYBOARDUPDATES_API_1.forwarder',function(e,data){jQuery(document).trigger('olefa-storyboard-'+data.action,[data.data,data.meta])})};connect(){if(typeof(window.WebSocket)=='undefined'){return};if(!this.sessionID){return};if(this.ws instanceof olefaWSConnection){this.ws.closeConnections()};this.ws=new olefaWSConnection(this.protocol,this.wshost,this.port);var that=this;this.ws.onopen=function(e){that.events.trigger('olefa-websocket-connection-open',{data:e})};this.ws.onclose=function(e){that.events.trigger('olefa-websocket-connection-closed',{data:e})};this.ws.onmessage=function(event){that.events.trigger('olefa-websocket-message-raw',{data:event.data})}};auth(){if(this.debug){console.log("Connection open!")};this.sendMessage(this.plTypes.AUTH,{wsid:this.sessionID,protocol:this.olefaProtocol,host:this.olefahost,serverid:0})};autoReconnect(e){if(this.debug){console.log("Connection closed",e)};++this.connectionRetry;if(1==2&&(e.reason=="Session was killed by OLEFA"||e.reason=='Authentication failed!')){this.events.trigger('olefa-websocket-auth-error',{reason:e.reason})}else if(e.reason=='Closed intentionally by client'){}else{if(this.connectionRetry==3){this.events.trigger('olefa-websocket-connection-issue')};this.delayedReconnect()}};onWSMessage(e){if(typeof e.data=='string'){if(this.debug){console.log('String message received',e,e.data)};var payload;try{var hash=JSON.parse(e.data);if(typeof(hash)=='object'){payload=hash}}catch(e){console.log('Invalid answer from Websocket.',e)};if(typeof(payload)=='object'&&payload!=null){switch(payload.type){case this.plTypes.AUTH:this.onWSMessageAuth(payload.data);break;case this.plTypes.MESSAGE:this.onWSMessagePayload(payload.data);break;case this.plTypes.SUBSCRIBE:break;case this.plTypes.UNSUBSCRIBE:break;case this.plTypes.CHATTYPING:this.onWSMessagePayload({type:"CHATTYPING",data:payload.data});default:break}}}else{console.log('Invalid answer from Websocket. Expected string, websocket returned:',e.data)}};onWSMessageAuth(payload){if(payload.status=='confirm'){this.authed=true;this.serverid=payload.serverid;this.connectionRetry=0;this.events.trigger('olefa-websocket-auth-success')}else{this.sessionID=undefined;this.events.trigger('olefa-websocket-auth-error',{reason:'Authentication failed!'})}};onWSMessagePayload(payload){if(typeof(payload.type)!='undefined'){this.events.trigger('olefa-websocket-message-'+payload.type,payload.data)}};disableServices(){for(var service in this.subscriptions){this.subscriptions[service].status=0}};reinitializeServices(){for(var i=0;i<this.queued.length;++i){this.sendMessage(this.queued[i].type,this.queued[i].data)};for(var service in this.subscriptions){if(!this.subscriptions[service].status){this.subscribeToService(service,this.subscriptions[service].data)}}};sendMessage(type,data){if(this.authed||type==this.plTypes.AUTH){var response={type:type,data:data};if(type==this.plTypes.SUBSCRIBE){this.subscriptions[data.service].status=1};var response_string=JSON.stringify(response);this.ws.send(response_string);if(this.debug){console.log("Sent message: "+response_string)}}else{this.queued.push({type:type,data:data})}};subscribeToService(service,data){if(typeof(this.subscriptions[service])!='undefined'&&this.subscriptions[service].status==1&&service!='VIDEOENCODESTATE'){return};this.subscriptions[service]={status:0,data:data};this.sendMessage(this.plTypes.SUBSCRIBE,{service:service,data:data})};unsubscribeToService(service,data){this.sendMessage(this.plTypes.UNSUBSCRIBE,{service:service,data:data});if(typeof(this.subscriptions[service])!='undefined'){delete this.subscriptions[service]}};chatTyping(state,room,users){this.sendMessage(this.plTypes.CHATTYPING,{typing:state,room:room,participants:users})};delayedReconnect(){OLEFA.crontab.addJob({id:'ws-reconnect',inMS:this.reconnectDelay,instances:1,onTick:'wsclientCronTrigger'})}}var wsclientCronTrigger=function(){};oc.OcWsclient=OcWsclientLegacy;"use strict";class OcWsConnectionLegacy{constructor(protocol,wshost,port){var wsconnect=this;this.protocol=protocol;this.wshost=wshost;this.port=port;this.modes={sharedWorker:1,websocket:2};if(1==2&&window.SharedWorker){this.mode=this.modes.sharedWorker;this.sw=new SharedWorker(OLEFA.environment.folders.javascript+'/librarys/wsclient.sharedworker.js?v='+Core.status.version);this.sw.port.onmessage=function(e){if(e.data[0]=='onopen'){wsconnect.onopen(JSON.parse(e.data[1]))}else if(e.data[0]=='onclose'){wsconnect.onclose(JSON.parse(e.data[1]))}else if(e.data[0]=='onmessage'){wsconnect.onmessage(JSON.parse(e.data[1]))}else if(e.data[0]=='ping'){wsconnect.onping()}};this.sw.port.start();this.sw.port.postMessage(['connect',this.protocol+"://"+this.wshost+":"+this.port+"/websocket/"])}else{this.mode=this.modes.websocket;this.ws=new WebSocket(this.protocol+"://"+this.wshost+":"+this.port+"/websocket/");this.ws.onopen=function(e){wsconnect.onopen(e)};
1this.ws.onclose=function(e){wsconnect.onclose(e)};this.ws.onmessage=function(e){wsconnect.onmessage(e)}}}closeConnections(){if(this.mode==this.modes.sharedWorker&&this.sw){this.sw.port.close()}else if(this.ws){this.ws.close(1000,'Closed intentionally by client')}};onping(){this.sw?.port.postMessage(['ping'])};send(message){if(this.mode==this.modes.sharedWorker&&this.sw){this.sw.port.postMessage(['send',message])}else if(this.ws){this.ws.send(message)}};onopen(e){};onclose(e){};onmessage(e){}}Oc.OcWsConnection=OcWsConnectionLegacy;var olefaWSConnection=OcWsConnectionLegacy;var defaults={tagName:'a',newLine:'\n',target:'_blank',linkClass:null,linkClasses:[],linkAttributes:null,rel:'noopener'};function Linkified(element,options){this._defaults=defaults;this.element=element;this.setOptions(options);this.init()}Linkified.prototype={constructor:Linkified,init:function(){if(this.element.nodeType===1){Linkified.linkifyNode.call(this,this.element)}else{this.element=Linkified.linkify.call(this,this.element.toString())}},setOptions:function(options){this.settings=Linkified.extendSettings(options,this.settings)},toString:function(){return this.element.toString()}};Linkified.extendSettings=function(options,settings){var prop;settings=settings||{};for(prop in defaults){if(!settings[prop]){settings[prop]=defaults[prop]}}for(prop in options){settings[prop]=options[prop]}return settings};Linkified.linkMatch=new RegExp(['(','\\s|[^a-zA-Z0-9.\\+_\\/"\\>\\-]|^',')(?:','(','[a-zA-Z0-9\\+_\\-]+','(?:','\\.[a-zA-Z0-9\\+_\\-]+',')*@',')?(','http:\\/\\/|https:\\/\\/|ftp:\\/\\/',')?(','(?:(?:[a-z0-9][a-z0-9_%\\-_+]*\\.)+)',')(','(?:com|ca|co|edu|gov|net|org|dev|biz|cat|int|pro|tel|mil|aero|asia|coop|info|jobs|mobi|museum|name|post|travel|local|[a-z]{2,4})',')(','(?::\\d{1,5})',')?(','(?:','[\\/|\\?]','(?:','[\\-a-zA-Z0-9_%#*&+=~!?,;:.\\/]*',')*',')','[\\-\\/a-zA-Z0-9_%#*&+=~]','|','\\/?',')?',')(','[^a-zA-Z0-9\\+_\\/"\\<\\-]|$',')'].join(''),'gi');Linkified.emailLinkMatch=/(<[a-z]+ href=\")(http:\/\/)([a-zA-Z0-9\+_\-]+(?:\.[a-zA-Z0-9\+_\-]+)*@)/gi;Linkified.linkify=function(text,options){var attr,settings,linkClasses,linkReplace=[];if(this.constructor===Linkified&&this.settings){settings=this.settings;if(options){settings=Linkified.extendSettings(options,settings)}}else{settings=Linkified.extendSettings(options)}if(settings.linkClass){linkClasses=settings.linkClass.split(/\s+/)}else{linkClasses=[]}linkClasses.push.apply(linkClasses,settings.linkClasses);text=text.replace(/</g,'<').replace(/(\s)/g,'$1$1');linkReplace.push('$1<'+settings.tagName,'href="http://$2$4$5$6$7"');linkReplace.push('class="linkified'+(linkClasses.length>0?' '+linkClasses.join(' '):'')+'"');if(settings.target){linkReplace.push('target="'+settings.target+'"')}if(settings.rel){linkReplace.push('rel="'+settings.rel+'"')}for(attr in settings.linkAttributes){linkReplace.push([attr,'="',settings.linkAttributes[attr].replace(/\"/g,'"').replace(/\$/g,'$'),'"'].join(''))}linkReplace.push('>$2$3$4$5$6$7</'+settings.tagName+'>$8');text=text.replace(Linkified.linkMatch,linkReplace.join(' '));text=text.replace(Linkified.emailLinkMatch,'$1mailto:$3');text=text.replace(/(\s){2}/g,'$1');text=text.replace(/\n/g,settings.newLine);return text};Linkified.linkifyNode=function(node){var children,childNode,childCount,dummyElement,i;if(node&&typeof node==='object'&&node.nodeType===1&&node.tagName.toLowerCase()!=='a'&&!/[^\s]linkified[\s$]/.test(node.className)){children=[];dummyElement=Linkified._dummyElement||document.createElement('div');childNode=node.firstChild;childCount=node.childElementCount;while(childNode){if(childNode.nodeType===3){while(dummyElement.firstChild){dummyElement.removeChild(dummyElement.firstChild)}dummyElement.innerHTML=Linkified.linkify.call(this,childNode.textContent||childNode.innerText||childNode.nodeValue);children.push.apply(children,dummyElement.childNodes);while(dummyElement.firstChild){dummyElement.removeChild(dummyElement.firstChild)}}else if(childNode.nodeType===1){children.push(Linkified.linkifyNode.call(this,childNode))}else{children.push(childNode)}childNode=childNode.nextSibling}while(node.firstChild){node.removeChild(node.firstChild)}for(i=0;i<children.length;i++){node.appendChild(children[i])}}return node};Linkified._dummyElement=document.createElement('div');jQuery.fn.linkify=function(options){return this.each(function(){var linkified;if(linkified=jQuery.data(this,'plugin-linkify')){linkified.setOptions(options);linkified.init()}else{jQuery.data(this,'plugin-linkify',new Linkified(this,options))}})};jQuery.fn.linkify.Constructor=Linkified;jQuery(window).on('load',function(){jQuery('[data-linkify]').each(function(){var $this=jQuery(this), $target,target=$this.attr('data-linkify'),options={tagName: $this.attr('data-linkify-tagname'),newLine: $this.attr('data-linkify-newline'),target: $this.attr('data-linkify-target'),linkClass: $this.attr('data-linkify-linkclass')};for(var option in options){if(typeof options[option]==='undefined'){delete options[option]}} $target=target==='this'? $this: $this.find(target); $target.linkify(options)})});jQuery('body').on('click','.linkified',function(){var $link=jQuery(this),url=$link.attr('href'),isEmail=/^mailto:/i.test(url),target=$link.attr('target');if(isEmail){window.location.href=url}else{window.open(url,target)}return false});if(this.JpegMeta){throw Error("Library included multiple times");};var JpegMeta={};JpegMeta.stringIsClean=function stringIsClean(str){for(var i=0;i<str.length;i++){if(str.charCodeAt(i)<0x20){return false}};return true};JpegMeta.parseNum=function parseNum(endian,data,offset,size){var i;var ret;var big_endian=(endian===">");if(offset===undefined)offset=0;if(size===undefined)size=data.length-offset;for(big_endian?i=offset:i=offset+size-1;big_endian?i<offset+size:i>=offset;big_endian?i++:i--){ret<<=8;ret+=data.charCodeAt(i)};return ret};JpegMeta.parseSnum=function parseSnum(endian,data,offset,size){var i;var ret;var neg;var big_endian=(endian===">");if(offset===undefined)offset=0;if(size===undefined)size=data.length-offset;for(big_endian?i=offset:i=offset+size-1;big_endian?i<offset+size:i>=offset;big_endian?i++:i--){if(neg===undefined){neg=(data.charCodeAt(i)&0x80)===0x80};ret<<=8;ret+=neg?~data.charCodeAt(i)&0xff:data.charCodeAt(i)};if(neg){ret+=1;ret*=-1};return ret};JpegMeta.Rational=function Rational(num,den){this.num=num;this.den=den||1;return this};JpegMeta.Rational.prototype.toString=function toString(){if(this.num===0){return""+this.num};if(this.den===1){return""+this.num};if(this.num===1){return this.num+" / "+this.den};return this.num/this.den};JpegMeta.Rational.prototype.asFloat=function asFloat(){return this.num/this.den};JpegMeta.MetaGroup=function MetaGroup(fieldName,description){this.fieldName=fieldName;this.description=description;this.metaProps={};return this};JpegMeta.MetaGroup.prototype._addProperty=function _addProperty(fieldName,description,value){var property=new JpegMeta.MetaProp(fieldName,description,value);this[property.fieldName]=property;this.metaProps[property.fieldName]=property};JpegMeta.MetaGroup.prototype.toString=function toString(){return"[MetaGroup "+this.description+"]"};JpegMeta.MetaProp=function MetaProp(fieldName,description,value){this.fieldName=fieldName;this.description=description;this.value=value;return this};JpegMeta.MetaProp.prototype.toString=function toString(){return""+this.value};this.JpegMeta.JpegFile=function JpegFile(binary_data,filename){var break_segment=this._SOS;this.metaGroups={};this._binary_data=binary_data;this.filename=filename;var pos=0;var pos_start_of_segment=0;var delim;var mark;var _mark;var segsize;var headersize;var mark_code;var mark_fn;if(this._binary_data.slice(0,2)!==this._SOI_MARKER){throw new Error("Doesn't look like a JPEG file. First two bytes are "+this._binary_data.charCodeAt(0)+","+this._binary_data.charCodeAt(1)+".");};pos+=2;while(pos<this._binary_data.length){delim=this._binary_data.charCodeAt(pos++);mark=this._binary_data.charCodeAt(pos++);pos_start_of_segment=pos;if(delim!=this._DELIM){break};if(mark===break_segment){break};headersize=JpegMeta.parseNum(">",this._binary_data,pos,2);pos+=headersize;while(pos<this._binary_data.length){delim=this._binary_data.charCodeAt(pos++);if(delim==this._DELIM){_mark=this._binary_data.charCodeAt(pos++);if(_mark!=0x0){pos-=2;break}}};segsize=pos-pos_start_of_segment;if(this._markers[mark]){mark_code=this._markers[mark][0];mark_fn=this._markers[mark][1]}else{mark_code="UNKN";mark_fn=undefined};if(mark_fn){this[mark_fn](mark,pos_start_of_segment+2,segsize-2)}};if(this.general===undefined){throw Error("Invalid JPEG file.");};return this};this.JpegMeta.JpegFile.prototype.toString=function(){return"[JpegFile "+this.filename+" "+this.general.type+" "+this.general.pixelWidth+"x"+this.general.pixelHeight+" Depth: "+this.general.depth+"]"};this.JpegMeta.JpegFile.prototype._SOI_MARKER='\xff\xd8';this.JpegMeta.JpegFile.prototype._DELIM=0xff;this.JpegMeta.JpegFile.prototype._EOI=0xd9;this.JpegMeta.JpegFile.prototype._SOS=0xda;this.JpegMeta.JpegFile.prototype._sofHandler=function _sofHandler(mark,pos){if(this.general!==undefined){throw Error("Unexpected multiple-frame image");};this._addMetaGroup("general","General");this.general._addProperty("depth","Depth",JpegMeta.parseNum(">",this._binary_data,pos,1));this.general._addProperty("pixelHeight","Pixel Height",JpegMeta.parseNum(">",this._binary_data,pos+1,2));this.general._addProperty("pixelWidth","Pixel Width",JpegMeta.parseNum(">",this._binary_data,pos+3,2));this.general._addProperty("type","Type",this._markers[mark][2])};this.JpegMeta.JpegFile.prototype._JFIF_IDENT="JFIF\x00";this.JpegMeta.JpegFile.prototype._JFXX_IDENT="JFXX\x00";this.JpegMeta.JpegFile.prototype._EXIF_IDENT="Exif\x00";this.JpegMeta.JpegFile.prototype._types={1:["BYTE",1],2:["ASCII",1],3:["SHORT",2],4:["LONG",4],5:["RATIONAL",8],6:["SBYTE",1],7:["UNDEFINED",1],8:["SSHORT",2],9:["SLONG",4],10:["SRATIONAL",8],11:["FLOAT",4],12:["DOUBLE",8]};this.JpegMeta.JpegFile.prototype._tifftags={256:["Image width","ImageWidth"],257:["Image height","ImageLength"],258:["Number of bits per component","BitsPerSample"],259:["Compression scheme","Compression",{1:"uncompressed",6:"JPEG compression"}],262:["Pixel composition","PhotmetricInerpretation",{2:"RGB",6:"YCbCr"}],274:["Orientation of image","Orientation",{1:"Normal",2:"Reverse?",3:"Upside-down",4:"Upside-down Reverse",5:"90 degree CW",6:"90 degree CW reverse",7:"90 degree CCW",8:"90 degree CCW reverse"}],277:["Number of components","SamplesPerPixel"],284:["Image data arrangement","PlanarConfiguration",{1:"chunky format",2:"planar format"}
1],530:["Subsampling ratio of Y to C","YCbCrSubSampling"],531:["Y and C positioning","YCbCrPositioning",{1:"centered",2:"co-sited"}],282:["X Resolution","XResolution"],283:["Y Resolution","YResolution"],296:["Resolution Unit","ResolutionUnit",{2:"inches",3:"centimeters"}],273:["Image data location","StripOffsets"],278:["Number of rows per strip","RowsPerStrip"],279:["Bytes per compressed strip","StripByteCounts"],513:["Offset to JPEG SOI","JPEGInterchangeFormat"],514:["Bytes of JPEG Data","JPEGInterchangeFormatLength"],301:["Transfer function","TransferFunction"],318:["White point chromaticity","WhitePoint"],319:["Chromaticities of primaries","PrimaryChromaticities"],529:["Color space transformation matrix coefficients","YCbCrCoefficients"],532:["Pair of black and white reference values","ReferenceBlackWhite"],306:["Date and time","DateTime"],270:["Image title","ImageDescription"],271:["Make","Make"],272:["Model","Model"],305:["Software","Software"],315:["Person who created the image","Artist"],316:["Host Computer","HostComputer"],33432:["Copyright holder","Copyright"],34665:["Exif tag","ExifIfdPointer"],34853:["GPS tag","GPSInfoIfdPointer"]};this.JpegMeta.JpegFile.prototype._exiftags={36864:["Exif Version","ExifVersion"],40960:["FlashPix Version","FlashpixVersion"],40961:["Color Space","ColorSpace"],37121:["Meaning of each component","ComponentsConfiguration"],37122:["Compressed Bits Per Pixel","CompressedBitsPerPixel"],40962:["Pixel X Dimension","PixelXDimension"],40963:["Pixel Y Dimension","PixelYDimension"],37500:["Manufacturer notes","MakerNote"],37510:["User comments","UserComment"],40964:["Related audio file","RelatedSoundFile"],36867:["Date Time Original","DateTimeOriginal"],36868:["Date Time Digitized","DateTimeDigitized"],37520:["DateTime subseconds","SubSecTime"],37521:["DateTimeOriginal subseconds","SubSecTimeOriginal"],37522:["DateTimeDigitized subseconds","SubSecTimeDigitized"],33434:["Exposure time","ExposureTime"],33437:["FNumber","FNumber"],34850:["Exposure program","ExposureProgram"],34852:["Spectral sensitivity","SpectralSensitivity"],34855:["ISO Speed Ratings","ISOSpeedRatings"],34856:["Optoelectric coefficient","OECF"],37377:["Shutter Speed","ShutterSpeedValue"],37378:["Aperture Value","ApertureValue"],37379:["Brightness","BrightnessValue"],37380:["Exposure Bias Value","ExposureBiasValue"],37381:["Max Aperture Value","MaxApertureValue"],37382:["Subject Distance","SubjectDistance"],37383:["Metering Mode","MeteringMode"],37384:["Light Source","LightSource"],37385:["Flash","Flash"],37386:["Focal Length","FocalLength"],37396:["Subject Area","SubjectArea"],41483:["Flash Energy","FlashEnergy"],41484:["Spatial Frequency Response","SpatialFrequencyResponse"],41486:["Focal Plane X Resolution","FocalPlaneXResolution"],41487:["Focal Plane Y Resolution","FocalPlaneYResolution"],41488:["Focal Plane Resolution Unit","FocalPlaneResolutionUnit"],41492:["Subject Location","SubjectLocation"],41493:["Exposure Index","ExposureIndex"],41495:["Sensing Method","SensingMethod"],41728:["File Source","FileSource"],41729:["Scene Type","SceneType"],41730:["CFA Pattern","CFAPattern"],41985:["Custom Rendered","CustomRendered"],41986:["Exposure Mode","Exposure Mode"],41987:["White Balance","WhiteBalance"],41988:["Digital Zoom Ratio","DigitalZoomRatio"],41989:["Focal length in 35 mm film","FocalLengthIn35mmFilm"],41990:["Scene Capture Type","SceneCaptureType"],41991:["Gain Control","GainControl"],41992:["Contrast","Contrast"],41993:["Saturation","Saturation"],41994:["Sharpness","Sharpness"],41995:["Device settings description","DeviceSettingDescription"],41996:["Subject distance range","SubjectDistanceRange"],42016:["Unique image ID","ImageUniqueID"],40965:["Interoperability tag","InteroperabilityIFDPointer"]};this.JpegMeta.JpegFile.prototype._gpstags={0:["GPS tag version","GPSVersionID"],1:["North or South Latitude","GPSLatitudeRef"],2:["Latitude","GPSLatitude"],3:["East or West Longitude","GPSLongitudeRef"],4:["Longitude","GPSLongitude"],5:["Altitude reference","GPSAltitudeRef"],6:["Altitude","GPSAltitude"],7:["GPS time (atomic clock)","GPSTimeStamp"],8:["GPS s
1atellites usedd for measurement","GPSSatellites"],9:["GPS receiver status","GPSStatus"],10:["GPS mesaurement mode","GPSMeasureMode"],11:["Measurement precision","GPSDOP"],12:["Speed unit","GPSSpeedRef"],13:["Speed of GPS receiver","GPSSpeed"],14:["Reference for direction of movement","GPSTrackRef"],15:["Direction of movement","GPSTrack"],16:["Reference for direction of image","GPSImgDirectionRef"],17:["Direction of image","GPSImgDirection"],18:["Geodetic survey data used","GPSMapDatum"],19:["Reference for latitude of destination","GPSDestLatitudeRef"],20:["Latitude of destination","GPSDestLatitude"],21:["Reference for longitude of destination","GPSDestLongitudeRef"],22:["Longitude of destination","GPSDestLongitude"],23:["Reference for bearing of destination","GPSDestBearingRef"],24:["Bearing of destination","GPSDestBearing"],25:["Reference for distance to destination","GPSDestDistanceRef"],26:["Distance to destination","GPSDestDistance"],27:["Name of GPS processing method","GPSProcessingMethod"],28:["Name of GPS area","GPSAreaInformation"],29:["GPS Date","GPSDateStamp"],30:["GPS differential correction","GPSDifferential"]};this.JpegMeta.JpegFile.prototype._iptctags={0:['Record Version','recordVersion'],3:['Object Type Reference','objectType'],4:['Object Attribute Reference','objectAttribute'],5:['Object Name','objectName'],7:['Edit Status','editStatus'],8:['Editorial Update','editorialUpdate'],10:['Urgency','urgency'],12:['Subject Reference','subjectRef'],15:['Category','category'],20:['Supplemental Category','supplCategory'],22:['Fixture Identifier','fixtureID'],25:['Keywords','keywords'],26:['Content Location Code','contentLocCode'],27:['Content Location Name','contentLocName'],30:['Release Date','releaseDate'],35:['Release Time','releaseTime'],37:['Expiration Date','expirationDate'],38:['Expiration Time','expirationTime'],40:['Special Instructions','specialInstructions'],42:['Action Advised','actionAdvised'],45:['Reference Service','refService'],47:['Reference Date','refDate'],50:['Reference Number','refNumber'],55:['Date Created','dateCreated'],60:['Time Created','timeCreated'],62:['Digital Creation Date','digitalCreationDate'],63:['Digital Creation Time','digitalCreationTime'],65:['Originating Program','originatingProgram'],70:['Program Version','programVersion'],75:['Object Cycle','objectCycle'],80:['By-line','byline'],85:['By-line Title','bylineTitle'],90:['City','city'],92:['Sub-location','sublocation'],95:['Province/State','state'],100:['Country Code','countryCode'],101:['Country Name','countryName'],103:['Original Transmission Reference','origTransRef'],105:['Headline','headline'],110:['Credit','credit'],115:['Source','source'],116:['Copyright Notice','copyrightNotice'],118:['Contact','contact'],120:['Caption/Abstract','caption'],122:['Writer/Editor','writerEditor'],125:['Rasterized Caption','rasterizedCaption'],130:['Image Type','imageType'],131:['Image Orientation','imageOrientation'],135:['Language Identifier','languageID'],150:['Audio Type','audioType'],151:['Audio Sampling Rate','audioSamplingRate'],152:['Audio Sampling Resolution','audioSamplingRes'],153:['Audio Duration','audioDuration'],154:['Audio Outcue','audioOutcue'],200:['Preview File Format','previewFileFormat'],201:['Preview File Format Version','previewFileFormatVer'],202:['Preview Data','previewData']};this.JpegMeta.JpegFile.prototype._markers={0xc0:["SOF0","_sofHandler","Baseline DCT"],0xc1:["SOF1","_sofHandler","Extended sequential DCT"],0xc2:["SOF2","_sofHandler","Progressive DCT"],0xc3:["SOF3","_sofHandler","Lossless (sequential)"],0xc5:["SOF5","_sofHandler","Differential sequential DCT"],0xc6:["SOF6","_sofHandler","Differential progressive DCT"],0xc7:["SOF7","_sofHandler","Differential lossless (sequential)"],0xc8:["JPG",null,"Reserved for JPEG extensions"],0xc9:["SOF9","_sofHandler","Extended sequential DCT"],0xca:["SOF10","_sofHandler","Progressive DCT"],0xcb:["SOF11","_sofHandler","Lossless (sequential)"],0xcd:["SOF13","_sofHandler","Differential sequential DCT"],0xce:["SOF14","_sofHandler","Differential progressive DCT"],0xcf:["SOF15","_sofHandler","Differential lossless (sequential)"],0xc4:["DHT",null,"Define Huffman table(s)"],0xcc:["DAC",null,"Define arithmetic coding conditioning(s)"],0xd0:["RST0",null,"Restart with modulo 8 count â0â"],0xd1:["RST1",null,"Restart with modulo 8 count â1â"],0xd2:["RST2",null,"Restart with modulo 8 count â2â"],0xd3:["RST3",null,"Restart with modulo 8 count â3â"],0xd4:["RST4",null,"Restart with modulo 8 count â4â"],0xd5:["RST5",null,"Restart with modulo 8 count â5â"],0xd6:["RST6",null,"Restart with modulo 8 count â6â"],0xd7:["RST7",null,"Restart with modulo 8 count â7â"],0xd8:["SOI",null,"Start of image"],0xd9:["EOI",null,"End of image"],0xda:["SOS",null,"Start of scan"],0xdb:["DQT",null,"Define quantization table(s)"],0xdc:["DNL",null,"Define number of lines"],0xdd:["DRI",null,"Define restart interval"],
10xde:["DHP",null,"Define hierarchical progression"],0xdf:["EXP",null,"Expand reference component(s)"],0xe0:["APP0","_app0Handler","Reserved for application segments"],0xe1:["APP1","_app1Handler"],0xe2:["APP2",null],0xe3:["APP3",null],0xe4:["APP4",null],0xe5:["APP5",null],0xe6:["APP6",null],0xe7:["APP7",null],0xe8:["APP8",null],0xe9:["APP9",null],0xea:["APP10",null],0xeb:["APP11",null],0xec:["APP12",null],0xed:["IPTC","_iptcHandler","IPTC Photo Metadata"],0xee:["APP14",null],0xef:["APP15",null],0xf0:["JPG0",null],0xf1:["JPG1",null],0xf2:["JPG2",null],0xf3:["JPG3",null],0xf4:["JPG4",null],0xf5:["JPG5",null],0xf6:["JPG6",null],0xf7:["JPG7",null],0xf8:["JPG8",null],0xf9:["JPG9",null],0xfa:["JPG10",null],0xfb:["JPG11",null],0xfc:["JPG12",null],0xfd:["JPG13",null],0xfe:["COM",null],0x01:["JPG13",null]};this.JpegMeta.JpegFile.prototype._addMetaGroup=function _addMetaGroup(name,description){var group=new JpegMeta.MetaGroup(name,description);this[group.fieldName]=group;this.metaGroups[group.fieldName]=group;return group};this.JpegMeta.JpegFile.prototype._parseIfd=function _parseIfd(endian,_binary_data,base,ifd_offset,tags,name,description){var num_fields=JpegMeta.parseNum(endian,_binary_data,base+ifd_offset,2);var tag_base;var tag_field;var type,type_field,type_size;var num_values;var value_offset;var value;var _val;var num;var den;var group;group=this._addMetaGroup(name,description);for(var i=0;i<num_fields;i++){tag_base=base+ifd_offset+2+(i*12);tag_field=JpegMeta.parseNum(endian,_binary_data,tag_base,2);type_field=JpegMeta.parseNum(endian,_binary_data,tag_base+2,2);num_values=JpegMeta.parseNum(endian,_binary_data,tag_base+4,4);value_offset=JpegMeta.parseNum(endian,_binary_data,tag_base+8,4);if(this._types[type_field]===undefined){continue};type=this._types[type_field][0];type_size=this._types[type_field][1];if(type_size*num_values<=4){value_offset=tag_base+8}else{value_offset=base+value_offset};if(type=="UNDEFINED"){value=undefined}else if(type=="ASCII"){value=_binary_data.slice(value_offset,value_offset+num_values);value=value.split('\x00')[0];if(!JpegMeta.stringIsClean(value)){value=""}}else{value=new Array();for(var j=0;j<num_values;j++,value_offset+=type_size){if(type=="BYTE"||type=="SHORT"||type=="LONG"){value.push(JpegMeta.parseNum(endian,_binary_data,value_offset,type_size))};if(type=="SBYTE"||type=="SSHORT"||type=="SLONG"){value.push(JpegMeta.parseSnum(endian,_binary_data,value_offset,type_size))};if(type=="RATIONAL"){num=JpegMeta.parseNum(endian,_binary_data,value_offset,4);den=JpegMeta.parseNum(endian,_binary_data,value_offset+4,4);value.push(new JpegMeta.Rational(num,den))};if(type=="SRATIONAL"){num=JpegMeta.parseSnum(endian,_binary_data,value_offset,4);den=JpegMeta.parseSnum(endian,_binary_data,value_offset+4,4);value.push(new JpegMeta.Rational(num,den))};value.push()};if(num_values===1){value=value[0]}};if(tags.hasOwnProperty(tag_field)){group._addProperty(tags[tag_field][1],tags[tag_field][0],value)}else{console.log("WARNING(jpegmeta.js): Unknown tag: ",tag_field)}}};this.JpegMeta.JpegFile.prototype._jfifHandler=function _jfifHandler(mark,pos){if(this.jfif!==undefined){throw Error("Multiple JFIF segments found");};this._addMetaGroup("jfif","JFIF");this.jfif._addProperty("version_major","Version Major",this._binary_data.charCodeAt(pos+5));this.jfif._addProperty("version_minor","Version Minor",this._binary_data.charCodeAt(pos+6));this.jfif._addProperty("version","JFIF Version",this.jfif.version_major.value+"."+this.jfif.version_minor.value);this.jfif._addProperty("units","Density Unit",this._binary_data.charCodeAt(pos+7));this.jfif._addProperty("Xdensity","X density",JpegMeta.parseNum(">",this._binary_data,pos+8,2));this.jfif._addProperty("Ydensity","Y Density",JpegMeta.parseNum(">",this._binary_data,pos+10,2));this.jfif._addProperty("Xthumbnail","X Thumbnail",JpegMeta.parseNum(">",this._binary_data,pos+12,1));this.jfif._addProperty("Ythumbnail","Y Thumbnail",JpegMeta.parseNum(">",this._binary_data,pos+13,1))};this.JpegMeta.JpegFile.prototype._app0Handler=function app0Handler(mark,pos){var ident=this._binary_data.slice(pos,pos+5);if(ident==this._JFIF_IDENT){this._jfifHandler(mark,pos)}else if(ident==this._JFXX_IDENT){}else{}};this.JpegMeta.JpegFile.prototype._app1Handler=function _app1Handler(mark,pos){var ident=this._binary_data.slice(pos,pos+5);if(ident==this._EXIF_IDENT){this._exifHandler(mark,pos+6)}else{}};JpegMeta.JpegFile.prototype._exifHandler=function _exifHandler(mark,pos){if(this.exif!==undefined){throw new Error("Multiple JFIF segments found");};var endian;var magic_field;var ifd_offset;var primary_ifd,exif_ifd,gps_ifd;var endian_field=this._binary_data.slice(pos,pos+2);
1if(endian_field==="II"){endian="<"}else if(endian_field==="MM"){endian=">"}else{throw new Error("Malformed TIFF meta-data. Unknown endianess: "+endian_field);};magic_field=JpegMeta.parseNum(endian,this._binary_data,pos+2,2);if(magic_field!==42){throw new Error("Malformed TIFF meta-data. Bad magic: "+magic_field);};ifd_offset=JpegMeta.parseNum(endian,this._binary_data,pos+4,4);this._parseIfd(endian,this._binary_data,pos,ifd_offset,this._tifftags,"tiff","TIFF");if(this.tiff.ExifIfdPointer){this._parseIfd(endian,this._binary_data,pos,this.tiff.ExifIfdPointer.value,this._exiftags,"exif","Exif")};if(this.tiff.GPSInfoIfdPointer){this._parseIfd(endian,this._binary_data,pos,this.tiff.GPSInfoIfdPointer.value,this._gpstags,"gps","GPS");if(this.gps.GPSLatitude){var latitude;latitude=this.gps.GPSLatitude.value[0].asFloat()+(1/60)*this.gps.GPSLatitude.value[1].asFloat()+(1/3600)*this.gps.GPSLatitude.value[2].asFloat();if(this.gps.GPSLatitudeRef.value==="S"){latitude=-latitude};this.gps._addProperty("latitude","Dec. Latitude",latitude)};if(this.gps.GPSLongitude){var longitude;longitude=this.gps.GPSLongitude.value[0].asFloat()+(1/60)*this.gps.GPSLongitude.value[1].asFloat()+(1/3600)*this.gps.GPSLongitude.value[2].asFloat();if(this.gps.GPSLongitudeRef.value==="W"){longitude=-longitude};this.gps._addProperty("longitude","Dec. Longitude",longitude)}}};this.JpegMeta.JpegFile.prototype._iptcHandler=function _iptcHandler(mark,pos,segsize){this._addMetaGroup("iptc","IPTC");var endian='<';var offset,fieldStart,title,value,tag;var length=JpegMeta.parseNum(endian,this._binary_data,pos+4,1);var FILE_SEPARATOR_CHAR=28,START_OF_TEXT_CHAR=2;for(var i=0;i<segsize;i++){fieldStart=pos+i;if(JpegMeta.parseNum(endian,this._binary_data,fieldStart,1)==START_OF_TEXT_CHAR){tag=JpegMeta.parseNum(endian,this._binary_data,fieldStart+1,1);tag_desc=this._iptctags[tag];if(!tag_desc)continue;length=0;offset=2;while(offset<segsize&&JpegMeta.parseNum(endian,this._binary_data,fieldStart+offset,1)!=FILE_SEPARATOR_CHAR&&JpegMeta.parseNum(endian,this._binary_data,fieldStart+offset+1,1)!=START_OF_TEXT_CHAR){offset++;length++};if(!length)continue;value=this._binary_data.slice(pos+i+2,pos+i+2+length);value=value.replace('\000','').trim();this.iptc._addProperty(tag_desc[1],tag_desc[0],value);i+=length-1}}};"use strict";class OcCron extends OcComponent{defaults(){return OcCron.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.jobs={};this.__internals.tickData={nextTick:0,timer:undefined}}__initialize(properties){this.__stateLoad();this.__tick()}__initEvents__job(job){job.events.listen('all-instances-done',this.__onJob__allInstancesDone.bind(this))};__onJob__allInstancesDone(data){this.removeJob(data.job.id)};__tick(){var now=Date.now();var nextTick=0;var saveState={jobs:{}};Object.values(this.__internals.jobs).forEach(job=>{if(typeof(job)!='undefined'){if(!job.running&&!job.paused){const shouldRun=now>=job.nextTick;if(shouldRun){job.tick();this.__trigger__tick(job.id,job.onTickParams);this.__trigger__tick__old(job.id,job.onTickParams)};const elligibleForNextTick=(nextTick==0||job.nextTick<nextTick);if(elligibleForNextTick){nextTick=job.nextTick}}if(job.persistent){saveState.jobs[job.id]=job.exportProperties()}}});if(nextTick>0){var delta=nextTick-now;if(delta<0){this.__tick()}else{var that=this;if(this.__internals.tickData.timer!==undefined){window.clearTimeout(this.__internals.tickData.timer)};this.__internals.tickData.timer=setTimeout(()=>{this.__tick()},delta)}this.__internals.tickData.nextTick=nextTick};this.__stateSave(saveState)};__stateLoad(){if(OLEFA.storage.exists('crontab')){var data=OLEFA.storage.get('crontab');for(var job_id in data.jobs){this.addJob(data.jobs[job_id],true,false)}}};__stateSave(saveState){OLEFA.storage.store('crontab',saveState)};addJob(data,overwrite,triggerTick){if(typeof(triggerTick)=='undefined'){triggerTick=true};if(typeof(overwrite)=='undefined'){overwrite=true};if(!overwrite&&data.id&&typeof(this.__internals.jobs[data.id])!='undefined'){return};if(typeof(data.at)!='undefined'){var date=new Date(data.at);data.nextTick=date.getTime()}else if(typeof(data.inMS)!='undefined'){var date=new Date();date.setSeconds(1*date.getSeconds()+data.inMS/1000);data.nextTick=date.getTime()};
1var job=new OcCronJob(data);if(typeof(job)=='undefined'||!job.id){console.log('crontab could not create job with the following data: ',data);return}this.__internals.jobs[job.id]=job;this.__initEvents__job(job);if(triggerTick){this.__tick()}};removeJob(id){if(typeof(this.__internals.jobs[id])!='undefined'){this.__internals.jobs[id].destroy();delete this.__internals.jobs[id]};this.__tick()};pauseJob(job){if(typeof(this.__internals.jobs[job])!='undefined'){this.__internals.jobs[job].paused=true}};resumeJob(job){if(typeof(this.__internals.jobs[job])!='undefined'){this.__internals.jobs[job].paused=false;this.__tick()}};__trigger__tick__old(crontabID,data){this.events.trigger(crontabID,data)};__trigger__tick(crontabID,data){const normalizedData={id:crontabID,...data};this.events.trigger('tick',normalizedData)};static defaults(){const inheritedDefaults=super.defaults();return inheritedDefaults}}Oc.OcCron=OcCron;"use strict";class OcCronJob extends OcComponent{constructor(properties){super(properties)}defaults(){return OcCronJob.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,id:{get:function(){return that.__getID()}},nextTick:{get:function(){return that.__getNextTick()}},interval:{get:function(){return that.__getInterval()}},intervalOnFail:{get:function(){return that.__getIntervalOnFail()}},instances:{get:function(){return that.__getInstances()}},tries:{get:function(){return that.__getTries()}},persistent:{get:function(){return that.__getPersistent()}},onTick:{get:function(){return that.__getOnTick()}},onTickParams:{get:function(){return that.__getOnTickParams()}},running:{get:this.__getRunning.bind(this)}};return extendedDefinitions};__getID(){return this.properties.id};__setID(value){this.properties.id=value};__getNextTick(){return this.properties.nextTick};__setNextTick(value){this.properties.nextTick=value};__getInterval(){return this.properties.interval};__setInterval(value){this.properties.interval=value};__getIntervalOnFail(){return this.properties.intervalOnFail};__setIntervalOnFail(value){this.properties.intervalOnFail=value};__getInstances(){return this.properties.instances};__setInstances(value){this.properties.instances=value};__getTries(){return this.properties.tries};__setTries(value){this.properties.tries=value};__getPersistent(){return this.properties.persistent};__setPersistent(value){this.properties.persistent=value};__getOnTick(){return this.properties.onTick};__setOnTick(value){this.properties.onTick=value};__getOnTickParams(){return this.properties.onTickParams};__getRunning(){return this.__internals.running}__setOnTickParams(value){this.properties.onTickParams.push(value)};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.running=false;this.propertyHandlers.id=this.__setID;this.propertyHandlers.nextTick=this.__setNextTick;this.propertyHandlers.interval=this.__setInterval;this.propertyHandlers.intervalOnFail=this.__setIntervalOnFail;this.propertyHandlers.instances=this.__setInstances;this.propertyHandlers.tries=this.__setTries;this.propertyHandlers.persistent=this.__setPersistent;this.propertyHandlers.onTick=this.__setOnTick;this.propertyHandlers.onTickParams=this.__setOnTickParams}__initialize(properties){this.__initProperties(properties);this.paused=false;this.triesLeft=this.properties.tries;if(typeof(this.properties.onTick)=='function'){this.onTickFunction=this.properties.onTick}else if(typeof(window[this.properties.onTick])=='function'){this.onTickFunction=window[this.properties.onTick]}else{this.onTickFunction=()=>{return true}}}tick(){if(this.__internals.running){return};this.__internals.running=true;var tickFail=false;try{var result=this.onTickFunction.apply(this,this.properties.onTickParams);this.__internals.running=false;if(result!==undefined&&!result){throw"cronjobTickFail";}}catch(e){this.__internals.running=false;if(e.message&&e.fileName&&e.lineNumber&&e.columnNumber){console.log(e.message+' at '+e.fileName+':'+e.lineNumber+':'+e.columnNumber)}tickFail=true};if(this.isDestroyed()){return};var interval=this.properties.interval;var allTriesUsed=false;if(tickFail){interval=this.properties.intervalOnFail;if(this.triesLeft>0){--this.triesLeft};if(this.triesLeft==0){allTriesUsed=true}};if(this.properties.nextTick+interval<Date.now()){this.properties.nextTick=Date.now()+interval}else{this.properties.nextTick+=interval};
1if(!tickFail||allTriesUsed){this.triesLeft=this.properties.tries;if(this.properties.instances>0){--this.properties.instances};if(this.properties.instances==0){this.__trigger__allInstancesDone()}}};valuesExport(){OLEFA.log.deprecated('Use .exportProperties() instead');return this.exportProperties()};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,id:OLEFA.basics.generateID(),nextTick:Date.now(),interval:60000,intervalOnFail:5000,instances:-1,tries:3,persistent:false,onTick:'',onTickParams:[]}};return extendedData}__trigger__allInstancesDone(data){const normalizedData={job:this,...data};this.events.trigger('all-instances-done',normalizedData)}}OcCronJob.superClass=OcComponent;Oc.OcCronJob=OcCronJob;"use strict";class OcI18n extends OcComponent{constructor(properties){super(properties)}defaults(){return OcI18n.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.i18nData={generated:{},byCollection:{}};this.__internals.cache=new OcCache({cacheToLive:OcI18n.__cacheSettings.TTL,storageID:OcI18n.__cacheSettings.storageId});this.__internals.langkitRequests={};this.__internals.generatedI18nUpToDate=true}__initialize(properties){super.__initialize(properties)}__generateI18n(){const sortedData=Object.values(this.__internals.i18nData.byCollection).sort((a,b)=>a.index-b.index);let generatedData={};for(const data of sortedData){const thisData={...data.data};generatedData={...generatedData,...thisData}};this.__internals.i18nData.generated=generatedData}__fetchFromData(data,key,values={},lang){if(typeof data[key]=='undefined'){return`undef(${key})`};const availableLanguages=Object.values(OcI18n.availableLanguages);const languagesToCheck=[lang||'',OLEFA.environment.language,...navigator.languages,OcI18n.defaultLanguage];let rawText='';for(const languageToCheck of languagesToCheck){if(rawText){break}const subLanguages=OcI18n.__splitLangCode(languageToCheck);for(const subLanguage of subLanguages){if(rawText){break}if(OcArray.has(availableLanguages,subLanguage)&&data[key][subLanguage]){rawText=data[key][subLanguage]}}}let returnText=rawText;for(const[key,value]of Object.entries(values)){const regexp=new RegExp(`#!${key}:`,'gmi');returnText=returnText.replace(regexp,String(value))}return returnText}async __fetchI18nData(langkit){if(this.__internals.cache.isInCache(langkit)){return this.__internals.cache.getFromCache(langkit)}if(typeof this.__internals.langkitRequests[langkit]!='undefined'){return this.__internals.langkitRequests[langkit]}let fullLangkitPath=langkit;if(!OcDatatype.isUrl(langkit)){fullLangkitPath=[OLEFA.environment.folders.langkit,langkit].join('/')+'?v='+Core.status.version};const requestParameters={};if(OcDatatype.isUrl(fullLangkitPath)){const url=new URL(fullLangkitPath);requestParameters.host=url.origin;requestParameters.path=`${url.pathname}${url.search}`}else{requestParameters.path=fullLangkitPath}const newRequest=new Promise((resolve,reject)=>{OLEFA.fetch.getJson(requestParameters).then(json=>{this.__internals.cache.putInCache(langkit,json.data);resolve(json.data)}).catch(e=>{reject(e)})});this.__internals.langkitRequests[langkit]=newRequest;return newRequest}get(key,values,lang){const normalizedKey=OcDatatype.isString(key)?key.toLowerCase():'';const normalizedValues=OcDatatype.isLiteralObject(values)?values:{};if(!this.__internals.generatedI18nUpToDate){this.__internals.generatedI18nUpToDate=true;this.__generateI18n()}return this.__fetchFromData(this.__internals.i18nData.generated,normalizedKey,normalizedValues,lang)}getFrom(langkit,key,values,lang){if(!this.__internals.i18nData.byCollection[langkit]){return`undef(${key})`};const normalizedKey=OcDatatype.isString(key)?key.toLowerCase():'';const normalizedValues=OcDatatype.isLiteralObject(values)?values:{};return this.__fetchFromData(this.__internals.i18nData.byCollection[langkit].data,normalizedKey,normalizedValues,lang)}addKey(collection,key,data){if(!this.__internals.i18nData.byCollection[collection]){this.__internals.i18nData.byCollection[collection]={data:{},index:Object.keys(this.__internals.i18nData.byCollection).length+1}}const normalizedKey=OcDatatype.isString(key)?key.toLowerCase():'';if(!normalizedKey){return}const normalizedValue={"de":"","en":"","fr":"","lb":"","pt":""};if(OcDatatype.isLiteralObject(data)){OcObject.forEach(data,(lang,text)=>{normalizedValue[lang]=OcUtilities.define(text,'')})}this.__internals.i18nData.byCollection[collection].data[normalizedKey]=normalizedValue;this.__internals.generatedI18nUpToDate=false}addKeys(collection,data){for(const[key,value]of Object.entries(data)){this.addKey(collection,key,value)}}async load(langkit){if(this.__internals.i18nData.byCollection[langkit]){return};const data=await this.__fetchI18nData(langkit);this.addKeys(langkit,data)}async loadFromDocumentRoot(langkit){return this.load(`${OLEFA.environment.siteURL()}/${langkit}`)};static __splitLangCode(langcode){const result=[];const normalizedLangcode=OcUtilities.define(langcode,'');if(!normalizedLangcode){return result};const fragments=normalizedLangcode.split('-');while(fragments.length>0){result.push(fragments.join('-'));fragments.pop()};return result}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}
1static getPreferredNavigatorLanguageFromList(acceptedLanguages){const adjustedAcceptedLanguages=acceptedLanguages.map(x=>x.toLowerCase());const browserLanguages=navigator.languages.map(x=>x.toLowerCase());for(const language of browserLanguages){const subLanguages=this.__splitLangCode(language);for(const subLanguage of subLanguages){if(OcArray.has(adjustedAcceptedLanguages,subLanguage.toLowerCase())){return subLanguage}}}return null}static getPreferredNavigatorLanguage(){const availableLanguages=Object.values(OcI18n.availableLanguages);const foundLanguage=OcI18n.getPreferredNavigatorLanguageFromList(availableLanguages);return foundLanguage||OcI18n.defaultLanguage}}OcI18n.__cacheSettings={TTL:5184000000,storageId:'OcI18n'};OcI18n.availableLanguages={EN:'en',DE:'de',FR:'fr',LB:'lb',PT:'pt'};OcI18n.defaultLanguage=OcI18n.availableLanguages.EN;OcI18n.symbols={ELLIPSIS:'â¦'};Oc.OcI18n=OcI18n;"use strict";class OcTemplateengine extends OcComponent{constructor(properties){super(properties)}defaults(){return OcTemplateengine.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.ajaxPromises={};this.__internals.templates=new OcCache({cacheToLive:14400000,storageID:'templateEngine'});this.parser=new OcTemplateengineParser()};getTemplate(template){var that=this;if(that.__internals.templates.isInCache(template)){return that.__getTemplateCache(template)}else{if(typeof(that.__internals.ajaxPromises[template])=='undefined'){that.__internals.ajaxPromises[template]=that.__getTemplateAjax(template)};return that.__internals.ajaxPromises[template]}};__getTemplateCache(template){var that=this;return new Promise(function(resolve,reject){resolve(that.__internals.templates.getFromCache(template))})};__getTemplateAjax(template){var that=this;return new Promise(function(resolve,reject){var path=[OLEFA.environment.folders.htmlTemplates,template].join('/');jQuery.ajax(path,{type:'GET',dataType:'html',success:function(html){that.__internals.templates.putInCache(template,html);return resolve(html)},error:function(jqxhr,textStatus){return reject(OLEFA.errors.ajaxToCode(textStatus))}})})};renderTemplate(template,values){var TemplateEngine=this;return new Promise((resolve,reject)=>{TemplateEngine.getTemplate(template).then(function(html){resolve(TemplateEngine.render(html,values))})})};generateOptions(options,value){var optionsHTML=new Array();if(Array.isArray(options)){for(var i=0;i<options.length;++i){const option={...this.defaults().option,...options[i]};var optionDOM=jQuery('<option></option>');optionDOM.html(option.label);optionDOM.attr('value',option.value);if(option.disabled){optionDOM.attr('disabled','disabled')};if(option.icon){optionDOM.attr('data-icon',option.icon)};if(option.filter){optionDOM.attr('data-options-filter',option.filter)};if(typeof(value)!='undefined'&&value==option.value){optionDOM.attr('selected','selected')};const node=optionDOM.get(0);if(node){optionsHTML.push(node.outerHTML)}}};return optionsHTML.join('')};getInlineTemplate(selector){var template=jQuery(selector).first();var html=jQuery(template).filter('template').find('.no-autoinit').removeClass('no-autoinit').end().clone().html();return html};render(html,values){var OP=html;for(var key in values){var regexp=new RegExp('#!TPL_'+key+':','gmi');OP=OP.replace(regexp,values[key])};var regexp=/#!TPLID_(\w*):/;var matches=undefined;while(matches=regexp.exec(OP)){var uniqueID=OLEFA.basics.generateID();var regexp2=new RegExp(matches[0],'g');OP=OP.replace(regexp2,uniqueID)};return OP};parse(root){OLEFA.log.deprecated('Use OcTemplateengineParser.parseAll instead');this.parser.parseAll(root)};destroy(){super.destroy()};static defaults(){const data=OcComponent.defaults();data.option={label:'',value:'',disabled:false,icon:'',filter:''};return data}}OcTemplateengine.superClass=OcComponent;(function(OcTemplateengine){})(OcTemplateengine||(OcTemplateengine={}));oc.OcTemplateengine=OcTemplateengine;"use strict";class OcTemplateengineParser extends OcComponent{defaults(){return OcTemplateengineParser.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.pendingParseAll=jQuery();this.__internals.objectParserKey='goddamnBotsRuiningMaDay';this.__internals.lazyloadObserver=null};__initialize(properties){this.__initEvents();this.__initProperties(properties);if(OLEFA.features.intersectionObserver){this.__internals.lazyloadObserver=new IntersectionObserver((entries,observer)=>{this.onLazyLoadTrigger(entries,observer)},{root:null,rootMargin:'0px',threshold:[0]})}};__initEvents(){super.__initEvents();jQuery(document).on('click.'+this.refID,'div.olcc-blocked-content-text',this.__onBlockedContentText__click.bind(this))};__onBlockedContentText__click(eventData){const service=jQuery(eventData.target).parent('div.olcc-blocked-content-box').parent('div.olcc-blocked-content').data('olcc-service');if(Core.status.cookieSettings.active&&Core.status.cookieSettings.active[service]){jQuery.fn.ihavecookies.addCookie(service);this.enableCookieServices()}else{OLEFA.snackbar.show({'message':OLEFA.i18n.get('error-message-16724')})}};__getRoot(root){var jRoot=(root)?jQuery(root):jQuery('body');return jRoot};parseAll(root){var jRoot=this.__getRoot(root);this.parseOljqButtons(jRoot);this.createPolyfill(jRoot);this.parseMailObjects(jRoot);this.parseTelObjects(jRoot);this.parseRecaptcha(jRoot);this.parseIframe(jRoot);this.parseCustom(jRoot);this.parsePreferredAudio(jRoot);this.parsePreferredVideo(jRoot);this.parseLazyLoad(jRoot);this.parseUsers(jRoot);this.parseVideoEncoding(jRoot);this.parseVideo(jRoot);this.initMD(jRoot);this.confirmPasswords(jRoot);this.parseCSSRequirements(jRoot);this.parseLangkit(jRoot);this.parseTree(jRoot);this.parseNodesToEnhance(jRoot)};parseOljqButtons(jRoot){createOlefaButtons(jRoot)};createPolyfill(jRoot){setTestrange(jRoot)};parseMailObjects(jRoot){var that=this;const filter='a[data-olefa-object="mail"]';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){that.parseMailObject(element)})}.bind(this))};parseMailObject(link){var jLink=jQuery(link);var label=jLink.attr('data-hash-label')||'';var href=jLink.attr('data-hash-href')||'';OcUtilities.defer(()=>{try{label=CryptoJS.AES.decrypt(label,this.__internals.objectParserKey).toString(CryptoJS.enc.Utf8);href=CryptoJS.AES.decrypt(href,this.__internals.objectParserKey).toString(CryptoJS.enc.Utf8);jLink.attr('href','mailto:'+href).html(label).removeAttr('data-olefa-object data-hash-href data-hash-label')}catch(e){}})};parseTelObjects(jRoot){var that=this;const filter='a[data-olefa-object="tel"]';OcUtilities.defer(()=>{jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){that.parseTelObject(element)})})};parseTelObject(link){var jLink=jQuery(link);var label=jLink.attr('data-hash-label')||'';var href=jLink.attr('data-hash-href')||'';OcUtilities.defer(()=>{try{label=CryptoJS.AES.decrypt(label,this.__internals.objectParserKey).toString(CryptoJS.enc.Utf8);href=CryptoJS.AES.decrypt(href,this.__internals.objectParserKey).toString(CryptoJS.enc.Utf8);jLink.attr('href','tel:'+href).html(label).removeAttr('data-olefa-object data-hash-href data-hash-label')}catch(e){}})};parseRecaptcha(jRoot){if(jQuery.fn.ihavecookies.preference('google')){OcUtilities.defer(function(){jRoot.find('input[data-olefa-object="recaptcha"]:not(".recaptcha-loading")').add(jRoot.filter('input[data-olefa-object="recaptcha"]:not(".recaptcha-loading")')).addClass('recaptcha-loading').each(function(index,element){jQuery(element).siblings('div.olcc-content-wrapper').removeClass('olcc-blocked-content').children('.olcc-blocked-content-box').remove();OLEFA.recaptcha.initInput(element)})}.bind(this))}};parsePreferredAudio(jRoot){if(!OLEFA.features.audio){return};var preferredAudioType=OLEFA.features.audio.preferred;OcUtilities.defer(()=>{jRoot.find('audio').each(function(index,element){var jSource=jQuery(element).children('source[type="'+preferredAudioType+'"]');if(!jSource.length){jSource=jQuery(element).children('source').first()};if(jSource.length){var source=jSource.attr('src')||'';jQuery(element).attr('src',source)}})})};parsePreferredVideo(jRoot){if(!OLEFA.features.video){return};var preferredVideoType=OLEFA.features.video.preferred;OcUtilities.defer(()=>{jRoot.find('video').each(function(index,element){var jSource=jQuery(element).children('source[type="'+preferredVideoType+'"]');if(!jSource.length){jSource=jQuery(element).children('source').first()};if(jSource.length){var source=jSource.attr('src')||'';jQuery(element).attr('src',source)}})})};parseLazyLoad(jRoot){var that=this;var filter='[data-lazyload]:not([data-lazyload-loaded])';OcUtilities.defer(()=>{jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){OLEFA.log.deprecated('Deprecated! Use native "loading" attribute on img tags instead!',element);var jThis=jQuery(element);jThis.attr('data-lazyload-loaded','');if(that.__internals.lazyloadObserver){that.attachLazyLoadToObserver(element)}else{jThis.trigger('olefa--on-visible')}})})};attachLazyLoadToObserver(element){if(this.__internals.lazyloadObserver){this.__internals.lazyloadObserver.observe(element)}};onLazyLoadTrigger(entries,observer){var that=this;
1entries.forEach(function(entry){var jTarget=jQuery(entry.target);var imagesrc=jTarget.attr('data-lazyload-src');if(entry.intersectionRatio>0){if(imagesrc){that.applyDefaultLazyLoadAttr(jTarget,imagesrc)};jQuery(entry.target).trigger('olefa--on-visible')}else{jQuery(entry.target).trigger('olefa--on-invisible')}})};applyDefaultLazyLoadAttr(jElement,src){OcUtilities.defer(function(){if(!jElement.is('[data-lazyload-src-loaded]')){jElement.attr('data-lazyload-src-loaded','');if(jElement.is('img')){jElement.attr('src',src)}else{jElement.css({'background-image':'url('+src+')'})}}}.bind(this))};parseUsers(jRoot){const filter='oc-user';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){const jThis=jQuery(element);const userid=jThis.attr('userid')||'';OLEFA.users.getUser(userid).then((user)=>{const constructorData={user:user};const parseText=jThis.text();if(parseText){constructorData.parseText=parseText};const userUI=new OcHtmlUser(constructorData);jThis.replaceWith(userUI.base)})})}.bind(this))};parseVideoEncoding(jRoot){OcUtilities.defer(function(){jRoot.find('.html5_video.pending, .html5_video.encoding').add(jRoot.filter('.html5_video.pending, .html5_video.encoding')).not('[data-subscribed]').each(function(index,element){const jThis=jQuery(element);jThis.attr('data-subscribed','');const file=jThis.attr('data-file');if(file){OLEFA.websocket.subscribeToService(OcWebsocketClient.availableSubscriptions.VIDEOENCODESTATE,{file:file})}})}.bind(this))};parseVideo(jRoot){const filter='video[data-olefa-object="video"]';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).not('[data-initialized]').each(function(index,element){const jThis=jQuery(element);const obj=new OcHtmlMediaVideo(jThis)})}.bind(this))};parseIframe(jRoot){const filter='div.olcc-blocked-content[data-olefa-object="iframe"]';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){const jThis=jQuery(element);const jFrame=jThis.find('iframe');if(jQuery.fn.ihavecookies.preference(jThis.data('olcc-service'))){jFrame.attr('src',jFrame.data('orig-src')).removeAttr('tabindex');jThis.removeClass('olcc-blocked-content').children('.olcc-blocked-content-box').remove()}})}.bind(this))};parseCustom(jRoot){const filter='div.olcc-blocked-content[data-olefa-object="custom"]';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){const jThis=jQuery(element);if(jQuery.fn.ihavecookies.preference(jThis.data('olcc-service'))){Core.status.cookieSettings.ifaccepted()}})}.bind(this))};initMD(jRoot){this.initMDSlider(jRoot)};initMDSlider(jRoot){const filter='.oc-md-slider-standard';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){const Slider=jQuery(element).prop('olefa-object-reference');if(!Slider){return};Slider.layout()})}.bind(this))};confirmPasswords(jRoot){const filter='input[data-olefa-object="retype_password"]';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).not('[data-initialized]').each(function(index,element){const jThis=jQuery(element);const check=jThis.attr('data-check');const jCheck=jQuery('#'+check);if(!jCheck.length){return true}const jInputs=jThis.add(jCheck);jInputs.on('change',function(){var error='';if(jThis.val()!=jCheck.val()){error=OLEFA.i18n.get('passwords_no_match')}jInputs.each(function(index,element){element.setCustomValidity(error)})});return undefined})}.bind(this))};parseCSSRequirements(jRoot){const filter='[data-requires-css]';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){const cssAttribute=element.getAttribute('data-requires-css')||'';const files=cssAttribute.split(',');for(const fileIndex in files){const file=files[fileIndex];OLEFA.css.get(file).catch(function(){OLEFA.log.warn('Failed to load CSS',file)})}})}.bind(this))};parseLangkit(jRoot){const filter='olefa-langkit';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){const file=element.getAttribute('file')||'';const key=element.getAttribute('key')||'';const doReplace=()=>{jQuery(element).replaceWith(OLEFA.i18n.get(key))};if(!file){doReplace()}else{OLEFA.i18n.load(file).then(function(){doReplace()}).catch(function(){OLEFA.log.warn('Failed to load langkit',file);doReplace()})}})}.bind(this))};parseTree(jRoot){const filter='oc-ui-web-list-tree-sortable';OcUtilities.defer(function(){jRoot.find(filter).add(jRoot.filter(filter)).each(function(index,element){const extraCells=Number(element.getAttribute('extra-cells'))||0;const instance=new OcUiWebListTreeSortable({extraCells:extraCells});const headerElement=jQuery(element).children('oc-ui-web-list-tree-item-header');if(headerElement.length>0){const label=headerElement.find('oc-ui-web-list-tree-item-header-label');instance.header.labelNode.append(label.text());const childElements=headerElement.children('oc-ui-web-list-tree-item-header-cell');let i=0;const extraCells=[...childElements];for(const cellContent of extraCells){const cell=instance.header.getExtraCell(i);cell?.append(cellContent.innerHTML);++i}}const childElements=jQuery(element).children('oc-ui-web-list-tree-item-content');for(const child of childElements){const itemId=child.getAttribute('item-id')||'';const label=child.getAttribute('label')||undefined;const index=Number(child.getAttribute("index"))||undefined;const parentItemId=child.getAttribute('parent-item-id');const link=child.getAttribute("link")||'';const iconValue=child.getAttribute("icon")||'';let icon;if(iconValue){icon=OcUiFonticon(iconValue)}const treeItem=instance.addItem({itemId:itemId,label:label,index:index,parentItemId:parentItemId,link:link,icon:icon});if(treeItem){let i=0;const extraCells=[...child.children];for(const cellContent of extraCells){const cell=treeItem.getExtraCell(i);cell?.html(cellContent);++i}}}jQuery(element).replaceWith(instance.base);jQuery(instance.base).trigger('olefa-parser--tree-parsed',{original:element,instance:instance});instance.events.listen('*',(ev)=>{jQuery(instance.base).trigger(`oc-ui-web-list-tree-sortable--${ev.event}`,ev.data)})})}.bind(this))}
1parseNodesToEnhance(jRoot){const filter='[data-enhance-as]';OcUtilities.defer(()=>{jRoot.find(filter).add(jRoot.filter(filter)).each((index,element)=>{const enhanceWithList=element.getAttribute('data-enhance-as')?.split(' ')||[];for(const enhanceWith of enhanceWithList){switch(enhanceWith){case'disclosure-navigation':new OcAriaDisclosurenavigation(element);break;case'number-count':this.__numberCount(jQuery(element));break}jQuery(element).removeAttr('data-enhance-as')}})})}async __numberCount(element){await OLEFA.components.require(["OcUiWebNumbercount"]);const jThis=element;const value=OcDatatype.toInteger(jThis.attr('data-value'));const fps=OcDatatype.toInteger(jThis.attr('data-fps'));const duration=OcDatatype.toInteger(jThis.attr('data-duration'));new OcUiWebNumbercount({value:value,fps:fps,duration:duration,element:jThis.get(0)})}enableCookieServices(){var jRoot=jQuery('body');this.parseRecaptcha(jRoot);this.parseIframe(jRoot);this.parseCustom(jRoot)};destroy(){jQuery(document).off('click.'+this.refID);super.destroy()};static defaults(){const data=OcComponent.defaults();return data}}OcTemplateengineParser.superClass=OcComponent;oc.OcTemplateengineParser=OcTemplateengineParser;"use strict";class OcCache{constructor(properties){this.cache={};this.cacheToLive=300000;this.webSocketParity=false;this.storageID=null;this.initData(properties);this.initEvents();this.init()}initData(data){const normalizedData={...data};if(normalizedData.cacheToLive){this.cacheToLive=normalizedData.cacheToLive};if(normalizedData.webSocketParity){this.webSocketParity=normalizedData.webSocketParity};if(normalizedData.storageID){this.storageID=normalizedData.storageID}};initEvents(){var that=this;if(this.webSocketParity){OLEFA.websocket.events.listen('connection-lost',()=>{this.onWebsocketConnectionLost()})}};init(){if(this.storageID){this.cache=OLEFA.storage.get(this.storageID)}};onWebsocketConnectionLost(){for(var key in this.cache){this.cache[key].webSocketParity=false};this.onCacheChanged()};isWebSocketConnected(){if(Core.websocket instanceof OcWebsocketClient&&Core.websocket.authenticated){return true};return false};isInCache(key){if(typeof(this.cache[key])!='undefined'){var cacheDate=new Date(this.cache[key].timestamp);if(Date.now()-cacheDate.getTime()<this.cacheToLive&&(!this.webSocketParity||this.cache[key].webSocketParity)){return true}};return false};putInCache(key,data){var timestamp=new Date();var connected=(this.webSocketParity)?this.isWebSocketConnected():false;this.cache[key]={timestamp:timestamp.getTime(),webSocketParity:connected,data:data};this.onCacheChanged()};getFromCache(key){if(this.isInCache(key)){return this.cache[key].data}return null};removeFromCache(key){if(this.isInCache(key)){delete this.cache[key];this.onCacheChanged()}};onCacheChanged(){if(this.storageID){OLEFA.storage.store(this.storageID,this.cache)}}}oc.OcCache=OcCache;var CryptoJS=CryptoJS||function(u,p){var d={},l=d.lib={},s=function(){},t=l.Base={extend:function(a){s.prototype=this;var c=new s;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,arguments)});c.init.prototype=c;c.$super=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},r=l.WordArray=t.extend({init:function(a,c){a=this.words=a||[];this.sigBytes=c!=p?c:4*a.length},toString:function(a){return(a||v).stringify(this)},concat:function(a){var c=this.words,e=a.words,j=this.sigBytes;a=a.sigBytes;this.clamp();if(j%4)for(var k=0;k<a;k++)c[j+k>>>2]|=(e[k>>>2]>>>24-8*(k%4)&255)<<24-8*((j+k)%4);else if(65535<e.length)for(k=0;k<a;k+=4)c[j+k>>>2]=e[k>>>2];else c.push.apply(c,e);this.sigBytes+=a;return this},clamp:function(){var a=this.words,c=this.sigBytes;a[c>>>2]&=4294967295<<32-8*(c%4);a.length=u.ceil(c/4)},clone:function(){var a=t.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var c=[],e=0;e<a;e+=4)c.push(4294967296*u.random()|0);return new r.init(c,a)}}),w=d.enc={},v=w.Hex={stringify:function(a){var c=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++){var k=c[j>>>2]>>>24-8*(j%4)&255;e.push((k>>>4).toString(16));e.push((k&15).toString(16))}return e.join("")},parse:function(a){for(var c=a.length,e=[],j=0;j<c;j+=2)e[j>>>3]|=parseInt(a.substr(j,2),16)<<24-4*(j%8);return new r.init(e,c/2)}},b=w.Latin1={stringify:function(a){var c=a.words;a=a.sigBytes;for(var e=[],j=0;j<a;j++)e.push(String.fromCharCode(c[j>>>2]>>>24-8*(j%4)&255));return e.join("")},parse:function(a){for(var c=a.length,e=[],j=0;j<c;j++)e[j>>>
vendor: 6,283 bytes, line 1
12]|=(a.charCodeAt(j)&255)<<24-8*(j%4);return new r.init(e,c)}},x=w.Utf8={stringify:function(a){try{return decodeURIComponent(escape(b.stringify(a)))}catch(c){throw Error("Malformed UTF-8 data");}},parse:function(a){return b.parse(unescape(encodeURIComponent(a)))}},q=l.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=x.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var c=this._data,e=c.words,j=c.sigBytes,k=this.blockSize,b=j/(4*k),b=a?u.ceil(b):u.max((b|0)-this._minBufferSize,0);a=b*k;j=u.min(4*a,j);if(a){for(var q=0;q<a;q+=k)this._doProcessBlock(e,q);q=e.splice(0,a);c.sigBytes-=j}return new r.init(q,j)},clone:function(){var a=t.clone.call(this);a._data=this._data.clone();return a},_minBufferSize:0});l.Hasher=q.extend({cfg:t.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){q.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,e){return(new a.init(e)).finalize(b)}},_createHmacHelper:function(a){return function(b,e){return(new n.HMAC.init(a,e)).finalize(b)}}});var n=d.algo={};return d}(Math);(function(){var u=CryptoJS,p=u.lib.WordArray;u.enc.Base64={stringify:function(d){var l=d.words,p=d.sigBytes,t=this._map;d.clamp();d=[];for(var r=0;r<p;r+=3)for(var w=(l[r>>>2]>>>24-8*(r%4)&255)<<16|(l[r+1>>>2]>>>24-8*((r+1)%4)&255)<<8|l[r+2>>>2]>>>24-8*((r+2)%4)&255,v=0;4>v&&r+0.75*v<p;v++)d.push(t.charAt(w>>>6*(3-v)&63));if(l=t.charAt(64))for(;d.length%4;)d.push(l);return d.join("")},parse:function(d){var l=d.length,s=this._map,t=s.charAt(64);t&&(t=d.indexOf(t),-1!=t&&(l=t));for(var t=[],r=0,w=0;w<l;w++)if(w%4){var v=s.indexOf(d.charAt(w-1))<<2*(w%4),b=s.indexOf(d.charAt(w))>>>6-2*(w%4);t[r>>>2]|=(v|b)<<24-8*(r%4);r++}return p.create(t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();(function(u){function p(b,n,a,c,e,j,k){b=b+(n&a|~n&c)+e+k;return(b<<j|b>>>32-j)+n}function d(b,n,a,c,e,j,k){b=b+(n&c|a&~c)+e+k;return(b<<j|b>>>32-j)+n}function l(b,n,a,c,e,j,k){b=b+(n^a^c)+e+k;return(b<<j|b>>>32-j)+n}function s(b,n,a,c,e,j,k){b=b+(a^(n|~c))+e+k;return(b<<j|b>>>32-j)+n}for(var t=CryptoJS,r=t.lib,w=r.WordArray,v=r.Hasher,r=t.algo,b=[],x=0;64>x;x++)b[x]=4294967296*u.abs(u.sin(x+1))|0;r=r.MD5=v.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(q,n){for(var a=0;16>a;a++){var c=n+a,e=q[c];q[c]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360}var a=this._hash.words,c=q[n+0],e=q[n+1],j=q[n+2],k=q[n+3],z=q[n+4],r=q[n+5],t=q[n+6],w=q[n+7],v=q[n+8],A=q[n+9],B=q[n+10],C=q[n+11],u=q[n+12],D=q[n+13],E=q[n+14],x=q[n+15],f=a[0],m=a[1],g=a[2],h=a[3],f=p(f,m,g,h,c,7,b[0]),h=p(h,f,m,g,e,12,b[1]),g=p(g,h,f,m,j,17,b[2]),m=p(m,g,h,f,k,22,b[3]),f=p(f,m,g,h,z,7,b[4]),h=p(h,f,m,g,r,12,b[5]),g=p(g,h,f,m,t,17,b[6]),m=p(m,g,h,f,w,22,b[7]),f=p(f,m,g,h,v,7,b[8]),h=p(h,f,m,g,A,12,b[9]),g=p(g,h,f,m,B,17,b[10]),m=p(m,g,h,f,C,22,b[11]),f=p(f,m,g,h,u,7,b[12]),h=p(h,f,m,g,D,12,b[13]),g=p(g,h,f,m,E,17,b[14]),m=p(m,g,h,f,x,22,b[15]),f=d(f,m,g,h,e,5,b[16]),h=d(h,f,m,g,t,9,b[17]),g=d(g,h,f,m,C,14,b[18]),m=d(m,g,h,f,c,20,b[19]),f=d(f,m,g,h,r,5,b[20]),h=d(h,f,m,g,B,9,b[21]),g=d(g,h,f,m,x,14,b[22]),m=d(m,g,h,f,z,20,b[23]),f=d(f,m,g,h,A,5,b[24]),h=d(h,f,m,g,E,9,b[25]),g=d(g,h,f,m,k,14,b[26]),m=d(m,g,h,f,v,20,b[27]),f=d(f,m,g,h,D,5,b[28]),h=d(h,f,m,g,j,9,b[29]),g=d(g,h,f,m,w,14,b[30]),m=d(m,g,h,f,u,20,b[31]),f=l(f,m,g,h,r,4,b[32]),h=l(h,f,m,g,v,11,b[33]),g=l(g,h,f,m,C,16,b[34]),m=l(m,g,h,f,E,23,b[35]),f=l(f,m,g,h,e,4,b[36]),h=l(h,f,m,g,z,11,b[37]),g=l(g,h,f,m,w,16,b[38]),m=l(m,g,h,f,B,23,b[39]),f=l(f,m,g,h,D,4,b[40]),h=l(h,f,m,g,c,11,b[41]),g=l(g,h,f,m,k,16,b[42]),m=l(m,g,h,f,t,23,b[43]),f=l(f,m,g,h,A,4,b[44]),h=l(h,f,m,g,u,11,b[45]),g=l(g,h,f,m,x,16,b[46]),m=l(m,g,h,f,j,23,b[47]),f=s(f,m,g,h,c,6,b[48]),h=s(h,f,m,g,w,10,b[49]),g=s(g,h,f,m,E,15,b[50]),m=s(m,g,h,f,r,21,b[51]),f=s(f,m,g,h,u,6,b[52]),h=s(h,f,m,g,k,10,b[53]),g=s(g,h,f,m,B,15,b[54]),m=s(m,g,h,f,e,21,b[55]),f=s(f,m,g,h,v,6,b[56]),h=s(h,f,m,g,x,10,b[57]),g=s(g,h,f,m,t,15,b[58]),m=s(m,g,h,f,D,21,b[59]),f=s(f,m,g,h,z,6,b[60]),h=s(h,f,m,g,C,10,b[61]),g=s(g,h,f,m,j,15,b[62]),m=s(m,g,h,f,A,21,b[63]);a[0]=a[0]+f|0;a[1]=a[1]+m|0;a[2]=a[2]+g|0;a[3]=a[3]+h|0},_doFinalize:function(){var b=this._data,n=b.words,a=8*this._nDataBytes,c=8*b.sigBytes;n[c>>>5]|=128<<24-c%32;var e=u.floor(a/4294967296);n[(c+64>>>9<<4)+15]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360;n[(c+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;b.sigBytes=4*(n.length+1);this._process();b=this._hash;n=b.words;for(a=0;4>a;a++)c=n[a],n[a]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360;return b},clone:function(){var b=v.clone.call(this);b._hash=this._hash.clone();return b}});t.MD5=v._createHelper(r);t.HmacMD5=v._createHmacHelper(r)})(Math);(function(){var u=CryptoJS,p=u.lib,d=p.Base,l=p.WordArray,p=u.algo,s=p.EvpKDF=d.extend({cfg:d.extend({keySize:4,hasher:p.MD5,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,r){for(var p=this.cfg,s=p.hasher.create(),b=l.create(),u=b.words,q=p.keySize,p=p.iterations;u.length<q;){n&&s.update(n);var n=s.update(d).finalize(r);s.reset();for(var a=1;a<p;a++)n=s.finalize(n),s.reset();b.concat(n)}b.sigBytes=4*q;return b}});u.EvpKDF=function(d,l,p){return s.create(p).compute(d,l)}})();CryptoJS.lib.Cipher||function(u){var p=CryptoJS,d=p.lib,l=d.Base,s=d.WordArray,t=d.BufferedBlockAlgorithm,r=p.enc.Base64,w=p.algo.EvpKDF,v=d.Cipher=t.extend({cfg:l.extend(),createEncryptor:function(e,a){return this.create(this._ENC_XFORM_MODE,e,a)},createDecryptor:function(e,a){return this.create(this._DEC_XFORM_MODE,e,a)},init:function(e,a,b){this.cfg=this.cfg.extend(b);this._xformMode=e;this._key=a;this.reset()},reset:function(){t.reset.call(this);this._doReset()},process:function(e){this._append(e);return this._process()},finalize:function(e){e&&this._append(e);return this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(b,k,d){return("string"==typeof k?c:a).encrypt
1(e,b,k,d)},decrypt:function(b,k,d){return("string"==typeof k?c:a).decrypt(e,b,k,d)}}}});d.StreamCipher=v.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var b=p.mode={},x=function(e,a,b){var c=this._iv;c?this._iv=u:c=this._prevBlock;for(var d=0;d<b;d++)e[a+d]^=c[d]},q=(d.BlockCipherMode=l.extend({createEncryptor:function(e,a){return this.Encryptor.create(e,a)},createDecryptor:function(e,a){return this.Decryptor.create(e,a)},init:function(e,a){this._cipher=e;this._iv=a}})).extend();q.Encryptor=q.extend({processBlock:function(e,a){var b=this._cipher,c=b.blockSize;x.call(this,e,a,c);b.encryptBlock(e,a);this._prevBlock=e.slice(a,a+c)}});q.Decryptor=q.extend({processBlock:function(e,a){var b=this._cipher,c=b.blockSize,d=e.slice(a,a+c);b.decryptBlock(e,a);x.call(this,e,a,c);this._prevBlock=d}});b=b.CBC=q;q=(p.pad={}).Pkcs7={pad:function(a,b){for(var c=4*b,c=c-a.sigBytes%c,d=c<<24|c<<16|c<<8|c,l=[],n=0;n<c;n+=4)l.push(d);c=s.create(l,c);a.concat(c)},unpad:function(a){a.sigBytes-=a.words[a.sigBytes-1>>>2]&255}};d.BlockCipher=v.extend({cfg:v.cfg.extend({mode:b,padding:q}),reset:function(){v.reset.call(this);var a=this.cfg,b=a.iv,a=a.mode;if(this._xformMode==this._ENC_XFORM_MODE)var c=a.createEncryptor;else c=a.createDecryptor,this._minBufferSize=1;this._mode=c.call(a,this,b&&b.words)},_doProcessBlock:function(a,b){this._mode.processBlock(a,b)},_doFinalize:function(){var a=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){a.pad(this._data,this.blockSize);var b=this._process(!0)}else b=this._process(!0),a.unpad(b);return b},blockSize:4});var n=d.CipherParams=l.extend({init:function(a){this.mixIn(a)},toString:function(a){return(a||this.formatter).stringify(this)}}),b=(p.format={}).OpenSSL={stringify:function(a){var b=a.ciphertext;a=a.salt;return(a?s.create([1398893684,1701076831]).concat(a).concat(b):b).toString(r)},parse:function(a){a=r.parse(a);var b=a.words;if(1398893684==b[0]&&1701076831==b[1]){var c=s.create(b.slice(2,4));b.splice(0,4);a.sigBytes-=16}return n.create({ciphertext:a,salt:c})}},a=d.SerializableCipher=l.extend({cfg:l.extend({format:b}),encrypt:function(a,b,c,d){d=this.cfg.extend(d);var l=a.createEncryptor(c,d);b=l.finalize(b);l=l.cfg;return n.create({ciphertext:b,key:c,iv:l.iv,algorithm:a,mode:l.mode,padding:l.padding,blockSize:a.blockSize,formatter:d.format})},decrypt:function(a,b,c,d){d=this.cfg.extend(d);b=this._parse(b,d.format);return a.createDecryptor(c,d).finalize(b.ciphertext)},_parse:function(a,b){return"string"==typeof a?b.parse(a,this):a}}),p=(p.kdf={}).OpenSSL={execute:function(a,b,c,d){d||(d=s.random(8));a=w.create({keySize:b+c}).compute(a,d);c=s.create(a.words.slice(b),4*c);a.sigBytes=4*b;return n.create({key:a,iv:c,salt:d})}},c=d.PasswordBasedCipher=a.extend({cfg:a.cfg.extend({kdf:p}),encrypt:function(b,c,d,l){l=this.cfg.extend(l);d=l.kdf.execute(d,b.keySize,b.ivSize);l.iv=d.iv;b=a.encrypt.call(this,b,c,d.key,l);b.mixIn(d);return b},decrypt:function(b,c,d,l){l=this.cfg.extend(l);c=this._parse(c,l.format);d=l.kdf.execute(d,b.keySize,b.ivSize,c.salt);l.iv=d.iv;return a.decrypt.call(this,b,c,d.key,l)}})}();(function(){for(var u=CryptoJS,p=u.lib.BlockCipher,d=u.algo,l=[],s=[],t=[],r=[],w=[],v=[],b=[],x=[],q=[],n=[],a=[],c=0;256>c;c++)a[c]=128>c?c<<1:c<<1^283;for(var e=0,j=0,c=0;256>c;c++){var k=j^j<<1^j<<2^j<<3^j<<4,k=k>>>8^k&255^99;l[e]=k;s[k]=e;var z=a[e],F=a[z],G=a[F],y=257*a[k]^16843008*k;t[e]=y<<24|y>>>8;r[e]=y<<16|y>>>16;w[e]=y<<8|y>>>24;v[e]=y;y=16843009*G^65537*F^257*z^16843008*e;b[k]=y<<24|y>>>8;x[k]=y<<16|y>>>16;q[k]=y<<8|y>>>24;n[k]=y;e?(e=z^a[a[a[G^z]]],j^=a[a[j]]):e=j=1}var H=[0,1,2,4,8,16,32,64,128,27,54],d=d.AES=p.extend({_doReset:function(){for(var a=this._key,c=a.words,d=a.sigBytes/4,a=4*((this._nRounds=d+6)+1),e=this._keySchedule=[],j=0;j<a;j++)if(j<d)e[j]=c[j];else{var k=e[j-1];j%d?6<d&&4==j%d&&(k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255]):(k=k<<8|k>>>24,k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255],k^=H[j/d|0]<<24);e[j]=e[j-d]^k}c=this._invKeySchedule=[];for(d=0;d<a;d++)j=a-d,k=d%4?e[j]:e[j-4],c[d]=4>d||4>=j?k:b[l[k>>>24]]^x[l[k>>>16&255]]^q[l[k>>>8&255]]^n[l[k&255]]},encryptBlock:function(a,b){this._doCryptBlock(a,b,this._keySchedule,t,r,w,v,l)},decryptBlock:function(a,c){var d=a[c+1];a[c+1]=a[c+3];a[c+3]=d;this._doCryptBlock(a,c,this._invKeySchedule,b,x,q,n,s);d=a[c+1];a[c+1]=a[c+3];a[c+3]=d},_doCryptBlock:function(a,b,c,d,e,j,l,f){for(var m=this._nRounds,g=a[b]^c[0],h=a[b+1]^c[1],k=a[b+2]^c[2],n=a[b+3]^c[3],p=4,r=1;r<m;r++)var q=d[g>>>24]^e[h>>>16&255]^j[k>>>8&255]^l[n&255]^c[p++],s=d[h>>>24]^e[k>>>16&255]^j[n>>>8&255]^l[g&255]^c[p++],t=d[k>>>24]^e[n>>>16&255]^j[g>>>8&255]^l[h&255]^c[p++],n=d[n>>>24]^e[g>>>16&255]^j[h>>>8&255]^l[k&255]^c[p++],g=q,h=s,k=t;q=(f[g>>>24]<<24|f[h>>>16&255]<<16|f[k>>>8&255]<<8|f[n&255])^c[p++];s=(f[h>>>24]<<24|f[k>>>16&255]<<16|f[n>>>8&255]<<8|f[g&255])^c[p++];t=(f[k>>>24]<<24|f[n>>>16&255]<<16|f[g>>>8&255]<<8|f[h&255])^c[p++];n=(f[n>>>24]<<24|f[g>>>16&255]<<16|f[h>>>8&255]<<8|f[k&255])^c[p++];a[b]=q;a[b+1]=s;a[b+2]=t;a[b+3]=n},keySize:8});u.AES=p._createHelper(d)})();"use strict";class OcStorage extends OcComponent{constructor(properties){super(properties)}defaults(){return OcStorage.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.data={};this.propertyHandlers['id']=this.setID;this.propertyHandlers['encryptionKey']=this.setEncryptionKey}__initialize(properties){try{localStorage}catch(error){return};this.__initProperties(properties);this.__loadFromLocalStorage();return}setID(id){this.properties.id=id};getID(){return this.properties.id};setEncryptionKey(encryptionKey){this.properties.encryptionKey=encryptionKey};getEncryptionKey(){return this.properties.encryptionKey};__loadFromLocalStorage(){const keys=[];const regexpstr='^'+this.getID()+'-(.*)$';const prefix=new RegExp(regexpstr);for(var i=0;i<localStorage.length;++i){const value=localStorage.key(i);if(value){const matches=value.match(prefix);if(matches){keys.push(matches[1])}}};const Storage=this;for(var i=0;i<keys.length;++i){const item=[this.getID(),keys[i]].join('-');const data=localStorage.getItem(item);if(data){const decrypted=this.decrypt(data,keys[i]);try{const json=JSON.parse(decrypted);Storage.data[keys[i]]=json}catch(e){localStorage.removeItem(item)}}}};generateKey(salt){return[this.getEncryptionKey(),Core.status.version,salt].join('-')};
1encrypt(data,salt){return CryptoJS.AES.encrypt(data,this.generateKey(salt)).toString()};decrypt(data,salt){var result=undefined;try{result=CryptoJS.AES.decrypt(data,this.generateKey(salt)).toString(CryptoJS.enc.Utf8)}catch(e){};return result};store(key,data){if(key&&typeof(data)=='object'&&OLEFA.features.localStorage){this.data[key]=data;if(localStorage){localStorage.setItem([this.getID(),key].join('-'),this.encrypt(JSON.stringify(data),key))}}};get(key){if(this.data[key]&&OLEFA.features.localStorage){return this.data[key]}else{return{}}};exists(key){if(this.data[key]){return true}else{return false}};destroy(){this.data={};super.destroy()};static defaults(){const inheritedDefaults=OcComponent.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,id:'olefaStorage',encryptionKey:''}};return extendedDefaults}}OcStorage.superClass=OcComponent;oc.OcStorage=OcStorage;"use strict";class OcBasic{constructor(){this.observers={};this.deferredFunctions={}}defaults(){return OcBasic.defaults()};numberToHex(number,minDigits){OLEFA.log.deprecated('Deprecated: use OcDatatype.numberToHex instead');return OcDatatype.numberToHex(number,minDigits)};hexToRgb(hex){OLEFA.log.deprecated('Deprecated: use OcDatatype.hexToRGB instead');return OcDatatype.hexToRGB(hex)};generateID(len){return OcBasic.generateID(len)}static generateID(len){const defaultLength=40;const half=2;const arr=new Uint8Array((len||defaultLength)/half);const crypto=window.crypto;crypto.getRandomValues(arr);return'id'+[].map.call(arr,OcDatatype.byteToHex).join('')};logPromiseCatch(reason){OLEFA.log.info(reason)};dataURItoBlob(dataURI){OLEFA.log.deprecated('Deprecated: use OcDatatype.dataURItoBlob instead');return OcDatatype.dataURItoBlob(dataURI)};encodeEntities(html){OLEFA.log.deprecated('Deprecated: use OcHtml.encodeEntities instead');return OcHtml.encodeEntities(html)};updateVideoConvert(file){const personal_file=file.replace(/resources\/video\/_conversations\/(source)/u,function(){return'resources/video/_conversations/'+Core.status.userid});if(jQuery('div.html5_video[data-file="'+file+'"]').length){OLEFA.api.getMedia(personal_file).then((json)=>{jQuery('div.html5_video[data-file="'+file+'"]').replaceWith(json.media_html)})}};crashedVideoConvert(file){const videopl=jQuery('div.html5_video[data-file="'+file+'"]');videopl.find('p').html('<a href="https://www.olefaschool.lu/project/81" target="_blank">'+OLEFA.i18n.get('video_broken')+'</a>');videopl.attr('data-file','');videopl.css('background-image','url(/osr/icons/flat/bw/32/cancel-red.png)')};checkInputs(jElements,options){const normalizedOptions={...{fullcheck:true},...options};let result=true;jElements.each(function(){const validation=(typeof(this.reportValidity)=='function')?this.reportValidity.bind(this):this.checkValidity.bind(this);if(jQuery(this).is(":visible")&&!validation()){result=false;if(!normalizedOptions.fullcheck){return false}};return undefined});return result};getInputs(pRoot){const jRoot=(typeof(pRoot)=='undefined')?jQuery('body'):jQuery(pRoot);return jRoot.find(':input[name!=""][name]')};inputToJSON(pRoot){const data={};const jElements=this.getInputs(pRoot);jElements.each(function(){const jThis=jQuery(this);const name=jThis.attr('name');if(name){if(this.type=='checkbox'){data[name]=jThis.is(':checked')}else if(jThis.is('[type="json"]')){try{data[name]=JSON.parse(String(jThis.val()))}catch(e){data[name]={}}}else{data[name]=jThis.val()}}});return data};createHTMLObserver(pElement,mutations,triggeredEvent){OLEFA.log.deprecated('Deprecated: Use OLEFA.mutations instead!');const jElement=jQuery(pElement);if(!jElement.length){return undefined};const id=this.generateID();const element=jElement.get(0);if(!element){return undefined};this.observers[id]=new MutationObserver(function(localMutations){jQuery(jElement).trigger(triggeredEvent,{element:element,mutations:localMutations})});this.observers[id].observe(element,mutations);return id};killHTMLObserver(id){OLEFA.log.deprecated('Deprecated: Use OLEFA.mutations instead!');if(this.observers[id]){this.observers[id].disconnect();delete this.observers[id]}};textToHue(str){OLEFA.log.deprecated('Deprecated: use OcDatatype.textToHue instead');return OcDatatype.textToHue(str)};parseDuration(seconds,pOptions){const normalizedOptions={...{granular:false,seperator:' ',shortUnit:false},...pOptions};const times=[{shortUnit:'s',unit:' '+OLEFA.i18n.get('seconds'),modulo:60},{shortUnit:'m',unit:' '+OLEFA.i18n.get('minutes'),modulo:60},{shortUnit:'h',unit:' '+OLEFA.i18n.get('hours'),modulo:24},{shortUnit:'d',unit:' '+OLEFA.i18n.get('days'),modulo:0}];let fuzzy=[];seconds=Number(seconds);let i=0;while(i==0||(i<times.length&&seconds>0)){const timeframe=times[i];const unit=(normalizedOptions.shortUnit)?timeframe.shortUnit:timeframe.unit;const value=(timeframe.modulo==0)?seconds:(seconds%timeframe.modulo)+unit;if(normalizedOptions.granular){fuzzy.unshift(value)}else{fuzzy=[value]};if(timeframe.modulo==0){seconds=0}else{seconds=Math.floor(seconds/timeframe.modulo)};i+=1};return fuzzy.join(normalizedOptions.seperator)};copyObject(object){OLEFA.log.deprecated('Deprecated: use OcObject.copy instead');return OcObject.copy(object)};mergeObjects(objects){OLEFA.log.deprecated('Deprecated: use OcObject.merge instead');return OcObject.merge(objects)};assignToObject(a,b){OLEFA.log.deprecated('Deprecated: use OcObject.assign instead');return OcObject.assign(a,b)};compareObjects(object1,object2){OLEFA.log.deprecated('Deprecated: use OcObject.compare instead');return OcObject.compare(object1,object2)};isDifferent(value1,value2){if(OcDatatype.isLiteralObject(value1)&&OcDatatype.isLiteralObject(value2)){if(!OcObject.compare(value1,value2)){return true}}else if(value1!=value2){return true};return false};modulo(x,n){return((x%n)+n)%n};
1removeValueFromArray(arr,value){OLEFA.log.deprecated('Deprecated: use OcArray.removeValue instead');return OcArray.removeValue(arr,value)};removeIndexFromArray(arr,index){OLEFA.log.deprecated('Deprecated: use OcArray.remove instead');return OcArray.remove(arr,index)};define(value,defaultvalue){OLEFA.log.deprecated('Deprecated! Use OcUtilities.define instead!');return OcUtilities.define(value,defaultvalue)};async asyncDefine(p,fallback){const[result,error]=await Oc.flattenPromise(p);if(error||!result){return fallback};return result}isElementInViewport(element){OLEFA.log.deprecated('DEPRECATED! Use OcHtml.isInViewport instead!');return OcHtml.isInViewport(element)};viewportDimensions(){const w=Math.max(document.documentElement.clientWidth,window.innerWidth||0);const h=Math.max(document.documentElement.clientHeight,window.innerHeight||0);return{height:h,width:w}};isScrollable(el){const jElement=jQuery(el);let response={x:false,y:false};if(!jElement.length){return response};const element=jElement.get(0);if(!element){return response};response={x:(element.scrollWidth>element.clientWidth&&jElement.css('overflow')!='hidden'&&jElement.css('overflowX')!='hidden'),y:(element.scrollHeight>element.clientHeight&&jElement.css('overflow')!='hidden'&&jElement.css('overflowY')!='hidden')};return response};randomNumber(from,to){return Math.floor((Math.random()*(to-from+1))+from)};getURLParameters(){OLEFA.log.deprecated('Use OcUtilities.getUrlParameters instead!');return OcUtilities.getUrlParameters()};isTouchScreen(){return OcDatatype.toBoolean('ontouchstart'in document.documentElement)};guessReadTime(text){OLEFA.log.deprecated('Deprecated! Use OcUtilities.guessReadTime instead');return OcUtilities.guessReadTime(text)};arrayDiff(a1,a2){OLEFA.log.deprecated('Deprecated: use OcArray.diff instead');return OcArray.diff(a1,a2)};getOAuthToken(service){return new Promise((resolve,reject)=>{jQuery.ajax('/ajax/userhome',{type:'POST',dataType:'json',data:{mode:'oauth_authorization',service:service},success:function(json){resolve(json)},error:()=>{reject(this.defaults().errors.TOKEN_GET)}})})};isElementInElement(element,parent){OLEFA.log.deprecated('DEPRECATED! Use OcUtilities.isElementInElement() instead');return OcUtilities.isElementInElement(element,parent)};getAllSetAttributesFromElement(jNode){const node=jQuery(jNode).get(0);const attributes={};if(!node){return attributes};for(const attribute of Object.values(node.attributes)){if(attribute.specified){attributes[attribute.name]=attribute.value}};return attributes};pushToBackOfExecutionQueue(fn){OLEFA.log.deprecated('DEPRECATED! Use OLEFA.basics.defer instead');return this.defer(fn)};defer(fn,cancelExecution,waitForFnBeforeResolve=false){OLEFA.log.deprecated('DEPRECATED! Use OcUtilities.defer() instead');return OcUtilities.defer(fn,cancelExecution,waitForFnBeforeResolve)};deferOnce(id,fn,cancelExecution,condition='instant'){if(!this.deferredFunctions[id]){this.deferredFunctions[id]=OcUtilities.deferUntil(fn,{condition:condition,cancelExecution:cancelExecution});this.deferredFunctions[id].finally(()=>{delete this.deferredFunctions[id]})};return this.deferredFunctions[id]};async deferredFor(arr,fn){const item=arr.shift();if(!item){return}await OcUtilities.setTimeout(()=>{fn(item)},0);await this.deferredFor(arr,fn)}sortObjectByValue(o,key,sortFunction){OLEFA.log.deprecated('Deprecated: Use OcObject.sortByValue instead');return OcObject.sortByValue(o,key,sortFunction)};toFuzzyFileSize(size){const sizes=['B','KB','MB'];let i=0;while(size>1000&&i<sizes.length-1){size/=1000;i+=1}return(Math.round(size*10)/10)+' '+sizes[i]};callMethod(obj,method,args){if(obj&&typeof(obj[method])=='function'){if(!OcDatatype.is('array',args)){args=[]};return obj[method](...args)}return null};fuzzyRelativeTime(date,reference,options){const D1=new Date(date);const D2=(reference)?new Date(reference):new Date();options=OcUtilities.define(options,{});if(!Intl||!Intl.RelativeTimeFormat){return this.__fuzzyRelativeTimePolyfill(D1,D2)};const timeData=this.secondsToTimeUnit((D1.getTime()-D2.getTime())/1000);const rtf=new Intl.RelativeTimeFormat(OLEFA.environment.language,options);return rtf.format(timeData.time,timeData.unitData.unit)};smartTimeStamp(dateTime,parameters){const normalizedParameters={...{short:true,appendTime:false},...parameters};if(typeof dateTime=='string'){dateTime=dateTime.replace(/^(\d+-\d+-\d+)( )(.*)$/u,function(match,p1,p2,p3){return p1+'T'+p3})};const d=new Date(dateTime);const now=new Date();const timeData=this.secondsToTimeUnit(Math.abs(d.getTime()-now.getTime())/1000);const options={};const numericIndex={second:1,minute:2,hour:3,day:4,month:5,year:6};const maxHoursDelta=18;const maxDaysDelta=6;const maxMonthDelta=9;if(timeData.unitData.numericIndex<=numericIndex.minute||(timeData.unitData.numericIndex==numericIndex.hour&&timeData.time<maxHoursDelta)){options.hour='2-digit';options.minute='2-digit'}else if(timeData.unitData.numericIndex==numericIndex.hour||(timeData.unitData.numericIndex==numericIndex.day&&timeData.time<max
1DaysDelta)){options.weekday=(normalizedParameters.short)?'short':'long'}else if(timeData.unitData.numericIndex==numericIndex.day||(timeData.unitData.numericIndex==numericIndex.month&&timeData.time<maxMonthDelta)){options.day='numeric';options.month=(normalizedParameters.short)?'short':'long'}else{options.year="numeric";options.month="numeric";options.day="numeric"}if(normalizedParameters.appendTime){options.hour='2-digit';options.minute='2-digit'}const language=OcUtilities.define(OLEFA.environment.language,navigator.language);const dtf=new Intl.DateTimeFormat(language,options);return dtf.format(d)};toISODuration(seconds){let isoString='P';const json={};const minutesInOneHour=60;const hoursInADay=24;const durations={};durations.minute=60;durations.hour=durations.minute*minutesInOneHour;durations.day=durations.hour*hoursInADay;const days=Math.trunc(seconds/durations.day);if(days){isoString=isoString+days+'DT';json.days=days};seconds=OLEFA.basics.modulo(seconds,durations.day);const hours=Math.trunc(seconds/durations.hour);if(hours){isoString=isoString+hours+'H';json.hours=hours};seconds=OLEFA.basics.modulo(seconds,durations.hour);const minutes=Math.trunc(seconds/durations.minute);if(minutes){isoString=isoString+minutes+'M';json.minutes=minutes};seconds=OLEFA.basics.modulo(seconds,durations.minute);seconds=Math.trunc(seconds);if(seconds){isoString=isoString+minutes+'S';json.seconds=seconds};return{isoString:isoString,json:json}};secondsToTimeUnit(seconds){const timeUnits=[{divider:1,unit:'second',numericIndex:1},{divider:60,unit:'minute',numericIndex:2},{divider:60,unit:'hour',numericIndex:3},{divider:24,unit:'day',numericIndex:4},{divider:30,unit:'month',numericIndex:5},{divider:12,unit:'year',numericIndex:6}];let time=seconds;let selectedUnit=timeUnits[0];for(const thisSelectedUnit of Object.values(timeUnits)){if(selectedUnit.unit!='second'&&Math.abs(time)<selectedUnit.divider){break};selectedUnit=thisSelectedUnit;time/=selectedUnit.divider};time=Math.trunc(time);return{time:time,unitData:selectedUnit}};__fuzzyRelativeTimePolyfill(d1,d2){const time=d1.getTime()-d2.getTime();const secondsInAMinute=60;const minutesInAnHour=60;const hoursInADay=24;const daysInAMonth=30;const monthsInAYear=12;const timeconst={second:1000};timeconst.minute=secondsInAMinute*timeconst.second;timeconst.hour=minutesInAnHour*timeconst.minute;timeconst.day=hoursInADay*timeconst.hour;timeconst.month=daysInAMonth*timeconst.day;timeconst.year=monthsInAYear*timeconst.month;if(time>0){if(time<timeconst.minute){return OLEFA.i18n.get('in_X_Y_time',{value:Math.ceil(time/timeconst.second),unit:OLEFA.i18n.get('seconds')})}else if(time<timeconst.hour){return OLEFA.i18n.get('in_X_Y_time',{value:Math.ceil(time/timeconst.minute),unit:OLEFA.i18n.get('minutes')})}else if(time<timeconst.day){return OLEFA.i18n.get('in_X_Y_time',{value:Math.ceil(time/timeconst.hour),unit:OLEFA.i18n.get('hours')})}else if(time<timeconst.month){return OLEFA.i18n.get('in_X_Y_time',{value:Math.ceil(time/timeconst.day),unit:OLEFA.i18n.get('days')})}else if(time<timeconst.year){return OLEFA.i18n.get('in_X_Y_time',{value:Math.ceil(time/timeconst.month),unit:OLEFA.i18n.get('months')})}return OLEFA.i18n.get('in_X_Y_time',{value:Math.ceil(time/timeconst.year),unit:OLEFA.i18n.get('years')})};if(time<timeconst.minute){return OLEFA.i18n.get('X_Y_time_ago',{value:Math.floor(time/timeconst.second),unit:OLEFA.i18n.get('seconds')})}else if(time<timeconst.hour){return OLEFA.i18n.get('X_Y_time_ago',{value:Math.floor(time/timeconst.minute),unit:OLEFA.i18n.get('minutes')})}else if(time<timeconst.day){return OLEFA.i18n.get('X_Y_time_ago',{value:Math.floor(time/timeconst.hour),unit:OLEFA.i18n.get('hours')})}else if(time<timeconst.month){return OLEFA.i18n.get('X_Y_time_ago',{value:Math.floor(time/timeconst.day),unit:OLEFA.i18n.get('days')})}else if(time<timeconst.year){return OLEFA.i18n.get('X_Y_time_ago',{value:Math.floor(time/timeconst.month),unit:OLEFA.i18n.get('months')})}return OLEFA.i18n.get('X_Y_time_ago',{value:Math.floor(time/timeconst.year),unit:OLEFA.i18n.get('years')})};urlResetParameters(values,createHistorySnapshot){createHistorySnapshot=OcUtilities.define(createHistorySnapshot,false);
1if(Boolean(window.history&&history.pushState)&&typeof(values)!='undefined'){const searchArray=['com='+com];for(const[key,value]of Object.entries(values)){searchArray.push([key,value].join('='))};const search='?'+searchArray.join('&');if(createHistorySnapshot){window.history.pushState(values,'',[window.location.pathname,search,window.location.hash].join(''))}else{window.history.replaceState(values,'',[window.location.pathname,search,window.location.hash].join(''))}}};urlUpdateParameters(values,createHistorySnapshot){createHistorySnapshot=OcUtilities.define(createHistorySnapshot,false);if(Boolean(window.history&&history.pushState)&&typeof(values)!='undefined'){let search=window.location.search;let currentValuesArray=[];if(search!=''){currentValuesArray=search.split(/&/u);currentValuesArray[0]=currentValuesArray[0].substring(1)}const currentValues={};for(let i=0;i<currentValuesArray.length;++i){const param=currentValuesArray[i].split('=');currentValues[param[0]]=param[1]};for(const key of Object.keys(values)){const value=values[key];if(value!==null){currentValues[key]=value}else if(typeof(currentValues[key])!='undefined'){delete currentValues[key]}};const searchArray=[];for(const key of Object.keys(currentValues)){searchArray.push([key,currentValues[key]].join('='))};search='?'+searchArray.join('&');if(createHistorySnapshot){window.history.pushState(currentValues,'',[window.location.pathname,search,window.location.hash].join(''))}else{window.history.replaceState(currentValues,'',[window.location.pathname,search,window.location.hash].join(''))}}};urlRemoveParameters(values,createHistorySnapshot){createHistorySnapshot=OcUtilities.define(createHistorySnapshot,false);if(!Array.isArray(values)){OLEFA.log.error(new Error('Wrong datatype. Array expected.'));return};if(Boolean(window.history&&history.pushState)&&typeof(values)!='undefined'){let search=window.location.search;const currentValuesArray=search.split(/&/u);currentValuesArray[0]=currentValuesArray[0].substring(1);const currentValues={};for(let i=0;i<currentValuesArray.length;++i){const param=currentValuesArray[i].split('=');currentValues[param[0]]=param[1]};for(let i=0;i<values.length;++i){if(currentValues[values[i]]){delete currentValues[values[i]]}};const searchArray=[];for(const key of Object.keys(currentValues)){searchArray.push([key,currentValues[key]].join('='))};search='?'+searchArray.join('&');if(createHistorySnapshot){window.history.pushState(currentValues,'',[window.location.pathname,search,window.location.hash].join(''))}else{window.history.replaceState(currentValues,'',[window.location.pathname,search,window.location.hash].join(''))}}};download(url,name){OLEFA.log.deprecated('DEPRECATED! Use OcUtilities.download() instead.');return OcUtilities.download(url,name)};nativeShare(properties){return OcUtilities.nativeShare(properties)};doNothing(){};getFolderFromPath(path){OLEFA.log.deprecated('DEPRECATED! Use OcUtilities.getFolderFromPath instead!');return OcUtilities.getFolderFromPath(path)}getFileNameFromPath(path){OLEFA.log.deprecated('DEPRECATED! Use OcUtilities.getFileNameFromPath instead!');return OcUtilities.getFileNameFromPath(path)}getFileExtension(path){OLEFA.log.deprecated('DEPRECATED! Use OcUtilities.getFileExtension instead!');return OcUtilities.getFileExtension(path)}clamp(min,value,max){OLEFA.log.deprecated('DEPRECATED! Use OcUtilities.clamp() instead');return OcUtilities.clamp(min,value,max)}getTinyMCESettings(){var tinymceLang='en';if(Core.status.sitelang=='lb'||Core.status.sitelang=='de'){tinymceLang='de'}else if(Core.status.sitelang=='fr'){tinymceLang='fr'}const settings={license_key:'gpl',cache_suffix:'?v='+Core.status.version,toolbar_mode:'sliding',mobile:{toolbar_mode:'floating'},branding:false,plugins:"table preview searchreplace directionality visualchars image charmap anchor code link fullscreen lists",menubar:false,entity_encoding:'raw',toolbar:"blocks | bold italic underline | alignleft aligncenter alignright al
1ignjustify | table inserttable tableprops deletetable cell row column | bullist numlist indent outdent | image | pastetext removeformat unlink code | fullscreen",extended_valid_elements:"a[class|download|href|id|lang|name|target|style|title],hr[class|id|lang],img[align|alt|border=0|class|height|id|lang|name|src|style|title|width],p[class|id|lang|style],span[class|id|lang|style],table[class|id|lang|style],tr[class|id|lang|style]",valid_styles:{'p':'padding-left,text-align','h1':'text-align','h2':'text-align','h3':'text-align','h4':'text-align','h5':'text-align','h6':'text-align','span':'font-weight,text-decoration','table':'background-color,border,border-collapse,border-color,border-spacing,border-style,border-width,height,margin,margin-left,margin-right,padding,width','tr':'background-color,border,border-collapse,border-color,border-spacing,border-style,border-width,height,margin,margin-left,margin-right,padding,width','th':'background-color,border,border-collapse,border-color,border-spacing,border-style,border-width,height,margin,margin-left,margin-right,padding,text-align,vertical-align,width','td':'background-color,border,border-collapse,border-color,border-spacing,border-style,border-width,height,margin,margin-left,margin-right,padding,text-align,vertical-align,width'},image_class_list:[{title:'None',value:''},{title:'Insert right',value:'olefa-tinymce-insert-right'},{title:'Insert left',value:'olefa-tinymce-insert-left'},{title:'Insert centered',value:'olefa-tinymce-insert-centered'}],table_class_list:[{title:'None',value:''},{title:'Website standard',value:'olefa-tinymce-website-standard'},{title:'Website standard responsive',value:'olefa-tinymce-website-standard olefa-tinymce-website-responsive'},{title:'Website standard responsive compact',value:'olefa-tinymce-website-standard olefa-tinymce-website-responsive responsive-compact'},{title:'Website enumeration',value:'olefa-tinymce-website-enumeration'},{title:'Website enumeration responsive',value:'olefa-tinymce-website-enumeration olefa-tinymce-website-responsive'},{title:'Website enumeration responsive compact',value:'olefa-tinymce-website-enumeration olefa-tinymce-website-responsive responsive-compact'},{title:'Table with images (top left)',value:'olefa-tinymce-website-imagetable'},{title:'Table with images (centered)',value:'olefa-tinymce-website-imagetable-c'}],table_default_attributes:{},images_file_types:'gif,jpg,jpeg,jpe,jif,jfif,jfi,png,tiff,tif,svg,webp',content_css:OLEFA.environment.folders.stylesheets+'/compiled/libMaterialDesign.compiled.css,'+OLEFA.environment.folders.stylesheets+'/olefa.css',browser_spellcheck:true,cleanup:true,text_patterns:false,forced_root_block_attrs:{'class':'olefa-tinymce-paragraph',},relative_urls:false,convert_urls:false,remove_script_host:false,language:tinymceLang,resize:false,statusbar:false,paste_data_images:false,table_header_type:'sectionCells',table_use_colgroups:false,a11y_advanced_options:true,image_caption:true};return settings}getAutocompleteSettings(){const settings={dataType:'json',deferRequestBy:500,minChars:2,paramName:'keyword',type:'POST',beforeRender:function(container){const id=OLEFA.basics.generateID();jQuery(this).attr('aria-controls',id).attr('aria-expanded','true');jQuery(container).attr('id',id)}};return settings}static defaults(){return{errors:{NO_ERROR:0,TOKEN_GET:81299,NATIVE_SHARE_UNSUPPORTED:55132,NATIVE_FILESHARE_UNSUPPORTED:87594}}}}(function(OcBasic){})(OcBasic||(OcBasic={}));oc.OcBasic=OcBasic;oc.upload=function(){this.default_values()};oc.upload.prototype.default_values=function(){this.areas=new Object()};oc.upload.prototype.activate=function(element,options){if(typeof(element)=='undefined'){return};if(!new XMLHttpRequest().upload){return};var id=element.id;if(!id){return};this.areas[id]=new oc.upload.area(element,options);return this.areas[id]};oc.upload.prototype.deactivate=function(id){if(typeof(this.areas[id])!='undefined'){this.areas[id].dinit();delete this.areas[id]}};oc.upload.area=function(element,options){this.default_values();this.init(element,options)};oc.upload.area.prototype.default_values=function(){this.dropzone=null;this.accept='*';this.type='single';this.filestack=[];this.uploading=false;this.index=0;this.xhr=new XMLHttpRequest();this.xhrHeaders={};this.data={};this.filename='file';this.url='';var that=this;this.functions={dragEnter:function(e){that.dragEnter(e)},dragOver:function(e){that.dragOver(e)},dragLeave:function(e){that.dragLeave(e)},drop:function(e){that.drop(e)},paste:function(e){that.paste(e)},fileProgress:function(e){that.fileProgress(e)},uploadComplete:function(e){that.uploadComplete(e)},uploadError:function(e){that.uploadError(e)}};this.resize_width=0;this.resize_height=0;this.treatImages=true;this.maxFileSize=70000000};oc.upload.area.prototype.init=function(element,options){this.dropzone=element;for(var key in options){if(key=='resolution'){var resolution=options.resolution.match(/(\d+)x(\d+)/u);this.resize_width=resolution[1];this.resize_height=resolution[2]}else{this[key]=options[key]}};this.events=jQuery('<div></div>');this.oc_events=new OcEvents();element.addEventListener('dragenter',this.functions.dragEnter,false);element.addEventListener('dragover',this.functions.dragOver,false);element.addEventListener('dragleave',this.functions.dragLeave,false);element.addEventListener('drop',this.functions.drop,false);element.addEventListener('paste',this.functions.paste,false)};oc.upload.area.prototype.__initEvents__xhr=function(xhr){xhr.addEventListener('load',this.functions.uploadComplete);const upload=xhr.upload;upload.addEventListener('progress',this.functions.fileProgress);upload.addEventListener('error',this.functions.uploadError)};oc.upload.area.prototype.__reloadxhr=function(){this.xhr.removeEventListener('load',this.functions.uploadComplete);this.xhr.upload.removeEventListener('progress',this.functions.fileProgress);this.xhr.upload.removeEventListener('error',this.functions.uploadError);this.xhr=new XMLHttpRequest()};oc.upload.area.prototype.fileProgress=function(event){this.onUploadProgress(this.dropzone,event);this.onFileUploadProgress(this.dropzone,this.filestack[this.index],this.index,event);this.oc_events.trigger('upload-progress',{dropzone:this.dropzone,event:event});this.oc_events.trigger('file-upload-progress',{dropzone:this.dropzone,file:this.filestack[this.index],index:this.index,event:event})};oc.upload.area.prototype.uploadComplete=function(event){var response={};try{response=JSON.parse(this.xhr.response)}catch(e){this.onFileUploadError(this.dropzone,this.filestack[this.index],this.index,event);this.oc_events.trigger('file-upload-error',{dropzone:this.dropzone,file:this.filestack[this.index],index:this.index,event:event})};this.onFileUploadComplete(response,this.dropzone,this.filestack[this.index],this.index,event);this.__trigger__fileUploadComplete({response:response,dropzone:this.dropzone,file:this.filestack[this.index],index:this.index,event:event});this.filestack[this.index]=null;this.index+=1;this.upload_file()};oc.upload.area.prototype.uploadError=function(event){this.onFileUploadError(this.dropzone,this.filestack[this.index],this.index,event);this.oc_events.trigger('file-upload-error',{dropzone:this.dropzone,file:this.filestack[this.index],index:this.index,event:event});this.filestack[this.index]=null;this.index+=1;this.upload_file()};oc.upload.area.prototype.dinit=function(){this.dropzone.removeEventListener('dragenter',this.functions.dragEnter,false);this.dropzone.removeEventListener('dragover',this.functions.dragOver,false);this.dropzone.removeEventListener('dragleave',this.functions.dragLeave,false);this.dropzone.removeEventListener('drop',this.functions.drop,false);const upload=this.xhr.upload;upload.removeEventListener('progress',this.functions.fileProgress);this.xhr.removeEventListener('load',this.functions.uploadComplete);upload.removeEventListener('error',this.functions.uploadError)};oc.upload.area.prototype.dragEnter=function(event){event.stopPropagation();event.preventDefault();this.onDragEnter(this.dropzone,event);this.oc_events.trigger('drag-enter',{dropzone:this.dropzone,event:event})};oc.upload.area.prototype.dragLeave=function(event){event.stopPropagation();event.preventDefault();this.onDragLeave(this.dropzone,event);this.oc_events.trigger('drag-leave',{dropzone:this.dropzone,event:event})};oc.upload.area.prototype.dragOver=function(event){event.stopPropagation();event.preventDefault();event.dataTransfer.dropEffect='copy'};oc.upload.area.prototype.paste=function(event){const items=event.clipboardData.items;for(var i=0;i<items.length;++i){const item=event.clipboardData.items[i];if(item&&item.kind=='file'){event.preventDefault();this.__addFileToQueue(item.getAsFile())}};this.upload_file()};oc.upload.area.prototype.drop=function(event){event.stopPropagation();event.preventDefault();this.onDragLeave(this.dropzone,event);var files=(typeof(event.detail.files)!='undefined')?event.detail.files:event.dataTransfer.files;
1if(this.type=='single'){if(this.uploading){return};this.filestack=[];this.index=0;this.__addFileToQueue(files[0])}else{for(const f of files){this.__addFileToQueue(f)}};this.upload_file()};oc.upload.area.prototype.__addFileToQueue=function(file){if(!this.valid_filetype(file)){this.onFileTypeInvalid(this.dropzone,file,event);this.oc_events.trigger('file-type-invalid',{dropzone:this.dropzone,file:file,event:event});return}else if(file.size>this.maxFileSize){this.onFileSizeError(this.dropzone,file,event);this.oc_events.trigger('file-size-error',{dropzone:this.dropzone,file:file,event:event});return};this.filestack.push(file);this.onFileAdd(file,this.filestack.length-1);this.oc_events.trigger('file-add',{file:file,index:this.filestack.length-1})};oc.upload.area.prototype.valid_filetype=function(file){var compare=this.check_filetype();var result=file.type.match(compare)||compare=='^.*$'||compare=='^.*/.*$';return OcDatatype.toBoolean(result)};oc.upload.area.prototype.check_filetype=function(){var type='';if(typeof(this.accept)=='string'){type=this.accept.replace(/\*/gu,'.*')}else{var types=[];for(var i=0;i<this.accept.length;++i){types.push(this.accept[i].replace(/\*/gu,'.*'))};type='('+types.join('|')+')'};return'^'+type+'$'};oc.upload.area.prototype.upload_file=function(){if(this.xhr.readyState!=4&&this.xhr.readyState!=0){return};if(!this.uploading){if(this.index>=this.filestack.length){return}this.uploading=true;this.onUploadStart(this.dropzone);this.oc_events.trigger('upload-start',{dropzone:this.dropzone})}else{if(this.index>=this.filestack.length){this.uploading=false;this.onUploadComplete(this.dropzone);this.events.trigger('upload-done',this.dropzone);this.oc_events.trigger('upload-done',{dropzone:this.dropzone});return}};var file=this.filestack[this.index];var reader=new FileReader();var that=this;reader.onloadend=function(){var data=atob(this.result.replace(/^.*?,/u,''));var filename='bla';that.onFileHandleStart(that.dropzone,file,that.index);that.oc_events.trigger('file-handle-start',{dropzone:that.dropzone,file:file,index:that.index});var sendFile=file;if(that.treatImages&&file.type.match(/^image\/.*$/iu)&&!file.type.match(/^image\/gif$/iu)){var jpeg=null;try{jpeg=new JpegMeta.JpegFile(data,filename)}catch(e){};var orientation=1;try{orientation=jpeg.tiff.Orientation.value}catch(e){};that.resize(file,orientation)}else{that.xhr_call(file,sendFile)}};reader.readAsDataURL(file)};oc.upload.area.prototype.xhr_call=function(file,sendFile){var data=new FormData();for(var key in this.data){data.append(key,this.data[key])};data.append('file',sendFile,file.name);this.__reloadxhr();this.__initEvents__xhr(this.xhr);this.xhr.open('POST',OLEFA.environment.siteURL()+this.url);for(var header in this.xhrHeaders){this.xhr.setRequestHeader(header,this.xhrHeaders[header])};this.xhr.setRequestHeader('Accept','application/json');const setup=jQuery.ajaxSetup();if(typeof(setup.beforeSend)=='function'){setup.beforeSend(this.xhr)};this.xhr.send(data);this.onFileUploadStart(this.dropzone,sendFile,this.index);this.oc_events.trigger('file-upload-start',{dropzone:this.dropzone,file:sendFile,index:this.index})};oc.upload.area.prototype.resize=function(file,orientation){var resizeData={orientation:(typeof(orientation)=='undefined')?1:orientation,canvas:document.createElement('canvas'),img:document.createElement('img'),blub:0,file:file,caller:this,browserVersionData:this.__browserVersionCheck()};resizeData.ctx=resizeData.canvas.getContext('2d');this.__resize(resizeData)};oc.upload.area.prototype.__resize=function(resizeData){resizeData.img.onload=function(){if(resizeData.blub){return false};resizeData.blub=1;var ocvs=document.createElement('canvas');var octx=ocvs.getContext('2d');var limit_width=resizeData.img.width;var limit_height=resizeData.img.height;var iOS=OcDatatype.toBoolean(navigator.userAgent.match(/(iPad|iPhone|iPod)/gu));if(iOS){if(limit_width*limit_height>5000000){var ratio={x:resizeData.img.width/resizeData.img.height,y:resizeData.img.height/resizeData.img.width};limit_width=~~Math.sqrt(5000000*ratio.x);limit_height=~~Math.sqrt(5000000*ratio.y)}};ocvs.width=limit_width;ocvs.height=limit_height;octx.drawImage(resizeData.img,0,0,limit_width,limit_height);var img_width=limit_width;var img_height=limit_height;if(!(resizeData.browserVersionData.result)){if(resizeData.orientation==8||resizeData.orientation==6){var temp=img_width;img_width=img_height;img_height=temp}}var MAX_WIDTH=resizeData.caller.resize_width||img_width;var MAX_HEIGHT=resizeData.caller.resize_height||img_height;var width=img_width;var height=img_height;if(width>height){if(width>MAX_WIDTH){height*=MAX_WIDTH/width;width=MAX_WIDTH}}else{if(height>MAX_HEIGHT){width*=MAX_HEIGHT/height;height=MAX_HEIGHT}};var tW=img_width;var tH=img_height;resizeData.canvas.width=img_width;resizeData.canvas.height=img_height;resizeData.ctx.translate(img_width/2,img_height/2);var radiants=0;if(resizeData.orientation==3){radiants=Math.PI};if(resizeData.orientation==8){radiants=-Math.PI/2};if(resizeData.orientation==6){radiants=Math.PI/2};if(!(resizeData.browserVersionData.result)){resizeData.ctx.rotate(radiants)}
1resizeData.ctx.drawImage(ocvs,-limit_width/2,-limit_height/2,limit_width,limit_height);resizeData.ctx.rotate(-radiants);resizeData.ctx.translate(-img_width/2,-img_height/2);ocvs.width=tW;ocvs.height=tH;octx.drawImage(resizeData.canvas,0,0,tW,tH);while(tW*0.5>width||tH*0.5>height){tW=Math.round(tW*0.5);tH=Math.round(tH*0.5);ocvs.width=tW;ocvs.height=tH;octx.drawImage(resizeData.canvas,0,0,tW,tH);resizeData.canvas.width=tW;resizeData.canvas.height=tH;resizeData.ctx.drawImage(ocvs,0,0,tW,tH,0,0,tW,tH)};resizeData.canvas.width=width;resizeData.canvas.height=height;resizeData.ctx.drawImage(ocvs,0,0,width,height);ste='f6b19054d7af4dd3d5d5e5a4ca1661e7';resizeData.img.src=resizeData.canvas.toDataURL('image/jpeg',0.6);var dataURL=resizeData.canvas.toDataURL('image/jpeg',0.6);var blob=OcDatatype.dataURItoBlob(dataURL,'image/jpeg');resizeData.canvas=null;ocvs=null;resizeData.ctx=null;octx=null;resizeData.caller.xhr_call(resizeData.file,blob)};const thisURL=(window.webkitURL)?webkitURL:URL;resizeData.img.src=thisURL.createObjectURL(resizeData.file)};oc.upload.area.prototype.__browserVersionCheck=function(){var u=navigator.userAgent;var b=oc.upload.area.prototype.__browserCheck(u);var v=null;switch(b){case'chrome':v=u.match(/(Chrome|CriOS)\/(\d{2,3})\./u);if(v!==null&&typeof(v[2])!='undefined'&&v[2]<81){return{result:0}}break;case'safari':v=u.match(/Version\/(\d{2,3}(\..*?|)) ((Mobile(\/.*|) )|)Safari/u);if(v!==null&&typeof(v[1])!='undefined'){return this.__AppleCheck(v[1],'safari')}break;case'firefox':v=u.match(/Firefox\/(\d{1,3}\.\d{1,2})/u);if(v!==null&&typeof(v[1])!='undefined'&&typeof(v)!='undefined'&&v[1]<77.0){return{result:0}}break;case'explorer':return{result:0};case'iOS':v=u.match(/OS (\d{1,2}_\d{1,2}(_\d{1,2})?)/u);if(v!==null&&typeof(v[1])!='undefined'){return this.__AppleCheck(v[1],'iOS')}break;default:};return{result:1}};oc.upload.area.prototype.__browserCheck=function(u){if(u.match(/(iPad|iPhone|iPod)/gu)){return'iOS'}else if(u.match(/(Chrome|CriOS)/gu)){return'chrome'}else if(u.match(/(Safari)/gu)){return'safari'}else if(u.match(/Firefox/gu)){return'firefox'}else if(u.match(/Trident/gu)){return'explorer'};return''};oc.upload.area.prototype.__AppleCheck=function(version,matchedCase){if(typeof(version)!='undefined'&&version!=''){var versions=(matchedCase=='iOS')?version.match(/(\d{1,2})_((\d{1,2}))(_(\d{1,2}))?/u):version.match(/(\d{2,3})(\.(\d{1,2})|)(\.(\d{1,2})|)/u);if(version!==null){var maj=typeof(versions[1])!='undefined'?versions[1]:'0';var min=typeof(versions[3])!='undefined'?versions[3]:'00';var suf=typeof(versions[5])!='undefined'?versions[5]:'00';if(min.length<2){min='0'+min};if(suf.length<2){suf='0'+suf};var versionStringResult=parseInt(maj+min+suf,10);var compareVersion=(matchedCase=='iOS')?130401:130100;if(versionStringResult<compareVersion){return{result:0}};return{result:1}}};return{result:1}};oc.upload.area.prototype.uploadFiles=function(files){var event=new OLEFA.CustomEvent('drop',{'detail':{files:files}});this.dropzone.dispatchEvent(event)};oc.upload.area.prototype.onFileAdd=function(file,index){};oc.upload.area.prototype.onUploadStart=function(dropzone){};oc.upload.area.prototype.onFileUploadStart=function(dropzone,binary,index){};oc.upload.area.prototype.onFileHandleStart=function(dropzone,file,index){};oc.upload.area.prototype.onUploadComplete=function(dropzone){};oc.upload.area.prototype.onFileUploadComplete=function(response,dropbox,file,index,event){};oc.upload.area.prototype.onUploadProgress=function(dropzone,event){};oc.upload.area.prototype.onFileUploadProgress=function(dropzone,file,index,event){};oc.upload.area.prototype.onFileUploadError=function(dropzone,file,index,event){};oc.upload.area.prototype.onFileTypeInvalid=function(dropzone,file,event){};oc.upload.area.prototype.onFileSizeError=function(element,file,event){var message=OLEFA.templateEngine.render(OLEFA.i18n.get('uploadFileSizeError'),{filename:file.name,filesize:fuzzySize(file.size),size:fuzzySize(this.maxFileSize)});dialogheader({title:OLEFA.i18n.get('filetoolarge'),content:'<p>'+message+'</p>'}).then(function(jDialog){jDialog.appendTo('body').trigger('show')}).catch(OLEFA.basics.logPromiseCatch)};oc.upload.area.prototype.onDragEnter=function(dropzone,event){};oc.upload.area.prototype.onDragLeave=function(dropzone,event){};oc.upload.area.prototype.__trigger__fileUploadComplete=function(data){this.oc_events.trigger('file-upload-complete',data)};Oc.createNamespaceIfNotExist('oc.upload.superUpload');Oc.createNamespaceIfNotExist('oc.upload.superUpload.uploadContainer');oc.upload.superUpload.browsers={};oc.upload.superUpload.browsers.resources=function(referer){this.dropZone=referer;this.data={url:'/ajax/resourcebrowser',fileLocation:'local',currentFolder:undefined,nodeCache:{},xhrFolder:undefined};this.handlers={onFileSelect:function(){},onFileError:function(){}}};oc.upload.superUpload.browsers.resources.prototype.openDialog=function(element,settings){this.root=element;this.data.currentFolder=settings.base;this.settings=settings;for(var type in this.settings.olefaBrowserHandlers){this.handlers[type]=this.settings.olefaBrowserHandlers[type]};this.loadBrowser()};oc.upload.superUpload.browsers.resources.prototype.getTemplates=function(){this.html={navigationList:OLEFA.templateEngine.getInlineTemplate('template.template-browser-olefa-navigation-list'),navigationItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-olefa-navigation-item'),contentItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-olefa-content-item')}};oc.upload.superUpload.browsers.resources.prototype.loadBrowser=function(){var Browser=this;OLEFA.templateEngine.renderTemplate('Upload/BrowserOLEFA.html',{'L10N_SELECT_FILE_OLEFA':OLEFA.i18n.get('select_file_olefa'),'L10N_SITE_NAME':'','L10N_CONTENTSTYLE_LIST_DESC':OLEFA.i18n.get('contentstyle-list-desc'),'L10N_CONTENTSTYLE_ICON_DESC':OLEFA.i18n.get('contentstyle-icon-desc'),'L10N_GO_TO_PARENT':OLEFA.i18n.get('go_to_parent'),'L10N_LOADING':OLEFA.i18n.get('loading'),'L10N_CANCEL':OLEFA.i18n.get('cancel'),'L10N_SELECT':OLEFA.i18n.get('select'),'DROPZONE':this.settings.originalDropZone.id}).then(function(content){jQuery(Browser.root).html(content);var title=jQuery(content).filter('div').attr('data-sitename')+'<br>'+jQuery(content).filter('div').attr('data-header');jQuery(Browser.root).parents('div.headerdialog').find('span.headerdialog-header-title').html(title);var controls_html=OLEFA.templateEngine.getInlineTemplate('template.template-browser-olefa-controls');
1jQuery(Browser.root).siblings('div.headerdialog-controls').html(controls_html);Browser.getTemplates();if(Browser.settings.olefaBrowser.specialFolders.length>0){var jUl=jQuery(Browser.root).find('ul.browser-olefa-main-content-special-list');jUl.attr('data-inuse','yes');for(var i=0;i<Browser.settings.olefaBrowser.specialFolders.length;++i){var item=Browser.settings.olefaBrowser.specialFolders[i];var html=Browser.html.navigationItem;html=OLEFA.templateEngine.render(html,{ref:item.folder,filename:item.label,can_read:'yes',list:''});jUl.append(html)}};content=Browser.html.navigationList;content=OLEFA.templateEngine.render(content,{ref:Browser.data.currentFolder});jQuery(Browser.root).find('nav.browser-olefa-main-navigation').append(content);if(Browser.settings.allowMultiUpload){jQuery(Browser.root).find('div.browser-olefa-main-content').selectable({distance:10,filter:'li.browser-olefa-main-content-item[data-type="file"][data-selectable="yes"]',selecting:function(event,ui){jQuery(ui.selecting).addClass('selected')},unselecting:function(event,ui){jQuery(ui.unselecting).removeClass('selected')}})};createOlefaButtons();Browser.changeFolder(Browser.data.currentFolder)}).catch(function(reason){console.log(reason)})};oc.upload.superUpload.browsers.resources.prototype.close=function(){jQuery(this.root).parents('div.headerdialog:first').trigger('close')};oc.upload.superUpload.browsers.resources.prototype.changeFolder=function(folder,pSwitchToFolder){var that=this;var switchToFolder=(typeof(pSwitchToFolder)!='undefined')?pSwitchToFolder:true;doFinally=function(){jQuery(that.root).children('div.browser-generic').removeClass('state-loading')};jQuery(that.root).children('div.browser-generic').addClass('state-loading');OLEFA.ajax({path:this.data.url,mode:'getFolder',APILevel:1,data:{folder:folder}}).then(function(json){if(switchToFolder){that.data.currentFolder=folder;jQuery('ul.browser-olefa-main-content-list').empty()};var processed=that.processItems(json.content);if(processed[0]==0){jQuery('li.browser-olefa-main-navigation-item[data-ref="'+folder+'"]').addClass('noChildren')};jQuery('li.browser-olefa-main-navigation-item[data-ref="'+folder+'"]').not('.visibleChildren').children('span.browser-olefa-main-navigation-item-switch').trigger('click');doFinally()}).catch(function(){doFinally()})};oc.upload.superUpload.browsers.resources.prototype.getVideoPreview=function(id){var browser=this;var p=new Promise(function(resolve,reject){resolve(browser.videoPreview(id))});return p};oc.upload.superUpload.browsers.resources.prototype.videoPreview=function(id){var template=OLEFA.templateEngine.getInlineTemplate('template.template-browser-olefa-media-video');var html=OLEFA.templateEngine.render(template,{source:'src="'+this.data.nodeCache[id].requestURL+'"'});return html};oc.upload.superUpload.browsers.resources.prototype.getFiles=function(){var browser=this;var getFiles=new Promise(function(resolve,reject){var files=[];jQuery(browser.root).find('li.browser-generic-main-content-item.selected').each(function(event){var ref=jQuery(this).attr('data-ref');var mime=jQuery(this).attr('data-mimetype');var data=browser.getFileInfo(ref);data.mime=mime;files.push(data)});resolve(files)});return getFiles};oc.upload.superUpload.browsers.resources.prototype.getFileInfo=function(id){var data=this.data.nodeCache[id];var regex=new RegExp('^'+this.dropZone.settings.base+'\/');var file={directory:this.data.currentFolder.replace(regex,''),file:[data.name,data.extension].join('.'),mime:data.mime,requestURL:data.requestURL};return file};oc.upload.superUpload.browsers.resources.prototype.processItems=function(items){var folderCount=0;var fileCount=0;for(var i=0;i<items.length;++i){var item=items[i];this.data.nodeCache[item.fullpath]=item;if(this.appendBrowser(item)){++folderCount};if(item.parent==this.data.currentFolder){this.appendFile(item)}};return[folderCount,fileCount]};oc.upload.superUpload.browsers.resources.prototype.appendBrowser=function(item){if(item.type=='folder'){var html=this.html.navigationItem;var jParent=jQuery(this.root).find('ul.browser-olefa-main-navigation-list[data-ref="'+item.parent+'"]');
1if(jParent.length>0){var jNode=jParent.children('li.browser-olefa-main-navigation-item[data-ref="'+item.fullpath+'"]');jParent.attr('data-loaded','yes');if(jNode.length>0){jNode.siblings('span.browser-olefa-main-navigation-item-name').text(item.name)}else{var ulhtml=this.html.navigationList;ulhtml=OLEFA.templateEngine.render(ulhtml,{ref:item.fullpath});var html=this.html.navigationItem;html=OLEFA.templateEngine.render(html,{ref:item.fullpath,filename:item.name,can_read:(item.acl.canread)?'yes':'no',list:ulhtml});jParent.append(html)}};return true};return false};oc.upload.superUpload.browsers.resources.prototype.appendFile=function(item){if(item.parent==this.data.currentFolder){var html=this.html.contentItem;var selectable=(item.type=='folder'||this.valid_filetype(item.mimetype))?'yes':'no';var display='';if(item.type=='file'&&item.mimetype.match(/^image\//)){display=OLEFA.environment.siteURL()+item.thumb}else if(item.type=='file'){display=[OLEFA.environment.folders.icons,'mime',item.extension+'.png'].join('/')}else{display=[OLEFA.environment.folders.icons,'mime/folder.png'].join('/')};html=OLEFA.templateEngine.render(html,{ref:item.fullpath,filename:(item.type=='file')?item.name+'.'+item.extension:item.name,display:"background-image: url('"+display+"')",type:item.type,selectable:selectable,mimetype:item.mimetype});jQuery('ul.browser-olefa-main-content-list').append(html);if(!!navigator.userAgent.match(/Trident.*rv\:11\./)){jQuery('ul.browser-generic-main-content-list').children('li[data-ref="'+item.fullpath+'"]').children('span.browser-generic-main-content-item-icon').css('background-image',"url('"+display+"')")}}};oc.upload.superUpload.browsers.resources.prototype.valid_filetype=function(mime){var compare=this.settings.acceptRegex;var result=mime.match(compare)||compare=='^.*$'||compare=='^.*/.*$';if(result){return true}else{return false}};oc.upload.superUpload.browsers.onedrive=function(referer){var urlapi='https://graph.microsoft.com/v1.0';var urlbase=urlapi+'/me/drive';this.dropZone=referer;this.url={base:urlbase,homedir:urlbase+'/root',listdir:urlbase+'/items/#!TPL_FOLDERID:/children?selectid,@content.downloadUrl&expand=thumbnails(select=small)',listdirRemote:urlapi+'/drives/#!TPL_DRIVEID:/items/#!TPL_FOLDERID:/children?selectid,@content.downloadUrl&expand=thumbnails(select=small)',listShared:urlbase+'/sharedWithMe',preview:urlbase+'/items/#!TPL_FILEID:/content',oauthAuthorize:'https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=#!TPL_CLIENT_ID:&redirect_uri=#!TPL_REDIRECT_URI:&scope=offline_access%20Files.ReadWrite%20User.Read&response_type=code&display=popup&state=#!TPL_STATE:'};this.data={url:'/ajax/resourcebrowser',fileLocation:'remote',currentFolder:undefined,nodeCache:{},xhrFolder:undefined,oauth:{link:this.url.oauthAuthorize,popup_settings:'height=500,width=500,dependent'}};this.xhrQueue=[];this.handlers={onFileSelect:function(){},onFileError:function(){}}};oc.upload.superUpload.browsers.onedrive.prototype.openDialog=function(element,settings){this.root=element;var locale=Core.status.sitelang;this.data.currentFolder=settings.base;this.settings=settings;for(var type in this.settings.olefaBrowserHandlers){this.handlers[type]=this.settings.olefaBrowserHandlers[type]};this.loadBrowser()};oc.upload.superUpload.browsers.onedrive.prototype.getTemplates=function(){var that=this;this.html={navigationList:OLEFA.templateEngine.getInlineTemplate('template.template-browser-onedrive-navigation-list'),navigationItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-onedrive-navigation-item'),contentItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-onedrive-content-item')}};oc.upload.superUpload.browsers.onedrive.prototype.loadBrowser=function(){var Browser=this;OLEFA.templateEngine.renderTemplate('Upload/BrowserOneDrive.html',{'L10N_SELECT_FILE_ONEDRIVE':OLEFA.i18n.get('select_file_onedrive'),'L10N_CONTENTSTYLE_LIST_DESC':OLEFA.i18n.get('contentstyle-list-desc'),'L10N_CONTENTSTYLE_ICON_DESC':OLEFA.i18n.get('contentstyle-icon-desc'),'L10N_AUTHENTICATING':OLEFA.i18n.get('authenticating'),'L10N_LOADING':OLEFA.i18n.get('loading'),'L10N_IMPORTING':OLEFA.i18n.get('importing'),'L10N_OAUTH_POPUP_MANUAL':OLEFA.i18n.get('oauth_popup_manual'),'L10N_GIVE_PERMISSION':OLEFA.i18n.get('give_permission'),'L10N_CANCEL':OLEFA.i18n.get('cancel'),'L10N_SELECT':OLEFA.i18n.get('select'),'dropzone':this.settings.originalDropZone.id}).then(function(content){jQuery(Browser.root).html(content);var title=jQuery(content).filter('div').attr('data-header');jQuery(Browser.root).parents('div.headerdialog').find('span.headerdialog-header-title').text(title);var controls_html=OLEFA.templateEngine.getInlineTemplate('template.template-browser-onedrive-control
1s');jQuery(Browser.root).siblings('div.headerdialog-controls').html(controls_html);Browser.getTemplates();if(Browser.settings.onedriveBrowser.specialFolders.length>0){var jUl=jQuery(Browser.root).find('ul.browser-generic-main-content-special-list');jUl.attr('data-inuse','yes');for(var i=0;i<Browser.settings.onedriveBrowser.specialFolders.length;++i){var item=Browser.settings.onedriveBrowser.specialFolders[i];var html=Browser.html.navigationItem;html=OLEFA.templateEngine.render(html,{ref:item.folder,filename:item.label,can_read:'yes',list:''});jUl.append(html)}};Browser.authenticate();if(Browser.settings.allowMultiUpload){jQuery(Browser.root).find('div.browser-onedrive-main-content').selectable({distance:10,filter:'li.browser-onedrive-main-content-item[data-type="file"][data-selectable="yes"]',selecting:function(event,ui){jQuery(ui.selecting).addClass('selected')},unselecting:function(event,ui){jQuery(ui.unselecting).removeClass('selected')}})};createOlefaButtons()})};oc.upload.superUpload.browsers.onedrive.prototype.authenticate=function(){this.token=JSON.parse(sessionStorage.getItem('onedrive-token'));var that=this;if(!this.token){jQuery.ajax('/ajax/userhome',{dataType:'json',data:{mode:'oauth_authorization',service:'microsoft'},beforeSend:function(){jQuery(that.root).children('div.browser-generic').addClass('state-authenticating')},success:function(data){if(data.status=='needConsent'){that.data.client_id=data.client_id;that.data.redirect_uri=data.redirect_uri;that.data.hid=data.hid;var link=OLEFA.templateEngine.render(that.data.oauth.link,{client_id:that.data.client_id,redirect_uri:encodeURI(that.data.redirect_uri),state:that.data.hid});that.consentWindow=window.open(link,'needConsent',that.data.oauth.popup_settings);if(!that.consentWindow){jQuery(that.root).children('div.browser-generic').addClass('state-popupBlocked')}else{jQuery(window).bind('message',function(event){console.log(event.originalEvent.data);if(event.originalEvent.data.status==1){that.authenticate()}})}}else if(data.status=='validToken'){that.token=data.token;that.getHomeDir()}},complete:function(){jQuery(that.root).children('div.browser-generic').removeClass('state-authenticating')},error:function(error){console.log(error)}})}else{this.getHomeDir()}};oc.upload.superUpload.browsers.onedrive.prototype.getHomeDir=function(){var url=OLEFA.templateEngine.render(this.url.homedir,{ACCESSTOKEN:this.token});var that=this;this.data.xhrFolder=jQuery.ajax(url,{type:'GET',headers:{'Authorization':'Bearer '+this.token},dataType:'json',beforeSend:function(){jQuery(that.root).children('div.browser-generic').addClass('state-loading')},success:function(json){that.homeDirectory=json.id;that.data.nodeCache[json.id]=json;jQuery(that.root).find('ul.browser-generic-main-navigation-list.homedirectory').attr('data-ref',that.homeDirectory);that.changeFolder(that.homeDirectory)},complete:function(){jQuery(that.root).children('div.browser-generic').removeClass('state-loading')}})};oc.upload.superUpload.browsers.onedrive.prototype.close=function(){jQuery(this.root).parents('div.headerdialog:first').trigger('close')};oc.upload.superUpload.browsers.onedrive.prototype.changeFolder=function(folder,pSwitchToFolder){var that=this;var switchToFolder=(typeof(pSwitchToFolder)!='undefined')?pSwitchToFolder:true;var folderData=this.data.nodeCache[folder];var url=undefined;var remoteItem=false;if(folder=='special-shared'){url=this.url.listShared}else if(folderData&&folderData.remoteItem){remoteItem=true;url=OLEFA.templateEngine.render(this.url.listdirRemote,{DRIVEID:folderData.remoteItem.parentReference.driveId,FOLDERID:folderData.remoteItem.id})}else{url=OLEFA.templateEngine.render(this.url.listdir,{FOLDERID:folder})};this.data.xhrFolder=jQuery.ajax(url,{type:'GET',headers:{'Authorization':'Bearer '+this.token},dataType:'json',beforeSend:function(){jQuery(that.root).children('div.browser-generic').addClass('state-loading')},success:function(json){if(json.value){if(switchToFolder){that.data.currentFolder=folder;jQuery('ul.browser-onedrive-main-content-list').empty()};var processed=that.processItems(json.value,folder,remoteItem);if(processed[0]==0){jQuery('li.browser-onedrive-main-navigation-item[data-ref="'+folder+'"]').addClass('noChildren')};jQuery('li.browser-onedrive-main-navigation-item[data-ref="'+folder+'"]').not('.visibleChildren').children('span.browser-onedrive-main-navigation-item-switch').trigger('click')}},complete:function(){jQuery(that.root).children('div.browser-generic').removeClass('state-loading')}})};oc.upload.superUpload.browsers.onedrive.prototype.processItems=function(items,parent,remoteItem){var folderCount=0;var fileCount=0;for(var i=0;i<items.length;++i){var item=items[i];item.parent=parent;item.mime=this.guessMIME(item);item.source=item['@microsoft.graph.downloadUrl'];if(remoteItem){item.remoteItem=item};this.data.nodeCache[item.id]=item;if(this.appendBrowser(item)){++folderCount};if(item.parent==this.data.currentFolder){this.appendFile(item)}};return[folderCount,fileCount]};oc.upload.superUpload.browsers.onedrive.prototype.getType=function(item){if(item.folder||(item.remoteItem&&item.remoteItem.folder)){return'folder'}else{return'file'}};oc.upload.superUpload.browsers.onedrive.prototype.guessMIME=function(item){if(item.file&&item.file.mimeType){return item.file.mimeType}else if(item.photo){return'image/'+this.extFromFilename(item.name)}else if(item.video){return'video/'+this.extFromFilename(item.name)}else if(item.audio){return'audio/'+this.extFromFilename(item.name)}else{return this.dropZone.guessMimeByExt(this.extFromFilename(item.name))}};oc.upload.superUpload.browsers.onedrive.prototype.extFromFilename=function(name){var a=name.split('.');var ext=a.pop();return ext};oc.upload.superUpload.browsers.onedrive.prototype.getVersions=function(item){var result={};if(item.type=='photo'){for(var i=0;i<item.images.length;++i){result[item.images[i].type]=item.images[i]}};return result};oc.upload.superUpload.browsers.onedrive.prototype.getVideoPreview=function(id){var browser=this;var p=new Promise(function(resolve,reject){resolve(browser.videoPreview(id))});return p};oc.upload.superUpload.browsers.onedrive.prototype.videoPreview=function(id){var template=OLEFA.templateEngine.getInlineTemplate('template.template-browser-onedrive-media-video');var html=OLEFA.templateEngine.render(template,{source:'src="'+this.data.nodeCache[id].source+'"'});return html};oc.upload.superUpload.browsers.onedrive.prototype.getFileInfo=function(id){var data=this.data.nodeCache[id];var file={link:data.source,name:data.name,mime:data.mime};return file};oc.upload.superUpload.browsers.onedrive.prototype.getFiles=function(){var browser=this;var getFiles=new Promise(function(resolve,reject){var files=[];jQuery(browser.root).find('li.browser-generic-main-content-item.selected').each(function(event){var ref=jQuery(this).attr('data-ref');files.push(browser.getFileInfo(ref))});resolve(files)});return getFiles};oc.upload.superUpload.browsers.onedrive.prototype.nextUpload=function(){if(this.xhrQueue.length){var data=this.xhrQueue.shift();var onComplete=data.complete;var that=this;data.complete=function(){if(typeof(onComplete)=='function'){onComplete.call(arguments)};that.nextUpload()};jQuery.ajax(data);jQuery(this.root).children('div.browser-generic').addClass('state-importing');
1jQuery(this.root).siblings('div.headerdialog-controls').find('button.browser-generic-controls-select').prop('olefa-object-reference').disabled=true;return true}else{jQuery(this.root).children('div.browser-generic').removeClass('state-importing');return false}};oc.upload.superUpload.browsers.onedrive.prototype.appendBrowser=function(item){var type=this.getType(item);if(type=='folder'&&item.parent!='special-shared'){var html=this.html.navigationItem;var jParent=jQuery(this.root).find('ul.browser-onedrive-main-navigation-list[data-ref="'+item.parent+'"]');if(jParent.length>0){var jNode=jParent.children('li.browser-onedrive-main-navigation-item[data-ref="'+item.id+'"]');jParent.attr('data-loaded','yes');if(jNode.length>0){jNode.siblings('span.browser-onedrive-main-navigation-item-name').text(item.name)}else{var ulhtml=this.html.navigationList;ulhtml=OLEFA.templateEngine.render(ulhtml,{ref:item.id});var html=this.html.navigationItem;html=OLEFA.templateEngine.render(html,{ref:item.id,filename:item.name,can_read:'yes',list:ulhtml});jParent.append(html)}};return true};return false};oc.upload.superUpload.browsers.onedrive.prototype.appendFile=function(item){if(item.parent==this.data.currentFolder){var type=this.getType(item);if(type!='folder'||item.parent!='special-shared'){var html=this.html.contentItem;var thumbnail=(item.thumbnails&&item.thumbnails[0])?item.thumbnails[0]:'';var selectable=((type=='folder')||(item.source&&this.valid_filetype(item.mime)))?'yes':'no';var display=(type=='file'&&item.mime.match(/^image\//)&&thumbnail)?thumbnail.small.url:(item.type=='video'&&item.picture)?item.picture:(type=='file')?'/osr/icons/mime/'+this.extFromFilename(item.name)+'.png':'/osr/icons/mime/folder.png';html=OLEFA.templateEngine.render(html,{ref:item.id,filename:item.name,display:"background-image: url('"+display+"')",type:type,selectable:selectable,mimetype:item.mime});jQuery('ul.browser-onedrive-main-content-list').append(html);if(!!navigator.userAgent.match(/Trident.*rv\:11\./)){jQuery('ul.browser-generic-main-content-list').children('li[data-ref="'+item.id+'"]').children('span.browser-generic-main-content-item-icon').css('background-image',"url('"+display+"')")}}}};oc.upload.superUpload.browsers.onedrive.prototype.getThumbnail=function(ref){var url=OLEFA.templateEngine.render(this.url.thumbnails,{FOLDERID:ref});var token=this.token;var nodeCache=this.nodeCache;return new Promise(function(resolve,reject){jQuery.ajax(url,{type:'GET',headers:{'Authorization':'Bearer '+token},dataType:'json',success:function(json){resolve(json.value)},error:function(jqxhr,textStatus){reject(OLEFA.errors.ajaxToCode(textStatus))}})})};oc.upload.superUpload.browsers.onedrive.prototype.valid_filetype=function(mime){var compare=this.settings.acceptRegex;var result=mime.match(compare)||compare=='^.*$'||compare=='^.*/.*$';if(result){return true}else{return false}};oc.upload.superUpload.browsers.googleDrive=function(referer){var urlbase='https://www.googleapis.com/drive/v3';this.dropZone=referer;this.url={base:urlbase,homedir:'https://www.googleapis.com/drive/v2/about?access_token=#!TPL_ACCESSTOKEN:&fields=rootFolderId',listdir:urlbase+'/files?access_token=#!TPL_ACCESSTOKEN:'+'&fields=files(contentHints%2Fthumbnail%2CfileExtension%2CiconLink%2Cid%2Ckind%2CmimeType%2Cname%2CthumbnailLink%2Cparents%2Cproperties%2CwebContentLink%2CwebViewLink)'+'&orderBy=folder,name'+'&q=#!TPL_QUERY:',download:urlbase+'/files/#!TPL_FILEID:?alt=media',oauthAuthorize:'https://accounts.google.com/o/oauth2/v2/auth'+'?scope='+encodeURI('https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/userinfo.profile')+'&state=#!TPL_STATE:'+'&redirect_uri=#!TPL_REDIRECT_URI:'+'&response_type=code'+'&client_id=#!TPL_CLIENT_ID:'+'&access_type=offline'+'&prompt=consent'};this.data={fileLocation:'remote',currentFolder:undefined,nodeCache:{},xhrFolder:undefined,oauth:{link:this.url.oauthAuthorize,popup_settings:'height=500,width=500,dependent'}};this.xhrQueue=[];this.handlers={onFileSelect:function(){},onFileError:function(){}}};oc.upload.superUpload.browsers.googleDrive.prototype.openDialog=function(element,settings){this.root=element;var locale=Core.status.sitelang;this.data.currentFolder=settings.base;this.settings=settings;this.handlers={};for(var type in this.settings.olefaBrowserHandlers){this.handlers[type]=this.settings.olefaBrowserHandlers[type]};this.loadBrowser()};oc.upload.superUpload.browsers.googleDrive.prototype.getTemplates=function(){var that=this;this.html={navigationList:OLEFA.templateEngine.getInlineTemplate('template.template-browser-googledrive-navigation-list'),navigationItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-googledrive-navigation-item'),contentItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-googledrive-content-item')}};oc.upload.superUpload.browsers.googleDrive.prototype.loadBrowser=function(){var Browser=this;OLEFA.templateEngine.renderTemplate('Upload/BrowserGoogleDrive.html',{'L10N_SELECT_FILE_GOOGLEDRIVE':OLEFA.i18n.get('select_file_googledrive'),'L10N_CONTENTSTYLE_LIST_DESC':OLEFA.i18n.get('contentstyle-list-desc'),'L10N_CONTENTSTYLE_ICON_DESC':OLEFA.i18n.get('contentstyle-icon-desc'),'L10N_GO_TO_PARENT':OLEFA.i18n.get('go_to_parent'),'L10N_GO_TO_HOMEDIR':OLEFA.i18n.get('go_to_homedir'),'L10N_LOADING':OLEFA.i18n.get('loading'),'L10N_AUTHENTICATING':OLEFA.i18n.get('authenticating'),'L10N_IMPORTING':OLEFA.i18n.get('importing'),'L10N_OAUTH_POPUP_MANUAL':OLEFA.i18n.get('oauth_popup_manual'),'L10N_GIVE_PERMISSION':OLEFA.i18n.get('give_permission'),'L10N_CANCEL':OLEFA.i18n.get('cancel'),'L10N_SELECT':OLEFA.i18n.get('select'),dropzone:this.settings.originalDropZone.id}).then(function(content){jQuery(Browser.root).html(content);var title=jQuery(content).filter('div').attr('data-header');jQuery(Browser.root).parents('div.headerdialog').find('span.headerdialog-header-title').text(title);var controls_html=OLEFA.templateEngine.getInlineTemplate('template.template-browser-googledrive-control
1s');jQuery(Browser.root).siblings('div.headerdialog-controls').html(controls_html);Browser.getTemplates();Browser.authenticate();if(Browser.settings.allowMultiUpload){jQuery(Browser.root).find('div.browser-googledrive-main-content').selectable({distance:10,filter:'li.browser-googledrive-main-content-item[data-type="file"][data-selectable="yes"]',selecting:function(event,ui){jQuery(ui.selecting).addClass('selected')},unselecting:function(event,ui){jQuery(ui.unselecting).removeClass('selected')}})};createOlefaButtons()}).catch(function(reason){console.log(reason)})};oc.upload.superUpload.browsers.googleDrive.prototype.authenticate=function(){this.token=JSON.parse(sessionStorage.getItem('google-token'));var that=this;if(!this.token){jQuery.ajax('/ajax/userhome',{dataType:'json',data:{mode:'oauth_authorization',service:'google'},beforeSend:function(){jQuery(that.root).children('div.browser-generic').addClass('state-authenticating')},success:function(data){if(data.status=='needConsent'){that.data.client_id=data.client_id;that.data.redirect_uri=data.redirect_uri;that.data.hid=data.hid;var link=OLEFA.templateEngine.render(that.data.oauth.link,{client_id:that.data.client_id,redirect_uri:encodeURI(that.data.redirect_uri),state:that.data.hid});that.consentWindow=window.open(link,'needConsent',that.data.oauth.popup_settings);if(!that.consentWindow){jQuery(that.root).children('div.browser-generic').addClass('state-popupBlocked')}else{jQuery(window).bind('message',function(event){if(event.originalEvent.data.status==1){that.authenticate()}})}}else if(data.status=='validToken'){that.token=data.token;that.getHomeDir()}},complete:function(){jQuery(that.root).children('div.browser-generic').removeClass('state-authenticating')},error:function(error){console.log(error)}})}else{this.getHomeDir()}};oc.upload.superUpload.browsers.googleDrive.prototype.getHomeDir=function(){var url=OLEFA.templateEngine.render(this.url.homedir,{ACCESSTOKEN:this.token});var that=this;this.data.xhrFolder=jQuery.ajax(url,{type:'GET',dataType:'json',beforeSend:function(){jQuery(that.root).children('div.browser-generic').addClass('state-loading')},success:function(json){that.homeDirectory=json.rootFolderId;jQuery(that.root).find('ul.browser-googledrive-main-navigation-list.homedirectory').attr('data-ref',that.homeDirectory);that.changeFolder(that.homeDirectory)},complete:function(){jQuery(that.root).children('div.browser-generic').removeClass('state-loading')}})};oc.upload.superUpload.browsers.googleDrive.prototype.close=function(){jQuery(this.root).parents('div.headerdialog:first').trigger('close')};oc.upload.superUpload.browsers.googleDrive.prototype.changeFolder=function(folder,pSwitchToFolder){var that=this;var switchToFolder=(typeof(pSwitchToFolder)!='undefined')?pSwitchToFolder:true;var url=OLEFA.templateEngine.render(this.url.listdir,{QUERY:encodeURI("'"+folder+"' in parents and trashed = false"),ACCESSTOKEN:this.token});this.data.xhrFolder=jQuery.ajax(url,{type:'GET',dataType:'json',beforeSend:function(){jQuery(that.root).children('div.browser-generic').addClass('state-loading')},success:function(json){if(json.files){if(switchToFolder){that.data.currentFolder=folder;jQuery('ul.browser-googledrive-main-content-list').empty()};var processed=that.processItems(json.files);if(processed[0]==0){jQuery('li.browser-googledrive-main-navigation-item[data-ref="'+folder+'"]').addClass('noChildren')};jQuery('li.browser-googledrive-main-navigation-item[data-ref="'+folder+'"]').not('.visibleChildren').children('span.browser-googledrive-main-navigation-item-switch').trigger('click')}},complete:function(){jQuery(that.root).children('div.browser-generic').removeClass('state-loading')}})};oc.upload.superUpload.browsers.googleDrive.prototype.processItems=function(items){var folderCount=0;var fileCount=0;for(var i=0;i<items.length;++i){var item=items[i];item.parent=item.parents[0];item.mime=item.mimeType;item.downloadFile=OLEFA.templateEngine.render(this.url.download,{FILEID:item.id,ACCESSTOKEN:this.token});this.data.nodeCache[item.id]=item;if(this.appendBrowser(item)){++folderCount};if(item.parent==this.data.currentFolder){this.appendFile(item)}};return[folderCount,fileCount]};oc.upload.superUpload.browsers.googleDrive.prototype.getType=function(type){if(type.match(/^(application\/vnd.google-apps.folder)$/)){return'folder'}else{return'file'}};oc.upload.superUpload.browsers.googleDrive.prototype.getExtension=function(item){if(item.fileExtension){return item.fileExtension}else{var a=item.name.split('.');var ext=a.pop();return ext}};oc.upload.superUpload.browsers.googleDrive.prototype.getVideoPreview=function(id){var browser=this;var p=new Promise(function(resolve,reject){resolve(browser.videoPreview(id))});return p};oc.upload.superUpload.browsers.googleDrive.prototype.videoPreview=function(id){var template=OLEFA.templateEngine.getInlineTemplate('template.template-browser-googledrive-media-video');var html=OLEFA.templateEngine.render(template,{source:'src="'+this.data.nodeCache[id].downloadFile+'"'});return html};oc.upload.superUpload.browsers.googleDrive.prototype.getFileInfo=function(id){var data=this.data.nodeCache[id];var file={link:data.downloadFile,name:data.name,mime:data.mime};return file};oc.upload.superUpload.browsers.googleDrive.prototype.getFiles=function(){var browser=this;var getFiles=new Promise(function(resolve,reject){var files=[];jQuery(browser.root).find('li.browser-generic-main-content-item.selected').each(function(event){var ref=jQuery(this).attr('data-ref');var mime=jQuery(this).attr('data-mimetype');var data=browser.getFileInfo(ref);data.mimetype=mime;files.push(browser.getFileInfo(ref))});resolve(files)});return getFiles};oc.upload.superUpload.browsers.googleDrive.prototype.nextUpload=function(){if(this.xhrQueue.length){var data=this.xhrQueue.shift();data.data['service']='google';var onComplete=data.complete;var that=this;data.complete=function(){if(typeof(onComplete)=='function'){onComplete.call(arguments)};that.nextUpload()};jQuery.ajax(data);jQuery(this.root).children('div.browser-generic').addClass('state-importing');
1jQuery(this.root).siblings('div.headerdialog-controls').find('button.browser-generic-controls-select').prop('olefa-object-reference').disabled=true;return true}else{jQuery(this.root).children('div.browser-generic').removeClass('state-importing');return false}};oc.upload.superUpload.browsers.googleDrive.prototype.appendBrowser=function(item){var type=this.getType(item.mime);if(type=='folder'){var html=this.html.navigationItem;var jParent=jQuery(this.root).find('ul.browser-googledrive-main-navigation-list[data-ref="'+item.parent+'"]');if(jParent.length>0){var jNode=jParent.children('li.browser-googledrive-main-navigation-item[data-ref="'+item.id+'"]');jParent.attr('data-loaded','yes');if(jNode.length>0){jNode.siblings('span.browser-googledrive-main-navigation-item-name').text(item.name)}else{var ulhtml=this.html.navigationList;ulhtml=OLEFA.templateEngine.render(ulhtml,{ref:item.id});var html=this.html.navigationItem;html=OLEFA.templateEngine.render(html,{ref:item.id,filename:item.name,can_read:'yes',list:ulhtml});jParent.append(html)}};return true};return false};oc.upload.superUpload.browsers.googleDrive.prototype.appendFile=function(item){if(item.parent==this.data.currentFolder){var type=this.getType(item.mime);var html=this.html.contentItem;var selectable=(type=='folder'||this.valid_filetype(item.mime))?'yes':'no';var display=(type=='file'&&item.thumbnailLink)?item.thumbnailLink:(type=='file')?'/osr/icons/mime/'+this.getExtension(item)+'.png':'/osr/icons/mime/folder.png';html=OLEFA.templateEngine.render(html,{ref:item.id,filename:item.name,display:"background-image: url('"+display+"')",type:type,selectable:selectable,mimetype:item.mime});jQuery('ul.browser-googledrive-main-content-list').append(html);if(!!navigator.userAgent.match(/Trident.*rv\:11\./)){jQuery('ul.browser-generic-main-content-list').children('li[data-ref="'+item.id+'"]').children('span.browser-generic-main-content-item-icon').css('background-image',"url('"+display+"')")}}};oc.upload.superUpload.browsers.googleDrive.prototype.valid_filetype=function(mime){var compare=this.settings.acceptRegex;var result=mime.match(compare)||compare=='^.*$'||compare=='^.*/.*$';if(result){return true}else{return false}};oc.upload.superUpload.browsers.dropbox=function(referer){var urlbase='https://api.dropbox.com/2';this.dropZone=referer;this.url={base:urlbase,listdir:urlbase+'/files/list_folder',downloadLink:urlbase+'/files/get_temporary_link',thumbnail:'https://content.dropboxapi.com/2/files/get_thumbnail',oauthAuthorize:'https://www.dropbox.com/oauth2/authorize?client_id=#!TPL_CLIENT_ID:&redirect_uri=#!TPL_REDIRECT_URI:&response_type=code&state=#!TPL_STATE:&token_access_type=offline'};this.data={url:'/ajax/resourcebrowser',fileLocation:'remote',currentFolder:null,nodeCache:{},xhrFolder:null,oauth:{link:this.url.oauthAuthorize,popup_settings:'height=500,width=500,dependent'}};this.xhrQueue=[];this.handlers={onFileSelect:function(){},onFileError:function(){}}};oc.upload.superUpload.browsers.dropbox.prototype.openDialog=function(element,settings){this.root=element;this.data.currentFolder=settings.base;this.settings=settings;for(var type in this.settings.olefaBrowserHandlers){this.handlers[type]=this.settings.olefaBrowserHandlers[type]};this.loadBrowser()};oc.upload.superUpload.browsers.dropbox.prototype.getTemplates=function(){this.html={navigationList:OLEFA.templateEngine.getInlineTemplate('template.template-browser-dropbox-navigation-list'),navigationItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-dropbox-navigation-item'),contentItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-dropbox-content-item')}};oc.upload.superUpload.browsers.dropbox.prototype.loadBrowser=function(){var that=this;OLEFA.templateEngine.renderTemplate('Upload/BrowserDropbox.html',{'L10N_SERVICESELECT_DROPBOX':OLEFA.i18n.get('superupload_dropbox'),'L10N_CONTENTSTYLE_LIST_DESC':OLEFA.i18n.get('contentstyle-list-desc'),'L10N_CONTENTSTYLE_ICON_DESC':OLEFA.i18n.get('contentstyle-icon-desc'),'L10N_GO_TO_PARENT':OLEFA.i18n.get('go_to_parent'),'L10N_GO_TO_HOMEDIR':OLEFA.i18n.get('go_to_homedir'),'L10N_LOADING':OLEFA.i18n.get('loading'),'L10N_AUTHENTICATING':OLEFA.i18n.get('authenticating'),'L10N_IMPORTING':OLEFA.i18n.get('importing'),'L10N_OAUTH_POPUP_MANUAL':OLEFA.i18n.get('oauth_popup_manual'),'L10N_GIVE_PERMISSION':OLEFA.i18n.get('give_permission'),'L10N_CANCEL':OLEFA.i18n.get('cancel'),'L10N_SELECT':OLEFA.i18n.get('select'),'dropzone':this.settings.originalDropZone.id}).then(function(content){jQuery(that.root).html(content);var title=jQuery(content).filter('div').attr('data-header');jQuery(that.root).parents('div.headerdialog').find('span.headerdialog-header-title').text(title);var controls_html=OLEFA.templateEngine.getInlineTemplate('template.template-browser-dropbox-controls');
1jQuery(that.root).siblings('div.headerdialog-controls').html(controls_html);that.getTemplates();that.authenticate();if(that.settings.allowMultiUpload){jQuery(that.root).find('div.browser-dropbox-main-content').selectable({distance:10,filter:'li.browser-dropbox-main-content-item[data-type="file"][data-selectable="yes"]',selecting:function(event,ui){jQuery(ui.selecting).addClass('selected')},unselecting:function(event,ui){jQuery(ui.unselecting).removeClass('selected')}})};createOlefaButtons()}).catch(function(reason){OLEFA.log.info(reason)})};oc.upload.superUpload.browsers.dropbox.prototype.authenticate=function(){this.token=JSON.parse(sessionStorage.getItem('dropbox-token'));var that=this;if(!this.token){jQuery.ajax('/ajax/userhome',{dataType:'json',data:{mode:'oauth_authorization',service:'dropbox'},beforeSend:function(){jQuery(that.root).children('div.browser-generic').addClass('state-authenticating')},success:function(data){if(data.status=='needConsent'){that.data.client_id=data.client_id;that.data.redirect_uri=data.redirect_uri;that.data.hid=data.hid;var link=OLEFA.templateEngine.render(that.data.oauth.link,{client_id:that.data.client_id,redirect_uri:encodeURI(that.data.redirect_uri),state:that.data.hid});that.consentWindow=window.open(link,'needConsent',that.data.oauth.popup_settings);if(!that.consentWindow){jQuery(that.root).children('div.browser-generic').addClass('state-popupBlocked')}else{jQuery(window).bind('message',function(event){if(event.originalEvent.data.status==1){that.authenticate()}})}}else if(data.status=='validToken'){that.token=data.token;that.getHomeDir()}},complete:function(){jQuery(that.root).children('div.browser-generic').removeClass('state-authenticating')},error:function(error){OLEFA.log.info(error)}})}else{this.getHomeDir()}};oc.upload.superUpload.browsers.dropbox.prototype.getHomeDir=function(){this.homeDirectory='~';this.data.nodeCache['~']={};jQuery(this.root).find('ul.browser-generic-main-navigation-list.homedirectory').attr('data-ref',this.homeDirectory);this.changeFolder(this.homeDirectory)};oc.upload.superUpload.browsers.dropbox.prototype.close=function(){jQuery(this.root).parents('div.headerdialog:first').trigger('close')};oc.upload.superUpload.browsers.dropbox.prototype.changeFolder=function(folder,pSwitchToFolder){var that=this;var switchToFolder=(typeof(pSwitchToFolder)!='undefined')?pSwitchToFolder:true;var iFolder=(folder=='~')?'':folder;this.data.xhrFolder=jQuery.ajax(this.url.listdir,{type:'POST',dataType:'json',processData:false,headers:{'Authorization':'Bearer '+this.token,'Content-Type':'application/json; charset=utf-8'},data:JSON.stringify({path:iFolder,include_media_info:true}),beforeSend:function(){jQuery(that.root).children('div.browser-generic').addClass('state-loading')},success:function(json){if(json.entries){if(switchToFolder){that.data.currentFolder=folder;jQuery('ul.browser-dropbox-main-content-list').empty()};var processed=that.processItems(json.entries);if(processed[0]==0){jQuery('li.browser-dropbox-main-navigation-item[data-ref="'+folder+'"]').addClass('noChildren')};jQuery('li.browser-dropbox-main-navigation-item[data-ref="'+folder+'"]').not('.visibleChildren').children('span.browser-dropbox-main-navigation-item-switch').trigger('click')}},complete:function(){jQuery(that.root).children('div.browser-generic').removeClass('state-loading')}})};oc.upload.superUpload.browsers.dropbox.prototype.processItems=function(items){var folderCount=0;var fileCount=0;for(let i=0;i<items.length;++i){const item=items[i];item.parent=this.data.currentFolder;item.mime=this.guessMIME(item);var typePrefix=(this.getType(item)=='folder')?0:1;item.order=[typePrefix,item.name].join('-').toLowerCase();this.data.nodeCache[item.path_display]=item};items.sort(function(a,b){if(a.order>b.order){return 1};return-1});for(var i=0;i<items.length;++i){var item=items[i];if(this.appendBrowser(item)){folderCount+=1};if(item.parent==this.data.currentFolder){this.appendFile(item)}};return[folderCount,fileCount]};oc.upload.superUpload.browsers.dropbox.prototype.getType=function(item){return item['.tag']};oc.upload.superUpload.browsers.dropbox.prototype.guessMIME=function(item){var ext=this.extFromFilename(item.name);return this.dropZone.guessMimeByExt(ext)};oc.upload.superUpload.browsers.dropbox.prototype.extFromFilename=function(name){var a=name.split('.');var ext=a.pop();return ext};oc.upload.superUpload.browsers.dropbox.prototype.getVideoPreview=function(id){var that=this;var p=new Promise(function(resolve,reject){that.getDownloadLink(id).then(function(data){var template=OLEFA.templateEngine.getInlineTemplate('template.template-browser-dropbox-media-video');var html=OLEFA.templateEngine.render(template,{source:'src="'+data.link+'"'});resolve(html)})});return p};oc.upload.superUpload.browsers.dropbox.prototype.getFileInfo=function(id){var data=this.data.nodeCache[id];var file={name:data.name,mime:data.mime,link:''};return file};oc.upload.superUpload.browsers.dropbox.prototype.getFiles=function(){var that=this;var getFiles=new Promise(function(resolve,reject){var files=[];var filesWait={};jQuery(that.root).find('li.browser-generic-main-content-item.selected').each(function(event){var ref=jQuery(this).attr('data-ref');filesWait[ref]=1;that.getDownloadLink(ref).then(function(file){delete filesWait[ref];var data=that.getFileInfo(ref);data.link=file.link;files.push(data);if(Object.keys(filesWait).length==0){resolve(files)}},function(){delete filesWait[ref];if(Object.keys(filesWait).length==0){resolve(files)}})})});return getFiles};oc.upload.superUpload.browsers.dropbox.prototype.getDownloadLink=function(id){var that=this;var link=new Promise(function(resolve,reject){jQuery.ajax(that.url.downloadLink,{type:'POST',responeType:'json',headers:{'Authorization':'Bearer '+that.token,'Content-Type':'application/json'},processData:false,data:JSON.stringify({path:id}),success:function(json){resolve(json)},error:function(jqxhr,textStatus){reject(OLEFA.errors.ajaxToCode(textStatus))}})});return link};oc.upload.superUpload.browsers.dropbox.prototype.nextUpload=function(){if(this.xhrQueue.length){var data=this.xhrQueue.shift();var onComplete=data.complete;var that=this;data.complete=function(){if(typeof(onComplete)=='function'){onComplete.call(arguments)};that.nextUpload()};jQuery.ajax(data);jQuery(this.root).children('div.browser-generic').addClass('state-importing');
1jQuery(this.root).siblings('div.headerdialog-controls').find('button.browser-generic-controls-select').prop('olefa-object-reference').disabled=true;return true}jQuery(this.root).children('div.browser-generic').removeClass('state-importing');return false};oc.upload.superUpload.browsers.dropbox.prototype.appendBrowser=function(item){var type=this.getType(item);if(type=='folder'){let html=this.html.navigationItem;var jParent=jQuery(this.root).find('ul.browser-dropbox-main-navigation-list[data-ref="'+item.parent+'"]');if(jParent.length>0){var jNode=jParent.children('li.browser-dropbox-main-navigation-item[data-ref="'+item.path_display+'"]');jParent.attr('data-loaded','yes');if(jNode.length>0){jNode.siblings('span.browser-dropbox-main-navigation-item-name').text(item.name)}else{var ulhtml=this.html.navigationList;ulhtml=OLEFA.templateEngine.render(ulhtml,{ref:item.path_display});html=this.html.navigationItem;html=OLEFA.templateEngine.render(html,{ref:item.path_display,filename:item.name,can_read:'yes',list:ulhtml});jParent.append(html)}};return true};return false};oc.upload.superUpload.browsers.dropbox.prototype.appendFile=function(item){if(item.parent==this.data.currentFolder){var type=this.getType(item);var html=this.html.contentItem;var selectable=(type=='folder'||this.valid_filetype(item.mime))?'yes':'no';var display=(type=='file')?'/osr/icons/mime/'+this.extFromFilename(item.name)+'.png':'/osr/icons/mime/folder.png';html=OLEFA.templateEngine.render(html,{ref:item.path_display,filename:item.name,display:"background-image: url('"+display+"')",type:type,selectable:selectable,mimetype:item.mime});jQuery('ul.browser-dropbox-main-content-list').append(html);if(type=='file'&&item.mime.match(/^image\//u)){this.getThumbnail(item.path_display).then(function(data){jQuery('ul.browser-dropbox-main-content-list').children('li[data-ref="'+item.path_display+'"]').children('span.browser-generic-main-content-item-icon').css('background-image',"url('"+data+"')")})}else if(OcDatatype.toBoolean(navigator.userAgent.match(/Trident.*rv:11\./u))){jQuery('ul.browser-generic-main-content-list').children('li[data-ref="'+item.path_display+'"]').children('span.browser-generic-main-content-item-icon').css('background-image','url("'+display+'")')}}};oc.upload.superUpload.browsers.dropbox.prototype.getThumbnail=function(ref){var that=this;var p=new Promise(function(resolve,reject){that.getDownloadLink(ref).then(function(data){resolve(data.link)})});return p};oc.upload.superUpload.browsers.dropbox.prototype.valid_filetype=function(mime){var compare=this.settings.acceptRegex;var result=mime.match(compare)||compare=='^.*$'||compare=='^.*/.*$';if(result){return true};return false};oc.upload.superUpload.browsers.pixabay=function(referer){this.apiCache=new OcCache({storageID:'pixabay',cacheToLive:86400000});this.apiKey='';this.url='https://pixabay.com/api/';this.dropZone=referer;this.data={fileLocation:'remote',};this.xhrQueue=[];this.handlers={onFileSelect:function(){},onFileError:function(){}}};oc.upload.superUpload.browsers.pixabay.prototype.openDialog=function(element,settings){this.root=element;this.settings=settings;for(var type in this.settings.olefaBrowserHandlers){this.handlers[type]=this.settings.olefaBrowserHandlers[type]};this.loadBrowser()};oc.upload.superUpload.browsers.pixabay.prototype.getTemplates=function(){this.html={contentItem:OLEFA.templateEngine.getInlineTemplate('template.template-browser-pixabay-content-item')}};oc.upload.superUpload.browsers.pixabay.prototype.setupApiCall=function(query,page){var browser=this;var cachedItemFound=false;var cachedItem=this.apiCache.getFromCache(query);if(OcDatatype.is('object',cachedItem)&&OcObject.hasProperty(cachedItem.hits,'page')){cachedItemFound=true;this.showResults(query,page,cachedItem,1)}if(!cachedItemFound){if(this.apiKey==''){jQuery.ajax(OLEFA.environment.siteURL()+'/ajax/userhome',{method:'POST',dataType:'json',data:{mode:'get_api_token',service:'pixabay'}}).done(function(data){browser.apiKey=data.api_key;browser.getApiResult(data.api_key,query,page)}).fail(function(xhr){console.log('error',xhr)})}else{browser.getApiResult(this.apiKey,query,page)}}};oc.upload.superUpload.browsers.pixabay.prototype.appendFile=function(item){var html=this.html.contentItem;var selectable='yes';var display=item.previewURL;html=OLEFA.templateEngine.render(html,{ref:item.imageURL,filename:this.generateName(item.previewURL),display:"background-image: url('"+display+"')",type:'file',selectable:selectable});jQuery('ul.browser-pixabay-main-content-list').append(html)};oc.upload.superUpload.browsers.pixabay.prototype.getApiResult=function(api_key,query,page){var browser=this;if(page!=='no-action'){var loader=new OcMdProgressbarCircular({determinate:false});loader.base.addClass('pixabay-loader-animation');jQuery('.browser-pixabay-main-content').append(loader.base);this.callApi(api_key,query,page).then(function(data){loader.destroy();browser.showResults(query,page,data,0)}).catch(function(error){OLEFA.snackbar.show({"message":OLEFA.i18n.get('pixabay-connection-error')});jQuery('.browser-pixabay-main-content').append('<p class="pixabay-error-text">'+OLEFA.i18n.get('pixabay-connection-error')+'</p>');loader.destroy()})}};oc.upload.superUpload.browsers.pixabay.prototype.callApi=function(api_key,query,page){var browser=this;return new Promise(function(resolve,reject){jQuery.ajax(browser.url,{method:'GET',dataType:'json',data:{key:api_key,q:query,safesearch:'true',lang:'de',per_page:100,page:page,}}).done(function(data){var cachedItem=browser.apiCache.getFromCache(query);if(OcDatatype.is('object',cachedItem)){cachedItem.hits[page]=data.hits;browser.apiCache.putInCache(query,cachedItem)}else{var item={total:data.total,totalHits:data.totalHits,hits:[]};item.hits[page]=data.hits;browser.apiCache.putInCache(query,item)};return resolve(data)}).fail(function(){return reject()})})};oc.upload.superUpload.browsers.pixabay.prototype.showResults=function(query,page,data,isCacheData){var jList=jQuery('ul.browser-pixabay-main-content-list');var navigationArrows={prevArrow:'<img src="'+OLEFA.environment.folders.icons+'/flat/bw/16/previous.png" class="pixabay-prev-arrow" alt="Previous page" />',nextArrow:'<img src="'+OLEFA.environment.folders.icons+'/flat/bw/16/next.png" class="pixabay-next-arrow" alt="Next page"/>'};var totalPages=Math.ceil(data.totalHits/100);var hits=isCacheData?data.hits[page]:data.hits;for(var i=0;i<hits.length;i++){var item=hits[i];this.appendFile(item)};jList.attr('data-currentpage',page);jList.attr('data-totalpages',totalPages);jList.attr('data-query',query);jQuery('p.pixabay-navigation').remove();if(data.total>100){switch(page){case 1:jList.after('<p class="pixabay-navigation">'+page+' / '+totalPages+navigationArrows.nextArrow+'</p>');break;case totalPages:jList.after('<p class="pixabay-navigation">'+navigationArrows.prevArrow+page+' / '+totalPages+'</p>');break;default:jList.after('<p class="pixabay-navigation">'+navigationArrows.prevArrow+page+' / '+totalPages+navigationArrows.nextArrow+'</p>');break}}};oc.upload.superUpload.browsers.pixabay.prototype.guessMIME=function(file){var ext=this.extFromFilename(file);return this.dropZone.guessMimeByExt(ext)};oc.upload.superUpload.browsers.pixabay.prototype.extFromFilename=function(name){var a=name.split('.');var ext=a.pop();return ext};oc.upload.superUpload.browsers.pixabay.prototype.generateName=function(url){return url.substring(url.lastIndexOf('/')+1)};oc.upload.superUpload.browsers.pixabay.prototype.getFiles=function(){var browser=this;var getFiles=new Promise(function(resolve,reject){var files=[];jQuery(browser.root).find('li.browser-generic-main-content-item.selected').each(function(event){var ref=jQuery(this).attr('data-ref');var filename=jQuery(this).attr('title');var file={link:ref,name:browser.generateName(filename),mime:browser.guessMIME(ref)};files.push(file)});resolve(files)});return getFiles};oc.upload.superUpload.browsers.pixabay.prototype.loadBrowser=function(){var Browser=this;
1OLEFA.templateEngine.renderTemplate('Upload/BrowserPixabay.html',{'L10N_CONTENTSTYLE_LIST_DESC':OLEFA.i18n.get('contentstyle-list-desc'),'L10N_CONTENTSTYLE_ICON_DESC':OLEFA.i18n.get('contentstyle-icon-desc'),'L10N_LOADING':OLEFA.i18n.get('loading'),'L10N_IMPORTING':OLEFA.i18n.get('importing'),'L10N_SEARCH_PICTURES':OLEFA.i18n.get('search-pictures'),'L10N_SEARCH':OLEFA.i18n.get('search'),'L10N_EXAMPLE_CATEGORIES':OLEFA.i18n.get('example-categories'),'L10N_PIXABAY_ANIMALS':OLEFA.i18n.get('pixabay-animals'),'L10N_PIXABAY_BACKGROUNDS':OLEFA.i18n.get('pixabay-backgrounds'),'L10N_PIXABAY_BUILDINGS':OLEFA.i18n.get('pixabay-buildings'),'L10N_PIXABAY_COMPUTER':OLEFA.i18n.get('pixabay-computer'),'L10N_PIXABAY_EDUCATION':OLEFA.i18n.get('pixabay-education'),'L10N_PIXABAY_FEELINGS':OLEFA.i18n.get('pixabay-feelings'),'L10N_PIXABAY_FOOD':OLEFA.i18n.get('pixabay-food'),'L10N_PIXABAY_HEALTH':OLEFA.i18n.get('pixabay-health'),'L10N_PIXABAY_MUSIC':OLEFA.i18n.get('pixabay-music'),'L10N_PIXABAY_NATURE':OLEFA.i18n.get('pixabay-nature'),'L10N_PIXABAY_PEOPLE':OLEFA.i18n.get('pixabay-people'),'L10N_PIXABAY_PLACES':OLEFA.i18n.get('pixabay-places'),'L10N_PIXABAY_RELIGION':OLEFA.i18n.get('pixabay-religion'),'L10N_PIXABAY_SCIENCE':OLEFA.i18n.get('pixabay-science'),'L10N_PIXABAY_SPORTS':OLEFA.i18n.get('pixabay-sports'),'L10N_PIXABAY_TRANSPORT':OLEFA.i18n.get('pixabay-transport'),'L10N_PIXABAY_TRAVEL':OLEFA.i18n.get('pixabay-travel'),'L10N_CANCEL':OLEFA.i18n.get('cancel'),'L10N_SELECT':OLEFA.i18n.get('select'),'dropzone':this.settings.originalDropZone.id}).then(function(content){jQuery(Browser.root).html(content);var controls_html=OLEFA.templateEngine.getInlineTemplate('template.template-browser-pixabay-controls');jQuery(Browser.root).siblings('div.headerdialog-controls').html(controls_html);Browser.getTemplates();createOlefaButtons()})};oc.upload.superUpload.browsers.pixabay.prototype.nextUpload=function(){if(this.xhrQueue.length){var data=this.xhrQueue.shift();var onComplete=data.complete;var that=this;data.complete=function(){if(typeof(onComplete)=='function'){onComplete.call(arguments)};that.nextUpload()};jQuery.ajax(data);jQuery(this.root).children('div.browser-generic').addClass('state-importing');jQuery(this.root).siblings('div.headerdialog-controls').find('button.browser-generic-controls-select').prop('olefa-object-reference').disabled=true;return true}else{jQuery(this.root).children('div.browser-generic').removeClass('state-importing');return false}};oc.upload.superUpload.browsers.pixabay.prototype.close=function(){jQuery(this.root).parents('div.headerdialog:first').trigger('close')};"use strict";class OcCss{constructor(){this.cssFiles={};this.computedStyle=getComputedStyle(document.body)}get(file){if(!this.cssFiles[file]){if((/^\w+:\/\//u).test(file)){this.cssFiles[file]=this.__directFetch(file)}else{this.cssFiles[file]=this.__fetch(file)}};return this.cssFiles[file]};getIfNotLoaded(file,keyword){const cssValue=this.getVar(keyword);if(cssValue){return Promise.resolve()};return this.get(file)}__fetch(file){return new Promise((resolve,reject)=>{OLEFA.log.debug(`Loading file ${file}`);const base=OLEFA.environment.folders.stylesheets;this.__directFetch(base+'/'+file+'?v='+Core.status.version).then(resolve).catch(reject)})};__directFetch(url){return new Promise(function(resolve,reject){var id=OLEFA.basics.generateID();var link=jQuery('<link>').attr({id:id,type:'text/css',rel:'stylesheet',href:url});const node=link.get(0);if(node){node.addEventListener('load',function(){resolve()},false);link.appendTo('head')}})};getVar(name){return this.computedStyle.getPropertyValue(name)};setVar(name,value){return this.setVarOnNode(document.body,name,value)};setVarOnNode(node,name,value){if(value===null||typeof(value)=='undefined'){node.style.removeProperty(name)}else{node.style.setProperty(name,value)}};getMDUnit(){const raw=this.getVar('--md-unit');return Number(raw.replace('px',''))};static getTransform(element){const transform={scaleX:1,skewY:0,skewX:0,scaleY:1,translateX:0,translateY:0};const jElement=jQuery(element);let transformString=jElement.css('transform');const transformRegexp=/^matrix\((-?\d+), (-?\d+), (-?\d+), (-?\d+), (-?\d+), (-?\d+)\)$/;const matches=transformString.match(transformRegexp);if(matches===null){return transform};transform.scaleX=Number(matches[1]);transform.skewY=Number(matches[2]);transform.skewX=Number(matches[3]);transform.scaleY=Number(matches[4]);transform.translateX=Number(matches[5]);transform.translateY=Number(matches[6]);return transform}static modifyTransform(element,modifications){const transformValues=this.getTransform(element);if(!transformValues){OLEFA.log.warn('Unable to get transform values');return};OcObject.forEach(modifications,(key,value)=>{if(OcUtilities.hasNoValue(value)||Number.isNaN(value)){return}transformValues[key]=value});const transformString=`matrix(${transformValues.scaleX}, ${transformValues.skewY}, ${transformValues.skewX}, ${transformValues.scaleY}, ${transformValues.translateX}, ${transformValues.translateY})`;jQuery(element).css('transform',transformString)}}oc.OcCss=OcCss;(function(factory){"use strict";if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports=="object"&&typeof module=="object"){module.exports=factory(require('jquery'))}else{factory(jQuery)}})(function($,undefined){"use strict";var defaultOpts={beforeShow:noop,move:noop,change:noop,show:noop,hide:noop,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:true,showInitial:false,showPalette:false,showPaletteOnly:false,hideAfterPaletteSelect:false,togglePaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:false,className:"",containerClassName:"",replacerClassName:"",showAlpha:false,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8
1000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:false,offset:null},spectrums=[],IE=!!/msie/i.exec(window.navigator.userAgent),rgbaSupport=(function(){function contains(str,substr){return!!~(''+str).indexOf(substr)}var elem=document.createElement('div');var style=elem.style;style.cssText='background-color:rgba(0,0,0,.5)';return contains(style.backgroundColor,'rgba')||contains(style.backgroundColor,'hsla')})(),replaceInput=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>▼</div>","</div>"].join(''),markup=(function(){var gradientFix="";if(IE){for(var i=1;i<=6;i++){gradientFix+="<div class='sp-"+i+"'></div>"}}return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",gradientFix,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")})();function paletteTemplate(p,color,className,opts){var html=[];for(var i=0;i<p.length;i++){var current=p[i];if(current){var tiny=tinycolor(current);var c=tiny.toHsl().l<0.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";c+=(tinycolor.equals(color,current))?" sp-thumb-active":"";var formattedString=tiny.toString(opts.preferredFormat||"rgb");var swatchStyle=rgbaSupport?("background-color:"+tiny.toRgbString()):"filter:"+tiny.toFilter();html.push('<span title="'+formattedString+'" data-color="'+tiny.toRgbString()+'" class="'+c+'"><span class="sp-thumb-inner" style="'+swatchStyle+';" /></span>')}else{var cls='sp-clear-display';html.push($('<div />').append($('<span data-color="" style="background-color:transparent;" class="'+cls+'"></span>').attr('title',opts.noColorSelectedText)).html())}}return"<div class='sp-cf "+className+"'>"+html.join('')+"</div>"}function hideAll(){for(var i=0;i<spectrums.length;i++){if(spectrums[i]){spectrums[i].hide()}}}function instanceOptions(o,callbackContext){var opts=$.extend({},defaultOpts,o);opts.callbacks={'move':bind(opts.move,callbackContext),'change':bind(opts.change,callbackContext),'show':bind(opts.show,callbackContext),'hide':bind(opts.hide,callbackContext),'beforeShow':bind(opts.beforeShow,callbackContext)};return opts}function spectrum(element,o){var opts=instanceOptions(o,element),flat=opts.flat,showSelectionPalette=opts.showSelectionPalette,localStorageKey=opts.localStorageKey,theme=opts.theme,callbacks=opts.callbacks,resize=throttle(reflow,10),visible=false,isDragging=false,dragWidth=0,dragHeight=0,dragHelperHeight=0,slideHeight=0,slideWidth=0,alphaWidth=0,alphaSlideHelperWidth=0,slideHelperHeight=0,currentHue=0,currentSaturation=0,currentValue=0,currentAlpha=1,palette=[],paletteArray=[],paletteLookup={},selectionPalette=opts.selectionPalette.slice(0),maxSelectionSize=opts.maxSelectionSize,draggingClass="sp-dragging",shiftMovementDirection=null;var doc=element.ownerDocument,body=doc.body,boundElement=$(element),disabled=false,container=$(markup,doc).addClass(theme),pickerContainer=container.find(".sp-picker-container"),dragger=container.find(".sp-color"),dragHelper=container.find(".sp-dragger"),slider=container.find(".sp-hue"),slideHelper=container.find(".sp-slider"),alphaSliderInner=container.find(".sp-alpha-inner"),alphaSlider=container.find(".sp-alpha"),alphaSlideHelper=container.find(".sp-alpha-handle"),textInput=container.find(".sp-input"),paletteContainer=container.find(".sp-palette"),initialColorContainer=container.find(".sp-initial"),cancelButton=container.find(".sp-cancel"),clearButton=container.find(".sp-clear"),chooseButton=container.find(".sp-choose"),toggleButton=container.find(".sp-palette-toggle"),isInput=boundElement.is("input"),isInputTypeColor=isInput&&boundElement.attr("type")==="color"&&inputTypeColorSupport(),shouldReplace=isInput&&!flat,replacer=(shouldReplace)? $(replaceInput).addClass(theme).addClass(opts.className).addClass(opts.replacerClassName): $([]),offsetElement=(shouldReplace)?replacer:boundElement,previewElement=replacer.find(".sp-preview-inner"),initialColor=opts.color||(isInput&&boundElement.val()),colorOnShow=false,currentPreferredFormat=opts.preferredFormat,clickoutFiresChange=!opts.showButtons||opts.clickoutFiresChange,isEmpty=!initialColor,allowEmpty=opts.allowEmpty&&!isInputTypeColor;function applyOptions(){if(opts.showPaletteOnly){opts.showPalette=true}toggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);if(opts.palette){palette=opts.palette.slice(0);paletteArray=$.isArray(palette[0])?palette:[palette];paletteLookup={};for(var i=0;i<paletteArray.length;i++){for(var j=0;j<paletteArray[i].length;j++){var rgb=tinycolor(paletteArray[i][j]).toRgbString();paletteLookup[rgb]=true}}}container.toggleClass("sp-flat",flat);container.toggleClass("sp-input-disabled",!opts.showInput);container.toggleClass("sp-alpha-enabled",opts.showAlpha);container.toggleClass("sp-clear-enabled",allowEmpty);container.toggleClass("sp-buttons-disabled",!opts.showButtons);container.toggleClass("sp-palette-buttons-disabled",!opts.togglePaletteOnly);container.toggleClass("sp-palette-disabled",!opts.showPalette);container.toggleClass("sp-palette-only",opts.showPaletteOnly);container.toggleClass("sp-initial-disabled",!opts.showInitial);container.addClass(opts.className).addClass(opts.containerClassName);reflow()}function initialize(){if(IE){container.find("*:not(input)").attr("unselectable","on")}applyOptions();if(shouldReplace){boundElement.after(replacer).hide()}if(!allowEmpty){clearButton.hide()}if(flat){boundElement.after(container).hide()}else{var appendTo=opts.appendTo==="parent"?boundElement.parent(): $(opts.appendTo);if(appendTo.length!==1){appendTo=$("body")}appendTo.append(container)}updateSelectionPaletteFromStorage();offsetElement.bind("click.spectrum touchstart.spectrum",function(e){if(!disabled){toggle(
1)}e.stopPropagation();if(!$(e.target).is("input")){e.preventDefault()}});if(boundElement.is(":disabled")||(opts.disabled===true)){disable()}container.click(stopPropagation);textInput.change(setFromTextInput);textInput.bind("paste",function(){setTimeout(setFromTextInput,1)});textInput.keydown(function(e){if(e.keyCode==13){setFromTextInput()}});cancelButton.text(opts.cancelText);cancelButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();revert();hide()});clearButton.attr("title",opts.clearText);clearButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();isEmpty=true;move();if(flat){updateOriginalInput(true)}});chooseButton.text(opts.chooseText);chooseButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();if(IE&&textInput.is(":focus")){textInput.trigger('change')}if(isValid()){updateOriginalInput(true);hide()}});toggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);toggleButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();opts.showPaletteOnly=!opts.showPaletteOnly;if(!opts.showPaletteOnly&&!flat){container.css('left','-='+(pickerContainer.outerWidth(true)+5))}applyOptions()});draggable(alphaSlider,function(dragX,dragY,e){currentAlpha=(dragX/alphaWidth);isEmpty=false;if(e.shiftKey){currentAlpha=Math.round(currentAlpha*10)/10}move()},dragStart,dragStop);draggable(slider,function(dragX,dragY){currentHue=parseFloat(dragY/slideHeight);isEmpty=false;if(!opts.showAlpha){currentAlpha=1}move()},dragStart,dragStop);draggable(dragger,function(dragX,dragY,e){if(!e.shiftKey){shiftMovementDirection=null}else if(!shiftMovementDirection){var oldDragX=currentSaturation*dragWidth;var oldDragY=dragHeight-(currentValue*dragHeight);var furtherFromX=Math.abs(dragX-oldDragX)>Math.abs(dragY-oldDragY);shiftMovementDirection=furtherFromX?"x":"y"}var setSaturation=!shiftMovementDirection||shiftMovementDirection==="x";var setValue=!shiftMovementDirection||shiftMovementDirection==="y";if(setSaturation){currentSaturation=parseFloat(dragX/dragWidth)}if(setValue){currentValue=parseFloat((dragHeight-dragY)/dragHeight)}isEmpty=false;if(!opts.showAlpha){currentAlpha=1}move()},dragStart,dragStop);if(!!initialColor){set(initialColor);updateUI();currentPreferredFormat=opts.preferredFormat||tinycolor(initialColor).format;addColorToSelectionPalette(initialColor)}else{updateUI()}if(flat){show()}function paletteElementClick(e){if(e.data&&e.data.ignore){set($(e.target).closest(".sp-thumb-el").data("color"));move()}else{set($(e.target).closest(".sp-thumb-el").data("color"));move();updateOriginalInput(true);if(opts.hideAfterPaletteSelect){hide()}}return false}var paletteEvent=IE?"mousedown.spectrum":"click.spectrum touchstart.spectrum";paletteContainer.delegate(".sp-thumb-el",paletteEvent,paletteElementClick);initialColorContainer.delegate(".sp-thumb-el:nth-child(1)",paletteEvent,{ignore:true},paletteElementClick)}function updateSelectionPaletteFromStorage(){if(localStorageKey&&window.localStorage){try{var oldPalette=window.localStorage[localStorageKey].split(",#");if(oldPalette.length>1){delete window.localStorage[localStorageKey]; $.each(oldPalette,function(i,c){addColorToSelectionPalette(c)})}}catch(e){}try{selectionPalette=window.localStorage[localStorageKey].split(";")}catch(e){}}}function addColorToSelectionPalette(color){if(showSelectionPalette){var rgb=tinycolor(color).toRgbString();if(!paletteLookup[rgb]&& $.inArray(rgb,selectionPalette)===-1){selectionPalette.push(rgb);while(selectionPalette.length>maxSelectionSize){selectionPalette.shift()}}if(localStorageKey&&window.localStorage){try{window.localStorage[localStorageKey]=selectionPalette.join(";")}catch(e){}}}}function getUniqueSelectionPalette(){var unique=[];if(opts.showPalette){for(var i=0;i<selectionPalette.length;i++){var rgb=tinycolor(selectionPalette[i]).toRgbString();if(!paletteLookup[rgb]){unique.push(selectionPalette[i])}}}return unique.reverse().slice(0,opts.maxSelectionSize)}function drawPalette(){var currentColor=get();var html=$.map(paletteArray,function(palette,i){return paletteTemplate(palette,currentColor,"sp-palette-row sp-palette-row-"+i,opts)});updateSelectionPaletteFromStorage();if(selectionPalette){html.push(paletteTemplate(getUniqueSelectionPalette(),currentColor,"sp-palette-row sp-palette-row-selection",opts))}paletteContainer.html(html.join(""))}function drawInitial(){if(opts.showInitial){var initial=colorOnShow;var current=get();initialColorContainer.html(paletteTemplate([initial,current],current,"sp-palette-row-initial",opts))}}
1function dragStart(){if(dragHeight<=0||dragWidth<=0||slideHeight<=0){reflow()}isDragging=true;container.addClass(draggingClass);shiftMovementDirection=null;boundElement.trigger('dragstart.spectrum',[get()])}function dragStop(){isDragging=false;container.removeClass(draggingClass);boundElement.trigger('dragstop.spectrum',[get()])}function setFromTextInput(){var value=textInput.val();if((value===null||value==="")&&allowEmpty){set(null);updateOriginalInput(true)}else{var tiny=tinycolor(value);if(tiny.isValid()){set(tiny);updateOriginalInput(true)}else{textInput.addClass("sp-validation-error")}}}function toggle(){if(visible){hide()}else{show()}}function show(){var event=$.Event('beforeShow.spectrum');if(visible){reflow();return}boundElement.trigger(event,[get()]);if(callbacks.beforeShow(get())===false||event.isDefaultPrevented()){return}hideAll();visible=true; $(doc).bind("keydown.spectrum",onkeydown); $(doc).bind("click.spectrum",clickout); $(window).bind("resize.spectrum",resize);replacer.addClass("sp-active");container.removeClass("sp-hidden");reflow();updateUI();colorOnShow=get();drawInitial();callbacks.show(colorOnShow);boundElement.trigger('show.spectrum',[colorOnShow])}function onkeydown(e){if(e.keyCode===27){hide()}}function clickout(e){if(e.button==2){return}if(isDragging){return}if(clickoutFiresChange){updateOriginalInput(true)}else{revert()}hide()}function hide(){if(!visible||flat){return}visible=false; $(doc).unbind("keydown.spectrum",onkeydown); $(doc).unbind("click.spectrum",clickout); $(window).unbind("resize.spectrum",resize);replacer.removeClass("sp-active");container.addClass("sp-hidden");callbacks.hide(get());boundElement.trigger('hide.spectrum',[get()])}function revert(){set(colorOnShow,true)}function set(color,ignoreFormatChange){if(tinycolor.equals(color,get())){updateUI();return}var newColor,newHsv;if(!color&&allowEmpty){isEmpty=true}else{isEmpty=false;newColor=tinycolor(color);newHsv=newColor.toHsv();currentHue=(newHsv.h%360)/360;currentSaturation=newHsv.s;currentValue=newHsv.v;currentAlpha=newHsv.a}updateUI();if(newColor&&newColor.isValid()&&!ignoreFormatChange){currentPreferredFormat=opts.preferredFormat||newColor.getFormat()}}function get(opts){opts=opts||{};if(allowEmpty&&isEmpty){return null}return tinycolor.fromRatio({h:currentHue,s:currentSaturation,v:currentValue,a:Math.round(currentAlpha*100)/100},{format:opts.format||currentPreferredFormat})}function isValid(){return!textInput.hasClass("sp-validation-error")}function move(){updateUI();callbacks.move(get());boundElement.trigger('move.spectrum',[get()])}function updateUI(){textInput.removeClass("sp-validation-error");updateHelperLocations();var flatColor=tinycolor.fromRatio({h:currentHue,s:1,v:1});dragger.css("background-color",flatColor.toHexString());var format=currentPreferredFormat;if(currentAlpha<1&&!(currentAlpha===0&&format==="name")){if(format==="hex"||format==="hex3"||format==="hex6"||format==="name"){format="rgb"}}var realColor=get({format:format}),displayColor='';previewElement.removeClass("sp-clear-display");previewElement.css('background-color','transparent');if(!realColor&&allowEmpty){previewElement.addClass("sp-clear-display")}else{var realHex=realColor.toHexString(),realRgb=realColor.toRgbString();if(rgbaSupport||realColor.alpha===1){previewElement.css("background-color",realRgb)}else{previewElement.css("background-color","transparent");previewElement.css("filter",realColor.toFilter())}if(opts.showAlpha){var rgb=realColor.toRgb();rgb.a=0;var realAlpha=tinycolor(rgb).toRgbString();var gradient="linear-gradient(left, "+realAlpha+", "+realHex+")";
1if(IE){alphaSliderInner.css("filter",tinycolor(realAlpha).toFilter({gradientType:1},realHex))}else{alphaSliderInner.css("background","-webkit-"+gradient);alphaSliderInner.css("background","-moz-"+gradient);alphaSliderInner.css("background","-ms-"+gradient);alphaSliderInner.css("background","linear-gradient(to right, "+realAlpha+", "+realHex+")")}}displayColor=realColor.toString(format)}if(opts.showInput){textInput.val(displayColor)}if(opts.showPalette){drawPalette()}drawInitial()}function updateHelperLocations(){var s=currentSaturation;var v=currentValue;if(allowEmpty&&isEmpty){alphaSlideHelper.hide();slideHelper.hide();dragHelper.hide()}else{alphaSlideHelper.show();slideHelper.show();dragHelper.show();var dragX=s*dragWidth;var dragY=dragHeight-(v*dragHeight);dragX=Math.max(-dragHelperHeight,Math.min(dragWidth-dragHelperHeight,dragX-dragHelperHeight));dragY=Math.max(-dragHelperHeight,Math.min(dragHeight-dragHelperHeight,dragY-dragHelperHeight));dragHelper.css({"top":dragY+"px","left":dragX+"px"});var alphaX=currentAlpha*alphaWidth;alphaSlideHelper.css({"left":(alphaX-(alphaSlideHelperWidth/2))+"px"});var slideY=(currentHue)*slideHeight;slideHelper.css({"top":(slideY-slideHelperHeight)+"px"})}}function updateOriginalInput(fireCallback){var color=get(),displayColor='',hasChanged=!tinycolor.equals(color,colorOnShow);if(color){displayColor=color.toString(currentPreferredFormat);addColorToSelectionPalette(color)}if(isInput){boundElement.val(displayColor)}if(fireCallback&&hasChanged){callbacks.change(color);boundElement.trigger('change',[color])}}function reflow(){if(!visible){return}dragWidth=dragger.width();dragHeight=dragger.height();dragHelperHeight=dragHelper.height();slideWidth=slider.width();slideHeight=slider.height();slideHelperHeight=slideHelper.height();alphaWidth=alphaSlider.width();alphaSlideHelperWidth=alphaSlideHelper.width();if(!flat){container.css("position","absolute");if(opts.offset){container.offset(opts.offset)}else{container.offset(getOffset(container,offsetElement))}}updateHelperLocations();if(opts.showPalette){drawPalette()}boundElement.trigger('reflow.spectrum')}function destroy(){boundElement.show();offsetElement.unbind("click.spectrum touchstart.spectrum");container.remove();replacer.remove();spectrums[spect.id]=null}function option(optionName,optionValue){if(optionName===undefined){return $.extend({},opts)}if(optionValue===undefined){return opts[optionName]}opts[optionName]=optionValue;if(optionName==="preferredFormat"){currentPreferredFormat=opts.preferredFormat}applyOptions()}function enable(){disabled=false;boundElement.attr("disabled",false);offsetElement.removeClass("sp-disabled")}function disable(){hide();disabled=true;boundElement.attr("disabled",true);offsetElement.addClass("sp-disabled")}function setOffset(coord){opts.offset=coord;reflow()}initialize();var spect={show:show,hide:hide,toggle:toggle,reflow:reflow,option:option,enable:enable,disable:disable,offset:setOffset,set:function(c){set(c);updateOriginalInput()},get:get,destroy:destroy,container:container};spect.id=spectrums.push(spect)-1;return spect}function getOffset(picker,input){var extraY=0;var dpWidth=picker.outerWidth();var dpHeight=picker.outerHeight();var inputHeight=input.outerHeight();var doc=picker[0].ownerDocument;var docElem=doc.documentElement;var viewWidth=docElem.clientWidth+ $(doc).scrollLeft();var viewHeight=docElem.clientHeight+ $(doc).scrollTop();var offset=input.offset();offset.top+=inputHeight;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,((offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight-extraY):extraY));return offset}function noop(){}function stopPropagation(e){e.stopPropagation()}function bind(func,obj){var slice=Array.prototype.slice;var args=slice.call(arguments,2);return function(){return func.apply(obj,args.concat(slice.call(arguments)))}}function draggable(element,onmove,onstart,onstop){onmove=onmove||function(){};onstart=onstart||function(){};onstop=onstop||function(){};var doc=document;var dragging=false;var offset={};var maxHeight=0;var maxWidth=0;var hasTouch=('ontouchstart'in window);var duringDragEvents={};duringDragEvents["selectstart"]=prevent;duringDragEvents["dragstart"]=prevent;duringDragEvents["touchmove mousemove"]=move;duringDragEvents["touchend mouseup"]=stop;function prevent(e){if(e.stopPropagation){e.stopPropagation()}if(e.preventDefault){e.preventDefault()}e.returnValue=false}function move(e){if(dragging){if(IE&&doc.documentMode<9&&!e.button){return stop()}var t0=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0];var pageX=t0&&t0.pageX||e.pageX;var pageY=t0&&t0.pageY||e.pageY;var dragX=Math.max(0,Math.min(pageX-offset.left,maxWidth));var dragY=Math.max(0,Math.min(pageY-offset.top,maxHeight));if(hasTouch){prevent(e)}onmove.apply(element,[dragX,dragY,e])}}function start(e){var rightclick=(e.which)?(e.which==3):(e.button==2);if(!rightclick&&!dragging){if(onstart.apply(element,arguments)!==false){dragging=true;maxHeight=$(element).height();maxWidth=$(element).width();offset=$(element).offset(); $(doc).bind(duringDragEvents); $(doc.body).addClass("sp-dragging");move(e);prevent(e)}}}function stop(){if(dragging){ $(doc).unbind(duringDragEvents); $(doc.body).removeClass("sp-dragging");setTimeout(function(){onstop.apply(element,arguments)}
1,0)}dragging=false} $(element).bind("touchstart mousedown",start)}function throttle(func,wait,debounce){var timeout;return function(){var context=this,args=arguments;var throttler=function(){timeout=null;func.apply(context,args)};if(debounce)clearTimeout(timeout);if(debounce||!timeout)timeout=setTimeout(throttler,wait)}}function inputTypeColorSupport(){return $.fn.spectrum.inputTypeColorSupport()}var dataID="spectrum.id"; $.fn.spectrum=function(opts,extra){if(typeof opts=="string"){var returnValue=this;var args=Array.prototype.slice.call(arguments,1);this.each(function(){var spect=spectrums[$(this).data(dataID)];if(spect){var method=spect[opts];if(!method){throw new Error("Spectrum: no such method: '"+opts+"'");}if(opts=="get"){returnValue=spect.get()}else if(opts=="container"){returnValue=spect.container}else if(opts=="option"){returnValue=spect.option.apply(spect,args)}else if(opts=="destroy"){spect.destroy(); $(this).removeData(dataID)}else{method.apply(spect,args)}}});return returnValue}return this.spectrum("destroy").each(function(){var options=$.extend({},opts, $(this).data());var spect=spectrum(this,options); $(this).data(dataID,spect.id)})}; $.fn.spectrum.load=true; $.fn.spectrum.loadOpts={}; $.fn.spectrum.draggable=draggable; $.fn.spectrum.defaults=defaultOpts; $.fn.spectrum.inputTypeColorSupport=function inputTypeColorSupport(){if(typeof inputTypeColorSupport._cachedResult==="undefined"){var colorInput=$("<input type='color'/>")[0];inputTypeColorSupport._cachedResult=colorInput.type==="color"&&colorInput.value!==""}return inputTypeColorSupport._cachedResult}; $.spectrum={}; $.spectrum.localization={}; $.spectrum.palettes={}; $.fn.spectrum.processNativeColorInputs=function(){var colorInputs=$("input[type=color]");if(colorInputs.length&&!inputTypeColorSupport()){colorInputs.spectrum({preferredFormat:"hex6"})}};(function(){var trimLeft=/^[\s,#]+/,trimRight=/\s+$/,tinyCounter=0,math=Math,mathRound=math.round,mathMin=math.min,mathMax=math.max,mathRandom=math.random;var tinycolor=function(color,opts){color=(color)?color:'';opts=opts||{};if(color instanceof tinycolor){return color}if(!(this instanceof tinycolor)){return new tinycolor(color,opts)}var rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/100,this._format=opts.format||rgb.format;this._gradientType=opts.gradientType;if(this._r<1){this._r=mathRound(this._r)}if(this._g<1){this._g=mathRound(this._g)}if(this._b<1){this._b=mathRound(this._b)}this._ok=rgb.ok;this._tc_id=tinyCounter++};tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/1000},setAlpha:function(value){this._a=boundAlpha(value);this._roundA=mathRound(100*this._a)/100;return this},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a}},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b);var h=mathRound(hsv.h*360),s=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return(this._a==1)?"hsv("+h+", "+s+"%, "+v+"%)":"hsva("+h+", "+s+"%, "+v+"%, "+this._roundA+")"},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a}},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b);var h=mathRound(hsl.h*360),s=mathRound(hsl.s*100),l=mathRound(hsl.l*100);return(this._a==1)?"hsl("+h+", "+s+"%, "+l+"%)":"hsla("+h+", "+s+"%, "+l+"%, "+this._roundA+")"},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char)},toHexString:function(allow3Char){return'#'+this.toHex(allow3Char)},toHex8:function(){return rgbaToHex(this._r,this._g,this._b,this._a)},toHex8String:function(){return'#'+this.toHex8()},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a}},toRgbString:function(){return(this._a==1)?"rgb("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+")":"rgba("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+"%",g:mathRound(bound01(this._g,255)*100)+"%",b:mathRound(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return(this._a==1)?"rgb("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%)":"rgba("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return hexNames[rgbToHex(this._r,this._g,this._b,true)]||false},toFilter:function(secondColor){var hex8String='#'+rgbaToHex(this._r,this._g,this._b,this._a);var secondHex8String=hex8String;var gradientType=this._gradientType?"GradientType = 1, ":"";if(secondColor){var s=tinycolor(secondColor);secondHex8String=s.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"},toString:function(format){var formatSet=!!format;format=format||this._format;var formattedString=false;var hasAlpha=this._a<1&&this._a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format==="hex"||format==="hex6"||format==="hex3"||format==="name");if(needsAlphaFormat){if(format==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(format==="rgb"){formattedString=this.toRgbString()}if(format==="prgb"){formattedString=this.toPercentageRgbString()}if(format==="hex"||format==="hex6"){formattedString=this.toHexString()}if(format==="hex3"){formattedString=this.toHexString(true)}if(format==="hex8"){formattedString=this.toHex8String()}if(format==="name"){formattedString=this.toName()}if(format==="hsl"){formattedString=this.toHslString()}if(format==="hsv"){formattedString=this.toHsvString()}return formattedString||this.toHexString()},_applyModification:function(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));this._r=color._r;this._g=color._g;this._b=color._b;this.setAlpha(color._a);return this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(fn,args){return fn.apply(null,[this].concat([].slice.call(args)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(triad,arguments)},tetrad:function(){return this._applyCombination(tetrad,arguments)}};
vendor: 8,724 bytes, line 1
1tinycolor.fromRatio=function(color,opts){if(typeof color=="object"){var newColor={};for(var i in color){if(color.hasOwnProperty(i)){if(i==="a"){newColor[i]=color[i]}else{newColor[i]=convertToPercentage(color[i])}}}color=newColor}return tinycolor(color,opts)};function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var ok=false;var format=false;if(typeof color=="string"){color=stringInputToObject(color)}if(typeof color=="object"){if(color.hasOwnProperty("r")&&color.hasOwnProperty("g")&&color.hasOwnProperty("b")){rgb=rgbToRgb(color.r,color.g,color.b);ok=true;format=String(color.r).substr(-1)==="%"?"prgb":"rgb"}else if(color.hasOwnProperty("h")&&color.hasOwnProperty("s")&&color.hasOwnProperty("v")){color.s=convertToPercentage(color.s);color.v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,color.s,color.v);ok=true;format="hsv"}else if(color.hasOwnProperty("h")&&color.hasOwnProperty("s")&&color.hasOwnProperty("l")){color.s=convertToPercentage(color.s);color.l=convertToPercentage(color.l);rgb=hslToRgb(color.h,color.s,color.l);ok=true;format="hsl"}if(color.hasOwnProperty("a")){a=color.a}}a=boundAlpha(a);return{ok:ok,format:color.format||format,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a:a}}function rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255}}function rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,l=(max+min)/2;if(max==min){h=s=0}else{var d=max-min;s=l>0.5?d/(2-max-min):d/(max+min);switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break}h/=6}return{h:h,s:s,l:l}}function hslToRgb(h,s,l){var r,g,b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p}if(s===0){r=g=b=l}else{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3)}return{r:r*255,g:g*255,b:b*255}}function rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,v=max;var d=max-min;s=max===0?0:d/max;if(max==min){h=0}else{switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break}h/=6}return{h:h,s:s,v:v}}function hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=math.floor(h),f=h-i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),mod=i%6,r=[v,q,p,p,t,v][mod],g=[t,v,v,q,p,p][mod],b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255}}function rgbToHex(r,g,b,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];if(allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)}return hex.join("")}function rgbaToHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join("")}tinycolor.equals=function(color1,color2){if(!color1||!color2){return false}return tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString()};tinycolor.random=function(){return tinycolor.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()})};function desaturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s-=amount/100;hsl.s=clamp01(hsl.s);return tinycolor(hsl)}function saturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s+=amount/100;hsl.s=clamp01(hsl.s);return tinycolor(hsl)}function greyscale(color){return tinycolor(color).desaturate(100)}function lighten(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l+=amount/100;hsl.l=clamp01(hsl.l);return tinycolor(hsl)}function brighten(color,amount){amount=(amount===0)?0:(amount||10);var rgb=tinycolor(color).toRgb();rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount/100))));rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount/100))));rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount/100))));return tinycolor(rgb)}function darken(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l-=amount/100;hsl.l=clamp01(hsl.l);return tinycolor(hsl)}function spin(color,amount){var hsl=tinycolor(color).toHsl();var hue=(mathRound(hsl.h)+amount)%360;hsl.h=hue<0?360+hue:hue;return tinycolor(hsl)}function complement(color){var hsl=tinycolor(color).toHsl();hsl.h=(hsl.h+180)%360;return tinycolor(hsl)}function triad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+240)%360,s:hsl.s,l:hsl.l})]}function tetrad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+270)%360,s:hsl.s,l:hsl.l})]}function splitcomplement(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+216)%360,s:hsl.s,l:hsl.l})]}function analogous(color,results,slices){results=results||6;slices=slices||30;var hsl=tinycolor(color).toHsl();var part=360/slices;var ret=[tinycolor(color)];for(hsl.h=((hsl.h-(part*results>>1))+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(tinycolor(hsl))}return ret}function monochromatic(color,results){results=results||6;var hsv=tinycolor(color).toHsv();var h=hsv.h,s=hsv.s,v=hsv.v;var ret=[];var modification=1/results;while(results--){ret.push(tinycolor({h:h,s:s,v:v}));v=(v+modification)%1}return ret}tinycolor.mix=function(color1,color2,amount){amount=(amount===0)?0:(amount||50);var rgb1=tinycolor(color1).toRgb();var rgb2=tinycolor(color2).toRgb();var p=amount/100;var w=p*2-1;var a=rgb2.a-rgb1.a;var w1;if(w*a==-1){w1=w}else{w1=(w+a)/(1+w*a)}w1=(w1+1)/2;var w2=1-w1;var rgba={r:rgb2.r*w1+rgb1.r*w2,g:rgb2.g*w1+rgb1.g*w2,b:rgb2.b*w1+rgb1.b*w2,a:rgb2.a*p+rgb1.a*(1-p)};return tinycolor(rgba)};tinycolor.readability=function(color1,color2){var c1=tinycolor(color1);var c2=tinycolor(color2);var rgb1=c1.toRgb();var rgb2=c2.toRgb();var brightnessA=c1.getBrightness();var brightnessB=c2.getBrightness();var colorDiff=(Math.max(rgb1.r,rgb2.r)-Math.min(rgb1.r,rgb2.r)+Math.max(rgb1.g,rgb2.g)-Math.min(rgb1.g,rgb2.g)+Math.max(rgb1.b,rgb2.b)-Math.min(rgb1.b,rgb2.b));return{brightness:Math.abs(brightnessA-brightnessB),color:colorDiff}};tinycolor.isReadable=function(color1,color2){var readability=tinycolor.readability(color1,color2);return readability.brightness>125&&readability.color>500};tinycolor.mostReadable=function(baseColor,colorList){var bestColor=null;var bestScore=0;var bestIsReadable=false;for(var i=0;i<colorList.length;i++){var readability=tinycolor.readability(baseColor,colorList[i]);var readable=readability.brightness>125&&readability.color>500;var score=3*(readability.brightness/125)+(readability.color/500);if((readable&&!bestIsReadable)||(readable&&bestIsReadable&&score>bestScore)||((!readable)&&(!bestIsReadable)&&score>bestScore)){bestIsReadable=readable;bestScore=score;bestColor=tinycolor(colorList[i])}}return bestColor};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
10",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hexNames=tinycolor.hexNames=flip(names);function flip(o){var flipped={};for(var i in o){if(o.hasOwnProperty(i)){flipped[o[i]]=i}}return flipped}function boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1}return a}function bound01(n,max){if(isOnePointZero(n)){n="100%"}var processPercent=isPercentage(n);n=mathMin(max,mathMax(0,parseFloat(n)));if(processPercent){n=parseInt(n*max,10)/100}if((math.abs(n-max)<0.000001)){return 1}return(n%max)/parseFloat(max)}function clamp01(val){return mathMin(1,mathMax(0,val))}function parseIntFromHex(val){return parseInt(val,16)}function isOnePointZero(n){return typeof n=="string"&&n.indexOf('.')!=-1&&parseFloat(n)===1}function isPercentage(n){return typeof n==="string"&&n.indexOf('%')!=-1}function pad2(c){return c.length==1?'0'+c:''+c}function convertToPercentage(n){if(n<=1){n=(n*100)+"%"}return n}function convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16)}function convertHexToDecimal(h){return(parseIntFromHex(h)/255)}var matchers=(function(){var CSS_INTEGER="[-\\+]?\\d+%?";var CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?";var CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")";var PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";var PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";return{rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"
1+PERMISSIVE_MATCH4),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function stringInputToObject(color){color=color.replace(trimLeft,'').replace(trimRight,'').toLowerCase();var named=false;if(names[color]){color=names[color];named=true}else if(color=='transparent'){return{r:0,g:0,b:0,a:0,format:"name"}}var match;if((match=matchers.rgb.exec(color))){return{r:match[1],g:match[2],b:match[3]}}if((match=matchers.rgba.exec(color))){return{r:match[1],g:match[2],b:match[3],a:match[4]}}if((match=matchers.hsl.exec(color))){return{h:match[1],s:match[2],l:match[3]}}if((match=matchers.hsla.exec(color))){return{h:match[1],s:match[2],l:match[3],a:match[4]}}if((match=matchers.hsv.exec(color))){return{h:match[1],s:match[2],v:match[3]}}if((match=matchers.hsva.exec(color))){return{h:match[1],s:match[2],v:match[3],a:match[4]}}if((match=matchers.hex8.exec(color))){return{a:convertHexToDecimal(match[1]),r:parseIntFromHex(match[2]),g:parseIntFromHex(match[3]),b:parseIntFromHex(match[4]),format:named?"name":"hex8"}}if((match=matchers.hex6.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?"name":"hex"}}if((match=matchers.hex3.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),format:named?"name":"hex"}}return false}window.tinycolor=tinycolor})(); $(function(){if($.fn.spectrum.load){ $.fn.spectrum.processNativeColorInputs()}})});"use strict";class OcFocustrap extends OcComponent{constructor(properties){super(properties)}defaults(){return OcFocustrap.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,element:{get:this.__getElement.bind(this),set:this.__setElement.bind(this)},focusOnTrap:{get:this.__getFocusOnTrap.bind(this),set:this.__setFocusOnTrap.bind(this)}}}__getElement(){return this.properties.element}__setElement(value){this.properties.element=value;this.__internals.root.off(`.${this.refID}`);if(this.properties.element){this.__internals.root=jQuery(this.properties.element);this.__initEvents__element(this.__internals.root)}else{this.__internals.root=jQuery()}}__getFocusOnTrap(){return this.properties.focusOnTrap}__setFocusOnTrap(value){this.properties.focusOnTrap=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.root=jQuery();this.__internals.states=new OcStates();this.propertyHandlers.element=this.__setElement;this.propertyHandlers.focusOnTrap=this.__setFocusOnTrap}__initialize(properties){super.__initialize(properties);this.__initStates()}__initStates(){this.__internals.states.define({state:OcFocustrap.__states.trapFocus})}__initEvents__element(element){element.on(`keydown.${this.refID}`,this.__onElement__keydown.bind(this)).on(`focusout.${this.refID}`,this.__onElement__focusout.bind(this))}__onElement__keydown(event){const focusTrapped=this.__internals.states.hasState(OcFocustrap.__states.trapFocus);if(!focusTrapped){return};if(event.key==OcAria.keys.TAB){if(event.shiftKey){this.__internals.focusTrigger='shifttab'}else{this.__internals.focusTrigger='tab'}}}__onElement__focusout(event){const focusTrapped=this.__internals.states.hasState(OcFocustrap.__states.trapFocus);if(!focusTrapped){return};const hasFocusleftTrap=!OcUtilities.isElementInElement(event.relatedTarget,this.__internals.root);if(hasFocusleftTrap){const focusableElements=this.__getFocusableElements();switch(this.__internals.focusTrigger){case'shifttab':focusableElements.last().trigger('focus');break;case'tab':default:focusableElements.first().trigger('focus');break}}}__getFocusableElements(){return this.__internals.root.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]')}trapFocus(){const node=OcHtml.getFocusedElement();this.__internals.focusOrigin=jQuery(node);this.__internals.states.add(OcFocustrap.__states.trapFocus);try{const focusOnTrap=this.__getFocusOnTrap();if(!focusOnTrap){throw'no element to focus on trap';}const jFocusPriority=jQuery(focusOnTrap);if(jFocusPriority.length==0){throw'element does not exist';}const node=jFocusPriority.get(0);if(!node){throw'element does not exist';}node.focus()}catch(e){const focusableElements=this.__getFocusableElements();
1focusableElements.first().get(0)?.focus()}}releaseFocus(){this.__internals.states.remove(OcFocustrap.__states.trapFocus);if(this.__internals.focusOrigin){this.__internals.focusOrigin.trigger('focus');this.__internals.focusOrigin=null}}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,element:null,focusOnTrap:null}}}}OcFocustrap.__states={trapFocus:'trap-focus'};Oc.OcFocustrap=OcFocustrap;"use strict";class OcAria{static getBooleanValueFromString(value){return value===null?null:OcDatatype.fromBooleanString(value)}static generateKeyEventDataFromNativeKeyEvent(ev){const eventData={key:ev.key,modifiers:{alt:ev.altKey,ctrl:ev.ctrlKey,meta:ev.metaKey,repeat:ev.repeat,shift:ev.shiftKey},preventDefault:ev.preventDefault.bind(ev)};return eventData}}OcAria.htmlAttributes={EXPANDED:'aria-expanded',LABEL:'aria-label',LABELLED_BY:'aria-labelledby',PRESSED:'aria-pressed'};OcAria.keys={ALT:'Alt',ALT_GRAPH:'AltGraph',CAPS_LOCK:'CapsLock',CONTROL:'Control',FN:'Fn',FN_LOCK:'FnLock',HYPER:'Hyper',META:'Meta',NUM_LOCK:'NumLock',SCROLL_LOCK:'ScrollLock',SHIFT:'Shift',SUPER:'Super',SYMBOL:'Symbol',SYMBOL_LOCK:'SymbolLock',ENTER:'Enter',TAB:'Tab',SPACEBAR:' ',ARROW_DOWN:'ArrowDown',ARROW_LEFT:'ArrowLeft',ARROW_RIGHT:'ArrowRight',ARROW_UP:'ArrowUp',END:'End',HOME:'Home',PAGE_DOWN:'PageDown',PAGE_UP:'PageUp',BACKSPACE:'Backspace',CLEAR:'Clear',COPY:'Copy',CR_SEL:'CrSel',CUT:'Cut',DELETE:'Delete',ERASE_EOF:'EraseEof',EX_SEL:'ExSel',INSERT:'Insert',PASTE:'Paste',REDO:'Redo',UNDO:'Undo',ACCEPT:'Accept',AGAIN:'Again',ATTN:'Attn',CANCEL:'Cancel',CONTEXT_MENU:'ContextMenu',ESCAPE:'Escape',EXECUTE:'Execute',FIND:'Find',FINISH:'Finish',HELP:'Help',PAUSE:'Pause',PLAY:'Play',PROPS:'Props',SELECT:'Select',ZOOM_IN:'ZoomIn',ZOOM_OUT:'ZoomOut'};OcAria.valueConstraints={checked:['true','false','mixed'],orientation:['horizontal','vertical'],pressed:['true','false','mixed'],hasPopup:['true','false','menu','listbox','tree','grid','dialog']};"use strict";class OcAriaBase extends OcComponent{constructor(element,properties){const normalizedProperties={...properties,element:element};super(normalizedProperties);this.__role=null;this.__nativeTagOfRole=null}defaults(){return OcAriaBase.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,atomic:{get:this.__getAtomic.bind(this),set:this.__setAtomic.bind(this)},busy:{get:this.__getBusy.bind(this),set:this.__setBusy.bind(this)},controls:{get:this.__getControls.bind(this),set:this.__setControls.bind(this)},describedBy:{get:this.__getDescribedBy.bind(this),set:this.__setDescribedBy.bind(this)},description:{get:this.__getDescription.bind(this),set:this.__setDescription.bind(this)},details:{get:this.__getDetails.bind(this),set:this.__setDetails.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},hidden:{get:this.__getHidden.bind(this),set:this.__setHidden.bind(this)},node:{get:this.__getNode.bind(this)}}}__getAtomic(){return this.properties.atomic}__setAtomic(value){this.properties.atomic=value;this.__handleRootNode()}__getBusy(){return this.properties.busy}__setBusy(value){this.properties.busy=value;this.__handleRootNode()}__getControls(){return this.properties.controls}__setControls(value){this.properties.controls=value;this.__handleRootNode()}__getDescribedBy(){return this.properties.describedBy}__setDescribedBy(value){this.properties.describedBy=value;this.__handleRootNode()}__getDescription(){return this.properties.description}__setDescription(value){this.properties.description=value;this.__handleRootNode()}__getDetails(){return this.properties.details}__setDetails(value){this.properties.details=value;this.__handleRootNode()}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__handleRootNode()}__getHidden(){return this.properties.hidden}__setHidden(value){this.properties.hidden=value;this.__handleRootNode()}__getNode(){return this.__internals.root}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.observedHtmlAttributes=['aria-atomic','aria-disabled','aria-hidden','aria-controls','aria-describedby','aria-description','aria-details','aria-busy'];this.propertyHandlers.atomic=this.__setAtomic;this.propertyHandlers.busy=this.__setBusy;this.propertyHandlers.controls=this.__setControls;this.propertyHandlers.describedBy=this.__setDescribedBy;this.propertyHandlers.description=this.__setDescription;this.propertyHandlers.details=this.__setDetails;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.hidden=this.__setHidden}__initialize(properties){const element=properties.element;this.__internals.root=jQuery(element);if(!element.ocInstances){element.ocInstances={}};element.ocInstances.OcAriaBase=this;const propertiesFromHtml=this.__getOriginalAriaAttributesFromHtml();const mixedProperties={...propertiesFromHtml,...properties};super.__initialize(mixedProperties);this.__initElements();if(this.__internals.observedHtmlAttributes.length>0){this.__internals.rootNodeAttributeMutationObserver=OLEFA.mutations.createObserver({element:this.__internals.root,event:`${this.refID}--attribute-change`,mutations:{attributes:true,attributeFilter:this.__internals.observedHtmlAttributes,attributeOldValue:true}})}this.__initStates();this.__initEvents();this.__initProperties(mixedProperties)}__initElements(){this.defer(()=>{if(this.__role&&(!this.__nativeTagOfRole||!this.__internals.root.is(this.__nativeTagOfRole))){this.__internals.root.attr('role',this.__role)}})};__initEvents(){super.__initEvents();this.__internals.rootNodeAttributeMutationObserver?.events.listen('attribute-change',this.__onBaseNodeAttributeMutationObserver__attributeChange.bind(this),this.refID)};__onBaseNodeAttributeMutationObserver__attributeChange(ev){const value=ev.isSet?ev.value:null;switch(ev.attribute){case'aria-atomic':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setAtomic(normalizedValue);break}case'aria-disabled':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setDisabled(normalizedValue);break}case'aria-hidden':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setHidden(normalizedValue);break}case'aria-controls':{this.__setControls(value);break}case'aria-description':{this.__setDescription(value);break}case'aria-describedBy':{this.__setDescribedBy(value);break}case'aria-details':{this.__setDetails(value);break}case'aria-busy':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setBusy(normalizedValue);break}}}__handleRootNode(){this.__deferOnce('__handleRootNode',()=>{const node=this.__internals.root.get(0);if(!node){return}const attributeRules={};const booleanAttributes={atomic:'aria-atomic',busy:'aria-busy',disabled:'aria-disabled',hidden:'aria-hidden'};OcObject.forEach(booleanAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];
1attributeRules[htmlAttribute]={condition:value!==null,value:OcDatatype.toBooleanString(value||false)}});const stringAttributes={controls:'aria-controls',describedBy:'aria-describedby',description:'aria-description',details:'aria-details'};OcObject.forEach(stringAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null,value:value||''}});OcHtml.setAttributesIfTrue(node,attributeRules)})}__getOriginalAriaAttributesFromHtml(){const node=this.__internals.root.get(0);let atomic=null;let busy=null;let controls=null;let describedBy=null;let description=null;let details=null;let disabled=null;let hidden=null;if(node){const thisAtomic=node.getAttribute('aria-atomic');if(thisAtomic!==null){atomic=OcDatatype.fromBooleanString(thisAtomic)};const thisBusy=node.getAttribute('aria-busy');if(thisBusy!==null){busy=OcDatatype.fromBooleanString(thisBusy)};const thisDisabled=node.getAttribute('aria-disabled');if(thisDisabled!==null){disabled=OcDatatype.fromBooleanString(thisDisabled)};const thisHidden=node.getAttribute('aria-hidden');if(thisHidden!==null){hidden=OcDatatype.fromBooleanString(thisHidden)};controls=node.getAttribute('aria-controls');describedBy=node.getAttribute('aria-describedby');description=node.getAttribute('aria-description');details=node.getAttribute('aria-details')}return{atomic:atomic,busy:busy,controls:controls,describedBy:describedBy,description:description,details:details,disabled:disabled,hidden:hidden}}destroy(){this.__internals.root.off(`.${this.refID}`);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,atomic:null,busy:null,controls:null,describedBy:null,description:null,details:null,disabled:null,hidden:null}}}}Oc.OcAriaBase=OcAriaBase;"use strict";class OcAriaLabellable extends OcAriaBase{constructor(element,properties){super(element,properties)}defaults(){return OcAriaLabellable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},labelledBy:{get:this.__getLabelledBy.bind(this),set:this.__setLabelledBy.bind(this)},}}__getLabelledBy(){return this.properties.labelledBy}__setLabelledBy(value){this.properties.labelledBy=value;this.__handleRootNode()}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__handleRootNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.observedHtmlAttributes=[...this.__internals.observedHtmlAttributes,'aria-label','aria-labelledby'];this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.labelledBy=this.__setLabelledBy}__initElements(){super.__initElements()}__initStates(){}__onBaseNodeAttributeMutationObserver__attributeChange(ev){super.__onBaseNodeAttributeMutationObserver__attributeChange(ev);const value=ev.isSet?ev.value:null;switch(ev.attribute){case'aria-label':this.__setLabel(value);break;case'aria-labelledby':this.__setLabelledBy(value);break}}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__labellable',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const stringAttributes={label:'aria-label',labelledBy:'aria-labelledby'};OcObject.forEach(stringAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null,value:value||''}});OcHtml.setAttributesIfTrue(node,attributeRules)})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let label=null;let labelledBy=null;if(node){label=node.getAttribute('aria-label');labelledBy=node.getAttribute('aria-labelledby')}return{...inheritedAttributes,label:label,labelledBy:labelledBy}}destroy(){super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:null,labelledBy:null,}}}}Oc.OcAriaLabellable=OcAriaLabellable;"use strict";class OcAriaArticle extends OcAriaLabellable{constructor(element,properties){super(element,properties)}defaults(){return OcAriaArticle.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,posinset:{get:this.__getPosinset.bind(this),set:this.__setPosinset.bind(this)},setsize:{get:this.__getSetsize.bind(this),set:this.__setSetsize.bind(this)}}}__getPosinset(){return this.properties.posinset}__setPosinset(value){this.properties.posinset=value;this.__handleRootNode()}
1__getSetsize(){return this.properties.setsize}__setSetsize(value){this.properties.setsize=value;this.__handleRootNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.ocInstances.OcAriaArticle=this;this.propertyHandlers.posinset=this.__setPosinset;this.propertyHandlers.setsize=this.__setSetsize}__initElements(){const cssBase='oc-aria-article';this.defer(()=>{this.__internals.root.addClass(cssBase).attr({'tabindex':'0'});if(!this.__internals.root.is('article')){this.__internals.root.attr({'role':'article'})}})}__initStates(){}__initEvents(){super.__initEvents();this.__internals.root.on(`keydown.${this.refID}`,this.__onRoot__keydown.bind(this))}__initialize(properties){super.__initialize(properties);this.__handleRootNode();this.defer(()=>{this.__internals.root.trigger('oc-aria-article--initialize',[this])})}__onRoot__keydown(ev){const originalEvent=ev.originalEvent;if(!originalEvent){return};this.__trigger__keyPress({element:this.__internals.root,instance:this,...OcAria.generateKeyEventDataFromNativeKeyEvent(originalEvent)})}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__article',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const textAttributes={posinset:'aria-posinset',setsize:'aria-setsize'};OcObject.forEach(textAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null,value:String(value)||''}});OcHtml.setAttributesIfTrue(node,attributeRules)})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let posinset=null;let setsize=null;if(node){posinset=node.getAttribute('aria-posinset');setsize=node.getAttribute('aria-setsize')}return{...inheritedAttributes,posinset:posinset?Number(posinset):null,setsize:setsize?Number(setsize):null}}focus(){if(!this.__internals.root.is(':focus')){this.__internals.root.trigger('focus')}}__trigger__keyPress(eventData){const event=new OcEvent({eventName:'key-press',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,posinset:null,setsize:null}}}}Oc.OcAriaArticle=OcAriaArticle;"use strict";class OcAriaButton extends OcAriaLabellable{constructor(element,properties){super(element,properties);this.__role='button';this.__nativeTagOfRole='button'}defaults(){return OcAriaButton.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,expanded:{get:this.__getExpanded.bind(this),set:this.__setExpanded.bind(this)},pressed:{get:this.__getPressed.bind(this),set:this.__setPressed.bind(this)},hasPopup:{get:this.__getHasPopup.bind(this),set:this.__setHasPopup.bind(this)}}}__getExpanded(){return this.properties.expanded}__setExpanded(value){this.properties.expanded=value;this.__handleRootNode()}__getPressed(){return this.properties.pressed}__setPressed(value){this.properties.pressed=value;this.__handleRootNode()}__getHasPopup(){return this.properties.hasPopup}__setHasPopup(value){this.properties.hasPopup=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.expanded=this.__setExpanded;this.propertyHandlers.pressed=this.__setPressed;this.propertyHandlers.hasPopup=this.__setHasPopup}__initElements(){super.__initElements();const cssBase='oc-aria-button';this.defer(()=>{this.__internals.root.attr({'tabindex':'0'}).addClass(cssBase)})}__initStates(){};__onStateChange__pressable(){this.__handleRootNode()}__initEvents(){super.__initEvents();this.__internals.root.on(`keydown.${this.refID}`,this.__onRoot__keydown.bind(this))}__onBaseNodeAttributeMutationObserver__attributeChange(ev){super.__onBaseNodeAttributeMutationObserver__attributeChange(ev);const value=ev.isSet?ev.value:null;switch(ev.attribute){case'aria-expanded':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setExpanded(normalizedValue);break}case'aria-pressed':{if(OcArray.has(OcAria.valueConstraints.pressed,value)){this.__setPressed(value)}break}case'aria-haspopup':{if(OcArray.has(OcAria.valueConstraints.hasPopup,value)){this.__setHasPopup(value)}break}}}__onRoot__keydown(ev){switch(ev.key){case OcAria.keys.SPACEBAR:case OcAria.keys.ENTER:ev.
1stopPropagation();ev.preventDefault();OcUtilities.triggerEvent(this.__internals.root,"click",ev);break;default:break}}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__button',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const triStateAttributes={expanded:'aria-expanded',pressed:'aria-pressed'};OcObject.forEach(triStateAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null,value:OcDatatype.isBoolean(value)?OcDatatype.toBooleanString(value):value||''}});const stringAttributes={pressed:'aria-pressed',hasPopup:'aria-haspopup'};OcObject.forEach(stringAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null,value:value||''}});OcHtml.setAttributesIfTrue(node,attributeRules)})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let expanded=null;let pressed=null;let hasPopup=null;if(node){const thisExpanded=node.getAttribute('aria-expanded');if(thisExpanded!==null){expanded=OcDatatype.fromBooleanString(thisExpanded)}const thisPressed=node.getAttribute('aria-pressed');if(OcArray.has(OcAria.valueConstraints.pressed,thisPressed)){pressed=thisPressed}hasPopup=node.getAttribute('aria-haspopup')}return{...inheritedAttributes,expanded:expanded,pressed:pressed,hasPopup:OcArray.has(OcAria.valueConstraints.hasPopup,hasPopup)?hasPopup:null}}destroy(){this.__internals.root.off(`.${this.refID}`);this.__internals.root.removeClass('oc-aria-button');super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,expanded:null,pressed:null,hasPopup:null}}}}Oc.OcAriaButton=OcAriaButton;"use strict";class OcAriaDialog extends OcAriaLabellable{constructor(element,properties){super(element,properties);this.__role='dialog';this.__nativeTagOfRole='dialog'}defaults(){return OcAriaDialog.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,modal:{get:this.__getModal.bind(this),set:this.__setModal.bind(this)},focusOnTrap:{get:this.__getFocusOnTrap.bind(this),set:this.__setFocusOnTrap.bind(this)}}}__getModal(){return this.properties.modal}__setModal(value){this.properties.modal=value;this.__handleRootNode()}__getFocusOnTrap(){return this.properties.focusOnTrap}__setFocusOnTrap(value){this.properties.focusOnTrap=value;this.__internals.focusTrap.focusOnTrap=this.properties.focusOnTrap}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.focusTrap=new OcFocustrap();this.__internals.states=new OcStates();this.propertyHandlers.modal=this.__setModal;this.propertyHandlers.focusOnTrap=this.__setFocusOnTrap}__initialize(properties){super.__initialize(properties);this.__internals.focusTrap.element=this.__internals.root}__initElements(){const cssBase='oc-aria-dialog';this.defer(()=>{this.__internals.root.addClass(cssBase)})}__initStates(){this.__internals.states.define({state:OcAriaDialog.__states.open,onChange:this.__onStateChange__open.bind(this)})}__onStateChange__open(){const isOpen=this.__internals.states.hasState(OcAriaDialog.__states.open);if(isOpen){this.__trapFocus()}else{this.__releaseFocus()}}__onBaseNodeAttributeMutationObserver__attributeChange(ev){super.__onBaseNodeAttributeMutationObserver__attributeChange(ev);const value=ev.isSet?ev.value:null;
1switch(ev.value){case'aria-modal':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setModal(normalizedValue);break}}}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__dialog',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const modal=this.__getModal();attributeRules.modal={condition:modal!==null,value:String(modal)};OcHtml.setAttributesIfTrue(node,attributeRules)})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let modal=null;if(node){const thisModal=node.getAttribute('aria-modal');if(thisModal!==null){modal=OcDatatype.fromBooleanString(thisModal)}}return{...inheritedAttributes,modal:modal}}__trapFocus(){this.__internals.focusTrap.trapFocus()}__releaseFocus(){this.__internals.focusTrap.releaseFocus()}open(){this.__internals.states.add(OcAriaDialog.__states.open)};close(){this.__internals.states.remove(OcAriaDialog.__states.open)};destroy(){this.__internals.states.removeAll();this.__internals.root.off(`.${this.refID}`);this.__internals.root.removeClass('oc-aria-dialog');super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,modal:null,focusOnTrap:null}}}}OcAriaDialog.__states={open:'open'};Oc.OcAriaDialog=OcAriaDialog;"use strict";class OcAriaAlertDialog extends OcAriaDialog{constructor(element,properties){super(element,properties);this.__role='alertdialog'}defaults(){return OcAriaAlertDialog.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();const cssBase='oc-aria-alert-dialog';this.defer(()=>{this.__internals.root.addClass(cssBase)})}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,modal:true}}}}Oc.OcAriaAlertDialog=OcAriaAlertDialog;"use strict";class OcAriaDisclosurenavigation extends OcAriaBase{constructor(element,properties){super(element,properties)}defaults(){return OcAriaDisclosurenavigation.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-aria-disclosurenavigation';this.defer(()=>{this.__internals.root.addClass(cssBase)})}__initEvents(){super.__initEvents();this.__internals.root.on(`focusin.${this.refID}`,this.__onRoot__focusin.bind(this)).on(`focusout.${this.refID}`,this.__onRoot__focusout.bind(this)).on(`keydown.${this.refID}`,'a, button',this.__onRoot__keydown.bind(this)).on(`click.${this.refID}`,`button`,this.__onRoot__click.bind(this))}__onRoot__focusin(ev){this.__checkIfFocused()}__onRoot__focusout(ev){this.defer(()=>{this.__checkIfFocused()})}__onRoot__keydown(ev){let detectedAction;switch(ev.key){case OcAria.keys.SPACEBAR:case OcAria.keys.ENTER:ev.preventDefault();if(ev.target instanceof HTMLAnchorElement){window.location.href=ev.target.href}else{this.__toggleSubNav(ev.target)}break;case OcAria.keys.ESCAPE:ev.preventDefault();this.__leaveSubNav(ev.target);break;case OcAria.keys.ARROW_DOWN:case OcAria.keys.ARROW_RIGHT:ev.preventDefault();this.__moveForwards(ev.target);break;case OcAria.keys.ARROW_UP:case OcAria.keys.ARROW_LEFT:ev.preventDefault();this.__moveBackwards(ev.target);break;case OcAria.keys.HOME:ev.preventDefault();this.__moveToStart(ev.target);break;case OcAria.keys.END:ev.preventDefault();this.__moveToEnd(ev.target);break}}__onRoot__click(ev){this.toggleSubNav(ev.target)}__initEvents__document(){jQuery(document).on(`focusin.${this.refID}`,this.__onDocument__focusin.bind(this))}__cancelEvents__document(){jQuery(document).off(`.${this.refID}`)}__onDocument__focusin(ev){this.__checkIfFocused()}__initStates(){this.__internals.states.define({state:'has-focus',onChange:this.__onStateChange__hasFocus.bind(this)})}__onStateChange__hasFocus(){const hasFocus=this.__internals.states.hasState('has-focus');if(hasFocus){this.__initEvents__document()}else{this.__cancelEvents__document();this.__recursiveCollapse(this.__internals.root)}}__checkIfFocused(){const hasFocus=OcHtml.hasFocus(this.__internals.root);this.__internals.states.set('has-focus',hasFocus)}__moveBackwards(origin){const allElligibleElements=this.__getAllElligibleElements();const currentPosition=allElligibleElements.index(origin);if(currentPosition<=0){return};allElligibleElements.eq(currentPosition-1).trigger('focus')}__moveForwards(origin){const allElligibleElements=this.__getAllElligibleElements();const currentPosition=allElligibleElements.index(origin);if(currentPosition>=allElligibleElements.length){return};allElligibleElements.eq(currentPosition+1).trigger('focus')}__toggleSubNav(origin){const jOrigin=jQuery(origin);if(jOrigin.is('[aria-expanded="false"]')){const siblings=this.__getAllItemsOnSameLevel(origin);siblings.not(jOrigin.parent()).each((index,element)=>{this.__recursiveCollapse(jQuery(element))});jOrigin.attr('aria-expanded','true')}else{jOrigin.attr('aria-expanded','false')}}__recursiveCollapse(element){const allExpandableItems=element.find('[aria-expanded]');allExpandableItems.each((index,element)=>{const jElement=jQuery(element);if(jElement.is('[aria-expanded="true"]')){jElement.attr('aria-expanded','false')}})}
1__leaveSubNav(origin){const jOrigin=jQuery(origin);const parentLi=jOrigin.parents('li').eq(1);const parentItem=parentLi.children('a, button');parentItem.trigger('focus');this.__recursiveCollapse(parentLi)}__getAllElligibleElements(){return this.__internals.root.find('>li>a, >li>button, button[aria-expanded="true"]~ul>li>button, button[aria-expanded="true"]~ul>li>a')}__moveToStart(origin){const itemToSelect=this.__getAllItemsOnSameLevel(origin).first().find('a, button');itemToSelect.trigger('focus')}__moveToEnd(origin){const itemToSelect=this.__getAllItemsOnSameLevel(origin).last().find('a, button');itemToSelect.trigger('focus')}__getAllItemsOnSameLevel(origin){return jQuery(origin).parents('li:first').parent().children()}toggleSubNav(origin){if(!OcUtilities.isElementInElement(origin,this.__internals.root)){return}this.__toggleSubNav(origin)}destroy(){this.__cancelEvents__document();super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcAriaDisclosurenavigation=OcAriaDisclosurenavigation;"use strict";class OcAriaFeed extends OcAriaLabellable{constructor(element,properties){super(element,properties)}defaults(){return OcAriaFeed.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,articles:{get:this.__getArticles.bind(this)}}}__getArticles(){const jArticles=this.__getArticlesFromHtml();const articles=[];jArticles.each((index,element)=>{if("ocInstances"in element&&OcDatatype.isLiteralObject(element.ocInstances)&&element.ocInstances.OcAriaArticle instanceof OcAriaArticle){articles.push(element.ocInstances.OcAriaArticle)}});return articles}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.ocInstances.OcAriaFeed=this;this.__internals.articles={}}__initElements(){const cssBase='oc-aria-feed';this.defer(()=>{this.__internals.root.attr({'role':'feed','tabindex':'-1'}).addClass(cssBase)})}__initStates(){}__initEvents(){super.__initEvents();this.__internals.root.on(`oc-aria-article--destroy.${this.refID}`,this.__onRoot__ocAriaArticle__destroy.bind(this)).on(`oc-aria-article--initialize.${this.refID}`,this.__onRoot__ocAriaArticle__initialize.bind(this));this.__internals.childlistMutationObserver?.events.listen('childlist-added',this.__onChildlistMutationObserver__childlistAdded.bind(this)).listen('childlist-removed',this.__onChildlistMutationObserver__childlistRemoved.bind(this))}__onRoot__ocAriaArticle__destroy(ev,ariaArticle){this.__removeArticle(ariaArticle)}__onRoot__ocAriaArticle__initialize(ev,ariaArticle){this.__addArticle(ariaArticle)};__onChildlistMutationObserver__childlistAdded(ev){const ariaArticles=this.__getOcAriaArticleFromElement(ev.node);for(const ariaArticle of ariaArticles){this.__addArticle(ariaArticle)}}__onChildlistMutationObserver__childlistRemoved(ev){const ariaArticles=this.__getOcAriaArticleFromElement(ev.node);for(const ariaArticle of ariaArticles){this.__removeArticle(ariaArticle)}}__initEvents__ocAriaArticle(article){article.events.listen('key-press',this.__onOcAriaArticle__keyPress.bind(this),this.refID)}__onOcAriaArticle__keyPress(ev){switch(ev.data.key){case OcAria.keys.PAGE_DOWN:this.__focusNextArticle(ev.data.element,1);ev.data.preventDefault();break;case OcAria.keys.PAGE_UP:this.__focusNextArticle(ev.data.element,-1);ev.data.preventDefault();break;case OcAria.keys.END:if(ev.data.modifiers.ctrl){OcHtml.focusNext(this.__internals.root,true);ev.data.preventDefault()}break;case OcAria.keys.HOME:if(ev.data.modifiers.ctrl){OcHtml.focusPrevious(this.__internals.root,true);ev.data.preventDefault()}break}}__initialize(properties){super.__initialize(properties);this.__internals.childlistMutationObserver=OLEFA.mutations.createObserver({element:this.__internals.root,event:`${this.refID}--oc-aria-feed--mutations`,mutations:{childList:true}});const baseNode=this.__internals.root.get(0);if(baseNode){const ariaArticles=this.__getOcAriaArticleFromElement(baseNode);for(const ariaArticle of ariaArticles){this.__addArticle(ariaArticle)}};this.__handleRootNode()}__focusNextArticle(reference,delta){const articles=this.__getArticlesFromHtml();const currentArticleIndex=articles.index(reference);const newIndex=OcUtilities.clamp(0,currentArticleIndex+delta,articles.length-1);articles.eq(newIndex).trigger('focus')}__getArticlesFromHtml(){const articles=this.__internals.root.find('.oc-aria-article').not('.oc-aria-article .oc-aria-article');return articles}__getOcAriaArticleFromElement(element){const jNode=jQuery(element);let articles=jNode.find('.oc-aria-article');if(jNode.is('.oc-aria-article')){articles=jNode};articles=articles.not('.oc-aria-article .oc-aria-article');const ariaArticles=[];const foo=articles.each((index,domElement)=>{if("ocInstances"in element&&OcDatatype.isLiteralObject(element.ocInstances)&&element.ocInstances.OcAriaArticle instanceof OcAriaArticle){ariaArticles.push(element.ocInstances.OcAriaArticle)}});return ariaArticles}__addArticle(ariaArticle){this.__internals.articles[ariaArticle.refID]=ariaArticle;this.__initEvents__ocAriaArticle(ariaArticle)}__removeArticle(ariaArticle){ariaArticle.events.cancelAllFromScope(this.refID);delete this.__internals.articles[ariaArticle.refID]}destroy(){this.__internals.root.off(`.${this.refID}`);this.__internals.root.removeClass('oc-aria-article');super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,busy:false}}}}Oc.OcAriaFeed=OcAriaFeed;"use strict";class OcAriaListbox extends OcAriaLabellable{constructor(element,properties){super(element,properties);this.__role='listbox';this.__nativeTagOfRole='select'}defaults(){return OcAriaListbox.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,activeDescendant:{get:this.__getActiveDescendant.bind(this),set:this.__setActiveDescendant.bind(this)},owns:{get:this.__getOwns.bind(this),set:this.__setOwns.bind(this)},multiSelectable:{get:this.__getMultiSelectable.bind(this),set:this.__setMultiSelectable.bind(this)},required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},readonly:{get:this.__getReadonly.bind(this),set:this.__setReadonly.bind(this)},roleDescription:{get:this.__getRoleDescription.bind(this),set:this.__setRoleDescription.bind(this)}}}__getActiveDescendant(){return this.properties.activeDescendant}__setActiveDescendant(value){this.properties.activeDescendant=value;this.__handleRootNode()}__getOwns(){return this.properties.owns}__setOwns(value){this.properties.owns=value;this.__handleRootNode()}__getMultiSelectable(){return this.properties.multiSelectable}__setMultiSelectable(value){this.properties.multiSelectable=value;this.__handleRootNode()}__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__handleRootNode()}__getReadonly(){return this.properties.readonly}__setReadonly(value){this.properties.readonly=value;this.__handleRootNode()}__getRoleDescription(){return this.properties.roleDescription}__setRoleDescription(value){this.properties.roleDescription=value;this.__handleRootNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.activeDescendant=this.__setActiveDescendant;this.propertyHandlers.owns=this.__setOwns;this.propertyHandlers.multiSelectable=this.__setMultiSelectable;this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.readonly=this.__setReadonly;this.propertyHandlers.roleDescription=this.__setRoleDescription}__initElements(){const cssBase='oc-aria-listbox';this.defer(()=>{this.__internals.root.addClass(cssBase).attr({'tabindex':'0'})})}__onBaseNodeAttributeMutationObserver__attributeChange(ev){super.__onBaseNodeAttributeMutationObserver__attributeChange(ev);const value=ev.isSet?ev.value:null;switch(ev.attribute){case'aria-activedescendant':{this.__setActiveDescendant(value);break}case'aria-owns':{this.__setOwns(value);break}case'aria-multiselectable':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setMultiSelectable(normalizedValue);break}case'aria-required':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setRequired(normalizedValue);break}case'aria-readonly':{const normalizedValue=OcAria.getBooleanValueFromString(value);this.__setReadonly(normalizedValue);break}case'aria-roledescription':{this.__setRoleDescription(ev.isSet?ev.value:null);break}}}__initialize(properties){super.__initialize(properties)}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__OcAriaListbox',()=>{const node=this.__internals.root.get(0);if(!node){return}const attributeRules={};const booleanAttributes={multiSelectable:'aria-multiselectable',required:'aria-required',readOnly:'aria-readonly'};OcObject.forEach(booleanAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null,value:value?'true':'false'}});const stringAttributes={activeDescendant:'aria-activedescendant',owns:'aria-owns',roleDescription:'aria-roledescription'};OcObject.forEach(stringAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null,value:value||''}});OcHtml.setAttributesIfTrue(node,attributeRules)})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let activeDescendant=null;let owns=null;let multiSelectable=null;let required=null;let readonly=null;let roleDescription=null;if(node){multiSelectable=OcAria.getBooleanValueFromString(node.getAttribute('aria-multiselectable'));required=OcAria.getBooleanValueFromString(node.getAttribute('aria-required'));readonly=OcAria.getBooleanValueFromString(node.getAttribute('aria-readonly'));activeDescendant=node.getAttribute('aria-activedescendant');owns=node.getAttribute('aria-owns');roleDescription=node.getAttribute('aria-roledescription')}return{...inheritedAttributes,activeDescendant:activeDescendant,owns:owns,multiSelectable:multiSelectable,required:required,readonly:readonly,roleDescription:roleDescription}}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,activeDescendant:null,owns:null,multiSelectable:null,required:null,readonly:null,roleDescription:null}}}}Oc.OcAriaListbox=OcAriaListbox;"use strict";class OcAriaDeprecatedRadiogroup extends OcAriaListbox{constructor(element,properties){super(element,properties);this.__role='radiogroup';this.__nativeTagOfRole=null}defaults(){return OcAriaDeprecatedRadiogroup.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcAriaDeprecatedRadiogroup=OcAriaDeprecatedRadiogroup;"use strict";class OcAriaRadio extends OcAriaLabellable{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRadio.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,checked:{get:this.__getChecked.bind(this),set:this.__setChecked.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)}}}__getChecked(){return this.properties.checked}__setChecked(value){this.properties.checked=value;this.__handleRootNode()}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value;this.__handleRootNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.checked=this.__setChecked;this.propertyHandlers.value=this.__setValue}__initialize(properties){super.__initialize(properties);const ocInstances=this.__internals.root.prop('ocInstances');if(ocInstances){ocInstances.OcAriaRadio=this}this.__handleRootNode();this.defer(()=>{this.__internals.root.trigger('oc-aria-radio--initialize',[this])})}__initElements(){const cssBase='oc-aria-radio';this.defer(()=>{this.__internals.root.addClass(cssBase).attr({'role':'radio'})})}__initStates(){}__initEvents(){super.__initEvents();this.__internals.root.on(`click.${this.refID}`,this.__onRoot__click.bind(this)).on(`keydown.${this.refID}`,this.__onRoot__keydown.bind(this))}__onRoot__click(ev){this.checked=true;this.focus()}__onRoot__keydown(ev){switch(ev.key){case OcAria.keys.SPACEBAR:{this.checked=true;break}case OcAria.keys.ARROW_RIGHT:case OcAria.keys.ARROW_DOWN:this.__trigger__OcAriaRadio__focusNext({element:this.__internals.root,instance:this});break;case OcAria.keys.ARROW_LEFT:case OcAria.keys.ARROW_UP:this.__trigger__OcAriaRadio__focusPrev({element:this.__internals.root,instance:this});break}}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__radio',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const booleanAttributes={checked:'aria-checked',};OcObject.forEach(booleanAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null&&value,value:''}});OcHtml.setAttributesIfTrue(node,attributeRules);const tabIndex=-1;node.tabIndex=tabIndex;const value=this.__getValue();node.setAttribute('data-value',value)})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let checked=null;if(node){const thisChecked=node.getAttribute('aria-checked');if(thisChecked!==null){checked=OcDatatype.fromBooleanString(thisChecked)}}return{...inheritedAttributes,checked:checked}}focus(){if(!this.__internals.root.is(':focus')){this.__internals.root.trigger('focus')}}makeFocusable(){this.__internals.root.attr('tabindex',0)}__trigger__OcAriaRadio__focusNext(eventData){const event=new OcEvent({eventName:'oc-aria-radio--focus-next',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__OcAriaRadio__focusPrev(eventData){const event=new OcEvent({eventName:'oc-aria-radio--focus-prev',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.__internals.root.off(`.${this.refID}`);this.__internals.root.removeClass('oc-aria-radio');this.__internals.root.trigger('oc-aria-radio--destroy',[this]);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,checked:null,value:''}}}}Oc.OcAriaRadio=OcAriaRadio;"use strict";class OcAriaRadiogroup extends OcAriaLabellable{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRadiogroup.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},errorMessage:{get:this.__getErrorMessage.bind(this),set:this.__setErrorMessage.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)}}}__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__handleRootNode()}__getErrorMessage(){return this.properties.errorMessage}__setErrorMessage(value){this.properties.errorMessage=value;this.__handleRootNode()}__getValue(){const selectedRadio=Object.values(this.__internals.radioButtons).find(radio=>radio.checked);if(!selectedRadio){return undefined};return selectedRadio.value}__setValue(value){const radioWithValue=Object.values(this.__internals.radioButtons).find(radio=>radio.value==value);if(!radioWithValue){return};radioWithValue.checked=true}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.radioButtons={};this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.errorMessage=this.__setErrorMessage}__initialize(properties){super.__initialize(properties);this.__internals.mutationObserver=OLEFA.mutations.createObserver({element:this.__internals.root,event:this.refID,mutations:{childList:true,subtree:true}});const baseNode=this.__internals.root.get(0);if(baseNo
1de){const ariaRadios=this.__getOcAriaRadioFromElement(baseNode);for(const ariaRadio of ariaRadios){this.__addRadio(ariaRadio)}};this.__handleRootNode()}__initElements(){const cssBase='oc-aria-radiogroup';this.defer(()=>{this.__internals.root.attr({'role':'radiogroup','tabindex':0}).addClass(cssBase)})}__initStates(){}__initEvents(){super.__initEvents();this.__internals.root.on(`focusin.${this.refID}`,this.__onRoot__focusin.bind(this)).on(`focusout.${this.refID}`,this.__onRoot__focusout.bind(this)).on(`oc-aria-radio--destroy.${this.refID}`,this.__onRoot__ocAriaRadio__destroy.bind(this)).on(`oc-aria-radio--initialize.${this.refID}`,this.__onRoot__ocAriaRadio__initialize.bind(this));this.__internals.mutationObserver?.events.listen('childlist-added',this.__onMutationObserver__childlistAdded.bind(this)).listen('childlist-removed',this.__onMutationObserver__childlistRemoved.bind(this))}__onRoot__focusin(ev){const cameFromOutside=!OcUtilities.isElementInElement(ev.originalEvent?.relatedTarget,this.__internals.root);if(!cameFromOutside){return};let checkedRadio=Object.values(this.__internals.radioButtons).find(ariaRadio=>ariaRadio.checked);if(checkedRadio){checkedRadio.focus();this.__internals.root.attr('tabindex',-1);return};const radios=this.__internals.root.find('.oc-aria-radio').not('.oc-aria-radio .oc-aria-radio');checkedRadio=radios.eq(0).prop('ocInstances')?.OcAriaRadio;if(checkedRadio instanceof OcAriaRadio){checkedRadio.focus();this.__internals.root.attr('tabindex',-1)}}__onRoot__focusout(ev){if(OcUtilities.isElementInElement(ev.originalEvent?.relatedTarget,this.__internals.root)){return};this.__internals.root.attr('tabindex',0)}__onRoot__ocAriaRadio__destroy(ev,ariaRadio){this.__removeRadio(ariaRadio)}__onRoot__ocAriaRadio__initialize(ev,ariaRadio){this.__addRadio(ariaRadio)}__onMutationObserver__childlistAdded(ev){const ariaRadios=this.__getOcAriaRadioFromElement(ev.node);for(const ariaRadio of ariaRadios){this.__addRadio(ariaRadio)}}__onMutationObserver__childlistRemoved(ev){const ariaRadios=this.__getOcAriaRadioFromElement(ev.node);for(const ariaRadio of ariaRadios){this.__removeRadio(ariaRadio)}}__initEvents__ocAriaRadio(ariaRadio){ariaRadio.events.listen('oc-aria-radio--focus-next',this.__onOcAriaRadio__focusNext.bind(this,ariaRadio),this.refID).listen('oc-aria-radio--focus-prev',this.__onOcAriaRadio__focusPrev.bind(this,ariaRadio),this.refID).listen('property-change',this.__onOcAriaRadio__propertyChange.bind(this,ariaRadio),this.refID)}__onOcAriaRadio__focusNext(ariaRadio,ev){const isInsideToolbar=this.__internals.root.parents('[role="toolbar"]').length>0;if(isInsideToolbar){return};const radios=this.__internals.root.find('.oc-aria-radio').not('.oc-aria-radio .oc-aria-radio');const currentIndex=radios.index(ev.data.element);let nextIndex=currentIndex+1;if(nextIndex>=radios.length){nextIndex=0};const nextAriaRadio=radios.eq(nextIndex).prop('ocInstances')?.OcAriaRadio;if(nextAriaRadio instanceof OcAriaRadio){nextAriaRadio.checked=true;nextAriaRadio.focus()}}__onOcAriaRadio__focusPrev(ariaRadio,ev){const isInsideToolbar=this.__internals.root.parents('[role="toolbar"]').length>0;if(isInsideToolbar){return};const radios=this.__internals.root.find('.oc-aria-radio').not('.oc-aria-radio .oc-aria-radio');const currentIndex=radios.index(ev.data.element);let nextIndex=currentIndex-1;if(nextIndex<0){nextIndex=radios.length-1};const nextAriaRadio=radios.eq(nextIndex).prop('ocInstances')?.OcAriaRadio;if(nextAriaRadio instanceof OcAriaRadio){nextAriaRadio.checked=true;nextAriaRadio.focus()}}__onOcAriaRadio__propertyChange(ariaRadio,ev){if(ev.property=='checked'&&ev.value){this.__onAriaRadioCheck(ariaRadio)}}__onAriaRadioCheck(ariaRadio){for(const radio of Object.values(this.__internals.radioButtons)){const isRadioThatGotChecked=radio.refID==ariaRadio.refID;if(isRadioThatGotChecked){radio.checked=true;this.__trigger__change({radio:radio,value:radio.value})}else{radio.checked=false}}}__getOcAriaRadioFromElement(element){const jNode=jQuery(element);let radios=jNode.find('.oc-aria-radio');if(jNode.is('.oc-aria-radio')){radios=jNode};radios=radios.not('.oc-aria-radio .oc-aria-radio');const ariaRadios=[];const foo=radios.each((index,domElement)=>{if("ocInstances"in element){if(OcDatatype.isLiteralObject(element.ocInstances)){if(element.ocInstances.OcAriaRadio instanceof OcAriaRadio){ariaRadios.push(element.ocInstances.OcAriaRadio)}}}});
1return ariaRadios}__addRadio(ariaButton){this.__internals.radioButtons[ariaButton.refID]=ariaButton;if(Object.keys(this.__internals.radioButtons).length==1){ariaButton.makeFocusable()};this.__initEvents__ocAriaRadio(ariaButton);if(ariaButton.checked){this.__onAriaRadioCheck(ariaButton)}}__removeRadio(ariaButton){ariaButton.events.cancelAllFromScope(this.refID);delete this.__internals.radioButtons[ariaButton.refID]}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__radiogroup',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const booleanAttributes={required:'aria-required'};OcObject.forEach(booleanAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null&&value,value:''}});OcHtml.setAttributesIfTrue(node,attributeRules);const errorMessage=this.__getErrorMessage();const describedBy=this.__getDescribedBy();OcHtml.setAttributeIfTrue(describedBy!==null,node,'aria-errormessage',String(errorMessage))})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let errorMessage=null;let required=null;if(node){const thisRequired=node.getAttribute('aria-required');if(thisRequired!==null){required=OcDatatype.fromBooleanString(thisRequired)}errorMessage=node.getAttribute('aria-errormessage')}return{...inheritedAttributes,errorMessage:errorMessage,required:required}}__trigger__change(eventData){const event=new OcEvent({eventName:'change',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.__internals.root.off(`.${this.refID}`);this.__internals.root.removeClass('oc-aria-radiogroup');super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,required:null,errorMessage:null}}}}Oc.OcAriaRadiogroup=OcAriaRadiogroup;"use strict";class OcAriaRegion extends OcAriaLabellable{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRegion.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);const ocInstances=this.__internals.root.prop('ocInstances');if(ocInstances){ocInstances.OcAriaLabellable=this}this.__handleRootNode();this.defer(()=>{this.__internals.root.trigger('oc-aria-region--initialize',[this])})}__initElements(){const cssBase='oc-aria-region';this.defer(()=>{this.__internals.root.addClass(cssBase);if(!this.__internals.root.is('section')){this.__internals.root.attr({'role':'region'})}})}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__region',()=>{const node=this.__internals.root.get(0);if(!node){return};const tabIndex=0;node.tabIndex=tabIndex})}__initStates(){}destroy(){this.__internals.root.removeClass('oc-aria-region');this.__internals.root.trigger('oc-aria-region--destroy',[this]);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcAriaRegion=OcAriaRegion;"use strict";class OcAriaTab extends OcAriaLabellable{constructor(element,properties){super(element,properties)}defaults(){return OcAriaTab.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,selected:{get:this.__getSelected.bind(this),set:this.__setSelected.bind(this)}}}__setControls(value){super.__setControls(value);this.__handleTabpanelInstance()}__getSelected(){return this.properties.selected}__setSelected(value){this.properties.selected=value;this.__handleRootNode();this.__handleTabpanelInstance()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.selected=this.__setSelected}__initialize(properties){super.__initialize(properties);const ocInstances=this.__internals.root.prop('ocInstances');if(ocInstances){ocInstances.OcAriaTab=this}this.__handleRootNode();this.defer(()=>{this.__internals.root.trigger('oc-aria-tab--initialize',[this])})}__initElements(){const cssBase='oc-aria-tab';this.__internals.mutationObserver=OLEFA.mutations.createObserver({element:this.__internals.root,event:`${this.refID}--aria-attributes`,mutations:{attributes:true,attributeFilter:['aria-selected'],attributeOldValue:true}});this.defer(()=>{this.__internals.root.addClass(cssBase).attr({'role':'tab'})})}__initStates(){}__initEvents(){super.__initEvents();this.__internals.root.on(`click.${this.refID}`,this.__onRoot__click.bind(this)).on(`keydown.${this.refID}`,this.__onRoot__keydown.bind(this));this.__internals.mutationObserver?.events.listen('attribute-change',this.__onMutationObserver__attributeChange.bind(this),this.refID)}__onRoot__click(ev){this.__setSelectedStateOnActivate();this.focus()}__onRoot__keydown(ev){switch(ev.key){case OcAria.keys.SPACEBAR:case OcAria.keys.ENTER:{this.__setSelectedStateOnActivate();break}case OcAria.keys.ARROW_RIGHT:case OcAria.keys.ARROW_DOWN:this.__trigger__OcAriaTab__focusNext({element:this.__internals.root,instance:this,key:ev.key});break;case OcAria.keys.ARROW_LEFT:case OcAria.keys.ARROW_UP:this.__trigger__OcAriaTab__focusPrev({element:this.__internals.root,instance:this,key:ev.key});break;case OcAria.keys.HOME:this.__trigger__OcAriaTab__focusFirst({element:this.__internals.root,instance:this,key:ev.key});break;case OcAria.keys.END:this.__trigger__OcAriaTab__focusLast({element:this.__internals.root,instance:this,key:ev.key});break;case OcAria.keys.DELETE:OLEFA.log.info('Not implemented');break}}__onMutationObserver__attributeChange(ev){if(ev.attribute=='aria-selected'){const trueOrFalse=['true','false'];if(OcArray.has(trueOrFalse,ev.value)){this.__setSelected(ev.value=='true')}}}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__tab',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const selected=this.__getSelected();attributeRules['aria-selected']={condition:true,value:(selected)?'true':'false'};OcHtml.setAttributesIfTrue(node,attributeRules);const tabIndex=-1;node.tabIndex=tabIndex})}__handleTabpanelInstance(){this.__deferOnce('__handleTabpanelInstance',()=>{const controls=this.__getControls();const tabPanel=this.__getOcAriaTabPanelFromId(`#${controls}`);if(!tabPanel){return};const selected=this.__getSelected();tabPanel.selected=selected!==null&&selected})}__setSelectedStateOnActivate(){const tablistParent=this.__getOcAriaTablistParent();if(tablistParent&&tablistParent.multiSelectable){const selected=this.__getSelected();this.selected=!selected}else{this.selected=true}}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let selected=null;if(node){const thisSelected=node.getAttribute('aria-selected');if(thisSelected!==null){selected=OcDatatype.fromBooleanString(thisSelected)}}return{...inheritedAttributes,selected:selected}}__getOcAriaTablistParent(){const jNode=jQuery(this.__internals.root).parents();let tablist=jNode.find('.oc-aria-tablist').first();const tablistNode=tablist.get(0);if(!tablistNode){return undefined};if(!("ocInstances"in tablistNode)||!OcDatatype.isLiteralObject(tablistNode.ocInstances)||!(tablistNode.ocInstances.OcAriaTablist instanceof OcAriaTablist)){return undefined};return tablistNode.ocInstances.OcAriaTablist}__getOcAriaTabPanelFromId(id){const jNode=jQuery(id);const tabPanelNode=jNode.get(0);if(!tabPanelNode){return undefined};if(!("ocInstances"in tabPanelNode)||!OcDatatype.isLiteralObject(tabPanelNode.ocInstances)||!(tabPanelNode.ocInstances.OcAriaTabpanel instanceof OcAriaTabpanel)){return undefined};return tabPanelNode.ocInstances.OcAriaTabpanel}focus(){if(!this.__internals.root.is(':focus')){this.__internals.root.trigger('focus')}}makeFocusable(){this.__internals.root.attr('tabindex',0)}__trigger__OcAriaTab__focusFirst(eventData){const event=new OcEvent({eventName:'oc-aria-tab--focus-first',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__OcAriaTab__focusLast(eventData){const event=new OcEvent({eventName:'oc-aria-tab--focus-last',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__OcAriaTab__focusNext(eventData){const event=new OcEvent({eventName:'oc-aria-tab--focus-next',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__OcAriaTab__focusPrev(eventData){const event=new OcEvent({eventName:'oc-aria-tab--focus-prev',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.__internals.root.off(`.${this.refID}`);this.__internals.root.removeClass('oc-aria-tab');this.__internals.root.trigger('oc-aria-tab--destroy',[this]);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,selected:false}}}}Oc.OcAriaTab=OcAriaTab;"use strict";class OcAriaTablist extends OcAriaLabellable{constructor(element,properties){super(element,properties)}defaults(){return OcAriaTablist.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,multiSelectable:{get:this.__getMultiSelectable.bind(this),set:this.__setMultiSelectable.bind(this)},orientation:{get:this.__getOrientation.bind(this),set:this.__setOrientation.bind(this)},tabs:{get:this.__getTabs.bind(this)}}}__getMultiSelectable(){return this.properties.multiSelectable}__setMultiSelectable(value){this.properties.multiSelectable=value;this.__handleRootNode()}__getOrientation(){return this.properties.orientation}__setOrientation(value){this.properties.orientation=value;this.__handleRootNode()}__getTabs(){const jTabs=this.__getTabsFromHtml();const tabs=[];jTabs.each((index,element)=>{if("ocInstances"in element&&OcDatatype.isLiteralObject(element.ocInstances)&&element.ocInstances.OcAriaTab instanceof OcAriaTab){tabs.push(element.ocInstances.OcAriaTab)}});return tabs}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.tabs={};this.propertyHandlers.multiSelectable=this.__setMultiSelectable;this.propertyHandlers.orientation=this.__setOrientation}__initialize(properties){super.__initialize(properties);if(properties){if(!properties.element.ocInstances){properties.element.ocInstances={}};properties.element.ocInstances.OcAriaTablist=this}this.__internals.mutationObserver=OLEFA.mutations.createObserver({element:this.__internals.root,event:this.refID,mutations:{childList:true,subtree:true}});const baseNode=this.__internals.root.get(0);if(baseNode){const ariaTabs=this.__getOcAriaTabFromElement(baseNode);for(const ariaTab of ariaTabs){this.__addTab(ariaTab)}};this.__handleRootNode()}__initElements(){const cssBase='oc-aria-tablist';this.defer(()=>{this.__internals.root.attr({'role':'tablist','tabindex':0}).addClass(cssBase)})}__initStates(){}__initEvents(){super.__initEvents();this.__internals.root.on(`focusin.${this.refID}`,this.__onRoot__focusin.bind(this)).on(`focusout.${this.refID}`,this.__onRoot__focusout.bind(this)).on(`oc-aria-tab--destroy.${this.refID}`,this.__onRoot__ocAriaTab__destroy.bind(this)).on(`oc-aria-tab--initialize.${this.refID}`,this.__onRoot__ocAriaTab__initialize.bind(this));this.__internals.mutationObserver?.events.listen('childlist-added',this.__onMutationObserver__childlistAdded.bind(this)).listen('childlist-removed',this.__onMutationObserver__childlistRemoved.bind(this))}__onRoot__focusin(ev){const cameFromOutside=!OcUtilities.isElementInElement(ev.originalEvent?.relatedTarget,this.__internals.root);if(!cameFromOutside){return};let selectedTab=Object.values(this.__internals.tabs).find(ariaTab=>ariaTab.selected);if(selectedTab){selectedTab.focus();this.__internals.root.attr('tabindex',-1);return};const tabs=this.__internals.root.find('.oc-aria-tab').not('.oc-aria-tab .oc-aria-tab');selectedTab=tabs.eq(0).prop('ocInstances')?.OcAriaTab;if(selectedTab instanceof OcAriaTab){selectedTab.focus();this.__internals.root.attr('tabindex',-1)}}__onRoot__focusout(ev){if(OcUtilities.isElementInElement(ev.originalEvent?.relatedTarget,this.__internals.root)){return};this.__internals.root.attr('tabindex',0)}__onRoot__ocAriaTab__destroy(ev,ariaTab){this.__removeTab(ariaTab)}__onRoot__ocAriaTab__initialize(ev,ariaTab){this.__addTab(ariaTab)}__onMutationObserver__childlistAdded(ev){const ariaTabs=this.__getOcAriaTabFromElement(ev.node);for(const ariaTab of ariaTabs){this.__addTab(ariaTab)}}__onMutationObserver__childlistRemoved(ev){const ariaTabs=this.__getOcAriaTabFromElement(ev.node);for(const ariaTab of ariaTabs){this.__removeTab(ariaTab)}}__initEvents__ocAriaTab(ariaTab){ariaTab.events.listen('oc-aria-tab--focus-first',this.__onOcAriaTab__focusFirst.bind(this,ariaTab),this.refID).listen('oc-aria-tab--focus-last',this.__onOcAriaTab__focusLast.bind(this,ariaTab),this.refID).listen('oc-aria-tab--focus-next',this.__onOcAriaTab__focusNext.bind(this,ariaTab),this.refID).listen('oc-aria-tab--focus-prev',this.__onOcAriaTab__focusPrev.bind(this,ariaTab),this.refID).listen('property-change',this.__onOcAriaTab__propertyChange.bind(this,ariaTab),this.refID)}__onOcAriaTab__focusFirst(ariaTab,ev){const tabs=this.__getTabsFromHtml();const currentIndex=tabs.index(ev.data.element);let nextIndex=0;const nextAriaTab=tabs.eq(nextIndex).prop('ocInstances')?.OcAriaTab;if(nextAriaTab instanceof OcAriaTab){nextAriaTab.focus()}}__onOcAriaTab__focusLast(ariaTab,ev){const tabs=this.__getTabsFromHtml();const currentIndex=tabs.index(ev.data.element);let nextIndex=tabs.length-1;const nextAriaTab=tabs.eq(nextIndex).prop('ocInstances')?.OcAriaTab;if(nextAriaTab instanceof OcAriaTab){nextAriaTab.focus()}}__onOcAriaTab__focusNext(ariaTab,ev){const orientation=this.__getOrientation();const pressedKey=ev.data.key;const wrongArrowKeyForOrientation=(orientation=='horizontal'&&pressedKey==OcAria.keys.ARROW_DOWN)||(orientation=='vertical'&&pressedKey==OcAria.keys.ARROW_RIGHT);if(wrongArrowKeyForOrientation){return};const tabs=this.__getTabsFromHtml();const currentIndex=tabs.index(ev.data.element);let nextIndex=currentIndex+1;if(nextIndex>=tabs.length){nextIndex=0};const nextAriaTab=tabs.eq(nextIndex).prop('ocInstances')?.OcAriaTab;if(nextAriaTab instanceof OcAriaTab){nextAriaTab.focus()}}__onOcAriaTab__focusPrev(ariaTab,ev){const orientation=this.__getOrientation();const pressedKey=ev.data.key;const wrongArrowKeyForOrientation=(orientation=='horizontal'&&pressedKey==OcAria.keys.ARROW_UP)||(orientation=='vertical'&&pressedKey==OcAria.keys.ARROW_LEFT);if(wrongArrowKeyForOrientation){return};const tabs=this.__getTabsFromHtml();const currentIndex=tabs.index(ev.data.element);let nextIndex=currentIndex-1;if(nextIndex<0){nextIndex=tabs.length-1};const nextAriaTab=tabs.eq(nextIndex).prop('ocInstances')?.OcAriaTab;if(nextAriaTab instanceof OcAriaTab){nextAriaTab.focus()}}__onOcAriaTab__propertyChange(ariaTab,ev){const multiSelectable=this.__getMultiSelectable();if(ev.property=='selected'&&(ev.value||multiSelectable)){for(const tab of Object.values(this.__internals.tabs)){const isTabThatGotSelected=tab.refID==ariaTab.refID;if(isTabThatGotSelected){tab.selected=ev.value;this.__trigger__select({tab:tab})}else{if(!multiSelectable){tab.selected=false;this.__trigger__deselect({tab:tab})}}}}}__getTabsFromHtml(){const tabs=this.__internals.root.find('.oc-aria-tab').not('.oc-aria-tab .oc-aria-tab');return tabs}__getOcAriaTabFromElement(element){const jNode=jQuery(element);let tabs=jNode.find('.oc-aria-tab');
1if(jNode.is('.oc-aria-tab')){tabs=jNode};tabs=tabs.not('.oc-aria-tab .oc-aria-tab');const ariaTabs=[];const foo=tabs.each((index,domElement)=>{if("ocInstances"in element){if(OcDatatype.isLiteralObject(element.ocInstances)){if(element.ocInstances.OcAriaTab instanceof OcAriaTab){ariaTabs.push(element.ocInstances.OcAriaTab)}}}});return ariaTabs}__addTab(ariaTab){this.__internals.tabs[ariaTab.refID]=ariaTab;ariaTab.selected=false;if(Object.keys(this.__internals.tabs).length==1){ariaTab.makeFocusable()};this.__initEvents__ocAriaTab(ariaTab)}__removeTab(ariaTab){ariaTab.events.cancelAllFromScope(this.refID);delete this.__internals.tabs[ariaTab.refID]}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__tablist',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const booleanAttributes={multiSelectable:'aria-multiselectable'};OcObject.forEach(booleanAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null&&value,value:''}});const stringAttributes={orientation:'aria-orientation'};OcObject.forEach(stringAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null,value:value||''}});OcHtml.setAttributesIfTrue(node,attributeRules)})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let multiSelectable=null;let orientation=null;if(node){const thisMultiSelectable=node.getAttribute('aria-multiselectable');if(thisMultiSelectable!==null){multiSelectable=OcDatatype.fromBooleanString(thisMultiSelectable)}const thisOrientation=node.getAttribute('aria-orientation');if(OcArray.has(OcAria.valueConstraints.orientation,thisOrientation)){orientation=thisOrientation}}return{...inheritedAttributes,multiSelectable:multiSelectable,orientation:orientation}}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__deselect(eventData){const event=new OcEvent({eventName:'deselect',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.__internals.root.off(`.${this.refID}`);this.__internals.root.removeClass('oc-aria-tablist');super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,multiSelectable:null,orientation:null}}}}Oc.OcAriaTablist=OcAriaTablist;"use strict";class OcAriaTabpanel extends OcAriaLabellable{constructor(element,properties){super(element,properties)}defaults(){return OcAriaTabpanel.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,expanded:{get:this.__getExpanded.bind(this),set:this.__setExpanded.bind(this)},selected:{get:this.__getSelected.bind(this),set:this.__setSelected.bind(this)}}}__getExpanded(){return this.properties.expanded}__setExpanded(value){this.properties.expanded=value;this.__handleRootNode()}__getSelected(){return this.__internals.states.hasState(OcAriaTabpanel.__states.ARIA_OWNER_SELECTED)}__setSelected(value){this.__internals.states.set(OcAriaTabpanel.__states.ARIA_OWNER_SELECTED,value)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates();this.propertyHandlers.expanded=this.__setExpanded}__initialize(properties){super.__initialize(properties);const ocInstances=this.__internals.root.prop('ocInstances');if(ocInstances){ocInstances.OcAriaTabpanel=this}this.__handleRootNode();this.defer(()=>{this.__internals.root.trigger('oc-aria-tabpanel--initialize',[this])})}__initElements(){const cssBase='oc-aria-tabpanel';this.defer(()=>{this.__internals.root.addClass(cssBase).attr({'role':'tabpanel'})})}__initStates(){this.__internals.states.define({state:OcAriaTabpanel.__states.ARIA_OWNER_SELECTED,onChange:this.__onStateChange__ariaOwnerSelected.bind(this)})}__onStateChange__ariaOwnerSelected(){const isSelected=this.__internals.states.hasState(OcAriaTabpanel.__states.ARIA_OWNER_SELECTED);this.__handleRootNode()}__handleRootNode(){super.__handleRootNode();this.__deferOnce('__handleRootNode__tabpanel',()=>{const node=this.__internals.root.get(0);if(!node){return};const attributeRules={};const booleanAttributes={expanded:'aria-expanded'};OcObject.forEach(booleanAttributes,(instanceProperty,htmlAttribute)=>{const value=this.properties[instanceProperty];attributeRules[htmlAttribute]={condition:value!==null&&value,value:''}});const selectedState=this.__internals.states.hasState(OcAriaTabpanel.__states.ARIA_OWNER_SELECTED);attributeRules['data-aria-owner-selected']={condition:selectedState,value:''};attributeRules.inert={condition:!selectedState,value:''};OcHtml.setAttributesIfTrue(node,attributeRules);const tabIndex=-1;node.tabIndex=tabIndex})}__getOriginalAriaAttributesFromHtml(){const inheritedAttributes=super.__getOriginalAriaAttributesFromHtml();const node=this.__internals.root.get(0);let expanded=null;if(node){const thisExpanded=node.getAttribute('aria-expanded');if(thisExpanded!==null){expanded=OcDatatype.fromBooleanString(thisExpanded)}}return{...inheritedAttributes,expanded:expanded}}focus(){if(!this.__internals.root.is(':focus')){this.__internals.root.trigger('focus')}}destroy(){this.__internals.root.off(`.${this.refID}`);this.__internals.root.removeClass('oc-aria-tabpanel');this.__internals.root.trigger('oc-aria-tabpanel--destroy',[this]);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,expanded:null}}}}OcAriaTabpanel.__states={ARIA_OWNER_SELECTED:'aria-owner-selected'};Oc.OcTabpanel=OcAriaTabpanel;"use strict";class OcAriaBanner extends OcAriaLabellable{constructor(element,properties){super(element,properties);this.__role='banner';this.__nativeTagOfRole='header'}defaults(){return OcAriaBanner.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}
1Oc.OcAriaBanner=OcAriaBanner;"use strict";class OcAriaAttribute{}"use strict";class OcAriaAttributeBoolean extends OcAriaAttribute{validateValue(value,fallback=null){if(typeof value=='boolean'){return value}else if(typeof value=='string'){const normalizedValue=value.toLowerCase();return normalizedValue=='true'}else if(typeof value=='number'){return Boolean(value)};return fallback}adjustNode(node,value){if(value==null){node.removeAttribute(this.attributeName)}else{const booleanString=OcDatatype.toBooleanString(value);node.setAttribute(this.attributeName,booleanString)}}}"use strict";class OcAriaAttributeString extends OcAriaAttribute{validateValue(value,fallback=null){const normalizedValue=String(value);if(normalizedValue==value){return normalizedValue}return fallback}adjustNode(node,value){if(value==null){node.removeAttribute(this.attributeName)}else{node.setAttribute(this.attributeName,value)}}}"use strict";class OcAriaAttributeToken extends OcAriaAttributeString{validateValue(value,fallback=null){const acceptableValues=Object.values(this.validValues);if(OcArray.has(acceptableValues,value)){return value}return fallback}adjustNode(node,value){const acceptableValues=Object.values(this.validValues);if(!value||!OcArray.has(acceptableValues,value)){node.removeAttribute(this.attributeName)}else{node.setAttribute(this.attributeName,value)}}}"use strict";class OcAriaAttributeTristate extends OcAriaAttributeToken{constructor(){super(...arguments);this.validValues=OcAriaAttributeTristate.validValues}}OcAriaAttributeTristate.validValues={TRUE:'true',FALSE:'false',MIXED:'mixed'};"use strict";class OcAriaAttributeAtomic extends OcAriaAttributeBoolean{constructor(){super(...arguments);this.attributeName=OcAriaAttributeAtomic.attributeName}}OcAriaAttributeAtomic.attributeName='aria-atomic';"use strict";class OcAriaAttributeBraillelabel extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeBraillelabel.attributeName}}OcAriaAttributeBraillelabel.attributeName='aria-braillelabel';"use strict";class OcAriaAttributeBrailleroledescription extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeBrailleroledescription.attributeName}}OcAriaAttributeBrailleroledescription.attributeName='aria-brailleroledescription';"use strict";class OcAriaAttributeBusy extends OcAriaAttributeBoolean{constructor(){super(...arguments);this.attributeName=OcAriaAttributeBusy.attributeName}}OcAriaAttributeBusy.attributeName='aria-busy';"use strict";class OcAriaAttributeControls extends OcAriaAttributeToken{constructor(){super(...arguments);this.attributeName=OcAriaAttributeControls.attributeName;this.validValues=OcAriaAttributeControls.validValues}}OcAriaAttributeControls.attributeName='aria-controls';OcAriaAttributeControls.validValues={PAGE:'page',STEP:'step',LOCATION:'location',DATE:'date',TIME:'time',TRUE:'true',FALSE:'false'};"use strict";class OcAriaAttributeCurrent extends OcAriaAttributeToken{constructor(){super(...arguments);this.attributeName=OcAriaAttributeCurrent.attributeName;this.validValues=OcAriaAttributeCurrent.validValues}}OcAriaAttributeCurrent.attributeName='aria-current';OcAriaAttributeCurrent.validValues={PAGE:'page',STEP:'step',LOCATION:'location',DATE:'date',TIME:'time',TRUE:'true',FALSE:'false'};"use strict";class OcAriaAttributeDescribedby extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeDescribedby.attributeName}}OcAriaAttributeDescribedby.attributeName='aria-describedby';"use strict";class OcAriaAttributeDescription extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeDescription.attributeName}}OcAriaAttributeDescription.attributeName='aria-description';"use strict";class OcAriaAttributeDetails extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeDetails.attributeName}}OcAriaAttributeDetails.attributeName='aria-details';"use strict";class OcAriaAttributeDisabled extends OcAriaAttributeBoolean{constructor(){super(...arguments);this.attributeName=OcAriaAttributeDisabled.attributeName}}OcAriaAttributeDisabled.attributeName='aria-disabled';"use strict";class OcAriaAttributeDropeffect extends OcAriaAttributeToken{constructor(){super(...arguments);this.attributeName=OcAriaAttributeDropeffect.attributeName;this.validValues=OcAriaAttributeDropeffect.validValues}}OcAriaAttributeDropeffect.attributeName='aria-dropeffect';OcAriaAttributeDropeffect.validValues={COPY:'copy',EXECUTE:'execute',LINK:'link',MOVE:'move',NONE:'none',POPUP:'popup'};"use strict";class OcAriaAttributeErrormessage extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeErrormessage.attributeName}}OcAriaAttributeErrormessage.attributeName='aria-errormessage';"use strict";class OcAriaAttributeExpanded extends OcAriaAttributeBoolean{constructor(){super(...arguments);this.attributeName=OcAriaAttributeExpanded.attributeName}}OcAriaAttributeExpanded.attributeName='aria-expanded';"use strict";class OcAriaAttributeFlowto extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeFlowto.attributeName}}OcAriaAttributeFlowto.attributeName='aria-flowto';"use strict";class OcAriaAttributeGrabbed extends OcAriaAttributeBoolean{constructor(){super(...arguments);this.attributeName=OcAriaAttributeGrabbed.attributeName}}OcAriaAttributeGrabbed.attributeName='aria-grabbed';"use strict";class OcAriaAttributeHaspopup extends OcAriaAttributeToken{constructor(){super(...arguments);this.attributeName=OcAriaAttributeHaspopup.attributeName;this.validValues=OcAriaAttributeHaspopup.validValues}}OcAriaAttributeHaspopup.attributeName='aria-haspopup';OcAriaAttributeHaspopup.validValues={FALSE:'false',TRUE:'true',MENU:'menu',LISTBOX:'listbox',TREE:'tree',GRID:'grid',DIALOG:'dialog'};"use strict";class OcAriaAttributeHidden extends OcAriaAttributeBoolean{constructor(){super(...arguments);this.attributeName=OcAriaAttributeHidden.attributeName}}OcAriaAttributeHidden.attributeName='aria-hidden';"use strict";class OcAriaAttributeInvalid extends OcAriaAttributeToken{constructor(){super(...arguments);this.attributeName=OcAriaAttributeInvalid.attributeName;this.validValues=OcAriaAttributeInvalid.validValues}}OcAriaAttributeInvalid.attributeName='aria-invalid';OcAriaAttributeInvalid.validValues={GRAMMAR:'grammar',FALSE:'false',SPELLING:'spelling',TRUE:'true',};"use strict";class OcAriaAttributeKeyshortcuts extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeKeyshortcuts.attributeName}}OcAriaAttributeKeyshortcuts.attributeName='aria-keyshortcuts';"use strict";class OcAriaAttributeLabel extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeLabel.attributeName}}OcAriaAttributeLabel.attributeName='aria-label';"use strict";class OcAriaAttributeLabelledby extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeLabelledby.attributeName}}OcAriaAttributeLabelledby.attributeName='aria-labelledby';"use strict";class OcAriaAttributeLive extends OcAriaAttributeToken{constructor(){super(...arguments);this.attributeName=OcAriaAttributeLive.attributeName;this.validValues=OcAriaAttributeLive.validValues}}OcAriaAttributeLive.attributeName='aria-live';OcAriaAttributeLive.validValues={ASSERTIVE:'assertive',OFF:'off',POLITE:'polite'};"use strict";class OcAriaAttributeOwns extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeOwns.attributeName}}OcAriaAttributeOwns.attributeName='aria-owns';"use strict";class OcAriaAttributePressed extends OcAriaAttributeTristate{constructor(){super(...arguments);this.attributeName=OcAriaAttributePressed.attributeName;this.validValues=OcAriaAttributePressed.validValues}}OcAriaAttributePressed.attributeName='aria-pressed';OcAriaAttributePressed.validValues=OcAriaAttributeTristate.validValues;"use strict";class OcAriaAttributeRelevant extends OcAriaAttributeToken{constructor(){super(...arguments);this.attributeName=OcAriaAttributeRelevant.attributeName;this.validValues=OcAriaAttributeRelevant.validValues}}OcAriaAttributeRelevant.attributeName='aria-relevant';OcAriaAttributeRelevant.validValues={ADDITIONS:'additions',ADDITIONS_TEXT:'additions text',ALL:'all',REMOVALS:'removals',TEXT:'text',};"use strict";class OcAriaAttributeRoledescription extends OcAriaAttributeString{constructor(){super(...arguments);this.attributeName=OcAriaAttributeRoledescription.attributeName}}OcAriaAttributeRoledescription.attributeName='aria-roledescription';"use strict";class OcAriaRoleRoletype extends OcComponent{constructor(element,properties){const normalizedProperties={...properties,element:element};super(normalizedProperties)}defaults(){return OcAriaRoleRoletype.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,atomic:{get:this.__getAtomic.bind(this),set:this.__setAtomic.bind(this)},brailleLabel:{get:this.__getBrailleLabel.bind(this),set:this.__setBrailleLabel.bind(this)},brailleRoleDescription:{get:this.__getBrailleRoleDescription.bind(this),set:this.__setBrailleRoleDescription.bind(this)},busy:{get:this.__getBusy.bind(this),set:this.__setBusy.bind(this)},controls:{get:this.__getControls.bind(this),set:this.__setControls.bind(this)},current:{get:this.__getCurrent.bind(this),set:this.__setCurrent.bind(this)},describedBy:{get:this.__getDescribedBy.bind(this),set:this.__setDescribedBy.bind(this)},description:{get:this.__getDescription.bind(this),set:this.__setDescription.bind(this)},details:{get:this.__getDetails.bind(this),set:this.__setDetails.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},dropEffect:{get:this.__getDropEffect.bind(this),set:this.__setDropEffect.bind(this)},errorMessage:{get:this.__getErrorMessage.bind(this),set:this.__setErrorMessage.bind(this)},flowTo:{get:this.__getFlowTo.bind(this),set:this.__setFlowTo.bind(this)},grabbed:{get:this.__getGrabbed.bind(this),set:this.__setGrabbed.bind(this)},hasPopup:{get:this.__getHasPopup.bind(this),set:this.__setHasPopup.bind(this)},hidden:{get:this.__getHidden.bind(this),set:this.__setHidden.bind(this)},invalid:{get:this.__getInvalid.bind(this),set:this.__setInvalid.bind(this)},keyShortcuts:{get:this.__getKeyShortcuts.bind(this),set:this.__setKeyShortcuts.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},labelledBy:{get:this.__getLabelledBy.bind(this),set:this.__setLabelledBy.bind(this)},live:{get:this.__getLive.bind(this),set:this.__setLive.bind(this)},owns:{get:this.__getOwns.bind(this),set:this.__setOwns.bind(this)},relevant:{get:this.__getRelevant.bind(this),set:this.__setRelevant.bind(this)},roleDescription:{get:this.__getRoleDescription.bind(this),set:this.__setRoleDescription.bind(this)}}}__getAtomic(){return this.properties.atomic}__setAtomic(value){const attributeHandler=this.__internals.attributeHandlers.atomic;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.atomic=normalizedValue;this.__handleRootNode()}__getBrailleLabel(){return this.properties.brailleLabel}__setBrailleLabel(value){const attributeHandler=this.__internals.attributeHandlers.brailleLabel;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.brailleLabel=normalizedValue;this.__handleRootNode()}__getBrailleRoleDescription(){return this.properties.brailleRoleDescription}__setBrailleRoleDescription(value){const attributeHandler=this.__internals.attributeHandlers.brailleRoleDescription;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.brailleRoleDescription=normalizedValue;this.__handleRootNode()}__getBusy(){return this.properties.busy}__setBusy(value){const attributeHandler=this.__internals.attributeHandlers.busy;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.busy=normalizedValue;this.__handleRootNode()}__getControls(){return this.properties.controls}__setControls(value){const attributeHandler=this.__internals.attributeHandlers.controls;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.controls=normalizedValue;this.__handleRootNode()}__getCurrent(){return this.properties.current}__setCurrent(value){const attributeHandler=this.__internals.attributeHandlers.current;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.current=normalizedValue;this.__handleRootNode()}__getDescribedBy(){return this.properties.describedBy}__setDescribedBy(value){const attributeHandler=this.__internals.attributeHandlers.describedBy;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.describedBy=normalizedValue;this.__handleRootNode()}__getDescription(){return this.properties.description}__setDescription(value){const attributeHandler=this.__internals.attributeHandlers.description;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.description=normalizedValue;this.__handleRootNode()}__getDetails(){return this.properties.details}__setDetails(value){const attributeHandler=this.__internals.attributeHandlers.details;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.details=normalizedValue;this.__handleRootNode()}__getDisabled(){return this.properties.disabled}__setDisabled(value){const attributeHandler=this.__internals.attributeHandlers.disabled;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.disabled=normalizedValue;this.__handleRootNode()}__getDropEffect(){return this.properties.dropEffect}__setDropEffect(value){const attributeHandler=this.__internals.attributeHandlers.dropEffect;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.dropEffect=normalizedValue;this.__handleRootNode()}__getErrorMessage(){return this.properties.errorMessage}__setErrorMessage(value){const attributeHandler=this.__internals.attributeHandlers.errorMessage;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.errorMessage=normalizedValue;this.__handleRootNode()}__getFlowTo(){return this.properties.flowTo}__setFlowTo(value){const attributeHandler=this.__internals.attributeHandlers.flowTo;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.flowTo=normalizedValue;this.__handleRootNode()}__getGrabbed(){return this.properties.grabbed}__setGrabbed(value){const attributeHandler=this.__internals.attributeHandlers.grabbed;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.grabbed=normalizedValue;this.__handleRootNode()}__getHasPopup(){return this.properties.hasPopup}__setHasPopup(value){const attributeHandler=this.__internals.attributeHandlers.hasPopup;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.hasPopup=normalizedValue;this.__handleRootNode()}__getHidden(){return this.properties.hidden}__setHidden(value){const attributeHandler=this.__internals.attributeHandlers.hidden;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.hidden=normalizedValue;this.__handleRootNode()}__getInvalid(){return this.properties.invalid}__setInvalid(value){const attributeHandler=this.__internals.attributeHandlers.invalid;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.invalid=normalizedValue;this.__handleRootNode()}__getKeyShortcuts(){return this.properties.keyShortcuts}__setKeyShortcuts(value){const attributeHandler=this.__internals.attributeHandlers.keyShortcuts;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.keyShortcuts=normalizedValue;this.__handleRootNode()}__getLabel(){return this.properties.label}__setLabel(value){const attributeHandler=this.__internals.attributeHandlers.label;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.label=normalizedValue;this.__handleRootNode()}__getLabelledBy(){return this.properties.labelledBy}__setLabelledBy(value){const attributeHandler=this.__internals.attributeHandlers.labelledBy;const normalizedValue=attributeHandler.handler.validateValue(value);th
1is.properties.labelledBy=normalizedValue;this.__handleRootNode()}__getLive(){return this.properties.live}__setLive(value){const attributeHandler=this.__internals.attributeHandlers.live;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.live=normalizedValue;this.__handleRootNode()}__getOwns(){return this.properties.owns}__setOwns(value){const attributeHandler=this.__internals.attributeHandlers.owns;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.owns=normalizedValue;this.__handleRootNode()}__getRelevant(){return this.properties.relevant}__setRelevant(value){const attributeHandler=this.__internals.attributeHandlers.relevant;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.relevant=normalizedValue;this.__handleRootNode()}__getRoleDescription(){return this.properties.roleDescription}__setRoleDescription(value){const attributeHandler=this.__internals.attributeHandlers.roleDescription;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.roleDescription=normalizedValue;this.__handleRootNode()}__getNode(){return this.__internals.root}__generateAttributeHandlers(){const defaultProperties=this.defaults().properties;return{atomic:{handler:new OcAriaAttributeAtomic(),getter:this.__getAtomic.bind(this),setter:this.__setAtomic.bind(this),fallback:defaultProperties.atomic},brailleLabel:{handler:new OcAriaAttributeBraillelabel(),getter:this.__getBrailleLabel.bind(this),setter:this.__setBrailleLabel.bind(this),fallback:defaultProperties.brailleLabel},brailleRoleDescription:{handler:new OcAriaAttributeBrailleroledescription(),getter:this.__getBrailleRoleDescription.bind(this),setter:this.__setBrailleRoleDescription.bind(this),fallback:defaultProperties.brailleRoleDescription},busy:{handler:new OcAriaAttributeBusy(),getter:this.__getBusy.bind(this),setter:this.__setBusy.bind(this),fallback:defaultProperties.busy},controls:{handler:new OcAriaAttributeControls(),getter:this.__getControls.bind(this),setter:this.__setControls.bind(this),fallback:defaultProperties.controls},current:{handler:new OcAriaAttributeCurrent(),getter:this.__getCurrent.bind(this),setter:this.__setCurrent.bind(this),fallback:defaultProperties.current},describedBy:{handler:new OcAriaAttributeDescribedby(),getter:this.__getDescribedBy.bind(this),setter:this.__setDescribedBy.bind(this),fallback:defaultProperties.describedBy},description:{handler:new OcAriaAttributeDescription(),getter:this.__getDescription.bind(this),setter:this.__setDescription.bind(this),fallback:defaultProperties.description},details:{handler:new OcAriaAttributeDetails(),getter:this.__getDetails.bind(this),setter:this.__setDetails.bind(this),fallback:defaultProperties.details},disabled:{handler:new OcAriaAttributeDisabled(),getter:this.__getDisabled.bind(this),setter:this.__setDisabled.bind(this),fallback:defaultProperties.disabled},dropEffect:{handler:new OcAriaAttributeDropeffect(),getter:this.__getDropEffect.bind(this),setter:this.__setDropEffect.bind(this),fallback:defaultProperties.dropEffect},errorMessage:{handler:new OcAriaAttributeErrormessage(),getter:this.__getErrorMessage.bind(this),setter:this.__setErrorMessage.bind(this),fallback:defaultProperties.errorMessage},flowTo:{handler:new OcAriaAttributeFlowto(),getter:this.__getFlowTo.bind(this),setter:this.__setFlowTo.bind(this),fallback:defaultProperties.flowTo},grabbed:{handler:new OcAriaAttributeGrabbed(),getter:this.__getGrabbed.bind(this),setter:this.__setGrabbed.bind(this),fallback:defaultProperties.grabbed},hasPopup:{handler:new OcAriaAttributeHaspopup(),getter:this.__getHasPopup.bind(this),setter:this.__setHasPopup.bind(this),fallback:defaultProperties.hasPopup},hidden:{handler:new OcAriaAttributeHidden(),getter:this.__getHidden.bind(this),setter:this.__setHidden.bind(this),fallback:defaultProperties.hidden},invalid:{handler:new OcAriaAttributeInvalid(),getter:this.__getInvalid.bind(this),setter:this.__setInvalid.bind(this),fallback:defaultProperties.invalid},keyShortcuts:{handler:new OcAriaAttributeKeyshortcuts(),getter:this.__getKeyShortcuts.bind(this),setter:this.__setKeyShortcuts.bind(this),fallback:defaultProperties.keyShortcuts},label:{handler:new OcAriaAttributeLabel(),getter:this.__getLabel.bind(this),setter:this.__setLabel.bind(this),fallback:defaultProperties.label},labelledBy:{handler:new OcAriaAttributeLabelledby(),getter:this.__getLabelledBy.bind(this),setter:this.__setLabelledBy.bind(this),fallback:defaultProperties.labelledBy},live:{handler:new OcAriaAttributeLive(),getter:this.__getLive.bind(this),setter:this.__setLive.bind(this),fallback:defaultProperties.live},owns:{handler:new OcAriaAttributeOwns(),getter:this.__getOwns.bind(this),setter:this.__setOwns.bind(this),fallback:defaultProperties.owns},relevant:{handler:new OcAriaAttributeRelevant(),getter:this.__getRelevant.bind(this),setter:this.__setRelevant.bind(this),fallback:defaultProperties.relevant},roleDescription:{handler:new OcAriaAttributeRoledescription(),getter:this.__getRoleDescription.bind(this),setter:this.__setRoleDescription.bind(this),fallback:defaultProperties.roleDescription}}}__buildInstanceStructure(){super.__buildInstanceStructure();const defaults=this.defaults();this.__internals.role=defaults.role;this.__internals.nativeTagsOfRole=defaults.nativeTagsOfRole;this.__internals.attributeHandlers=this.__generateAttributeHandlers();this.__internals.observedHtmlAttributes=Object.values(this.__internals.attributeHandlers).map(handler=>handler.handler.attributeName);this.propertyHandlers.atomic=this.__setAtomic;this.propertyHandlers.brailleLabel=this.__setBrailleLabel;this.propertyHandlers.brailleRoleDescription=this.__setBrailleRoleDescription;this.propertyHandlers.busy=this.__setBusy;this.propertyHandlers.controls=this.__setControls;this.propertyHandlers.current=this.__setCurrent;this.propertyHandlers.describedBy=this.__setDescribedBy;this.propertyHandlers.description=this.__setDescription;this.propertyHandlers.details=this.__setDetails;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.dropEffect=this.__setDropEffect;this.propertyHandlers.errorMessage=this.__setErrorMessage;this.propertyHandlers.flowTo=this.__setFlowTo;this.propertyHandlers.grabbed=this.__setGrabbed;this.propertyHandlers.hasPopup=this.__setHasPopup;this.propertyHandlers.hidden=this.__setHidden;this.propertyHandlers.invalid=this.__setInvalid;this.propertyHandlers.keyShortcuts=this.__setKeyShortcuts;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.labelledBy=this.__setLabelledBy;this.propertyHandlers.live=this.__setLive;this.propertyHandlers.owns=this.__setOwns;this.propertyHandlers.relevant=this.__setRelevant;this.propertyHandlers.roleDescription=this.__setRoleDescription}__initElements(){const cssBase='oc-aria-roletype';this.defer(()=>{this.__internals.root.addClass(cssBase);if(this.__internals.role&&(this.__internals.nativeTagsOfRole.length==0||!this.__internals.root.is(this.__internals.nativeTagsOfRole.join(',')))){this.__internals.root.attr('role',this.__internals.role)}})}__initEvents(){super.__initEvents();this.__internals.rootNodeAttributeMutationObserver?.events.listen('attribute-change',this.__onBaseNodeAttributeMutationObserver__attributeChange.bind(this),this.refID)}__onBaseNodeAttributeMutationObserver__attributeChange(ev){const attributeHandlers=this.__internals.attributeHandlers;const handler=Object.values(attributeHandlers).find(handler=>handler.handler.attributeName==ev.attribute);if(handler){const value=ev.isSet?ev.value:null;const sanitizedValue=handler.handler.validateValue(value);handler.setter(sanitizedValue)}}__initialize(properties){const element=properties.element;this.__internals.root=jQuery(element);const propertiesFromHtml=this.__getOriginalAriaAttributesFromHtml();const mixedProperties={...propertiesFromHtml,...properties};super.__initialize(mixedProperties);this.__initElements();if(this.__internals.observedHtmlAttributes.length>0){this.__internals.rootNodeAttributeMutationObserver=OLEFA.mutations.createObserver({element:this.__internals.root,event:`${this.refID}--attribute-change`,mutations:{attributes:true,attributeFilter:this.__internals.observedHtmlAttributes,attributeOldValue:true}})}this.__initEvents();this.__initProperties(mixedProperties)}__handleRootNode(){this.__deferOnce('__handleRootNode__OcAriaRoleRoletype',()=>{const node=this.__internals.root.get(0);if(!node){return}for(const key of OcObject.keys(this.__internals.attributeHandlers)){const handler=this.__internals.attributeHandlers[key];const value=handler.getter();handler.handler.adjustNode(node,value)}},'repaint')}__getOriginalAriaAttributesFromHtml(){const node=this.__internals.root.get(0);const attributesRaw=OcObject.keys(this.__internals.attributeHandlers).map(attribute=>{const handler=this.__internals.attributeHandlers[attribute];return{key:attribute,value:handler.handler.validateValue(node?.getAttribute(handler.handler.attributeName))}});const attributes=Object.fromEntries(attributesRaw.map(({key,value})=>[key,value]));return attributes}destroy(){OLEFA.mutations.destroyObserver(`${this.refID}--attribute-change`);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,atomic:null,brailleLabel:null,brailleRoleDescription:null,busy:null,controls:null,current:null,describedBy:null,description:null,details:null,disabled:null,dropEffect:null,errorMessage:null,flowTo:null,grabbed:null,hasPopup:null,hidden:null,invali
1d:null,keyShortcuts:null,label:null,labelledBy:null,live:null,owns:null,relevant:null,roleDescription:null,},role:'roletype',nativeTagsOfRole:[]}}}Oc.OcAriaRoleRoletype=OcAriaRoleRoletype;"use strict";class OcAriaRoleStructure extends OcAriaRoleRoletype{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRoleStructure.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();const cssBase='oc-aria-structure';this.defer(()=>{this.__internals.root.addClass(cssBase)})}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties},role:'structure',nativeTagsOfRole:[]}}}Oc.OcAriaRoleStructure=OcAriaRoleStructure;"use strict";class OcAriaRoleSection extends OcAriaRoleStructure{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRoleSection.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();const cssBase='oc-aria-section';this.defer(()=>{this.__internals.root.addClass(cssBase)})}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties},role:'section',nativeTagsOfRole:[]}}}Oc.OcAriaRoleSection=OcAriaRoleSection;"use strict";class OcAriaRoleLandmark extends OcAriaRoleSection{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRoleLandmark.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();const cssBase='oc-aria-landmark';this.defer(()=>{this.__internals.root.addClass(cssBase)})}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties},role:'landmark',nativeTagsOfRole:[]}}}Oc.OcAriaRoleLandmark=OcAriaRoleLandmark;"use strict";class OcAriaRoleBanner extends OcAriaRoleLandmark{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRoleBanner.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties},role:'banner',nativeTagsOfRole:['header']}}}Oc.OcAriaRoleBanner=OcAriaRoleBanner;"use strict";class OcAriaRoleSearch extends OcAriaRoleLandmark{constructor(element,properties){super(element,properties);this.__role='search';this.__nativeTagsOfRole=['search']}defaults(){return OcAriaRoleSearch.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();const cssBase='oc-aria-search';this.defer(()=>{this.__internals.root.addClass(cssBase)})}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties},role:'search',nativeTagsOfRole:['search']}}}Oc.OcAriaRoleSearch=OcAriaRoleSearch;"use strict";class OcAriaRoleWidget extends OcAriaRoleRoletype{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRoleWidget.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}
1,role:'widget',nativeTagsOfRole:[]}}}Oc.OcAriaRoleWidget=OcAriaRoleWidget;"use strict";class OcAriaRoleCommand extends OcAriaRoleWidget{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRoleCommand.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties},role:'command',nativeTagsOfRole:[]}}}Oc.OcAriaRoleCommand=OcAriaRoleCommand;"use strict";class OcAriaRoleButton extends OcAriaRoleCommand{constructor(element,properties){super(element,properties)}defaults(){return OcAriaRoleButton.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,expanded:{get:this.__getExpanded.bind(this),set:this.__setExpanded.bind(this)},pressed:{get:this.__getPressed.bind(this),set:this.__setPressed.bind(this)}}}__getExpanded(){return this.properties.expanded}__setExpanded(value){const attributeHandler=this.__internals.attributeHandlers.expanded;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.expanded=normalizedValue;this.__handleRootNode()}__getPressed(){return this.properties.pressed}__setPressed(value){const attributeHandler=this.__internals.attributeHandlers.pressed;const normalizedValue=attributeHandler.handler.validateValue(value);this.properties.pressed=normalizedValue;this.__handleRootNode()}__generateAttributeHandlers(){const inheritedAttributeHandlers=super.__generateAttributeHandlers();const defaultProperties=this.defaults().properties;return{...inheritedAttributeHandlers,expanded:{handler:new OcAriaAttributeExpanded(),getter:this.__getExpanded.bind(this),setter:this.__setExpanded.bind(this),fallback:defaultProperties.expanded},pressed:{handler:new OcAriaAttributePressed(),getter:this.__getPressed.bind(this),setter:this.__setPressed.bind(this),fallback:defaultProperties.pressed}}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.expanded=this.__setExpanded;this.propertyHandlers.pressed=this.__setPressed}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,expanded:null,pressed:null},role:'button',nativeTagsOfRole:['button']}}}Oc.OcAriaRoleButton=OcAriaRoleButton;!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/animation",[],e):"object"==typeof exports?exports.animation=e():(t.mdc=t.mdc||{},t.mdc.animation=e())}(this,function(){return r={},i.m=n={10:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var a={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},u={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 c(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(c(t)&&e in a){var n=t.document.createElement("div"),r=a[e],i=r.standard,o=r.prefixed;return i in n.style?i:o}return e},e.getCorrectEventName=function(t,e){if(c(t)&&e in u){var n=t.document.createElement("div"),r=u[e],i=r.standard,o=r.prefixed;return r.cssProperty in n.style?i:o}return e}},135:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};
vendor: 4,560 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.util=void 0;var u=o(n(10));e.util=u,a(n(17),e),a(n(136),e),a(n(10),e)},136:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},17:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrame=void 0;var r=(i.prototype.request=function(e,n){var r=this;this.cancel(e);var t=requestAnimationFrame(function(t){r.rafIDs.delete(e),n(t)});this.rafIDs.set(e,t)},i.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},i.prototype.cancelAll=function(){var n=this;this.rafIDs.forEach(function(t,e){n.cancel(e)})},i.prototype.getQueue=function(){var n=[];return this.rafIDs.forEach(function(t,e){n.push(e)}),n},i);function i(){this.rafIDs=new Map}e.AnimationFrame=r}},i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=135);function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,r});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/banner",[],e):"object"==typeof exports?exports.banner=e():(t.mdc=t.mdc||{},t.mdc.banner=e())}(this,function(){return o={},i.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(i,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),i.prototype.init=function(){},i.prototype.destroy=function(){},i);function i(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,n){"use strict";var i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=r.next()).done;)s.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},r=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,i=t.length;n<o;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=n(0),s=(a.attachTo=function(t){return new a(t,new o.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:n,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(o)},a);function a(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=t,this.initialize.apply(this,r([],i(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},139:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};
vendor: 12,580 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),i(n(140),e),i(n(141),e),i(n(52),e),i(n(76),e)},140:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},141:function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCBanner=void 0;var r,s=n(1),a=n(21),c=n(2),u=n(52),l=n(76),p=(r=s.MDCComponent,i(f,r),f.attachTo=function(t){return new f(t)},f.prototype.initialize=function(t){var n=this;void 0===t&&(t=function(t,e){return new a.FocusTrap(t,e)}),this.contentEl=this.root.querySelector(u.selectors.CONTENT),this.textEl=this.root.querySelector(u.selectors.TEXT),this.primaryActionEl=this.root.querySelector(u.selectors.PRIMARY_ACTION),this.secondaryActionEl=this.root.querySelector(u.selectors.SECONDARY_ACTION),this.focusTrapFactory=t,this.handleContentClick=function(t){var e=t.target;c.closest(e,u.selectors.PRIMARY_ACTION)?n.foundation.handlePrimaryActionClick():c.closest(e,u.selectors.SECONDARY_ACTION)&&n.foundation.handleSecondaryActionClick()}},f.prototype.initialSyncWithDOM=function(){this.registerContentClickHandler(this.handleContentClick),this.focusTrap=this.focusTrapFactory(this.root,{initialFocusEl:this.primaryActionEl})},f.prototype.destroy=function(){r.prototype.destroy.call(this),this.deregisterContentClickHandler(this.handleContentClick)},f.prototype.layout=function(){this.foundation.layout()},f.prototype.open=function(){this.foundation.open()},f.prototype.close=function(t){this.foundation.close(t)},f.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){n.root.classList.add(t)},getContentHeight:function(){return n.contentEl.offsetHeight},notifyClosed:function(t){n.emit(u.events.CLOSED,{reason:t})},notifyClosing:function(t){n.emit(u.events.CLOSING,{reason:t})},notifyOpened:function(){n.emit(u.events.OPENED,{})},notifyOpening:function(){n.emit(u.events.OPENING,{})},notifyActionClicked:function(t){n.emit(u.events.ACTION_CLICKED,{action:t})},releaseFocus:function(){n.focusTrap.releaseFocus()},removeClass:function(t){n.root.classList.remove(t)},setStyleProperty:function(t,e){n.root.style.setProperty(t,e)},trapFocus:function(){n.focusTrap.trapFocus()}};return new l.MDCBannerFoundation(t)},Object.defineProperty(f.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!1,configurable:!0}),f.prototype.getText=function(){return this.textEl.textContent||""},f.prototype.setText=function(t){this.textEl.textContent=t},f.prototype.getPrimaryActionText=function(){return this.primaryActionEl.textContent||""},f.prototype.setPrimaryActionText=function(t){this.primaryActionEl.textContent=t},f.prototype.getSecondaryActionText=function(){return this.secondaryActionEl?this.secondaryActionEl.textContent||"":null},f.prototype.setSecondaryActionText=function(t){this.secondaryActionEl&&(this.secondaryActionEl.textContent=t)},f.prototype.registerContentClickHandler=function(t){this.contentEl.addEventListener("click",t)},f.prototype.deregisterContentClickHandler=function(t){this.contentEl.removeEventListener("click",t)},f);function f(){return null!==r&&r.apply(this,arguments)||this}e.MDCBanner=p},2:function(t,e,n){"use strict";function o(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(o(n,e))return n;n=n.parentElement}return null},e.matches=o,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var o=n.scrollWidth;return document.documentElement.removeChild(n),o}},21:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FocusTrap=void 0;var r="mdc-dom-focus-sentinel",o=(i.prototype.trapFocus=function(){var t=this.getFocusableElements(this.root);if(0===t.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(t,this.options.initialFocusEl)},i.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+r)).forEach(function(t){t.parentElement.removeChild(t)}),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},i.prototype.wrapTabFocus=function(e){var n=this,t=this.createSentinel(),o=this.createSentinel();t.addEventListener("focus",function(){var t=n.getFocusableElements(e);0<t.length&&t[t.length-1].focus()}),o.addEventListener("focus",function(){var t=n.getFocusableElements(e);0<t.length&&t[0].focus()}),e.insertBefore(t,e.children[0]),e.appendChild(o)},i.prototype.focusInitialElement=function(t,e){var n=0;e&&(n=Math.max(t.indexOf(e),0)),t[n].focus()},i.prototype.getFocusableElements=function(t){return[].slice.call(t.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(t){var e="true"===t.getAttribute("aria-disabled")||null!=t.getAttribute("disabled")||null!=t.getAttribute("hidden")||"true"===t.getAttribute("aria-hidden"),n=0<=t.tabIndex&&0<t.getBoundingClientRect().width&&!t.classList.contains(r)&&!e,o=!1;if(n){var i=getComputedStyle(t);o="none"===i.display||"hidden"===i.visibility}return n&&!o})},i.prototype.createSentinel=function(){var t=document.createElement("div");return t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden","true"),t.classList.add(r),t},i);function i(t,e){void 0===e&&(e={}),this.root=t,this.options=e,this.elFocusedBeforeTrapFocus=null}e.FocusTrap=o},52:function(t,e,n){"use strict";var o,i;Object.defineProperty(e,"__esModule",{value:!0}),e.Action=e.CloseReason=e.selectors=e.events=e.numbers=e.cssClasses=void 0,e.cssClasses={CLOSING:"mdc-banner--closing",OPEN:"mdc-banner--open",OPENING:"mdc-banner--opening"},e.numbers={BANNER_ANIMATION_CLOSE_TIME_MS:250,BANNER_ANIMATION_OPEN_TIME_MS:300},e.events={CLOSED:"MDCBanner:closed",CLOSING:"MDCBanner:closing",OPENED:"MDCBanner:opened",OPENING:"MDCBanner:opening",ACTION_CLICKED:"MDCBanner:actionClicked"},e.selectors={CONTENT:".mdc-banner__content",PRIMARY_ACTION:".mdc-banner__primary-action",SECONDARY_ACTION:".mdc-banner__secondary-action",TEXT:".mdc-banner__text"},(o=e.CloseReason||(e.CloseReason={}))[o.PRIMARY=0]="PRIMARY",o[o.SECONDARY=1]="SECONDARY",o[o.UNSPECIFIED=2]="UNSPECIFIED",(i=e.Action||(e.Action={}))[i.PRIMARY=0]="PRIMARY",i[i.SECONDARY=1]="SECONDARY",i[i.UNKNOWN=2]="UNKNOWN"},76:function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCBannerFoundation=void 0;var s,a=n(0),c=n(52),u=c.cssClasses.OPENING,l=c.cssClasses.OPEN,p=c.cssClasses.CLOSING,f=(s=a.MDCFoundation,i(d,s),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},getContentHeight:function(){return 0},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},notifyActionClicked:function(){},releaseFocus:function(){},removeClass:function(){},setStyleProperty:function(){},trapFocus:function(){}}},enumerable:!1,configurable:!0}),d.prototype.destroy=function(){cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0},d.prototype.open=function(){var t=this;this.isOpened=!0,this.adapter.notifyOpening(),this.adapter.removeClass(p),this.adapter.addClass(u);var e=this.adapter.getContentHeight();this.animationFrame=requestAnimationFrame(function(){t.adapter.addClass(l),t.adapter.setStyleProperty("height",e+"px"),t.animationTimer=setTimeout(function(){t.handleAnimationTimerEnd(),t.adapter.trapFocus(),t.adapter.notifyOpened()},c.numbers.BANNER_ANIMATION_OPEN_TIME_MS)})},d.prototype.close=function(t){var e=this;this.isOpened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.isOpened=!1,this.adapter.notifyClosing(t),this.adapter.addClass(p),this.adapter.setStyleProperty("height","0"),this.adapter.removeClass(l),this.adapter.removeClass(u),clearTimeout(this.animationTimer),this.animationTimer=setTimeout(function(){e.adapter.releaseFocus(),e.handleAnimationTimerEnd(),e.adapter.notifyClosed(t)},c.numbers.BANNER_ANIMATION_CLOSE_TIME_MS))},d.prototype.isOpen=function(){return this.isOpened},d.prototype.handlePrimaryActionClick=function(t){void 0===t&&(t=!1),t?this.adapter.notifyActionClicked(0):this.close(c.CloseReason.PRIMARY)},d.prototype.handleSecondaryActionClick=function(t){void 0===t&&(t=!1),t?this.adapter.notifyActionClicked(1):this.close(c.CloseReason.SECONDARY)},d.prototype.layout=function(){var t=this.adapter.getContentHeight();this.adapter.setStyleProperty("height",t+"px")},d.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(u),this.adapter.removeClass(p)},d);function d(t){var e=s.call(this,r(r({},d.defaultAdapter),t))||this;return e.isOpened=!1,e.animationFrame=0,e.animationTimer=0,e}e.MDCBannerFoundation=f}},i.c=o,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=139);function i(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,o});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/base",[],e):"object"==typeof exports?exports.base=e():(t.mdc=t.mdc||{},t.mdc.base=e())}(this,function(){return o={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),u=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)u.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return u},i=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n<o;n++,r++)t[r]=e[n];return t};
vendor: 5,083 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=n(0),u=(a.attachTo=function(t){return new a(t,new o.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:n,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(o)},a);function a(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=t,this.initialize.apply(this,i([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=u,e.default=u},142:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(1),e),r(n(0),e),r(n(143),e)},143:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})}},r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=142);function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/checkbox",[],e):"object"==typeof exports?exports.checkbox=e():(t.mdc=t.mdc||{},t.mdc.checkbox=e())}(this,function(){return i={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},o=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),a=(s.attachTo=function(t){return new s(t,new i.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},s);function s(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,o([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},10:function(t,e,n){"use strict";
vendor: 3,912 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var a={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},s={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 c(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(c(t)&&e in a){var n=t.document.createElement("div"),i=a[e],r=i.standard,o=i.prefixed;return r in n.style?r:o}return e},e.getCorrectEventName=function(t,e){if(c(t)&&e in s){var n=t.document.createElement("div"),i=s[e],r=i.standard,o=i.prefixed;return i.cssProperty in n.style?r:o}return e}},144:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(145),e),r(n(53),e),r(n(26),e),r(n(41),e)},145:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.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}},26:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={ANIM_END_LATCH_MS:250}},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof a&&!e)return a;
vendor: 4,196 bytes, line 1
1if(!(i&&"function"==typeof i.supports))return!1;var r=i.supports("--css-vars","yes"),o=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=r||o,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var i,r,o=e.x,a=e.y,s=o+n.left,c=a+n.top;if("touchstart"===t.type){var u=t;i=u.changedTouches[0].pageX-s,r=u.changedTouches[0].pageY-c}else{var d=t;i=d.pageX-s,r=d.pageY-c}return{x:i,y:r}}},4:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,c=n(0),u=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],f=[],h=(s=c.MDCFoundation,r(v,s),Object.defineProperty(v,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=v.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasses.FG_DEACTIVATION));var e=v.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasse
vendor: 4,420 bytes, line 1
1s.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var i=a(l),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=a(p),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(p),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,n=v.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,r=v.cssClasses,o=r.FG_DEACTIVATION,a=r.FG_ACTIVATION,s=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),l=d.startPoint,p=d.endPoint;c=l.x+"px, "+l.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,c),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?d.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect
vendor: 4,113 bytes, line 1
1()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,r=n.isActivated;!i&&r||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},u.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var n=Math.floor(e*v.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()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},v);function v(t){var e=s.call(this,o(o({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},41:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCCheckboxFoundation=void 0;var a,s=n(0),p=n(26),c=(a=s.MDCFoundation,r(f,a),Object.defineProperty(f,"cssClasse
1s",{get:function(){return p.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(f,"strings",{get:function(){return p.strings},enumerable:!1,configurable:!0}),Object.defineProperty(f,"numbers",{get:function(){return p.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(f,"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:!1,configurable:!0}),f.prototype.init=function(){this.currentCheckState=this.determineCheckState(),this.updateAriaChecked(),this.adapter.addClass(p.cssClasses.UPGRADED)},f.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer)},f.prototype.setDisabled=function(t){this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(p.cssClasses.DISABLED):this.adapter.removeClass(p.cssClasses.DISABLED)},f.prototype.handleAnimationEnd=function(){var t=this;this.enableAnimationEndHandler&&(clearTimeout(this.animEndLatchTimer),this.animEndLatchTimer=setTimeout(function(){t.adapter.removeClass(t.currentAnimationClass),t.enableAnimationEndHandler=!1},p.numbers.ANIM_END_LATCH_MS))},f.prototype.handleChange=function(){this.transitionCheckState()},f.prototype.transitionCheckState=function(){if(this.adapter.hasNativeControl()){var t=this.currentCheckState,e=this.determineCheckState();if(t!==e){this.updateAriaChecked();var n=p.strings.TRANSITION_STATE_UNCHECKED,i=p.cssClasses.SELECTED;e===n?this.adapter.removeClass(i):this.adapter.addClass(i),0<this.currentAnimationClass.length&&(clearTimeout(this.animEndLatchTimer),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass)),this.currentAnimationClass=this.getTransitionAnimationClass(t,e),this.currentCheckState=e,this.adapter.isAttachedToDOM()&&0<this.currentAnimationClass.length&&(this.adapter.addClass(this.currentAnimationClass),this.enableAnimationEndHandler=!0)}}},f.prototype.determineCheckState=function(){var t=p.strings.TRANSITION_STATE_INDETERMINATE,e=p.strings.TRANSITION_STATE_CHECKED,n=p.strings.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?t:this.adapter.isChecked()?e:n},f.prototype.getTransitionAnimationClass=function(t,e){var n=p.strings.TRANSITION_STATE_INIT,i=p.strings.TRANSITION_STATE_CHECKED,r=p.strings.TRANSITION_STATE_UNCHECKED,o=f.cssClasses,a=o.ANIM_UNCHECKED_CHECKED,s=o.ANIM_UNCHECKED_INDETERMINATE,c=o.ANIM_CHECKED_UNCHECKED,u=o.ANIM_CHECKED_INDETERMINATE,d=o.ANIM_INDETERMINATE_CHECKED,l=o.ANIM_INDETERMINATE_UNCHECKED;switch(t){case n:return e===r?"":e===i?d:l;case r:return e===i?a:s;case i:return e===r?c:u;default:return e===i?d:l}},f.prototype.updateAriaChecked=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(p.strings.ARIA_CHECKED_ATTR,p.strings.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(p.strings.ARIA_CHECKED_ATTR)},f);function f(t){var e=a.call(this,o(o({},f.defaultAdapter),t))||this;return e.currentCheckState=p.strings.TRANSITION_STATE_INIT,e.currentAnimationClass="",e.animEndLatchTimer=0,e.enableAnimationEndHandler=!1,e}e.MDCCheckboxFoundation=c,e.default=c},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},53:function(t,e,n){"use strict";var i,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},d=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};
vendor: 4,455 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCCheckbox=void 0;var a,s=n(10),c=n(1),l=n(5),p=n(2),f=n(6),h=n(4),v=n(26),m=n(41),y=["checked","indeterminate"],C=(a=c.MDCComponent,r(b,a),b.attachTo=function(t){return new b(t)},Object.defineProperty(b.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"checked",{get:function(){return this.getNativeControl().checked},set:function(t){this.getNativeControl().checked=t},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"indeterminate",{get:function(){return this.getNativeControl().indeterminate},set:function(t){this.getNativeControl().indeterminate=t},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"disabled",{get:function(){return this.getNativeControl().disabled},set:function(t){this.foundation.setDisabled(t)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return this.getNativeControl().value},set:function(t){this.getNativeControl().value=t},enumerable:!1,configurable:!0}),b.prototype.initialize=function(){var t=v.strings.DATA_INDETERMINATE_ATTR;this.getNativeControl().indeterminate="true"===this.getNativeControl().getAttribute(t),this.getNativeControl().removeAttribute(t)},b.prototype.initialSyncWithDOM=function(){var t=this;this.handleChange=function(){t.foundation.handleChange()},this.handleAnimationEnd=function(){t.foundation.handleAnimationEnd()},this.getNativeControl().addEventListener("change",this.handleChange),this.listen(s.getCorrectEventName(window,"animationend"),this.handleAnimationEnd),this.installPropertyChangeHooks()},b.prototype.destroy=function(){this.rippleSurface.destroy(),this.getNativeControl().removeEventListener("change",this.handleChange),this.unlisten(s.getCorrectEventName(window,"animationend"),this.handleAnimationEnd),this.uninstallPropertyChangeHooks(),a.prototype.destroy.call(this)},b.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},forceLayout:function(){return n.root.offsetWidth},hasNativeControl:function(){return!!n.getNativeControl()},isAttachedToDOM:function(){return Boolean(n.root.parentNode)},isChecked:function(){return n.checked},isIndeterminate:function(){return n.indeterminate},removeClass:function(t){n.root.classList.remove(t)},removeNativeControlAttr:function(t){n.getNativeControl().removeAttribute(t)},setNativeControlAttr:function(t,e){n.getNativeControl().setAttribute(t,e)},setNativeControlDisabled:function(t){n.getNativeControl().disabled=t}};return new m.MDCCheckboxFoundation(t)},b.prototype.createRipple=function(){var n=this,t=o(o({},f.MDCRipple.createAdapter(this)),{deregisterInteractionHandler:function(t,e){n.getNativeControl().removeEventListener(t,e,l.applyPassive())},isSurfaceActive:function(){return p.matches(n.getNativeControl(),":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,e){n.getNativeControl().addEventListener(t,e,l.applyPassive())}});return new f.MDCRipple(this.root,new h.MDCRippleFoundation(t))},b.prototype.installPropertyChangeHooks=function(){function t(t){var e=Object.getOwnPropertyDescriptor(a,t);if(!g(e))return{value:void 0};var n=e.get,i={configurable:e.configurable,enumerable:e.enumerable,get:n,set:function(t){e.set.call(o,t),r.foundation.handleChange()}};Object.defineProperty(o,t,i)}var e,n,r=this,o=this.getNativeControl(),a=Object.getPrototypeOf(o);try{for(var i=d(y),s=i.next();!s.done;s=i.next()){var c=t(s.value);if("object"===(void 0===c?"undefined":u(c)))return c.value}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},b.prototype.uninstallPropertyChangeHooks=function(){var e,t,n=this.getNativeControl(),i=Object.getPrototypeOf(n);try{for(var r=d(y),o=r.next();!o.done;o=r.next()){var a=o.value,s=Object.getOwnPropertyDescriptor(i,a);if(!g(s))return;Object.defineProperty(n,a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},b.prototype.getNativeControl=function(){var t=v.strings.NATIVE_CONTROL_SELECTOR,e=this.root.querySelector(t);if(!e)throw new Error("Checkbox component requires a "+t+" element");return e},b);function b(){var t=null!==a&&a.apply(this,arguments)||this;return t.rippleSurface=t.createRipple(),t}function g(t){return!!t&&"function"==typeof t.set}e.MDCCheckbox=C},6:function(t,e,n){"use strict";
vendor: 8,508 bytes, line 1
1var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var c,u=n(1),d=n(5),l=n(2),p=n(4),f=s(n(3)),h=(c=u.MDCComponent,r(v,c),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,d.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,d.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,d.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,d.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new p.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==c&&c.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=144);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/chips",[],e):"object"==typeof exports?exports.chips=e():(t.mdc=t.mdc||{},t.mdc.chips=e())}(this,function(){return n={},o.m=i=[function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var n=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=n,e.default=n},function(t,e,i){"use strict";var o=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s},r=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var n=i(0),s=(a.attachTo=function(t){return new a(t,new n.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,i){this.root.addEventListener(t,e,i)},a.prototype.unlisten=function(t,e,i){this.root.removeEventListener(t,e,i)},a.prototype.emit=function(t,e,i){var n;void 0===i&&(i=!1),"function"==typeof CustomEvent?n=new CustomEvent(t,{bubbles:i,detail:e}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,e),this.root.dispatchEvent(n)},a);function a(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];this.root=t,this.initialize.apply(this,r([],o(i))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},function(t,e,i){"use strict";function n(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var i=t;i;){if(n(i,e))return i;i=i.parentElement}return null},e.matches=n,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);var n=i.scrollWidth;return document.documentElement.removeChild(i),n}},function(t,e,i){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var i,n=t.CSS;if("boolean"==typeof s&&!e)return s;if(!(n&&"function"==typeof n.supports))return!1;var o=n.supports("--css-vars","yes"),r=n.supports("(--css-vars: yes
1)")&&n.supports("color","#00000000");return i=o||r,e||(s=i),i},e.getNormalizedEventCoords=function(t,e,i){if(!t)return{x:0,y:0};var n,o,r=e.x,s=e.y,a=r+i.left,c=s+i.top;if("touchstart"===t.type){var u=t;n=u.changedTouches[0].pageX-a,o=u.changedTouches[0].pageY-c}else{var p=t;n=p.pageX-a,o=p.pageY-c}return{x:n,y:o}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var a,c=i(0),u=i(7),p=i(3),l=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup","contextmenu"],h=[],f=(a=c.MDCFoundation,o(C,a),Object.defineProperty(C,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(C,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(C,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(C,"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:!1,configurable:!0}),C.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var i=C.cssClasses,n=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(n),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())})}},C.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(C.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(C.cssClasses.FG_DEACTIVATION));var e=C.cssClasses,i=e.ROOT,n=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(i),t.adapter.removeClass(n),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},C.prototype.activate=function(t){this.activateImpl(t)},C.prototype.deactivate=function(){this.deactivateImpl()},C.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},C.prototype.setUnbounded=function(t){var e=C.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},C.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(C.cssClasses.BG_FOCUSED)})},C.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(C.cssClasse
vendor: 18,564 bytes, line 1
1s.BG_FOCUSED)})},C.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},C.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},C.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var n=s(l),o=n.next();!o.done;o=n.next()){var r=o.value;this.adapter.registerInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},C.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var n=s(d),o=n.next();!o.done;o=n.next()){var r=o.value;this.adapter.registerDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},C.prototype.deregisterRootHandlers=function(){var e,t;try{for(var i=s(l),n=i.next();!n.done;n=i.next()){var o=n.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},C.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=s(d),n=i.next();!n.done;n=i.next()){var o=n.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},C.prototype.removeCssVars=function(){var e=this,i=C.strings;Object.keys(i).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(i[t],null)})},C.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var n=this.previousActivationEvent;n&&void 0!==t&&n.type!==t.type||(i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<h.length&&h.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(h.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){h=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},C.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},C.prototype.animateActivation=function(){var t=this,e=C.strings,i=e.VAR_FG_TRANSLATE_START,n=e.VAR_FG_TRANSLATE_END,o=C.cssClasses,r=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,a=C.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var p=this.getFgTranslationCoordinates(),l=p.startPoint,d=p.endPoint;c=l.x+"px, "+l.y+"px",u=d.x+"px, "+d.y+"px"}this.adapter.updateCssVariable(i,c),this.adapter.updateCssVariable(n,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(r),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},a)},C.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?p.getNormalizedEventCoords(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},C.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=C.cssClasses.FG_DEACTIVATION,i=this.activationState,n=i.hasDeactivationUXRun,o=i.isActivated;!n&&o||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},u.numbers.FG_DEACTIVATION_MS))},C.prototype.rmBoundedActivationClasses=function(){var t=C.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},C.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},C.numbers.TAP_DELAY_MS)},C.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=r({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(i)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()}))}},C.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},C.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+C.numbers.PADDING;var i=Math.floor(e*C.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},C.prototype.updateLayoutCssVars=function(){var t=C.strings,e=t.VAR_FG_SIZE,i=t.VAR_LEFT,n=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(n,this.unboundedCoords.top+"px"))},C);function C(t){var e=a.call(this,r(r({},C.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=f,e.default=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var i={get passive(){return!(e=!0)}},n=function(){};t.document.addEventListener("test",n,i),t.document.removeEventListener("test",n,i)}catch(t){e=!1}return e}(t)&&{passive:!0}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&r(e,t,i);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var c,u=i(1),p=i(5),l=i(2),d=i(4),h=a(i(3)),f=(c=u.MDCComponent,o(C,c),C.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var i=new C(t);return void 0!==e.isUnbounded&&(i.unbounded=e.isUnbounded),i},C.createAdapter=function(i){return{addClass:function(t){return i.root.classList.add(t)},browserSupportsCssVars:function(){return h.supportsCssVariables(window)},computeBoundingRect:function(){return i.root.getBoundingClientRect()},containsEventTarget:function(t){return i.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,p.applyPassive())},deregisterInteractionHandler:function(t,e){return i.root.removeEventListener(t,e,p.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(i.root,":active")},isSurfaceDisabled:function(){return Boolean(i.disabled)},isUnbounded:function(){return Boolean(i.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,p.applyPassive())},registerInteractionHandler:function(t,e){return i.root.addEventListener(t,e,p.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return i.root.classList.remove(t)},updateCssVariable:function(t,e){return i.root.style.setProperty(t,e)}}},Object.defineProperty(C.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),C.prototype.activate=function(){this.foundation.activate()},C.prototype.deactivate=function(){this.foundation.deactivate()},C.prototype.layout=function(){this.foundation.layout()},C.prototype.getDefaultFoundation=function(){return new d.MDCRippleFoundation(C.createAdapter(this))},C.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},C.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},C);function C(){var t=null!==c&&c.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isNavigationEvent=n.normalizeKey=n.KEY=void 0,n.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var o=new Set;o.add(n.KEY.BACKSPACE),o.add(n.KEY.ENTER),o.add(n.KEY.SPACEBAR),o.add(n.KEY.PAGE_UP),o.add(n.KEY.PAGE_DOWN),o.add(n.KEY.END),o.add(n.KEY.HOME),o.add(n.KEY.ARROW_LEFT),o.add(n.KEY.ARROW_UP),o.add(n.KEY.ARROW_RIGHT),o.add(n.KEY.ARROW_DOWN),o.add(n.KEY.DELETE),o.add(n.KEY.ESCAPE),o.add(n.KEY.TAB);var i=8,r=13,s=32,a=33,c=34,u=35,p=36,l=37,d=38,h=39,f=40,C=46,y=27,A=9,v=new Map;v.set(i,n.KEY.BACKSPACE),v.set(r,n.KEY.ENTER),v.set(s,n.KEY.SPACEBAR),v.set(a,n.KEY.PAGE_UP),v.set(c,n.KEY.PAGE_DOWN),v.set(u,n.KEY.END),v.set(p,n.KEY.HOME),v.set(l,n.KEY.ARROW_LEFT),v.set(d,n.KEY.ARROW_UP),v.set(h,n.KEY.ARROW_RIGHT),v.set(f,n.KEY.ARROW_DOWN),v.set(C,n.KEY.DELETE),v.set(y,n.KEY.ESCAPE),v.set(A,n.KEY.TAB);var E=new Set;function g(t){var e=t.key;if(o.has(e))return e;var i=v.get(t.keyCode);return i||n.KEY.UNKNOWN}E.add(n.KEY.PAGE_UP),E.add(n.KEY.PAGE_DOWN),E.add(n.KEY.END),E.add(n.KEY.HOME),E.add(n.KEY.ARROW_LEFT),E.add(n.KEY.ARROW_UP),E.add(n.KEY.ARROW_RIGHT),E.add(n.KEY.ARROW_DOWN),n.normalizeKey=g,n.isNavigationEvent=function(t){return E.has(g(t))}},,,,,,,,,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrame=void 0;var n=(o.prototype.request=function(e,i){var n=this;this.cancel(e);var t=requestAnimationFrame(function(t){n.rafIDs.delete(e),i(t)});this.rafIDs.set(e,t)},o.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},o.prototype.cancelAll=function(){var i=this;this.rafIDs.forEach(function(t,e){i.cancel(e)})},o.prototype.getQueue=function(){var i=[];return this.rafIDs.forEach(function(t,e){i.push(e)}),i},o);function o(){this.rafIDs=new Map}e.AnimationFrame=n},,function(t,e,i){"use strict";var n,o,r,s,a,c;Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipActionAttributes=e.MDCChipActionFocusBehavior=e.MDCChipActionEvents=e.MDCChipActionType=e.MDCChipActionInteractionTrigger=e.MDCChipActionCssClasses=void 0,(n=e.MDCChipActionCssClasses||(e.MDCChipActionCssClasses={})).PRIMARY_ACTION="mdc-evolution-chip__action--primary",n.TRAILING_ACTION="mdc-evolution-chip__action--trailing",n.CHIP_ROOT="mdc-evolution-chip",(o=e.MDCChipActionInteractionTrigger||(e.MDCChipActionInteractionTrigger={}))[o.UNSPECIFIED=0]="UNSPECIFIED",o[o.CLICK=1]="CLICK",o[o.BACKSPACE_KEY=2]="BACKSPACE_KEY",o[o.DELETE_KEY=3]="DELETE_KEY",o[o.SPACEBAR_KEY=4]="SPACEBAR_KEY",o[o.ENTER_KEY=5]="ENTER_KEY",(r=e.MDCChipActionType||(e.MDCChipActionType={}))[r.UNSPECIFIED=0]="UNSPECIFIED",r[r.PRIMARY=1]="PRIMARY",r[r.TRAILING=2]="TRAILING",(s=e.MDCChipActionEvents||(e.MDCChipActionEvents={})).INTERACTION="MDCChipAction:interaction",s.NAVIGATION="MDCChipAction:navigation",(a=e.MDCChipActionFocusBehavior||(e.MDCChipActionFocusBehavior={}))[a.FOCUSABLE=0]="FOCUSABLE",a[a.FOCUSABLE_AND_FOCUSED=1]="FOCUSABLE_AND_FOCUSED",a[a.NOT_FOCUSABLE=2]="NOT_FOCUSABLE",(c=e.MDCChipActionAttributes||(e.MDCChipActionAttributes={})).ARIA_DISABLED="aria-disabled",c.ARIA_HIDDEN="aria-hidden",c.ARIA_SELECTED="aria-selected",c.DATA_DELETABLE="data-mdc-deletable",c.DISABLED="disabled",c.ROLE="role",c.TAB_INDEX="tabindex"},,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n,o,r,s;Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipAnimation=e.MDCChipAttributes=e.MDCChipEvents=e.MDCChipCssClasses=void 0,(n=e.MDCChipCssClasses||(e.MDCChipCssClasses={})).SELECTING="mdc-evolution-chip--selecting",n.DESELECTING="mdc-evolution-chip--deselecting",n.SELECTING_WITH_PRIMARY_ICON="mdc-evolution-chip--selecting-with-primary-icon",n.DESELECTING_WITH_PRIMARY_ICON="mdc-evolution-chip--deselecting-with-primary-icon",n.DISABLED="mdc-evolution-chip--disabled",n.ENTER="mdc-evolution-chip--enter",n.EXIT="mdc-evolution-chip--exit",n.SELECTED="mdc-evolution-chip--selected",n.HIDDEN="mdc-evolution-chip--hidden",n.WITH_PRIMARY_ICON="mdc-evolution-chip--with-primary-icon",(o=e.MDCChipEvents||(e.MDCChipEvents={})).INTERACTION="MDCChip:interaction",o.NAVIGATION="MDCChip:navigation",o.ANIMATION="MDCChip:animation",(r=e.MDCChipAttributes||(e.MDCChipAttributes={})).DATA_REMOVED_ANNOUNCEMENT="data-mdc-removed-announcement",r.DATA_ADDED_ANNOUNCEMENT="data-mdc-added-announcement",(s=e.MDCChipAnimation||(e.MDCChipAnimation={})).ENTER="mdc-evolution-chip-enter",s.EXIT="mdc-evolution-chip-exit"},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.InteractionTrigger=void 0,(n=e.InteractionTrigger||(e.InteractionTrigger={}))[n.UNSPECIFIED=0]="UNSPECIFIED",n[n.CLICK=1]="CLICK",n[n.BACKSPACE_KEY=2]="BACKSPACE_KEY",n[n.DELETE_KEY=3]="DELETE_KEY",n[n.SPACEBAR_KEY=4]="SPACEBAR_KEY",n[n.ENTER_KEY=5]="ENTER_KEY",e.strings={ARIA_HIDDEN:"aria-hidden",INTERACTION_EVENT:"MDCChipTrailingAction:interaction",NAVIGATION_EVENT:"MDCChipTrailingAction:navigation",TAB_INDEX:"tabindex"}},function(t,e,i){"use strict";var n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.jumpChipKeys=e.navigationKeys=e.cssClasses=e.strings=e.EventSource=e.Direction=void 0,(n=e.Direction||(e.Direction={})).LEFT="left",n.RIGHT="right",(o=e.EventSource||(e.EventSource={})).PRIMARY="primary",o.TRAILING="trailing",o.NONE="none",e.strings={ADDED_ANNOUNCEMENT_ATTRIBUTE:"data-mdc-chip-added-announcement",ARIA_CHECKED:"aria-checked",ARROW_DOWN_KEY:"ArrowDown",ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",BACKSPACE_KEY:"Backspace",CHECKMARK_SELECTOR:".mdc-chip__checkmark",DELETE_KEY:"Delete",END_KEY:"End",ENTER_KEY:"Enter",ENTRY_ANIMATION_NAME:"mdc-chip-entry",HOME_KEY:"Home",IE_ARROW_DOWN_KEY:"Down",IE_ARROW_LEFT_KEY:"Left",IE_ARROW_RIGHT_KEY:"Right",IE_ARROW_UP_KEY:"Up",IE_DELETE_KEY:"Del",INTERACTION_EVENT:"MDCChip:interaction",LEADING_ICON_SELECTOR:".mdc-chip__icon--leading",NAVIGATION_EVENT:"MDCChip:navigation",PRIMARY_ACTION_SELECTOR:".mdc-chip__primary-action",REMOVED_ANNOUNCEMENT_ATTRIBUTE:"data-mdc-chip-removed-announcement",REMOVAL_EVENT:"MDCChip:removal",SELECTION_EVENT:"MDCChip:selection",SPACEBAR_KEY:" ",TAB_INDEX:"tabindex",TRAILING_ACTION_SELECTOR:".mdc-chip-trailing-action",TRAILING_ICON_INTERACTION_EVENT:"MDCChip:trailingIconInteraction",TRAILING_ICON_SELECTOR:".mdc-chip__icon--trailing"}
1,e.cssClasses={CHECKMARK:"mdc-chip__checkmark",CHIP_EXIT:"mdc-chip--exit",DELETABLE:"mdc-chip--deletable",EDITABLE:"mdc-chip--editable",EDITING:"mdc-chip--editing",HIDDEN_LEADING_ICON:"mdc-chip__icon--leading-hidden",LEADING_ICON:"mdc-chip__icon--leading",PRIMARY_ACTION:"mdc-chip__primary-action",PRIMARY_ACTION_FOCUSED:"mdc-chip--primary-action-focused",SELECTED:"mdc-chip--selected",TEXT:"mdc-chip__text",TRAILING_ACTION:"mdc-chip__trailing-action",TRAILING_ICON:"mdc-chip__icon--trailing"},e.navigationKeys=new Set,e.navigationKeys.add(e.strings.ARROW_LEFT_KEY),e.navigationKeys.add(e.strings.ARROW_RIGHT_KEY),e.navigationKeys.add(e.strings.ARROW_DOWN_KEY),e.navigationKeys.add(e.strings.ARROW_UP_KEY),e.navigationKeys.add(e.strings.END_KEY),e.navigationKeys.add(e.strings.HOME_KEY),e.navigationKeys.add(e.strings.IE_ARROW_LEFT_KEY),e.navigationKeys.add(e.strings.IE_ARROW_RIGHT_KEY),e.navigationKeys.add(e.strings.IE_ARROW_DOWN_KEY),e.navigationKeys.add(e.strings.IE_ARROW_UP_KEY),e.jumpChipKeys=new Set,e.jumpChipKeys.add(e.strings.ARROW_UP_KEY),e.jumpChipKeys.add(e.strings.ARROW_DOWN_KEY),e.jumpChipKeys.add(e.strings.HOME_KEY),e.jumpChipKeys.add(e.strings.END_KEY),e.jumpChipKeys.add(e.strings.IE_ARROW_UP_KEY),e.jumpChipKeys.add(e.strings.IE_ARROW_DOWN_KEY)},,,,,,,,,,function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipActionFoundation=void 0;var s=i(0),a=i(8),c=i(19),u=new Map;u.set(a.KEY.SPACEBAR,c.MDCChipActionInteractionTrigger.SPACEBAR_KEY),u.set(a.KEY.ENTER,c.MDCChipActionInteractionTrigger.ENTER_KEY),u.set(a.KEY.DELETE,c.MDCChipActionInteractionTrigger.DELETE_KEY),u.set(a.KEY.BACKSPACE,c.MDCChipActionInteractionTrigger.BACKSPACE_KEY);var p,l=(p=s.MDCFoundation,o(d,p),Object.defineProperty(d,"defaultAdapter",{get:function(){return{emitEvent:function(){},focus:function(){},getAttribute:function(){return null},getElementID:function(){return""},removeAttribute:function(){},setAttribute:function(){}}},enumerable:!1,configurable:!0}),d.prototype.handleClick=function(){this.isDisabled()||this.emitInteraction(c.MDCChipActionInteractionTrigger.CLICK)},d.prototype.handleKeydown=function(t){var e=a.normalizeKey(t);return this.shouldNotifyInteractionFromKey(e)?(t.preventDefault(),void this.emitInteraction(this.getTriggerFromKey(e))):a.isNavigationEvent(t)?(t.preventDefault(),void this.emitNavigation(e)):void 0},d.prototype.setDisabled=function(t){this.isSelectable()?this.adapter.setAttribute(c.MDCChipActionAttributes.ARIA_DISABLED,""+t):t?this.adapter.setAttribute(c.MDCChipActionAttributes.DISABLED,"true"):this.adapter.removeAttribute(c.MDCChipActionAttributes.DISABLED)},d.prototype.isDisabled=function(){return"true"===this.adapter.getAttribute(c.MDCChipActionAttributes.ARIA_DISABLED)||null!==this.adapter.getAttribute(c.MDCChipActionAttributes.DISABLED)},d.prototype.setFocus=function(t){if(this.isFocusable())return t===c.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED?(this.adapter.setAttribute(c.MDCChipActionAttributes.TAB_INDEX,"0"),void this.adapter.focus()):void(t!==c.MDCChipActionFocusBehavior.FOCUSABLE?t!==c.MDCChipActionFocusBehavior.NOT_FOCUSABLE||this.adapter.setAttribute(c.MDCChipActionAttributes.TAB_INDEX,"-1"):this.adapter.setAttribute(c.MDCChipActionAttributes.TAB_INDEX,"0"))},d.prototype.isFocusable=function(){return!this.isDisabled()&&"true"!==this.adapter.getAttribute(c.MDCChipActionAttributes.ARIA_HIDDEN)},d.prototype.setSelected=function(t){this.isSelectable()&&this.adapter.setAttribute(c.MDCChipActionAttributes.ARIA_SELECTED,""+t)},d.prototype.isSelected=function(){return"true"===this.adapter.getAttribute(c.MDCChipActionAttributes.ARIA_SELECTED)},d.prototype.emitInteraction=function(t){this.adapter.emitEvent(c.MDCChipActionEvents.INTERACTION,{actionID:this.adapter.getElementID(),source:this.actionType(),trigger:t})},d.prototype.emitNavigation=function(t){this.adapter.emitEvent(c.MDCChipActionEvents.NAVIGATION,{source:this.actionType(),key:t})},d.prototype.shouldNotifyInteractionFromKey=function(t){var e=t===a.KEY.ENTER||t===a.KEY.SPACEBAR,i=t===a.KEY.BACKSPACE||t===a.KEY.DELETE;return e||!(!i||!this.shouldEmitInteractionOnRemoveKey())},d.prototype.getTriggerFromKey=function(t){var e=u.get(t);return e||c.MDCChipActionInteractionTrigger.UNSPECIFIED},d);function d(t){return p.call(this,r(r({},d.defaultAdapter),t))||this}e.MDCChipActionFoundation=l,e.default=l}
vendor: 18,467 bytes, line 1
1,function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSetEvents=e.MDCChipSetCssClasses=e.MDCChipSetAttributes=void 0,(e.MDCChipSetAttributes||(e.MDCChipSetAttributes={})).ARIA_MULTISELECTABLE="aria-multiselectable",(e.MDCChipSetCssClasses||(e.MDCChipSetCssClasses={})).CHIP="mdc-evolution-chip",(n=e.MDCChipSetEvents||(e.MDCChipSetEvents={})).INTERACTION="MDCChipSet:interaction",n.REMOVAL="MDCChipSet:removal",n.SELECTION="MDCChipSet:selection"},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipFoundation=void 0;var s,a,c=i(0),u=i(44),p={bottom:0,height:0,left:0,right:0,top:0,width:0};(a=s=s||{})[a.SHOULD_FOCUS=0]="SHOULD_FOCUS",a[a.SHOULD_NOT_FOCUS=1]="SHOULD_NOT_FOCUS";var l,d=(l=c.MDCFoundation,o(h,l),Object.defineProperty(h,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{addClass:function(){},addClassToLeadingIcon:function(){},eventTargetHasClass:function(){return!1},focusPrimaryAction:function(){},focusTrailingAction:function(){},getAttribute:function(){return null},getCheckmarkBoundingClientRect:function(){return p},getComputedStyleValue:function(){return""},getRootBoundingClientRect:function(){return p},hasClass:function(){return!1},hasLeadingIcon:function(){return!1},isRTL:function(){return!1},isTrailingActionNavigable:function(){return!1},notifyEditFinish:function(){},notifyEditStart:function(){},notifyInteraction:function(){},notifyNavigation:function(){},notifyRemoval:function(){},notifySelection:function(){},notifyTrailingIconInteraction:function(){},removeClass:function(){},removeClassFromLeadingIcon:function(){},removeTrailingActionFocus:function(){},setPrimaryActionAttr:function(){},setStyleProperty:function(){}}},enumerable:!1,configurable:!0}),h.prototype.isSelected=function(){return this.adapter.hasClass(u.cssClasses.SELECTED)},h.prototype.isEditable=function(){return this.adapter.hasClass(u.cssClasses.EDITABLE)},h.prototype.isEditing=function(){return this.adapter.hasClass(u.cssClasses.EDITING)},h.prototype.setSelected=function(t){this.setSelectedImpl(t),this.notifySelection(t)},h.prototype.setSelectedFromChipSet=function(t,e){this.setSelectedImpl(t),e&&this.notifyIgnoredSelection(t)},h.prototype.getShouldRemoveOnTrailingIconClick=function(){return this.shouldRemoveOnTrailingIconClick},h.prototype.setShouldRemoveOnTrailingIconClick=function(t){this.shouldRemoveOnTrailingIconClick=t},h.prototype.setShouldFocusPrimaryActionOnClick=function(t){this.shouldFocusPrimaryActionOnClick=t},h.prototype.getDimensions=function(){function t(){return e.adapter.getRootBoundingClientRect()}var e=this;if(!this.adapter.hasLeadingIcon()){var i=e.adapter.getCheckmarkBoundingClientRect();if(i){var n=t();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width+i.height}}}return t()},h.prototype.beginExit=function(){this.adapter.addClass(u.cssClasses.CHIP_EXIT)},h.prototype.handleClick=function(){this.adapter.notifyInteraction(),this.setPrimaryActionFocusable(this.getFocusBehavior())},h.prototype.handleDoubleClick=function(){this.isEditable()&&this.startEditing()},h.prototype.handleTransitionEnd=function(t){var e=this,i=this.adapter.eventTargetHasClass(t.target,u.cssClasses.CHIP_EXIT),n="width"===t.propertyName,o="opacity"===t.propertyName;if(i&&o){var r=this.adapter.getComputedStyleValue("width");requestAnimationFrame(function(){e.adapter.setStyleProperty("width",r),e.adapter.setStyleProperty("padding","0"),e.adapter.setStyleProperty("margin","0"),requestAnimationFrame(function(){e.adapter.setStyleProperty("width","0")})})}else{if(i&&n){this.removeFocus();var s=this.adapter.getAttribute(u.strings.REMOVED_ANNOUNCEMENT_ATTRIBUTE);this.adapter.notifyRemoval(s)}if(o){var a=this.adapter.eventTargetHasClass(t.target,u.cssClasses.LEADING_ICON)&&this.adapter.hasClass(u.cssClasses.SELECTED),c=this.adapter.eventTargetHasClass(t.target,u.cssClasses.CHECKMARK)&&!this.adapter.hasClass(u.cssClasses.SELECTED);a?this.adapter.addClassToLeadingIcon(u.cssClasses.HIDDEN_LEADING_ICON):c&&this.adapter.removeClassFromLeadingIcon(u.cssClasses.HIDDEN_LEADING_ICON)}}},h.prototype.handleFocusIn=function(t){this.eventFromPrimaryAction(t)&&this.adapter.addClass(u.cssClasses.PRIMARY_ACTION_FOCUSED)},h.prototype.handleFocusOut=function(t){this.eventFromPrimaryAction(t)&&(this.isEditing()&&this.finishEditing(),this.adapter.removeClass(u.cssClasses.PRIMARY_ACTION_FOCUSED))},h.prototype.handleTrailingActionInteraction=function(){this.adapter.notifyTrailingIconInteraction(),this.removeChip()},h.prototype.handleKeydown=function(t){if(!this.isEditing())return this.isEditable()&&this.shouldStartEditing(t)&&(t.preventDefault(),this.startEditing()),this.shouldNotifyInteraction(t)?(this.adapter.notifyInteraction(),void this.setPrimaryActionFocusable(this.getFocusBehavior())):this.isDeleteAction(t)?(t.preventDefault(),void this.removeChip()):void(u.navigationKeys.has(t.key)&&(t.preventDefault(),this.focusNextAction(t.key,u.EventSource.PRIMARY)));this.shouldFinishEditing(t)&&(t.preventDefault(),this.finishEditing())},h.prototype.handleTrailingActionNavigation=function(t){this.focusNextAction(t.detail.key,u.EventSource.TRAILING)},h.prototype.removeFocus=function(){this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX,"-1"),this.adapter.removeTrailingActionFocus()},h.prototype.focusPrimaryAction=function(){this.setPrimaryActionFocusable(s.SHOULD_FOCUS)},h.prototype.focusTrailingAction=function(){if(this.adapter.isTrailingActionNavigable())return this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX,"-1"),void this.adapter.focusTrailingAction();this.focusPrimaryAction()},h.prototype.setPrimaryActionFocusable=function(t){this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX,"0"),t===s.SHOULD_FOCUS&&this.adapter.focusPrimaryAction(),this.adapter.removeTrailingActionFocus()},h.prototype.getFocusBehavior=function(){return this.shouldFocusPrimaryActionOnClick?s.SHOULD_FOCUS:s.SHOULD_NOT_FOCUS},h.prototype.focusNextAction=function(t,e){var i=this.adapter.isTrailingActionNavigable(),n=this.getDirection(t);!u.jumpChipKeys.has(t)&&i?e!==u.EventSource.PRIMARY||n!==u.Direction.RIGHT?e!==u.EventSource.TRAILING||n!==u.Direction.LEFT?this.adapter.notifyNavigation(t,u.EventSource.NONE):this.focusPrimaryAction():this.focusTrailingAction():this.adapter.notifyNavigation(t,e)},h.prototype.getDirection=function(t){var e=this.adapter.isRTL(),i=t===u.strings.ARROW_LEFT_KEY||t===u.strings.IE_ARROW_LEFT_KEY,n=t===u.strings.ARROW_RIGHT_KEY||t===u.strings.IE_ARROW_RIGHT_KEY;return!e&&i||e&&n?u.Direction.LEFT:u.Direction.RIGHT},h.prototype.removeChip=function(){this.shouldRemoveOnTrailingIconClick&&this.beginExit()},h.prototype.shouldStartEditing=function(t){return this.eventFromPrimaryAction(t)&&t.key===u.strings.ENTER_KEY},h.prototype.shouldFinishEditing=function(t){return t.key===u.strings.ENTER_KEY},h.prototype.shouldNotifyInteraction=function(t){return t.key===u.strings.ENTER_KEY||t.key===u.strings.SPACEBAR_KEY},h.prototype.isDeleteAction=function(t){return this.adapter.hasClass(u.cssClasses.DELETABLE)&&(t.key===u.strings.BACKSPACE_KEY||t.key===u.strings.DELETE_KEY||t.key===u.strings.IE_DELETE_KEY)},h.prototype.setSelectedImpl=function(t){t?(this.adapter.addClass(u.cssClasses.SELECTED),this.adapter.setPrimaryActionAttr(u.strings.ARIA_CHECKED,"true")):(this.adapter.removeClass(u.cssClasses.SELECTED),this.adapter.setPrimaryActionAttr(u.strings.ARIA_CHECKED,"false"))},h.prototype.notifySelection=function(t){this.adapter.notifySelection(t,!1)},h.prototype.notifyIgnoredSelection=function(t){this.adapter.notifySelection(t,!0)},h.prototype.eventFromPrimaryAction=function(t){return this.adapter.eventTargetHasClass(t.target,u.cssClasses.PRIMARY_ACTION)},h.prototype.startEditing=function(){this.adapter.addClass(u.cssClasses.EDITING),this.adapter.notifyEditStart()},h.prototype.finishEditing=function(){this.adapter.removeClass(u.cssClasses.EDITING),this.adapter.notifyEditFinish()},h);function h(t){var e=l.call(this,r(r({},h.defaultAdapter),t))||this;return e.shouldRemoveOnTrailingIconClick=!0,e.shouldFocusPrimaryActionOnClick=!0,e}e.MDCChipFoundation=d,e.default=d},,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipAction=void 0;var s,a=i(1),c=i(2),u=i(6),p=i(4),l=i(149),d=i(19),h=i(78),f=i(79),C=(s=a.MDCComponent,o(y,s),y.attachTo=function(t){return new y(t)},Object.defineProperty(y.prototype,"ripple",{get:function(){return this.rippleInstance},enumerable:!1,configurable:!0}),y.prototype.initialize=function(t){var e=this;void 0===t&&(t=function(t,e){return new u.MDCRipple(t,e)});var i=r(r({},u.MDCRipple.createAdapter(this)),{computeBoundingRect:function(){return e.computeRippleClientRect()}});this.rippleInstance=t(this.root,new p.MDCRippleFoundation(i))},y.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown)},y.prototype.destroy=function(){this.ripple.destroy(),this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),s.prototype.destroy.call(this)},y.prototype.getDefaultFoundation=function(){var i=this,t={emitEvent:function(t,e){i.emit(t,e,!0)},focus:function(){i.rootHTML.focus()},getAttribute:function(t){return i.root.getAttribute(t)},getElementID:function(){return i.root.id},removeAttribute:function(t){i.root.removeAttribute(t)},setAttribute:function(t,e){i.root.setAttribute(t,e)}};return this.root.classList.contains(d.MDCChipActionCssClasses.TRAILING_ACTION)?new f.MDCChipTrailingActionFoundation(t):new h.MDCChipPrimaryActionFoundation(t)},y.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},y.prototype.isDisabled=function(){return this.foundation.isDisabled()},y.prototype.setFocus=function(t){this.foundation.setFocus(t)},y.prototype.isFocusable=function(){return this.foundation.isFocusable()},y.prototype.setSelected=function(t){this.foundation.setSelected(t)},y.prototype.isSelected=function(){return this.foundation.isSelected()},y.prototype.isSelectable=function(){return this.foundation.isSelectable()},y.prototype.actionType=function(){return this.foundation.actionType()},y.prototype.computeRippleClientRect=function(){if(this.root.classList.contains(d.MDCChipActionCssClasses.PRIMARY_ACTION)){var t=c.closest(this.root,"."+d.MDCChipActionCssClasses.CHIP_ROOT);if(!t)return this.root.getBoundingClientRect();var e=window.getComputedStyle(t).getPropertyValue(l.GRAPHIC_SELECTED_WIDTH_STYLE_PROP);return l.computePrimaryActionRippleClientRect(t.getBoundingClientRect(),e)}return this.root.getBoundingClientRect()},y);function y(){var t=null!==s&&s.apply(this,arguments)||this;return t.rootHTML=t.root,t}e.MDCChipAction=C},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipPrimaryActionFoundation=void 0;var r,s=i(19),a=i(54),c=(r=a.MDCChipActionFoundation,o(u,r),u.prototype.isSelectable=function(){return"option"===this.adapter.getAttribute(s.MDCChipActionAttributes.ROLE)},u.prototype.actionType=function(){return s.MDCChipActionType.PRIMARY},u.prototype.shouldEmitInteractionOnRemoveKey=function(){return"true"===this.adapter.getAttribute(s.MDCChipActionAttributes.DATA_DELETABLE)},u);function u(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipPrimaryActionFoundation=c,e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipTrailingActionFoundation=void 0;var r,s=i(19),a=i(54),c=(r=a.MDCChipActionFoundation,o(u,r),u.prototype.isSelectable=function(){return!1},u.prototype.actionType=function(){return s.MDCChipActionType.TRAILING},u.prototype.shouldEmitInteractionOnRemoveKey=function(){return!0},u);function u(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipTrailingActionFoundation=c,e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChip=void 0;var r,s=i(1),u=i(77),p=i(19),l=i(81),d=(r=s.MDCComponent,o(h,r),h.attachTo=function(t){return new h(t)},h.prototype.initialize=function(t){void 0===t&&(t=function(t){return new u.MDCChipAction(t)}),this.actions=new Map;for(var e=this.root.querySelectorAll(".mdc-evolution-chip__action"),i=0;i<e.length;i++){var n=t(e[i]);this.actions.set(n.actionType(),n)}},h.prototype.initialSyncWithDOM=function(){var e=this;this.handleActionInteraction=function(t){e.foundation.handleActionInteraction(t)},this.handleActionNavigation=function(t){e.foundation.handleActionNavigation(t)},this.listen(p.MDCChipActionEvents.INTERACTION,this.handleActionInteraction),this.listen(p.MDCChipActionEvents.NAVIGATION,this.handleActionNavigation)},h.prototype.destroy=function(){this.unlisten(p.MDCChipActionEvents.INTERACTION,this.handleActionInteraction),this.unlisten(p.MDCChipActionEvents.NAVIGATION,this.handleActionNavigation),r.prototype.destroy.call(this)},h.prototype.getDefaultFoundation=function(){var s=this,t={addClass:function(t){s.root.classList.add(t)},emitEvent:function(t,e){s.emit(t,e,!0)},getActions:function(){var e,t,i=[];try{for(var n=a(s.actions),o=n.next();!o.done;o=n.next()){var r=c(o.value,1)[0];i.push(r)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},getAttribute:function(t){return s.root.getAttribute(t)},getElementID:function(){return s.rootHTML.id},getOffsetWidth:function(){return s.rootHTML.offsetWidth},hasClass:function(t){return s.root.classList.contains(t)},isActionSelectable:function(t){var e=s.actions.get(t);return!!e&&e.isSelectable()},isActionSelected:function(t){var e=s.actions.get(t);return!!e&&e.isSelected()},isActionFocusable:function(t){var e=s.actions.get(t);return!!e&&e.isFocusable()},isActionDisabled:function(t){var e=s.actions.get(t);return!!e&&e.isDisabled()},isRTL:function(){return"rtl"===window.getComputedStyle(s.root).getPropertyValue("direction")},removeClass:function(t){s.root.classList.remove(t)},setActionDisabled:function(t,e){var i=s.actions.get(t);i&&i.setDisabled(e)},setActionFocus:function(t,e){var i=s.actions.get(t);i&&i.setFocus(e)},setActionSelected:function(t,e){var i=s.actions.get(t);i&&i.setSelected(e)},setStyleProperty:function(t,e){s.rootHTML.style.setProperty(t,e)}};return new l.MDCChipFoundation(t)},h.prototype.remove=function(){var t=this.root.parentNode;null!==t&&t.removeChild(this.root)},h.prototype.getActions=function(){return this.foundation.getActions()},h.prototype.getElementID=function(){return this.foundation.getElementID()},h.prototype.isDisabled=function(){return this.foundation.isDisabled()},h.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},h.prototype.isActionFocusable=function(t){return this.foundation.isActionFocusable(t)}
1,h.prototype.isActionSelectable=function(t){return this.foundation.isActionSelectable(t)},h.prototype.isActionSelected=function(t){return this.foundation.isActionSelected(t)},h.prototype.setActionFocus=function(t,e){this.foundation.setActionFocus(t,e)},h.prototype.setActionSelected=function(t,e){this.foundation.setActionSelected(t,e)},h.prototype.startAnimation=function(t){this.foundation.startAnimation(t)},h);function h(){var t=null!==r&&r.apply(this,arguments)||this;return t.rootHTML=t.root,t}e.MDCChip=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipFoundation=void 0;var p,s,c,u,l=i(17),d=i(0),h=i(8),f=i(19),C=i(42);(s=p=p||{})[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.LEFT=1]="LEFT",s[s.RIGHT=2]="RIGHT",(u=c=c||{}).SELECTION="selection",u.EXIT="exit";var y,A=(y=d.MDCFoundation,o(v,y),Object.defineProperty(v,"defaultAdapter",{get:function(){return{addClass:function(){},emitEvent:function(){},getActions:function(){return[]},getAttribute:function(){return null},getElementID:function(){return""},getOffsetWidth:function(){return 0},hasClass:function(){return!1},isActionDisabled:function(){return!1},isActionFocusable:function(){return!1},isActionSelectable:function(){return!1},isActionSelected:function(){return!1},isRTL:function(){return!1},removeClass:function(){},setActionDisabled:function(){},setActionFocus:function(){},setActionSelected:function(){},setStyleProperty:function(){}}},enumerable:!1,configurable:!0}),v.prototype.destroy=function(){this.animFrame.cancelAll()},v.prototype.getElementID=function(){return this.adapter.getElementID()},v.prototype.setDisabled=function(t){var e,i,n=this.getActions();try{for(var o=a(n),r=o.next();!r.done;r=o.next()){var s=r.value;this.adapter.setActionDisabled(s,t)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}t?this.adapter.addClass(C.MDCChipCssClasses.DISABLED):this.adapter.removeClass(C.MDCChipCssClasses.DISABLED)},v.prototype.isDisabled=function(){var e,t,i=this.getActions();try{for(var n=a(i),o=n.next();!o.done;o=n.next()){var r=o.value;if(this.adapter.isActionDisabled(r))return!0}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!1},v.prototype.getActions=function(){return this.adapter.getActions()},v.prototype.isActionFocusable=function(t){return this.adapter.isActionFocusable(t)},v.prototype.isActionSelectable=function(t){return this.adapter.isActionSelectable(t)},v.prototype.isActionSelected=function(t){return this.adapter.isActionSelected(t)},v.prototype.setActionFocus=function(t,e){this.adapter.setActionFocus(t,e)},v.prototype.setActionSelected=function(t,e){this.adapter.setActionSelected(t,e),this.animateSelection(e)},v.prototype.startAnimation=function(t){t!==C.MDCChipAnimation.ENTER?t!==C.MDCChipAnimation.EXIT||this.adapter.addClass(C.MDCChipCssClasses.EXIT):this.adapter.addClass(C.MDCChipCssClasses.ENTER)},v.prototype.handleAnimationEnd=function(t){var e=this,i=t.animationName;if(i===C.MDCChipAnimation.ENTER)return this.adapter.removeClass(C.MDCChipCssClasse
1s.ENTER),void this.adapter.emitEvent(C.MDCChipEvents.ANIMATION,{chipID:this.getElementID(),animation:C.MDCChipAnimation.ENTER,addedAnnouncement:this.getAddedAnnouncement(),isComplete:!0});if(i===C.MDCChipAnimation.EXIT){this.adapter.removeClass(C.MDCChipCssClasses.EXIT),this.adapter.addClass(C.MDCChipCssClasses.HIDDEN);var n=this.adapter.getOffsetWidth();this.adapter.setStyleProperty("width",n+"px"),this.animFrame.request(c.EXIT,function(){e.animFrame.request(c.EXIT,function(){e.adapter.setStyleProperty("width","0")})})}},v.prototype.handleTransitionEnd=function(){this.adapter.hasClass(C.MDCChipCssClasses.HIDDEN)&&this.adapter.emitEvent(C.MDCChipEvents.ANIMATION,{chipID:this.getElementID(),animation:C.MDCChipAnimation.EXIT,removedAnnouncement:this.getRemovedAnnouncement(),isComplete:!0})},v.prototype.handleActionInteraction=function(t){var e=t.detail,i=e.source,n=e.actionID,o=this.adapter.isActionSelectable(i),r=this.adapter.isActionSelected(i);this.adapter.emitEvent(C.MDCChipEvents.INTERACTION,{chipID:this.getElementID(),shouldRemove:this.shouldRemove(e),actionID:n,isSelectable:o,isSelected:r,source:i})},v.prototype.handleActionNavigation=function(t){var e=t.detail,i=e.source,n=e.key,o=this.adapter.isRTL(),r=this.adapter.isActionFocusable(f.MDCChipActionType.TRAILING),s=this.adapter.isActionFocusable(f.MDCChipActionType.PRIMARY),a=this.directionFromKey(n,o),c=i===f.MDCChipActionType.PRIMARY&&a===p.RIGHT&&r,u=i===f.MDCChipActionType.TRAILING&&a===p.LEFT&&s;c?this.navigateActions({from:i,to:f.MDCChipActionType.TRAILING}):u?this.navigateActions({from:i,to:f.MDCChipActionType.PRIMARY}):this.adapter.emitEvent(C.MDCChipEvents.NAVIGATION,{chipID:this.getElementID(),isRTL:o,source:i,key:n})},v.prototype.directionFromKey=function(t,e){var i=t===h.KEY.ARROW_LEFT,n=t===h.KEY.ARROW_RIGHT;return!e&&i||e&&n?p.LEFT:!e&&n||e&&i?p.RIGHT:p.UNSPECIFIED},v.prototype.navigateActions=function(t){this.adapter.setActionFocus(t.from,f.MDCChipActionFocusBehavior.NOT_FOCUSABLE),this.adapter.setActionFocus(t.to,f.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED)},v.prototype.shouldRemove=function(t){var e=t.source,i=t.trigger;return i===f.MDCChipActionInteractionTrigger.BACKSPACE_KEY||i===f.MDCChipActionInteractionTrigger.DELETE_KEY||e===f.MDCChipActionType.TRAILING},v.prototype.getRemovedAnnouncement=function(){return this.adapter.getAttribute(C.MDCChipAttributes.DATA_REMOVED_ANNOUNCEMENT)||void 0},v.prototype.getAddedAnnouncement=function(){return this.adapter.getAttribute(C.MDCChipAttributes.DATA_ADDED_ANNOUNCEMENT)||void 0},v.prototype.animateSelection=function(t){var e=this;this.resetAnimationStyles(),this.animFrame.request(c.SELECTION,function(){e.animFrame.request(c.SELECTION,function(){e.updateSelectionStyles(t)})})},v.prototype.resetAnimationStyles=function(){this.adapter.removeClass(C.MDCChipCssClasses.SELECTING),this.adapter.removeClass(C.MDCChipCssClasses.DESELECTING),this.adapter.removeClass(C.MDCChipCssClasses.SELECTING_WITH_PRIMARY_ICON),this.adapter.removeClass(C.MDCChipCssClasses.DESELECTING_WITH_PRIMARY_ICON)},v.prototype.updateSelectionStyles=function(t){var e=this,i=this.adapter.hasClass(C.MDCChipCssClasses.WITH_PRIMARY_ICON);return i&&t?(this.adapter.addClass(C.MDCChipCssClasses.SELECTING_WITH_PRIMARY_ICON),void this.animFrame.request(c.SELECTION,function(){e.adapter.addClass(C.MDCChipCssClasses.SELECTED)})):i&&!t?(this.adapter.addClass(C.MDCChipCssClasses.DESELECTING_WITH_PRIMARY_ICON),void this.animFrame.request(c.SELECTION,function(){e.adapter.removeClass(C.MDCChipCssClasses.SELECTED)})):t?(this.adapter.addClass(C.MDCChipCssClasses.SELECTING),void this.animFrame.request(c.SELECTION,function(){e.adapter.addClass(C.MDCChipCssClasses.SELECTED)})):t?void 0:(this.adapter.addClass(C.MDCChipCssClasses.DESELECTING),void this.animFrame.request(c.SELECTION,function(){e.adapter.removeClass(C.MDCChipCssClasses.SELECTED)}))},v);function v(t){var e=y.call(this,r(r({},v.defaultAdapter),t))||this;return e.animFrame=new l.AnimationFrame,e}e.MDCChipFoundation=A,e.default=A},function(t,n,e){"use strict";var c,i;Object.defineProperty(n,"__esModule",{value:!0}),n.announce=n.DATA_MDC_DOM_ANNOUNCE=n.AnnouncerPriority=void 0,(i=c=n.AnnouncerPriority||(n.AnnouncerPriority={})).POLITE="polite",i.ASSERTIVE="assertive",n.DATA_MDC_DOM_ANNOUNCE="data-mdc-dom-announce",n.announce=function(t,e){o.getInstance().say(t,e)};var o=(r.getInstance=function(){return r.instance||(r.instance=new r),r.instance},r.prototype.say=function(t,e){var i,n,o=null!==(i=null==e?void 0:e.priority)&&void 0!==i?i:c.POLITE,r=null!==(n=null==e?void 0:e.ownerDocument)&&void 0!==n?n:document,s=this.getLiveRegion(o,r);function a(){s.textContent="",r.removeEventListener("click",a)}s.textContent="",setTimeout(function(){s.textContent=t,r.addEventListener("click",a)},1)},r.prototype.getLiveRegion=function(t,e){var i=this.liveRegions.get(e);i||(i=new Map,this.liveRegions.set(e,i));var n=i.get(t);if(n&&e.body.contains(n))return n;var o=this.createLiveRegion(t,e);return i.set(t,o),o},r.prototype.createLiveRegion=function(t,e){var i=e.createElement("div");return i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.height="1px",
1i.style.overflow="hidden",i.setAttribute("aria-atomic","true"),i.setAttribute("aria-live",t),i.setAttribute(n.DATA_MDC_DOM_ANNOUNCE,"true"),e.body.appendChild(i),i},r);function r(){this.liveRegions=new Map}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSetFoundation=void 0;var s,a,c=i(0),u=i(8),d=i(19),p=i(42),h=i(55);(a=s=s||{})[a.INCREMENT=0]="INCREMENT",a[a.DECREMENT=1]="DECREMENT";var f,C=(f=c.MDCFoundation,o(y,f),Object.defineProperty(y,"defaultAdapter",{get:function(){return{announceMessage:function(){},emitEvent:function(){},getAttribute:function(){return null},getChipActionsAtIndex:function(){return[]},getChipCount:function(){return 0},getChipIdAtIndex:function(){return""},getChipIndexById:function(){return 0},isChipFocusableAtIndex:function(){return!1},isChipSelectableAtIndex:function(){return!1},isChipSelectedAtIndex:function(){return!1},removeChipAtIndex:function(){},setChipFocusAtIndex:function(){},setChipSelectedAtIndex:function(){},startChipAnimationAtIndex:function(){}}},enumerable:!1,configurable:!0}),y.prototype.handleChipAnimation=function(t){var e=t.detail,i=e.chipID,n=e.animation,o=e.isComplete,r=e.addedAnnouncement,s=e.removedAnnouncement,a=this.adapter.getChipIndexById(i);if(n===p.MDCChipAnimation.EXIT&&o)return s&&this.adapter.announceMessage(s),void this.removeAfterAnimation(a,i);n===p.MDCChipAnimation.ENTER&&o&&r&&this.adapter.announceMessage(r)},y.prototype.handleChipInteraction=function(t){var e=t.detail,i=e.source,n=e.chipID,o=e.isSelectable,r=e.isSelected,s=e.shouldRemove,a=this.adapter.getChipIndexById(n);s?this.removeChip(a):(this.focusChip(a,i,d.MDCChipActionFocusBehavior.FOCUSABLE),this.adapter.emitEvent(h.MDCChipSetEvents.INTERACTION,{chipIndex:a,chipID:n}),o&&this.setSelection(a,i,!r))},y.prototype.handleChipNavigation=function(t){var e=t.detail,i=e.chipID,n=e.key,o=e.isRTL,r=e.source,s=this.adapter.getChipIndexById(i);n===u.KEY.ARROW_RIGHT&&!o||n===u.KEY.ARROW_LEFT&&o?this.focusNextChipFrom(s+1):n===u.KEY.ARROW_LEFT&&!o||n===u.KEY.ARROW_RIGHT&&o?this.focusPrevChipFrom(s-1):n!==u.KEY.ARROW_DOWN?n!==u.KEY.ARROW_UP?n!==u.KEY.HOME?n!==u.KEY.END||this.focusPrevChipFrom(this.adapter.getChipCount()-1,r):this.focusNextChipFrom(0,r):this.focusPrevChipFrom(s-1,r):this.focusNextChipFrom(s+1,r)},y.prototype.getSelectedChipIndexes=function(){for(var e,t,i=new Set,n=this.adapter.getChipCount(),o=0;o<n;o++){var r=this.adapter.getChipActionsAtIndex(o);try{for(var s=(e=void 0,l(r)),a=s.next();!a.done;a=s.next()){var c=a.value;this.adapter.isChipSelectedAtIndex(o,c)&&i.add(o)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}}return i},y.prototype.setChipSelected=function(t,e,i){this.adapter.isChipSelectableAtIndex(t,e)&&this.setSelection(t,e,i)},y.prototype.isChipSelected=function(t,e){return this.adapter.isChipSelectedAtIndex(t,e)},y.prototype.removeChip=function(t){t>=this.adapter.getChipCount()||t<0||(this.adapter.startChipAnimationAtIndex(t,p.MDCChipAnimation.EXIT),this.adapter.emitEvent(h.MDCChipSetEvents.REMOVAL,{chipID:this.adapter.getChipIdAtIndex(t),chipIndex:t,isComplete:!1}))},y.prototype.addChip=function(t){t>=this.adapter.getChipCount()||t<0||this.adapter.startChipAnimationAtIndex(t,p.MDCChipAnimation.ENTER)}
1,y.prototype.focusNextChipFrom=function(t,e){for(var i=this.adapter.getChipCount(),n=t;n<i;n++){var o=this.getFocusableAction(n,s.INCREMENT,e);if(o)return void this.focusChip(n,o,d.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED)}},y.prototype.focusPrevChipFrom=function(t,e){for(var i=t;-1<i;i--){var n=this.getFocusableAction(i,s.DECREMENT,e);if(n)return void this.focusChip(i,n,d.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED)}},y.prototype.getFocusableAction=function(t,e,i){var n=this.adapter.getChipActionsAtIndex(t);return e===s.DECREMENT&&n.reverse(),i?this.getMatchingFocusableAction(t,n,i):this.getFirstFocusableAction(t,n)},y.prototype.getFirstFocusableAction=function(t,e){var i,n;try{for(var o=l(e),r=o.next();!r.done;r=o.next()){var s=r.value;if(this.adapter.isChipFocusableAtIndex(t,s))return s}}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return null},y.prototype.getMatchingFocusableAction=function(t,e,i){var n,o,r=null;try{for(var s=l(e),a=s.next();!a.done;a=s.next()){var c=a.value;if(this.adapter.isChipFocusableAtIndex(t,c)&&(r=c),r===i)return r}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return r},y.prototype.focusChip=function(t,e,i){var n,o;this.adapter.setChipFocusAtIndex(t,e,i);for(var r=this.adapter.getChipCount(),s=0;s<r;s++){var a=this.adapter.getChipActionsAtIndex(s);try{for(var c=(n=void 0,l(a)),u=c.next();!u.done;u=c.next()){var p=u.value;p===e&&s===t||this.adapter.setChipFocusAtIndex(s,p,d.MDCChipActionFocusBehavior.NOT_FOCUSABLE)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}},y.prototype.supportsMultiSelect=function(){return"true"===this.adapter.getAttribute(h.MDCChipSetAttributes.ARIA_MULTISELECTABLE)},y.prototype.setSelection=function(t,e,i){var n,o;if(this.adapter.setChipSelectedAtIndex(t,e,i),this.adapter.emitEvent(h.MDCChipSetEvents.SELECTION,{chipID:this.adapter.getChipIdAtIndex(t),chipIndex:t,isSelected:i}),!this.supportsMultiSelect())for(var r=this.adapter.getChipCount(),s=0;s<r;s++){var a=this.adapter.getChipActionsAtIndex(s);try{for(var c=(n=void 0,l(a)),u=c.next();!u.done;u=c.next()){var p=u.value;p===e&&s===t||this.adapter.setChipSelectedAtIndex(s,p,!1)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}},y.prototype.removeAfterAnimation=function(t,e){this.adapter.removeChipAtIndex(t),this.adapter.emitEvent(h.MDCChipSetEvents.REMOVAL,{chipIndex:t,isComplete:!0,chipID:e}),this.adapter.getChipCount()<=0||this.focusNearestFocusableAction(t)},y.prototype.focusNearestFocusableAction=function(t){for(var e=this.adapter.getChipCount(),i=t,n=t;-1<i||n<e;){var o=this.getNearestFocusableAction(i,n,d.MDCChipActionType.TRAILING);if(o)return void this.focusChip(o.index,o.action,d.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED);i--,n++}},y.prototype.getNearestFocusableAction=function(t,e,i){var n=this.getFocusableAction(t,s.DECREMENT,i);if(n)return{index:t,action:n};if(e===t)return null;var o=this.getFocusableAction(e,s.INCREMENT,i);return o?{index:e,action:o}:null},y);function y(t){return f.call(this,r(r({},y.defaultAdapter),t))||this}e.MDCChipSetFoundation=C,e.default=C},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipTrailingAction=void 0;var r,s=i(1),a=i(6),c=i(4),u=i(43),p=i(85),l=(r=s.MDCComponent,o(d,r),Object.defineProperty(d.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),d.attachTo=function(t){return new d(t)},d.prototype.initialize=function(t){void 0===t&&(t=function(t,e){return new a.MDCRipple(t,e)});var e=a.MDCRipple.createAdapter(this);this.rippleSurface=t(this.root,new c.MDCRippleFoundation(e))},d.prototype.initialSyncWithDOM=function(){var e=this;
vendor: 17,012 bytes, line 1
1this.handleClick=function(t){e.foundation.handleClick(t)},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown)},d.prototype.destroy=function(){this.rippleSurface.destroy(),this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),r.prototype.destroy.call(this)},d.prototype.getDefaultFoundation=function(){var i=this,t={focus:function(){i.root.focus()},getAttribute:function(t){return i.root.getAttribute(t)},notifyInteraction:function(t){return i.emit(u.strings.INTERACTION_EVENT,{trigger:t},!0)},notifyNavigation:function(t){i.emit(u.strings.NAVIGATION_EVENT,{key:t},!0)},setAttribute:function(t,e){i.root.setAttribute(t,e)}};return new p.MDCChipTrailingActionFoundation(t)},d.prototype.isNavigable=function(){return this.foundation.isNavigable()},d.prototype.focus=function(){this.foundation.focus()},d.prototype.removeFocus=function(){this.foundation.removeFocus()},d);function d(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipTrailingAction=l},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipTrailingActionFoundation=void 0;var s,a=i(0),c=i(8),u=i(43),p=(s=a.MDCFoundation,o(l,s),Object.defineProperty(l,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{focus:function(){},getAttribute:function(){return null},setAttribute:function(){},notifyInteraction:function(){},notifyNavigation:function(){}}},enumerable:!1,configurable:!0}),l.prototype.handleClick=function(t){t.stopPropagation(),this.adapter.notifyInteraction(u.InteractionTrigger.CLICK)},l.prototype.handleKeydown=function(t){t.stopPropagation();var e=c.normalizeKey(t);if(this.shouldNotifyInteractionFromKey(e)){var i=this.getTriggerFromKey(e);this.adapter.notifyInteraction(i)}else c.isNavigationEvent(t)&&this.adapter.notifyNavigation(e)},l.prototype.removeFocus=function(){this.adapter.setAttribute(u.strings.TAB_INDEX,"-1")},l.prototype.focus=function(){this.adapter.setAttribute(u.strings.TAB_INDEX,"0"),this.adapter.focus()},l.prototype.isNavigable=function(){return"true"!==this.adapter.getAttribute(u.strings.ARIA_HIDDEN)},l.prototype.shouldNotifyInteractionFromKey=function(t){var e=t===c.KEY.ENTER||t===c.KEY.SPACEBAR,i=t===c.KEY.BACKSPACE||t===c.KEY.DELETE;return e||i},l.prototype.getTriggerFromKey=function(t){return t===c.KEY.SPACEBAR?u.InteractionTrigger.SPACEBAR_KEY:t===c.KEY.ENTER?u.InteractionTrigger.ENTER_KEY:t===c.KEY.DELETE?u.InteractionTrigger.DELETE_KEY:t===c.KEY.BACKSPACE?u.InteractionTrigger.BACKSPACE_KEY:u.InteractionTrigger.UNSPECIFIED},l);function l(t){return s.call(this,r(r({},l.defaultAdapter),t))||this}e.MDCChipTrailingActionFoundation=p,e.default=p},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChip=void 0;var s,a=i(1),c=i(6),u=i(4),p=i(84),l=i(43),d=i(44),h=i(56),f=(s=a.MDCComponent,o(C,s),Object.defineProperty(C.prototype,"selected",{get:function(){return this.foundation.isSelected()},set:function(t){this.foundation.setSelected(t)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"shouldRemoveOnTrailingIconClick",{get:function(){return this.foundation.getShouldRemoveOnTrailingIconClick()},set:function(t){this.foundation.setShouldRemoveOnTrailingIconClick(t)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"setShouldFocusPrimaryActionOnClick",{set:function(t){this.foundation.setShouldFocusPrimaryActionOnClick(t)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"id",{get:function(){return this.root.id},enumerable:!1,configurable:!0}),C.attachTo=function(t){return new C(t)},C.prototype.initialize=function(t,e){var i=this;void 0===t&&(t=function(t,e){return new c.MDCRipple(t,e)}),void 0===e&&(e=function(t){return new p.MDCChipTrailingAction(t)}),this.leadingIcon=this.root.querySelector(d.strings.LEADING_ICON_SELECTOR),this.checkmark=this.root.querySelector(d.strings.CHECKMARK_SELECTOR),this.primaryAction=this.root.querySelector(d.strings.PRIMARY_ACTION_SELECTOR);var n=this.root.querySelector(d.strings.TRAILING_ACTION_SELECTOR);n&&(this.trailingAction=e(n));var o=r(r({},c.MDCRipple.createAdapter(this)),{computeBoundingRect:function(){return i.foundation.getDimensions()}});this.rippleSurface=t(this.root,new u.MDCRippleFoundation(o))},C.prototype.initialSyncWithDOM=function(){var e=this;this.handleTrailingActionInteraction=function(){e.foundation.handleTrailingActionInteraction()},this.handleTrailingActionNavigation=function(t){e.foundation.handleTrailingActionNavigation(t)},this.handleClick=function(){e.foundation.handleClick()},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleTransitionEnd=function(t){e.foundation.handleTransitionEnd(t)},this.handleFocusIn=function(t){e.foundation.handleFocusIn(t)},this.handleFocusOut=function(t){e.foundation.handleFocusOut(t)},this.listen("transitionend",this.handleTransitionEnd),this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown),this.listen("focusin",this.handleFocusIn),this.listen("focusout",this.handleFocusOut),this.trailingAction&&(this.listen(l.strings.INTERACTION_EVENT,this.handleTrailingActionInteraction),this.listen(l.strings.NAVIGATION_EVENT,this.handleTrailingActionNavigation))},C.prototype.destroy=function(){this.rippleSurface.destroy(),this.unlisten("transitionend",this.handleTransitionEnd),this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.handleFocusIn),this.unlisten("focusout",this.handleFocusOut),this.trailingAction&&(this.unlisten(l.strings.INTERACTION_EVENT,this.handleTrailingActionInteraction),this.unlisten(l.strings.NAVIGATION_EVENT,this.handleTrailingActionNavigation)),s.prototype.destroy.call(this)},C.prototype.beginExit=function(){this.foundation.beginExit()},C.prototype.getDefaultFoundation=function(){var i=this,t={addClass:function(t){return i.root.classList.add(t)},addClassToLeadingIcon:function(t){i.leadingIcon&&i.leadingIcon.classList.add(t)},eventTargetHasClass:function(t,e){return!!t&&t.classList.contains(e)},focusPrimaryAction:function(){i.primaryAction&&i.primaryAction.focus()},focusTrailingAction:function(){i.trailingAction&&i.trailingAction.focus()},getAttribute:function(t){return i.root.getAttribute(t)},getCheckmarkBoundingClientRect:function(){return i.checkmark?i.checkmark.getBoundingClientRect():null},getComputedStyleValue:function(t){return window.getComputedStyle(i.root).getPropertyValue(t)},getRootBoundingClientRect:function(){return i.root.getBoundingClientRect()},hasClass:function(t){return i.root.classList.contains(t)},hasLeadingIcon:function(){return!!i.leadingIcon},isRTL:function(){return"rtl"===window.getComputedStyle(i.root).getPropertyValue("direction")},isTrailingActionNavigable:function(){return!!i.trailingAction&&i.trailingAction.isNavigable()},notifyInteraction:function(){return i.emit(d.strings.INTERACTION_EVENT,{chipId:i.id},!0)},notifyNavigation:function(t,e){return i.emit(d.strings.NAVIGATION_EVENT,{chipId:i.id,key:t,source:e},!0)},notifyRemoval:function(t){i.emit(d.strings.REMOVAL_EVENT,{chipId:i.id,removedAnnouncement:t},!0)},notifySelection:function(t,e){return i.emit(d.strings.SELECTION_EVENT,{chipId:i.id,selected:t,shouldIgnore:e},!0)},notifyTrailingIconInteraction:function(){return i.emit(d.strings.TRAILING_ICON_INTERACTION_EVENT,{chipId:i.id},!0)},notifyEditStart:function(){},notifyEditFinish:function(){},removeClass:function(t){return i.root.classList.remove(t)},removeClassFromLeadingIcon:function(t){i.leadingIcon&&i.leadingIcon.classList.remove(t)},removeTrailingActionFocus:function(){i.trailingAction&&i.trailingAction.removeFocus()},setPrimaryActionAttr:function(t,e){i.primaryAction&&i.primaryAction.setAttribute(t,e)},setStyleProperty:function(t,e){return i.root.style.setProperty(t,e)}};return new h.MDCChipFoundation(t)},C.prototype.setSelectedFromChipSet=function(t,e){this.foundation.setSelectedFromChipSet(t,e)},C.prototype.focusPrimaryAction=function(){this.foundation.focusPrimaryAction()},C.prototype.focusTrailingAction=function(){this.foundation.focusTrailingAction()},C.prototype.removeFocus=function(){this.foundation.removeFocus()},C.prototype.remove=function(){var t=this.root.parentNode;null!==t&&t.removeChild(this.root)},C);function C(){return null!==s&&s.apply(this,arguments)||this}e.MDCChip=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSetFoundation=void 0;var s,a=i(0),h=i(44),c=i(88),u=(s=a.MDCFoundation,o(p,s),Object.defineProperty(p,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(p,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{announceMessage:function(){},focusChipPrimaryActionAtIndex:function(){},focusChipTrailingActionAtIndex:function(){},getChipListCount:function(){return-1},getIndexOfChipById:function(){return-1},hasClass:function(){return!1},isRTL:function(){return!1},removeChipAtIndex:function(){},removeFocusFromChipAtIndex:function(){},selectChipAtIndex:function(){}}},enumerable:!1,configurable:!0}),p.prototype.getSelectedChipIds=function(){return this.selectedChipIds.slice()},p.prototype.select=function(t){this.selectImpl(t,!1)},p.prototype.handleChipInteraction=function(t){var e=t.chipId,i=this.adapter.getIndexOfChipById(e);this.removeFocusFromChipsExcept(i),(this.adapter.hasClass(c.cssClasses.CHOICE)||this.adapter.hasClass(c.cssClasses.FILTER))&&this.toggleSelect(e)},p.prototype.handleChipSelection=function(t){var e=t.chipId,i=t.selected;if(!t.shouldIgnore){var n=0<=this.selectedChipIds.indexOf(e);i&&!n?this.select(e):!i&&n&&this.deselectImpl(e)}},p.prototype.handleChipRemoval=function(t){var e=t.chipId,i=t.removedAnnouncement;i&&this.adapter.announceMessage(i);var n=this.adapter.getIndexOfChipById(e);this.deselectAndNotifyClients(e),this.adapter.removeChipAtIndex(n);var o=this.adapter.getChipListCount()-1;if(!(o<0)){var r=Math.min(n,o);this.removeFocusFromChipsExcept(r),this.adapter.focusChipTrailingActionAtIndex(r)}},p.prototype.handleChipNavigation=function(t){var e=t.chipId,i=t.key,n=t.source,o=this.adapter.getChipListCount()-1,r=this.adapter.getIndexOfChipById(e);if(-1!==r&&h.navigationKeys.has(i)){var s=this.adapter.isRTL(),a=i===h.strings.ARROW_LEFT_KEY||i===h.strings.IE_ARROW_LEFT_KEY,c=i===h.strings.ARROW_RIGHT_KEY||i===h.strings.IE_ARROW_RIGHT_KEY,u=i===h.strings.ARROW_DOWN_KEY||i===h.strings.IE_ARROW_DOWN_KEY,p=!s&&c||s&&a||u,l=i===h.strings.HOME_KEY,d=i===h.strings.END_KEY;p?r++:l?r=0:d?r=o:r--,r<0||o<r||(this.removeFocusFromChipsExcept(r),this.focusChipAction(r,i,n))}},p.prototype.focusChipAction=function(t,e,i){var n=h.jumpChipKeys.has(e);if(n&&i===h.EventSource.PRIMARY)return this.adapter.focusChipPrimaryActionAtIndex(t);if(n&&i===h.EventSource.TRAILING)return this.adapter.focusChipTrailingActionAtIndex(t);var o=this.getDirection(e);return o===h.Direction.LEFT?this.adapter.focusChipTrailingActionAtIndex(t):o===h.Direction.RIGHT?this.adapter.focusChipPrimaryActionAtIndex(t):void 0},p.prototype.getDirection=function(t){var e=this.adapter.isRTL(),i=t===h.strings.ARROW_LEFT_KEY||t===h.strings.IE_ARROW_LEFT_KEY,n=t===h.strings.ARROW_RIGHT_KEY||t===h.strings.IE_ARROW_RIGHT_KEY;return!e&&i||e&&n?h.Direction.LEFT:h.Direction.RIGHT},p.prototype.deselectImpl=function(t,e){void 0===e&&(e=!1);var i=this.selectedChipIds.indexOf(t);if(0<=i){this.selectedChipIds.splice(i,1);var n=this.adapter.getIndexOfChipById(t);this.adapter.selectChipAtIndex(n,!1,e)}},p.prototype.deselectAndNotifyClients=function(t){this.deselectImpl(t,!0)},p.prototype.toggleSelect=function(t){0<=this.selectedChipIds.indexOf(t)?this.deselectAndNotifyClients(t):this.selectAndNotifyClients(t)},p.prototype.removeFocusFromChipsExcept=function(t){for(var e=this.adapter.getChipListCount(),i=0;i<e;i++)i!==t&&this.adapter.removeFocusFromChipAtIndex(i)},p.prototype.selectAndNotifyClients=function(t){this.selectImpl(t,!0)},p.prototype.selectImpl=function(t,e){if(!(0<=this.selectedChipIds.indexOf(t))){if(this.adapter.hasClass(c.cssClasses.CHOICE)&&0<this.selectedChipIds.length){var i=this.selectedChipIds[0],n=this.adapter.getIndexOfChipById(i);this.selectedChipIds=[],this.adapter.selectChipAtIndex(n,!1,e)}this.selectedChipIds.push(t);var o=this.adapter.getIndexOfChipById(t);this.adapter.selectChipAtIndex(o,!0,e)}},p);function p(t){var e=s.call(this,r(r({},p.defaultAdapter),t))||this;return e.selectedChipIds=[],e}e.MDCChipSetFoundation=u,e.default=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.strings=void 0,e.strings={CHIP_SELECTOR:".mdc-chip"},e.cssClasses={CHOICE:"mdc-chip-set--choice",FILTER:"mdc-chip-set--filter"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)},s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&n(e,t,i);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.deprecated=void 0,r(i(147),e),r(i(151),e),r(i(154),e);var a=s(i(158));e.deprecated=a},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(148),e),o(i(77),e),o(i(19),e),o(i(54),e),o(i(78),e),o(i(79),e),o(i(150),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GRAPHIC_SELECTED_WIDTH_STYLE_PROP=e.computePrimaryActionRippleClientRect=void 0,e.computePrimaryActionRippleClientRect=function(t,e){var i=Number(e.replace("px",""));return Number.isNaN(i)?t:{width:t.width+i,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}},e.GRAPHIC_SELECTED_WIDTH_STYLE_PROP="--mdc-chip-graphic-selected-width"}
1,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(152),e),o(i(80),e),o(i(42),e),o(i(81),e),o(i(153),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(155),e),o(i(156),e),o(i(55),e),o(i(83),e),o(i(157),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSet=void 0;var r,s=i(1),a=i(82),c=i(80),u=i(42),p=i(55),l=i(83),d=(r=s.MDCComponent,o(h,r),h.attachTo=function(t){return new h(t)},h.prototype.initialize=function(t){void 0===t&&(t=function(t){return new c.MDCChip(t)}),this.chips=[];for(var e=this.root.querySelectorAll("."+p.MDCChipSetCssClasses.CHIP),i=0;i<e.length;i++){var n=t(e[i]);this.chips.push(n)}},h.prototype.initialSyncWithDOM=function(){var e=this;this.handleChipAnimation=function(t){e.foundation.handleChipAnimation(t)},this.handleChipInteraction=function(t){e.foundation.handleChipInteraction(t)},this.handleChipNavigation=function(t){e.foundation.handleChipNavigation(t)},this.listen(u.MDCChipEvents.ANIMATION,this.handleChipAnimation),this.listen(u.MDCChipEvents.INTERACTION,this.handleChipInteraction),this.listen(u.MDCChipEvents.NAVIGATION,this.handleChipNavigation)},h.prototype.destroy=function(){this.unlisten(u.MDCChipEvents.ANIMATION,this.handleChipAnimation),this.unlisten(u.MDCChipEvents.INTERACTION,this.handleChipInteraction),this.unlisten(u.MDCChipEvents.NAVIGATION,this.handleChipNavigation),r.prototype.destroy.call(this)},h.prototype.getDefaultFoundation=function(){var n=this,t={announceMessage:function(t){a.announce(t)},emitEvent:function(t,e){n.emit(t,e,!0)},getAttribute:function(t){return n.root.getAttribute(t)},getChipActionsAtIndex:function(t){return n.isIndexValid(t)?n.chips[t].getActions():[]},getChipCount:function(){return n.chips.length},getChipIdAtIndex:function(t){return n.isIndexValid(t)?n.chips[t].getElementID():""},getChipIndexById:function(e){return n.chips.findIndex(function(t){return t.getElementID()===e})},isChipFocusableAtIndex:function(t,e){return!!n.isIndexValid(t)&&n.chips[t].isActionFocusable(e)},isChipSelectableAtIndex:function(t,e){return!!n.isIndexValid(t)&&n.chips[t].isActionSelectable(e)},isChipSelectedAtIndex:function(t,e){return!!n.isIndexValid(t)&&n.chips[t].isActionSelected(e)},removeChipAtIndex:function(t){n.isIndexValid(t)&&(n.chips[t].destroy(),n.chips[t].remove(),n.chips.splice(t,1))},setChipFocusAtIndex:function(t,e,i){n.isIndexValid(t)&&n.chips[t].setActionFocus(e,i)},setChipSelectedAtIndex:function(t,e,i){n.isIndexValid(t)&&n.chips[t].setActionSelected(e,i)},startChipAnimationAtIndex:function(t,e){n.isIndexValid(t)&&n.chips[t].startAnimation(e)}};return new l.MDCChipSetFoundation(t)},h.prototype.getChipIndexByID=function(e){return this.chips.findIndex(function(t){return t.getElementID()===e})},h.prototype.getChipIdAtIndex=function(t){return this.isIndexValid(t)?this.chips[t].getElementID():""},h.prototype.getSelectedChipIndexes=function(){return this.foundation.getSelectedChipIndexes()}
vendor: 8,353 bytes, line 1
1,h.prototype.setChipSelected=function(t,e,i){this.foundation.setChipSelected(t,e,i)},h.prototype.isChipSelected=function(t,e){return this.foundation.isChipSelected(t,e)},h.prototype.addChip=function(t){this.foundation.addChip(t)},h.prototype.removeChip=function(t){this.foundation.removeChip(t)},h.prototype.isIndexValid=function(t){return-1<t&&t<this.chips.length},h);function h(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipSet=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(159),e),o(i(162),e),o(i(165),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.trailingActionStrings=void 0,o(i(160),e),o(i(84),e),o(i(85),e),o(i(161),e);var r=i(43);Object.defineProperty(e,"trailingActionStrings",{enumerable:!0,get:function(){return r.strings}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.chipStrings=e.chipCssClasses=void 0,o(i(163),e),o(i(86),e),o(i(56),e),o(i(164),e);var r=i(44);Object.defineProperty(e,"chipCssClasses",{enumerable:!0,get:function(){return r.cssClasses}}),Object.defineProperty(e,"chipStrings",{enumerable:!0,get:function(){return r.strings}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.chipSetStrings=e.chipSetCssClasses=void 0,o(i(166),e),o(i(167),e),o(i(87),e);var r=i(88);Object.defineProperty(e,"chipSetCssClasses",{enumerable:!0,get:function(){return r.cssClasses}}),Object.defineProperty(e,"chipSetStrings",{enumerable:!0,get:function(){return r.strings}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSet=void 0;var r,a=i(1),c=i(82),u=i(86),p=i(56),l=i(87),d=p.MDCChipFoundation.strings,h=d.INTERACTION_EVENT,f=d.SELECTION_EVENT,C=d.REMOVAL_EVENT,y=d.NAVIGATION_EVENT,A=l.MDCChipSetFoundation.strings.CHIP_SELECTOR,v=0,E=(r=a.MDCComponent,o(g,r),g.attachTo=function(t){return new g(t)},Object.defineProperty(g.prototype,"chips",{get:function(){return this.chipsList.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"selectedChipIds",{get:function(){return this.foundation.getSelectedChipIds()},enumerable:!1,configurable:!0}),g.prototype.initialize=function(t){void 0===t&&(t=function(t){return new u.MDCChip(t)}),this.chipFactory=t,this.chipsList=this.instantiateChips(this.chipFactory)},g.prototype.initialSyncWithDOM=function(){var e,t,i=this;try{for(var n=s(this.chipsList),o=n.next();!o.done;o=n.next()){var r=o.value;r.id&&r.selected&&this.foundation.select(r.id)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.handleChipInteraction=function(t){return i.foundation.handleChipInteraction(t.detail)},this.handleChipSelection=function(t){return i.foundation.handleChipSelection(t.detail)},this.handleChipRemoval=function(t){return i.foundation.handleChipRemoval(t.detail)},this.handleChipNavigation=function(t){return i.foundation.handleChipNavigation(t.detail)},this.listen(h,this.handleChipInteraction),this.listen(f,this.handleChipSelection),this.listen(C,this.handleChipRemoval),this.listen(y,this.handleChipNavigation)},g.prototype.destroy=function(){var e,t;try{for(var i=s(this.chipsList),n=i.next();!n.done;n=i.next())n.value.destroy()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.unlisten(h,this.handleChipInteraction),this.unlisten(f,this.handleChipSelection),this.unlisten(C,this.handleChipRemoval),this.unlisten(y,this.handleChipNavigation),r.prototype.destroy.call(this)},g.prototype.addChip=function(t){t.id=t.id||"mdc-chip-"+ ++v,this.chipsList.push(this.chipFactory(t))},g.prototype.getDefaultFoundation=function(){var n=this,t={announceMessage:function(t){c.announce(t)},focusChipPrimaryActionAtIndex:function(t){n.chipsList[t].focusPrimaryAction()},focusChipTrailingActionAtIndex:function(t){n.chipsList[t].focusTrailingAction()},getChipListCount:function(){return n.chips.length},getIndexOfChipById:function(t){return n.findChipIndex(t)},hasClass:function(t){return n.root.classList.contains(t)},isRTL:function(){return"rtl"===window.getComputedStyle(n.root).getPropertyValue("direction")},removeChipAtIndex:function(t){0<=t&&t<n.chips.length&&(n.chipsList[t].destroy(),n.chipsList[t].remove(),n.chipsList.splice(t,1))},removeFocusFromChipAtIndex:function(t){n.chipsList[t].removeFocus()},selectChipAtIndex:function(t,e,i){0<=t&&t<n.chips.length&&n.chipsList[t].setSelectedFromChipSet(e,i)}};return new l.MDCChipSetFoundation(t)},g.prototype.instantiateChips=function(e){return[].slice.call(this.root.querySelectorAll(A)).map(function(t){return t.id=t.id||"mdc-chip-"+ ++v,e(t)})},g.prototype.findChipIndex=function(t){for(var e=0;e<this.chips.length;e++)if(this.chipsList[e].id===t)return e;return-1},g);function g(){return null!==r&&r.apply(this,arguments)||this}e.MDCChipSet=E}],o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=146);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var i,n});
vendor: 9,234 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/circular-progress",[],e):"object"==typeof exports?exports["circular-progress"]=e():(t.mdc=t.mdc||{},t.mdc["circular-progress"]=e())}(this,function(){return n={},o.m=r={0:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var n=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=n,e.default=n},1:function(t,e,r){"use strict";var o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},i=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var n=r(0),s=(u.attachTo=function(t){return new u(t,new n.MDCFoundation({}))},u.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},u.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},u.prototype.initialSyncWithDOM=function(){},u.prototype.destroy=function(){this.foundation.destroy()},u.prototype.listen=function(t,e,r){this.root.addEventListener(t,e,r)},u.prototype.unlisten=function(t,e,r){this.root.removeEventListener(t,e,r)},u.prototype.emit=function(t,e,r){var n;void 0===r&&(r=!1),"function"==typeof CustomEvent?n=new CustomEvent(t,{bubbles:r,detail:e}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,e),this.root.dispatchEvent(n)},u);function u(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.root=t,this.initialize.apply(this,i([],o(r))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},168:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(169),e),o(r(170),e),o(r(90),e),o(r(89),e)},169:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},170:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCCircularProgress=void 0;var i,s=r(1),u=r(89),a=(i=s.MDCComponent,o(c,i),c.prototype.initialize=function(){this.determinateCircle=this.root.querySelector(u.MDCCircularProgressFoundation.strings.DETERMINATE_CIRCLE_SELECTOR)},c.attachTo=function(t){return new c(t)},Object.defineProperty(c.prototype,"determinate",{set:function(t){this.foundation.setDeterminate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"progress",{set:function(t){this.foundation.setProgress(t)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isClosed",{get:function(){return this.foundation.isClosed()},enumerable:!1,configurable:!0}),c.prototype.open=function(){this.foundation.open()},c.prototype.close=function(){this.foundation.close()},c.prototype.getDefaultFoundation=function(){var r=this,t={addClass:function(t){r.root.classList.add(t)},getDeterminateCircleAttribute:function(t){return r.determinateCircle.getAttribute(t)},hasClass:function(t){return r.root.classList.contains(t)},removeClass:function(t){r.root.classList.remove(t)},removeAttribute:function(t){r.root.removeAttribute(t)},setAttribute:function(t,e){r.root.setAttribute(t,e)},setDeterminateCircleAttribute:function(t,e){r.determinateCircle.setAttribute(t,e)}};return new u.MDCCircularProgressFoundation(t)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCCircularProgress=a},89:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCCircularProgressFoundation=void 0;var s,u=r(0),a=r(90),c=(s=u.MDCFoundation,o(l,s),Object.defineProperty(l,"cssClasses",{get:function(){return a.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"strings",{get:function(){return a.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},getDeterminateCircleAttribute:function(){return null},hasClass:function(){return!1},removeClass:function(){},removeAttribute:function(){},setAttribute:function(){},setDeterminateCircleAttribute:function(){}}},enumerable:!1,configurable:!0}),l.prototype.init=function(){this.closed=this.adapter.hasClass(a.cssClasses.CLOSED_CLASS),this.determinate=!this.adapter.hasClass(a.cssClasses.INDETERMINATE_CLASS),this.progress=0,this.determinate&&this.adapter.setAttribute(a.strings.ARIA_VALUENOW,this.progress.toString()),this.radius=Number(this.adapter.getDeterminateCircleAttribute(a.strings.RADIUS))},l.prototype.setDeterminate=function(t){this.determinate=t,this.determinate?(this.adapter.removeClass(a.cssClasses.INDETERMINATE_CLASS),this.setProgress(this.progress)):(this.adapter.addClass(a.cssClasses.INDETERMINATE_CLASS),this.adapter.removeAttribute(a.strings.ARIA_VALUENOW))},l.prototype.isDeterminate=function(){return this.determinate},l.prototype.setProgress=function(t){if(this.progress=t,this.determinate){var e=(1-this.progress)*(2*Math.PI*this.radius);this.adapter.setDeterminateCircleAttribute(a.strings.STROKE_DASHOFFSET,""+e),this.adapter.setAttribute(a.strings.ARIA_VALUENOW,this.progress.toString())}},l.prototype.getProgress=function(){return this.progress},l.prototype.open=function(){this.closed=!1,this.adapter.removeClass(a.cssClasses.CLOSED_CLASS),this.adapter.removeAttribute(a.strings.ARIA_HIDDEN)},l.prototype.close=function(){this.closed=!0,this.adapter.addClass(a.cssClasses.CLOSED_CLASS),this.adapter.setAttribute(a.strings.ARIA_HIDDEN,"true")},l.prototype.isClosed=function(){return this.closed},l);function l(t){return s.call(this,i(i({},l.defaultAdapter),t))||this}e.MDCCircularProgressFoundation=c,e.default=c},90:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0,e.cssClasses={INDETERMINATE_CLASS:"mdc-circular-progress--indeterminate",CLOSED_CLASS:"mdc-circular-progress--closed"},e.strings={ARIA_HIDDEN:"aria-hidden",ARIA_VALUENOW:"aria-valuenow",DETERMINATE_CIRCLE_SELECTOR:".mdc-circular-progress__determinate-circle",RADIUS:"r",STROKE_DASHOFFSET:"stroke-dashoffset"}}},o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=168);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,n});
vendor: 1,091 bytes, line 1
1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@material/data-table",[],t):"object"==typeof exports?exports["data-table"]=t():(e.mdc=e.mdc||{},e.mdc["data-table"]=t())}(this,function(){return r={},o.m=n={0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCFoundation=void 0;var r=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(e){void 0===e&&(e={}),this.adapter=e}t.MDCFoundation=r,t.default=r},1:function(e,t,n){"use strict";var o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;
vendor: 4,309 bytes, line 1
1(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCComponent=void 0;var r=n(0),a=(s.attachTo=function(e){return new s(e,new r.MDCFoundation({}))},s.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},s.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},s.prototype.emit=function(e,t,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(e,{bubbles:n,detail:t}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root.dispatchEvent(r)},s);function s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=e,this.initialize.apply(this,i([],o(n))),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}t.MDCComponent=a,t.default=a},10:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCorrectEventName=t.getCorrectPropertyName=void 0;var a={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},s={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 c(e){return Boolean(e.document)&&"function"==typeof e.document.createElement}t.getCorrectPropertyName=function(e,t){if(c(e)&&t in a){var n=e.document.createElement("div"),r=a[t],o=r.standard,i=r.prefixed;return o in n.style?o:i}return t},t.getCorrectEventName=function(e,t){if(c(e)&&t in s){var n=e.document.createElement("div"),r=s[t],o=r.standard,i=r.prefixed;return r.cssProperty in n.style?o:i}return t}},171:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(172),t),o(n(173),t),o(n(91),t),o(n(58),t),o(n(174),t)},172:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},173:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCDataTable=void 0;var a,s=n(1),c=n(53),u=n(2),d=n(57),l=n(58),f=n(91),h=(a=s.MDCComponent,o(p,a),p.attachTo=function(e){return new p(e)},p.prototype.initialize=function(e){void 0===e&&(e=function(e){return new c.MDCCheckbox(e)}),this.checkboxFactory=e},p.prototype.initialSyncWithDOM=function(){var n=this;
vendor: 9,017 bytes, line 1
1this.headerRow=this.root.querySelector("."+l.cssClasses.HEADER_ROW),this.handleHeaderRowCheckboxChange=function(){n.foundation.handleHeaderRowCheckboxChange()},this.headerRow.addEventListener("change",this.handleHeaderRowCheckboxChange),this.headerRowClickListener=function(e){n.handleHeaderRowClick(e)},this.headerRow.addEventListener("click",this.headerRowClickListener),this.content=this.root.querySelector("."+l.cssClasses.CONTENT),this.handleContentClick=function(e){var t=u.closest(e.target,l.selectors.ROW);t&&n.foundation.handleRowClick({rowId:n.getRowIdByRowElement(t),row:t})},this.content.addEventListener("click",this.handleContentClick),this.handleRowCheckboxChange=function(e){n.foundation.handleRowCheckboxChange(e)},this.content.addEventListener("change",this.handleRowCheckboxChange),this.layout()},p.prototype.layout=function(){this.foundation.layout()},p.prototype.getHeaderCells=function(){return[].slice.call(this.root.querySelectorAll(l.selectors.HEADER_CELL))},p.prototype.getRows=function(){return this.foundation.getRows()},p.prototype.getSelectedRowIds=function(){return this.foundation.getSelectedRowIds()},p.prototype.setSelectedRowIds=function(e){this.foundation.setSelectedRowIds(e)},p.prototype.showProgress=function(){this.getLinearProgress().open(),this.foundation.showProgress()},p.prototype.hideProgress=function(){this.foundation.hideProgress(),this.getLinearProgress().close()},p.prototype.destroy=function(){var t,e;if(this.handleHeaderRowCheckboxChange&&this.headerRow.removeEventListener("change",this.handleHeaderRowCheckboxChange),this.headerRowClickListener&&this.headerRow.removeEventListener("click",this.headerRowClickListener),this.handleRowCheckboxChange&&this.content.removeEventListener("change",this.handleRowCheckboxChange),this.headerRowCheckbox&&this.headerRowCheckbox.destroy(),this.rowCheckboxList)try{for(var n=i(this.rowCheckboxList),r=n.next();!r.done;r=n.next())r.value.destroy()}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.handleContentClick&&this.content.removeEventListener("click",this.handleContentClick)},p.prototype.getDefaultFoundation=function(){var r=this,e={addClass:function(e){r.root.classList.add(e)},removeClass:function(e){r.root.classList.remove(e)},getHeaderCellElements:function(){return r.getHeaderCells()},getHeaderCellCount:function(){return r.getHeaderCells().length},getAttributeByHeaderCellIndex:function(e,t){return r.getHeaderCells()[e].getAttribute(t)},setAttributeByHeaderCellIndex:function(e,t,n){r.getHeaderCells()[e].setAttribute(t,n)},setClassNameByHeaderCellIndex:function(e,t){r.getHeaderCells()[e].classList.add(t)},removeClassNameByHeaderCellIndex:function(e,t){r.getHeaderCells()[e].classList.remove(t)},notifySortAction:function(e){r.emit(l.events.SORTED,e,!0)},getTableContainerHeight:function(){var e=r.root.querySelector("."+l.cssClasses.TABLE_CONTAINER);if(!e)throw new Error("MDCDataTable: Table container element not found.");return e.getBoundingClientRect().height},getTableHeaderHeight:function(){var e=r.root.querySelector(l.selectors.HEADER_ROW);if(!e)throw new Error("MDCDataTable: Table header element not found.");return e.getBoundingClientRect().height},setProgressIndicatorStyles:function(e){var t=r.root.querySelector(l.selectors.PROGRESS_INDICATOR);if(!t)throw new Error("MDCDataTable: Progress indicator element not found.");t.style.setProperty("height",e.height),t.style.setProperty("top",e.top)},addClassAtRowIndex:function(e,t){r.getRows()[e].classList.add(t)},getRowCount:function(){return r.getRows().length},getRowElements:function(){return[].slice.call(r.root.querySelectorAll(l.selectors.ROW))},getRowIdAtIndex:function(e){return r.getRows()[e].getAttribute(l.dataAttributes.ROW_ID)},getRowIndexByChildElement:function(e){return r.getRows().indexOf(u.closest(e,l.selectors.ROW))},getSelectedRowCount:function(){return r.root.querySelectorAll(l.selectors.ROW_SELECTED).length},isCheckboxAtRowIndexChecked:function(e){return r.rowCheckboxList[e].checked},isHeaderRowCheckboxChecked:function(){return r.headerRowCheckbox.checked},isRowsSelectable:function(){return!!r.root.querySelector(l.selectors.ROW_CHECKBOX)||!!r.root.querySelector(l.selectors.HEADER_ROW_CHECKBOX)},notifyRowSelectionChanged:function(e){r.emit(l.events.ROW_SELECTION_CHANGED,{row:r.getRowByIndex(e.rowIndex),rowId:r.getRowIdByIndex(e.rowIndex),rowIndex:e.rowIndex,selected:e.selected},!0)},notifySelectedAll:function(){r.emit(l.events.SELECTED_ALL,{},!0)},notifyUnselectedAll:function(){r.emit(l.events.UNSELECTED_ALL,{},!0)},notifyRowClick:function(e){r.emit(l.events.ROW_CLICK,e,!0)},registerHeaderRowCheckbox:function(){r.headerRowCheckbox&&r.headerRowCheckbox.destroy();var e=r.root.querySelector(l.selectors.HEADER_ROW_CHECKBOX);r.headerRowCheckbox=r.checkboxFactory(e)},registerRowCheckboxes:function(){r.rowCheckboxList&&r.rowCheckboxList.forEach(function(e){e.destroy()}),r.rowCheckboxList=[],r.getRows().forEach(function(e){var t=r.checkboxFactory(e.querySelector(l.selectors.ROW_CHECKBOX));r.rowCheckboxList.push(t)})},removeClassAtRowIndex:function(e,t){r.getRows()[e].classList.remove(t)},setAttributeAtRowIndex:function(e,t,n){r.getRows()[e].setAttribute(t,n)},setHeaderRowCheckboxChecked:function(e){r.headerRowCheckbox.checked=e},setHeaderRowCheckboxIndeterminate:function(e){r.headerRowCheckbox.indeterminate=e},setRowCheckboxCheckedAtIndex:function(e,t){r.rowCheckboxList[e].checked=t},setSortStatusLabelByHeaderCellIndex:function(e,t){var n=r.getHeaderCells()[e].querySelector(l.selectors.SORT_STATUS_LABEL);n&&(n.textContent=r.getSortStatusMessageBySortValue(t))}};return new f.MDCDataTableFoundation(e)},p.prototype.getRowByIndex=function(e){return this.getRows()[e]},p.prototype.getRowIdByIndex=function(e){return this.getRowByIndex(e).getAttribute(l.dataAttributes.ROW_ID)},p.prototype.handleHeaderRowClick=function(e){var t=u.closest(e.target,l.selectors.HEADER_CELL_WITH_SORT);if(t){var n=t.getAttribute(l.dataAttributes.COLUMN_ID),r=this.getHeaderCells().indexOf(t);-1!==r&&this.foundation.handleSortAction({columnId:n,columnIndex:r,headerCell:t})}},p.prototype.getSortStatusMessageBySortValue=function(e){switch(e){case l.SortValue.ASCENDING:return l.messages.SORTED_IN_ASCENDING;case l.SortValue.DESCENDING:return l.messages.SORTED_IN_DESCENDING;default:return""}},p.prototype.getLinearProgressElement=function(){var e=this.root.querySelector("."+l.cssClasses.LINEAR_PROGRESS);if(!e)throw new Error("MDCDataTable: linear progress element is not found.");return e},p.prototype.getLinearProgress=function(){if(!this.linearProgress){var e=this.getLinearProgressElement();this.linearProgress=new d.MDCLinearProgress(e)}return this.linearProgress},p.prototype.getRowIdByRowElement=function(e){return e.getAttribute(l.dataAttributes.ROW_ID)},p);function p(){return null!==a&&a.apply(this,arguments)||this}t.MDCDataTable=h},174:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t,n){"use strict";function r(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.estimateScrollWidth=t.matches=t.closest=void 0,t.closest=function(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(r(n,t))return n;n=n.parentElement}return null},t.matches=r,t.estimateScrollWidth=function(e){var t=e;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 r=n.scrollWidth;return document.documentElement.removeChild(n),r}},26:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numbers=t.strings=t.cssClasses=void 0,t.cssClasses={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"},t.strings={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"},t.numbers={ANIM_END_LATCH_MS:250}},3:function(e,t,n){"use strict";var a;
vendor: 4,169 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.getNormalizedEventCoords=t.supportsCssVariables=void 0,t.supportsCssVariables=function(e,t){void 0===t&&(t=!1);var n,r=e.CSS;if("boolean"==typeof a&&!t)return a;if(!(r&&"function"==typeof r.supports))return!1;var o=r.supports("--css-vars","yes"),i=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=o||i,t||(a=n),n},t.getNormalizedEventCoords=function(e,t,n){if(!e)return{x:0,y:0};var r,o,i=t.x,a=t.y,s=i+n.left,c=a+n.top;if("touchstart"===e.type){var u=e;r=u.changedTouches[0].pageX-s,o=u.changedTouches[0].pageY-c}else{var d=e;r=d.pageX-s,o=d.pageY-c}return{x:r,y:o}}},4:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCRippleFoundation=void 0;var s,c=n(0),u=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],f=["touchend","pointerup","mouseup","contextmenu"],h=[],p=(s=c.MDCFoundation,o(C,s),Object.defineProperty(C,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(C,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(C,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(C,"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:!1,configurable:!0}),C.prototype.init=function(){var e=this,t=this.supportsPressRipple();if(this.registerRootHandlers(t),t){var n=C.cssClasses,r=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){e.adapter.addClass(r),e.adapter.isUnbounded()&&(e.adapter.addClass(o),e.layoutInternal())})}},C.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(C.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(C.cssClasses.FG_DEACTIVATION));var t=C.cssClasses,n=t.ROOT,r=t.UNBOUNDED;requestAnimationFrame(function(){e.adapter.removeClass(n),e.adapter.removeClass(r),e.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},C.prototype.activate=function(e){this.activateImpl(e)},C.prototype.deactivate=function(){this.deactivateImpl()},C.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){e.layoutInternal(),e.layoutFrame=0})}
vendor: 4,309 bytes, line 1
1,C.prototype.setUnbounded=function(e){var t=C.cssClasses.UNBOUNDED;e?this.adapter.addClass(t):this.adapter.removeClass(t)},C.prototype.handleFocus=function(){var e=this;requestAnimationFrame(function(){return e.adapter.addClass(C.cssClasses.BG_FOCUSED)})},C.prototype.handleBlur=function(){var e=this;requestAnimationFrame(function(){return e.adapter.removeClass(C.cssClasses.BG_FOCUSED)})},C.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},C.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},C.prototype.registerRootHandlers=function(e){var t,n;if(e){try{for(var r=a(l),o=r.next();!o.done;o=r.next()){var i=o.value;this.adapter.registerInteractionHandler(i,this.activateHandler)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},C.prototype.registerDeactivationHandlers=function(e){var t,n;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=a(f),o=r.next();!o.done;o=r.next()){var i=o.value;this.adapter.registerDocumentInteractionHandler(i,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},C.prototype.deregisterRootHandlers=function(){var t,e;try{for(var n=a(l),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},C.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(f),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},C.prototype.removeCssVars=function(){var t=this,n=C.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(n[e],null)})},C.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;r&&void 0!==e&&r.type!==e.type||(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&&0<h.length&&h.some(function(e){return t.adapter.containsEventTarget(e)})?this.resetActivationState():(void 0!==e&&(h.push(e.target),this.registerDeactivationHandlers(e)),n.wasElementMadeActive=this.checkElementMadeActive(e),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){h=[],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())})))}}},C.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},C.prototype.animateActivation=function(){var e=this,t=C.strings,n=t.VAR_FG_TRANSLATE_START,r=t.VAR_FG_TRANSLATE_END,o=C.cssClasses,i=o.FG_DEACTIVATION,a=o.FG_ACTIVATION,s=C.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),l=d.startPoint,f=d.endPoint;c=l.x+"px, "+l.y+"px",u=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(n,c),this.adapter.updateCssVariable(r,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(i),this.adapter.computeBoundingRect
vendor: 4,300 bytes, line 1
1(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){e.activationTimerCallback()},s)},C.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?d.getNormalizedEventCoords(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}}},C.prototype.runDeactivationUXLogicIfReady=function(){var e=this,t=C.cssClasses.FG_DEACTIVATION,n=this.activationState,r=n.hasDeactivationUXRun,o=n.isActivated;!r&&o||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(t),this.fgDeactivationRemovalTimer=setTimeout(function(){e.adapter.removeClass(t)},u.numbers.FG_DEACTIVATION_MS))},C.prototype.rmBoundedActivationClasses=function(){var e=C.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},C.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return e.previousActivationEvent=void 0},C.numbers.TAP_DELAY_MS)},C.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var n=i({},t);t.isProgrammatic?(requestAnimationFrame(function(){e.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState()}))}},C.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady()},C.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var t=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?t:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+C.numbers.PADDING;var n=Math.floor(t*C.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()},C.prototype.updateLayoutCssVars=function(){var e=C.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,r=e.VAR_TOP,o=e.VAR_FG_SCALE;this.adapter.updateCssVariable(t,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},C);function C(e){var t=s.call(this,i(i({},C.defaultAdapter),e))||this;return t.activationAnimationHasEnded=!1,t.activationTimer=0,t.fgDeactivationRemovalTimer=0,t.fgScale="0",t.frame={width:0,height:0},t.initialSize=0,t.layoutFrame=0,t.maxRadius=0,t.unboundedCoords={left:0,top:0},t.activationState=t.defaultActivationState(),t.activationTimerCallback=function(){t.activationAnimationHasEnded=!0,t.runDeactivationUXLogicIfReady()},t.activateHandler=function(e){t.activateImpl(e)},t.deactivateHandler=function(){t.deactivateImpl()},t.focusHandler=function(){t.handleFocus()},t.blurHandler=function(){t.handleBlur()},t.resizeHandler=function(){t.layout()},t}t.MDCRippleFoundation=p,t.default=p},41:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
vendor: 6,480 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.MDCCheckboxFoundation=void 0;var a,s=n(0),f=n(26),c=(a=s.MDCFoundation,o(h,a),Object.defineProperty(h,"cssClasses",{get:function(){return f.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return f.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return f.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(h,"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:!1,configurable:!0}),h.prototype.init=function(){this.currentCheckState=this.determineCheckState(),this.updateAriaChecked(),this.adapter.addClass(f.cssClasses.UPGRADED)},h.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer)},h.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(f.cssClasses.DISABLED):this.adapter.removeClass(f.cssClasses.DISABLED)},h.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler&&(clearTimeout(this.animEndLatchTimer),this.animEndLatchTimer=setTimeout(function(){e.adapter.removeClass(e.currentAnimationClass),e.enableAnimationEndHandler=!1},f.numbers.ANIM_END_LATCH_MS))},h.prototype.handleChange=function(){this.transitionCheckState()},h.prototype.transitionCheckState=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState,t=this.determineCheckState();if(e!==t){this.updateAriaChecked();var n=f.strings.TRANSITION_STATE_UNCHECKED,r=f.cssClasses.SELECTED;t===n?this.adapter.removeClass(r):this.adapter.addClass(r),0<this.currentAnimationClass.length&&(clearTimeout(this.animEndLatchTimer),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass)),this.currentAnimationClass=this.getTransitionAnimationClass(e,t),this.currentCheckState=t,this.adapter.isAttachedToDOM()&&0<this.currentAnimationClass.length&&(this.adapter.addClass(this.currentAnimationClass),this.enableAnimationEndHandler=!0)}}},h.prototype.determineCheckState=function(){var e=f.strings.TRANSITION_STATE_INDETERMINATE,t=f.strings.TRANSITION_STATE_CHECKED,n=f.strings.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},h.prototype.getTransitionAnimationClass=function(e,t){var n=f.strings.TRANSITION_STATE_INIT,r=f.strings.TRANSITION_STATE_CHECKED,o=f.strings.TRANSITION_STATE_UNCHECKED,i=h.cssClasses,a=i.ANIM_UNCHECKED_CHECKED,s=i.ANIM_UNCHECKED_INDETERMINATE,c=i.ANIM_CHECKED_UNCHECKED,u=i.ANIM_CHECKED_INDETERMINATE,d=i.ANIM_INDETERMINATE_CHECKED,l=i.ANIM_INDETERMINATE_UNCHECKED;switch(e){case n:return t===o?"":t===r?d:l;case o:return t===r?a:s;case r:return t===o?c:u;default:return t===r?d:l}},h.prototype.updateAriaChecked=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(f.strings.ARIA_CHECKED_ATTR,f.strings.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(f.strings.ARIA_CHECKED_ATTR)},h);function h(e){var t=a.call(this,i(i({},h.defaultAdapter),e))||this;return t.currentCheckState=f.strings.TRANSITION_STATE_INIT,t.currentAnimationClass="",t.animEndLatchTimer=0,t.enableAnimationEndHandler=!1,t}t.MDCCheckboxFoundation=c,t.default=c},45:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCLinearProgressFoundation=void 0;var a,c=n(10),u=n(0),d=n(46),l=(a=u.MDCFoundation,o(f,a),Object.defineProperty(f,"cssClasses",{get:function(){return d.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(f,"strings",{get:function(){return d.strings},enumerable:!1,configurable:!0}),Object.defineProperty(f,"defaultAdapter",{get:function(){return{addClass:function(){},attachResizeObserver:function(){return null},forceLayout:function(){},getWidth:function(){return 0},hasClass:function(){return!1},setBufferBarStyle:function(){return null},setPrimaryBarStyle:function(){return null},setStyle:function(){},removeAttribute:function(){},removeClass:function(){},setAttribute:function(){}}},enumerable:!1,configurable:!0}),f.prototype.init=function(){var a=this;this.determinate=!this.adapter.hasClass(d.cssClasses.INDETERMINATE_CLASS),this.adapter.addClass(d.cssClasses.ANIMATION_READY_CLASS),this.progress=0,this.buffer=1,this.observer=this.adapter.attachResizeObserver(function(e){var t,n;if(!a.determinate)try{for(var r=s(e),o=r.next();!o.done;o=r.next()){var i=o.value;i.contentRect&&a.calculateAndSetDimensions(i.contentRect.width)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),!this.determinate&&this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth())},f.prototype.setDeterminate=function(e){if(this.determinate=e,this.determinate)return this.adapter.removeClass(d.cssClasses.INDETERMINATE_CLASS),this.adapter.setAttribute(d.strings.ARIA_VALUENOW,this.progress.toString()),this.adapter.setAttribute(d.strings.ARIA_VALUEMAX,"1"),this.adapter.setAttribute(d.strings.ARIA_VALUEMIN,"0"),this.setPrimaryBarProgress(this.progress),void this.setBufferBarProgress(this.buffer);this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth()),this.adapter.addClass(d.cssClasse
1s.INDETERMINATE_CLASS),this.adapter.removeAttribute(d.strings.ARIA_VALUENOW),this.adapter.removeAttribute(d.strings.ARIA_VALUEMAX),this.adapter.removeAttribute(d.strings.ARIA_VALUEMIN),this.setPrimaryBarProgress(1),this.setBufferBarProgress(1)},f.prototype.isDeterminate=function(){return this.determinate},f.prototype.setProgress=function(e){this.progress=e,this.determinate&&(this.setPrimaryBarProgress(e),this.adapter.setAttribute(d.strings.ARIA_VALUENOW,e.toString()))},f.prototype.getProgress=function(){return this.progress},f.prototype.setBuffer=function(e){this.buffer=e,this.determinate&&this.setBufferBarProgress(e)},f.prototype.getBuffer=function(){return this.buffer},f.prototype.open=function(){this.adapter.removeClass(d.cssClasses.CLOSED_CLASS),this.adapter.removeClass(d.cssClasses.CLOSED_ANIMATION_OFF_CLASS),this.adapter.removeAttribute(d.strings.ARIA_HIDDEN)},f.prototype.close=function(){this.adapter.addClass(d.cssClasses.CLOSED_CLASS),this.adapter.setAttribute(d.strings.ARIA_HIDDEN,"true")},f.prototype.isClosed=function(){return this.adapter.hasClass(d.cssClasse
vendor: 40,549 bytes, line 1
1s.CLOSED_CLASS)},f.prototype.handleTransitionEnd=function(){this.adapter.hasClass(d.cssClasses.CLOSED_CLASS)&&this.adapter.addClass(d.cssClasses.CLOSED_ANIMATION_OFF_CLASS)},f.prototype.destroy=function(){a.prototype.destroy.call(this),this.observer&&this.observer.disconnect()},f.prototype.restartAnimation=function(){this.adapter.removeClass(d.cssClasses.ANIMATION_READY_CLASS),this.adapter.forceLayout(),this.adapter.addClass(d.cssClasses.ANIMATION_READY_CLASS)},f.prototype.setPrimaryBarProgress=function(e){var t="scaleX("+e+")",n="undefined"!=typeof window?c.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setPrimaryBarStyle(n,t)},f.prototype.setBufferBarProgress=function(e){var t=100*e+"%";this.adapter.setBufferBarStyle(d.strings.FLEX_BASIS,t)},f.prototype.calculateAndSetDimensions=function(e){var t=e*d.animationDimensionPercentages.PRIMARY_HALF,n=e*d.animationDimensionPercentages.PRIMARY_FULL,r=e*d.animationDimensionPercentages.SECONDARY_QUARTER,o=e*d.animationDimensionPercentages.SECONDARY_HALF,i=e*d.animationDimensionPercentages.SECONDARY_FULL;this.adapter.setStyle("--mdc-linear-progress-primary-half",t+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-half-neg",-t+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full",n+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full-neg",-n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter",r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter-neg",-r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half",o+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half-neg",-o+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full",i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full-neg",-i+"px"),this.restartAnimation()},f);function f(e){var t=a.call(this,i(i({},f.defaultAdapter),e))||this;return t.observer=null,t}t.MDCLinearProgressFoundation=l,t.default=l},46:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationDimensionPercentages=t.strings=t.cssClasses=void 0,t.cssClasses={CLOSED_CLASS:"mdc-linear-progress--closed",CLOSED_ANIMATION_OFF_CLASS:"mdc-linear-progress--closed-animation-off",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",REVERSED_CLASS:"mdc-linear-progress--reversed",ANIMATION_READY_CLASS:"mdc-linear-progress--animation-ready"},t.strings={ARIA_HIDDEN:"aria-hidden",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",BUFFER_BAR_SELECTOR:".mdc-linear-progress__buffer-bar",FLEX_BASIS:"flex-basis",PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar"},t.animationDimensionPercentages={PRIMARY_HALF:.8367142,PRIMARY_FULL:2.00611057,SECONDARY_QUARTER:.37651913,SECONDARY_HALF:.84386165,SECONDARY_FULL:1.60277782}},5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyPassive=void 0,t.applyPassive=function(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)}},r=function(){};e.document.addEventListener("test",r,n),e.document.removeEventListener("test",r,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}},53:function(e,t,n){"use strict";var r,u="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},o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},d=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCCheckbox=void 0;var a,s=n(10),c=n(1),l=n(5),f=n(2),h=n(6),p=n(4),C=n(26),y=n(41),v=["checked","indeterminate"],E=(a=c.MDCComponent,o(m,a),m.attachTo=function(e){return new m(e)},Object.defineProperty(m.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"checked",{get:function(){return this.getNativeControl().checked},set:function(e){this.getNativeControl().checked=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"indeterminate",{get:function(){return this.getNativeControl().indeterminate},set:function(e){this.getNativeControl().indeterminate=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"disabled",{get:function(){return this.getNativeControl().disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"value",{get:function(){return this.getNativeControl().value},set:function(e){this.getNativeControl().value=e},enumerable:!1,configurable:!0}),m.prototype.initialize=function(){var e=C.strings.DATA_INDETERMINATE_ATTR;this.getNativeControl().indeterminate="true"===this.getNativeControl().getAttribute(e),this.getNativeControl().removeAttribute(e)},m.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange=function(){e.foundation.handleChange()},this.handleAnimationEnd=function(){e.foundation.handleAnimationEnd()},this.getNativeControl().addEventListener("change",this.handleChange),this.listen(s.getCorrectEventName(window,"animationend"),this.handleAnimationEnd),this.installPropertyChangeHooks()},m.prototype.destroy=function(){this.rippleSurface.destroy(),this.getNativeControl().removeEventListener("change",this.handleChange),this.unlisten(s.getCorrectEventName(window,"animationend"),this.handleAnimationEnd),this.uninstallPropertyChangeHooks(),a.prototype.destroy.call(this)},m.prototype.getDefaultFoundation=function(){var n=this,e={addClass:function(e){return n.root.classList.add(e)},forceLayout:function(){return n.root.offsetWidth},hasNativeControl:function(){return!!n.getNativeControl()},isAttachedToDOM:function(){return Boolean(n.root.parentNode)},isChecked:function(){return n.checked},isIndeterminate:function(){return n.indeterminate},removeClass:function(e){n.root.classList.remove(e)},removeNativeControlAttr:function(e){n.getNativeControl().removeAttribute(e)},setNativeControlAttr:function(e,t){n.getNativeControl().setAttribute(e,t)},setNativeControlDisabled:function(e){n.getNativeControl().disabled=e}};return new y.MDCCheckboxFoundation(e)},m.prototype.createRipple=function(){var n=this,e=i(i({},h.MDCRipple.createAdapter(this)),{deregisterInteractionHandler:function(e,t){n.getNativeControl().removeEventListener(e,t,l.applyPassive())},isSurfaceActive:function(){return f.matches(n.getNativeControl(),":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(e,t){n.getNativeControl().addEventListener(e,t,l.applyPassive())}});return new h.MDCRipple(this.root,new p.MDCRippleFoundation(e))},m.prototype.installPropertyChangeHooks=function(){function e(e){var t=Object.getOwnPropertyDescriptor(a,e);if(!_(t))return{value:void 0};var n=t.get,r={configurable:t.configurable,enumerable:t.enumerable,get:n,set:function(e){t.set.call(i,e),o.foundation.handleChange()}};Object.defineProperty(i,e,r)}var t,n,o=this,i=this.getNativeControl(),a=Object.getPrototypeOf(i);try{for(var r=d(v),s=r.next();!s.done;s=r.next()){var c=e(s.value);if("object"===(void 0===c?"undefined":u(c)))return c.value}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},m.prototype.uninstallPropertyChangeHooks=function(){var t,e,n=this.getNativeControl(),r=Object.getPrototypeOf(n);try{for(var o=d(v),i=o.next();!i.done;i=o.next()){var a=i.value,s=Object.getOwnPropertyDescriptor(r,a);if(!_(s))return;Object.defineProperty(n,a,s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},m.prototype.getNativeControl=function(){var e=C.strings.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw new Error("Checkbox component requires a "+e+" element");return t},m);function m(){var e=null!==a&&a.apply(this,arguments)||this;return e.rippleSurface=e.createRipple(),e}function _(e){return!!e&&"function"==typeof e.set}t.MDCCheckbox=E},57:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MDCLinearProgress=void 0;var i,a=n(1),s=n(45),c=(i=a.MDCComponent,o(u,i),u.attachTo=function(e){return new u(e)},Object.defineProperty(u.prototype,"determinate",{set:function(e){this.foundation.setDeterminate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"progress",{set:function(e){this.foundation.setProgress(e)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"buffer",{set:function(e){this.foundation.setBuffer(e)},enumerable:!1,configurable:!0}),u.prototype.open=function(){this.foundation.open()},u.prototype.close=function(){this.foundation.close()},u.prototype.initialSyncWithDOM=function(){var e=this;this.root.addEventListener("transitionend",function(){e.foundation.handleTransitionEnd()})},u.prototype.getDefaultFoundation=function(){var r=this,e={addClass:function(e){r.root.classList.add(e)},forceLayout:function(){r.root.getBoundingClientRect()},setBufferBarStyle:function(e,t){var n=r.root.querySelector(s.MDCLinearProgressFoundation.strings.BUFFER_BAR_SELECTOR);n&&n.style.setProperty(e,t)},setPrimaryBarStyle:function(e,t){var n=r.root.querySelector(s.MDCLinearProgressFoundation.strings.PRIMARY_BAR_SELECTOR);n&&n.style.setProperty(e,t)},hasClass:function(e){return r.root.classList.contains(e)},removeAttribute:function(e){r.root.removeAttribute(e)},removeClass:function(e){r.root.classList.remove(e)},setAttribute:function(e,t){r.root.setAttribute(e,t)},setStyle:function(e,t){r.root.style.setProperty(e,t)},attachResizeObserver:function(e){var t=window.ResizeObserver;if(t){var n=new t(e);return n.observe(r.root),n}return null},getWidth:function(){return r.root.offsetWidth}};return new s.MDCLinearProgressFoundation(e)},u);function u(){return null!==i&&i.apply(this,arguments)||this}t.MDCLinearProgress=c},58:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.events=t.SortValue=t.strings=t.messages=t.selectors=t.dataAttributes=t.attributes=t.cssClasses=void 0,t.cssClasses={CELL:"mdc-data-table__cell",CELL_NUMERIC:"mdc-data-table__cell--numeric",CONTENT:"mdc-data-table__content",HEADER_CELL:"mdc-data-table__header-cell",HEADER_CELL_LABEL:"mdc-data-table__header-cell-label",HEADER_CELL_SORTED:"mdc-data-table__header-cell--sorted",HEADER_CELL_SORTED_DESCENDING:"mdc-data-table__header-cell--sorted-descending",HEADER_CELL_WITH_SORT:"mdc-data-table__header-cell--with-sort",HEADER_CELL_WRAPPER:"mdc-data-table__header-cell-wrapper",HEADER_ROW:"mdc-data-table__header-row",HEADER_ROW_CHECKBOX:"mdc-data-table__header-row-checkbox",IN_PROGRESS:"mdc-data-table--in-progress",LINEAR_PROGRESS:"mdc-data-table__linear-progress",PAGINATION_ROWS_PER_PAGE_LABEL:"mdc-data-table__pagination-rows-per-page-label",PAGINATION_ROWS_PER_PAGE_SELECT:"mdc-data-table__pagination-rows-per-page-select",PROGRESS_INDICATOR:"mdc-data-table__progress-indicator",ROOT:"mdc-data-table",ROW:"mdc-data-table__row",ROW_CHECKBOX:"mdc-data-table__row-checkbox",ROW_SELECTED:"mdc-data-table__row--selected",SORT_ICON_BUTTON:"mdc-data-table__sort-icon-button",SORT_STATUS_LABEL:"mdc-data-table__sort-status-label",TABLE_CONTAINER:"mdc-data-table__table-container"},t.attributes={ARIA_SELECTED:"aria-selected",ARIA_SORT:"aria-sort"},t.dataAttributes={COLUMN_ID:"data-column-id",ROW_ID:"data-row-id"},t.selectors={CONTENT:"."+t.cssClasses.CONTENT,HEADER_CELL:"."+t.cssClasses.HEADER_CELL,HEADER_CELL_WITH_SORT:"."+t.cssClasses.HEADER_CELL_WITH_SORT,HEADER_ROW:"."+t.cssClasses.HEADER_ROW,HEADER_ROW_CHECKBOX:"."+t.cssClasses.HEADER_ROW_CHECKBOX,PROGRESS_INDICATOR:"."+t.cssClasses.PROGRESS_INDICATOR,ROW:"."+t.cssClasses.ROW,ROW_CHECKBOX:"."+t.cssClasses.ROW_CHECKBOX,ROW_SELECTED:"."+t.cssClasses.ROW_SELECTED,SORT_ICON_BUTTON:"."+t.cssClasses.SORT_ICON_BUTTON,SORT_STATUS_LABEL:"."+t.cssClasses.SORT_STATUS_LABEL},t.messages={SORTED_IN_DESCENDING:"Sorted in descending order",SORTED_IN_ASCENDING:"Sorted in ascending order"},t.strings={ARIA_SELECTED:t.attributes.ARIA_SELECTED,ARIA_SORT:t.attributes.ARIA_SORT,DATA_ROW_ID_ATTR:t.dataAttributes.ROW_ID,HEADER_ROW_CHECKBOX_SELECTOR:t.selectors.HEADER_ROW_CHECKBOX,ROW_CHECKBOX_SELECTOR:t.selectors.ROW_CHECKBOX,ROW_SELECTED_SELECTOR:t.selectors.ROW_SELECTED,ROW_SELECTOR:t.selectors.ROW},(r=t.SortValue||(t.SortValue={})).ASCENDING="ascending",r.DESCENDING="descending",r.NONE="none",r.OTHER="other",t.events={ROW_CLICK:"MDCDataTable:rowClick",ROW_SELECTION_CHANGED:"MDCDataTable:rowSelectionChanged",SELECTED_ALL:"MDCDataTable:selectedAll",SORTED:"MDCDataTable:sorted",UNSELECTED_ALL:"MDCDataTable:unselectedAll"}},6:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCRipple=void 0;var c,u=n(1),d=n(5),l=n(2),f=n(4),h=s(n(3)),p=(c=u.MDCComponent,o(C,c),C.attachTo=function(e,t){void 0===t&&(t={isUnbounded:void 0});var n=new C(e);return void 0!==t.isUnbounded&&(n.unbounded=t.isUnbounded),n},C.createAdapter=function(n){return{addClass:function(e){return n.root.classList.add(e)},browserSupportsCssVars:function(){return h.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(e){return n.root.contains(e)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,d.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root.removeEventListener(e,t,d.applyPassive())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,d.applyPassive())},registerInteractionHandler:function(e,t){return n.root.addEventListener(e,t,d.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(e){return n.root.classList.remove(e)},updateCssVariable:function(e,t){return n.root.style.setProperty(e,t)}}},Object.defineProperty(C.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(e){this.isUnbounded=Boolean(e),this.setUnbounded()},enumerable:!1,configurable:!0}),C.prototype.activate=function(){this.foundation.activate()},C.prototype.deactivate=function(){this.foundation.deactivate()},C.prototype.layout=function(){this.foundation.layout()},C.prototype.getDefaultFoundation=function(){return new f.MDCRippleFoundation(C.createAdapter(this))},C.prototype.initialSyncWithDOM=function(){var e=this.root;this.isUnbounded="mdcRippleIsUnbounded"in e.dataset},C.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},C);function C(){var e=null!==c&&c.apply(this,arguments)||this;return e.disabled=!1,e}t.MDCRipple=p},7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numbers=t.strings=t.cssClasses=void 0,t.cssClasses={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"},t.strings={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"},t.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},91:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(t,n){function r(e){try{i(c.next(e))}catch(e){n(e)}}function o(e){try{i(c.throw(e))}catch(e){n(e)}}function i(e){e.done?t(e.value):function(t){return t instanceof s?t:new s(function(e){e(t)})}(e.value).then(r,o)}i((c=c.apply(e,a||[])).next())})},s=this&&this.__generator||function(n,r){var o,i,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(a=2&t[0]?i.return:t[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,t[1])).done)return a;switch(i=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,i=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],i=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCDataTableFoundation=void 0;var c,u=n(0),d=n(58),l=(c=u.MDCFoundation,o(f,c),Object.defineProperty(f,"defaultAdapter",{get:function(){return{addClass:function(){},addClassAtRowIndex:function(){},getAttributeByHeaderCellIndex:function(){return""},getHeaderCellCount:function(){return 0},getHeaderCellElements:function(){return[]},getRowCount:function(){return 0},getRowElements:function(){return[]},getRowIdAtIndex:function(){return""},getRowIndexByChildElement:function(){return 0},getSelectedRowCount:function(){return 0},getTableContainerHeight:function(){return 0},getTableHeaderHeight:function(){return 0},isCheckboxAtRowIndexChecked:function(){return!1},isHeaderRowCheckboxChecked:function(){return!1},isRowsSelectable:function(){return!1},notifyRowSelectionChanged:function(){},notifySelectedAll:function(){},notifySortAction:function(){},notifyUnselectedAll:function(){},notifyRowClick:function(){},registerHeaderRowCheckbox:function(){},registerRowCheckboxes:function(){},removeClass:function(){},removeClassAtRowIndex:function(){},removeClassNameByHeaderCellIndex:function(){},setAttributeAtRowIndex:function(){},setAttributeByHeaderCellIndex:function(){},setClassNameByHeaderCellIndex:function(){},setHeaderRowCheckboxChecked:function(){},setHeaderRowCheckboxIndeterminate:function(){},setProgressIndicatorStyles:function(){},setRowCheckboxCheckedAtIndex:function(){},setSortStatusLabelByHeaderCellIndex:function(){}}},enumerable:!1,configurable:!0}),f.prototype.layout=function(){this.adapter.isRowsSelectable()&&(this.adapter.registerHeaderRowCheckbox(),this.adapter.registerRowCheckboxes(),this.setHeaderRowCheckboxState())},f.prototype.layoutAsync=function(){return a(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return this.adapter.isRowsSelectable()?[4,this.adapter.registerHeaderRowCheckbox()]:[3,3];case 1:return e.sent(),[4,this.adapter.registerRowCheckboxes()];case 2:e.sent(),this.setHeaderRowCheckboxState(),e.label=3;case 3:return[2]}})})},f.prototype.getRows=function(){return this.adapter.getRowElements()},f.prototype.getHeaderCells=function(){return this.adapter.getHeaderCellElements()},f.prototype.setSelectedRowIds=function(e){for(var t=0;t<this.adapter.getRowCount();t++){var n=this.adapter.getRowIdAtIndex(t),r=!1;n&&0<=e.indexOf(n)&&(r=!0),this.adapter.setRowCheckboxCheckedAtIndex(t,r),this.selectRowAtIndex(t,r)}this.setHeaderRowCheckboxState()},f.prototype.getRowIds=function(){for(var e=[],t=0;t<this.adapter.getRowCount();t++)e.push(this.adapter.getRowIdAtIndex(t));return e},f.prototype.getSelectedRowIds=function(){for(var e=[],t=0;t<this.adapter.getRowCount();t++)this.adapter.isCheckboxAtRowIndexChecked(t)&&e.push(this.adapter.getRowIdAtIndex(t));return e},f.prototype.handleHeaderRowCheckboxChange=function(){for(var e=this.adapter.isHeaderRowCheckboxChecked(),t=0;t<this.adapter.getRowCount();t++)this.adapter.setRowCheckboxCheckedAtIndex(t,e),this.selectRowAtIndex(t,e);e?this.adapter.notifySelectedAll():this.adapter.notifyUnselectedAll()},f.prototype.handleRowCheckboxChange=function(e){var t=this.adapter.getRowIndexByChildElement(e.target);if(-1!==t){var n=this.adapter.isCheckboxAtRowIndexChecked(t);this.selectRowAtIndex(t,n),this.setHeaderRowCheckboxState();var r=this.adapter.getRowIdAtIndex(t);this.adapter.notifyRowSelectionChanged({rowId:r,rowIndex:t,selected:n})}},f.prototype.handleSortAction=function(e){for(var t=e.columnId,n=e.columnIndex,r=e.headerCell,o=0;o<this.adapter.getHeaderCellCount();o++)o!==n&&(this.adapter.removeClassNameByHeaderCellIndex(o,d.cssClasses.HEADER_CELL_SORTED),this.adapter.removeClassNameByHeaderCellIndex(o,d.cssClasses.HEADER_CELL_SORTED_DESCENDING),this.adapter.setAttributeByHeaderCellIndex(o,d.strings.ARIA_SORT,d.SortValue.NONE),this.adapter.setSortStatusLabelByHeaderCellIndex(o,d.SortValue.NONE));this.adapter.setClassNameByHeaderCellIndex(n,d.cssClasses.HEADER_CELL_SORTED);var i=this.adapter.getAttributeByHeaderCellIndex(n,d.strings.ARIA_SORT),a=d.SortValue.NONE;a=i===d.SortValue.ASCENDING?(this.adapter.setClassNameByHeaderCellIndex(n,d.cssClasses.HEADER_CELL_SORTED_DESCENDING),this.adapter.setAttributeByHeaderCellIndex(n,d.strings.ARIA_SORT,d.SortValue.DESCENDING),d.SortValue.DESCENDING):(i===d.SortValue.DESCENDING&&this.adapter.removeClassNameByHeaderCellIndex(n,d.cssClasses.HEADER_CELL_SORTED_DESCENDING),this.adapter.setAttributeByHeaderCellIndex(n,d.strings.ARIA_SORT,d.SortValue.ASCENDING),d.SortValue.ASCENDING),this.adapter.setSortStatusLabelByHeaderCellIndex(n,a),this.adapter.notifySortAction({columnId:t,columnIndex:n,headerCell:r,sortValue:a})},f.prototype.handleRowClick=function(e){var t=e.rowId,n=e.row;this.adapter.notifyRowClick({rowId:t,row:n})},f.prototype.showProgress=function(){var e=this.adapter.getTableHeaderHeight(),t=this.adapter.getTableContainerHeight()-e,n=e;this.adapter.setProgressIndicatorStyles({height:t+"px",top:n+"px"}),this.adapter.addClass(d.cssClasses.IN_PROGRESS)},f.prototype.hideProgress=function(){this.adapter.removeClass(d.cssClasses.IN_PROGRESS)},f.prototype.setHeaderRowCheckboxState=function(){0===this.adapter.getSelectedRowCount()?(this.adapter.setHeaderRowCheckboxChecked(!1),this.adapter.setHeaderRowCheckboxIndeterminate(!1)):this.adapter.getSelectedRowCount()===this.adapter.getRowCount()?(this.adapter.setHeaderRowCheckboxChecked(!0),this.adapter.setHeaderRowCheckboxIndeterminate(!1)):(this.adapter.setHeaderRowCheckboxIndeterminate(!0),this.adapter.setHeaderRowCheckboxChecked(!1))},f.prototype.selectRowAtIndex=function(e,t){t?(this.adapter.addClassAtRowIndex(e,d.cssClasses.ROW_SELECTED),this.adapter.setAttributeAtRowIndex(e,d.strings.ARIA_SELECTED,"true")):(this.adapter.removeClassAtRowIndex(e,d.cssClasses.ROW_SELECTED),this.adapter.setAttributeAtRowIndex(e,d.strings.ARIA_SELECTED,"false"))},f);function f(e){return c.call(this,i(i({},f.defaultAdapter),e))||this}t.MDCDataTableFoundation=l}},o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=171);function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,r});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/dialog",[],e):"object"==typeof exports?exports.dialog=e():(t.mdc=t.mdc||{},t.mdc.dialog=e())}(this,function(){return i={},o.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,o=t.length;n<i;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),a=(s.attachTo=function(t){return new s(t,new i.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},s);function s(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,r([],o(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},17:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrame=void 0;var i=(o.prototype.request=function(e,n){var i=this;this.cancel(e);var t=requestAnimationFrame(function(t){i.rafIDs.delete(e),n(t)});this.rafIDs.set(e,t)},o.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},o.prototype.cancelAll=function(){var n=this;this.rafIDs.forEach(function(t,e){n.cancel(e)})},o.prototype.getQueue=function(){var n=[];return this.rafIDs.forEach(function(t,e){n.push(e)}),n},o);function o(){this.rafIDs=new Map}e.AnimationFrame=i},175:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.util=void 0;var s=r(n(92));e.util=s,a(n(176),e),a(n(177),e),a(n(94),e),a(n(93),e),a(n(178),e)},176:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},177:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return a(e,t),e},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCDialog=void 0;var u,l=n(1),d=n(21),p=n(2),f=n(6),h=n(93),v=s(n(92)),m=h.MDCDialogFoundation.strings,y=(u=l.MDCComponent,o(g,u),Object.defineProperty(g.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"escapeKeyAction",{get:function(){return this.foundation.getEscapeKeyAction()},set:function(t){this.foundation.setEscapeKeyAction(t)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"scrimClickAction",{get:function(){return this.foundation.getScrimClickAction()},set:function(t){this.foundation.setScrimClickAction(t)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"autoStackButtons",{get:function(){return this.foundation.getAutoStackButtons()},set:function(t){this.foundation.setAutoStackButtons(t)},enumerable:!1,configurable:!0}),g.attachTo=function(t){return new g(t)},g.prototype.initialize=function(t){var e,n;void 0===t&&(t=function(t,e){return new d.FocusTrap(t,e)});var i=this.root.querySelector(m.CONTAINER_SELECTOR);if(!i)throw new Error("Dialog component requires a "+m.CONTAINER_SELECTOR+" container element");this.container=i,this.content=this.root.querySelector(m.CONTENT_SELECTOR),this.buttons=[].slice.call(this.root.querySelectorAll(m.BUTTON_SELECTOR)),this.defaultButton=this.root.querySelector("["+m.BUTTON_DEFAULT_ATTRIBUTE+"]"),this.focusTrapFactory=t,this.buttonRipples=[];try{for(var o=c(this.buttons),r=o.next();!r.done;r=o.next()){var a=r.value;this.buttonRipples.push(new f.MDCRipple(a))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}},g.prototype.initialSyncWithDOM=function(){var t=this;this.focusTrap=v.createFocusTrapInstance(this.container,this.focusTrapFactory,this.getInitialFocusEl()||void 0),this.handleClick=this.foundation.handleClick.bind(this.foundation),this.handleKeydown=this.foundation.handleKeydown.bind(this.foundation),this.handleDocumentKeydown=this.foundation.handleDocumentKeydown.bind(this.foundation),this.handleOpening=function(){document.addEventListener("keydown",t.handleDocumentKeydown)},this.handleClosing=function(){document.removeEventListener("keydown",t.handleDocumentKeydown)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown),this.listen(m.OPENING_EVENT,this.handleOpening),this.listen(m.CLOSING_EVENT,this.handleClosing)},g.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),this.unlisten(m.OPENING_EVENT,this.handleOpening),this.unlisten(m.CLOSING_EVENT,this.handleClosing),this.handleClosing(),this.buttonRipples.forEach(function(t){t.destroy()}),u.prototype.destroy.call(this)},g.prototype.layout=function(){this.foundation.layout()},g.prototype.open=function(){this.foundation.open()},g.prototype.close=function(t){void 0===t&&(t=""),this.foundation.close(t)},g.prototype.getDefaultFoundation=function(){var n=this,t={addBodyClass:function(t){return document.body.classList.add(t)},addClass:function(t){return n.root.classList.add(t)},areButtonsStacked:function(){return v.areTopsMisaligned(n.buttons)},clickDefaultButton:function(){n.defaultButton&&!n.defaultButton.disabled&&n.defaultButton.click()},eventTargetMatches:function(t,e){return!!t&&p.matches(t,e)},getActionFromEvent:function(t){if(!t.target)return"";var e=p.closest(t.target,"["+m.ACTION_ATTRIBUTE+"]");return e&&e.getAttribute(m.ACTION_ATTRIBUTE)},getInitialFocusEl:function(){return n.getInitialFocusEl()},hasClass:function(t){return n.root.classList.contains(t)},isContentScrollable:function(){return v.isScrollable(n.content)},notifyClosed:function(t){return n.emit(m.CLOSED_EVENT,t?{action:t}:{})},notifyClosing:function(t){return n.emit(m.CLOSING_EVENT,t?{action:t}:{})},notifyOpened:function(){return n.emit(m.OPENED_EVENT,{})},notifyOpening:function(){return n.emit(m.OPENING_EVENT,{})},releaseFocus:function(){n.focusTrap.releaseFocus()},removeBodyClass:function(t){return document.body.classList.remove(t)},removeClass:function(t){return n.root.classList.remove(t)},reverseButtons:function(){n.buttons.reverse(),n.buttons.forEach(function(t){t.parentElement.appendChild(t)})},trapFocus:function(){n.focusTrap.trapFocus()},registerContentEventHandler:function(t,e){n.content instanceof HTMLElement&&n.content.addEventListener(t,e)},deregisterContentEventHandler:function(t,e){n.content instanceof HTMLElement&&n.content.removeEventListener(t,e)},isScrollableContentAtTop:function(){return v.isScrollAtTop(n.content)},isScrollableContentAtBottom:function(){return v.isScrollAtBottom(n.content)},registerWindowEventHandler:function(t,e){window.addEventListener(t,e)},deregisterWindowEventHandler:function(t,e){window.removeEventListener(t,e)}};return new h.MDCDialogFoundation(t)},g.prototype.getInitialFocusEl=function(){return this.root.querySelector("["+m.INITIAL_FOCUS_ATTRIBUTE+"]")},g);function g(){return null!==u&&u.apply(this,arguments)||this}e.MDCDialog=y},178:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.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}},21:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FocusTrap=void 0;var r="mdc-dom-focus-sentinel",i=(o.prototype.trapFocus=function(){var t=this.getFocusableElements(this.root);if(0===t.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(t,this.options.initialFocusEl)},o.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+r)).forEach(function(t){t.parentElement.removeChild(t)}),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},o.prototype.wrapTabFocus=function(e){var n=this,t=this.createSentinel(),i=this.createSentinel();t.addEventListener("focus",function(){var t=n.getFocusableElements(e);0<t.length&&t[t.length-1].focus()}),i.addEventListener("focus",function(){var t=n.getFocusableElements(e);0<t.length&&t[0].focus()}),e.insertBefore(t,e.children[0]),e.appendChild(i)},o.prototype.focusInitialElement=function(t,e){var n=0;e&&(n=Math.max(t.indexOf(e),0)),t[n].focus()},o.prototype.getFocusableElements=function(t){return[].slice.call(t.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(t){var e="true"===t.getAttribute("aria-disabled")||null!=t.getAttribute("disabled")||null!=t.getAttribute("hidden")||"true"===t.getAttribute("aria-hidden"),n=0<=t.tabIndex&&0<t.getBoundingClientRect().width&&!t.classList.contains(r)&&!e,i=!1;if(n){var o=getComputedStyle(t);i="none"===o.display||"hidden"===o.visibility}return n&&!i})},o.prototype.createSentinel=function(){var t=document.createElement("div");return t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden","true"),t.classList.add(r),t},o);function o(t,e){void 0===e&&(e={}),this.root=t,this.options=e,this.elFocusedBeforeTrapFocus=null}e.FocusTrap=i},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof a&&!e)return a;
vendor: 4,196 bytes, line 1
1if(!(i&&"function"==typeof i.supports))return!1;var o=i.supports("--css-vars","yes"),r=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=o||r,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var i,o,r=e.x,a=e.y,s=r+n.left,c=a+n.top;if("touchstart"===t.type){var u=t;i=u.changedTouches[0].pageX-s,o=u.changedTouches[0].pageY-c}else{var l=t;i=l.pageX-s,o=l.pageY-c}return{x:i,y:o}}},4:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,c=n(0),u=n(7),l=n(3),d=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],f=[],h=(s=c.MDCFoundation,o(v,s),Object.defineProperty(v,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=v.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasses.FG_DEACTIVATION));var e=v.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasse
vendor: 4,420 bytes, line 1
1s.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var i=a(d),o=i.next();!o.done;o=i.next()){var r=o.value;this.adapter.registerInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=a(p),o=i.next();!o.done;o=i.next()){var r=o.value;this.adapter.registerDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(d),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(p),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,n=v.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,o=v.cssClasses,r=o.FG_DEACTIVATION,a=o.FG_ACTIVATION,s=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var l=this.getFgTranslationCoordinates(),d=l.startPoint,p=l.endPoint;c=d.x+"px, "+d.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,c),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(r),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?l.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect
vendor: 4,645 bytes, line 1
1()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,o=n.isActivated;!i&&o||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},u.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=r({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var n=Math.floor(e*v.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()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},v);function v(t){var e=s.call(this,r(r({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return a(e,t),e};
vendor: 14,067 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var c,u=n(1),l=n(5),d=n(2),p=n(4),f=s(n(3)),h=(c=u.MDCComponent,o(v,c),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,l.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,l.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return d.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,l.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,l.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new p.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==c&&c.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},92:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.areTopsMisaligned=e.isScrollAtBottom=e.isScrollAtTop=e.isScrollable=e.createFocusTrapInstance=void 0,e.createFocusTrapInstance=function(t,e,n){return e(t,{initialFocusEl:n})},e.isScrollable=function(t){return!!t&&t.scrollHeight>t.offsetHeight},e.isScrollAtTop=function(t){return!!t&&0===t.scrollTop},e.isScrollAtBottom=function(t){return!!t&&Math.ceil(t.scrollHeight-t.scrollTop)===t.clientHeight},e.areTopsMisaligned=function(t){var e=new Set;return[].forEach.call(t,function(t){return e.add(t.offsetTop)}),1<e.size}},93:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCDialogFoundation=void 0;var a,s,c=n(17),u=n(0),l=n(94);(s=a=a||{}).POLL_SCROLL_POS="poll_scroll_position",s.POLL_LAYOUT_CHANGE="poll_layout_change";var d,p=(d=u.MDCFoundation,o(f,d),Object.defineProperty(f,"cssClasses",{get:function(){return l.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(f,"strings",{get:function(){return l.strings},enumerable:!1,configurable:!0}),Object.defineProperty(f,"numbers",{get:function(){return l.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(f,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){},registerContentEventHandler:function(){},deregisterContentEventHandler:function(){},isScrollableContentAtTop:function(){return!1},isScrollableContentAtBottom:function(){return!1},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),f.prototype.init=function(){this.adapter.hasClass(l.cssClasses.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(l.cssClasses.FULLSCREEN)},f.prototype.destroy=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.handleAnimationTimerEnd()),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.animFrame.cancelAll(),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)},f.prototype.open=function(t){var e=this;this.dialogOpen=!0,this.adapter.notifyOpening(),this.adapter.addClass(l.cssClasses.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),t&&t.isAboveFullscreenDialog&&this.adapter.addClass(l.cssClasses.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame(function(){e.adapter.addClass(l.cssClasses.OPEN),e.adapter.addBodyClass(l.cssClasses.SCROLL_LOCK),e.layout(),e.animationTimer=setTimeout(function(){e.handleAnimationTimerEnd(),e.adapter.trapFocus(e.adapter.getInitialFocusEl()),e.adapter.notifyOpened()},l.numbers.DIALOG_ANIMATION_OPEN_TIME_MS)})},f.prototype.close=function(t){var e=this;void 0===t&&(t=""),this.dialogOpen&&(this.dialogOpen=!1,this.adapter.notifyClosing(t),this.adapter.addClass(l.cssClasses.CLOSING),this.adapter.removeClass(l.cssClasses.OPEN),this.adapter.removeBodyClass(l.cssClasses.SCROLL_LOCK),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=setTimeout(function(){e.adapter.releaseFocus(),e.handleAnimationTimerEnd(),e.adapter.notifyClosed(t)},l.numbers.DIALOG_ANIMATION_CLOSE_TIME_MS))},f.prototype.showSurfaceScrim=function(){var t=this;this.adapter.addClass(l.cssClasses.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame(function(){t.adapter.addClass(l.cssClasses.SURFACE_SCRIM_SHOWN)})},f.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(l.cssClasses.SURFACE_SCRIM_SHOWN),this.adapter.addClass(l.cssClasses.SURFACE_SCRIM_HIDING)},f.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(l.cssClasses.SURFACE_SCRIM_HIDING),this.adapter.removeClass(l.cssClasses.SURFACE_SCRIM_SHOWING)},f.prototype.isOpen=function(){return this.dialogOpen},f.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction},f.prototype.setEscapeKeyAction=function(t){this.escapeKeyAction=t},f.prototype.getScrimClickAction=function(){return this.scrimClickAction},f.prototype.setScrimClickAction=function(t){this.scrimClickAction=t},f.prototype.getAutoStackButtons=function(){return this.autoStackButtons},f.prototype.setAutoStackButtons=function(t){this.autoStackButtons=t},f.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector},f.prototype.setSuppressDefaultPressSelector=function(t){this.suppressDefaultPressSelector=t},f.prototype.layout=function(){var t=this;this.animFrame.request(a.POLL_LAYOUT_CHANGE,function(){t.layoutInternal()})},f.prototype.handleClick=function(t){if(this.adapter.eventTargetMatches(t.target,l.strings.SCRIM_SELECTOR)&&""!==this.scrimClickAction)this.close(this.scrimClickAction);else{var e=this.adapter.getActionFromEvent(t);e&&this.close(e)}},f.prototype.handleKeydown=function(t){var e="Enter"===t.key||13===t.keyCode;if(e&&!this.adapter.getActionFromEvent(t)){var n=t.composedPath?t.composedPath()[0]:t.target,i=!this.suppressDefaultPressSelector||!this.adapter.eventTargetMatches(n,this.suppressDefaultPressSelector);e&&i&&this.adapter.clickDefaultButton()}},f.prototype.handleDocumentKeydown=function(t){"Escape"!==t.key&&27!==t.keyCode||""===this.escapeKeyAction||this.close(this.escapeKeyAction)},f.prototype.handleScrollEvent=function(){var t=this;this.animFrame.request(a.POLL_SCROLL_POS,function(){t.toggleScrollDividerHeader(),t.toggleScrollDividerFooter()})},f.prototype.layoutInternal=function(){this.autoStackButtons&&this.detectStackedButtons(),this.toggleScrollableClasses()},f.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(l.cssClasses.OPENING),this.adapter.removeClass(l.cssClasses.CLOSING)},f.prototype.runNextAnimationFrame=function(t){var e=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(function(){e.animationFrame=0,clearTimeout(e.animationTimer),e.animationTimer=setTimeout(t,0)})},f.prototype.detectStackedButtons=function(){this.adapter.removeClass(l.cssClasses.STACKED);var t=this.adapter.areButtonsStacked();t&&this.adapter.addClass(l.cssClasses.STACKED),t!==this.areButtonsStacked&&(this.adapter.reverseButtons(),this.areButtonsStacked=t)},f.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(l.cssClasses.SCROLLABLE),this.adapter.isContentScrollable()&&(this.adapter.addClass(l.cssClasses.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader(),this.toggleScrollDividerFooter()))},f.prototype.toggleScrollDividerHeader=function(){this.adapter.isScrollableContentAtTop()?this.adapter.hasClass(l.cssClasses.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(l.cssClasses.SCROLL_DIVIDER_HEADER):this.adapter.addClass(l.cssClasses.SCROLL_DIVIDER_HEADER)},f.prototype.toggleScrollDividerFooter=function(){this.adapter.isScrollableContentAtBottom()?this.adapter.hasClass(l.cssClasses.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(l.cssClasses.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(l.cssClasses.SCROLL_DIVIDER_FOOTER)},f);function f(t){var e=d.call(this,r(r({},f.defaultAdapter),t))||this;return e.dialogOpen=!1,e.isFullscreen=!1,e.animationFrame=0,e.animationTimer=0,e.escapeKeyAction=l.strings.CLOSE_ACTION,e.scrimClickAction=l.strings.CLOSE_ACTION,e.autoStackButtons=!0,e.areButtonsStacked=!1,e.suppressDefaultPressSelector=l.strings.SUPPRESS_DEFAULT_PRESS_SELECTOR,e.animFrame=new c.AnimationFrame,e.contentScrollHandler=function(){e.handleScrollEvent()},e.windowResizeHandler=function(){e.layout()},e.windowOrientationChangeHandler=function(){e.layout()},e}e.MDCDialogFoundation=p,e.default=p},94:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"},e.strings={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_DEFAULT_ATTRIBUTE:"data-mdc-dialog-button-default",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DESTROY_ACTION:"destroy",INITIAL_FOCUS_ATTRIBUTE:"data-mdc-dialog-initial-focus",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},e.numbers={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150}}},o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
vendor: 4,439 bytes, line 1
1),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=175);function o(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,i});!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@material/dom",[],t):"object"==typeof exports?exports.dom=t():(e.mdc=e.mdc||{},e.mdc.dom=t())}(this,function(){return o={},r.m=n={179:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ponyfill=t.keyboard=t.focusTrap=t.events=void 0;var a=i(n(5));t.events=a;var s=i(n(21));t.focusTrap=s;var u=i(n(8));t.keyboard=u;var c=i(n(2));t.ponyfill=c},2:function(e,t,n){"use strict";function o(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.estimateScrollWidth=t.matches=t.closest=void 0,t.closest=function(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(o(n,t))return n;n=n.parentElement}return null},t.matches=o,t.estimateScrollWidth=function(e){var t=e;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 o=n.scrollWidth;return document.documentElement.removeChild(n),o}},21:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FocusTrap=void 0;var i="mdc-dom-focus-sentinel",o=(r.prototype.trapFocus=function(){var e=this.getFocusableElements(this.root);if(0===e.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(e,this.options.initialFocusEl)},r.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+i)).forEach(function(e){e.parentElement.removeChild(e)}),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},r.prototype.wrapTabFocus=function(t){var n=this,e=this.createSentinel(),o=this.createSentinel();e.addEventListener("focus",function(){var e=n.getFocusableElements(t);0<e.length&&e[e.length-1].focus()}),o.addEventListener("focus",function(){var e=n.getFocusableElements(t);0<e.length&&e[0].focus()}),t.insertBefore(e,t.children[0]),t.appendChild(o)},r.prototype.focusInitialElement=function(e,t){var n=0;t&&(n=Math.max(e.indexOf(t),0)),e[n].focus()},r.prototype.getFocusableElements=function(e){return[].slice.call(e.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(e){var t="true"===e.getAttribute("aria-disabled")||null!=e.getAttribute("disabled")||null!=e.getAttribute("hidden")||"true"===e.getAttribute("aria-hidden"),n=0<=e.tabIndex&&0<e.getBoundingClientRect().width&&!e.classList.contains(i)&&!t,o=!1;if(n){var r=getComputedStyle(e);o="none"===r.display||"hidden"===r.visibility}return n&&!o})},r.prototype.createSentinel=function(){var e=document.createElement("div");return e.setAttribute("tabindex","0"),e.setAttribute("aria-hidden","true"),e.classList.add(i),e},r);function r(e,t){void 0===t&&(t={}),this.root=e,this.options=t,this.elFocusedBeforeTrapFocus=null}t.FocusTrap=o},5:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.applyPassive=void 0,t.applyPassive=function(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)}},o=function(){};e.document.addEventListener("test",o,n),e.document.removeEventListener("test",o,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}},8:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isNavigationEvent=o.normalizeKey=o.KEY=void 0,o.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var r=new Set;r.add(o.KEY.BACKSPACE),r.add(o.KEY.ENTER),r.add(o.KEY.SPACEBAR),r.add(o.KEY.PAGE_UP),r.add(o.KEY.PAGE_DOWN),r.add(o.KEY.END),r.add(o.KEY.HOME),r.add(o.KEY.ARROW_LEFT),r.add(o.KEY.ARROW_UP),r.add(o.KEY.ARROW_RIGHT),r.add(o.KEY.ARROW_DOWN),r.add(o.KEY.DELETE),r.add(o.KEY.ESCAPE),r.add(o.KEY.TAB);var n=8,i=13,a=32,s=33,u=34,c=35,d=36,l=37,f=38,E=39,p=40,v=46,m=27,h=9,b=new Map;b.set(n,o.KEY.BACKSPACE),b.set(i,o.KEY.ENTER),b.set(a,o.KEY.SPACEBAR),b.set(s,o.KEY.PAGE_UP),b.set(u,o.KEY.PAGE_DOWN),b.set(c,o.KEY.END),b.set(d,o.KEY.HOME),b.set(l,o.KEY.ARROW_LEFT),b.set(f,o.KEY.ARROW_UP),b.set(E,o.KEY.ARROW_RIGHT),b.set(p,o.KEY.ARROW_DOWN),b.set(v,o.KEY.DELETE),b.set(m,o.KEY.ESCAPE),b.set(h,o.KEY.TAB);var A=new Set;function y(e){var t=e.key;if(r.has(t))return t;var n=b.get(e.keyCode);return n||o.KEY.UNKNOWN}A.add(o.KEY.PAGE_UP),A.add(o.KEY.PAGE_DOWN),A.add(o.KEY.END),A.add(o.KEY.HOME),A.add(o.KEY.ARROW_LEFT),A.add(o.KEY.ARROW_UP),A.add(o.KEY.ARROW_RIGHT),A.add(o.KEY.ARROW_DOWN),o.normalizeKey=y,o.isNavigationEvent=function(e){return A.has(y(e))}}},r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=179);function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var n,o});!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@material/drawer",[],t):"object"==typeof exports?exports.drawer=t():(e.mdc=e.mdc||{},e.mdc.drawer=t())}(this,function(){return i={},s.m=n={0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCFoundation=void 0;var i=(Object.defineProperty(s,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),s.prototype.init=function(){},s.prototype.destroy=function(){},s);function s(e){void 0===e&&(e={}),this.adapter=e}t.MDCFoundation=i,t.default=i},1:function(e,t,n){"use strict";var s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,r=n.call(e),o=[];try{for(;
vendor: 3,108 bytes, line 1
1(void 0===t||0<t--)&&!(i=r.next()).done;)o.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},r=this&&this.__spreadArray||function(e,t){for(var n=0,i=t.length,s=e.length;n<i;n++,s++)e[s]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCComponent=void 0;var i=n(0),o=(a.attachTo=function(e){return new a(e,new i.MDCFoundation({}))},a.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},a.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},a.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)},a);function a(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=e,this.initialize.apply(this,r([],s(n))),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}t.MDCComponent=o,t.default=o},13:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultEvent=void 0;var i=["input","button","textarea","select"];t.preventDefaultEvent=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===i.indexOf(n)&&e.preventDefault()}}},14:function(e,t,n){"use strict";var i,s=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,r=n.call(e),o=[];try{for(;
vendor: 12,610 bytes, line 1
1(void 0===t||0<t--)&&!(i=r.next()).done;)o.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},h=this&&this.__spreadArray||function(e,t){for(var n=0,i=t.length,s=e.length;n<i;n++,s++)e[s]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCListFoundation=void 0;var u=n(0),_=n(8),A=n(9),b=n(13),x=c(n(23));var d=["Alt","Control","Meta","Shift"];function v(t){var n=new Set(t?d.filter(function(e){return t.getModifierState(e)}):[]);return function(e){return e.every(function(e){return n.has(e)})&&e.length===n.size}}var f,p=(f=u.MDCFoundation,s(I,f),Object.defineProperty(I,"strings",{get:function(){return A.strings},enumerable:!1,configurable:!0}),Object.defineProperty(I,"cssClasses",{get:function(){return A.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(I,"numbers",{get:function(){return A.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(I,"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(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),I.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()))},I.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},I.prototype.setWrapFocus=function(e){this.wrapFocus=e},I.prototype.setVerticalOrientation=function(e){this.isVertical=e},I.prototype.setSingleSelection=function(e){(this.isSingleSelectionList=e)&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},I.prototype.setDisabledItemsFocusable=function(e){this.areDisabledItemsFocusable=e},I.prototype.maybeInitializeSingleSelection=function(){var e=this.getSelectedIndexFromDOM();e!==A.numbers.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,A.cssClasses.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=e)},I.prototype.getSelectedIndexFromDOM=function(){for(var e=A.numbers.UNSET_INDEX,t=this.adapter.getListItemCount(),n=0;n<t;n++){var i=this.adapter.listItemAtIndexHasClass(n,A.cssClasses.LIST_ITEM_SELECTED_CLASS),s=this.adapter.listItemAtIndexHasClass(n,A.cssClasses.LIST_ITEM_ACTIVATED_CLASS);if(i||s){e=n;break}}return e},I.prototype.setHasTypeahead=function(e){(this.hasTypeahead=e)&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},I.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&x.isTypingInProgress(this.typeaheadState)},I.prototype.setUseActivatedClass=function(e){this.useActivatedClass=e},I.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr=e},I.prototype.getSelectedIndex=function(){return this.selectedIndex},I.prototype.setSelectedIndex=function(e,t){void 0===t&&(t={}),this.isIndexValid(e)&&(this.isCheckboxList?this.setCheckboxAtIndex(e,t):this.isRadioList?this.setRadioAtIndex(e,t):this.setSingleSelectionAtIndex(e,t))},I.prototype.handleFocusIn=function(e){0<=e&&(this.focusedItemIndex=e,this.adapter.setAttributeForElementIndex(e,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(e,"0"))},I.prototype.handleFocusOut=function(e){var t=this;0<=e&&(this.adapter.setAttributeForElementIndex(e,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(e,"-1")),setTimeout(function(){t.adapter.isFocusInsideList()||t.setTabindexToFirstSelectedOrFocusedItem()},0)},I.prototype.isIndexDisabled=function(e){return this.adapter.listItemAtIndexHasClass(e,A.cssClasses.LIST_ITEM_DISABLED_CLASS)},I.prototype.handleKeydown=function(e,t,n){var i,s=this,r="ArrowLeft"===_.normalizeKey(e),o="ArrowUp"===_.normalizeKey(e),a="ArrowRight"===_.normalizeKey(e),c="ArrowDown"===_.normalizeKey(e),u="Home"===_.normalizeKey(e),d="End"===_.normalizeKey(e),l="Enter"===_.normalizeKey(e),h="Spacebar"===_.normalizeKey(e),f=this.isVertical&&c||!this.isVertical&&a,p=this.isVertical&&o||!this.isVertical&&r,I="A"===e.key||"a"===e.key,E=v(e);if(this.adapter.isRootFocused()){if((p||d)&&E([])?(e.preventDefault(),this.focusLastElement()):(f||u)&&E([])?(e.preventDefault(),this.focusFirstElement()):p&&E(["Shift"])&&this.isCheckboxList?(e.preventDefault(),-1!==(y=this.focusLastElement())&&this.setSelectedIndexOnAction(y,!1)):f&&E(["Shift"])&&this.isCheckboxList&&(e.preventDefault(),-1!==(y=this.focusFirstElement())&&this.setSelectedIndexOnAction(y,!1)),this.hasTypeahead){var m={event:e,focusItemAtIndex:function(e){s.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return s.isIndexDisabled(e)}};x.handleKeydown(m,this.typeaheadState)}}else{var C=this.adapter.getFocusedElementIndex();if(!(-1===C&&(C=n)<0)){if(f&&E([]))b.preventDefaultEvent(e),this.focusNextElement(C);else if(p&&E([]))b.preventDefaultEvent(e),this.focusPrevElement(C);else if(f&&E(["Shift"])&&this.isCheckboxList)b.preventDefaultEvent(e),-1!==(y=this.focusNextElement(C))&&this.setSelectedIndexOnAction(y,!1);else if(p&&E(["Shift"])&&this.isCheckboxList){var y;b.preventDefaultEvent(e),-1!==(y=this.focusPrevElement(C))&&this.setSelectedIndexOnAction(y,!1)}else if(u&&E([]))b.preventDefaultEvent(e),this.focusFirstElement();else if(d&&E([]))b.preventDefaultEvent(e),this.focusLastElement();else if(u&&E(["Control","Shift"])&&this.isCheckboxList){if(b.preventDefaultEvent(e),this.isIndexDisabled(C))return;this.focusFirstElement(),this.toggleCheckboxRange(0,C,C)}else if(d&&E(["Control","Shift"])&&this.isCheckboxList){if(b.preventDefaultEvent(e),this.isIndexDisabled(C))return;this.focusLastElement(),this.toggleCheckboxRange(C,this.adapter.getListItemCount()-1,C)}else if(I&&E(["Control"])&&this.isCheckboxList)e.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===A.numbers.UNSET_INDEX?[]:this.selectedIndex,!0);else if((l||h)&&E([])){if(t){if((S=e.target)&&"A"===S.tagName&&l)return;if(b.preventDefaultEvent(e),this.isIndexDisabled(C))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(C,!1),this.adapter.notifyAction(C))}}else if((l||h)&&E(["Shift"])&&this.isCheckboxList){var S;if((S=e.target)&&"A"===S.tagName&&l)return;if(b.preventDefaultEvent(e),this.isIndexDisabled(C))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:C,C,C),this.adapter.notifyAction(C))}this.hasTypeahead&&(m={event:e,focusItemAtIndex:function(e){s.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return s.isIndexDisabled(e)}},x.handleKeydown(m,this.typeaheadState))}}},I.prototype.handleClick=function(e,t,n){var i,s=v(n);e!==A.numbers.UNSET_INDEX&&(this.isIndexDisabled(e)||(s([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(e,t),this.adapter.notifyAction(e)):this.isCheckboxList&&s(["Shift"])&&(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:e,e,e),this.adapter.notifyAction(e))))},I.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e,i=null;do{if(t<=++n){if(!this.wrapFocus)return e;n=0}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},I.prototype.focusPrevElement=function(e){var t=this.adapter.getListItemCount(),n=e,i=null;do{if(--n<0){if(!this.wrapFocus)return e;n=t-1}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},I.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},I.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},I.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},I.prototype.setEnabled=function(e,t){this.isIndexValid(e,!1)&&(t?(this.adapter.removeClassForElementIndex(e,A.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,A.strings.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,A.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,A.strings.ARIA_DISABLED,"true")))},I.prototype.setSingleSelectionAtIndex=function(e,t){if(void 0===t&&(t={}),this.selectedIndex!==e||t.forceUpdate){var n=A.cssClasses.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=A.cssClasses.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==A.numbers.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(e),this.setTabindexAtIndex(e),e!==A.numbers.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,n),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e])}},I.prototype.setAriaForSingleSelectionAtIndex=function(e){this.selectedIndex===A.numbers.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(e,A.strings.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue,n=t?A.strings.ARIA_CURRENT:A.strings.ARIA_SELECTED;if(this.selectedIndex!==A.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),e!==A.numbers.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},I.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?A.strings.ARIA_SELECTED:A.strings.ARIA_CHECKED},I.prototype.setRadioAtIndex=function(e,t){void 0===t&&(t={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex===e&&!t.forceUpdate||(this.selectedIndex!==A.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(e,n,"true"),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e]))},I.prototype.setCheckboxAtIndex=function(e,t){void 0===t&&(t={});for(var n=this.selectedIndex,i=t.isUserInteraction?new Set(n===A.numbers.UNSET_INDEX?[]:n):null,s=this.getSelectionAttribute(),r=[],o=0;o<this.adapter.getListItemCount();o++){var a=null==i?void 0:i.has(o),c=0<=e.indexOf(o);c!==a&&r.push(o),this.adapter.setCheckedCheckboxOrRadioAtIndex(o,c),this.adapter.setAttributeForElementIndex(o,s,c?"true":"false")}this.selectedIndex=e,t.isUserInteraction&&r.length&&this.adapter.notifySelectionChange(r)},I.prototype.toggleCheckboxRange=function(e,t,n){this.lastSelectedIndex=n;for(var i=new Set(this.selectedIndex===A.numbers.UNSET_INDEX?[]:this.selectedIndex),s=!(null==i?void 0:i.has(n)),r=l([e,t].sort(),2),o=r[0],a=r[1],c=this.getSelectionAttribute(),u=[],d=o;d<=a;d++)this.isIndexDisabled(d)||s!==i.has(d)&&(u.push(d),this.adapter.setCheckedCheckboxOrRadioAtIndex(d,s),this.adapter.setAttributeForElementIndex(d,c,""+s),s?i.add(d):i.delete(d));u.length&&(this.selectedIndex=h([],l(i)),this.adapter.notifySelectionChange(u))},I.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===A.numbers.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):0<=this.focusedItemIndex&&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!==A.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},I.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},I.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},I.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList(
vendor: 4,792 bytes, line 1
1)?"number"==typeof this.selectedIndex&&this.selectedIndex!==A.numbers.UNSET_INDEX?this.selectedIndex:function(e){return e instanceof Array}(this.selectedIndex)&&0<this.selectedIndex.length?this.selectedIndex.reduce(function(e,t){return Math.min(e,t)}):0:Math.max(this.focusedItemIndex,0)},I.prototype.isIndexValid=function(e,t){var n=this;if(void 0===t&&(t=!0),e instanceof Array){if(!this.isCheckboxList&&t)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some(function(e){return n.isIndexInRange(e)})}if("number"!=typeof e)return!1;if(this.isCheckboxList&&t)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange(e)||this.isSingleSelectionList&&e===A.numbers.UNSET_INDEX},I.prototype.isIndexInRange=function(e){var t=this.adapter.getListItemCount();return 0<=e&&e<t},I.prototype.setSelectedIndexOnAction=function(e,t){this.lastSelectedIndex=e,this.isCheckboxList?(this.toggleCheckboxAtIndex(e,t),this.adapter.notifySelectionChange([e])):this.setSelectedIndex(e,{isUserInteraction:!0})},I.prototype.toggleCheckboxAtIndex=function(t,e){var n,i=this.getSelectionAttribute(),s=this.adapter.isCheckboxCheckedAtIndex(t);e?n=s:(n=!s,this.adapter.setCheckedCheckboxOrRadioAtIndex(t,n)),this.adapter.setAttributeForElementIndex(t,i,n?"true":"false");var r=this.selectedIndex===A.numbers.UNSET_INDEX?[]:this.selectedIndex.slice();n?r.push(t):r=r.filter(function(e){return e!==t}),this.selectedIndex=r},I.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},I.prototype.checkboxListToggleAll=function(e,t){var n=this.adapter.getListItemCount();if(e.length===n)this.setCheckboxAtIndex([],{isUserInteraction:t});else{for(var i=[],s=0;s<n;s++)(!this.isIndexDisabled(s)||-1<e.indexOf(s))&&i.push(s);this.setCheckboxAtIndex(i,{isUserInteraction:t})}},I.prototype.typeaheadMatchItem=function(e,t,n){var i=this;void 0===n&&(n=!1);var s={focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return i.isIndexDisabled(e)}};return x.matchItem(s,this.typeaheadState)},I.prototype.typeaheadInitSortedIndex=function(){return x.initSortedIndex(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},I.prototype.clearTypeaheadBuffer=function(){x.clearBuffer(this.typeaheadState)},I);function I(e){var t=f.call(this,r(r({},I.defaultAdapter),e))||this;return t.wrapFocus=!1,t.isVertical=!0,t.isSingleSelectionList=!1,t.areDisabledItemsFocusable=!0,t.selectedIndex=A.numbers.UNSET_INDEX,t.focusedItemIndex=A.numbers.UNSET_INDEX,t.useActivatedClass=!1,t.useSelectedAttr=!1,t.ariaCurrentAttrValue=null,t.isCheckboxList=!1,t.isRadioList=!1,t.lastSelectedIndex=null,t.hasTypeahead=!1,t.typeaheadState=x.initState(),t.sortedIndexByFirstChar=new Map,t}t.MDCListFoundation=p,t.default=p},180:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.util=void 0;var a=r(n(95));t.util=a,o(n(181),t),o(n(182),t),o(n(96),t),o(n(59),t),o(n(97),t)},181:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},182:function(e,t,n){"use strict";var i,s=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
vendor: 13,100 bytes, line 1
1),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCDrawer=void 0;var c,u=n(1),d=n(21),l=n(22),h=n(59),f=n(97),p=a(n(95)),I=h.MDCDismissibleDrawerFoundation.cssClasses,E=h.MDCDismissibleDrawerFoundation.strings,m=(c=u.MDCComponent,s(C,c),C.attachTo=function(e){return new C(e)},Object.defineProperty(C.prototype,"open",{get:function(){return this.foundation.isOpen()},set:function(e){e?this.foundation.open():this.foundation.close()},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"list",{get:function(){return this.innerList},enumerable:!1,configurable:!0}),C.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new d.FocusTrap(e)}),void 0===t&&(t=function(e){return new l.MDCList(e)});var n=this.root.querySelector(E.LIST_SELECTOR);n&&(this.innerList=t(n),this.innerList.wrapFocus=!0),this.focusTrapFactory=e},C.prototype.initialSyncWithDOM=function(){var t=this,e=I.MODAL,n=E.SCRIM_SELECTOR;this.scrim=this.root.parentNode.querySelector(n),this.scrim&&this.root.classList.contains(e)&&(this.handleScrimClick=function(){return t.foundation.handleScrimClick()},this.scrim.addEventListener("click",this.handleScrimClick),this.focusTrap=p.createFocusTrapInstance(this.root,this.focusTrapFactory)),this.handleKeydown=function(e){t.foundation.handleKeydown(e)},this.handleTransitionEnd=function(e){t.foundation.handleTransitionEnd(e)},this.listen("keydown",this.handleKeydown),this.listen("transitionend",this.handleTransitionEnd)},C.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("transitionend",this.handleTransitionEnd),this.innerList&&this.innerList.destroy();var e=I.MODAL;this.scrim&&this.handleScrimClick&&this.root.classList.contains(e)&&(this.scrim.removeEventListener("click",this.handleScrimClick),this.open=!1)},C.prototype.getDefaultFoundation=function(){var t=this,e={addClass:function(e){t.root.classList.add(e)},removeClass:function(e){t.root.classList.remove(e)},hasClass:function(e){return t.root.classList.contains(e)},elementHasClass:function(e,t){return e.classList.contains(t)},saveFocus:function(){t.previousFocus=document.activeElement},restoreFocus:function(){var e=t.previousFocus;e&&e.focus&&t.root.contains(document.activeElement)&&e.focus()},focusActiveNavigationItem:function(){var e=t.root.querySelector(E.LIST_ITEM_ACTIVATED_SELECTOR);e&&e.focus()},notifyClose:function(){t.emit(E.CLOSE_EVENT,{},!0)},notifyOpen:function(){t.emit(E.OPEN_EVENT,{},!0)},trapFocus:function(){t.focusTrap.trapFocus()},releaseFocus:function(){t.focusTrap.releaseFocus()}},n=I.DISMISSIBLE,i=I.MODAL;if(this.root.classList.contains(n))return new h.MDCDismissibleDrawerFoundation(e);if(this.root.classList.contains(i))return new f.MDCModalDrawerFoundation(e);throw new Error("MDCDrawer: Failed to instantiate component. Supported variants are "+n+" and "+i+".")},C);function C(){return null!==c&&c.apply(this,arguments)||this}t.MDCDrawer=m},2:function(e,t,n){"use strict";function i(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.estimateScrollWidth=t.matches=t.closest=void 0,t.closest=function(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(i(n,t))return n;n=n.parentElement}return null},t.matches=i,t.estimateScrollWidth=function(e){var t=e;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}},21:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FocusTrap=void 0;var r="mdc-dom-focus-sentinel",i=(s.prototype.trapFocus=function(){var e=this.getFocusableElements(this.root);if(0===e.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(e,this.options.initialFocusEl)},s.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+r)).forEach(function(e){e.parentElement.removeChild(e)}),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},s.prototype.wrapTabFocus=function(t){var n=this,e=this.createSentinel(),i=this.createSentinel();e.addEventListener("focus",function(){var e=n.getFocusableElements(t);0<e.length&&e[e.length-1].focus()}),i.addEventListener("focus",function(){var e=n.getFocusableElements(t);0<e.length&&e[0].focus()}),t.insertBefore(e,t.children[0]),t.appendChild(i)},s.prototype.focusInitialElement=function(e,t){var n=0;t&&(n=Math.max(e.indexOf(t),0)),e[n].focus()},s.prototype.getFocusableElements=function(e){return[].slice.call(e.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(e){var t="true"===e.getAttribute("aria-disabled")||null!=e.getAttribute("disabled")||null!=e.getAttribute("hidden")||"true"===e.getAttribute("aria-hidden"),n=0<=e.tabIndex&&0<e.getBoundingClientRect().width&&!e.classList.contains(r)&&!t,i=!1;if(n){var s=getComputedStyle(e);i="none"===s.display||"hidden"===s.visibility}return n&&!i})},s.prototype.createSentinel=function(){var e=document.createElement("div");return e.setAttribute("tabindex","0"),e.setAttribute("aria-hidden","true"),e.classList.add(r),e},s);function s(e,t){void 0===t&&(t={}),this.root=e,this.options=t,this.elFocusedBeforeTrapFocus=null}t.FocusTrap=i},22:function(e,t,n){"use strict";var i,s=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MDCList=void 0;var r,o=n(1),a=n(2),c=n(9),u=n(14),d=(r=o.MDCComponent,s(l,r),Object.defineProperty(l.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[c.cssClasses.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"disabledItemsFocusable",{set:function(e){this.foundation.setDisabledItemsFocusable(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!1,configurable:!0}),l.attachTo=function(e){return new l(e)},l.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=c.evolutionAttribute in this.root.dataset,this.isEvolutionEnabled?this.classNameMap=c.evolutionClassNameMap:a.matches(this.root,c.strings.DEPRECATED_SELECTOR)?this.classNameMap=c.deprecatedClassNameMap:this.classNameMap=Object.values(c.cssClasses).reduce(function(e,t){return e[t]=t,e},{}),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(),this.ensureFocusable()},l.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},l.prototype.layout=function(){var e=this.root.getAttribute(c.strings.ARIA_ORIENTATION);this.vertical=e!==c.strings.ARIA_ORIENTATION_HORIZONTAL;var t="."+this.classNameMap[c.cssClasses.LIST_ITEM_CLASS]+":not([tabindex])",n=c.strings.FOCUSABLE_CHILD_ELEMENTS,i=this.root.querySelectorAll(t);i.length&&Array.prototype.forEach.call(i,function(e){e.setAttribute("tabindex","-1")});var s=this.root.querySelectorAll(n);s.length&&Array.prototype.forEach.call(s,function(e){e.setAttribute("tabindex","-1")}),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},l.prototype.getPrimaryText=function(e){var t,n=e.querySelector("."+this.classNameMap[c.cssClasses.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(t=null==n?void 0:n.textContent)&&void 0!==t?t:"";var i=e.querySelector("."+this.classNameMap[c.cssClasses.LIST_ITEM_TEXT_CLASS]);return i&&i.textContent||""},l.prototype.initializeListType=function(){var t=this;if(this.isInteractive=a.matches(this.root,c.strings.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var e=Array.from(this.root.querySelectorAll(c.strings.SELECTED_ITEM_SELECTOR),function(e){return t.listElements.indexOf(e)});a.matches(this.root,c.strings.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=e:0<e.length&&(this.selectedIndex=e[0])}else{var n=this.root.querySelectorAll(c.strings.ARIA_ROLE_CHECKBOX_SELECTOR),i=this.root.querySelector(c.strings.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var s=this.root.querySelectorAll(c.strings.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(s,function(e){return t.listElements.indexOf(e)})}else i&&(this.selectedIndex=this.listElements.indexOf(i))}},l.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},l.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},l.prototype.getDefaultFoundation=function(){var s=this,e={addClassForElementIndex:function(e,t){var n=s.listElements[e];n&&n.classList.add(s.classNameMap[t])},focusItemAtIndex:function(e){var t=s.listElements[e];t&&t.focus()},getAttributeForElementIndex:function(e,t){return s.listElements[e].getAttribute(t)},getFocusedElementIndex:function(){return s.listElements.indexOf(document.activeElement)},getListItemCount:function(){return s.listElements.length},getPrimaryTextAtIndex:function(e){return s.getPrimaryText(s.listElements[e])},hasCheckboxAtIndex:function(e){return!!s.listElements[e].querySelector(c.strings.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(e){return!!s.listElements[e].querySelector(c.strings.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(e){return s.listElements[e].querySelector(c.strings.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return s.root!==document.activeElement&&s.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===s.root},listItemAtIndexHasClass:function(e,t){return s.listElements[e].classList.contains(s.classNameMap[t])},notifyAction:function(e){s.emit(c.strings.ACTION_EVENT,{index:e},!0)},notifySelectionChange:function(e){s.emit(c.strings.SELECTION_CHANGE_EVENT,{changedIndices:e},!0)},removeClassForElementIndex:function(e,t){var n=s.listElements[e];n&&n.classList.remove(s.classNameMap[t])},setAttributeForElementIndex:function(e,t,n){var i=s.listElements[e];i&&i.setAttribute(t,n)},setCheckedCheckboxOrRadioAtIndex:function(e,t){var n=s.listElements[e].querySelector(c.strings.CHECKBOX_RADIO_SELECTOR);n.checked=t;var i=document.createEvent("Event");i.initEvent("change",!0,!0),n.dispatchEvent(i)},setTabIndexForListItemChildren:function(e,t){var n=s.listElements[e],i=c.strings.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(n.querySelectorAll(i),function(e){e.setAttribute("tabindex",t)})}};return new u.MDCListFoundation(e)},l.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[c.cssClasses.LIST_ITEM_CLASS]+'[tabindex="0"]')){var e=this.initialFocusIndex();-1!==e&&(this.listElements[e].tabIndex=0)}},l.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&0<this.selectedIndex.length)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==c.numbers.UNSET_INDEX)return this.selectedIndex;
vendor: 4,688 bytes, line 1
1var e=this.root.querySelector("."+this.classNameMap[c.cssClasses.LIST_ITEM_CLASS]+":not(."+this.classNameMap[c.cssClasses.LIST_ITEM_DISABLED_CLASS]+")");return null===e?-1:this.getListItemIndex(e)},l.prototype.getListItemIndex=function(e){var t=a.closest(e,"."+this.classNameMap[c.cssClasses.LIST_ITEM_CLASS]+", ."+this.classNameMap[c.cssClasses.ROOT]);return t&&a.matches(t,"."+this.classNameMap[c.cssClasses.LIST_ITEM_CLASS])?this.listElements.indexOf(t):-1},l.prototype.handleFocusInEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusIn(t)},l.prototype.handleFocusOutEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusOut(t)},l.prototype.handleKeydownEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(this.classNameMap[c.cssClasses.LIST_ITEM_CLASS]),t)},l.prototype.handleClickEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target,i=!a.matches(n,c.strings.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,i,e)},l);function l(){return null!==r&&r.apply(this,arguments)||this}t.MDCList=d},23:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleKeydown=t.clearBuffer=t.isTypingInProgress=t.matchItem=t.initSortedIndex=t.initState=void 0;var E=n(8),u=n(9),m=n(13);function C(e,t){var n,i=e.nextChar,s=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,o=e.focusedItemIndex,a=e.skipFocus,c=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout(function(){d(t)},u.numbers.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+i,-1===(n=1===t.typeaheadBuffer.length?function(e,t,n,i){var s=i.typeaheadBuffer[0],r=e.get(s);if(!r)return-1;if(s===i.currentFirstChar&&r[i.sortedIndexCursor].index===t){i.sortedIndexCursor=(i.sortedIndexCursor+1)%r.length;var o=r[i.sortedIndexCursor].index;if(!n(o))return o}i.currentFirstChar=s;var a,c=-1;for(a=0;a<r.length;a++)if(!n(r[a].index)){c=a;break}for(;a<r.length;a++)if(r[a].index>t&&!n(r[a].index)){c=a;break}return-1===c?-1:(i.sortedIndexCursor=c,r[i.sortedIndexCursor].index)}(r,o,c,t):function(e,t,n){var i=n.typeaheadBuffer[0],s=e.get(i);if(!s)return-1;var r=s[n.sortedIndexCursor];if(0===r.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(r.index))return r.index;var o=(n.sortedIndexCursor+1)%s.length,a=-1;for(;o!==n.sortedIndexCursor;){var c=s[o],u=0===c.text.lastIndexOf(n.typeaheadBuffer,0),d=!t(c.index);if(u&&d){a=o;break}o=(o+1)%s.length}return-1===a?-1:(n.sortedIndexCursor=a,s[n.sortedIndexCursor].index)}(r,c,t))||a||s(n),n}function y(e){return 0<e.typeaheadBuffer.length}function d(e){e.typeaheadBuffer=""}t.initState=function(){return{bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""}},t.initSortedIndex=function(e,t){for(var n=new Map,i=0;i<e;i++){var s=t(i).trim();if(s){var r=s[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:s.toLowerCase(),index:i})}}return n.forEach(function(e){e.sort(function(e,t){return e.index-t.index})}),n},t.matchItem=C,t.isTypingInProgress=y,t.clearBuffer=d,t.handleKeydown=function(e,t){var n=e.event,i=e.isTargetListItem,s=e.focusedItemIndex,r=e.focusItemAtIndex,o=e.sortedIndexByFirstChar,a=e.isItemAtIndexDisabled,c="ArrowLeft"===E.normalizeKey(n),u="ArrowUp"===E.normalizeKey(n),d="ArrowRight"===E.normalizeKey(n),l="ArrowDown"===E.normalizeKey(n),h="Home"===E.normalizeKey(n),f="End"===E.normalizeKey(n),p="Enter"===E.normalizeKey(n),I="Spacebar"===E.normalizeKey(n);return n.altKey||n.ctrlKey||n.metaKey||c||u||d||l||h||f||p?-1:I||1!==n.key.length?I?(i&&m.preventDefaultEvent(n),i&&y(t)?C({focusItemAtIndex:r,focusedItemIndex:s,nextChar:" ",sortedIndexByFirstChar:o,skipFocus:!1,isItemAtIndexDisabled:a},t):-1):-1:(m.preventDefaultEvent(n),C({focusItemAtIndex:r,focusedItemIndex:s,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:o,skipFocus:!1,isItemAtIndexDisabled:a},t))}},59:function(e,t,n){"use strict";var i,s=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};
vendor: 8,520 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.MDCDismissibleDrawerFoundation=void 0;var o,a=n(0),c=n(96),u=(o=a.MDCFoundation,s(d,o),Object.defineProperty(d,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(d,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},elementHasClass:function(){return!1},notifyClose:function(){},notifyOpen:function(){},saveFocus:function(){},restoreFocus:function(){},focusActiveNavigationItem:function(){},trapFocus:function(){},releaseFocus:function(){}}},enumerable:!1,configurable:!0}),d.prototype.destroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.animationTimer&&clearTimeout(this.animationTimer)},d.prototype.open=function(){var e=this;this.isOpen()||this.isOpening()||this.isClosing()||(this.adapter.addClass(c.cssClasses.OPEN),this.adapter.addClass(c.cssClasses.ANIMATE),this.runNextAnimationFrame(function(){e.adapter.addClass(c.cssClasses.OPENING)}),this.adapter.saveFocus())},d.prototype.close=function(){!this.isOpen()||this.isOpening()||this.isClosing()||this.adapter.addClass(c.cssClasses.CLOSING)},d.prototype.isOpen=function(){return this.adapter.hasClass(c.cssClasses.OPEN)},d.prototype.isOpening=function(){return this.adapter.hasClass(c.cssClasses.OPENING)||this.adapter.hasClass(c.cssClasses.ANIMATE)},d.prototype.isClosing=function(){return this.adapter.hasClass(c.cssClasses.CLOSING)},d.prototype.handleKeydown=function(e){var t=e.keyCode;"Escape"!==e.key&&27!==t||this.close()},d.prototype.handleTransitionEnd=function(e){var t=c.cssClasses.OPENING,n=c.cssClasses.CLOSING,i=c.cssClasses.OPEN,s=c.cssClasses.ANIMATE,r=c.cssClasses.ROOT;this.isElement(e.target)&&this.adapter.elementHasClass(e.target,r)&&(this.isClosing()?(this.adapter.removeClass(i),this.closed(),this.adapter.restoreFocus(),this.adapter.notifyClose()):(this.adapter.focusActiveNavigationItem(),this.opened(),this.adapter.notifyOpen()),this.adapter.removeClass(s),this.adapter.removeClass(t),this.adapter.removeClass(n))},d.prototype.opened=function(){},d.prototype.closed=function(){},d.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(function(){t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)})},d.prototype.isElement=function(e){return Boolean(e.classList)},d);function d(e){var t=o.call(this,r(r({},d.defaultAdapter),e))||this;return t.animationFrame=0,t.animationTimer=0,t}t.MDCDismissibleDrawerFoundation=u,t.default=u},8:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isNavigationEvent=i.normalizeKey=i.KEY=void 0,i.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var s=new Set;s.add(i.KEY.BACKSPACE),s.add(i.KEY.ENTER),s.add(i.KEY.SPACEBAR),s.add(i.KEY.PAGE_UP),s.add(i.KEY.PAGE_DOWN),s.add(i.KEY.END),s.add(i.KEY.HOME),s.add(i.KEY.ARROW_LEFT),s.add(i.KEY.ARROW_UP),s.add(i.KEY.ARROW_RIGHT),s.add(i.KEY.ARROW_DOWN),s.add(i.KEY.DELETE),s.add(i.KEY.ESCAPE),s.add(i.KEY.TAB);var n=8,r=13,o=32,a=33,c=34,u=35,d=36,l=37,h=38,f=39,p=40,I=46,E=27,m=9,C=new Map;C.set(n,i.KEY.BACKSPACE),C.set(r,i.KEY.ENTER),C.set(o,i.KEY.SPACEBAR),C.set(a,i.KEY.PAGE_UP),C.set(c,i.KEY.PAGE_DOWN),C.set(u,i.KEY.END),C.set(d,i.KEY.HOME),C.set(l,i.KEY.ARROW_LEFT),C.set(h,i.KEY.ARROW_UP),C.set(f,i.KEY.ARROW_RIGHT),C.set(p,i.KEY.ARROW_DOWN),C.set(I,i.KEY.DELETE),C.set(E,i.KEY.ESCAPE),C.set(m,i.KEY.TAB);var y=new Set;function S(e){var t=e.key;if(s.has(t))return t;var n=C.get(e.keyCode);return n||i.KEY.UNKNOWN}y.add(i.KEY.PAGE_UP),y.add(i.KEY.PAGE_DOWN),y.add(i.KEY.END),y.add(i.KEY.HOME),y.add(i.KEY.ARROW_LEFT),y.add(i.KEY.ARROW_UP),y.add(i.KEY.ARROW_RIGHT),y.add(i.KEY.ARROW_DOWN),i.normalizeKey=S,i.isNavigationEvent=function(e){return y.has(S(e))}},9:function(e,t,n){"use strict";var i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.evolutionClassNameMap=t.evolutionAttribute=t.deprecatedClassNameMap=t.numbers=t.cssClasses=t.strings=void 0;var r={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"},o=((i={})[""+(t.cssClasses=r).LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",i[""+r.LIST_ITEM_CLASS]="mdc-list-item",i[""+r.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",i[""+r.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",i[""+r.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",i[""+r.ROOT]="mdc-list",i);t.evolutionClassNameMap=o;var a=((s={})[""+r.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",s[""+r.LIST_ITEM_CLASS]="mdc-deprecated-list-item",s[""+r.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",s[""+r.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",s[""+r.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",s[""+r.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",s[""+r.ROOT]="mdc-deprecated-list",s);t.deprecatedClassNameMap=a;var c={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",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",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+r.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+r.LIST_ITEM_CLASS+" a,\n ."+a[r.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[r.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+r.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+r.LIST_ITEM_CLASS+" a,\n ."+r.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+r.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+a[r.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[r.LIST_ITEM_CLASS]+" a,\n ."+a[r.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+a[r.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'};t.strings=c;t.numbers={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};t.evolutionAttribute="evolution"},95:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFocusTrapInstance=void 0,t.createFocusTrapInstance=function(e,t){return t(e,{skipInitialFocus:!0})}},96:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strings=t.cssClasses=void 0;t.cssClasses={ANIMATE:"mdc-drawer--animate",CLOSING:"mdc-drawer--closing",DISMISSIBLE:"mdc-drawer--dismissible",MODAL:"mdc-drawer--modal",OPEN:"mdc-drawer--open",OPENING:"mdc-drawer--opening",ROOT:"mdc-drawer"};t.strings={APP_CONTENT_SELECTOR:".mdc-drawer-app-content",CLOSE_EVENT:"MDCDrawer:closed",OPEN_EVENT:"MDCDrawer:opened",SCRIM_SELECTOR:".mdc-drawer-scrim",LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",LIST_ITEM_ACTIVATED_SELECTOR:".mdc-list-item--activated,.mdc-deprecated-list-item--activated"}},97:function(e,t,n){"use strict";var i,s=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
vendor: 4,563 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.MDCModalDrawerFoundation=void 0;var r,o=n(59),a=(r=o.MDCDismissibleDrawerFoundation,s(c,r),c.prototype.handleScrimClick=function(){this.close()},c.prototype.opened=function(){this.adapter.trapFocus()},c.prototype.closed=function(){this.adapter.releaseFocus()},c);function c(){return null!==r&&r.apply(this,arguments)||this}t.MDCModalDrawerFoundation=a,t.default=a}},s.c=i,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=180);function s(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}var n,i});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/floating-label",[],e):"object"==typeof exports?exports["floating-label"]=e():(t.mdc=t.mdc||{},t.mdc["floating-label"]=e())}(this,function(){return o={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a},i=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n<o;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=n(0),a=(s.attachTo=function(t){return new s(t,new o.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:n,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(o)},s);function s(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=t,this.initialize.apply(this,i([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},15:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};
vendor: 4,636 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFloatingLabelFoundation=void 0;var a,s=n(0),u=n(20),l=(a=s.MDCFoundation,r(c,a),Object.defineProperty(c,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(c,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),c.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},c.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},c.prototype.getWidth=function(){return this.adapter.getWidth()},c.prototype.shake=function(t){var e=c.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(e):this.adapter.removeClass(e)},c.prototype.float=function(t){var e=c.cssClasses,n=e.LABEL_FLOAT_ABOVE,o=e.LABEL_SHAKE;t?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(o))},c.prototype.setRequired=function(t){var e=c.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},c.prototype.handleShakeAnimationEnd=function(){var t=c.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},c);function c(t){var e=a.call(this,i(i({},c.defaultAdapter),t))||this;return e.shakeAnimationEndHandler=function(){e.handleShakeAnimationEnd()},e}e.MDCFloatingLabelFoundation=l,e.default=l},183:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(184),e),r(n(35),e),r(n(20),e),r(n(15),e)},184:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2:function(t,e,n){"use strict";function o(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(o(n,e))return n;n=n.parentElement}return null},e.matches=o,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var o=n.scrollWidth;return document.documentElement.removeChild(n),o}},20:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=void 0,e.cssClasses={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"}},35:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFloatingLabel=void 0;var i,a=n(1),s=n(2),u=n(15),l=(i=a.MDCComponent,r(c,i),c.attachTo=function(t){return new c(t)},c.prototype.shake=function(t){this.foundation.shake(t)},c.prototype.float=function(t){this.foundation.float(t)},c.prototype.setRequired=function(t){this.foundation.setRequired(t)},c.prototype.getWidth=function(){return this.foundation.getWidth()},c.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},getWidth:function(){return s.estimateScrollWidth(n.root)},registerInteractionHandler:function(t,e){return n.listen(t,e)},deregisterInteractionHandler:function(t,e){return n.unlisten(t,e)}};return new u.MDCFloatingLabelFoundation(t)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCFloatingLabel=l}},r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
vendor: 4,239 bytes, line 1
1),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=183);function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/form-field",[],e):"object"==typeof exports?exports["form-field"]=e():(t.mdc=t.mdc||{},t.mdc["form-field"]=e())}(this,function(){return r={},o.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var r=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=r,e.default=r},1:function(t,e,n){"use strict";var o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},i=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var r=n(0),u=(a.attachTo=function(t){return new a(t,new r.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:n,detail:e}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(r)},a);function a(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=t,this.initialize.apply(this,i([],o(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=u,e.default=u},185:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(186),e),o(n(187),e),o(n(99),e),o(n(98),e)},186:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},187:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
vendor: 1,747 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFormField=void 0;var i,u=n(1),a=n(98),c=(i=u.MDCComponent,o(l,i),l.attachTo=function(t){return new l(t)},l.prototype.labelEl=function(){var t=a.MDCFormFieldFoundation.strings.LABEL_SELECTOR;return this.root.querySelector(t)},l.prototype.getDefaultFoundation=function(){var r=this,t={activateInputRipple:function(){r.input&&r.input.ripple&&r.input.ripple.activate()},deactivateInputRipple:function(){r.input&&r.input.ripple&&r.input.ripple.deactivate()},deregisterInteractionHandler:function(t,e){var n=r.labelEl();n&&n.removeEventListener(t,e)},registerInteractionHandler:function(t,e){var n=r.labelEl();n&&n.addEventListener(t,e)}};return new a.MDCFormFieldFoundation(t)},l);function l(){return null!==i&&i.apply(this,arguments)||this}e.MDCFormField=c},98:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFormFieldFoundation=void 0;var u,a=n(0),c=n(99),l=(u=a.MDCFoundation,o(s,u),Object.defineProperty(s,"cssClasses",{get:function(){return c.cssClasse
vendor: 4,507 bytes, line 1
1s},enumerable:!1,configurable:!0}),Object.defineProperty(s,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(s,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),s.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},s.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},s.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){t.adapter.deactivateInputRipple()})},s);function s(t){var e=u.call(this,i(i({},s.defaultAdapter),t))||this;return e.click=function(){e.handleClick()},e}e.MDCFormFieldFoundation=l,e.default=l},99:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0,e.cssClasses={ROOT:"mdc-form-field"},e.strings={LABEL_SELECTOR:".mdc-form-field > label"}}},o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=185);function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,r});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/icon-button",[],e):"object"==typeof exports?exports["icon-button"]=e():(t.mdc=t.mdc||{},t.mdc["icon-button"]=e())}(this,function(){return i={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},o=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),a=(s.attachTo=function(t){return new s(t,new i.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},s);function s(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,o([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},100:function(t,e,n){"use strict";
vendor: 6,354 bytes, line 1
1var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCIconButtonToggleFoundation=void 0;var a,s=n(0),u=n(101),c=(a=s.MDCFoundation,r(d,a),Object.defineProperty(d,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!1,configurable:!0}),d.prototype.init=function(){var t=this.adapter.getAttr(u.strings.DATA_ARIA_LABEL_ON),e=this.adapter.getAttr(u.strings.DATA_ARIA_LABEL_OFF);if(t&&e){if(null!==this.adapter.getAttr(u.strings.ARIA_PRESSED))throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(u.strings.ARIA_PRESSED,String(this.isOn()))},d.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},d.prototype.isOn=function(){return this.adapter.hasClass(u.cssClasses.ICON_BUTTON_ON)},d.prototype.toggle=function(t){if(void 0===t&&(t=!this.isOn()),t?this.adapter.addClass(u.cssClasses.ICON_BUTTON_ON):this.adapter.removeClass(u.cssClasses.ICON_BUTTON_ON),this.hasToggledAriaLabel){var e=t?this.adapter.getAttr(u.strings.DATA_ARIA_LABEL_ON):this.adapter.getAttr(u.strings.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(u.strings.ARIA_LABEL,e||"")}else this.adapter.setAttr(u.strings.ARIA_PRESSED,""+t)},d);function d(t){var e=a.call(this,o(o({},d.defaultAdapter),t))||this;return e.hasToggledAriaLabel=!1,e}e.MDCIconButtonToggleFoundation=c,e.default=c},101:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0,e.cssClasses={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},e.strings={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"}},188:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(189),e),r(n(190),e),r(n(101),e),r(n(100),e),r(n(191),e)},189:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},190:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCIconButtonToggle=void 0;var o,a=n(1),s=n(6),u=n(100),c=u.MDCIconButtonToggleFoundation.strings,d=(o=a.MDCComponent,r(l,o),l.attachTo=function(t){return new l(t)},l.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen("click",this.handleClick)},l.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),o.prototype.destroy.call(this)},l.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},hasClass:function(t){return n.root.classList.contains(t)},notifyChange:function(t){n.emit(c.CHANGE_EVENT,t)},removeClass:function(t){return n.root.classList.remove(t)},getAttr:function(t){return n.root.getAttribute(t)},setAttr:function(t,e){return n.root.setAttribute(t,e)}};return new u.MDCIconButtonToggleFoundation(t)},Object.defineProperty(l.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(t){this.foundation.toggle(t)},enumerable:!1,configurable:!0}),l.prototype.createRipple=function(){var t=new s.MDCRipple(this.root);return t.unbounded=!0,t},l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}e.MDCIconButtonToggle=d},191:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.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}},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof a&&!e)return a;
vendor: 1,804 bytes, line 1
1if(!(i&&"function"==typeof i.supports))return!1;var r=i.supports("--css-vars","yes"),o=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=r||o,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var i,r,o=e.x,a=e.y,s=o+n.left,u=a+n.top;if("touchstart"===t.type){var c=t;i=c.changedTouches[0].pageX-s,r=c.changedTouches[0].pageY-u}else{var d=t;i=d.pageX-s,r=d.pageY-u}return{x:i,y:r}}},4:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,u=n(0),c=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],f=[],h=(s=u.MDCFoundation,r(v,s),Object.defineProperty(v,"cssClasses",{get:function(){return c.cssClasse
vendor: 4,656 bytes, line 1
1s},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return c.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=v.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasses.FG_DEACTIVATION));var e=v.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasses.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var i=a(l),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=a(p),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(p),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,n=v.strings;
vendor: 10,091 bytes, line 1
1Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,r=v.cssClasses,o=r.FG_DEACTIVATION,a=r.FG_ACTIVATION,s=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",c="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),l=d.startPoint,p=d.endPoint;u=l.x+"px, "+l.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,u),this.adapter.updateCssVariable(i,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?d.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,r=n.isActivated;!i&&r||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},c.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var n=Math.floor(e*v.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()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},v);function v(t){var e=s.call(this,o(o({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,c=n(1),d=n(5),l=n(2),p=n(4),f=s(n(3)),h=(u=c.MDCComponent,r(v,u),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,d.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,d.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,d.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,d.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new p.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
vendor: 4,468 bytes, line 1
1),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=188);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/line-ripple",[],e):"object"==typeof exports?exports["line-ripple"]=e():(t.mdc=t.mdc||{},t.mdc["line-ripple"]=e())}(this,function(){return o={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},i=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n<o;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=n(0),s=(a.attachTo=function(t){return new a(t,new o.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:n,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(o)},a);function a(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=t,this.initialize.apply(this,i([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},195:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(196),e),r(n(36),e),r(n(28),e),r(n(27),e)},196:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},27:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};
vendor: 4,029 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLineRippleFoundation=void 0;var s,a=n(0),u=n(28),c=(s=a.MDCFoundation,r(l,s),Object.defineProperty(l,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),l.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},l.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},l.prototype.activate=function(){this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(u.cssClasses.LINE_RIPPLE_ACTIVE)},l.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},l.prototype.deactivate=function(){this.adapter.addClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING)},l.prototype.handleTransitionEnd=function(t){var e=this.adapter.hasClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING))},l);function l(t){var e=s.call(this,i(i({},l.defaultAdapter),t))||this;return e.transitionEndHandler=function(t){e.handleTransitionEnd(t)},e}e.MDCLineRippleFoundation=c,e.default=c},28:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=void 0;e.cssClasses={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}},36:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLineRipple=void 0;var i,s=n(1),a=n(27),u=(i=s.MDCComponent,r(c,i),c.attachTo=function(t){return new c(t)},c.prototype.activate=function(){this.foundation.activate()},c.prototype.deactivate=function(){this.foundation.deactivate()},c.prototype.setRippleCenter=function(t){this.foundation.setRippleCenter(t)},c.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},setStyle:function(t,e){return n.root.style.setProperty(t,e)},registerEventHandler:function(t,e){return n.listen(t,e)},deregisterEventHandler:function(t,e){return n.unlisten(t,e)}};return new a.MDCLineRippleFoundation(t)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCLineRipple=u}},r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=195);function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});
vendor: 14,414 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/linear-progress",[],e):"object"==typeof exports?exports["linear-progress"]=e():(t.mdc=t.mdc||{},t.mdc["linear-progress"]=e())}(this,function(){return n={},o.m=r={0:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var n=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=n,e.default=n},1:function(t,e,r){"use strict";var o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},i=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var n=r(0),s=(a.attachTo=function(t){return new a(t,new n.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,r){this.root.addEventListener(t,e,r)},a.prototype.unlisten=function(t,e,r){this.root.removeEventListener(t,e,r)},a.prototype.emit=function(t,e,r){var n;void 0===r&&(r=!1),"function"==typeof CustomEvent?n=new CustomEvent(t,{bubbles:r,detail:e}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,e),this.root.dispatchEvent(n)},a);function a(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.root=t,this.initialize.apply(this,i([],o(r))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},10:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var s={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 u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in s){var r=t.document.createElement("div"),n=s[e],o=n.standard,i=n.prefixed;return o in r.style?o:i}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in a){var r=t.document.createElement("div"),n=a[e],o=n.standard,i=n.prefixed;return n.cssProperty in r.style?o:i}return e}},197:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(198),e),o(r(57),e),o(r(46),e),o(r(45),e),o(r(199),e)},198:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},199:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},45:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLinearProgressFoundation=void 0;var s,u=r(10),c=r(0),f=r(46),l=(s=c.MDCFoundation,o(d,s),Object.defineProperty(d,"cssClasses",{get:function(){return f.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return f.strings},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},attachResizeObserver:function(){return null},forceLayout:function(){},getWidth:function(){return 0},hasClass:function(){return!1},setBufferBarStyle:function(){return null},setPrimaryBarStyle:function(){return null},setStyle:function(){},removeAttribute:function(){},removeClass:function(){},setAttribute:function(){}}},enumerable:!1,configurable:!0}),d.prototype.init=function(){var s=this;this.determinate=!this.adapter.hasClass(f.cssClasses.INDETERMINATE_CLASS),this.adapter.addClass(f.cssClasses.ANIMATION_READY_CLASS),this.progress=0,this.buffer=1,this.observer=this.adapter.attachResizeObserver(function(t){var e,r;if(!s.determinate)try{for(var n=a(t),o=n.next();!o.done;o=n.next()){var i=o.value;i.contentRect&&s.calculateAndSetDimensions(i.contentRect.width)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}),!this.determinate&&this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth())},d.prototype.setDeterminate=function(t){if(this.determinate=t,this.determinate)return this.adapter.removeClass(f.cssClasses.INDETERMINATE_CLASS),this.adapter.setAttribute(f.strings.ARIA_VALUENOW,this.progress.toString()),this.adapter.setAttribute(f.strings.ARIA_VALUEMAX,"1"),this.adapter.setAttribute(f.strings.ARIA_VALUEMIN,"0"),this.setPrimaryBarProgress(this.progress),void this.setBufferBarProgress(this.buffer);this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth()),this.adapter.addClass(f.cssClasses.INDETERMINATE_CLASS),this.adapter.removeAttribute(f.strings.ARIA_VALUENOW),this.adapter.removeAttribute(f.strings.ARIA_VALUEMAX),this.adapter.removeAttribute(f.strings.ARIA_VALUEMIN),this.setPrimaryBarProgress(1),this.setBufferBarProgress(1)},d.prototype.isDeterminate=function(){return this.determinate},d.prototype.setProgress=function(t){this.progress=t,this.determinate&&(this.setPrimaryBarProgress(t),this.adapter.setAttribute(f.strings.ARIA_VALUENOW,t.toString()))},d.prototype.getProgress=function(){return this.progress},d.prototype.setBuffer=function(t){this.buffer=t,this.determinate&&this.setBufferBarProgress(t)},d.prototype.getBuffer=function(){return this.buffer},d.prototype.open=function(){this.adapter.removeClass(f.cssClasses.CLOSED_CLASS),this.adapter.removeClass(f.cssClasses.CLOSED_ANIMATION_OFF_CLASS),this.adapter.removeAttribute(f.strings.ARIA_HIDDEN)},d.prototype.close=function(){this.adapter.addClass(f.cssClasses.CLOSED_CLASS),this.adapter.setAttribute(f.strings.ARIA_HIDDEN,"true")},d.prototype.isClosed=function(){return this.adapter.hasClass(f.cssClasses.CLOSED_CLASS)},d.prototype.handleTransitionEnd=function(){this.adapter.hasClass(f.cssClasses.CLOSED_CLASS)&&this.adapter.addClass(f.cssClasses.CLOSED_ANIMATION_OFF_CLASS)},d.prototype.destroy=function(){s.prototype.destroy.call(this),this.observer&&this.observer.disconnect()},d.prototype.restartAnimation=function(){this.adapter.removeClass(f.cssClasses.ANIMATION_READY_CLASS),this.adapter.forceLayout(),this.adapter.addClass(f.cssClasses.ANIMATION_READY_CLASS)},d.prototype.setPrimaryBarProgress=function(t){var e="scaleX("+t+")",r="undefined"!=typeof window?u.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setPrimaryBarStyle(r,e)},d.prototype.setBufferBarProgress=function(t){var e=100*t+"%";this.adapter.setBufferBarStyle(f.strings.FLEX_BASIS,e)},d.prototype.calculateAndSetDimensions=function(t){var e=t*f.animationDimensionPercentages.PRIMARY_HALF,r=t*f.animationDimensionPercentages.PRIMARY_FULL,n=t*f.animationDimensionPercentages.SECONDARY_QUARTER,o=t*f.animationDimensionPercentages.SECONDARY_HALF,i=t*f.animationDimensionPercentages.SECONDARY_FULL;this.adapter.setStyle("--mdc-linear-progress-primary-half",e+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-half-neg",-e+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full",r+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full-neg",-r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter",n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter-neg",-n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half",o+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half-neg",-o+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full",i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full-neg",-i+"px"),this.restartAnimation()},d);function d(t){var e=s.call(this,i(i({},d.defaultAdapter),t))||this;return e.observer=null,e}e.MDCLinearProgressFoundation=l,e.default=l},46:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationDimensionPercentages=e.strings=e.cssClasses=void 0,e.cssClasses={CLOSED_CLASS:"mdc-linear-progress--closed",CLOSED_ANIMATION_OFF_CLASS:"mdc-linear-progress--closed-animation-off",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",REVERSED_CLASS:"mdc-linear-progress--reversed",ANIMATION_READY_CLASS:"mdc-linear-progress--animation-ready"},e.strings={ARIA_HIDDEN:"aria-hidden",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",BUFFER_BAR_SELECTOR:".mdc-linear-progress__buffer-bar",FLEX_BASIS:"flex-basis",PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar"},e.animationDimensionPercentages={PRIMARY_HALF:.8367142,PRIMARY_FULL:2.00611057,SECONDARY_QUARTER:.37651913,SECONDARY_HALF:.84386165,SECONDARY_FULL:1.60277782}},57:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLinearProgress=void 0;var i,s=r(1),a=r(45),u=(i=s.MDCComponent,o(c,i),c.attachTo=function(t){return new c(t)},Object.defineProperty(c.prototype,"determinate",{set:function(t){this.foundation.setDeterminate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"progress",{set:function(t){this.foundation.setProgress(t)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"buffer",{set:function(t){this.foundation.setBuffer(t)},enumerable:!1,configurable:!0}),c.prototype.open=function(){this.foundation.open()},c.prototype.close=function(){this.foundation.close()},c.prototype.initialSyncWithDOM=function(){var t=this;this.root.addEventListener("transitionend",function(){t.foundation.handleTransitionEnd()})},c.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){n.root.classList.add(t)},forceLayout:function(){n.root.getBoundingClientRect()},setBufferBarStyle:function(t,e){var r=n.root.querySelector(a.MDCLinearProgressFoundation.strings.BUFFER_BAR_SELECTOR);r&&r.style.setProperty(t,e)},setPrimaryBarStyle:function(t,e){var r=n.root.querySelector(a.MDCLinearProgressFoundation.strings.PRIMARY_BAR_SELECTOR);r&&r.style.setProperty(t,e)},hasClass:function(t){return n.root.classList.contains(t)},removeAttribute:function(t){n.root.removeAttribute(t)},removeClass:function(t){n.root.classList.remove(t)},setAttribute:function(t,e){n.root.setAttribute(t,e)},setStyle:function(t,e){n.root.style.setProperty(t,e)},attachResizeObserver:function(t){var e=window.ResizeObserver;if(e){var r=new e(t);return r.observe(n.root),r}return null},getWidth:function(){return n.root.offsetWidth}};return new a.MDCLinearProgressFoundation(t)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCLinearProgress=u}},o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=197);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,n});
vendor: 1,067 bytes, line 1
1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@material/list",[],t):"object"==typeof exports?exports.list=t():(e.mdc=e.mdc||{},e.mdc.list=t())}(this,function(){return i={},s.m=n={0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCFoundation=void 0;var i=(Object.defineProperty(s,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),s.prototype.init=function(){},s.prototype.destroy=function(){},s);function s(e){void 0===e&&(e={}),this.adapter=e}t.MDCFoundation=i,t.default=i},1:function(e,t,n){"use strict";var s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,r=n.call(e),o=[];try{for(;
vendor: 3,108 bytes, line 1
1(void 0===t||0<t--)&&!(i=r.next()).done;)o.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},r=this&&this.__spreadArray||function(e,t){for(var n=0,i=t.length,s=e.length;n<i;n++,s++)e[s]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCComponent=void 0;var i=n(0),o=(a.attachTo=function(e){return new a(e,new i.MDCFoundation({}))},a.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},a.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},a.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)},a);function a(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=e,this.initialize.apply(this,r([],s(n))),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}t.MDCComponent=o,t.default=o},13:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefaultEvent=void 0;var i=["input","button","textarea","select"];t.preventDefaultEvent=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===i.indexOf(n)&&e.preventDefault()}}},14:function(e,t,n){"use strict";var i,s=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,r=n.call(e),o=[];try{for(;
vendor: 12,610 bytes, line 1
1(void 0===t||0<t--)&&!(i=r.next()).done;)o.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},h=this&&this.__spreadArray||function(e,t){for(var n=0,i=t.length,s=e.length;n<i;n++,s++)e[s]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCListFoundation=void 0;var u=n(0),C=n(8),y=n(9),_=n(13),b=d(n(23));var c=["Alt","Control","Meta","Shift"];function T(t){var n=new Set(t?c.filter(function(e){return t.getModifierState(e)}):[]);return function(e){return e.every(function(e){return n.has(e)})&&e.length===n.size}}var f,I=(f=u.MDCFoundation,s(E,f),Object.defineProperty(E,"strings",{get:function(){return y.strings},enumerable:!1,configurable:!0}),Object.defineProperty(E,"cssClasses",{get:function(){return y.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(E,"numbers",{get:function(){return y.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(E,"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(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),E.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()))},E.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},E.prototype.setWrapFocus=function(e){this.wrapFocus=e},E.prototype.setVerticalOrientation=function(e){this.isVertical=e},E.prototype.setSingleSelection=function(e){(this.isSingleSelectionList=e)&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},E.prototype.setDisabledItemsFocusable=function(e){this.areDisabledItemsFocusable=e},E.prototype.maybeInitializeSingleSelection=function(){var e=this.getSelectedIndexFromDOM();e!==y.numbers.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,y.cssClasses.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=e)},E.prototype.getSelectedIndexFromDOM=function(){for(var e=y.numbers.UNSET_INDEX,t=this.adapter.getListItemCount(),n=0;n<t;n++){var i=this.adapter.listItemAtIndexHasClass(n,y.cssClasses.LIST_ITEM_SELECTED_CLASS),s=this.adapter.listItemAtIndexHasClass(n,y.cssClasses.LIST_ITEM_ACTIVATED_CLASS);if(i||s){e=n;break}}return e},E.prototype.setHasTypeahead=function(e){(this.hasTypeahead=e)&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},E.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&b.isTypingInProgress(this.typeaheadState)},E.prototype.setUseActivatedClass=function(e){this.useActivatedClass=e},E.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr=e},E.prototype.getSelectedIndex=function(){return this.selectedIndex},E.prototype.setSelectedIndex=function(e,t){void 0===t&&(t={}),this.isIndexValid(e)&&(this.isCheckboxList?this.setCheckboxAtIndex(e,t):this.isRadioList?this.setRadioAtIndex(e,t):this.setSingleSelectionAtIndex(e,t))},E.prototype.handleFocusIn=function(e){0<=e&&(this.focusedItemIndex=e,this.adapter.setAttributeForElementIndex(e,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(e,"0"))},E.prototype.handleFocusOut=function(e){var t=this;0<=e&&(this.adapter.setAttributeForElementIndex(e,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(e,"-1")),setTimeout(function(){t.adapter.isFocusInsideList()||t.setTabindexToFirstSelectedOrFocusedItem()},0)},E.prototype.isIndexDisabled=function(e){return this.adapter.listItemAtIndexHasClass(e,y.cssClasses.LIST_ITEM_DISABLED_CLASS)},E.prototype.handleKeydown=function(e,t,n){var i,s=this,r="ArrowLeft"===C.normalizeKey(e),o="ArrowUp"===C.normalizeKey(e),a="ArrowRight"===C.normalizeKey(e),d="ArrowDown"===C.normalizeKey(e),u="Home"===C.normalizeKey(e),c="End"===C.normalizeKey(e),l="Enter"===C.normalizeKey(e),h="Spacebar"===C.normalizeKey(e),f=this.isVertical&&d||!this.isVertical&&a,I=this.isVertical&&o||!this.isVertical&&r,E="A"===e.key||"a"===e.key,p=T(e);if(this.adapter.isRootFocused()){if((I||c)&&p([])?(e.preventDefault(),this.focusLastElement()):(f||u)&&p([])?(e.preventDefault(),this.focusFirstElement()):I&&p(["Shift"])&&this.isCheckboxList?(e.preventDefault(),-1!==(S=this.focusLastElement())&&this.setSelectedIndexOnAction(S,!1)):f&&p(["Shift"])&&this.isCheckboxList&&(e.preventDefault(),-1!==(S=this.focusFirstElement())&&this.setSelectedIndexOnAction(S,!1)),this.hasTypeahead){var m={event:e,focusItemAtIndex:function(e){s.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return s.isIndexDisabled(e)}};b.handleKeydown(m,this.typeaheadState)}}else{var x=this.adapter.getFocusedElementIndex();if(!(-1===x&&(x=n)<0)){if(f&&p([]))_.preventDefaultEvent(e),this.focusNextElement(x);else if(I&&p([]))_.preventDefaultEvent(e),this.focusPrevElement(x);else if(f&&p(["Shift"])&&this.isCheckboxList)_.preventDefaultEvent(e),-1!==(S=this.focusNextElement(x))&&this.setSelectedIndexOnAction(S,!1);else if(I&&p(["Shift"])&&this.isCheckboxList){var S;_.preventDefaultEvent(e),-1!==(S=this.focusPrevElement(x))&&this.setSelectedIndexOnAction(S,!1)}else if(u&&p([]))_.preventDefaultEvent(e),this.focusFirstElement();else if(c&&p([]))_.preventDefaultEvent(e),this.focusLastElement();else if(u&&p(["Control","Shift"])&&this.isCheckboxList){if(_.preventDefaultEvent(e),this.isIndexDisabled(x))return;this.focusFirstElement(),this.toggleCheckboxRange(0,x,x)}else if(c&&p(["Control","Shift"])&&this.isCheckboxList){if(_.preventDefaultEvent(e),this.isIndexDisabled(x))return;this.focusLastElement(),this.toggleCheckboxRange(x,this.adapter.getListItemCount()-1,x)}else if(E&&p(["Control"])&&this.isCheckboxList)e.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===y.numbers.UNSET_INDEX?[]:this.selectedIndex,!0);else if((l||h)&&p([])){if(t){if((A=e.target)&&"A"===A.tagName&&l)return;if(_.preventDefaultEvent(e),this.isIndexDisabled(x))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(x,!1),this.adapter.notifyAction(x))}}else if((l||h)&&p(["Shift"])&&this.isCheckboxList){var A;if((A=e.target)&&"A"===A.tagName&&l)return;if(_.preventDefaultEvent(e),this.isIndexDisabled(x))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:x,x,x),this.adapter.notifyAction(x))}this.hasTypeahead&&(m={event:e,focusItemAtIndex:function(e){s.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return s.isIndexDisabled(e)}},b.handleKeydown(m,this.typeaheadState))}}},E.prototype.handleClick=function(e,t,n){var i,s=T(n);e!==y.numbers.UNSET_INDEX&&(this.isIndexDisabled(e)||(s([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(e,t),this.adapter.notifyAction(e)):this.isCheckboxList&&s(["Shift"])&&(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:e,e,e),this.adapter.notifyAction(e))))},E.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e,i=null;do{if(t<=++n){if(!this.wrapFocus)return e;n=0}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},E.prototype.focusPrevElement=function(e){var t=this.adapter.getListItemCount(),n=e,i=null;do{if(--n<0){if(!this.wrapFocus)return e;n=t-1}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},E.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},E.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},E.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},E.prototype.setEnabled=function(e,t){this.isIndexValid(e,!1)&&(t?(this.adapter.removeClassForElementIndex(e,y.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,y.strings.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,y.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,y.strings.ARIA_DISABLED,"true")))},E.prototype.setSingleSelectionAtIndex=function(e,t){if(void 0===t&&(t={}),this.selectedIndex!==e||t.forceUpdate){var n=y.cssClasses.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=y.cssClasses.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==y.numbers.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(e),this.setTabindexAtIndex(e),e!==y.numbers.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,n),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e])}},E.prototype.setAriaForSingleSelectionAtIndex=function(e){this.selectedIndex===y.numbers.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(e,y.strings.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue,n=t?y.strings.ARIA_CURRENT:y.strings.ARIA_SELECTED;if(this.selectedIndex!==y.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),e!==y.numbers.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},E.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?y.strings.ARIA_SELECTED:y.strings.ARIA_CHECKED},E.prototype.setRadioAtIndex=function(e,t){void 0===t&&(t={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex===e&&!t.forceUpdate||(this.selectedIndex!==y.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(e,n,"true"),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e]))},E.prototype.setCheckboxAtIndex=function(e,t){void 0===t&&(t={});for(var n=this.selectedIndex,i=t.isUserInteraction?new Set(n===y.numbers.UNSET_INDEX?[]:n):null,s=this.getSelectionAttribute(),r=[],o=0;o<this.adapter.getListItemCount();o++){var a=null==i?void 0:i.has(o),d=0<=e.indexOf(o);d!==a&&r.push(o),this.adapter.setCheckedCheckboxOrRadioAtIndex(o,d),this.adapter.setAttributeForElementIndex(o,s,d?"true":"false")}this.selectedIndex=e,t.isUserInteraction&&r.length&&this.adapter.notifySelectionChange(r)},E.prototype.toggleCheckboxRange=function(e,t,n){this.lastSelectedIndex=n;for(var i=new Set(this.selectedIndex===y.numbers.UNSET_INDEX?[]:this.selectedIndex),s=!(null==i?void 0:i.has(n)),r=l([e,t].sort(),2),o=r[0],a=r[1],d=this.getSelectionAttribute(),u=[],c=o;c<=a;c++)this.isIndexDisabled(c)||s!==i.has(c)&&(u.push(c),this.adapter.setCheckedCheckboxOrRadioAtIndex(c,s),this.adapter.setAttributeForElementIndex(c,d,""+s),s?i.add(c):i.delete(c));u.length&&(this.selectedIndex=h([],l(i)),this.adapter.notifySelectionChange(u))},E.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===y.numbers.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):0<=this.focusedItemIndex&&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!==y.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},E.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},E.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},E.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList(
vendor: 4,353 bytes, line 1
1)?"number"==typeof this.selectedIndex&&this.selectedIndex!==y.numbers.UNSET_INDEX?this.selectedIndex:function(e){return e instanceof Array}(this.selectedIndex)&&0<this.selectedIndex.length?this.selectedIndex.reduce(function(e,t){return Math.min(e,t)}):0:Math.max(this.focusedItemIndex,0)},E.prototype.isIndexValid=function(e,t){var n=this;if(void 0===t&&(t=!0),e instanceof Array){if(!this.isCheckboxList&&t)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some(function(e){return n.isIndexInRange(e)})}if("number"!=typeof e)return!1;if(this.isCheckboxList&&t)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange(e)||this.isSingleSelectionList&&e===y.numbers.UNSET_INDEX},E.prototype.isIndexInRange=function(e){var t=this.adapter.getListItemCount();return 0<=e&&e<t},E.prototype.setSelectedIndexOnAction=function(e,t){this.lastSelectedIndex=e,this.isCheckboxList?(this.toggleCheckboxAtIndex(e,t),this.adapter.notifySelectionChange([e])):this.setSelectedIndex(e,{isUserInteraction:!0})},E.prototype.toggleCheckboxAtIndex=function(t,e){var n,i=this.getSelectionAttribute(),s=this.adapter.isCheckboxCheckedAtIndex(t);e?n=s:(n=!s,this.adapter.setCheckedCheckboxOrRadioAtIndex(t,n)),this.adapter.setAttributeForElementIndex(t,i,n?"true":"false");var r=this.selectedIndex===y.numbers.UNSET_INDEX?[]:this.selectedIndex.slice();n?r.push(t):r=r.filter(function(e){return e!==t}),this.selectedIndex=r},E.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},E.prototype.checkboxListToggleAll=function(e,t){var n=this.adapter.getListItemCount();if(e.length===n)this.setCheckboxAtIndex([],{isUserInteraction:t});else{for(var i=[],s=0;s<n;s++)(!this.isIndexDisabled(s)||-1<e.indexOf(s))&&i.push(s);this.setCheckboxAtIndex(i,{isUserInteraction:t})}},E.prototype.typeaheadMatchItem=function(e,t,n){var i=this;void 0===n&&(n=!1);var s={focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return i.isIndexDisabled(e)}};return b.matchItem(s,this.typeaheadState)},E.prototype.typeaheadInitSortedIndex=function(){return b.initSortedIndex(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},E.prototype.clearTypeaheadBuffer=function(){b.clearBuffer(this.typeaheadState)},E);function E(e){var t=f.call(this,r(r({},E.defaultAdapter),e))||this;return t.wrapFocus=!1,t.isVertical=!0,t.isSingleSelectionList=!1,t.areDisabledItemsFocusable=!0,t.selectedIndex=y.numbers.UNSET_INDEX,t.focusedItemIndex=y.numbers.UNSET_INDEX,t.useActivatedClass=!1,t.useSelectedAttr=!1,t.ariaCurrentAttrValue=null,t.isCheckboxList=!1,t.isRadioList=!1,t.lastSelectedIndex=null,t.hasTypeahead=!1,t.typeaheadState=b.initState(),t.sortedIndexByFirstChar=new Map,t}t.MDCListFoundation=I,t.default=I},192:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(193),t),s(n(22),t),s(n(9),t),s(n(14),t),s(n(194),t)},193:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t,n){"use strict";function i(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.estimateScrollWidth=t.matches=t.closest=void 0,t.closest=function(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(i(n,t))return n;n=n.parentElement}return null},t.matches=i,t.estimateScrollWidth=function(e){var t=e;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}},22:function(e,t,n){"use strict";
vendor: 6,399 bytes, line 1
1var i,s=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MDCList=void 0;var r,o=n(1),a=n(2),d=n(9),u=n(14),c=(r=o.MDCComponent,s(l,r),Object.defineProperty(l.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[d.cssClasses.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"disabledItemsFocusable",{set:function(e){this.foundation.setDisabledItemsFocusable(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!1,configurable:!0}),l.attachTo=function(e){return new l(e)},l.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=d.evolutionAttribute in this.root.dataset,this.isEvolutionEnabled?this.classNameMap=d.evolutionClassNameMap:a.matches(this.root,d.strings.DEPRECATED_SELECTOR)?this.classNameMap=d.deprecatedClassNameMap:this.classNameMap=Object.values(d.cssClasses).reduce(function(e,t){return e[t]=t,e},{}),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(),this.ensureFocusable()},l.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},l.prototype.layout=function(){var e=this.root.getAttribute(d.strings.ARIA_ORIENTATION);this.vertical=e!==d.strings.ARIA_ORIENTATION_HORIZONTAL;var t="."+this.classNameMap[d.cssClasses.LIST_ITEM_CLASS]+":not([tabindex])",n=d.strings.FOCUSABLE_CHILD_ELEMENTS,i=this.root.querySelectorAll(t);i.length&&Array.prototype.forEach.call(i,function(e){e.setAttribute("tabindex","-1")});var s=this.root.querySelectorAll(n);s.length&&Array.prototype.forEach.call(s,function(e){e.setAttribute("tabindex","-1")}),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},l.prototype.getPrimaryText=function(e){var t,n=e.querySelector("."+this.classNameMap[d.cssClasses.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(t=null==n?void 0:n.textContent)&&void 0!==t?t:"";var i=e.querySelector("."+this.classNameMap[d.cssClasses.LIST_ITEM_TEXT_CLASS]);return i&&i.textContent||""},l.prototype.initializeListType=function(){var t=this;if(this.isInteractive=a.matches(this.root,d.strings.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var e=Array.from(this.root.querySelectorAll(d.strings.SELECTED_ITEM_SELECTOR),function(e){return t.listElements.indexOf(e)});a.matches(this.root,d.strings.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=e:0<e.length&&(this.selectedIndex=e[0])}else{var n=this.root.querySelectorAll(d.strings.ARIA_ROLE_CHECKBOX_SELECTOR),i=this.root.querySelector(d.strings.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var s=this.root.querySelectorAll(d.strings.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(s,function(e){return t.listElements.indexOf(e)})}else i&&(this.selectedIndex=this.listElements.indexOf(i))}},l.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},l.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},l.prototype.getDefaultFoundation=function(){var s=this,e={addClassForElementIndex:function(e,t){var n=s.listElements[e];n&&n.classList.add(s.classNameMap[t])},focusItemAtIndex:function(e){var t=s.listElements[e];t&&t.focus()},getAttributeForElementIndex:function(e,t){return s.listElements[e].getAttribute(t)},getFocusedElementIndex:function(){return s.listElements.indexOf(document.activeElement)},getListItemCount:function(){return s.listElements.length},getPrimaryTextAtIndex:function(e){return s.getPrimaryText(s.listElements[e])},hasCheckboxAtIndex:function(e){return!!s.listElements[e].querySelector(d.strings.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(e){return!!s.listElements[e].querySelector(d.strings.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(e){return s.listElements[e].querySelector(d.strings.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return s.root!==document.activeElement&&s.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===s.root},listItemAtIndexHasClass:function(e,t){return s.listElements[e].classList.contains(s.classNameMap[t])},notifyAction:function(e){s.emit(d.strings.ACTION_EVENT,{index:e},!0)},notifySelectionChange:function(e){s.emit(d.strings.SELECTION_CHANGE_EVENT,{changedIndices:e},!0)},removeClassForElementIndex:function(e,t){var n=s.listElements[e];n&&n.classList.remove(s.classNameMap[t])},setAttributeForElementIndex:function(e,t,n){var i=s.listElements[e];i&&i.setAttribute(t,n)},setCheckedCheckboxOrRadioAtIndex:function(e,t){var n=s.listElements[e].querySelector(d.str
vendor: 9,507 bytes, line 1
1ings.CHECKBOX_RADIO_SELECTOR);n.checked=t;var i=document.createEvent("Event");i.initEvent("change",!0,!0),n.dispatchEvent(i)},setTabIndexForListItemChildren:function(e,t){var n=s.listElements[e],i=d.strings.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(n.querySelectorAll(i),function(e){e.setAttribute("tabindex",t)})}};return new u.MDCListFoundation(e)},l.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[d.cssClasses.LIST_ITEM_CLASS]+'[tabindex="0"]')){var e=this.initialFocusIndex();-1!==e&&(this.listElements[e].tabIndex=0)}},l.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&0<this.selectedIndex.length)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==d.numbers.UNSET_INDEX)return this.selectedIndex;var e=this.root.querySelector("."+this.classNameMap[d.cssClasses.LIST_ITEM_CLASS]+":not(."+this.classNameMap[d.cssClasses.LIST_ITEM_DISABLED_CLASS]+")");return null===e?-1:this.getListItemIndex(e)},l.prototype.getListItemIndex=function(e){var t=a.closest(e,"."+this.classNameMap[d.cssClasses.LIST_ITEM_CLASS]+", ."+this.classNameMap[d.cssClasses.ROOT]);return t&&a.matches(t,"."+this.classNameMap[d.cssClasses.LIST_ITEM_CLASS])?this.listElements.indexOf(t):-1},l.prototype.handleFocusInEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusIn(t)},l.prototype.handleFocusOutEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusOut(t)},l.prototype.handleKeydownEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(this.classNameMap[d.cssClasses.LIST_ITEM_CLASS]),t)},l.prototype.handleClickEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target,i=!a.matches(n,d.strings.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,i,e)},l);function l(){return null!==r&&r.apply(this,arguments)||this}t.MDCList=c},23:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleKeydown=t.clearBuffer=t.isTypingInProgress=t.matchItem=t.initSortedIndex=t.initState=void 0;var p=n(8),u=n(9),m=n(13);function x(e,t){var n,i=e.nextChar,s=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,o=e.focusedItemIndex,a=e.skipFocus,d=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout(function(){c(t)},u.numbers.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+i,-1===(n=1===t.typeaheadBuffer.length?function(e,t,n,i){var s=i.typeaheadBuffer[0],r=e.get(s);if(!r)return-1;if(s===i.currentFirstChar&&r[i.sortedIndexCursor].index===t){i.sortedIndexCursor=(i.sortedIndexCursor+1)%r.length;var o=r[i.sortedIndexCursor].index;if(!n(o))return o}i.currentFirstChar=s;var a,d=-1;for(a=0;a<r.length;a++)if(!n(r[a].index)){d=a;break}for(;a<r.length;a++)if(r[a].index>t&&!n(r[a].index)){d=a;break}return-1===d?-1:(i.sortedIndexCursor=d,r[i.sortedIndexCursor].index)}(r,o,d,t):function(e,t,n){var i=n.typeaheadBuffer[0],s=e.get(i);if(!s)return-1;var r=s[n.sortedIndexCursor];if(0===r.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(r.index))return r.index;var o=(n.sortedIndexCursor+1)%s.length,a=-1;for(;o!==n.sortedIndexCursor;){var d=s[o],u=0===d.text.lastIndexOf(n.typeaheadBuffer,0),c=!t(d.index);if(u&&c){a=o;break}o=(o+1)%s.length}return-1===a?-1:(n.sortedIndexCursor=a,s[n.sortedIndexCursor].index)}(r,d,t))||a||s(n),n}function S(e){return 0<e.typeaheadBuffer.length}function c(e){e.typeaheadBuffer=""}t.initState=function(){return{bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""}},t.initSortedIndex=function(e,t){for(var n=new Map,i=0;i<e;i++){var s=t(i).trim();if(s){var r=s[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:s.toLowerCase(),index:i})}}return n.forEach(function(e){e.sort(function(e,t){return e.index-t.index})}),n},t.matchItem=x,t.isTypingInProgress=S,t.clearBuffer=c,t.handleKeydown=function(e,t){var n=e.event,i=e.isTargetListItem,s=e.focusedItemIndex,r=e.focusItemAtIndex,o=e.sortedIndexByFirstChar,a=e.isItemAtIndexDisabled,d="ArrowLeft"===p.normalizeKey(n),u="ArrowUp"===p.normalizeKey(n),c="ArrowRight"===p.normalizeKey(n),l="ArrowDown"===p.normalizeKey(n),h="Home"===p.normalizeKey(n),f="End"===p.normalizeKey(n),I="Enter"===p.normalizeKey(n),E="Spacebar"===p.normalizeKey(n);return n.altKey||n.ctrlKey||n.metaKey||d||u||c||l||h||f||I?-1:E||1!==n.key.length?E?(i&&m.preventDefaultEvent(n),i&&S(t)?x({focusItemAtIndex:r,focusedItemIndex:s,nextChar:" ",sortedIndexByFirstChar:o,skipFocus:!1,isItemAtIndexDisabled:a},t):-1):-1:(m.preventDefaultEvent(n),x({focusItemAtIndex:r,focusedItemIndex:s,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:o,skipFocus:!1,isItemAtIndexDisabled:a},t))}},8:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isNavigationEvent=i.normalizeKey=i.KEY=void 0,i.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var s=new Set;s.add(i.KEY.BACKSPACE),s.add(i.KEY.ENTER),s.add(i.KEY.SPACEBAR),s.add(i.KEY.PAGE_UP),s.add(i.KEY.PAGE_DOWN),s.add(i.KEY.END),s.add(i.KEY.HOME),s.add(i.KEY.ARROW_LEFT),s.add(i.KEY.ARROW_UP),s.add(i.KEY.ARROW_RIGHT),s.add(i.KEY.ARROW_DOWN),s.add(i.KEY.DELETE),s.add(i.KEY.ESCAPE),s.add(i.KEY.TAB);var n=8,r=13,o=32,a=33,d=34,u=35,c=36,l=37,h=38,f=39,I=40,E=46,p=27,m=9,x=new Map;x.set(n,i.KEY.BACKSPACE),x.set(r,i.KEY.ENTER),x.set(o,i.KEY.SPACEBAR),x.set(a,i.KEY.PAGE_UP),x.set(d,i.KEY.PAGE_DOWN),x.set(u,i.KEY.END),x.set(c,i.KEY.HOME),x.set(l,i.KEY.ARROW_LEFT),x.set(h,i.KEY.ARROW_UP),x.set(f,i.KEY.ARROW_RIGHT),x.set(I,i.KEY.ARROW_DOWN),x.set(E,i.KEY.DELETE),x.set(p,i.KEY.ESCAPE),x.set(m,i.KEY.TAB);var S=new Set;function A(e){var t=e.key;if(s.has(t))return t;var n=x.get(e.keyCode);return n||i.KEY.UNKNOWN}S.add(i.KEY.PAGE_UP),S.add(i.KEY.PAGE_DOWN),S.add(i.KEY.END),S.add(i.KEY.HOME),S.add(i.KEY.ARROW_LEFT),S.add(i.KEY.ARROW_UP),S.add(i.KEY.ARROW_RIGHT),S.add(i.KEY.ARROW_DOWN),i.normalizeKey=A,i.isNavigationEvent=function(e){return S.has(A(e))}},9:function(e,t,n){"use strict";var i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.evolutionClassNameMap=t.evolutionAttribute=t.deprecatedClassNameMap=t.numbers=t.cssClasses=t.strings=void 0;var r={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"},o=((i={})[""+(t.cssClasses=r).LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",i[""+r.LIST_ITEM_CLASS]="mdc-list-item",i[""+r.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",i[""+r.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",i[""+r.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",i[""+r.ROOT]="mdc-list",i);t.evolutionClassNameMap=o;var a=((s={})[""+r.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",s[""+r.LIST_ITEM_CLASS]="mdc-deprecated-list-item",s[""+r.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",s[""+r.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",s[""+r.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",s[""+r.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",s[""+r.ROOT]="mdc-deprecated-list",s);t.deprecatedClassNameMap=a;var d={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",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",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+r.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+r.LIST_ITEM_CLASS+" a,\n ."+a[r.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[r.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+r.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+r.LIST_ITEM_CLASS+" a,\n ."+r.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+r.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+a[r.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[r.LIST_ITEM_CLASS]+" a,\n ."+a[r.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+a[r.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'};t.strings=d;t.numbers={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};t.evolutionAttribute="evolution"}},s.c=i,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=192);function s(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}var n,i});
vendor: 66,070 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/menu",[],e):"object"==typeof exports?exports.menu=e():(t.mdc=t.mdc||{},t.mdc.menu=e())}(this,function(){return i={},s.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(s,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),s.prototype.init=function(){},s.prototype.destroy=function(){},s);function s(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,o=n.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)r.push(i.value)}catch(t){s={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return r},o=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,s=t.length;n<i;n++,s++)t[s]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),r=(a.attachTo=function(t){return new a(t,new i.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},a);function a(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,o([],s(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=r,e.default=r},10:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var r={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 u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in r){var n=t.document.createElement("div"),i=r[e],s=i.standard,o=i.prefixed;return s in n.style?s:o}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in a){var n=t.document.createElement("div"),i=a[e],s=i.standard,o=i.prefixed;return i.cssProperty in n.style?s:o}return e}},11:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Corner=e.CornerBit=e.numbers=e.strings=e.cssClasses=void 0;e.cssClasses={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"};var i={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",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"])'].join(", ")};e.strings=i;var s,o,r,a;e.numbers={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30},(o=s=s||{})[o.BOTTOM=1]="BOTTOM",o[o.CENTER=2]="CENTER",o[o.RIGHT=4]="RIGHT",o[o.FLIP_RTL=8]="FLIP_RTL",e.CornerBit=s,(a=r=r||{})[a.TOP_LEFT=0]="TOP_LEFT",a[a.TOP_RIGHT=4]="TOP_RIGHT",a[a.BOTTOM_LEFT=1]="BOTTOM_LEFT",a[a.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",a[a.TOP_START=8]="TOP_START",a[a.TOP_END=12]="TOP_END",a[a.BOTTOM_START=9]="BOTTOM_START",a[a.BOTTOM_END=13]="BOTTOM_END",e.Corner=r},13:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preventDefaultEvent=void 0;var i=["input","button","textarea","select"];e.preventDefaultEvent=function(t){var e=t.target;if(e){var n=(""+e.tagName).toLowerCase();-1===i.indexOf(n)&&t.preventDefault()}}},14:function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return a(e,t),e},l=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,o=n.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)r.push(i.value)}catch(t){s={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return r},h=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,s=t.length;n<i;n++,s++)t[s]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCListFoundation=void 0;var c=n(0),T=n(8),_=n(9),A=n(13),b=u(n(23));var d=["Alt","Control","Meta","Shift"];function x(e){var n=new Set(e?d.filter(function(t){return e.getModifierState(t)}):[]);return function(t){return t.every(function(t){return n.has(t)})&&t.length===n.size}}var f,p=(f=c.MDCFoundation,s(I,f),Object.defineProperty(I,"strings",{get:function(){return _.strings},enumerable:!1,configurable:!0}),Object.defineProperty(I,"cssClasses",{get:function(){return _.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(I,"numbers",{get:function(){return _.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(I,"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(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),I.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()))},I.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},I.prototype.setWrapFocus=function(t){this.wrapFocus=t},I.prototype.setVerticalOrientation=function(t){this.isVertical=t},I.prototype.setSingleSelection=function(t){(this.isSingleSelectionList=t)&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},I.prototype.setDisabledItemsFocusable=function(t){this.areDisabledItemsFocusable=t},I.prototype.maybeInitializeSingleSelection=function(){var t=this.getSelectedIndexFromDOM();t!==_.numbers.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,_.cssClasses.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},I.prototype.getSelectedIndexFromDOM=function(){for(var t=_.numbers.UNSET_INDEX,e=this.adapter.getListItemCount(),n=0;n<e;n++){var i=this.adapter.listItemAtIndexHasClass(n,_.cssClasses.LIST_ITEM_SELECTED_CLASS),s=this.adapter.listItemAtIndexHasClass(n,_.cssClasses.LIST_ITEM_ACTIVATED_CLASS);if(i||s){t=n;break}}return t},I.prototype.setHasTypeahead=function(t){(this.hasTypeahead=t)&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},I.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&b.isTypingInProgress(this.typeaheadState)},I.prototype.setUseActivatedClass=function(t){this.useActivatedClass=t},I.prototype.setUseSelectedAttribute=function(t){this.useSelectedAttr=t},I.prototype.getSelectedIndex=function(){return this.selectedIndex},I.prototype.setSelectedIndex=function(t,e){void 0===e&&(e={}),this.isIndexValid(t)&&(this.isCheckboxList?this.setCheckboxAtIndex(t,e):this.isRadioList?this.setRadioAtIndex(t,e):this.setSingleSelectionAtIndex(t,e))},I.prototype.handleFocusIn=function(t){0<=t&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},I.prototype.handleFocusOut=function(t){var e=this;0<=t&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){e.adapter.isFocusInsideList()||e.setTabindexToFirstSelectedOrFocusedItem()},0)},I.prototype.isIndexDisabled=function(t){return this.adapter.listItemAtIndexHasClass(t,_.cssClasses.LIST_ITEM_DISABLED_CLASS)},I.prototype.handleKeydown=function(t,e,n){var i,s=this,o="ArrowLeft"===T.normalizeKey(t),r="ArrowUp"===T.normalizeKey(t),a="ArrowRight"===T.normalizeKey(t),u="ArrowDown"===T.normalizeKey(t),c="Home"===T.normalizeKey(t),d="End"===T.normalizeKey(t),l="Enter"===T.normalizeKey(t),h="Spacebar"===T.normalizeKey(t),f=this.isVertical&&u||!this.isVertical&&a,p=this.isVertical&&r||!this.isVertical&&o,I="A"===t.key||"a"===t.key,E=x(t);if(this.adapter.isRootFocused()){if((p||d)&&E([])?(t.preventDefault(),this.focusLastElement()):(f||c)&&E([])?(t.preventDefault(),this.focusFirstElement()):p&&E(["Shift"])&&this.isCheckboxList?(t.preventDefault(),-1!==(C=this.focusLastElement())&&this.setSelectedIndexOnAction(C,!1)):f&&E(["Shift"])&&this.isCheckboxList&&(t.preventDefault(),-1!==(C=this.focusFirstElement())&&this.setSelectedIndexOnAction(C,!1)),this.hasTypeahead){var m={event:t,focusItemAtIndex:function(t){s.focusItemAtIndex(t)},focusedItemIndex:-1,isTargetListItem:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return s.isIndexDisabled(t)}};b.handleKeydown(m,this.typeaheadState)}}else{var y=this.adapter.getFocusedElementIndex();if(!(-1===y&&(y=n)<0)){if(f&&E([]))A.preventDefaultEvent(t),this.focusNextElement(y);else if(p&&E([]))A.preventDefaultEvent(t),this.focusPrevElement(y);else if(f&&E(["Shift"])&&this.isCheckboxList)A.preventDefaultEvent(t),-1!==(C=this.focusNextElement(y))&&this.setSelectedIndexOnAction(C,!1);else if(p&&E(["Shift"])&&this.isCheckboxList){var C;A.preventDefaultEvent(t),-1!==(C=this.focusPrevElement(y))&&this.setSelectedIndexOnAction(C,!1)}else if(c&&E([]))A.preventDefaultEvent(t),this.focusFirstElement();else if(d&&E([]))A.preventDefaultEvent(t),this.focusLastElement();else if(c&&E(["Control","Shift"])&&this.isCheckboxList){if(A.preventDefaultEvent(t),this.isIndexDisabled(y))return;this.focusFirstElement(),this.toggleCheckboxRange(0,y,y)}else if(d&&E(["Control","Shift"])&&this.isCheckboxList){if(A.preventDefaultEvent(t),this.isIndexDisabled(y))return;this.focusLastElement(),this.toggleCheckboxRange(y,this.adapter.getListItemCount()-1,y)}else if(I&&E(["Control"])&&this.isCheckboxList)t.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===_.numbers.UNSET_INDEX?[]:this.selectedIndex,!0);else if((l||h)&&E([])){if(e){if((S=t.target)&&"A"===S.tagName&&l)return;if(A.preventDefaultEvent(t),this.isIndexDisabled(y))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(y,!1),this.adapter.notifyAction(y))}}else if((l||h)&&E(["Shift"])&&this.isCheckboxList){var S;if((S=t.target)&&"A"===S.tagName&&l)return;if(A.preventDefaultEvent(t),this.isIndexDisabled(y))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:y,y,y),this.adapter.notifyAction(y))}this.hasTypeahead&&(m={event:t,focusItemAtIndex:function(t){s.focusItemAtIndex(t)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return s.isIndexDisabled(t)}},b.handleKeydown(m,this.typeaheadState))}}},I.prototype.handleClick=function(t,e,n){var i,s=x(n);t!==_.numbers.UNSET_INDEX&&(this.isIndexDisabled(t)||(s([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(t,e),this.adapter.notifyAction(t)):this.isCheckboxList&&s(["Shift"])&&(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:t,t,t),this.adapter.notifyAction(t))))},I.prototype.focusNextElement=function(t){var e=this.adapter.getListItemCount(),n=t,i=null;do{if(e<=++n){if(!this.wrapFocus)return t;n=0}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},I.prototype.focusPrevElement=function(t){var e=this.adapter.getListItemCount(),n=t,i=null;do{if(--n<0){if(!this.wrapFocus)return t;n=e-1}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},I.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},I.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},I.prototype.focusInitialElement=function(){var t=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(t),t},I.prototype.setEnabled=function(t,e){this.isIndexValid(t,!1)&&(e?(this.adapter.removeClassForElementIndex(t,_.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,_.strings.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,_.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,_.strings.ARIA_DISABLED,"true")))},I.prototype.setSingleSelectionAtIndex=function(t,e){if(void 0===e&&(e={}),this.selectedIndex!==t||e.forceUpdate){var n=_.cssClasses.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=_.cssClasses.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==_.numbers.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==_.numbers.UNSET_INDEX&&this.adapter.addClassForElementIndex(t,n),this.selectedIndex=t,e.isUserInteraction&&!e.forceUpdate&&this.adapter.notifySelectionChange([t])}},I.prototype.setAriaForSingleSelectionAtIndex=function(t){this.selectedIndex===_.numbers.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,_.strings.ARIA_CURRENT));var e=null!==this.ariaCurrentAttrValue,n=e?_.strings.ARIA_CURRENT:_.strings.ARIA_SELECTED;if(this.selectedIndex!==_.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),t!==_.numbers.UNSET_INDEX){var i=e?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(t,n,i)}},I.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?_.strings.ARIA_SELECTED:_.strings.ARIA_CHECKED},I.prototype.setRadioAtIndex=function(t,e){void 0===e&&(e={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(t,!0),this.selectedIndex===t&&!e.forceUpdate||(this.selectedIndex!==_.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(t,n,"true"),this.selectedIndex=t,e.isUserInteraction&&!e.forceUpdate&&this.adapter.notifySelectionChange([t]))},I.prototype.setCheckboxAtIndex=function(t,e){void 0===e&&(e={});for(var n=this.selectedIndex,i=e.isUserInteraction?new Set(n===_.numbers.UNSET_INDEX?[]:n):null,s=this.getSelectionAttribute(),o=[],r=0;r<this.adapter.getListItemCount();r++){var a=null==i?void 0:i.has(r),u=0<=t.indexOf(r);u!==a&&o.push(r),this.adapter.setCheckedCheckboxOrRadioAtIndex(r,u),this.adapter.setAttributeForElementIndex(r,s,u?"true":"false")}this.selectedIndex=t,e.isUserInteraction&&o.length&&this.adapter.notifySelectionChange(o)},I.prototype.toggleCheckboxRange=function(t,e,n){this.lastSelectedIndex=n;for(var i=new Set(this.selectedIndex===_.numbers.UNSET_INDEX?[]:this.selectedIndex),s=!(null==i?void 0:i.has(n)),o=l([t,e].sort(),2),r=o[0],a=o[1],u=this.getSelectionAttribute(),c=[],d=r;d<=a;d++)this.isIndexDisabled(d)||s!==i.has(d)&&(c.push(d),this.adapter.setCheckedCheckboxOrRadioAtIndex(d,s),this.adapter.setAttributeForElementIndex(d,u,""+s),s?i.add(d):i.delete(d));c.length&&(this.selectedIndex=h([],l(i)),this.adapter.notifySelectionChange(c))},I.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===_.numbers.UNSET_INDEX&&0!==t?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):0<=this.focusedItemIndex&&this.focusedItemIndex!==t&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===t||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),t!==_.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,"tabindex","0")},I.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},I.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var t=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(t)},I.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==_.numbers.UNSET_INDEX?this.selectedIndex:function(t){return t instanceof Array}(this.selectedIndex)&&0<this.selectedIndex.length?this.selectedIndex.reduce(function(t,e){return Math.min(t,e)}):0:Math.max(this.focusedItemIndex,0)},I.prototype.isIndexValid=function(t,e){var n=this;if(void 0===e&&(e=!0),t instanceof Array){if(!this.isCheckboxList&&e)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===t.length||t.some(function(t){return n.isIndexInRange(t)})}if("number"!=typeof t)return!1;if(this.isCheckboxList&&e)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange(t)||this.isSingleSelectionList&&t===_.numbers.UNSET_INDEX},I.prototype.isIndexInRange=function(t){var e=this.adapter.getListItemCount();return 0<=t&&t<e},I.prototype.setSelectedIndexOnAction=function(t,e){this.lastSelectedIndex=t,this.isCheckboxList?(this.toggleCheckboxAtIndex(t,e),this.adapter.notifySelectionChange([t])):this.setSelectedIndex(t,{isUserInteraction:!0})},I.prototype.toggleCheckboxAtIndex=function(e,t){var n,i=this.getSelectionAttribute(),s=this.adapter.isCheckboxCheckedAtIndex(e);t?n=s:(n=!s,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,n)),this.adapter.setAttributeForElementIndex(e,i,n?"true":"false");var o=this.selectedIndex===_.numbers.UNSET_INDEX?[]:this.selectedIndex.slice();n?o.push(e):o=o.filter(function(t){return t!==e}),this.selectedIndex=o},I.prototype.focusItemAtIndex=function(t){this.adapter.focusItemAtIndex(t),this.focusedItemIndex=t},I.prototype.checkboxListToggleAll=function(t,e){var n=this.adapter.getListItemCount();if(t.length===n)this.setCheckboxAtIndex([],{isUserInteraction:e});else{for(var i=[],s=0;s<n;s++)(!this.isIndexDisabled(s)||-1<t.indexOf(s))&&i.push(s);this.setCheckboxAtIndex(i,{isUserInteraction:e})}},I.prototype.typeaheadMatchItem=function(t,e,n){var i=this;void 0===n&&(n=!1);var s={focusItemAtIndex:function(t){i.focusItemAtIndex(t)},focusedItemIndex:e||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(t){return i.isIndexDisabled(t)}};return b.matchItem(s,this.typeaheadState)},I.prototype.typeaheadInitSortedIndex=function(){return b.initSortedIndex(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},I.prototype.clearTypeaheadBuffer=function(){b.clearBuffer(this.typeaheadState)},I);function I(t){var e=f.call(this,o(o({},I.defaultAdapter),t))||this;return e.wrapFocus=!1,e.isVertical=!0,e.isSingleSelectionList=!1,e.areDisabledItemsFocusable=!0,e.selectedIndex=_.numbers.UNSET_INDEX,e.focusedItemIndex=_.numbers.UNSET_INDEX,e.useActivatedClass=!1,e.useSelectedAttr=!1,e.ariaCurrentAttrValue=null,e.isCheckboxList=!1,e.isRadioList=!1,e.lastSelectedIndex=null,e.hasTypeahead=!1,e.typeaheadState=b.initState(),e.sortedIndexByFirstChar=new Map,e}e.MDCListFoundation=p,e.default=p},16:function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},f=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuSurfaceFoundation=void 0;var r,a=n(0),m=n(11),u=(r=a.MDCFoundation,s(y,r),Object.defineProperty(y,"cssClasses",{get:function(){return m.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(y,"strings",{get:function(){return m.strings},enumerable:!1,configurable:!0}),Object.defineProperty(y,"numbers",{get:function(){return m.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(y,"Corner",{get:function(){return m.Corner},enumerable:!1,configurable:!0}),Object.defineProperty(y,"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(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),y.prototype.init=function(){var t=y.cssClasses,e=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(e))throw new Error(e+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},y.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},y.prototype.setAnchorCorner=function(t){this.anchorCorner=t},y.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^m.CornerBit.RIGHT},y.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},y.prototype.setIsHoisted=function(t){this.isHoistedElement=t},y.prototype.setFixedPosition=function(t){this.isFixedPosition=t},y.prototype.isFixed=function(){return this.isFixedPosition},y.prototype.setAbsolutePosition=function(t,e){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(e)?e:0},y.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},y.prototype.setQuickOpen=function(t){this.isQuickOpen=t},y.prototype.setMaxHeight=function(t){this.maxHeight=t},y.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},y.prototype.isOpen=function(){return this.isSurfaceOpen},y.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(y.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(y.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(y.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout(function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(y.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()},m.numbers.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},y.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(y.cssClasses.OPEN),this.adapter.removeClass(y.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(y.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){e.adapter.removeClass(y.cssClasses.OPEN),e.adapter.removeClass(y.cssClasses.IS_OPEN_BELOW),e.closeAnimationEndTimerId=setTimeout(function(){e.closeAnimationEndTimerId=0,e.adapter.removeClass(y.cssClasses.ANIMATING_CLOSED),e.adapter.notifyClose()},m.numbers.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},y.prototype.handleBodyClick=function(t){var e=t.target;this.adapter.isElementInContainer(e)||this.close()},y.prototype.handleKeydown=function(t){var e=t.keyCode;"Escape"!==t.key&&27!==e||this.close()},y.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var e=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(e),i=this.hasBit(e,m.CornerBit.BOTTOM)?"bottom":"top",s=this.hasBit(e,m.CornerBit.RIGHT)?"right":"left",o=this.getHorizontalOriginOffset(e),r=this.getVerticalOriginOffset(e),a=this.measurements,u=a.anchorSize,c=a.surfaceSize,d=((t={})[s]=o,t[i]=r,t);u.width/c.width>m.numbers.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(s="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(d),this.adapter.setTransformOrigin(s+" "+i),this.adapter.setPosition(d),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(e,m.CornerBit.BOTTOM)||this.adapter.addClass(y.cssClasses.IS_OPEN_BELOW)},y.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),e=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return{anchorSize:t=t||{top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0},bodySize:e,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:i}},y.prototype.getoriginCorner=function(){var t,e,n=this.originCorner,i=this.measurements,s=i.viewportDistance,o=i.anchorSize,r=i.surfaceSize,a=y.numbers.MARGIN_TO_EDGE;!(0<(e=this.hasBit(this.anchorCorner,m.CornerBit.BOTTOM)?(t=s.top-a+this.anchorMargin.bottom,s.bottom-a-this.anchorMargin.bottom):(t=s.top-a+this.anchorMargin.top,s.bottom-a+o.height-this.anchorMargin.top))-r.height)&&t>e+this.openBottomBias&&(n=this.setBit(n,m.CornerBit.BOTTOM));var u,c,d=this.adapter.isRtl(),l=this.hasBit(this.anchorCorner,m.CornerBit.FLIP_RTL),h=this.hasBit(this.anchorCorner,m.CornerBit.RIGHT)||this.hasBit(n,m.CornerBit.RIGHT),f=!1;c=(f=d&&l?!h:h)?(u=s.left+o.width+this.anchorMargin.right,s.right-this.anchorMargin.right):(u=s.left+this.anchorMargin.left,s.right+o.width-this.anchorMargin.left);var p=0<u-r.width,I=0<c-r.width,E=this.hasBit(n,m.CornerBit.FLIP_RTL)&&this.hasBit(n,m.CornerBit.RIGHT);return I&&E&&d||!p&&E?n=this.unsetBit(n,m.CornerBit.RIGHT):(p&&f&&d||p&&!f&&h||!I&&c<=u)&&(n=this.setBit(n,m.CornerBit.RIGHT)),n},y.prototype.getMenuSurfaceMaxHeight=function(t){if(0<this.maxHeight)return this.maxHeight;var e=this.measurements.viewportDistance,n=0,i=this.hasBit(t,m.CornerBit.BOTTOM),s=this.hasBit(this.anchorCorner,m.CornerBit.BOTTOM),o=y.numbers.MARGIN_TO_EDGE;return i?(n=e.top+this.anchorMargin.top-o,s||(n+=this.measurements.anchorSize.height)):(n=e.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-o,s&&(n-=this.measurements.anchorSize.height)),n},y.prototype.getHorizontalOriginOffset=function(t){var e=this.measurements.anchorSize,n=this.hasBit(t,m.CornerBit.RIGHT),i=this.hasBit(this.anchorCorner,m.CornerBit.RIGHT);if(n){var s=i?e.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?s-(this.measurements.viewportSize.width-this.measurements.bodySize.width):s}return i?e.width-this.anchorMargin.right:this.anchorMargin.left},y.prototype.getVerticalOriginOffset=function(t){var e=this.measurements.anchorSize,n=this.hasBit(t,m.CornerBit.BOTTOM),i=this.hasBit(this.anchorCorner,m.CornerBit.BOTTOM);return n?i?e.height-this.anchorMargin.top:-this.anchorMargin.bottom:i?e.height+this.anchorMargin.bottom:this.anchorMargin.top},y.prototype.adjustPositionForHoistedElement=function(t){var e,n,i=this.measurements,s=i.windowScroll,o=i.viewportDistance,r=i.surfaceSize,a=i.viewportSize,u=Object.keys(t);try{for(var c=f(u),d=c.next();!d.done;d=c.next()){var l=d.value,h=t[l]||0;!this.isHorizontallyCenteredOnViewport||"left"!==l&&"right"!==l?(h+=o[l],this.isFixedPosition||("top"===l?h+=s.y:"bottom"===l?h-=s.y:"left"===l?h+=s.x:h-=s.x),t[l]=h):t[l]=(a.width-r.width)/2}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}},y.prototype.maybeRestoreFocus=function(){var t=this,e=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,i=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(e||i)&&setTimeout(function(){t.adapter.restoreFocus()},m.numbers.TOUCH_EVENT_WAIT_MS)},y.prototype.hasBit=function(t,e){return Boolean(t&e)},y.prototype.setBit=function(t,e){return t|e},y.prototype.unsetBit=function(t,e){return t^e},y.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},y);function y(t){var e=r.call(this,o(o({},y.defaultAdapter),t))||this;return e.isSurfaceOpen=!1,e.isQuickOpen=!1,e.isHoistedElement=!1,e.isFixedPosition=!1,e.isHorizontallyCenteredOnViewport=!1,e.maxHeight=0,e.openBottomBias=0,e.openAnimationEndTimerId=0,e.closeAnimationEndTimerId=0,e.animationRequestId=0,e.anchorCorner=m.Corner.TOP_START,e.originCorner=m.Corner.TOP_START,e.anchorMargin={top:0,right:0,bottom:0,left:0},e.position={x:0,y:0},e}e.MDCMenuSurfaceFoundation=u,e.default=u},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.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}},200:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.Corner=void 0;var o=n(11);Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return o.Corner}}),s(n(201),e),s(n(60),e),s(n(24),e),s(n(47),e),s(n(202),e)},201:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},202:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},22:function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCList=void 0;var o,r=n(1),a=n(2),u=n(9),c=n(14),d=(o=r.MDCComponent,s(l,o),Object.defineProperty(l.prototype,"vertical",{set:function(t){this.foundation.setVerticalOrientation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"wrapFocus",{set:function(t){this.foundation.setWrapFocus(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasTypeahead",{set:function(t){this.foundation.setHasTypeahead(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"singleSelection",{set:function(t){this.foundation.setSingleSelection(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"disabledItemsFocusable",{set:function(t){this.foundation.setDisabledItemsFocusable(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t)},enumerable:!1,configurable:!0}),l.attachTo=function(t){return new l(t)},l.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=u.evolutionAttribute in this.root.dataset,this.isEvolutionEnabled?this.classNameMap=u.evolutionClassNameMap:a.matches(this.root,u.strings.DEPRECATED_SELECTOR)?this.classNameMap=u.deprecatedClassNameMap:this.classNameMap=Object.values(u.cssClasses).reduce(function(t,e){return t[e]=e,t},{}),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(),this.ensureFocusable()},l.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},l.prototype.layout=function(){var t=this.root.getAttribute(u.strings.ARIA_ORIENTATION);this.vertical=t!==u.strings.ARIA_ORIENTATION_HORIZONTAL;var e="."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]+":not([tabindex])",n=u.strings.FOCUSABLE_CHILD_ELEMENTS,i=this.root.querySelectorAll(e);i.length&&Array.prototype.forEach.call(i,function(t){t.setAttribute("tabindex","-1")});var s=this.root.querySelectorAll(n);s.length&&Array.prototype.forEach.call(s,function(t){t.setAttribute("tabindex","-1")}),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},l.prototype.getPrimaryText=function(t){var e,n=t.querySelector("."+this.classNameMap[u.cssClasses.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(e=null==n?void 0:n.textContent)&&void 0!==e?e:"";var i=t.querySelector("."+this.classNameMap[u.cssClasses.LIST_ITEM_TEXT_CLASS]);return i&&i.textContent||""},l.prototype.initializeListType=function(){var e=this;if(this.isInteractive=a.matches(this.root,u.strings.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var t=Array.from(this.root.querySelectorAll(u.strings.SELECTED_ITEM_SELECTOR),function(t){return e.listElements.indexOf(t)});a.matches(this.root,u.strings.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=t:0<t.length&&(this.selectedIndex=t[0])}else{var n=this.root.querySelectorAll(u.strings.ARIA_ROLE_CHECKBOX_SELECTOR),i=this.root.querySelector(u.strings.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var s=this.root.querySelectorAll(u.strings.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(s,function(t){return e.listElements.indexOf(t)})}else i&&(this.selectedIndex=this.listElements.indexOf(i))}},l.prototype.setEnabled=function(t,e){this.foundation.setEnabled(t,e)},l.prototype.typeaheadMatchItem=function(t,e){return this.foundation.typeaheadMatchItem(t,e,!0)},l.prototype.getDefaultFoundation=function(){var s=this,t={addClassForElementIndex:function(t,e){var n=s.listElements[t];n&&n.classList.add(s.classNameMap[e])},focusItemAtIndex:function(t){var e=s.listElements[t];e&&e.focus()},getAttributeForElementIndex:function(t,e){return s.listElements[t].getAttribute(e)},getFocusedElementIndex:function(){return s.listElements.indexOf(document.activeElement)},getListItemCount:function(){return s.listElements.length},getPrimaryTextAtIndex:function(t){return s.getPrimaryText(s.listElements[t])},hasCheckboxAtIndex:function(t){return!!s.listElements[t].querySelector(u.strings.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!s.listElements[t].querySelector(u.strings.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return s.listElements[t].querySelector(u.strings.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return s.root!==document.activeElement&&s.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===s.root},listItemAtIndexHasClass:function(t,e){return s.listElements[t].classList.contains(s.classNameMap[e])},notifyAction:function(t){s.emit(u.strings.ACTION_EVENT,{index:t},!0)},notifySelectionChange:function(t){s.emit(u.strings.SELECTION_CHANGE_EVENT,{changedIndices:t},!0)},removeClassForElementIndex:function(t,e){var n=s.listElements[t];n&&n.classList.remove(s.classNameMap[e])},setAttributeForElementIndex:function(t,e,n){var i=s.listElements[t];i&&i.setAttribute(e,n)},setCheckedCheckboxOrRadioAtIndex:function(t,e){var n=s.listElements[t].querySelector(u.strings.CHECKBOX_RADIO_SELECTOR);n.checked=e;var i=document.createEvent("Event");i.initEvent("change",!0,!0),n.dispatchEvent(i)},setTabIndexForListItemChildren:function(t,e){var n=s.listElements[t],i=u.strings.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(n.querySelectorAll(i),function(t){t.setAttribute("tabindex",e)})}};return new c.MDCListFoundation(t)},l.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]+'[tabindex="0"]')){var t=this.initialFocusIndex();-1!==t&&(this.listElements[t].tabIndex=0)}},l.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&0<this.selectedIndex.length)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==u.numbers.UNSET_INDEX)return this.selectedIndex;var t=this.root.querySelector("."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]+":not(."+this.classNameMap[u.cssClasses.LIST_ITEM_DISABLED_CLASS]+")");return null===t?-1:this.getListItemIndex(t)},l.prototype.getListItemIndex=function(t){var e=a.closest(t,"."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]+", ."+this.classNameMap[u.cssClasses.ROOT]);return e&&a.matches(e,"."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS])?this.listElements.indexOf(e):-1},l.prototype.handleFocusInEvent=function(t){var e=this.getListItemIndex(t.target);this.foundation.handleFocusIn(e)},l.prototype.handleFocusOutEvent=function(t){var e=this.getListItemIndex(t.target);this.foundation.handleFocusOut(e)},l.prototype.handleKeydownEvent=function(t){var e=this.getListItemIndex(t.target),n=t.target;this.foundation.handleKeydown(t,n.classList.contains(this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]),e)},l.prototype.handleClickEvent=function(t){var e=this.getListItemIndex(t.target),n=t.target,i=!a.matches(n,u.strings.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(e,i,t)},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MDCList=d},23:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.handleKeydown=e.clearBuffer=e.isTypingInProgress=e.matchItem=e.initSortedIndex=e.initState=void 0;var E=n(8),c=n(9),m=n(13);function y(t,e){var n,i=t.nextChar,s=t.focusItemAtIndex,o=t.sortedIndexByFirstChar,r=t.focusedItemIndex,a=t.skipFocus,u=t.isItemAtIndexDisabled;return clearTimeout(e.bufferClearTimeout),e.bufferClearTimeout=setTimeout(function(){d(e)},c.numbers.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),e.typeaheadBuffer=e.typeaheadBuffer+i,-1===(n=1===e.typeaheadBuffer.length?function(t,e,n,i){var s=i.typeaheadBuffer[0],o=t.get(s);if(!o)return-1;if(s===i.currentFirstChar&&o[i.sortedIndexCursor].index===e){i.sortedIndexCursor=(i.sortedIndexCursor+1)%o.length;var r=o[i.sortedIndexCursor].index;if(!n(r))return r}i.currentFirstChar=s;var a,u=-1;for(a=0;a<o.length;a++)if(!n(o[a].index)){u=a;break}for(;a<o.length;a++)if(o[a].index>e&&!n(o[a].index)){u=a;break}return-1===u?-1:(i.sortedIndexCursor=u,o[i.sortedIndexCursor].index)}(o,r,u,e):function(t,e,n){var i=n.typeaheadBuffer[0],s=t.get(i);if(!s)return-1;var o=s[n.sortedIndexCursor];if(0===o.text.lastIndexOf(n.typeaheadBuffer,0)&&!e(o.index))return o.index;var r=(n.sortedIndexCursor+1)%s.length,a=-1;for(;r!==n.sortedIndexCursor;){var u=s[r],c=0===u.text.lastIndexOf(n.typeaheadBuffer,0),d=!e(u.index);if(c&&d){a=r;break}r=(r+1)%s.length}return-1===a?-1:(n.sortedIndexCursor=a,s[n.sortedIndexCursor].index)}(o,u,e))||a||s(n),n}function C(t){return 0<t.typeaheadBuffer.length}function d(t){t.typeaheadBuffer=""}e.initState=function(){return{bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""}},e.initSortedIndex=function(t,e){for(var n=new Map,i=0;i<t;i++){var s=e(i).trim();if(s){var o=s[0].toLowerCase();n.has(o)||n.set(o,[]),n.get(o).push({text:s.toLowerCase(),index:i})}}return n.forEach(function(t){t.sort(function(t,e){return t.index-e.index})}),n},e.matchItem=y,e.isTypingInProgress=C,e.clearBuffer=d,e.handleKeydown=function(t,e){var n=t.event,i=t.isTargetListItem,s=t.focusedItemIndex,o=t.focusItemAtIndex,r=t.sortedIndexByFirstChar,a=t.isItemAtIndexDisabled,u="ArrowLeft"===E.normalizeKey(n),c="ArrowUp"===E.normalizeKey(n),d="ArrowRight"===E.normalizeKey(n),l="ArrowDown"===E.normalizeKey(n),h="Home"===E.normalizeKey(n),f="End"===E.normalizeKey(n),p="Enter"===E.normalizeKey(n),I="Spacebar"===E.normalizeKey(n);return n.altKey||n.ctrlKey||n.metaKey||u||c||d||l||h||f||p?-1:I||1!==n.key.length?I?(i&&m.preventDefaultEvent(n),i&&C(e)?y({focusItemAtIndex:o,focusedItemIndex:s,nextChar:" ",sortedIndexByFirstChar:r,skipFocus:!1,isItemAtIndexDisabled:a},e):-1):-1:(m.preventDefaultEvent(n),y({focusItemAtIndex:o,focusedItemIndex:s,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:r,skipFocus:!1,isItemAtIndexDisabled:a},e))}},24:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultFocusState=e.numbers=e.strings=e.cssClasses=void 0;e.cssClasses={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"};e.strings={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"};var i,s;e.numbers={FOCUS_ROOT_INDEX:-1},(s=i=i||{})[s.NONE=0]="NONE",s[s.LIST_ROOT=1]="LIST_ROOT",s[s.FIRST_ITEM=2]="FIRST_ITEM",s[s.LAST_ITEM=3]="LAST_ITEM",e.DefaultFocusState=i},37:function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuSurface=void 0;var o,r=n(1),a=n(11),u=n(16),c=n(10),d=(o=r.MDCComponent,s(l,o),l.attachTo=function(t){return new l(t)},l.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(a.cssClasses.ANCHOR)?t:null,this.root.classList.contains(a.cssClasses.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(a.strings.OPENED_EVENT,this.registerBodyClickListener),this.listen(a.strings.CLOSED_EVENT,this.deregisterBodyClickListener)},l.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(a.strings.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(a.strings.CLOSED_EVENT,this.deregisterBodyClickListener),o.prototype.destroy.call(this)},l.prototype.isOpen=function(){return this.foundation.isOpen()},l.prototype.open=function(){this.foundation.open()},l.prototype.close=function(t){void 0===t&&(t=!1),this.foundation.close(t)},Object.defineProperty(l.prototype,"quickOpen",{set:function(t){this.foundation.setQuickOpen(t)},enumerable:!1,configurable:!0}),l.prototype.setIsHoisted=function(t){this.foundation.setIsHoisted(t)},l.prototype.setMenuSurfaceAnchorElement=function(t){this.anchorElement=t},l.prototype.setFixedPosition=function(t){t?this.root.classList.add(a.cssClasses.FIXED):this.root.classList.remove(a.cssClasses.FIXED),this.foundation.setFixedPosition(t)},l.prototype.setAbsolutePosition=function(t,e){this.foundation.setAbsolutePosition(t,e),this.setIsHoisted(!0)},l.prototype.setAnchorCorner=function(t){this.foundation.setAnchorCorner(t)},l.prototype.setAnchorMargin=function(t){this.foundation.setAnchorMargin(t)},l.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},hasAnchor:function(){return!!n.anchorElement},notifyClose:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.CLOSED_EVENT,{})},notifyClosing:function(){n.emit(u.MDCMenuSurfaceFoundation.strings.CLOSING_EVENT,{})},notifyOpen:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.OPENED_EVENT,{})},notifyOpening:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.OPENING_EVENT,{})},isElementInContainer:function(t){return n.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(n.root).getPropertyValue("direction")},setTransformOrigin:function(t){var e=c.getCorrectPropertyName(window,"transform")+"-origin";n.root.style.setProperty(e,t)},isFocused:function(){return document.activeElement===n.root},saveFocus:function(){n.previousFocus=document.activeElement},restoreFocus:function(){n.root.contains(document.activeElement)&&n.previousFocus&&n.previousFocus.focus&&n.previousFocus.focus()},getInnerDimensions:function(){return{width:n.root.offsetWidth,height:n.root.offsetHeight}},getAnchorDimensions:function(){return n.anchorElement?n.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 e=n.root;e.style.left="left"in t?t.left+"px":"",e.style.right="right"in t?t.right+"px":"",e.style.top="top"in t?t.top+"px":"",e.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){n.root.style.maxHeight=t}};return new u.MDCMenuSurfaceFoundation(t)},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MDCMenuSurface=d},47:function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuFoundation=void 0;var r,a=n(0),u=n(9),c=n(16),d=n(24),l=(r=a.MDCFoundation,s(h,r),Object.defineProperty(h,"cssClasses",{get:function(){return d.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return d.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return d.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},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:!1,configurable:!0}),h.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},h.prototype.handleKeydown=function(t){var e=t.key,n=t.keyCode;"Tab"!==e&&9!==n||this.adapter.closeSurface(!0)},h.prototype.handleItemAction=function(e){var n=this,t=this.adapter.getElementIndex(e);if(!(t<0)){this.adapter.notifySelected({index:t});var i="true"===this.adapter.getAttributeFromElementAtIndex(t,d.strings.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(i),this.closeAnimationEndTimerId=setTimeout(function(){var t=n.adapter.getElementIndex(e);0<=t&&n.adapter.isSelectableItemAtIndex(t)&&n.setSelectedIndex(t)},c.MDCMenuSurfaceFoundation.numbers.TRANSITION_CLOSE_DURATION)}},h.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case d.DefaultFocusState.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case d.DefaultFocusState.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case d.DefaultFocusState.NONE:break;default:this.adapter.focusListRoot()}},h.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},h.prototype.getSelectedIndex=function(){return this.selectedIndex},h.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var e=this.adapter.getSelectedSiblingOfItemAtIndex(t);0<=e&&(this.adapter.removeAttributeFromElementAtIndex(e,d.strings.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(e,d.cssClasses.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,d.cssClasses.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,d.strings.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},h.prototype.setEnabled=function(t,e){this.validatedIndex(t),e?(this.adapter.removeClassFromElementAtIndex(t,u.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,d.strings.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,u.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,d.strings.ARIA_DISABLED_ATTR,"true"))},h.prototype.validatedIndex=function(t){var e=this.adapter.getMenuItemCount();if(!(0<=t&&t<e))throw new Error("MDCMenuFoundation: No list item at specified index.")},h);function h(t){var e=r.call(this,o(o({},h.defaultAdapter),t))||this;return e.closeAnimationEndTimerId=0,e.defaultFocusState=d.DefaultFocusState.LIST_ROOT,e.selectedIndex=-1,e}e.MDCMenuFoundation=l,e.default=l},60:function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenu=void 0;var o,r=n(1),a=n(2),u=n(22),c=n(9),d=n(14),l=n(37),h=n(16),f=n(24),p=n(47),I=(o=r.MDCComponent,s(E,o),E.attachTo=function(t){return new E(t)},E.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new l.MDCMenuSurface(t)}),void 0===e&&(e=function(t){return new u.MDCList(t)}),this.menuSurfaceFactory=t,this.listFactory=e},E.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface=this.menuSurfaceFactory(this.root);var t=this.root.querySelector(f.strings.LIST_SELECTOR);t?(this.list=this.listFactory(t),this.list.wrapFocus=!0):this.list=null,this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleItemAction=function(t){e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened=function(){e.foundation.handleMenuSurfaceOpened()},this.menuSurface.listen(h.MDCMenuSurfaceFoundation.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.listen("keydown",this.handleKeydown),this.listen(d.MDCListFoundation.strings.ACTION_EVENT,this.handleItemAction)},E.prototype.destroy=function(){this.list&&this.list.destroy(),this.menuSurface.destroy(),this.menuSurface.unlisten(h.MDCMenuSurfaceFoundation.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.unlisten("keydown",this.handleKeydown),this.unlisten(d.MDCListFoundation.strings.ACTION_EVENT,this.handleItemAction),o.prototype.destroy.call(this)},Object.defineProperty(E.prototype,"open",{get:function(){return this.menuSurface.isOpen()},set:function(t){t?this.menuSurface.open():this.menuSurface.close()},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"wrapFocus",{get:function(){return!!this.list&&this.list.wrapFocus},set:function(t){this.list&&(this.list.wrapFocus=t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"hasTypeahead",{set:function(t){this.list&&(this.list.hasTypeahead=t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"typeaheadInProgress",{get:function(){return!!this.list&&this.list.typeaheadInProgress},enumerable:!1,configurable:!0}),E.prototype.typeaheadMatchItem=function(t,e){return this.list?this.list.typeaheadMatchItem(t,e):-1},E.prototype.layout=function(){this.list&&this.list.layout()},Object.defineProperty(E.prototype,"items",{get:function(){return this.list?this.list.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"singleSelection",{set:function(t){this.list&&(this.list.singleSelection=t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"selectedIndex",{get:function(){return this.list?this.list.selectedIndex:c.numbers.UNSET_INDEX},set:function(t){this.list&&(this.list.selectedIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"quickOpen",{set:function(t){this.menuSurface.quickOpen=t},enumerable:!1,configurable:!0}),E.prototype.setDefaultFocusState=function(t){this.foundation.setDefaultFocusState(t)},E.prototype.setAnchorCorner=function(t){this.menuSurface.setAnchorCorner(t)},E.prototype.setAnchorMargin=function(t){this.menuSurface.setAnchorMargin(t)},E.prototype.setSelectedIndex=function(t){this.foundation.setSelectedIndex(t)},E.prototype.setEnabled=function(t,e){this.foundation.setEnabled(t,e)},E.prototype.getOptionByIndex=function(t){return t<this.items.length?this.items[t]:null},E.prototype.getPrimaryTextAtIndex=function(t){var e=this.getOptionByIndex(t);return e&&this.list&&this.list.getPrimaryText(e)||""},E.prototype.setFixedPosition=function(t){this.menuSurface.setFixedPosition(t)},E.prototype.setIsHoisted=function(t){this.menuSurface.setIsHoisted(t)},E.prototype.setAbsolutePosition=function(t,e){this.menuSurface.setAbsolutePosition(t,e)},E.prototype.setAnchorElement=function(t){this.menuSurface.anchorElement=t},E.prototype.getDefaultFoundation=function(){var i=this,t={addClassToElementAtIndex:function(t,e){i.items[t].classList.add(e)},removeClassFromElementAtIndex:function(t,e){i.items[t].classList.remove(e)},addAttributeToElementAtIndex:function(t,e,n){i.items[t].setAttribute(e,n)},removeAttributeFromElementAtIndex:function(t,e){i.items[t].removeAttribute(e)},getAttributeFromElementAtIndex:function(t,e){return i.items[t].getAttribute(e)},elementContainsClass:function(t,e){return t.classList.contains(e)},closeSurface:function(t){i.menuSurface.close(t)},getElementIndex:function(t){return i.items.indexOf(t)},notifySelected:function(t){i.emit(f.strings.SELECTED_EVENT,{index:t.index,item:i.items[t.index]})},getMenuItemCount:function(){return i.items.length},focusItemAtIndex:function(t){i.items[t].focus()},focusListRoot:function(){i.root.querySelector(f.strings.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!a.closest(i.items[t],"."+f.cssClasses.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var e=a.closest(i.items[t],"."+f.cssClasses.MENU_SELECTION_GROUP).querySelector("."+f.cssClasses.MENU_SELECTED_LIST_ITEM);return e?i.items.indexOf(e):-1}};return new p.MDCMenuFoundation(t)},E);function E(){return null!==o&&o.apply(this,arguments)||this}e.MDCMenu=I},8:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isNavigationEvent=i.normalizeKey=i.KEY=void 0,i.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var s=new Set;s.add(i.KEY.BACKSPACE),s.add(i.KEY.ENTER),s.add(i.KEY.SPACEBAR),s.add(i.KEY.PAGE_UP),s.add(i.KEY.PAGE_DOWN),s.add(i.KEY.END),s.add(i.KEY.HOME),s.add(i.KEY.ARROW_LEFT),s.add(i.KEY.ARROW_UP),s.add(i.KEY.ARROW_RIGHT),s.add(i.KEY.ARROW_DOWN),s.add(i.KEY.DELETE),s.add(i.KEY.ESCAPE),s.add(i.KEY.TAB);var n=8,o=13,r=32,a=33,u=34,c=35,d=36,l=37,h=38,f=39,p=40,I=46,E=27,m=9,y=new Map;y.set(n,i.KEY.BACKSPACE),y.set(o,i.KEY.ENTER),y.set(r,i.KEY.SPACEBAR),y.set(a,i.KEY.PAGE_UP),y.set(u,i.KEY.PAGE_DOWN),y.set(c,i.KEY.END),y.set(d,i.KEY.HOME),y.set(l,i.KEY.ARROW_LEFT),y.set(h,i.KEY.ARROW_UP),y.set(f,i.KEY.ARROW_RIGHT),y.set(p,i.KEY.ARROW_DOWN),y.set(I,i.KEY.DELETE),y.set(E,i.KEY.ESCAPE),y.set(m,i.KEY.TAB);var C=new Set;function S(t){var e=t.key;if(s.has(e))return e;var n=y.get(t.keyCode);return n||i.KEY.UNKNOWN}C.add(i.KEY.PAGE_UP),C.add(i.KEY.PAGE_DOWN),C.add(i.KEY.END),C.add(i.KEY.HOME),C.add(i.KEY.ARROW_LEFT),C.add(i.KEY.ARROW_UP),C.add(i.KEY.ARROW_RIGHT),C.add(i.KEY.ARROW_DOWN),i.normalizeKey=S,i.isNavigationEvent=function(t){return C.has(S(t))}},9:function(t,e,n){"use strict";var i,s;Object.defineProperty(e,"__esModule",{value:!0}),e.evolutionClassNameMap=e.evolutionAttribute=e.deprecatedClassNameMap=e.numbers=e.cssClasses=e.strings=void 0;var o={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"},r=((i={})[""+(e.cssClasses=o).LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",i[""+o.LIST_ITEM_CLASS]="mdc-list-item",i[""+o.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",i[""+o.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",i[""+o.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",i[""+o.ROOT]="mdc-list",i);e.evolutionClassNameMap=r;var a=((s={})[""+o.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",s[""+o.LIST_ITEM_CLASS]="mdc-deprecated-list-item",s[""+o.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",s[""+o.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",s[""+o.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",s[""+o.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",s[""+o.ROOT]="mdc-deprecated-list",s);e.deprecatedClassNameMap=a;var u={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",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",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+o.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+o.LIST_ITEM_CLASS+" a,\n ."+a[o.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[o.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+o.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+o.LIST_ITEM_CLASS+" a,\n ."+o.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+o.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+a[o.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[o.LIST_ITEM_CLASS]+" a,\n ."+a[o.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+a[o.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'};e.strings=u;e.numbers={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};e.evolutionAttribute="evolution"}},s.c=i,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)s.d(n,i,function(t){return e[t]}.bind(null,i));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=200);function s(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,s),e.l=!0,e.exports}var n,i});
vendor: 21,557 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/menu-surface",[],e):"object"==typeof exports?exports["menu-surface"]=e():(t.mdc=t.mdc||{},t.mdc["menu-surface"]=e())}(this,function(){return i={},o.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},r=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,o=t.length;n<i;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),s=(a.attachTo=function(t){return new a(t,new i.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},a);function a(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,r([],o(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},10:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var s={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 u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in s){var n=t.document.createElement("div"),i=s[e],o=i.standard,r=i.prefixed;return o in n.style?o:r}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in a){var n=t.document.createElement("div"),i=a[e],o=i.standard,r=i.prefixed;return i.cssProperty in n.style?o:r}return e}},11:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Corner=e.CornerBit=e.numbers=e.strings=e.cssClasses=void 0;e.cssClasses={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"};var i={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",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"])'].join(", ")};e.strings=i;var o,r,s,a;e.numbers={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30},(r=o=o||{})[r.BOTTOM=1]="BOTTOM",r[r.CENTER=2]="CENTER",r[r.RIGHT=4]="RIGHT",r[r.FLIP_RTL=8]="FLIP_RTL",e.CornerBit=o,(a=s=s||{})[a.TOP_LEFT=0]="TOP_LEFT",a[a.TOP_RIGHT=4]="TOP_RIGHT",a[a.BOTTOM_LEFT=1]="BOTTOM_LEFT",a[a.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",a[a.TOP_START=8]="TOP_START",a[a.TOP_END=12]="TOP_END",a[a.BOTTOM_START=9]="BOTTOM_START",a[a.BOTTOM_END=13]="BOTTOM_END",e.Corner=s},16:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},p=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuSurfaceFoundation=void 0;var s,a=n(0),O=n(11),u=(s=a.MDCFoundation,o(g,s),Object.defineProperty(g,"cssClasses",{get:function(){return O.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(g,"strings",{get:function(){return O.strings},enumerable:!1,configurable:!0}),Object.defineProperty(g,"numbers",{get:function(){return O.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(g,"Corner",{get:function(){return O.Corner},enumerable:!1,configurable:!0}),Object.defineProperty(g,"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(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),g.prototype.init=function(){var t=g.cssClasses,e=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(e))throw new Error(e+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},g.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},g.prototype.setAnchorCorner=function(t){this.anchorCorner=t},g.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^O.CornerBit.RIGHT},g.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},g.prototype.setIsHoisted=function(t){this.isHoistedElement=t},g.prototype.setFixedPosition=function(t){this.isFixedPosition=t},g.prototype.isFixed=function(){return this.isFixedPosition},g.prototype.setAbsolutePosition=function(t,e){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(e)?e:0},g.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},g.prototype.setQuickOpen=function(t){this.isQuickOpen=t},g.prototype.setMaxHeight=function(t){this.maxHeight=t},g.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},g.prototype.isOpen=function(){return this.isSurfaceOpen},g.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(g.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(g.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(g.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout(function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(g.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()},O.numbers.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},g.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(g.cssClasses.OPEN),this.adapter.removeClass(g.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(g.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){e.adapter.removeClass(g.cssClasses.OPEN),e.adapter.removeClass(g.cssClasses.IS_OPEN_BELOW),e.closeAnimationEndTimerId=setTimeout(function(){e.closeAnimationEndTimerId=0,e.adapter.removeClass(g.cssClasses.ANIMATING_CLOSED),e.adapter.notifyClose()},O.numbers.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},g.prototype.handleBodyClick=function(t){var e=t.target;this.adapter.isElementInContainer(e)||this.close()},g.prototype.handleKeydown=function(t){var e=t.keyCode;"Escape"!==t.key&&27!==e||this.close()},g.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var e=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(e),i=this.hasBit(e,O.CornerBit.BOTTOM)?"bottom":"top",o=this.hasBit(e,O.CornerBit.RIGHT)?"right":"left",r=this.getHorizontalOriginOffset(e),s=this.getVerticalOriginOffset(e),a=this.measurements,u=a.anchorSize,c=a.surfaceSize,h=((t={})[o]=r,t[i]=s,t);u.width/c.width>O.numbers.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(o="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(h),this.adapter.setTransformOrigin(o+" "+i),this.adapter.setPosition(h),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(e,O.CornerBit.BOTTOM)||this.adapter.addClass(g.cssClasses.IS_OPEN_BELOW)},g.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),e=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return{anchorSize:t=t||{top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0},bodySize:e,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:i}},g.prototype.getoriginCorner=function(){var t,e,n=this.originCorner,i=this.measurements,o=i.viewportDistance,r=i.anchorSize,s=i.surfaceSize,a=g.numbers.MARGIN_TO_EDGE;!(0<(e=this.hasBit(this.anchorCorner,O.CornerBit.BOTTOM)?(t=o.top-a+this.anchorMargin.bottom,o.bottom-a-this.anchorMargin.bottom):(t=o.top-a+this.anchorMargin.top,o.bottom-a+r.height-this.anchorMargin.top))-s.height)&&t>e+this.openBottomBias&&(n=this.setBit(n,O.CornerBit.BOTTOM));var u,c,h=this.adapter.isRtl(),d=this.hasBit(this.anchorCorner,O.CornerBit.FLIP_RTL),f=this.hasBit(this.anchorCorner,O.CornerBit.RIGHT)||this.hasBit(n,O.CornerBit.RIGHT),p=!1;c=(p=h&&d?!f:f)?(u=o.left+r.width+this.anchorMargin.right,o.right-this.anchorMargin.right):(u=o.left+this.anchorMargin.left,o.right+r.width-this.anchorMargin.left);var l=0<u-s.width,m=0<c-s.width,y=this.hasBit(n,O.CornerBit.FLIP_RTL)&&this.hasBit(n,O.CornerBit.RIGHT);return m&&y&&h||!l&&y?n=this.unsetBit(n,O.CornerBit.RIGHT):(l&&p&&h||l&&!p&&f||!m&&c<=u)&&(n=this.setBit(n,O.CornerBit.RIGHT)),n},g.prototype.getMenuSurfaceMaxHeight=function(t){if(0<this.maxHeight)return this.maxHeight;var e=this.measurements.viewportDistance,n=0,i=this.hasBit(t,O.CornerBit.BOTTOM),o=this.hasBit(this.anchorCorner,O.CornerBit.BOTTOM),r=g.numbers.MARGIN_TO_EDGE;return i?(n=e.top+this.anchorMargin.top-r,o||(n+=this.measurements.anchorSize.height)):(n=e.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-r,o&&(n-=this.measurements.anchorSize.height)),n},g.prototype.getHorizontalOriginOffset=function(t){var e=this.measurements.anchorSize,n=this.hasBit(t,O.CornerBit.RIGHT),i=this.hasBit(this.anchorCorner,O.CornerBit.RIGHT);if(n){var o=i?e.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return i?e.width-this.anchorMargin.right:this.anchorMargin.left},g.prototype.getVerticalOriginOffset=function(t){var e=this.measurements.anchorSize,n=this.hasBit(t,O.CornerBit.BOTTOM),i=this.hasBit(this.anchorCorner,O.CornerBit.BOTTOM);return n?i?e.height-this.anchorMargin.top:-this.anchorMargin.bottom:i?e.height+this.anchorMargin.bottom:this.anchorMargin.top},g.prototype.adjustPositionForHoistedElement=function(t){var e,n,i=this.measurements,o=i.windowScroll,r=i.viewportDistance,s=i.surfaceSize,a=i.viewportSize,u=Object.keys(t);try{for(var c=p(u),h=c.next();!h.done;h=c.next()){var d=h.value,f=t[d]||0;!this.isHorizontallyCenteredOnViewport||"left"!==d&&"right"!==d?(f+=r[d],this.isFixedPosition||("top"===d?f+=o.y:"bottom"===d?f-=o.y:"left"===d?f+=o.x:f-=o.x),t[d]=f):t[d]=(a.width-s.width)/2}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}},g.prototype.maybeRestoreFocus=function(){var t=this,e=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,i=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(e||i)&&setTimeout(function(){t.adapter.restoreFocus()},O.numbers.TOUCH_EVENT_WAIT_MS)},g.prototype.hasBit=function(t,e){return Boolean(t&e)},g.prototype.setBit=function(t,e){return t|e},g.prototype.unsetBit=function(t,e){return t^e},g.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},g);function g(t){var e=s.call(this,r(r({},g.defaultAdapter),t))||this;return e.isSurfaceOpen=!1,e.isQuickOpen=!1,e.isHoistedElement=!1,e.isFixedPosition=!1,e.isHorizontallyCenteredOnViewport=!1,e.maxHeight=0,e.openBottomBias=0,e.openAnimationEndTimerId=0,e.closeAnimationEndTimerId=0,e.animationRequestId=0,e.anchorCorner=O.Corner.TOP_START,e.originCorner=O.Corner.TOP_START,e.anchorMargin={top:0,right:0,bottom:0,left:0},e.position={x:0,y:0},e}e.MDCMenuSurfaceFoundation=u,e.default=u},203:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(204),e),o(n(37),e),o(n(11),e),o(n(16),e),o(n(205),e)},204:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},205:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},37:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuSurface=void 0;var r,s=n(1),a=n(11),u=n(16),c=n(10),h=(r=s.MDCComponent,o(d,r),d.attachTo=function(t){return new d(t)},d.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(a.cssClasses.ANCHOR)?t:null,this.root.classList.contains(a.cssClasses.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(a.strings.OPENED_EVENT,this.registerBodyClickListener),this.listen(a.strings.CLOSED_EVENT,this.deregisterBodyClickListener)},d.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(a.strings.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(a.strings.CLOSED_EVENT,this.deregisterBodyClickListener),r.prototype.destroy.call(this)},d.prototype.isOpen=function(){return this.foundation.isOpen()},d.prototype.open=function(){this.foundation.open()},d.prototype.close=function(t){void 0===t&&(t=!1),this.foundation.close(t)},Object.defineProperty(d.prototype,"quickOpen",{set:function(t){this.foundation.setQuickOpen(t)},enumerable:!1,configurable:!0}),d.prototype.setIsHoisted=function(t){this.foundation.setIsHoisted(t)},d.prototype.setMenuSurfaceAnchorElement=function(t){this.anchorElement=t},d.prototype.setFixedPosition=function(t){t?this.root.classList.add(a.cssClasses.FIXED):this.root.classList.remove(a.cssClasses.FIXED),this.foundation.setFixedPosition(t)},d.prototype.setAbsolutePosition=function(t,e){this.foundation.setAbsolutePosition(t,e),this.setIsHoisted(!0)},d.prototype.setAnchorCorner=function(t){this.foundation.setAnchorCorner(t)},d.prototype.setAnchorMargin=function(t){this.foundation.setAnchorMargin(t)},d.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},hasAnchor:function(){return!!n.anchorElement},notifyClose:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.CLOSED_EVENT,{})},notifyClosing:function(){n.emit(u.MDCMenuSurfaceFoundation.strings.CLOSING_EVENT,{})},notifyOpen:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.OPENED_EVENT,{})},notifyOpening:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.OPENING_EVENT,{})},isElementInContainer:function(t){return n.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(n.root).getPropertyValue("direction")},setTransformOrigin:function(t){var e=c.getCorrectPropertyName(window,"transform")+"-origin";n.root.style.setProperty(e,t)},isFocused:function(){return document.activeElement===n.root},saveFocus:function(){n.previousFocus=document.activeElement},restoreFocus:function(){n.root.contains(document.activeElement)&&n.previousFocus&&n.previousFocus.focus&&n.previousFocus.focus()},getInnerDimensions:function(){return{width:n.root.offsetWidth,height:n.root.offsetHeight}},getAnchorDimensions:function(){return n.anchorElement?n.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 e=n.root;e.style.left="left"in t?t.left+"px":"",e.style.right="right"in t?t.right+"px":"",e.style.top="top"in t?t.top+"px":"",e.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){n.root.style.maxHeight=t}};return new u.MDCMenuSurfaceFoundation(t)},d);function d(){return null!==r&&r.apply(this,arguments)||this}e.MDCMenuSurface=h}},o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=203);function o(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,i});
vendor: 1,378 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/notched-outline",[],e):"object"==typeof exports?exports["notched-outline"]=e():(t.mdc=t.mdc||{},t.mdc["notched-outline"]=e())}(this,function(){return o={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},i=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n<o;n++,r++)t[r]=e[n];return t};
vendor: 9,160 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=n(0),s=(a.attachTo=function(t){return new a(t,new o.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:n,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(o)},a);function a(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=t,this.initialize.apply(this,i([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},15:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFloatingLabelFoundation=void 0;var s,a=n(0),u=n(20),c=(s=a.MDCFoundation,r(l,s),Object.defineProperty(l,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),l.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},l.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},l.prototype.getWidth=function(){return this.adapter.getWidth()},l.prototype.shake=function(t){var e=l.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(e):this.adapter.removeClass(e)},l.prototype.float=function(t){var e=l.cssClasses,n=e.LABEL_FLOAT_ABOVE,o=e.LABEL_SHAKE;t?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(o))},l.prototype.setRequired=function(t){var e=l.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},l.prototype.handleShakeAnimationEnd=function(){var t=l.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},l);function l(t){var e=s.call(this,i(i({},l.defaultAdapter),t))||this;return e.shakeAnimationEndHandler=function(){e.handleShakeAnimationEnd()},e}e.MDCFloatingLabelFoundation=c,e.default=c},18:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.numbers=e.cssClasses=void 0;e.strings={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"};e.numbers={NOTCH_ELEMENT_PADDING:8};e.cssClasses={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"}},20:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=void 0,e.cssClasses={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"}},206:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(207),e),r(n(38),e),r(n(18),e),r(n(29),e)},207:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},29:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCNotchedOutlineFoundation=void 0;var s,a=n(0),u=n(18),c=(s=a.MDCFoundation,r(l,s),Object.defineProperty(l,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),l.prototype.notch=function(t){var e=l.cssClasses.OUTLINE_NOTCHED;0<t&&(t+=u.numbers.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(e)},l.prototype.closeNotch=function(){var t=l.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(t),this.adapter.removeNotchWidthProperty()},l);function l(t){return s.call(this,i(i({},l.defaultAdapter),t))||this}e.MDCNotchedOutlineFoundation=c,e.default=c},38:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCNotchedOutline=void 0;var i,s=n(1),a=n(15),u=n(18),c=n(29),l=(i=s.MDCComponent,r(d,i),d.attachTo=function(t){return new d(t)},d.prototype.initialSyncWithDOM=function(){this.notchElement=this.root.querySelector(u.strings.NOTCH_ELEMENT_SELECTOR);var t=this.root.querySelector("."+a.MDCFloatingLabelFoundation.cssClasses.ROOT);t?(t.style.transitionDuration="0s",this.root.classList.add(u.cssClasses.OUTLINE_UPGRADED),requestAnimationFrame(function(){t.style.transitionDuration=""})):this.root.classList.add(u.cssClasses.NO_LABEL)},d.prototype.notch=function(t){this.foundation.notch(t)},d.prototype.closeNotch=function(){this.foundation.closeNotch()},d.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){e.notchElement.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){e.notchElement.style.removeProperty("width")}};return new c.MDCNotchedOutlineFoundation(t)},d);function d(){return null!==i&&i.apply(this,arguments)||this}e.MDCNotchedOutline=l}},r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=206);function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/radio",[],e):"object"==typeof exports?exp
vendor: 4,185 bytes, line 1
1orts.radio=e():(t.mdc=t.mdc||{},t.mdc.radio=e())}(this,function(){return r={},i.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var r=(Object.defineProperty(i,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),i.prototype.init=function(){},i.prototype.destroy=function(){},i);function i(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=r,e.default=r},1:function(t,e,n){"use strict";var i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var r=n(0),a=(s.attachTo=function(t){return new s(t,new r.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:n,detail:e}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(r)},s);function s(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=t,this.initialize.apply(this,o([],i(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},102:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRadioFoundation=void 0;var a,s=n(0),u=n(103),c=(a=s.MDCFoundation,i(d,a),Object.defineProperty(d,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),d.prototype.setDisabled=function(t){var e=d.cssClasses.DISABLED;this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(e):this.adapter.removeClass(e)},d);function d(t){return a.call(this,o(o({},d.defaultAdapter),t))||this}e.MDCRadioFoundation=c,e.default=c},103:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.strings=void 0;e.strings={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"};e.cssClasses={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"}},2:function(t,e,n){"use strict";function r(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}
vendor: 4,079 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(r(n,e))return n;n=n.parentElement}return null},e.matches=r,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}},208:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(209),e),i(n(210),e),i(n(103),e),i(n(102),e)},209:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},210:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRadio=void 0;var a,s=n(1),u=n(5),c=n(6),d=n(4),l=n(102),p=(a=s.MDCComponent,i(f,a),f.attachTo=function(t){return new f(t)},Object.defineProperty(f.prototype,"checked",{get:function(){return this.nativeControl.checked},set:function(t){this.nativeControl.checked=t},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"disabled",{get:function(){return this.nativeControl.disabled},set:function(t){this.foundation.setDisabled(t)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"value",{get:function(){return this.nativeControl.value},set:function(t){this.nativeControl.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),f.prototype.destroy=function(){this.rippleSurface.destroy(),a.prototype.destroy.call(this)},f.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNativeControlDisabled:function(t){return e.nativeControl.disabled=t}};return new l.MDCRadioFoundation(t)},f.prototype.createRipple=function(){var n=this,t=o(o({},c.MDCRipple.createAdapter(this)),{registerInteractionHandler:function(t,e){n.nativeControl.addEventListener(t,e,u.applyPassive())},deregisterInteractionHandler:function(t,e){n.nativeControl.removeEventListener(t,e,u.applyPassive())},isSurfaceActive:function(){return!1},isUnbounded:function(){return!0}});return new c.MDCRipple(this.root,new d.MDCRippleFoundation(t))},Object.defineProperty(f.prototype,"nativeControl",{get:function(){var t=l.MDCRadioFoundation.strings.NATIVE_CONTROL_SELECTOR,e=this.root.querySelector(t);if(!e)throw new Error("Radio component requires a "+t+" element");return e},enumerable:!1,configurable:!0}),f);function f(){var t=null!==a&&a.apply(this,arguments)||this;return t.rippleSurface=t.createRipple(),t}e.MDCRadio=p},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,r=t.CSS;if("boolean"==typeof a&&!e)return a;
vendor: 1,804 bytes, line 1
1if(!(r&&"function"==typeof r.supports))return!1;var i=r.supports("--css-vars","yes"),o=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=i||o,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var r,i,o=e.x,a=e.y,s=o+n.left,u=a+n.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-s,i=c.changedTouches[0].pageY-u}else{var d=t;r=d.pageX-s,i=d.pageY-u}return{x:r,y:i}}},4:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,u=n(0),c=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],f=[],v=(s=u.MDCFoundation,i(h,s),Object.defineProperty(h,"cssClasses",{get:function(){return c.cssClasse
vendor: 7,080 bytes, line 1
1s},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return c.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(h,"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:!1,configurable:!0}),h.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=h.cssClasses,r=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(r),t.adapter.isUnbounded()&&(t.adapter.addClass(i),t.layoutInternal())})}},h.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(h.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(h.cssClasses.FG_DEACTIVATION));var e=h.cssClasses,n=e.ROOT,r=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(r),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},h.prototype.activate=function(t){this.activateImpl(t)},h.prototype.deactivate=function(){this.deactivateImpl()},h.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},h.prototype.setUnbounded=function(t){var e=h.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},h.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(h.cssClasses.BG_FOCUSED)})},h.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(h.cssClasses.BG_FOCUSED)})},h.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},h.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},h.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var r=a(l),i=r.next();!i.done;i=r.next()){var o=i.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},h.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=a(p),i=r.next();!i.done;i=r.next()){var o=i.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},h.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(l),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterInteractionHandler(i,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},h.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(p),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterDocumentInteractionHandler(i,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},h.prototype.removeCssVars=function(){var e=this,n=h.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},h.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;r&&void 0!==t&&r.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},h.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},h.prototype.animateActivation=function(){var t=this,e=h.strings,n=e.VAR_FG_TRANSLATE_START,r=e.VAR_FG_TRANSLATE_END,i=h.cssClasses,o=i.FG_DEACTIVATION,a=i.FG_ACTIVATION,s=h.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",c="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),l=d.startPoint,p=d.endPoint;u=l.x+"px, "+l.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,u),this.adapter.updateCssVariable(r,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},h.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?d.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},h.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=h.cssClasse
vendor: 8,352 bytes, line 1
1s.FG_DEACTIVATION,n=this.activationState,r=n.hasDeactivationUXRun,i=n.isActivated;!r&&i||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},c.numbers.FG_DEACTIVATION_MS))},h.prototype.rmBoundedActivationClasses=function(){var t=h.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},h.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},h.numbers.TAP_DELAY_MS)},h.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},h.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},h.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+h.numbers.PADDING;var n=Math.floor(e*h.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()},h.prototype.updateLayoutCssVars=function(){var t=h.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,r=t.VAR_TOP,i=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(i,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},h);function h(t){var e=s.call(this,o(o({},h.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=v,e.default=v},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},r=function(){};t.document.addEventListener("test",r,n),t.document.removeEventListener("test",r,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,c=n(1),d=n(5),l=n(2),p=n(4),f=s(n(3)),v=(u=c.MDCComponent,i(h,u),h.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new h(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},h.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,d.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,d.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,d.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,d.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(h.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),h.prototype.activate=function(){this.foundation.activate()},h.prototype.deactivate=function(){this.foundation.deactivate()},h.prototype.layout=function(){this.foundation.layout()},h.prototype.getDefaultFoundation=function(){return new p.MDCRippleFoundation(h.createAdapter(this))},h.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},h.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},h);function h(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=v},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=208);function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,r});
vendor: 21,655 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/ripple",[],e):"object"==typeof exports?exports.ripple=e():(t.mdc=t.mdc||{},t.mdc.ripple=e())}(this,function(){return i={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,a=n.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(i=a.next()).done;)o.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},a=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),o=(s.attachTo=function(t){return new s(t,new i.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},s);function s(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,a([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=o,e.default=o},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.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}},211:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e},o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.util=void 0;var s=a(n(3));e.util=s,o(n(212),e),o(n(6),e),o(n(7),e),o(n(4),e),o(n(213),e)},212:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},213:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3:function(t,e,n){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof o&&!e)return o;if(!(i&&"function"==typeof i.supports))return!1;var r=i.supports("--css-vars","yes"),a=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=r||a,e||(o=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var i,r,a=e.x,o=e.y,s=a+n.left,u=o+n.top;if("touchstart"===t.type){var c=t;i=c.changedTouches[0].pageX-s,r=c.changedTouches[0].pageY-u}else{var d=t;i=d.pageX-s,r=d.pageY-u}return{x:i,y:r}}},4:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,u=n(0),c=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],f=[],v=(s=u.MDCFoundation,r(h,s),Object.defineProperty(h,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return c.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(h,"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:!1,configurable:!0}),h.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=h.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())})}},h.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(h.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(h.cssClasses.FG_DEACTIVATION));var e=h.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},h.prototype.activate=function(t){this.activateImpl(t)},h.prototype.deactivate=function(){this.deactivateImpl()},h.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},h.prototype.setUnbounded=function(t){var e=h.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},h.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(h.cssClasses.BG_FOCUSED)})},h.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(h.cssClasses.BG_FOCUSED)})},h.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},h.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},h.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var i=o(l),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},h.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=o(p),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},h.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=o(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},h.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=o(p),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},h.prototype.removeCssVars=function(){var e=this,n=h.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},h.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},h.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},h.prototype.animateActivation=function(){var t=this,e=h.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,r=h.cssClasses,a=r.FG_DEACTIVATION,o=r.FG_ACTIVATION,s=h.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",c="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),l=d.startPoint,p=d.endPoint;u=l.x+"px, "+l.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,u),this.adapter.updateCssVariable(i,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(o),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},h.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?d.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},h.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=h.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,r=n.isActivated;!i&&r||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},c.numbers.FG_DEACTIVATION_MS))},h.prototype.rmBoundedActivationClasses=function(){var t=h.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},h.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},h.numbers.TAP_DELAY_MS)},h.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=a({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},h.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},h.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+h.numbers.PADDING;var n=Math.floor(e*h.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()},h.prototype.updateLayoutCssVars=function(){var t=h.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},h);function h(t){var e=s.call(this,a(a({},h.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=v,e.default=v},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&a(e,t,n);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,c=n(1),d=n(5),l=n(2),p=n(4),f=s(n(3)),v=(u=c.MDCComponent,r(h,u),h.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new h(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},h.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,d.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,d.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,d.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,d.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(h.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),h.prototype.activate=function(){this.foundation.activate()},h.prototype.deactivate=function(){this.foundation.deactivate()},h.prototype.layout=function(){this.foundation.layout()},h.prototype.getDefaultFoundation=function(){return new p.MDCRippleFoundation(h.createAdapter(this))},h.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},h.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},h);function h(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=v},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=211);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i});
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/segmented-button",[],e):"object"==typeof exports?exp
vendor: 4,258 bytes, line 1
1orts["segmented-button"]=e():(t.mdc=t.mdc||{},t.mdc["segmented-button"]=e())}(this,function(){return i={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},o=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),a=(s.attachTo=function(t){return new s(t,new i.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},s);function s(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,o([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},104:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSegmentedButtonFoundation=void 0;var s,u=n(0),c=n(105),d=(s=u.MDCFoundation,r(l,s),Object.defineProperty(l,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},getSegments:function(){return[]},selectSegment:function(){},unselectSegment:function(){},notifySelectedChange:function(){}}},enumerable:!1,configurable:!0}),l.prototype.selectSegment=function(t){this.adapter.selectSegment(t)},l.prototype.unselectSegment=function(t){this.adapter.unselectSegment(t)},l.prototype.getSelectedSegments=function(){return this.adapter.getSegments().filter(function(t){return t.selected})},l.prototype.isSegmentSelected=function(e){return this.adapter.getSegments().some(function(t){return(t.index===e||t.segmentId===e)&&t.selected})},l.prototype.isSingleSelect=function(){return this.adapter.hasClass(c.cssClasse
vendor: 11,860 bytes, line 1
1s.SINGLE_SELECT)},l.prototype.handleSelected=function(t){this.isSingleSelect()&&this.unselectPrevSelected(t.index),this.adapter.notifySelectedChange(t)},l.prototype.unselectPrevSelected=function(t){var e,n;try{for(var i=a(this.getSelectedSegments()),r=i.next();!r.done;r=i.next()){var o=r.value;o.index!==t&&this.unselectSegment(o.index)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},l);function l(t){return s.call(this,o(o({},l.defaultAdapter),t))||this}e.MDCSegmentedButtonFoundation=d},105:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.events=e.selectors=void 0,e.selectors={SEGMENT:".mdc-segmented-button__segment"},e.events={SELECTED:"selected",CHANGE:"change"},e.cssClasses={SINGLE_SELECT:"mdc-segmented-button--single-select"}},106:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSegmentedButtonSegment=void 0;var a,s=n(1),u=n(6),c=n(4),d=n(107),l=n(108),p=(a=s.MDCComponent,r(f,a),Object.defineProperty(f.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!1,configurable:!0}),f.attachTo=function(t){return new f(t)},f.prototype.initialize=function(t){var e=this;void 0===t&&(t=function(t,e){return new u.MDCRipple(t,e)});var n=o(o({},u.MDCRipple.createAdapter(this)),{computeBoundingRect:function(){return e.foundation.getDimensions()}});this.rippleComponent=t(this.root,new c.MDCRippleFoundation(n))},f.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen(d.events.CLICK,this.handleClick)},f.prototype.destroy=function(){this.ripple.destroy(),this.unlisten(d.events.CLICK,this.handleClick),a.prototype.destroy.call(this)},f.prototype.getDefaultFoundation=function(){var n=this,t={isSingleSelect:function(){return n.isSingleSelect},getAttr:function(t){return n.root.getAttribute(t)},setAttr:function(t,e){n.root.setAttribute(t,e)},addClass:function(t){n.root.classList.add(t)},removeClass:function(t){n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},notifySelectedChange:function(t){n.emit(d.events.SELECTED,{index:n.index,selected:t,segmentId:n.getSegmentId()},!0)},getRootBoundingClientRect:function(){return n.root.getBoundingClientRect()}};return new l.MDCSegmentedButtonSegmentFoundation(t)},f.prototype.setIndex=function(t){this.index=t},f.prototype.setIsSingleSelect=function(t){this.isSingleSelect=t},f.prototype.isSelected=function(){return this.foundation.isSelected()},f.prototype.setSelected=function(){this.foundation.setSelected()},f.prototype.setUnselected=function(){this.foundation.setUnselected()},f.prototype.getSegmentId=function(){return this.foundation.getSegmentId()},f);function f(){return null!==a&&a.apply(this,arguments)||this}e.MDCSegmentedButtonSegment=p},107:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.events=e.attributes=e.booleans=void 0,e.booleans={TRUE:"true",FALSE:"false"},e.attributes={ARIA_CHECKED:"aria-checked",ARIA_PRESSED:"aria-pressed",DATA_SEGMENT_ID:"data-segment-id"},e.events={CLICK:"click",SELECTED:"selected"},e.cssClasses={SELECTED:"mdc-segmented-button__segment--selected"}},108:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSegmentedButtonSegmentFoundation=void 0;var a,s=n(0),u=n(107),c={bottom:0,height:0,left:0,right:0,top:0,width:0},d=(a=s.MDCFoundation,r(l,a),Object.defineProperty(l,"defaultAdapter",{get:function(){return{isSingleSelect:function(){return!1},getAttr:function(){return""},setAttr:function(){},addClass:function(){},removeClass:function(){},hasClass:function(){return!1},notifySelectedChange:function(){},getRootBoundingClientRect:function(){return c}}},enumerable:!1,configurable:!0}),l.prototype.isSelected=function(){return this.adapter.hasClass(u.cssClasses.SELECTED)},l.prototype.setSelected=function(){this.adapter.addClass(u.cssClasses.SELECTED),this.setAriaAttr(u.booleans.TRUE)},l.prototype.setUnselected=function(){this.adapter.removeClass(u.cssClasses.SELECTED),this.setAriaAttr(u.booleans.FALSE)},l.prototype.getSegmentId=function(){var t;return null!==(t=this.adapter.getAttr(u.attributes.DATA_SEGMENT_ID))&&void 0!==t?t:void 0},l.prototype.handleClick=function(){this.adapter.isSingleSelect()?this.setSelected():this.toggleSelection(),this.adapter.notifySelectedChange(this.isSelected())},l.prototype.getDimensions=function(){return this.adapter.getRootBoundingClientRect()},l.prototype.toggleSelection=function(){this.isSelected()?this.setUnselected():this.setSelected()},l.prototype.setAriaAttr=function(t){this.adapter.isSingleSelect()?this.adapter.setAttr(u.attributes.ARIA_CHECKED,t):this.adapter.setAttr(u.attributes.ARIA_PRESSED,t)},l);function l(t){return a.call(this,o(o({},l.defaultAdapter),t))||this}e.MDCSegmentedButtonSegmentFoundation=d},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.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}},214:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(215),e),r(n(218),e),r(n(220),e)},215:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(216),e),r(n(104),e),r(n(217),e)},216:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},217:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSegmentedButton=void 0;var a,s=n(1),u=n(106),c=n(105),d=n(104),l=(a=s.MDCComponent,r(p,a),p.attachTo=function(t){return new p(t)},Object.defineProperty(p.prototype,"segments",{get:function(){return this.segmentsList.slice()},enumerable:!1,configurable:!0}),p.prototype.initialize=function(t){void 0===t&&(t=function(t){return new u.MDCSegmentedButtonSegment(t)}),this.segmentFactory=t,this.segmentsList=this.instantiateSegments(this.segmentFactory)},p.prototype.instantiateSegments=function(e){return[].slice.call(this.root.querySelectorAll(c.selectors.SEGMENT)).map(function(t){return e(t)})},p.prototype.initialSyncWithDOM=function(){var e=this;this.handleSelected=function(t){e.foundation.handleSelected(t.detail)},this.listen(c.events.SELECTED,this.handleSelected);for(var t=this.foundation.isSingleSelect(),n=0;n<this.segmentsList.length;n++){var i=this.segmentsList[n];i.setIndex(n),i.setIsSingleSelect(t)}var r=this.segmentsList.filter(function(t){return t.isSelected()});if(t&&0===r.length&&0<this.segmentsList.length)throw new Error("No segment selected in singleSelect mdc-segmented-button");if(t&&1<r.length)throw new Error("Multiple segments selected in singleSelect mdc-segmented-button")},p.prototype.destroy=function(){var e,t;try{for(var n=o(this.segmentsList),i=n.next();!i.done;i=n.next())i.value.destroy()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.unlisten(c.events.SELECTED,this.handleSelected),a.prototype.destroy.call(this)},p.prototype.getDefaultFoundation=function(){var n=this,t={hasClass:function(t){return n.root.classList.contains(t)},getSegments:function(){return n.mappedSegments()},selectSegment:function(e){var t=n.mappedSegments().find(function(t){return t.index===e||t.segmentId===e});t&&n.segmentsList[t.index].setSelected()},unselectSegment:function(e){var t=n.mappedSegments().find(function(t){return t.index===e||t.segmentId===e});t&&n.segmentsList[t.index].setUnselected()},notifySelectedChange:function(t){n.emit(c.events.CHANGE,t,!0)}};return new d.MDCSegmentedButtonFoundation(t)},p.prototype.getSelectedSegments=function(){return this.foundation.getSelectedSegments()},p.prototype.selectSegment=function(t){this.foundation.selectSegment(t)},p.prototype.unselectSegment=function(t){this.foundation.unselectSegment(t)},p.prototype.isSegmentSelected=function(t){return this.foundation.isSegmentSelected(t)},p.prototype.mappedSegments=function(){return this.segmentsList.map(function(t,e){return{index:e,selected:t.isSelected(),segmentId:t.getSegmentId()}})},p);function p(){return null!==a&&a.apply(this,arguments)||this}e.MDCSegmentedButton=l},218:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n
vendor: 2,308 bytes, line 1
1)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(219),e),r(n(108),e),r(n(106),e)},219:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},220:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof a&&!e)return a;if(!(i&&"function"==typeof i.supports))return!1;var r=i.supports("--css-vars","yes"),o=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=r||o,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var i,r,o=e.x,a=e.y,s=o+n.left,u=a+n.top;if("touchstart"===t.type){var c=t;i=c.changedTouches[0].pageX-s,r=c.changedTouches[0].pageY-u}else{var d=t;i=d.pageX-s,r=d.pageY-u}return{x:i,y:r}}},4:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,u=n(0),c=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],f=[],h=(s=u.MDCFoundation,r(v,s),Object.defineProperty(v,"cssClasses",{get:function(){return c.cssClasse
vendor: 4,656 bytes, line 1
1s},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return c.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=v.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasses.FG_DEACTIVATION));var e=v.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasses.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var i=a(l),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=a(p),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(p),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,n=v.strings;
vendor: 10,091 bytes, line 1
1Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,r=v.cssClasses,o=r.FG_DEACTIVATION,a=r.FG_ACTIVATION,s=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",c="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),l=d.startPoint,p=d.endPoint;u=l.x+"px, "+l.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,u),this.adapter.updateCssVariable(i,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?d.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,r=n.isActivated;!i&&r||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},c.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var n=Math.floor(e*v.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()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},v);function v(t){var e=s.call(this,o(o({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,c=n(1),d=n(5),l=n(2),p=n(4),f=s(n(3)),h=(u=c.MDCComponent,r(v,u),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,d.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,d.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,d.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,d.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new p.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
vendor: 4,356 bytes, line 1
1),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=214);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/select",[],e):"object"==typeof exports?exports.select=e():(t.mdc=t.mdc||{},t.mdc.select=e())}(this,function(){return i={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},o=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),s=(a.attachTo=function(t){return new a(t,new i.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},a);function a(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,o([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},10:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var s={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 u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in s){var n=t.document.createElement("div"),i=s[e],r=i.standard,o=i.prefixed;return r in n.style?r:o}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in a){var n=t.document.createElement("div"),i=a[e],r=i.standard,o=i.prefixed;return i.cssProperty in n.style?r:o}return e}},109:function(t,e,n){"use strict";
vendor: 45,163 bytes, line 1
1var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSelectFoundation=void 0;var s,a=n(0),u=n(8),c=n(11),d=n(61),l=(s=a.MDCFoundation,r(h,s),Object.defineProperty(h,"cssClasses",{get:function(){return d.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return d.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return d.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"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:!1,configurable:!0}),h.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},h.prototype.setSelectedIndex=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1),t>=this.adapter.getMenuItemCount()||(t===d.numbers.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),e&&this.adapter.closeMenu(),n||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},h.prototype.setValue=function(t,e){void 0===e&&(e=!1);var n=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(n,!1,e)},h.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),e=this.adapter.getMenuItemValues();return t!==d.numbers.UNSET_INDEX?e[t]:""},h.prototype.getDisabled=function(){return this.disabled},h.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(d.cssClasses.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(d.cssClasses.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())},h.prototype.openMenu=function(){this.adapter.addClass(d.cssClasses.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},h.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},h.prototype.layout=function(){if(this.adapter.hasLabel()){var t=0<this.getValue().length,e=this.adapter.hasClass(d.cssClasses.FOCUSED),n=t||e,i=this.adapter.hasClass(d.cssClasses.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(i)}},h.prototype.layoutOptions=function(){var t=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(t,!1,!0)},h.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var t=this.getSelectedIndex(),e=0<=t?t:0;this.adapter.focusMenuItemAtIndex(e)}},h.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},h.prototype.handleMenuClosed=function(){this.adapter.removeClass(d.cssClasses.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},h.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(d.cssClasses.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},h.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},h.prototype.handleFocus=function(){this.adapter.addClass(d.cssClasses.FOCUSED),this.layout(),this.adapter.activateBottomLine()},h.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},h.prototype.handleClick=function(t){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(t),this.openMenu()))},h.prototype.handleKeydown=function(t){if(!this.isMenuOpen&&this.adapter.hasClass(d.cssClasses.FOCUSED)){var e=u.normalizeKey(t)===u.KEY.ENTER,n=u.normalizeKey(t)===u.KEY.SPACEBAR,i=u.normalizeKey(t)===u.KEY.ARROW_UP,r=u.normalizeKey(t)===u.KEY.ARROW_DOWN;if(!t.ctrlKey&&!t.metaKey&&(!n&&t.key&&1===t.key.length||n&&this.adapter.isTypeaheadInProgress())){var o=n?" ":t.key,s=this.adapter.typeaheadMatchItem(o,this.getSelectedIndex());return 0<=s&&this.setSelectedIndex(s),void t.preventDefault()}(e||n||i||r)&&(this.openMenu(),t.preventDefault())}},h.prototype.notchOutline=function(t){if(this.adapter.hasOutline()){var e=this.adapter.hasClass(d.cssClasses.FOCUSED);if(t){var n=d.numbers.LABEL_SCALE,i=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(i)}else e||this.adapter.closeOutline()}},h.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},h.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},h.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},h.prototype.setUseDefaultValidation=function(t){this.useDefaultValidation=t},h.prototype.setValid=function(t){this.useDefaultValidation||(this.customValidity=t),this.adapter.setSelectAnchorAttr("aria-invalid",(!t).toString()),t?(this.adapter.removeClass(d.cssClasses.INVALID),this.adapter.removeMenuClass(d.cssClasses.MENU_INVALID)):(this.adapter.addClass(d.cssClasses.INVALID),this.adapter.addMenuClass(d.cssClasses.MENU_INVALID)),this.syncHelperTextValidity(t)},h.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(d.cssClasses.REQUIRED)&&!this.adapter.hasClass(d.cssClasses.DISABLED)?this.getSelectedIndex()!==d.numbers.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},h.prototype.setRequired=function(t){t?this.adapter.addClass(d.cssClasses.REQUIRED):this.adapter.removeClass(d.cssClasses.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",t.toString()),this.adapter.setLabelRequired(t)},h.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},h.prototype.init=function(){var t=this.adapter.getAnchorElement();t&&(this.adapter.setMenuAnchorElement(t),this.adapter.setMenuAnchorCorner(c.Corner.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(d.cssClasses.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(d.cssClasses.INVALID)),this.layout(),this.layoutOptions()},h.prototype.blur=function(){this.adapter.removeClass(d.cssClasses.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(d.cssClasses.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},h.prototype.syncHelperTextValidity=function(t){if(this.helperText){this.helperText.setValidity(t);var e=this.helperText.isVisible(),n=this.helperText.getId();e&&n?this.adapter.setSelectAnchorAttr(d.strings.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(d.strings.ARIA_DESCRIBEDBY)}},h.prototype.setClickDebounceTimeout=function(){var t=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){t.recentlyClicked=!1},d.numbers.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},h);function h(t,e){void 0===e&&(e={});var n=s.call(this,o(o({},h.defaultAdapter),t))||this;return n.disabled=!1,n.isMenuOpen=!1,n.useDefaultValidation=!0,n.customValidity=!0,n.lastSelectedIndex=d.numbers.UNSET_INDEX,n.clickDebounceTimeout=0,n.recentlyClicked=!1,n.leadingIcon=e.leadingIcon,n.helperText=e.helperText,n}e.MDCSelectFoundation=l,e.default=l},11:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Corner=e.CornerBit=e.numbers=e.strings=e.cssClasses=void 0;e.cssClasses={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"};var i={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",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"])'].join(", ")};e.strings=i;var r,o,s,a;e.numbers={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30},(o=r=r||{})[o.BOTTOM=1]="BOTTOM",o[o.CENTER=2]="CENTER",o[o.RIGHT=4]="RIGHT",o[o.FLIP_RTL=8]="FLIP_RTL",e.CornerBit=r,(a=s=s||{})[a.TOP_LEFT=0]="TOP_LEFT",a[a.TOP_RIGHT=4]="TOP_RIGHT",a[a.BOTTOM_LEFT=1]="BOTTOM_LEFT",a[a.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",a[a.TOP_START=8]="TOP_START",a[a.TOP_END=12]="TOP_END",a[a.BOTTOM_START=9]="BOTTOM_START",a[a.BOTTOM_END=13]="BOTTOM_END",e.Corner=s},110:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSelectHelperText=void 0;var o,s=n(1),a=n(111),u=(o=s.MDCComponent,r(c,o),c.attachTo=function(t){return new c(t)},Object.defineProperty(c.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),c.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},getAttr:function(t){return n.root.getAttribute(t)},setAttr:function(t,e){return n.root.setAttribute(t,e)},removeAttr:function(t){return n.root.removeAttribute(t)},setContent:function(t){n.root.textContent=t}};return new a.MDCSelectHelperTextFoundation(t)},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.MDCSelectHelperText=u},111:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSelectHelperTextFoundation=void 0;var s,a=n(0),u=n(112),c=(s=a.MDCFoundation,r(d,s),Object.defineProperty(d,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),d.prototype.getId=function(){return this.adapter.getAttr("id")},d.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(u.strings.ARIA_HIDDEN)},d.prototype.setContent=function(t){this.adapter.setContent(t)},d.prototype.setValidation=function(t){t?this.adapter.addClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG)},d.prototype.setValidationMsgPersistent=function(t){t?this.adapter.addClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},d.prototype.getIsValidation=function(){return this.adapter.hasClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG)},d.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},d.prototype.setValidity=function(t){if(this.adapter.hasClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG)){var e=this.adapter.hasClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!t||e)return this.showToScreenReader(),void(t?this.adapter.removeAttr(u.strings.ROLE):this.adapter.setAttr(u.strings.ROLE,"alert"));this.adapter.removeAttr(u.strings.ROLE),this.hide()}},d.prototype.showToScreenReader=function(){this.adapter.removeAttr(u.strings.ARIA_HIDDEN)},d.prototype.hide=function(){this.adapter.setAttr(u.strings.ARIA_HIDDEN,"true")},d);function d(t){return s.call(this,o(o({},d.defaultAdapter),t))||this}e.MDCSelectHelperTextFoundation=c,e.default=c},112:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.strings=void 0;e.strings={ARIA_HIDDEN:"aria-hidden",ROLE:"role"};e.cssClasses={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"}},113:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSelectIcon=void 0;var o,s=n(1),a=n(114),u=(o=s.MDCComponent,r(c,o),c.attachTo=function(t){return new c(t)},Object.defineProperty(c.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),c.prototype.getDefaultFoundation=function(){var n=this,t={getAttr:function(t){return n.root.getAttribute(t)},setAttr:function(t,e){return n.root.setAttribute(t,e)},removeAttr:function(t){return n.root.removeAttribute(t)},setContent:function(t){n.root.textContent=t},registerInteractionHandler:function(t,e){return n.listen(t,e)},deregisterInteractionHandler:function(t,e){return n.unlisten(t,e)},notifyIconAction:function(){return n.emit(a.MDCSelectIconFoundation.strings.ICON_EVENT,{},!0)}};return new a.MDCSelectIconFoundation(t)},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.MDCSelectIcon=u},114:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSelectIconFoundation=void 0;var a,u=n(0),c=n(115),d=["click","keydown"],l=(a=u.MDCFoundation,r(h,a),Object.defineProperty(h,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),h.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=s(d),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.registerInteractionHandler(r,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},h.prototype.destroy=function(){var e,t;try{for(var n=s(d),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},h.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",c.strings.ICON_ROLE)))},h.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},h.prototype.setContent=function(t){this.adapter.setContent(t)},h.prototype.handleInteraction=function(t){var e="Enter"===t.key||13===t.keyCode;"click"!==t.type&&!e||this.adapter.notifyIconAction()},h);function h(t){var e=a.call(this,o(o({},h.defaultAdapter),t))||this;return e.savedTabIndex=null,e.interactionHandler=function(t){e.handleInteraction(t)},e}e.MDCSelectIconFoundation=l,e.default=l},115:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=void 0;e.strings={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"}},13:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preventDefaultEvent=void 0;var i=["input","button","textarea","select"];e.preventDefaultEvent=function(t){var e=t.target;if(e){var n=(""+e.tagName).toLowerCase();-1===i.indexOf(n)&&t.preventDefault()}}},14:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&s(e,t,n);return a(e,t),e},l=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},h=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCListFoundation=void 0;var c=n(0),v=n(8),g=n(9),A=n(13),b=u(n(23));var d=["Alt","Control","Meta","Shift"];function T(e){var n=new Set(e?d.filter(function(t){return e.getModifierState(t)}):[]);return function(t){return t.every(function(t){return n.has(t)})&&t.length===n.size}}var f,p=(f=c.MDCFoundation,r(m,f),Object.defineProperty(m,"strings",{get:function(){return g.strings},enumerable:!1,configurable:!0}),Object.defineProperty(m,"cssClasses",{get:function(){return g.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(m,"numbers",{get:function(){return g.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(m,"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(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),m.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()))},m.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},m.prototype.setWrapFocus=function(t){this.wrapFocus=t},m.prototype.setVerticalOrientation=function(t){this.isVertical=t},m.prototype.setSingleSelection=function(t){(this.isSingleSelectionList=t)&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},m.prototype.setDisabledItemsFocusable=function(t){this.areDisabledItemsFocusable=t},m.prototype.maybeInitializeSingleSelection=function(){var t=this.getSelectedIndexFromDOM();t!==g.numbers.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,g.cssClasses.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},m.prototype.getSelectedIndexFromDOM=function(){for(var t=g.numbers.UNSET_INDEX,e=this.adapter.getListItemCount(),n=0;n<e;n++){var i=this.adapter.listItemAtIndexHasClass(n,g.cssClasses.LIST_ITEM_SELECTED_CLASS),r=this.adapter.listItemAtIndexHasClass(n,g.cssClasses.LIST_ITEM_ACTIVATED_CLASS);if(i||r){t=n;break}}return t},m.prototype.setHasTypeahead=function(t){(this.hasTypeahead=t)&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},m.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&b.isTypingInProgress(this.typeaheadState)},m.prototype.setUseActivatedClass=function(t){this.useActivatedClass=t},m.prototype.setUseSelectedAttribute=function(t){this.useSelectedAttr=t},m.prototype.getSelectedIndex=function(){return this.selectedIndex},m.prototype.setSelectedIndex=function(t,e){void 0===e&&(e={}),this.isIndexValid(t)&&(this.isCheckboxList?this.setCheckboxAtIndex(t,e):this.isRadioList?this.setRadioAtIndex(t,e):this.setSingleSelectionAtIndex(t,e))},m.prototype.handleFocusIn=function(t){0<=t&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},m.prototype.handleFocusOut=function(t){var e=this;0<=t&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){e.adapter.isFocusInsideList()||e.setTabindexToFirstSelectedOrFocusedItem()},0)},m.prototype.isIndexDisabled=function(t){return this.adapter.listItemAtIndexHasClass(t,g.cssClasses.LIST_ITEM_DISABLED_CLASS)},m.prototype.handleKeydown=function(t,e,n){var i,r=this,o="ArrowLeft"===v.normalizeKey(t),s="ArrowUp"===v.normalizeKey(t),a="ArrowRight"===v.normalizeKey(t),u="ArrowDown"===v.normalizeKey(t),c="Home"===v.normalizeKey(t),d="End"===v.normalizeKey(t),l="Enter"===v.normalizeKey(t),h="Spacebar"===v.normalizeKey(t),f=this.isVertical&&u||!this.isVertical&&a,p=this.isVertical&&s||!this.isVertical&&o,m="A"===t.key||"a"===t.key,E=T(t);if(this.adapter.isRootFocused()){if((p||d)&&E([])?(t.preventDefault(),this.focusLastElement()):(f||c)&&E([])?(t.preventDefault(),this.focusFirstElement()):p&&E(["Shift"])&&this.isCheckboxList?(t.preventDefault(),-1!==(C=this.focusLastElement())&&this.setSelectedIndexOnAction(C,!1)):f&&E(["Shift"])&&this.isCheckboxList&&(t.preventDefault(),-1!==(C=this.focusFirstElement())&&this.setSelectedIndexOnAction(C,!1)),this.hasTypeahead){var y={event:t,focusItemAtIndex:function(t){r.focusItemAtIndex(t)},focusedItemIndex:-1,isTargetListItem:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return r.isIndexDisabled(t)}};b.handleKeydown(y,this.typeaheadState)}}else{var I=this.adapter.getFocusedElementIndex();if(!(-1===I&&(I=n)<0)){if(f&&E([]))A.preventDefaultEvent(t),this.focusNextElement(I);else if(p&&E([]))A.preventDefaultEvent(t),this.focusPrevElement(I);else if(f&&E(["Shift"])&&this.isCheckboxList)A.preventDefaultEvent(t),-1!==(C=this.focusNextElement(I))&&this.setSelectedIndexOnAction(C,!1);else if(p&&E(["Shift"])&&this.isCheckboxList){var C;A.preventDefaultEvent(t),-1!==(C=this.focusPrevElement(I))&&this.setSelectedIndexOnAction(C,!1)}else if(c&&E([]))A.preventDefaultEvent(t),this.focusFirstElement();else if(d&&E([]))A.preventDefaultEvent(t),this.focusLastElement();else if(c&&E(["Control","Shift"])&&this.isCheckboxList){if(A.preventDefaultEvent(t),this.isIndexDisabled(I))return;this.focusFirstElement(),this.toggleCheckboxRange(0,I,I)}else if(d&&E(["Control","Shift"])&&this.isCheckboxList){if(A.preventDefaultEvent(t),this.isIndexDisabled(I))return;this.focusLastElement(),this.toggleCheckboxRange(I,this.adapter.getListItemCount()-1,I)}else if(m&&E(["Control"])&&this.isCheckboxList)t.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===g.numbers.UNSET_INDEX?[]:this.selectedIndex,!0);else if((l||h)&&E([])){if(e){if((_=t.target)&&"A"===_.tagName&&l)return;if(A.preventDefaultEvent(t),this.isIndexDisabled(I))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(I,!1),this.adapter.notifyAction(I))}}else if((l||h)&&E(["Shift"])&&this.isCheckboxList){var _;if((_=t.target)&&"A"===_.tagName&&l)return;if(A.preventDefaultEvent(t),this.isIndexDisabled(I))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:I,I,I),this.adapter.notifyAction(I))}this.hasTypeahead&&(y={event:t,focusItemAtIndex:function(t){r.focusItemAtIndex(t)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return r.isIndexDisabled(t)}},b.handleKeydown(y,this.typeaheadState))}}},m.prototype.handleClick=function(t,e,n){var i,r=T(n);t!==g.numbers.UNSET_INDEX&&(this.isIndexDisabled(t)||(r([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(t,e),this.adapter.notifyAction(t)):this.isCheckboxList&&r(["Shift"])&&(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:t,t,t),this.adapter.notifyAction(t))))},m.prototype.focusNextElement=function(t){var e=this.adapter.getListItemCount(),n=t,i=null;do{if(e<=++n){if(!this.wrapFocus)return t;n=0}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},m.prototype.focusPrevElement=function(t){var e=this.adapter.getListItemCount(),n=t,i=null;do{if(--n<0){if(!this.wrapFocus)return t;n=e-1}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},m.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},m.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},m.prototype.focusInitialElement=function(){var t=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(t),t},m.prototype.setEnabled=function(t,e){this.isIndexValid(t,!1)&&(e?(this.adapter.removeClassForElementIndex(t,g.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,g.strings.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,g.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,g.strings.ARIA_DISABLED,"true")))},m.prototype.setSingleSelectionAtIndex=function(t,e){if(void 0===e&&(e={}),this.selectedIndex!==t||e.forceUpdate){var n=g.cssClasses.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=g.cssClasses.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==g.numbers.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==g.numbers.UNSET_INDEX&&this.adapter.addClassForElementIndex(t,n),this.selectedIndex=t,e.isUserInteraction&&!e.forceUpdate&&this.adapter.notifySelectionChange([t])}},m.prototype.setAriaForSingleSelectionAtIndex=function(t){this.selectedIndex===g.numbers.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,g.strings.ARIA_CURRENT));var e=null!==this.ariaCurrentAttrValue,n=e?g.strings.ARIA_CURRENT:g.strings.ARIA_SELECTED;if(this.selectedIndex!==g.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),t!==g.numbers.UNSET_INDEX){var i=e?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(t,n,i)}},m.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?g.strings.ARIA_SELECTED:g.strings.ARIA_CHECKED},m.prototype.setRadioAtIndex=function(t,e){void 0===e&&(e={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(t,!0),this.selectedIndex===t&&!e.forceUpdate||(this.selectedIndex!==g.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(t,n,"true"),this.selectedIndex=t,e.isUserInteraction&&!e.forceUpdate&&this.adapter.notifySelectionChange([t]))},m.prototype.setCheckboxAtIndex=function(t,e){void 0===e&&(e={});for(var n=this.selectedIndex,i=e.isUserInteraction?new Set(n===g.numbers.UNSET_INDEX?[]:n):null,r=this.getSelectionAttribute(),o=[],s=0;s<this.adapter.getListItemCount();s++){var a=null==i?void 0:i.has(s),u=0<=t.indexOf(s);u!==a&&o.push(s),this.adapter.setCheckedCheckboxOrRadioAtIndex(s,u),this.adapter.setAttributeForElementIndex(s,r,u?"true":"false")}this.selectedIndex=t,e.isUserInteraction&&o.length&&this.adapter.notifySelectionChange(o)},m.prototype.toggleCheckboxRange=function(t,e,n){this.lastSelectedIndex=n;for(var i=new Set(this.selectedIndex===g.numbers.UNSET_INDEX?[]:this.selectedIndex),r=!(null==i?void 0:i.has(n)),o=l([t,e].sort(),2),s=o[0],a=o[1],u=this.getSelectionAttribute(),c=[],d=s;d<=a;d++)this.isIndexDisabled(d)||r!==i.has(d)&&(c.push(d),this.adapter.setCheckedCheckboxOrRadioAtIndex(d,r),this.adapter.setAttributeForElementIndex(d,u,""+r),r?i.add(d):i.delete(d));c.length&&(this.selectedIndex=h([],l(i)),this.adapter.notifySelectionChange(c))},m.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===g.numbers.UNSET_INDEX&&0!==t?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):0<=this.focusedItemIndex&&this.focusedItemIndex!==t&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===t||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),t!==g.numbers.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,"tabindex","0")},m.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},m.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var t=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(t)},m.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==g.numbers.UNSET_INDEX?this.selectedIndex:function(t){return t instanceof Array}(this.selectedIndex)&&0<this.selectedIndex.length?this.selectedIndex.reduce(function(t,e){return Math.min(t,e)}):0:Math.max(this.focusedItemIndex,0)},m.prototype.isIndexValid=function(t,e){var n=this;if(void 0===e&&(e=!0),t instanceof Array){if(!this.isCheckboxList&&e)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===t.length||t.some(function(t){return n.isIndexInRange(t)})}if("number"!=typeof t)return!1;if(this.isCheckboxList&&e)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange(t)||this.isSingleSelectionList&&t===g.numbers.UNSET_INDEX},m.prototype.isIndexInRange=function(t){var e=this.adapter.getListItemCount();return 0<=t&&t<e},m.prototype.setSelectedIndexOnAction=function(t,e){this.lastSelectedIndex=t,this.isCheckboxList?(this.toggleCheckboxAtIndex(t,e),this.adapter.notifySelectionChange([t])):this.setSelectedIndex(t,{isUserInteraction:!0})},m.prototype.toggleCheckboxAtIndex=function(e,t){var n,i=this.getSelectionAttribute(),r=this.adapter.isCheckboxCheckedAtIndex(e);t?n=r:(n=!r,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,n)),this.adapter.setAttributeForElementIndex(e,i,n?"true":"false");var o=this.selectedIndex===g.numbers.UNSET_INDEX?[]:this.selectedIndex.slice();n?o.push(e):o=o.filter(function(t){return t!==e}),this.selectedIndex=o},m.prototype.focusItemAtIndex=function(t){this.adapter.focusItemAtIndex(t),this.focusedItemIndex=t},m.prototype.checkboxListToggleAll=function(t,e){var n=this.adapter.getListItemCount();if(t.length===n)this.setCheckboxAtIndex([],{isUserInteraction:e});else{for(var i=[],r=0;r<n;r++)(!this.isIndexDisabled(r)||-1<t.indexOf(r))&&i.push(r);this.setCheckboxAtIndex(i,{isUserInteraction:e})}},m.prototype.typeaheadMatchItem=function(t,e,n){var i=this;void 0===n&&(n=!1);var r={focusItemAtIndex:function(t){i.focusItemAtIndex(t)},focusedItemIndex:e||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(t){return i.isIndexDisabled(t)}};return b.matchItem(r,this.typeaheadState)},m.prototype.typeaheadInitSortedIndex=function(){return b.initSortedIndex(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},m.prototype.clearTypeaheadBuffer=function(){b.clearBuffer(this.typeaheadState)},m);function m(t){var e=f.call(this,o(o({},m.defaultAdapter),t))||this;return e.wrapFocus=!1,e.isVertical=!0,e.isSingleSelectionList=!1,e.areDisabledItemsFocusable=!0,e.selectedIndex=g.numbers.UNSET_INDEX,e.focusedItemIndex=g.numbers.UNSET_INDEX,e.useActivatedClass=!1,e.useSelectedAttr=!1,e.ariaCurrentAttrValue=null,e.isCheckboxList=!1,e.isRadioList=!1,e.lastSelectedIndex=null,e.hasTypeahead=!1,e.typeaheadState=b.initState(),e.sortedIndexByFirstChar=new Map,e}e.MDCListFoundation=p,e.default=p},15:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFloatingLabelFoundation=void 0;var s,a=n(0),u=n(20),c=(s=a.MDCFoundation,r(d,s),Object.defineProperty(d,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),d.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},d.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},d.prototype.getWidth=function(){return this.adapter.getWidth()},d.prototype.shake=function(t){var e=d.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(e):this.adapter.removeClass(e)},d.prototype.float=function(t){var e=d.cssClasses,n=e.LABEL_FLOAT_ABOVE,i=e.LABEL_SHAKE;t?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(i))},d.prototype.setRequired=function(t){var e=d.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},d.prototype.handleShakeAnimationEnd=function(){var t=d.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},d);function d(t){var e=s.call(this,o(o({},d.defaultAdapter),t))||this;return e.shakeAnimationEndHandler=function(){e.handleShakeAnimationEnd()},e}e.MDCFloatingLabelFoundation=c,e.default=c},16:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},f=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuSurfaceFoundation=void 0;var s,a=n(0),y=n(11),u=(s=a.MDCFoundation,r(I,s),Object.defineProperty(I,"cssClasses",{get:function(){return y.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(I,"strings",{get:function(){return y.strings},enumerable:!1,configurable:!0}),Object.defineProperty(I,"numbers",{get:function(){return y.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(I,"Corner",{get:function(){return y.Corner},enumerable:!1,configurable:!0}),Object.defineProperty(I,"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(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),I.prototype.init=function(){var t=I.cssClasses,e=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(e))throw new Error(e+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},I.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},I.prototype.setAnchorCorner=function(t){this.anchorCorner=t},I.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^y.CornerBit.RIGHT},I.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},I.prototype.setIsHoisted=function(t){this.isHoistedElement=t},I.prototype.setFixedPosition=function(t){this.isFixedPosition=t},I.prototype.isFixed=function(){return this.isFixedPosition},I.prototype.setAbsolutePosition=function(t,e){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(e)?e:0},I.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},I.prototype.setQuickOpen=function(t){this.isQuickOpen=t},I.prototype.setMaxHeight=function(t){this.maxHeight=t},I.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},I.prototype.isOpen=function(){return this.isSurfaceOpen},I.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(I.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(I.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(I.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout(function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(I.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()},y.numbers.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},I.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(I.cssClasses.OPEN),this.adapter.removeClass(I.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(I.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){e.adapter.removeClass(I.cssClasses.OPEN),e.adapter.removeClass(I.cssClasses.IS_OPEN_BELOW),e.closeAnimationEndTimerId=setTimeout(function(){e.closeAnimationEndTimerId=0,e.adapter.removeClass(I.cssClasses.ANIMATING_CLOSED),e.adapter.notifyClose()},y.numbers.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},I.prototype.handleBodyClick=function(t){var e=t.target;this.adapter.isElementInContainer(e)||this.close()},I.prototype.handleKeydown=function(t){var e=t.keyCode;"Escape"!==t.key&&27!==e||this.close()},I.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var e=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(e),i=this.hasBit(e,y.CornerBit.BOTTOM)?"bottom":"top",r=this.hasBit(e,y.CornerBit.RIGHT)?"right":"left",o=this.getHorizontalOriginOffset(e),s=this.getVerticalOriginOffset(e),a=this.measurements,u=a.anchorSize,c=a.surfaceSize,d=((t={})[r]=o,t[i]=s,t);u.width/c.width>y.numbers.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(d),this.adapter.setTransformOrigin(r+" "+i),this.adapter.setPosition(d),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(e,y.CornerBit.BOTTOM)||this.adapter.addClass(I.cssClasse
vendor: 4,295 bytes, line 1
1s.IS_OPEN_BELOW)},I.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),e=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return{anchorSize:t=t||{top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0},bodySize:e,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:i}},I.prototype.getoriginCorner=function(){var t,e,n=this.originCorner,i=this.measurements,r=i.viewportDistance,o=i.anchorSize,s=i.surfaceSize,a=I.numbers.MARGIN_TO_EDGE;!(0<(e=this.hasBit(this.anchorCorner,y.CornerBit.BOTTOM)?(t=r.top-a+this.anchorMargin.bottom,r.bottom-a-this.anchorMargin.bottom):(t=r.top-a+this.anchorMargin.top,r.bottom-a+o.height-this.anchorMargin.top))-s.height)&&t>e+this.openBottomBias&&(n=this.setBit(n,y.CornerBit.BOTTOM));var u,c,d=this.adapter.isRtl(),l=this.hasBit(this.anchorCorner,y.CornerBit.FLIP_RTL),h=this.hasBit(this.anchorCorner,y.CornerBit.RIGHT)||this.hasBit(n,y.CornerBit.RIGHT),f=!1;c=(f=d&&l?!h:h)?(u=r.left+o.width+this.anchorMargin.right,r.right-this.anchorMargin.right):(u=r.left+this.anchorMargin.left,r.right+o.width-this.anchorMargin.left);var p=0<u-s.width,m=0<c-s.width,E=this.hasBit(n,y.CornerBit.FLIP_RTL)&&this.hasBit(n,y.CornerBit.RIGHT);return m&&E&&d||!p&&E?n=this.unsetBit(n,y.CornerBit.RIGHT):(p&&f&&d||p&&!f&&h||!m&&c<=u)&&(n=this.setBit(n,y.CornerBit.RIGHT)),n},I.prototype.getMenuSurfaceMaxHeight=function(t){if(0<this.maxHeight)return this.maxHeight;var e=this.measurements.viewportDistance,n=0,i=this.hasBit(t,y.CornerBit.BOTTOM),r=this.hasBit(this.anchorCorner,y.CornerBit.BOTTOM),o=I.numbers.MARGIN_TO_EDGE;return i?(n=e.top+this.anchorMargin.top-o,r||(n+=this.measurements.anchorSize.height)):(n=e.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-o,r&&(n-=this.measurements.anchorSize.height)),n},I.prototype.getHorizontalOriginOffset=function(t){var e=this.measurements.anchorSize,n=this.hasBit(t,y.CornerBit.RIGHT),i=this.hasBit(this.anchorCorner,y.CornerBit.RIGHT);if(n){var r=i?e.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?r-(this.measurements.viewportSize.width-this.measurements.bodySize.width):r}return i?e.width-this.anchorMargin.right:this.anchorMargin.left},I.prototype.getVerticalOriginOffset=function(t){var e=this.measurements.anchorSize,n=this.hasBit(t,y.CornerBit.BOTTOM),i=this.hasBit(this.anchorCorner,y.CornerBit.BOTTOM);return n?i?e.height-this.anchorMargin.top:-this.anchorMargin.bottom:i?e.height+this.anchorMargin.bottom:this.anchorMargin.top},I.prototype.adjustPositionForHoistedElement=function(t){var e,n,i=this.measurements,r=i.windowScroll,o=i.viewportDistance,s=i.surfaceSize,a=i.viewportSize,u=Object.keys(t);try{for(var c=f(u),d=c.next();!d.done;d=c.next()){var l=d.value,h=t[l]||0;!this.isHorizontallyCenteredOnViewport||"left"!==l&&"right"!==l?(h+=o[l],this.isFixedPosition||("top"===l?h+=r.y:"bottom"===l?h-=r.y:"left"===l?h+=r.x:h-=r.x),t[l]=h):t[l]=(a.width-s.width)/2}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}},I.prototype.maybeRestoreFocus=function(){var t=this,e=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,i=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(e||i)&&setTimeout(function(){t.adapter.restoreFocus()},y.numbers.TOUCH_EVENT_WAIT_MS)},I.prototype.hasBit=function(t,e){return Boolean(t&e)},I.prototype.setBit=function(t,e){return t|e},I.prototype.unsetBit=function(t,e){return t^e},I.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},I);function I(t){var e=s.call(this,o(o({},I.defaultAdapter),t))||this;return e.isSurfaceOpen=!1,e.isQuickOpen=!1,e.isHoistedElement=!1,e.isFixedPosition=!1,e.isHorizontallyCenteredOnViewport=!1,e.maxHeight=0,e.openBottomBias=0,e.openAnimationEndTimerId=0,e.closeAnimationEndTimerId=0,e.animationRequestId=0,e.anchorCorner=y.Corner.TOP_START,e.originCorner=y.Corner.TOP_START,e.anchorMargin={top:0,right:0,bottom:0,left:0},e.position={x:0,y:0},e}e.MDCMenuSurfaceFoundation=u,e.default=u},18:function(t,e,n){"use strict";
vendor: 33,150 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.numbers=e.cssClasses=void 0;e.strings={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"};e.numbers={NOTCH_ELEMENT_PADDING:8};e.cssClasses={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"}},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.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}},20:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=void 0,e.cssClasses={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"}},22:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCList=void 0;var o,s=n(1),a=n(2),u=n(9),c=n(14),d=(o=s.MDCComponent,r(l,o),Object.defineProperty(l.prototype,"vertical",{set:function(t){this.foundation.setVerticalOrientation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"wrapFocus",{set:function(t){this.foundation.setWrapFocus(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasTypeahead",{set:function(t){this.foundation.setHasTypeahead(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"singleSelection",{set:function(t){this.foundation.setSingleSelection(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"disabledItemsFocusable",{set:function(t){this.foundation.setDisabledItemsFocusable(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t)},enumerable:!1,configurable:!0}),l.attachTo=function(t){return new l(t)},l.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=u.evolutionAttribute in this.root.dataset,this.isEvolutionEnabled?this.classNameMap=u.evolutionClassNameMap:a.matches(this.root,u.strings.DEPRECATED_SELECTOR)?this.classNameMap=u.deprecatedClassNameMap:this.classNameMap=Object.values(u.cssClasses).reduce(function(t,e){return t[e]=e,t},{}),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(),this.ensureFocusable()},l.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},l.prototype.layout=function(){var t=this.root.getAttribute(u.strings.ARIA_ORIENTATION);this.vertical=t!==u.strings.ARIA_ORIENTATION_HORIZONTAL;var e="."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]+":not([tabindex])",n=u.strings.FOCUSABLE_CHILD_ELEMENTS,i=this.root.querySelectorAll(e);i.length&&Array.prototype.forEach.call(i,function(t){t.setAttribute("tabindex","-1")});var r=this.root.querySelectorAll(n);r.length&&Array.prototype.forEach.call(r,function(t){t.setAttribute("tabindex","-1")}),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},l.prototype.getPrimaryText=function(t){var e,n=t.querySelector("."+this.classNameMap[u.cssClasses.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(e=null==n?void 0:n.textContent)&&void 0!==e?e:"";var i=t.querySelector("."+this.classNameMap[u.cssClasses.LIST_ITEM_TEXT_CLASS]);return i&&i.textContent||""},l.prototype.initializeListType=function(){var e=this;if(this.isInteractive=a.matches(this.root,u.strings.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var t=Array.from(this.root.querySelectorAll(u.strings.SELECTED_ITEM_SELECTOR),function(t){return e.listElements.indexOf(t)});a.matches(this.root,u.strings.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=t:0<t.length&&(this.selectedIndex=t[0])}else{var n=this.root.querySelectorAll(u.strings.ARIA_ROLE_CHECKBOX_SELECTOR),i=this.root.querySelector(u.strings.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var r=this.root.querySelectorAll(u.strings.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(r,function(t){return e.listElements.indexOf(t)})}else i&&(this.selectedIndex=this.listElements.indexOf(i))}},l.prototype.setEnabled=function(t,e){this.foundation.setEnabled(t,e)},l.prototype.typeaheadMatchItem=function(t,e){return this.foundation.typeaheadMatchItem(t,e,!0)},l.prototype.getDefaultFoundation=function(){var r=this,t={addClassForElementIndex:function(t,e){var n=r.listElements[t];n&&n.classList.add(r.classNameMap[e])},focusItemAtIndex:function(t){var e=r.listElements[t];e&&e.focus()},getAttributeForElementIndex:function(t,e){return r.listElements[t].getAttribute(e)},getFocusedElementIndex:function(){return r.listElements.indexOf(document.activeElement)},getListItemCount:function(){return r.listElements.length},getPrimaryTextAtIndex:function(t){return r.getPrimaryText(r.listElements[t])},hasCheckboxAtIndex:function(t){return!!r.listElements[t].querySelector(u.strings.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!r.listElements[t].querySelector(u.strings.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return r.listElements[t].querySelector(u.strings.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return r.root!==document.activeElement&&r.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===r.root},listItemAtIndexHasClass:function(t,e){return r.listElements[t].classList.contains(r.classNameMap[e])},notifyAction:function(t){r.emit(u.strings.ACTION_EVENT,{index:t},!0)},notifySelectionChange:function(t){r.emit(u.strings.SELECTION_CHANGE_EVENT,{changedIndices:t},!0)},removeClassForElementIndex:function(t,e){var n=r.listElements[t];n&&n.classList.remove(r.classNameMap[e])},setAttributeForElementIndex:function(t,e,n){var i=r.listElements[t];i&&i.setAttribute(e,n)},setCheckedCheckboxOrRadioAtIndex:function(t,e){var n=r.listElements[t].querySelector(u.strings.CHECKBOX_RADIO_SELECTOR);n.checked=e;var i=document.createEvent("Event");i.initEvent("change",!0,!0),n.dispatchEvent(i)},setTabIndexForListItemChildren:function(t,e){var n=r.listElements[t],i=u.strings.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(n.querySelectorAll(i),function(t){t.setAttribute("tabindex",e)})}};return new c.MDCListFoundation(t)},l.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]+'[tabindex="0"]')){var t=this.initialFocusIndex();-1!==t&&(this.listElements[t].tabIndex=0)}},l.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&0<this.selectedIndex.length)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==u.numbers.UNSET_INDEX)return this.selectedIndex;var t=this.root.querySelector("."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]+":not(."+this.classNameMap[u.cssClasses.LIST_ITEM_DISABLED_CLASS]+")");return null===t?-1:this.getListItemIndex(t)},l.prototype.getListItemIndex=function(t){var e=a.closest(t,"."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]+", ."+this.classNameMap[u.cssClasses.ROOT]);return e&&a.matches(e,"."+this.classNameMap[u.cssClasses.LIST_ITEM_CLASS])?this.listElements.indexOf(e):-1},l.prototype.handleFocusInEvent=function(t){var e=this.getListItemIndex(t.target);this.foundation.handleFocusIn(e)},l.prototype.handleFocusOutEvent=function(t){var e=this.getListItemIndex(t.target);this.foundation.handleFocusOut(e)},l.prototype.handleKeydownEvent=function(t){var e=this.getListItemIndex(t.target),n=t.target;this.foundation.handleKeydown(t,n.classList.contains(this.classNameMap[u.cssClasses.LIST_ITEM_CLASS]),e)},l.prototype.handleClickEvent=function(t){var e=this.getListItemIndex(t.target),n=t.target,i=!a.matches(n,u.strings.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(e,i,t)},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MDCList=d},221:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(222),e),r(n(223),e),r(n(61),e),r(n(109),e),r(n(224),e),r(n(225),e),r(n(227),e)},222:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},223:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&s(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSelect=void 0;var c,d=n(1),l=n(35),h=n(36),f=u(n(11)),p=n(60),m=u(n(24)),E=n(38),y=n(6),I=n(4),C=n(61),_=n(109),v=n(110),g=n(113),A=(c=d.MDCComponent,r(b,c),b.attachTo=function(t){return new b(t)},b.prototype.initialize=function(t,e,n,i,r,o){if(void 0===t&&(t=function(t){return new l.MDCFloatingLabel(t)}),void 0===e&&(e=function(t){return new h.MDCLineRipple(t)}),void 0===n&&(n=function(t){return new E.MDCNotchedOutline(t)}),void 0===i&&(i=function(t){return new p.MDCMenu(t)}),void 0===r&&(r=function(t){return new g.MDCSelectIcon(t)}),void 0===o&&(o=function(t){return new v.MDCSelectHelperText(t)}),this.selectAnchor=this.root.querySelector(C.strings.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(C.strings.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(C.strings.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+C.strings.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(C.strings.ARIA_CONTROLS)){var s=document.getElementById(this.selectAnchor.getAttribute(C.strings.ARIA_CONTROLS));s&&(this.helperText=o(s))}this.menuSetup(i);var a=this.root.querySelector(C.strings.LABEL_SELECTOR);this.label=a?t(a):null;var u=this.root.querySelector(C.strings.LINE_RIPPLE_SELECTOR);this.lineRipple=u?e(u):null;var c=this.root.querySelector(C.strings.OUTLINE_SELECTOR);this.outline=c?n(c):null;var d=this.root.querySelector(C.strings.LEADING_ICON_SELECTOR);d&&(this.leadingIcon=r(d)),this.root.classList.contains(C.cssClasses.OUTLINED)||(this.ripple=this.createRipple())},b.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.handleMenuClosing=function(){e.foundation.handleMenuClosing()},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(f.strings.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(f.strings.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(f.strings.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(m.strings.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout();this.hiddenInput.value=this.value}},b.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(f.strings.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(f.strings.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(m.strings.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(),c.prototype.destroy.call(this)},Object.defineProperty(b.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(t){this.foundation.setValue(t)},enumerable:!1,configurable:!0}),b.prototype.setValue=function(t,e){void 0===e&&(e=!1),this.foundation.setValue(t,e)},Object.defineProperty(b.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t,!0)},enumerable:!1,configurable:!0}),b.prototype.setSelectedIndex=function(t,e){void 0===e&&(e=!1),this.foundation.setSelectedIndex(t,!0,e)},Object.defineProperty(b.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(t){this.foundation.setDisabled(t),this.hiddenInput&&(this.hiddenInput.disabled=t)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"leadingIconAriaLabel",{set:function(t){this.foundation.setLeadingIconAriaLabel(t)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"leadingIconContent",{set:function(t){this.foundation.setLeadingIconContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"helperTextContent",{set:function(t){this.foundation.setHelperTextContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"useDefaultValidation",{set:function(t){this.foundation.setUseDefaultValidation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(t){this.foundation.setValid(t)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(t){this.foundation.setRequired(t)},enumerable:!1,configurable:!0}),b.prototype.layout=function(){this.foundation.layout()},b.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map(function(t){return t.getAttribute(C.strings.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},b.prototype.getDefaultFoundation=function(){var t=o(o(o(o({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new _.MDCSelectFoundation(t,this.getFoundationMap())},b.prototype.menuSetup=function(t){this.menuElement=this.root.querySelector(C.strings.MENU_SELECTOR),this.menu=t(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map(function(t){return t.getAttribute(C.strings.VALUE_ATTR)||""})},b.prototype.createRipple=function(){var n=this,t=o(o({},y.MDCRipple.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,e){n.selectAnchor.addEventListener(t,e)},deregisterInteractionHandler:function(t,e){n.selectAnchor.removeEventListener(t,e)}});return new y.MDCRipple(this.selectAnchor,new I.MDCRippleFoundation(t))},b.prototype.getSelectAdapterMethods=function(){var n=this;return{getMenuItemAttr:function(t,e){return t.getAttribute(e)},setSelectedText:function(t){n.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===n.selectAnchor},getSelectAnchorAttr:function(t){return n.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,e){n.selectAnchor.setAttribute(t,e)},removeSelectAnchorAttr:function(t){n.selectAnchor.removeAttribute(t)},addMenuClass:function(t){n.menuElement.classList.add(t)},removeMenuClass:function(t){n.menuElement.classList.remove(t)},openMenu:function(){n.menu.open=!0},closeMenu:function(){n.menu.open=!1},getAnchorElement:function(){return n.root.querySelector(C.strings.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){n.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){n.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){n.menu.wrapFocus=t},getSelectedIndex:function(){var t=n.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){n.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){n.menu.items[t].focus()},getMenuItemCount:function(){return n.menu.items.length},getMenuItemValues:function(){return n.menuItemValues},getMenuItemTextAtIndex:function(t){return n.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return n.menu.typeaheadInProgress},typeaheadMatchItem:function(t,e){return n.menu.typeaheadMatchItem(t,e)}}},b.prototype.getCommonAdapterMethods=function(){var n=this;return{addClass:function(t){n.root.classList.add(t)},removeClass:function(t){n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},setRippleCenter:function(t){n.lineRipple&&n.lineRipple.setRippleCenter(t)},activateBottomLine:function(){n.lineRipple&&n.lineRipple.activate()},deactivateBottomLine:function(){n.lineRipple&&n.lineRipple.deactivate()},notifyChange:function(t){n.hiddenInput&&(n.hiddenInput.value=t);var e=n.selectedIndex;n.emit(C.strings.CHANGE_EVENT,{value:t,index:e},!0)}}},b.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},b.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)}}},b.prototype.getNormalizedXCoordinate=function(t){var e=t.target.getBoundingClientRect();return(this.isTouchEvent(t)?t.touches[0].clientX:t.clientX)-e.left},b.prototype.isTouchEvent=function(t){return Boolean(t.touches)},b.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},b);function b(){return null!==c&&c.apply(this,arguments)||this}e.MDCSelect=A},224:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},225:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.helperTextStrings=e.helperTextCssClasses=void 0,r(n(226),e),r(n(110),e),r(n(111),e);var o=n(112);Object.defineProperty(e,"helperTextCssClasses",{enumerable:!0,get:function(){return o.cssClasses}}),Object.defineProperty(e,"helperTextStrings",{enumerable:!0,get:function(){return o.strings}})},226:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},227:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.iconStrings=void 0,r(n(228),e),r(n(113),e),r(n(114),e);var o=n(115);Object.defineProperty(e,"iconStrings",{enumerable:!0,get:function(){return o.strings}})},228:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},23:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.handleKeydown=e.clearBuffer=e.isTypingInProgress=e.matchItem=e.initSortedIndex=e.initState=void 0;var E=n(8),c=n(9),y=n(13);function I(t,e){var n,i=t.nextChar,r=t.focusItemAtIndex,o=t.sortedIndexByFirstChar,s=t.focusedItemIndex,a=t.skipFocus,u=t.isItemAtIndexDisabled;return clearTimeout(e.bufferClearTimeout),e.bufferClearTimeout=setTimeout(function(){d(e)},c.numbers.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),e.typeaheadBuffer=e.typeaheadBuffer+i,-1===(n=1===e.typeaheadBuffer.length?function(t,e,n,i){var r=i.typeaheadBuffer[0],o=t.get(r);if(!o)return-1;if(r===i.currentFirstChar&&o[i.sortedIndexCursor].index===e){i.sortedIndexCursor=(i.sortedIndexCursor+1)%o.length;var s=o[i.sortedIndexCursor].index;if(!n(s))return s}i.currentFirstChar=r;var a,u=-1;for(a=0;a<o.length;a++)if(!n(o[a].index)){u=a;break}for(;a<o.length;a++)if(o[a].index>e&&!n(o[a].index)){u=a;break}return-1===u?-1:(i.sortedIndexCursor=u,o[i.sortedIndexCursor].index)}(o,s,u,e):function(t,e,n){var i=n.typeaheadBuffer[0],r=t.get(i);if(!r)return-1;var o=r[n.sortedIndexCursor];if(0===o.text.lastIndexOf(n.typeaheadBuffer,0)&&!e(o.index))return o.index;var s=(n.sortedIndexCursor+1)%r.length,a=-1;for(;s!==n.sortedIndexCursor;){var u=r[s],c=0===u.text.lastIndexOf(n.typeaheadBuffer,0),d=!e(u.index);if(c&&d){a=s;break}s=(s+1)%r.length}return-1===a?-1:(n.sortedIndexCursor=a,r[n.sortedIndexCursor].index)}(o,u,e))||a||r(n),n}function C(t){return 0<t.typeaheadBuffer.length}function d(t){t.typeaheadBuffer=""}e.initState=function(){return{bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""}},e.initSortedIndex=function(t,e){for(var n=new Map,i=0;i<t;i++){var r=e(i).trim();if(r){var o=r[0].toLowerCase();n.has(o)||n.set(o,[]),n.get(o).push({text:r.toLowerCase(),index:i})}}return n.forEach(function(t){t.sort(function(t,e){return t.index-e.index})}),n},e.matchItem=I,e.isTypingInProgress=C,e.clearBuffer=d,e.handleKeydown=function(t,e){var n=t.event,i=t.isTargetListItem,r=t.focusedItemIndex,o=t.focusItemAtIndex,s=t.sortedIndexByFirstChar,a=t.isItemAtIndexDisabled,u="ArrowLeft"===E.normalizeKey(n),c="ArrowUp"===E.normalizeKey(n),d="ArrowRight"===E.normalizeKey(n),l="ArrowDown"===E.normalizeKey(n),h="Home"===E.normalizeKey(n),f="End"===E.normalizeKey(n),p="Enter"===E.normalizeKey(n),m="Spacebar"===E.normalizeKey(n);return n.altKey||n.ctrlKey||n.metaKey||u||c||d||l||h||f||p?-1:m||1!==n.key.length?m?(i&&y.preventDefaultEvent(n),i&&C(e)?I({focusItemAtIndex:o,focusedItemIndex:r,nextChar:" ",sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:a},e):-1):-1:(y.preventDefaultEvent(n),I({focusItemAtIndex:o,focusedItemIndex:r,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:a},e))}},24:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultFocusState=e.numbers=e.strings=e.cssClasses=void 0;e.cssClasses={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"};e.strings={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"};var i,r;e.numbers={FOCUS_ROOT_INDEX:-1},(r=i=i||{})[r.NONE=0]="NONE",r[r.LIST_ROOT=1]="LIST_ROOT",r[r.FIRST_ITEM=2]="FIRST_ITEM",r[r.LAST_ITEM=3]="LAST_ITEM",e.DefaultFocusState=i},27:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLineRippleFoundation=void 0;var s,a=n(0),u=n(28),c=(s=a.MDCFoundation,r(d,s),Object.defineProperty(d,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),d.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},d.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},d.prototype.activate=function(){this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(u.cssClasses.LINE_RIPPLE_ACTIVE)},d.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},d.prototype.deactivate=function(){this.adapter.addClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING)},d.prototype.handleTransitionEnd=function(t){var e=this.adapter.hasClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING))},d);function d(t){var e=s.call(this,o(o({},d.defaultAdapter),t))||this;return e.transitionEndHandler=function(t){e.handleTransitionEnd(t)},e}e.MDCLineRippleFoundation=c,e.default=c},28:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=void 0;e.cssClasses={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}},29:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCNotchedOutlineFoundation=void 0;var s,a=n(0),u=n(18),c=(s=a.MDCFoundation,r(d,s),Object.defineProperty(d,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(d,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),d.prototype.notch=function(t){var e=d.cssClasses.OUTLINE_NOTCHED;0<t&&(t+=u.numbers.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(e)},d.prototype.closeNotch=function(){var t=d.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(t),this.adapter.removeNotchWidthProperty()},d);function d(t){return s.call(this,o(o({},d.defaultAdapter),t))||this}e.MDCNotchedOutlineFoundation=c,e.default=c},3:function(t,e,n){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof s&&!e)return s;if(!(i&&"function"==typeof i.supports))return!1;var r=i.supports("--css-vars","yes"),o=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=r||o,e||(s=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var i,r,o=e.x,s=e.y,a=o+n.left,u=s+n.top;if("touchstart"===t.type){var c=t;i=c.changedTouches[0].pageX-a,r=c.changedTouches[0].pageY-u}else{var d=t;i=d.pageX-a,r=d.pageY-u}return{x:i,y:r}}},35:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFloatingLabel=void 0;var o,s=n(1),a=n(2),u=n(15),c=(o=s.MDCComponent,r(d,o),d.attachTo=function(t){return new d(t)},d.prototype.shake=function(t){this.foundation.shake(t)},d.prototype.float=function(t){this.foundation.float(t)},d.prototype.setRequired=function(t){this.foundation.setRequired(t)},d.prototype.getWidth=function(){return this.foundation.getWidth()},d.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},getWidth:function(){return a.estimateScrollWidth(n.root)},registerInteractionHandler:function(t,e){return n.listen(t,e)},deregisterInteractionHandler:function(t,e){return n.unlisten(t,e)}};return new u.MDCFloatingLabelFoundation(t)},d);function d(){return null!==o&&o.apply(this,arguments)||this}e.MDCFloatingLabel=c},36:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
vendor: 1,532 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLineRipple=void 0;var o,s=n(1),a=n(27),u=(o=s.MDCComponent,r(c,o),c.attachTo=function(t){return new c(t)},c.prototype.activate=function(){this.foundation.activate()},c.prototype.deactivate=function(){this.foundation.deactivate()},c.prototype.setRippleCenter=function(t){this.foundation.setRippleCenter(t)},c.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},setStyle:function(t,e){return n.root.style.setProperty(t,e)},registerEventHandler:function(t,e){return n.listen(t,e)},deregisterEventHandler:function(t,e){return n.unlisten(t,e)}};return new a.MDCLineRippleFoundation(t)},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.MDCLineRipple=u},37:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuSurface=void 0;var o,s=n(1),a=n(11),u=n(16),c=n(10),d=(o=s.MDCComponent,r
vendor: 3,948 bytes, line 1
1(l,o),l.attachTo=function(t){return new l(t)},l.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(a.cssClasses.ANCHOR)?t:null,this.root.classList.contains(a.cssClasses.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(a.strings.OPENED_EVENT,this.registerBodyClickListener),this.listen(a.strings.CLOSED_EVENT,this.deregisterBodyClickListener)},l.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(a.strings.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(a.strings.CLOSED_EVENT,this.deregisterBodyClickListener),o.prototype.destroy.call(this)},l.prototype.isOpen=function(){return this.foundation.isOpen()},l.prototype.open=function(){this.foundation.open()},l.prototype.close=function(t){void 0===t&&(t=!1),this.foundation.close(t)},Object.defineProperty(l.prototype,"quickOpen",{set:function(t){this.foundation.setQuickOpen(t)},enumerable:!1,configurable:!0}),l.prototype.setIsHoisted=function(t){this.foundation.setIsHoisted(t)},l.prototype.setMenuSurfaceAnchorElement=function(t){this.anchorElement=t},l.prototype.setFixedPosition=function(t){t?this.root.classList.add(a.cssClasses.FIXED):this.root.classList.remove(a.cssClasses.FIXED),this.foundation.setFixedPosition(t)},l.prototype.setAbsolutePosition=function(t,e){this.foundation.setAbsolutePosition(t,e),this.setIsHoisted(!0)},l.prototype.setAnchorCorner=function(t){this.foundation.setAnchorCorner(t)},l.prototype.setAnchorMargin=function(t){this.foundation.setAnchorMargin(t)},l.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},hasAnchor:function(){return!!n.anchorElement},notifyClose:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.CLOSED_EVENT,{})},notifyClosing:function(){n.emit(u.MDCMenuSurfaceFoundation.strings.CLOSING_EVENT,{})},notifyOpen:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.OPENED_EVENT,{})},notifyOpening:function(){return n.emit(u.MDCMenuSurfaceFoundation.strings.OPENING_EVENT,{})},isElementInContainer:function(t){return n.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(n.root).getPropertyValue("direction")},setTransformOrigin:function(t){var e=c.getCorrectPropertyName(window,"transform")+"-origin";n.root.style.setProperty(e,t)},isFocused:function(){return document.activeElement===n.root},saveFocus:function(){n.previousFocus=document.activeElement},restoreFocus:function(){n.root.contains(document.activeElement)&&n.previousFocus&&n.previousFocus.focus&&n.previousFocus.focus()},getInnerDimensions:function(){return{width:n.root.offsetWidth,height:n.root.offsetHeight}},getAnchorDimensions:function(){return n.anchorElement?n.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 e=n.root;e.style.left="left"in t?t.left+"px":"",e.style.right="right"in t?t.right+"px":"",e.style.top="top"in t?t.top+"px":"",e.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){n.root.style.maxHeight=t}};return new u.MDCMenuSurfaceFoundation(t)},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MDCMenuSurface=d},
vendor: 7,707 bytes, line 1
138:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCNotchedOutline=void 0;var o,s=n(1),a=n(15),u=n(18),c=n(29),d=(o=s.MDCComponent,r(l,o),l.attachTo=function(t){return new l(t)},l.prototype.initialSyncWithDOM=function(){this.notchElement=this.root.querySelector(u.strings.NOTCH_ELEMENT_SELECTOR);var t=this.root.querySelector("."+a.MDCFloatingLabelFoundation.cssClasses.ROOT);t?(t.style.transitionDuration="0s",this.root.classList.add(u.cssClasses.OUTLINE_UPGRADED),requestAnimationFrame(function(){t.style.transitionDuration=""})):this.root.classList.add(u.cssClasses.NO_LABEL)},l.prototype.notch=function(t){this.foundation.notch(t)},l.prototype.closeNotch=function(){this.foundation.closeNotch()},l.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){e.notchElement.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){e.notchElement.style.removeProperty("width")}};return new c.MDCNotchedOutlineFoundation(t)},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MDCNotchedOutline=d},4:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var a,u=n(0),c=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],h=["touchend","pointerup","mouseup","contextmenu"],f=[],p=(a=u.MDCFoundation,r(m,a),Object.defineProperty(m,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(m,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(m,"numbers",{get:function(){return c.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(m,"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:!1,configurable:!0}),m.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=m.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())})}},m.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(m.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(m.cssClasses.FG_DEACTIVATION));var e=m.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},m.prototype.activate=function(t){this.activateImpl(t)},m.prototype.deactivate=function(){this.deactivateImpl()},m.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},m.prototype.setUnbounded=function(t){var e=m.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},m.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(m.cssClasses.BG_FOCUSED)})},m.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(m.cssClasses.BG_FOCUSED)})},m.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},m.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},m.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var i=s(l),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},m.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=s(h),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},m.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=s(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},m.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=s(h),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},m.prototype.removeCssVars=function(){var e=this,n=m.strings;
vendor: 5,400 bytes, line 1
1Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},m.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},m.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},m.prototype.animateActivation=function(){var t=this,e=m.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,r=m.cssClasses,o=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,a=m.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",c="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),l=d.startPoint,h=d.endPoint;u=l.x+"px, "+l.y+"px",c=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(n,u),this.adapter.updateCssVariable(i,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},a)},m.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?d.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},m.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=m.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,r=n.isActivated;!i&&r||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},c.numbers.FG_DEACTIVATION_MS))},m.prototype.rmBoundedActivationClasses=function(){var t=m.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},m.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},m.numbers.TAP_DELAY_MS)},m.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},m.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},m.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+m.numbers.PADDING;var n=Math.floor(e*m.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()},m.prototype.updateLayoutCssVars=function(){var t=m.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},m);function m(t){var e=a.call(this,o(o({},m.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=p,e.default=p},47:function(t,e,n){"use strict";
vendor: 4,382 bytes, line 1
1var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuFoundation=void 0;var s,a=n(0),u=n(9),c=n(16),d=n(24),l=(s=a.MDCFoundation,r(h,s),Object.defineProperty(h,"cssClasses",{get:function(){return d.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return d.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return d.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},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:!1,configurable:!0}),h.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},h.prototype.handleKeydown=function(t){var e=t.key,n=t.keyCode;"Tab"!==e&&9!==n||this.adapter.closeSurface(!0)},h.prototype.handleItemAction=function(e){var n=this,t=this.adapter.getElementIndex(e);if(!(t<0)){this.adapter.notifySelected({index:t});var i="true"===this.adapter.getAttributeFromElementAtIndex(t,d.strings.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(i),this.closeAnimationEndTimerId=setTimeout(function(){var t=n.adapter.getElementIndex(e);0<=t&&n.adapter.isSelectableItemAtIndex(t)&&n.setSelectedIndex(t)},c.MDCMenuSurfaceFoundation.numbers.TRANSITION_CLOSE_DURATION)}},h.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case d.DefaultFocusState.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case d.DefaultFocusState.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case d.DefaultFocusState.NONE:break;default:this.adapter.focusListRoot()}},h.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},h.prototype.getSelectedIndex=function(){return this.selectedIndex},h.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var e=this.adapter.getSelectedSiblingOfItemAtIndex(t);0<=e&&(this.adapter.removeAttributeFromElementAtIndex(e,d.strings.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(e,d.cssClasses.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,d.cssClasses.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,d.strings.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},h.prototype.setEnabled=function(t,e){this.validatedIndex(t),e?(this.adapter.removeClassFromElementAtIndex(t,u.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,d.strings.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,u.cssClasses.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,d.strings.ARIA_DISABLED_ATTR,"true"))},h.prototype.validatedIndex=function(t){var e=this.adapter.getMenuItemCount();if(!(0<=t&&t<e))throw new Error("MDCMenuFoundation: No list item at specified index.")},h);function h(t){var e=s.call(this,o(o({},h.defaultAdapter),t))||this;return e.closeAnimationEndTimerId=0,e.defaultFocusState=d.DefaultFocusState.LIST_ROOT,e.selectedIndex=-1,e}e.MDCMenuFoundation=l,e.default=l},5:function(t,e,n){"use strict";
vendor: 4,246 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,c=n(1),d=n(5),l=n(2),h=n(4),f=a(n(3)),p=(u=c.MDCComponent,r(m,u),m.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new m(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},m.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,d.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,d.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,d.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,d.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(m.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),m.prototype.activate=function(){this.foundation.activate()},m.prototype.deactivate=function(){this.foundation.deactivate()},m.prototype.layout=function(){this.foundation.layout()},m.prototype.getDefaultFoundation=function(){return new h.MDCRippleFoundation(m.createAdapter(this))},m.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},m.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},m);function m(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=p},60:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
vendor: 6,151 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenu=void 0;var o,s=n(1),a=n(2),u=n(22),c=n(9),d=n(14),l=n(37),h=n(16),f=n(24),p=n(47),m=(o=s.MDCComponent,r(E,o),E.attachTo=function(t){return new E(t)},E.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new l.MDCMenuSurface(t)}),void 0===e&&(e=function(t){return new u.MDCList(t)}),this.menuSurfaceFactory=t,this.listFactory=e},E.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface=this.menuSurfaceFactory(this.root);var t=this.root.querySelector(f.strings.LIST_SELECTOR);t?(this.list=this.listFactory(t),this.list.wrapFocus=!0):this.list=null,this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleItemAction=function(t){e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened=function(){e.foundation.handleMenuSurfaceOpened()},this.menuSurface.listen(h.MDCMenuSurfaceFoundation.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.listen("keydown",this.handleKeydown),this.listen(d.MDCListFoundation.strings.ACTION_EVENT,this.handleItemAction)},E.prototype.destroy=function(){this.list&&this.list.destroy(),this.menuSurface.destroy(),this.menuSurface.unlisten(h.MDCMenuSurfaceFoundation.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.unlisten("keydown",this.handleKeydown),this.unlisten(d.MDCListFoundation.strings.ACTION_EVENT,this.handleItemAction),o.prototype.destroy.call(this)},Object.defineProperty(E.prototype,"open",{get:function(){return this.menuSurface.isOpen()},set:function(t){t?this.menuSurface.open():this.menuSurface.close()},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"wrapFocus",{get:function(){return!!this.list&&this.list.wrapFocus},set:function(t){this.list&&(this.list.wrapFocus=t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"hasTypeahead",{set:function(t){this.list&&(this.list.hasTypeahead=t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"typeaheadInProgress",{get:function(){return!!this.list&&this.list.typeaheadInProgress},enumerable:!1,configurable:!0}),E.prototype.typeaheadMatchItem=function(t,e){return this.list?this.list.typeaheadMatchItem(t,e):-1},E.prototype.layout=function(){this.list&&this.list.layout()},Object.defineProperty(E.prototype,"items",{get:function(){return this.list?this.list.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"singleSelection",{set:function(t){this.list&&(this.list.singleSelection=t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"selectedIndex",{get:function(){return this.list?this.list.selectedIndex:c.numbers.UNSET_INDEX},set:function(t){this.list&&(this.list.selectedIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"quickOpen",{set:function(t){this.menuSurface.quickOpen=t},enumerable:!1,configurable:!0}),E.prototype.setDefaultFocusState=function(t){this.foundation.setDefaultFocusState(t)},E.prototype.setAnchorCorner=function(t){this.menuSurface.setAnchorCorner(t)},E.prototype.setAnchorMargin=function(t){this.menuSurface.setAnchorMargin(t)},E.prototype.setSelectedIndex=function(t){this.foundation.setSelectedIndex(t)},E.prototype.setEnabled=function(t,e){this.foundation.setEnabled(t,e)},E.prototype.getOptionByIndex=function(t){return t<this.items.length?this.items[t]:null},E.prototype.getPrimaryTextAtIndex=function(t){var e=this.getOptionByIndex(t);return e&&this.list&&this.list.getPrimaryText(e)||""},E.prototype.setFixedPosition=function(t){this.menuSurface.setFixedPosition(t)},E.prototype.setIsHoisted=function(t){this.menuSurface.setIsHoisted(t)},E.prototype.setAbsolutePosition=function(t,e){this.menuSurface.setAbsolutePosition(t,e)},E.prototype.setAnchorElement=function(t){this.menuSurface.anchorElement=t},E.prototype.getDefaultFoundation=function(){var i=this,t={addClassToElementAtIndex:function(t,e){i.items[t].classList.add(e)},removeClassFromElementAtIndex:function(t,e){i.items[t].classList.remove(e)},addAttributeToElementAtIndex:function(t,e,n){i.items[t].setAttribute(e,n)},removeAttributeFromElementAtIndex:function(t,e){i.items[t].removeAttribute(e)},getAttributeFromElementAtIndex:function(t,e){return i.items[t].getAttribute(e)},elementContainsClass:function(t,e){return t.classList.contains(e)},closeSurface:function(t){i.menuSurface.close(t)},getElementIndex:function(t){return i.items.indexOf(t)},notifySelected:function(t){i.emit(f.strings.SELECTED_EVENT,{index:t.index,item:i.items[t.index]})},getMenuItemCount:function(){return i.items.length},focusItemAtIndex:function(t){i.items[t].focus()},focusListRoot:function(){i.root.querySelector(f.strings.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!a.closest(i.items[t],"."+f.cssClasses.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var e=a.closest(i.items[t],"."+f.cssClasses.MENU_SELECTION_GROUP).querySelector("."+f.cssClasses.MENU_SELECTED_LIST_ITEM);return e?i.items.indexOf(e):-1}};return new p.MDCMenuFoundation(t)},E);function E(){return null!==o&&o.apply(this,arguments)||this}e.MDCMenu=m},61:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0;e.cssClasses={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"};e.strings={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"};e.numbers={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330}},7:function(t,e,n){"use strict";
vendor: 5,395 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},8:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isNavigationEvent=i.normalizeKey=i.KEY=void 0,i.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var r=new Set;r.add(i.KEY.BACKSPACE),r.add(i.KEY.ENTER),r.add(i.KEY.SPACEBAR),r.add(i.KEY.PAGE_UP),r.add(i.KEY.PAGE_DOWN),r.add(i.KEY.END),r.add(i.KEY.HOME),r.add(i.KEY.ARROW_LEFT),r.add(i.KEY.ARROW_UP),r.add(i.KEY.ARROW_RIGHT),r.add(i.KEY.ARROW_DOWN),r.add(i.KEY.DELETE),r.add(i.KEY.ESCAPE),r.add(i.KEY.TAB);var n=8,o=13,s=32,a=33,u=34,c=35,d=36,l=37,h=38,f=39,p=40,m=46,E=27,y=9,I=new Map;I.set(n,i.KEY.BACKSPACE),I.set(o,i.KEY.ENTER),I.set(s,i.KEY.SPACEBAR),I.set(a,i.KEY.PAGE_UP),I.set(u,i.KEY.PAGE_DOWN),I.set(c,i.KEY.END),I.set(d,i.KEY.HOME),I.set(l,i.KEY.ARROW_LEFT),I.set(h,i.KEY.ARROW_UP),I.set(f,i.KEY.ARROW_RIGHT),I.set(p,i.KEY.ARROW_DOWN),I.set(m,i.KEY.DELETE),I.set(E,i.KEY.ESCAPE),I.set(y,i.KEY.TAB);var C=new Set;function _(t){var e=t.key;if(r.has(e))return e;var n=I.get(t.keyCode);return n||i.KEY.UNKNOWN}C.add(i.KEY.PAGE_UP),C.add(i.KEY.PAGE_DOWN),C.add(i.KEY.END),C.add(i.KEY.HOME),C.add(i.KEY.ARROW_LEFT),C.add(i.KEY.ARROW_UP),C.add(i.KEY.ARROW_RIGHT),C.add(i.KEY.ARROW_DOWN),i.normalizeKey=_,i.isNavigationEvent=function(t){return C.has(_(t))}},9:function(t,e,n){"use strict";var i,r;Object.defineProperty(e,"__esModule",{value:!0}),e.evolutionClassNameMap=e.evolutionAttribute=e.deprecatedClassNameMap=e.numbers=e.cssClasses=e.strings=void 0;var o={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"},s=((i={})[""+(e.cssClasses=o).LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",i[""+o.LIST_ITEM_CLASS]="mdc-list-item",i[""+o.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",i[""+o.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",i[""+o.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",i[""+o.ROOT]="mdc-list",i);e.evolutionClassNameMap=s;var a=((r={})[""+o.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",r[""+o.LIST_ITEM_CLASS]="mdc-deprecated-list-item",r[""+o.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",r[""+o.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",r[""+o.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",r[""+o.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",r[""+o.ROOT]="mdc-deprecated-list",r);e.deprecatedClassNameMap=a;var u={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",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",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+o.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+o.LIST_ITEM_CLASS+" a,\n ."+a[o.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[o.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+o.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+o.LIST_ITEM_CLASS+" a,\n ."+o.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+o.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+a[o.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+a[o.LIST_ITEM_CLASS]+" a,\n ."+a[o.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+a[o.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'};e.strings=u;e.numbers={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};e.evolutionAttribute="evolution"}},r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=221);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i});
vendor: 57,305 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/slider",[],e):"object"==typeof exports?exports.slider=e():(t.mdc=t.mdc||{},t.mdc.slider=e())}(this,function(){return n={},r.m=i={0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var n=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=n,e.default=n},1:function(t,e,i){"use strict";var r=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,a=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=a.next()).done;)s.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return s},a=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var n=i(0),s=(o.attachTo=function(t){return new o(t,new n.MDCFoundation({}))},o.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},o.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},o.prototype.initialSyncWithDOM=function(){},o.prototype.destroy=function(){this.foundation.destroy()},o.prototype.listen=function(t,e,i){this.root.addEventListener(t,e,i)},o.prototype.unlisten=function(t,e,i){this.root.removeEventListener(t,e,i)},o.prototype.emit=function(t,e,i){var n;void 0===i&&(i=!1),"function"==typeof CustomEvent?n=new CustomEvent(t,{bubbles:i,detail:e}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,e),this.root.dispatchEvent(n)},o);function o(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];this.root=t,this.initialize.apply(this,a([],r(i))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},10:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var s={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},o={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 u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in s){var i=t.document.createElement("div"),n=s[e],r=n.standard,a=n.prefixed;return r in i.style?r:a}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in o){var i=t.document.createElement("div"),n=o[e],r=n.standard,a=n.prefixed;return n.cssProperty in i.style?r:a}return e}},116:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSliderFoundation=void 0;var l,s=i(17),h=i(10),o=i(0),d=i(62),c=i(63);(l=l||{}).SLIDER_UPDATE="slider_update";var u,p="undefined"!=typeof window,m=(u=o.MDCFoundation,r(v,u),Object.defineProperty(v,"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},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth: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:!1,configurable:!0}),v.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass(d.cssClasses.DISABLED),this.isDiscrete=this.adapter.hasClass(d.cssClasses.DISCRETE),this.hasTickMarks=this.adapter.hasClass(d.cssClasses.TICK_MARKS),this.isRange=this.adapter.hasClass(d.cssClasses.RANGE);var e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(d.attributes.INPUT_MIN,this.isRange?c.Thumb.START:c.Thumb.END),d.attributes.INPUT_MIN),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(d.attributes.INPUT_MAX,c.Thumb.END),d.attributes.INPUT_MAX),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(d.attributes.INPUT_VALUE,c.Thumb.END),d.attributes.INPUT_VALUE),r=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(d.attributes.INPUT_VALUE,c.Thumb.START),d.attributes.INPUT_VALUE):e,a=this.adapter.getInputAttribute(d.attributes.INPUT_STEP,c.Thumb.END),s=a?this.convertAttributeValueToNumber(a,d.attributes.INPUT_STEP):this.step,o=this.adapter.getAttribute(d.attributes.DATA_MIN_RANGE),u=o?this.convertAttributeValueToNumber(o,d.attributes.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:e,max:i,value:n,valueStart:r,step:s,minRange:u}),this.min=e,this.max=i,this.value=n,this.valueStart=r,this.step=s,this.minRange=u,this.numDecimalPlaces=f(this.step),this.valueBeforeDownEvent=n,this.valueStartBeforeDownEvent=r,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(){t.handleInputChange(c.Thumb.START)},this.inputEndChangeListener=function(){t.handleInputChange(c.Thumb.END)},this.inputStartFocusListener=function(){t.handleInputFocus(c.Thumb.START)},this.inputEndFocusListener=function(){t.handleInputFocus(c.Thumb.END)},this.inputStartBlurListener=function(){t.handleInputBlur(c.Thumb.START)},this.inputEndBlurListener=function(){t.handleInputBlur(c.Thumb.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},v.prototype.destroy=function(){this.deregisterEventHandlers()},v.prototype.setMin=function(t){this.min=t,this.isRange||(this.valueStart=t),this.updateUI()},v.prototype.setMax=function(t){this.max=t,this.updateUI()},v.prototype.getMin=function(){return this.min},v.prototype.getMax=function(){return this.max},v.prototype.getValue=function(){return this.value},v.prototype.setValue=function(t){if(this.isRange&&t<this.valueStart+this.minRange)throw new Error("end thumb value ("+t+") must be >= start thumb value ("+this.valueStart+") + min range ("+this.minRange+")");this.updateValue(t,c.Thumb.END)},v.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},v.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value-this.minRange)throw new Error("start thumb value ("+t+") must be <= end thumb value ("+this.value+") - min range ("+this.minRange+")");this.updateValue(t,c.Thumb.START)},v.prototype.setStep=function(t){this.step=t,this.numDecimalPlaces=f(t),this.updateUI()},v.prototype.setMinRange=function(t){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(t<0)throw new Error("`minRange` must be non-negative. Current value: "+t);if(this.value-this.valueStart<t)throw new Error("start thumb value ("+this.valueStart+") and end thumb value ("+this.value+") must differ by at least "+t+".");this.minRange=t},v.prototype.setIsDiscrete=function(t){this.isDiscrete=t,this.updateValueIndicatorUI(),this.updateTickMarksUI()},v.prototype.getStep=function(){return this.step},v.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},v.prototype.setHasTickMarks=function(t){this.hasTickMarks=t,this.updateTickMarksUI()},v.prototype.getDisabled=function(){return this.isDisabled},v.prototype.setDisabled=function(t){(this.isDisabled=t)?(this.adapter.addClass(d.cssClasses.DISABLED),this.isRange&&this.adapter.setInputAttribute(d.attributes.INPUT_DISABLED,"",c.Thumb.START),this.adapter.setInputAttribute(d.attributes.INPUT_DISABLED,"",c.Thumb.END)):(this.adapter.removeClass(d.cssClasses.DISABLED),this.isRange&&this.adapter.removeInputAttribute(d.attributes.INPUT_DISABLED,c.Thumb.START),this.adapter.removeInputAttribute(d.attributes.INPUT_DISABLED,c.Thumb.END))},v.prototype.getIsRange=function(){return this.isRange},v.prototype.layout=function(t){var e=(void 0===t?{}:t).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(c.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(c.Thumb.END)),e||this.updateUI()},v.prototype.handleResize=function(){this.layout()},v.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var i=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,i),null!==this.thumb&&(this.handleDragStart(t,i,this.thumb),this.updateValue(i,this.thumb,{emitInputEvent:!0}))}},v.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX,i=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(e),null!==this.thumb){var n=this.mapClientXOnSliderScale(e);i||(this.handleDragStart(t,n,this.thumb),this.adapter.emitDragStartEvent(n,this.thumb)),this.updateValue(n,this.thumb,{emitInputEvent:!0})}}},v.prototype.handleUp=function(){var t,e;if(!this.isDisabled&&null!==this.thumb){(null===(e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===e?void 0:e.call(t))&&this.handleInputBlur(this.thumb);var i=this.thumb===c.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,n=this.thumb===c.Thumb.START?this.valueStart:this.value;i!==n&&this.adapter.emitChangeEvent(n,this.thumb),this.adapter.emitDragEndEvent(n,this.thumb),this.thumb=null}},v.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(d.cssClasses.THUMB_WITH_INDICATOR,c.Thumb.START),this.adapter.addThumbClass(d.cssClasses.THUMB_WITH_INDICATOR,c.Thumb.END))},v.prototype.handleThumbMouseleave=function(){var t,e;this.isDiscrete&&this.isRange&&((null===(e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===e||!e.call(t))&&(this.adapter.isInputFocused(c.Thumb.START)||this.adapter.isInputFocused(c.Thumb.END))||this.thumb||(this.adapter.removeThumbClass(d.cssClasses.THUMB_WITH_INDICATOR,c.Thumb.START),this.adapter.removeThumbClass(d.cssClasses.THUMB_WITH_INDICATOR,c.Thumb.END)))},v.prototype.handleMousedownOrTouchstart=function(t){var e=this,i="mousedown"===t.type?"mousemove":"touchmove";function n(){e.handleUp(),e.adapter.deregisterBodyEventHandler(i,e.moveListener),e.adapter.deregisterEventHandler("mouseup",n),e.adapter.deregisterEventHandler("touchend",n)}this.adapter.registerBodyEventHandler(i,this.moveListener),this.adapter.registerBodyEventHandler("mouseup",n),this.adapter.registerBodyEventHandler("touchend",n),this.handleDown(t)},v.prototype.handlePointerdown=function(t){0===t.button&&(null!=t.pointerId&&this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t))},v.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===c.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===c.Thumb.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===c.Thumb.START?this.valueStart:this.value,t)},v.prototype.handleInputFocus=function(t){if(this.adapter.addThumbClass(d.cssClasses.THUMB_FOCUSED,t),this.isDiscrete&&(this.adapter.addThumbClass(d.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===c.Thumb.START?c.Thumb.END:c.Thumb.START;this.adapter.addThumbClass(d.cssClasses.THUMB_WITH_INDICATOR,e)}},v.prototype.handleInputBlur=function(t){if(this.adapter.removeThumbClass(d.cssClasses.THUMB_FOCUSED,t),this.isDiscrete&&(this.adapter.removeThumbClass(d.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===c.Thumb.START?c.Thumb.END:c.Thumb.START;this.adapter.removeThumbClass(d.cssClasses.THUMB_WITH_INDICATOR,e)}},v.prototype.handleDragStart=function(t,e,i){var n,r;this.adapter.emitDragStartEvent(e,i),this.adapter.focusInput(i),(null===(r=(n=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===r?void 0:r.call(n))&&this.handleInputFocus(i),t.preventDefault()},v.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return c.Thumb.END;var i=this.adapter.getThumbBoundingClientRect(c.Thumb.START),n=this.adapter.getThumbBoundingClientRect(c.Thumb.END),r=t>=i.left&&t<=i.right,a=t>=n.left&&t<=n.right;return r&&a?null:r?c.Thumb.START:a?c.Thumb.END:e<this.valueStart?c.Thumb.START:e>this.value?c.Thumb.END:e-this.valueStart<=this.value-e?c.Thumb.START:c.Thumb.END},v.prototype.getThumbFromMoveEvent=function(t){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw new Error("`downEventClientX` is null after move event.");return Math.abs(this.downEventClientX-t)<d.numbers.THUMB_UPDATE_MIN_PX?this.thumb:t<this.downEventClientX?this.adapter.isRTL()?c.Thumb.END:c.Thumb.START:this.adapter.isRTL()?c.Thumb.START:c.Thumb.END},v.prototype.updateUI=function(t){t?this.updateThumbAndInputAttributes(t):(this.updateThumbAndInputAttributes(c.Thumb.START),this.updateThumbAndInputAttributes(c.Thumb.END)),this.updateThumbAndTrackUI(t),this.updateValueIndicatorUI(t),this.updateTickMarksUI()},v.prototype.updateThumbAndInputAttributes=function(t){if(t){var e=this.isRange&&t===c.Thumb.START?this.valueStart:this.value,i=String(e);this.adapter.setInputAttribute(d.attributes.INPUT_VALUE,i,t),this.isRange&&t===c.Thumb.START?this.adapter.setInputAttribute(d.attributes.INPUT_MIN,String(e+this.minRange),c.Thumb.END):this.isRange&&t===c.Thumb.END&&this.adapter.setInputAttribute(d.attributes.INPUT_MAX,String(e-this.minRange),c.Thumb.START),this.adapter.getInputValue(t)!==i&&this.adapter.setInputValue(i,t);var n=this.adapter.getValueToAriaValueTextFn();n&&this.adapter.setInputAttribute(d.attributes.ARIA_VALUETEXT,n(e,t),t)}},v.prototype.updateValueIndicatorUI=function(t){if(this.isDiscrete){var e=this.isRange&&t===c.Thumb.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(e,t===c.Thumb.START?c.Thumb.START:c.Thumb.END),!t&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,c.Thumb.START)}},v.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var t=(this.valueStart-this.min)/this.step,e=(this.value-this.valueStart)/this.step+1,i=(this.max-this.value)/this.step,n=Array.from({length:t}).fill(c.TickMark.INACTIVE),r=Array.from({length:e}).fill(c.TickMark.ACTIVE),a=Array.from({length:i}).fill(c.TickMark.INACTIVE);this.adapter.updateTickMarks(n.concat(r).concat(a))}},v.prototype.mapClientXOnSliderScale=function(t){var e=(t-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(e=1-e);var i=this.min+e*(this.max-this.min);return i===this.max||i===this.min?i:Number(this.quantize(i).toFixed(this.numDecimalPlaces))},v.prototype.quantize=function(t){var e=Math.round((t-this.min)/this.step);return this.min+e*this.step},v.prototype.updateValue=function(t,e,i){var n=(void 0===i?{}:i).emitInputEvent;if(t=this.clampValue(t,e),this.isRange&&e===c.Thumb.START){if(this.valueStart===t)return;this.valueStart=t}else{if(this.value===t)return;this.value=t}this.updateUI(e),n&&this.adapter.emitInputEvent(e===c.Thumb.START?this.valueStart:this.value,e)},v.prototype.clampValue=function(t,e){return t=Math.min(Math.max(t,this.min),this.max),this.isRange&&e===c.Thumb.START&&t>this.value-this.minRange?this.value-this.minRange:this.isRange&&e===c.Thumb.END&&t<this.valueStart+this.minRange?this.valueStart+this.minRange:t},v.prototype.updateThumbAndTrackUI=function(i){var n=this,t=this.max,e=this.min,r=(this.value-this.valueStart)/(t-e),a=r*this.rect.width,s=this.adapter.isRTL(),o=p?h.getCorrectPropertyName(window,"transform"):"transform";if(this.isRange){var u=this.adapter.isRTL()?(t-this.value)/(t-e)*this.rect.width:(this.valueStart-e)/(t-e)*this.rect.width,d=u+a;this.animFrame.request(l.SLIDER_UPDATE,function(){!s&&i===c.Thumb.START||s&&i!==c.Thumb.START?(n.adapter.setTrackActiveStyleProperty("transform-origin","right"),n.adapter.setTrackActiveStyleProperty("left","auto"),n.adapter.setTrackActiveStyleProperty("right",n.rect.width-d+"px")):(n.adapter.setTrackActiveStyleProperty("transform-origin","left"),n.adapter.setTrackActiveStyleProperty("right","auto"),n.adapter.setTrackActiveStyleProperty("left",u+"px")),n.adapter.setTrackActiveStyleProperty(o,"scaleX("+r+")");var t=s?d:u,e=n.adapter.isRTL()?u:d;i!==c.Thumb.START&&i&&n.initialStylesRemoved||(n.adapter.setThumbStyleProperty(o,"translateX("+t+"px)",c.Thumb.START),n.alignValueIndicator(c.Thumb.START,t)),i!==c.Thumb.END&&i&&n.initialStylesRemoved||(n.adapter.setThumbStyleProperty(o,"translateX("+e+"px)",c.Thumb.END),n.alignValueIndicator(c.Thumb.END,e)),n.removeInitialStyles(s),n.updateOverlappingThumbsUI(t,e,i)})}else this.animFrame.request(l.SLIDER_UPDATE,function(){var t=s?n.rect.width-a:a;n.adapter.setThumbStyleProperty(o,"translateX("+t+"px)",c.Thumb.END),n.alignValueIndicator(c.Thumb.END,t),n.adapter.setTrackActiveStyleProperty(o,"scaleX("+r+")"),n.removeInitialStyles(s)})},v.prototype.alignValueIndicator=function(t,e){if(this.isDiscrete){var i=this.adapter.getThumbBoundingClientRect(t).width/2,n=this.adapter.getValueIndicatorContainerWidth(t),r=this.adapter.getBoundingClientRect().width;e+i<n/2?(this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_LEFT,i+"px",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):r-e+i<n/2?(this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_RIGHT,i+"px",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):(this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(d.strings.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",t))}},v.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var e=t?"right":"left";this.adapter.removeThumbStyleProperty(e,c.Thumb.END),this.isRange&&this.adapter.removeThumbStyleProperty(e,c.Thumb.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},v.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var e=p?h.getCorrectPropertyName(window,"transition"):"transition",i="none 0s ease 0s";this.adapter.setThumbStyleProperty(e,i,c.Thumb.END),this.isRange&&this.adapter.setThumbStyleProperty(e,i,c.Thumb.START),this.adapter.setTrackActiveStyleProperty(e,i),requestAnimationFrame(function(){t.adapter.removeThumbStyleProperty(e,c.Thumb.END),t.adapter.removeTrackActiveStyleProperty(e),t.isRange&&t.adapter.removeThumbStyleProperty(e,c.Thumb.START)})}},v.prototype.updateOverlappingThumbsUI=function(t,e,i){var n=!1;if(this.adapter.isRTL())n=t-this.startThumbKnobWidth/2<=e+this.endThumbKnobWidth/2;else{var r=t+this.startThumbKnobWidth/2;n=e-this.endThumbKnobWidth/2<=r}n?(this.adapter.addThumbClass(d.cssClasses.THUMB_TOP,i||c.Thumb.END),this.adapter.removeThumbClass(d.cssClasses.THUMB_TOP,i===c.Thumb.START?c.Thumb.END:c.Thumb.START)):(this.adapter.removeThumbClass(d.cssClasses.THUMB_TOP,c.Thumb.START),this.adapter.removeThumbClass(d.cssClasses.THUMB_TOP,c.Thumb.END))},v.prototype.convertAttributeValueToNumber=function(t,e){if(null===t)throw new Error("MDCSliderFoundation: `"+e+"` must be non-null.");var i=Number(t);if(isNaN(i))throw new Error("MDCSliderFoundation: `"+e+"` value is `"+t+"`, but must be a number.");return i},v.prototype.validateProperties=function(t){var e=t.min,i=t.max,n=t.value,r=t.valueStart,a=t.step,s=t.minRange;if(i<=e)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+e+", max: "+i+"]");if(a<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+a);if(this.isRange){if(n<e||i<n||r<e||i<r)throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: "+r+", end value: "+n+", min: "+e+", max: "+i+"]");if(n<r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+r+", end value: "+n+"]");if(s<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. Current min range: "+s);if(n-r<s)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+s+". Current values: [start value: "+r+", end value: "+n+"]");var o=(r-e)/a,u=(n-e)/a;if(!Number.isInteger(parseFloat(o.toFixed(6)))||!Number.isInteger(parseFloat(u.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the step value ("+a+"). Current values: [start value: "+r+", end value: "+n+", min: "+e+"]")}else{if(n<e||i<n)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current values: [value: "+n+", min: "+e+", max: "+i+"]");if(u=(n-e)/a,!Number.isInteger(parseFloat(u.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value ("+a+"). Current value: "+n)}},v.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),v.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(c.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(c.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(c.Thumb.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(c.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(c.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(c.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(c.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(c.Thumb.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(c.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(c.Thumb.END,"blur",this.inputEndBlurListener)},v.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),v.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(c.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(c.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(c.Thumb.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(c.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(c.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(c.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(c.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(c.Thumb.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(c.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(c.Thumb.END,"blur",this.inputEndBlurListener)},v.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},v.SUPPORTS_POINTER_EVENTS=p&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),v);function v(t){var e=u.call(this,a(a({},v.defaultAdapter),t))||this;return e.initialStylesRemoved=!1,e.isDisabled=!1,e.isDiscrete=!1,e.step=d.numbers.STEP_SIZE,e.minRange=d.numbers.MIN_RANGE,e.hasTickMarks=!1,e.isRange=!1,e.thumb=null,e.downEventClientX=null,e.startThumbKnobWidth=0,e.endThumbKnobWidth=0,e.animFrame=new s.AnimationFrame,e}function f(t){var e=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(t));if(!e)return 0;var i=e[1]||"",n=e[2]||0;return Math.max(0,("0"===i?0:i.length)-Number(n))}e.MDCSliderFoundation=m},17:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrame=void 0;var n=(r.prototype.request=function(e,i){var n=this;this.cancel(e);var t=requestAnimationFrame(function(t){n.rafIDs.delete(e),i(t)});this.rafIDs.set(e,t)},r.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},r.prototype.cancelAll=function(){var i=this;this.rafIDs.forEach(function(t,e){i.cancel(e)})},r.prototype.getQueue=function(){var i=[];return this.rafIDs.forEach(function(t,e){i.push(e)}),i},r);function r(){this.rafIDs=new Map}e.AnimationFrame=n},2:function(t,e,i){"use strict";function n(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var i=t;i;){if(n(i,e))return i;i=i.parentElement}return null},e.matches=n,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);var n=i.scrollWidth;return document.documentElement.removeChild(i),n}},229:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(i(230),e),r(i(231),e),r(i(62),e),r(i(116),e),r(i(63),e)},230:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},231:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSlider=void 0;var a,s=i(1),d=i(5),l=i(2),h=i(6),c=i(4),p=i(62),o=i(116),m=i(63),v=(a=s.MDCComponent,r(f,a),f.attachTo=function(t,e){return void 0===e&&(e={}),new f(t,void 0,e)},f.prototype.getDefaultFoundation=function(){var n=this,t={hasClass:function(t){return n.root.classList.contains(t)},addClass:function(t){n.root.classList.add(t)},removeClass:function(t){n.root.classList.remove(t)},addThumbClass:function(t,e){n.getThumbEl(e).classList.add(t)},removeThumbClass:function(t,e){n.getThumbEl(e).classList.remove(t)},getAttribute:function(t){return n.root.getAttribute(t)},getInputValue:function(t){return n.getInput(t).value},setInputValue:function(t,e){n.getInput(e).value=t},getInputAttribute:function(t,e){return n.getInput(e).getAttribute(t)},setInputAttribute:function(t,e,i){n.getInput(i).setAttribute(t,e)},removeInputAttribute:function(t,e){n.getInput(e).removeAttribute(t)},focusInput:function(t){n.getInput(t).focus()},isInputFocused:function(t){return n.getInput(t)===document.activeElement},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(t){return n.getThumbEl(t).querySelector("."+p.cssClasses.THUMB_KNOB).getBoundingClientRect().width},getThumbBoundingClientRect:function(t){return n.getThumbEl(t).getBoundingClientRect()},getBoundingClientRect:function(){return n.root.getBoundingClientRect()},getValueIndicatorContainerWidth:function(t){return n.getThumbEl(t).querySelector("."+p.cssClasses.VALUE_INDICATOR_CONTAINER).getBoundingClientRect().width},isRTL:function(){return"rtl"===getComputedStyle(n.root).direction},setThumbStyleProperty:function(t,e,i){n.getThumbEl(i).style.setProperty(t,e)},removeThumbStyleProperty:function(t,e){n.getThumbEl(e).style.removeProperty(t)},setTrackActiveStyleProperty:function(t,e){n.trackActive.style.setProperty(t,e)},removeTrackActiveStyleProperty:function(t){n.trackActive.style.removeProperty(t)},setValueIndicatorText:function(t,e){n.getThumbEl(e).querySelector("."+p.cssClasses.VALUE_INDICATOR_TEXT).textContent=String(t)},getValueToAriaValueTextFn:function(){return n.valueToAriaValueTextFn},updateTickMarks:function(t){var e=n.root.querySelector("."+p.cssClasses.TICK_MARKS_CONTAINER);if(e||((e=document.createElement("div")).classList.add(p.cssClasses.TICK_MARKS_CONTAINER),n.root.querySelector("."+p.cssClasses.TRACK).appendChild(e)),t.length!==e.children.length){for(;e.firstChild;)e.removeChild(e.firstChild);n.addTickMarks(e,t)}else n.updateTickMarks(e,t)},setPointerCapture:function(t){n.root.setPointerCapture(t)},emitChangeEvent:function(t,e){n.emit(p.events.CHANGE,{value:t,thumb:e})},emitInputEvent:function(t,e){n.emit(p.events.INPUT,{value:t,thumb:e})},emitDragStartEvent:function(t,e){n.getRipple(e).activate()},emitDragEndEvent:function(t,e){n.getRipple(e).deactivate()},registerEventHandler:function(t,e){n.listen(t,e)},deregisterEventHandler:function(t,e){n.unlisten(t,e)},registerThumbEventHandler:function(t,e,i){n.getThumbEl(t).addEventListener(e,i)},deregisterThumbEventHandler:function(t,e,i){n.getThumbEl(t).removeEventListener(e,i)},registerInputEventHandler:function(t,e,i){n.getInput(t).addEventListener(e,i)},deregisterInputEventHandler:function(t,e,i){n.getInput(t).removeEventListener(e,i)},registerBodyEventHandler:function(t,e){document.body.addEventListener(t,e)},deregisterBodyEventHandler:function(t,e){document.body.removeEventListener(t,e)},registerWindowEventHandler:function(t,e){window.addEventListener(t,e)},deregisterWindowEventHandler:function(t,e){window.removeEventListener(t,e)}};return new o.MDCSliderFoundation(t)},f.prototype.initialize=function(t){var e=(void 0===t?{}:t).skipInitialUIUpdate;this.inputs=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.INPUT)),this.thumbs=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.THUMB)),this.trackActive=this.root.querySelector("."+p.cssClasses.TRACK_ACTIVE),this.ripples=this.createRipples(),e&&(this.skipInitialUIUpdate=!0)},f.prototype.initialSyncWithDOM=function(){this.foundation.layout({skipUpdateUI:this.skipInitialUIUpdate})},f.prototype.layout=function(){this.foundation.layout()},f.prototype.getValueStart=function(){return this.foundation.getValueStart()},f.prototype.setValueStart=function(t){this.foundation.setValueStart(t)},f.prototype.getValue=function(){return this.foundation.getValue()},f.prototype.setValue=function(t){this.foundation.setValue(t)},f.prototype.getDisabled=function(){return this.foundation.getDisabled()},f.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},f.prototype.setValueToAriaValueTextFn=function(t){this.valueToAriaValueTextFn=t},f.prototype.getThumbEl=function(t){return t===m.Thumb.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},f.prototype.getInput=function(t){return t===m.Thumb.END?this.inputs[this.inputs.length-1]:this.inputs[0]},f.prototype.getRipple=function(t){return t===m.Thumb.END?this.ripples[this.ripples.length-1]:this.ripples[0]},f.prototype.addTickMarks=function(t,e){for(var i=document.createDocumentFragment(),n=0;n<e.length;n++){var r=document.createElement("div"),a=e[n]===m.TickMark.ACTIVE?p.cssClasses.TICK_MARK_ACTIVE:p.cssClasses.TICK_MARK_INACTIVE;r.classList.add(a),i.appendChild(r)}t.appendChild(i)},f.prototype.updateTickMarks=function(t,e){for(var i=Array.from(t.children),n=0;n<i.length;n++)e[n]===m.TickMark.ACTIVE?(i[n].classList.add(p.cssClasses.TICK_MARK_ACTIVE),i[n].classList.remove(p.cssClasses.TICK_MARK_INACTIVE)):(i[n].classList.add(p.cssClasses.TICK_MARK_INACTIVE),i[n].classList.remove(p.cssClasses.TICK_MARK_ACTIVE))},f.prototype.createRipples=function(){for(var a=[],s=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.THUMB)),t=function(t){var i=s[t],n=o.inputs[t],e=u(u({},h.MDCRipple.createAdapter(o)),{addClass:function(t){i.classList.add(t)},computeBoundingRect:function(){return i.getBoundingClientRect()},deregisterInteractionHandler:function(t,e){n.removeEventListener(t,e)},isSurfaceActive:function(){return l.matches(n,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,e){n.addEventListener(t,e,d.applyPassive())},removeClass:function(t){i.classList.remove(t)},updateCssVariable:function(t,e){i.style.setProperty(t,e)}}),r=new h.MDCRipple(i,new c.MDCRippleFoundation(e));r.unbounded=!0,a.push(r)},o=this,e=0;e<s.length;e++)t(e);return a},f);function f(){var t=null!==a&&a.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}e.MDCSlider=v},3:function(t,e,i){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var i,n=t.CSS;if("boolean"==typeof s&&!e)return s;if(!(n&&"function"==typeof n.supports))return!1;var r=n.supports("--css-vars","yes"),a=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=r||a,e||(s=i),i},e.getNormalizedEventCoords=function(t,e,i){if(!t)return{x:0,y:0};var n,r,a=e.x,s=e.y,o=a+i.left,u=s+i.top;if("touchstart"===t.type){var d=t;n=d.changedTouches[0].pageX-o,r=d.changedTouches[0].pageY-u}else{var l=t;n=l.pageX-o,r=l.pageY-u}return{x:n,y:r}}},4:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var o,u=i(0),d=i(7),l=i(3),h=["touchstart","pointerdown","mousedown","keydown"],c=["touchend","pointerup","mouseup","contextmenu"],p=[],m=(o=u.MDCFoundation,r(v,o),Object.defineProperty(v,"cssClasses",{get:function(){return d.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return d.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return d.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var i=v.cssClasses,n=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(n),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasses.FG_DEACTIVATION));var e=v.cssClasses,i=e.ROOT,n=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(i),t.adapter.removeClass(n),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasses.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var n=s(h),r=n.next();!r.done;r=n.next()){var a=r.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var n=s(c),r=n.next();!r.done;r=n.next()){var a=r.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var i=s(h),n=i.next();!n.done;n=i.next()){var r=n.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=s(c),n=i.next();!n.done;n=i.next()){var r=n.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,i=v.strings;Object.keys(i).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(i[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var n=this.previousActivationEvent;n&&void 0!==t&&n.type!==t.type||(i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<p.length&&p.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(p.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){p=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,i=e.VAR_FG_TRANSLATE_START,n=e.VAR_FG_TRANSLATE_END,r=v.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,o=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",d="";if(!this.adapter.isUnbounded()){var l=this.getFgTranslationCoordinates(),h=l.startPoint,c=l.endPoint;u=h.x+"px, "+h.y+"px",d=c.x+"px, "+c.y+"px"}this.adapter.updateCssVariable(i,u),this.adapter.updateCssVariable(n,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},o)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?l.getNormalizedEventCoords(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,i=this.activationState,n=i.hasDeactivationUXRun,r=i.isActivated;!n&&r||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},d.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=a({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(i)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var i=Math.floor(e*v.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,i=t.VAR_LEFT,n=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,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(n,this.unboundedCoords.top+"px"))},v);function v(t){var e=o.call(this,a(a({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=m,e.default=m},5:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var i={get passive(){return!(e=!0)}},n=function(){};t.document.addEventListener("test",n,i),t.document.removeEventListener("test",n,i)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&a(e,t,i);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,d=i(1),l=i(5),h=i(2),c=i(4),p=o(i(3)),m=(u=d.MDCComponent,r(v,u),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var i=new v(t);return void 0!==e.isUnbounded&&(i.unbounded=e.isUnbounded),i},v.createAdapter=function(i){return{addClass:function(t){return i.root.classList.add(t)},browserSupportsCssVars:function(){return p.supportsCssVariables(window)},computeBoundingRect:function(){return i.root.getBoundingClientRect()},containsEventTarget:function(t){return i.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,l.applyPassive())},deregisterInteractionHandler:function(t,e){return i.root.removeEventListener(t,e,l.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return h.matches(i.root,":active")},isSurfaceDisabled:function(){return Boolean(i.disabled)},isUnbounded:function(){return Boolean(i.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,l.applyPassive())},registerInteractionHandler:function(t,e){return i.root.addEventListener(t,e,l.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return i.root.classList.remove(t)},updateCssVariable:function(t,e){return i.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new c.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=m},62:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.events=e.attributes=e.numbers=e.cssClasses=void 0,e.cssClasses={DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",INPUT:"mdc-slider__input",RANGE:"mdc-slider--range",THUMB:"mdc-slider__thumb",THUMB_FOCUSED:"mdc-slider__thumb--focused",THUMB_KNOB:"mdc-slider__thumb-knob",THUMB_TOP:"mdc-slider__thumb--top",THUMB_WITH_INDICATOR:"mdc-slider__thumb--with-indicator",TICK_MARKS:"mdc-slider--tick-marks",TICK_MARKS_CONTAINER:"mdc-slider__tick-marks",TICK_MARK_ACTIVE:"mdc-slider__tick-mark--active",TICK_MARK_INACTIVE:"mdc-slider__tick-mark--inactive",TRACK:"mdc-slider__track",TRACK_ACTIVE:"mdc-slider__track--active_fill",VALUE_INDICATOR_CONTAINER:"mdc-slider__value-indicator-container",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},e.numbers={STEP_SIZE:1,MIN_RANGE:0,THUMB_UPDATE_MIN_PX:5},e.attributes={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step",DATA_MIN_RANGE:"data-min-range"},e.events={CHANGE:"MDCSlider:change",INPUT:"MDCSlider:input"},e.strings={VAR_VALUE_INDICATOR_CARET_LEFT:"--slider-value-indicator-caret-left",VAR_VALUE_INDICATOR_CARET_RIGHT:"--slider-value-indicator-caret-right",VAR_VALUE_INDICATOR_CARET_TRANSFORM:"--slider-value-indicator-caret-transform",VAR_VALUE_INDICATOR_CONTAINER_LEFT:"--slider-value-indicator-container-left",VAR_VALUE_INDICATOR_CONTAINER_RIGHT:"--slider-value-indicator-container-right",VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM:"--slider-value-indicator-container-transform"}},63:function(t,e,i){"use strict";var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.Thumb=e.TickMark=void 0,(n=e.TickMark||(e.TickMark={}))[n.ACTIVE=0]="ACTIVE",n[n.INACTIVE=1]="INACTIVE",(r=e.Thumb||(e.Thumb={}))[r.START=1]="START",r[r.END=2]="END"},7:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},r.c=n,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=229);function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var i,n});
vendor: 2,523 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/snackbar",[],e):"object"==typeof exports?exports.snackbar=e():(t.mdc=t.mdc||{},t.mdc.snackbar=e())}(this,function(){return o={},i.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(i,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),i.prototype.init=function(){},i.prototype.destroy=function(){},i);function i(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,n){"use strict";var i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=r.next()).done;)s.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},r=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,i=t.length;n<o;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=n(0),s=(a.attachTo=function(t){return new a(t,new o.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},a.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},a.prototype.emit=function(t,e,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:n,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(o)},a);function a(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=t,this.initialize.apply(this,r([],i(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},117:function(t,e,n){"use strict";
vendor: 12,740 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.announce=void 0;var o=n(48),r=o.numbers.ARIA_LIVE_DELAY_MS,s=o.strings.ARIA_LIVE_LABEL_TEXT_ATTR;e.announce=function(t,e){void 0===e&&(e=t);var n=t.getAttribute("aria-live"),o=e.textContent.trim();if(o&&n){t.setAttribute("aria-live","off"),e.textContent="";var i=document.createElement("span");i.setAttribute("style","display: inline-block; width: 0; height: 1px;"),i.textContent="Â ",e.appendChild(i),e.setAttribute(s,o),setTimeout(function(){t.setAttribute("aria-live",n),e.removeAttribute(s),e.textContent=o},r)}}},118:function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSnackbarFoundation=void 0;var s,a=n(0),u=n(48),c=u.cssClasses.OPENING,l=u.cssClasses.OPEN,f=u.cssClasses.CLOSING,d=u.strings.REASON_ACTION,p=u.strings.REASON_DISMISS,m=(s=a.MDCFoundation,i(h,s),Object.defineProperty(h,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{addClass:function(){},announce:function(){},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},removeClass:function(){}}},enumerable:!1,configurable:!0}),h.prototype.destroy=function(){this.clearAutoDismissTimer(),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0,this.adapter.removeClass(c),this.adapter.removeClass(l),this.adapter.removeClass(f)},h.prototype.open=function(){var e=this;this.clearAutoDismissTimer(),this.opened=!0,this.adapter.notifyOpening(),this.adapter.removeClass(f),this.adapter.addClass(c),this.adapter.announce(),this.runNextAnimationFrame(function(){e.adapter.addClass(l),e.animationTimer=setTimeout(function(){var t=e.getTimeoutMs();e.handleAnimationTimerEnd(),e.adapter.notifyOpened(),t!==u.numbers.INDETERMINATE&&(e.autoDismissTimer=setTimeout(function(){e.close(p)},t))},u.numbers.SNACKBAR_ANIMATION_OPEN_TIME_MS)})},h.prototype.close=function(t){var e=this;void 0===t&&(t=""),this.opened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.clearAutoDismissTimer(),this.opened=!1,this.adapter.notifyClosing(t),this.adapter.addClass(u.cssClasses.CLOSING),this.adapter.removeClass(u.cssClasses.OPEN),this.adapter.removeClass(u.cssClasses.OPENING),clearTimeout(this.animationTimer),this.animationTimer=setTimeout(function(){e.handleAnimationTimerEnd(),e.adapter.notifyClosed(t)},u.numbers.SNACKBAR_ANIMATION_CLOSE_TIME_MS))},h.prototype.isOpen=function(){return this.opened},h.prototype.getTimeoutMs=function(){return this.autoDismissTimeoutMs},h.prototype.setTimeoutMs=function(t){var e=u.numbers.MIN_AUTO_DISMISS_TIMEOUT_MS,n=u.numbers.MAX_AUTO_DISMISS_TIMEOUT_MS,o=u.numbers.INDETERMINATE;if(!(t===u.numbers.INDETERMINATE||t<=n&&e<=t))throw new Error("\n timeoutMs must be an integer in the range "+e+"â"+n+"\n (or "+o+" to disable), but got '"+t+"'");this.autoDismissTimeoutMs=t},h.prototype.getCloseOnEscape=function(){return this.closeOnEscape},h.prototype.setCloseOnEscape=function(t){this.closeOnEscape=t},h.prototype.handleKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||!this.getCloseOnEscape()||this.close(p)},h.prototype.handleActionButtonClick=function(t){this.close(d)},h.prototype.handleActionIconClick=function(t){this.close(p)},h.prototype.clearAutoDismissTimer=function(){clearTimeout(this.autoDismissTimer),this.autoDismissTimer=0},h.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(u.cssClasses.OPENING),this.adapter.removeClass(u.cssClasses.CLOSING)},h.prototype.runNextAnimationFrame=function(t){var e=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(function(){e.animationFrame=0,clearTimeout(e.animationTimer),e.animationTimer=setTimeout(t,0)})},h);function h(t){var e=s.call(this,r(r({},h.defaultAdapter),t))||this;return e.opened=!1,e.animationFrame=0,e.animationTimer=0,e.autoDismissTimer=0,e.autoDismissTimeoutMs=u.numbers.DEFAULT_AUTO_DISMISS_TIMEOUT_MS,e.closeOnEscape=!0,e}e.MDCSnackbarFoundation=m,e.default=m},2:function(t,e,n){"use strict";function o(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(o(n,e))return n;n=n.parentElement}return null},e.matches=o,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var o=n.scrollWidth;return document.documentElement.removeChild(n),o}},232:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return i(e,t),e},s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.util=void 0;var a=r(n(117));e.util=a,s(n(233),e),s(n(234),e),s(n(48),e),s(n(118),e),s(n(235),e)},233:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},234:function(t,e,n){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSnackbar=void 0;var u,c=n(1),l=n(2),f=n(48),d=n(118),p=a(n(117)),m=f.strings.SURFACE_SELECTOR,h=f.strings.LABEL_SELECTOR,y=f.strings.ACTION_SELECTOR,_=f.strings.DISMISS_SELECTOR,b=f.strings.OPENING_EVENT,E=f.strings.OPENED_EVENT,O=f.strings.CLOSING_EVENT,C=f.strings.CLOSED_EVENT,v=(u=c.MDCComponent,i(S,u),S.attachTo=function(t){return new S(t)},S.prototype.initialize=function(t){void 0===t&&(t=function(){return p.announce}),this.announce=t()},S.prototype.initialSyncWithDOM=function(){var n=this;this.surfaceEl=this.root.querySelector(m),this.labelEl=this.root.querySelector(h),this.actionEl=this.root.querySelector(y),this.handleKeyDown=function(t){n.foundation.handleKeyDown(t)},this.handleSurfaceClick=function(t){var e=t.target;n.isActionButton(e)?n.foundation.handleActionButtonClick(t):n.isActionIcon(e)&&n.foundation.handleActionIconClick(t)},this.registerKeyDownHandler(this.handleKeyDown),this.registerSurfaceClickHandler(this.handleSurfaceClick)},S.prototype.destroy=function(){u.prototype.destroy.call(this),this.deregisterKeyDownHandler(this.handleKeyDown),this.deregisterSurfaceClickHandler(this.handleSurfaceClick)},S.prototype.open=function(){this.foundation.open()},S.prototype.close=function(t){void 0===t&&(t=""),this.foundation.close(t)},S.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){e.root.classList.add(t)},announce:function(){e.announce(e.labelEl)},notifyClosed:function(t){return e.emit(C,t?{reason:t}:{})},notifyClosing:function(t){return e.emit(O,t?{reason:t}:{})},notifyOpened:function(){return e.emit(E,{})},notifyOpening:function(){return e.emit(b,{})},removeClass:function(t){return e.root.classList.remove(t)}};return new d.MDCSnackbarFoundation(t)},Object.defineProperty(S.prototype,"timeoutMs",{get:function(){return this.foundation.getTimeoutMs()},set:function(t){this.foundation.setTimeoutMs(t)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"closeOnEscape",{get:function(){return this.foundation.getCloseOnEscape()},set:function(t){this.foundation.setCloseOnEscape(t)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"labelText",{get:function(){return this.labelEl.textContent},set:function(t){this.labelEl.textContent=t},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"actionButtonText",{get:function(){return this.actionEl.textContent},set:function(t){this.actionEl.textContent=t},enumerable:!1,configurable:!0}),S.prototype.registerKeyDownHandler=function(t){this.listen("keydown",t)},S.prototype.deregisterKeyDownHandler=function(t){this.unlisten("keydown",t)},S.prototype.registerSurfaceClickHandler=function(t){this.surfaceEl.addEventListener("click",t)},S.prototype.deregisterSurfaceClickHandler=function(t){this.surfaceEl.removeEventListener("click",t)},S.prototype.isActionButton=function(t){return Boolean(l.closest(t,y))},S.prototype.isActionIcon=function(t){return Boolean(l.closest(t,_))},S);function S(){return null!==u&&u.apply(this,arguments)||this}e.MDCSnackbar=v},235:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},48:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0;e.cssClasses={CLOSING:"mdc-snackbar--closing",OPEN:"mdc-snackbar--open",OPENING:"mdc-snackbar--opening"};e.strings={ACTION_SELECTOR:".mdc-snackbar__action",ARIA_LIVE_LABEL_TEXT_ATTR:"data-mdc-snackbar-label-text",CLOSED_EVENT:"MDCSnackbar:closed",CLOSING_EVENT:"MDCSnackbar:closing",DISMISS_SELECTOR:".mdc-snackbar__dismiss",LABEL_SELECTOR:".mdc-snackbar__label",OPENED_EVENT:"MDCSnackbar:opened",OPENING_EVENT:"MDCSnackbar:opening",REASON_ACTION:"action",REASON_DISMISS:"dismiss",SURFACE_SELECTOR:".mdc-snackbar__surface"};e.numbers={DEFAULT_AUTO_DISMISS_TIMEOUT_MS:5e3,INDETERMINATE:-1,MAX_AUTO_DISMISS_TIMEOUT_MS:1e4,MIN_AUTO_DISMISS_TIMEOUT_MS:4e3,SNACKBAR_ANIMATION_CLOSE_TIME_MS:75,SNACKBAR_ANIMATION_OPEN_TIME_MS:150,ARIA_LIVE_DELAY_MS:1e3}}},i.c=o,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=232);function i(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,o});
vendor: 39,621 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/switch",[],e):"object"==typeof exports?exports.switch=e():(t.mdc=t.mdc||{},t.mdc.switch=e())}(this,function(){return r={},i.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var r=(Object.defineProperty(i,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),i.prototype.init=function(){},i.prototype.destroy=function(){},i);function i(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=r,e.default=r},1:function(t,e,n){"use strict";var i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var r=n(0),a=(s.attachTo=function(t){return new s(t,new r.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:n,detail:e}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(r)},s);function s(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=t,this.initialize.apply(this,o([],i(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},119:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSwitchFoundation=void 0;var a,s=n(0),c=n(120),u=(a=s.MDCFoundation,i(l,a),Object.defineProperty(l,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!1,configurable:!0}),l.prototype.setChecked=function(t){this.adapter.setNativeControlChecked(t),this.updateAriaChecked(t),this.updateCheckedStyling(t)},l.prototype.setDisabled=function(t){this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(c.cssClasses.DISABLED):this.adapter.removeClass(c.cssClasses.DISABLED)},l.prototype.handleChange=function(t){var e=t.target;this.updateAriaChecked(e.checked),this.updateCheckedStyling(e.checked)},l.prototype.updateCheckedStyling=function(t){t?this.adapter.addClass(c.cssClasses.CHECKED):this.adapter.removeClass(c.cssClasses.CHECKED)},l.prototype.updateAriaChecked=function(t){this.adapter.setNativeControlAttr(c.strings.ARIA_CHECKED_ATTR,""+!!t)},l);function l(t){return a.call(this,o(o({},l.defaultAdapter),t))||this}e.MDCSwitchFoundation=u,e.default=u},120:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0;e.cssClasses={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"};e.strings={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"}},121:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSwitchRenderFoundation=e.MDCSwitchFoundation=void 0;var o,a=n(242),s=n(64),c=(o=a.MDCObserverFoundation,i(u,o),u.prototype.init=function(){this.observe(this.adapter.state,{disabled:this.stopProcessingIfDisabled,processing:this.stopProcessingIfDisabled})},u.prototype.handleClick=function(){this.adapter.state.disabled||(this.adapter.state.selected=!this.adapter.state.selected)},u.prototype.stopProcessingIfDisabled=function(){this.adapter.state.disabled&&(this.adapter.state.processing=!1)},u);function u(t){var e=o.call(this,t)||this;return e.handleClick=e.handleClick.bind(e),e}e.MDCSwitchFoundation=c;var l,d=(i(p,l=c),p.prototype.init=function(){l.prototype.init.call(this),this.observe(this.adapter.state,{disabled:this.onDisabledChange,processing:this.onProcessingChange,selected:this.onSelectedChange})},p.prototype.initFromDOM=function(){this.setObserversEnabled(this.adapter.state,!1),this.adapter.state.selected=this.adapter.hasClass(s.CssClasses.SELECTED),this.onSelectedChange(),this.adapter.state.disabled=this.adapter.isDisabled(),this.adapter.state.processing=this.adapter.hasClass(s.CssClasses.PROCESSING),this.setObserversEnabled(this.adapter.state,!0),this.stopProcessingIfDisabled()},p.prototype.onDisabledChange=function(){this.adapter.setDisabled(this.adapter.state.disabled)},p.prototype.onProcessingChange=function(){this.toggleClass(this.adapter.state.processing,s.CssClasses.PROCESSING)},p.prototype.onSelectedChange=function(){this.adapter.setAriaChecked(String(this.adapter.state.selected)),this.toggleClass(this.adapter.state.selected,s.CssClasses.SELECTED),this.toggleClass(!this.adapter.state.selected,s.CssClasses.UNSELECTED)},p.prototype.toggleClass=function(t,e){t?this.adapter.addClass(e):this.adapter.removeClass(e)},p);function p(){return null!==l&&l.apply(this,arguments)||this}e.MDCSwitchRenderFoundation=d},2:function(t,e,n){"use strict";function r(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(r(n,e))return n;n=n.parentElement}return null},e.matches=r,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}},236:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.deprecated=void 0;var s=o(n(237));e.deprecated=s,a(n(240),e),a(n(241),e),a(n(64),e),a(n(121),e)},237:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(238),e),i(n(239),e),i(n(120),e),i(n(119),e)},238:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},239:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSwitch=void 0;var c,u=n(1),l=n(5),d=n(2),p=n(6),f=n(4),h=n(119),v=(c=u.MDCComponent,i(y,c),y.attachTo=function(t){return new y(t)},y.prototype.destroy=function(){c.prototype.destroy.call(this),this.rippleSurface.destroy(),this.nativeControl.removeEventListener("change",this.changeHandler)},y.prototype.initialSyncWithDOM=function(){var r=this;this.changeHandler=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=r.foundation).handleChange.apply(t,s([],a(e)))},this.nativeControl.addEventListener("change",this.changeHandler),this.checked=this.checked},y.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},setNativeControlChecked:function(t){return n.nativeControl.checked=t},setNativeControlDisabled:function(t){return n.nativeControl.disabled=t},setNativeControlAttr:function(t,e){n.nativeControl.setAttribute(t,e)}};return new h.MDCSwitchFoundation(t)},Object.defineProperty(y.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"checked",{get:function(){return this.nativeControl.checked},set:function(t){this.foundation.setChecked(t)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"disabled",{get:function(){return this.nativeControl.disabled},set:function(t){this.foundation.setDisabled(t)},enumerable:!1,configurable:!0}),y.prototype.createRipple=function(){var n=this,t=h.MDCSwitchFoundation.strings.RIPPLE_SURFACE_SELECTOR,r=this.root.querySelector(t),e=o(o({},p.MDCRipple.createAdapter(this)),{addClass:function(t){return r.classList.add(t)},computeBoundingRect:function(){return r.getBoundingClientRect()},deregisterInteractionHandler:function(t,e){n.nativeControl.removeEventListener(t,e,l.applyPassive())},isSurfaceActive:function(){return d.matches(n.nativeControl,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,e){n.nativeControl.addEventListener(t,e,l.applyPassive())},removeClass:function(t){r.classList.remove(t)},updateCssVariable:function(t,e){r.style.setProperty(t,e)}});return new p.MDCRipple(this.root,new f.MDCRippleFoundation(e))},Object.defineProperty(y.prototype,"nativeControl",{get:function(){var t=h.MDCSwitchFoundation.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(t)},enumerable:!1,configurable:!0}),y);function y(){var t=null!==c&&c.apply(this,arguments)||this;return t.rippleSurface=t.createRipple(),t}e.MDCSwitch=v},240:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},241:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSwitch=void 0;var a,s=n(1),c=n(6),u=n(4),l=n(64),d=n(121),p=(a=s.MDCComponent,i(f,a),f.attachTo=function(t){return new f(t)},f.prototype.initialize=function(){this.ripple=new c.MDCRipple(this.root,this.createRippleFoundation())},f.prototype.initialSyncWithDOM=function(){var t=this.root.querySelector(l.Selectors.RIPPLE);if(!t)throw new Error("Switch "+l.Selectors.RIPPLE+" element is required.");this.rippleElement=t,this.root.addEventListener("click",this.foundation.handleClick),this.foundation.initFromDOM()},f.prototype.destroy=function(){a.prototype.destroy.call(this),this.ripple.destroy(),this.root.removeEventListener("click",this.foundation.handleClick)},f.prototype.getDefaultFoundation=function(){return new d.MDCSwitchRenderFoundation(this.createAdapter())},f.prototype.createAdapter=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},isDisabled:function(){return e.root.disabled},removeClass:function(t){e.root.classList.remove(t)},setAriaChecked:function(t){return e.root.setAttribute("aria-checked",t)},setDisabled:function(t){e.root.disabled=t},state:this}},f.prototype.createRippleFoundation=function(){return new u.MDCRippleFoundation(this.createRippleAdapter())},f.prototype.createRippleAdapter=function(){var t=this;return o(o({},c.MDCRipple.createAdapter(this)),{computeBoundingRect:function(){return t.rippleElement.getBoundingClientRect()},isUnbounded:function(){return!0}})},f);function f(t,e){var n=a.call(this,t,e)||this;return n.root=t,n}e.MDCSwitch=p},242:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCObserverFoundation=void 0;var s,c=n(0),u=n(243),l=(s=c.MDCFoundation,i(p,s),p.prototype.destroy=function(){s.prototype.destroy.call(this),this.unobserve()},p.prototype.observe=function(t,e){var n,r,i=this,o=[];try{for(var a=d(Object.keys(e)),s=a.next();!s.done;s=a.next()){var c=s.value,u=e[c].bind(this);o.push(this.observeProperty(t,c,u))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}function l(){var e,t;try{for(var n=d(o),r=n.next();!r.done;r=n.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}i.unobserves.delete(l)}return this.unobserves.add(l),l},p.prototype.observeProperty=function(t,e,n){return u.observeProperty(t,e,n)},p.prototype.setObserversEnabled=function(t,e){u.setObserversEnabled(t,e)},p.prototype.unobserve=function(){var e,t;try{for(var n=d(a([],o(this.unobserves))),r=n.next();!r.done;r=n.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},p);function p(t){var e=s.call(this,t)||this;return e.unobserves=new Set,e}e.MDCObserverFoundation=l},243:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},f=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};function h(t,e,n){var r=function(t,a){var n=new Map;l.has(t)||l.set(t,{isEnabled:!0,getObservers:function(t){var e=n.get(t)||[];return n.has(t)||n.set(t,e),e},installedProperties:new Set});var s=l.get(t);if(s.installedProperties.has(a))return s;var e=d(t,a)||{configurable:!0,enumerable:!0,value:t[a],writable:!0},r=o({},e),c=e.get,u=e.set;if("value"in e){delete r.value,delete r.writable;var i=e.value;c=function(){return i},e.writable&&(u=function(t){i=t})}c&&(r.get=function(){return c.call(this)});u&&(r.set=function(t){var e,n,r=c?c.call(this):t;if(u.call(this,t),s.isEnabled&&(!c||t!==r))try{for(var i=f(s.getObservers(a)),o=i.next();!o.done;o=i.next()){(0,o.value)(t,r)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}});return s.installedProperties.add(a),Object.defineProperty(t,a,r),s}(t,e).getObservers(e);return r.push(n),function(){r.splice(r.indexOf(n),1)}}Object.defineProperty(e,"__esModule",{value:!0}),e.setObserversEnabled=e.getDescriptor=e.observeProperty=e.mdcObserver=void 0,e.mdcObserver=function(t){void 0===t&&(t=function(){});var e,p=new WeakMap;return i(n,e=t),n.prototype.observe=function(t,e){var n,r,a=this,s=[];try{for(var i=f(Object.keys(e)),o=i.next();!o.done;o=i.next()){var c=o.value,u=e[c].bind(this);s.push(h(t,c,u))}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}function l(){var e,t;try{for(var n=f(s),r=n.next();!r.done;r=n.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}var i=p.get(a)||[],o=i.indexOf(l);-1<o&&i.splice(o,1)}var d=p.get(this);return d||(d=[],p.set(this,d)),d.push(l),l},n.prototype.setObserversEnabled=function(t,e){c(t,e)},n.prototype.unobserve=function(){var e,t,n=p.get(this)||[];try{for(var r=f(s([],a(n))),i=r.next();!i.done;i=r.next())(0,i.value)()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},n;function n(){return null!==e&&e.apply(this,arguments)||this}},e.observeProperty=h;var l=new WeakMap;function d(t,e){for(var n,r=t;r&&!(n=Object.getOwnPropertyDescriptor(r,e));)r=Object.getPrototypeOf(r);return n}function c(t,e){var n=l.get(t);n&&(n.isEnabled=e)}e.getDescriptor=d,e.setObserversEnabled=c},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,r=t.CSS;if("boolean"==typeof a&&!e)return a;if(!(r&&"function"==typeof r.supports))return!1;var i=r.supports("--css-vars","yes"),o=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=i||o,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var r,i,o=e.x,a=e.y,s=o+n.left,c=a+n.top;if("touchstart"===t.type){var u=t;r=u.changedTouches[0].pageX-s,i=u.changedTouches[0].pageY-c}else{var l=t;r=l.pageX-s,i=l.pageY-c}return{x:r,y:i}}},4:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,c=n(0),u=n(7),l=n(3),d=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],f=[],h=(s=c.MDCFoundation,i(v,s),Object.defineProperty(v,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=v.cssClasses,r=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(r),t.adapter.isUnbounded()&&(t.adapter.addClass(i),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasses.FG_DEACTIVATION));var e=v.cssClasses,n=e.ROOT,r=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(r),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasses.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var r=a(d),i=r.next();!i.done;i=r.next()){var o=i.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=a(p),i=r.next();!i.done;i=r.next()){var o=i.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(d),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterInteractionHandler(i,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(p),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterDocumentInteractionHandler(i,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,n=v.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;r&&void 0!==t&&r.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,n=e.VAR_FG_TRANSLATE_START,r=e.VAR_FG_TRANSLATE_END,i=v.cssClasses,o=i.FG_DEACTIVATION,a=i.FG_ACTIVATION,s=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var l=this.getFgTranslationCoordinates(),d=l.startPoint,p=l.endPoint;c=d.x+"px, "+d.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,c),this.adapter.updateCssVariable(r,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?l.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,n=this.activationState,r=n.hasDeactivationUXRun,i=n.isActivated;!r&&i||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},u.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var n=Math.floor(e*v.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()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,r=t.VAR_TOP,i=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(i,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},v);function v(t){var e=s.call(this,o(o({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},r=function(){};t.document.addEventListener("test",r,n),t.document.removeEventListener("test",r,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var c,u=n(1),l=n(5),d=n(2),p=n(4),f=s(n(3)),h=(c=u.MDCComponent,i(v,c),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,l.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,l.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return d.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,l.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,l.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new p.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==c&&c.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},64:function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Selectors=e.CssClasses=void 0,(r=e.CssClasses||(e.CssClasses={})).PROCESSING="mdc-switch--processing",r.SELECTED="mdc-switch--selected",r.UNSELECTED="mdc-switch--unselected",(e.Selectors||(e.Selectors={})).RIPPLE=".mdc-switch__ripple"},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=236);function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,r});
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/textfield",[],e):"object"==typeof exports?exp
vendor: 4,659 bytes, line 1
1orts.textfield=e():(t.mdc=t.mdc||{},t.mdc.textfield=e())}(this,function(){return r={},i.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var r=(Object.defineProperty(i,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),i.prototype.init=function(){},i.prototype.destroy=function(){},i);function i(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=r,e.default=r},1:function(t,e,n){"use strict";var i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var r=n(0),a=(s.attachTo=function(t){return new s(t,new r.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:n,detail:e}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(r)},s);function s(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=t,this.initialize.apply(this,o([],i(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},124:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldCharacterCounter=void 0;var o,a=n(1),s=n(70),u=(o=a.MDCComponent,i(c,o),c.attachTo=function(t){return new c(t)},Object.defineProperty(c.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),c.prototype.getDefaultFoundation=function(){var e=this,t={setContent:function(t){e.root.textContent=t}};return new s.MDCTextFieldCharacterCounterFoundation(t)},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.MDCTextFieldCharacterCounter=u},125:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.strings=void 0;var r={ROOT:"mdc-text-field-character-counter"},i={ROOT_SELECTOR:"."+(e.cssClasses=r).ROOT};e.strings=i},126:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};
vendor: 37,339 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldFoundation=void 0;var a,s=n(0),u=n(71),l=["mousedown","touchstart"],d=["click","keydown"],p=(a=s.MDCFoundation,i(f,a),Object.defineProperty(f,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(f,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(f,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return 0<=u.ALWAYS_FLOAT_TYPES.indexOf(t)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(f,"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:!1,configurable:!0}),f.prototype.init=function(){var e,t,n,r;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);try{for(var i=c(l),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.registerInputInteractionHandler(a,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}try{for(var s=c(d),u=s.next();!u.done;u=s.next())a=u.value,this.adapter.registerTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},f.prototype.destroy=function(){var e,t,n,r;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var i=c(l),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.deregisterInputInteractionHandler(a,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}try{for(var s=c(d),u=s.next();!u.done;u=s.next())a=u.value,this.adapter.deregisterTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},f.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},f.prototype.handleValidationAttributeChange=function(t){var e=this;t.some(function(t){return-1<u.VALIDATION_ATTR_WHITELIST.indexOf(t)&&(e.styleValidity(!0),e.adapter.setLabelRequired(e.getNativeInput().required),!0)}),-1<t.indexOf("maxlength")&&this.setcharacterCounter(this.getValue().length)},f.prototype.notchOutline=function(t){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(t){var e=this.adapter.getLabelWidth()*u.numbers.LABEL_SCALE;this.adapter.notchOutline(e)}else this.adapter.closeOutline()},f.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.valid||this.helperText.showToScreenReader()},f.prototype.setTransformOrigin=function(t){if(!this.isDisabled()&&!this.adapter.hasOutline()){var e=t.touches,n=e?e[0]:t,r=n.target.getBoundingClientRect(),i=n.clientX-r.left;this.adapter.setLineRippleTransformOrigin(i)}},f.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},f.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},f.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var t=this.isValid();this.styleValidity(t),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)},f.prototype.getValue=function(){return this.getNativeInput().value},f.prototype.setValue=function(t){if(this.getValue()!==t&&(this.getNativeInput().value=t),this.setcharacterCounter(t.length),this.validateOnValueChange){var e=this.isValid();this.styleValidity(e)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},f.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},f.prototype.setValid=function(t){this.valid=t,this.styleValidity(t);var e=!t&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(e)},f.prototype.setValidateOnValueChange=function(t){this.validateOnValueChange=t},f.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},f.prototype.setUseNativeValidation=function(t){this.useNativeValidation=t},f.prototype.isDisabled=function(){return this.getNativeInput().disabled},f.prototype.setDisabled=function(t){this.getNativeInput().disabled=t,this.styleDisabled(t)},f.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},f.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},f.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},f.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon&&this.trailingIcon.setAriaLabel(t)},f.prototype.setTrailingIconContent=function(t){this.trailingIcon&&this.trailingIcon.setContent(t)},f.prototype.setcharacterCounter=function(t){if(this.characterCounter){var e=this.getNativeInput().maxLength;if(-1===e)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(t,e)}},f.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},f.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},f.prototype.styleValidity=function(t){var e=f.cssClasses.INVALID;if(t?this.adapter.removeClass(e):this.adapter.addClass(e),this.helperText){if(this.helperText.setValidity(t),!this.helperText.isValidation())return;var n=this.helperText.isVisible(),r=this.helperText.getId();n&&r?this.adapter.setInputAttr(u.strings.ARIA_DESCRIBEDBY,r):this.adapter.removeInputAttr(u.strings.ARIA_DESCRIBEDBY)}},f.prototype.styleFocused=function(t){var e=f.cssClasses.FOCUSED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},f.prototype.styleDisabled=function(t){var e=f.cssClasses,n=e.DISABLED,r=e.INVALID;t?(this.adapter.addClass(n),this.adapter.removeClass(r)):this.adapter.removeClass(n),this.leadingIcon&&this.leadingIcon.setDisabled(t),this.trailingIcon&&this.trailingIcon.setDisabled(t)},f.prototype.styleFloating=function(t){var e=f.cssClasses.LABEL_FLOATING;t?this.adapter.addClass(e):this.adapter.removeClass(e)},f.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},f);function f(t,e){void 0===e&&(e={});var n=a.call(this,o(o({},f.defaultAdapter),t))||this;return n.isFocused=!1,n.receivedUserInput=!1,n.valid=!0,n.useNativeValidation=!0,n.validateOnValueChange=!0,n.helperText=e.helperText,n.characterCounter=e.characterCounter,n.leadingIcon=e.leadingIcon,n.trailingIcon=e.trailingIcon,n.inputFocusHandler=function(){n.activateFocus()},n.inputBlurHandler=function(){n.deactivateFocus()},n.inputInputHandler=function(){n.handleInput()},n.setPointerXOffset=function(t){n.setTransformOrigin(t)},n.textFieldInteractionHandler=function(){n.handleTextFieldInteraction()},n.validationAttributeChangeHandler=function(t){n.handleValidationAttributeChange(t)},n}e.MDCTextFieldFoundation=p,e.default=p},127:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldHelperText=void 0;var o,a=n(1),s=n(72),u=(o=a.MDCComponent,i(c,o),c.attachTo=function(t){return new c(t)},Object.defineProperty(c.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),c.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},getAttr:function(t){return n.root.getAttribute(t)},setAttr:function(t,e){return n.root.setAttribute(t,e)},removeAttr:function(t){return n.root.removeAttribute(t)},setContent:function(t){n.root.textContent=t}};return new s.MDCTextFieldHelperTextFoundation(t)},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.MDCTextFieldHelperText=u},128:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.strings=void 0;var r={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"},i={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+(e.cssClasses=r).ROOT};e.strings=i},129:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldIcon=void 0;var o,a=n(1),s=n(130),u=(o=a.MDCComponent,i(c,o),c.attachTo=function(t){return new c(t)},Object.defineProperty(c.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),c.prototype.getDefaultFoundation=function(){var n=this,t={getAttr:function(t){return n.root.getAttribute(t)},setAttr:function(t,e){return n.root.setAttribute(t,e)},removeAttr:function(t){return n.root.removeAttribute(t)},setContent:function(t){n.root.textContent=t},registerInteractionHandler:function(t,e){return n.listen(t,e)},deregisterInteractionHandler:function(t,e){return n.unlisten(t,e)},notifyIconAction:function(){return n.emit(s.MDCTextFieldIconFoundation.strings.ICON_EVENT,{},!0)}};return new s.MDCTextFieldIconFoundation(t)},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.MDCTextFieldIcon=u},130:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldIconFoundation=void 0;var s,u=n(0),c=n(131),l=["click","keydown"],d=(s=u.MDCFoundation,i(p,s),Object.defineProperty(p,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(p,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),p.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=a(l),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.registerInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},p.prototype.destroy=function(){var e,t;try{for(var n=a(l),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterInteractionHandler(i,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},p.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",c.strings.ICON_ROLE)))},p.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},p.prototype.setContent=function(t){this.adapter.setContent(t)},p.prototype.handleInteraction=function(t){var e="Enter"===t.key||13===t.keyCode;"click"!==t.type&&!e||(t.preventDefault(),this.adapter.notifyIconAction())},p);function p(t){var e=s.call(this,o(o({},p.defaultAdapter),t))||this;return e.savedTabIndex=null,e.interactionHandler=function(t){e.handleInteraction(t)},e}e.MDCTextFieldIconFoundation=d,e.default=d},131:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.strings=void 0;e.strings={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"};e.cssClasses={ROOT:"mdc-text-field__icon"}},15:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFloatingLabelFoundation=void 0;var a,s=n(0),u=n(20),c=(a=s.MDCFoundation,i(l,a),Object.defineProperty(l,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),l.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},l.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},l.prototype.getWidth=function(){return this.adapter.getWidth()},l.prototype.shake=function(t){var e=l.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(e):this.adapter.removeClass(e)},l.prototype.float=function(t){var e=l.cssClasses,n=e.LABEL_FLOAT_ABOVE,r=e.LABEL_SHAKE;t?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(r))},l.prototype.setRequired=function(t){var e=l.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},l.prototype.handleShakeAnimationEnd=function(){var t=l.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},l);function l(t){var e=a.call(this,o(o({},l.defaultAdapter),t))||this;return e.shakeAnimationEndHandler=function(){e.handleShakeAnimationEnd()},e}e.MDCFloatingLabelFoundation=c,e.default=c},18:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.numbers=e.cssClasses=void 0;e.strings={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"};e.numbers={NOTCH_ELEMENT_PADDING:8};e.cssClasses={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"}},2:function(t,e,n){"use strict";function r(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(r(n,e))return n;n=n.parentElement}return null},e.matches=r,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}},20:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=void 0,e.cssClasses={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"}},256:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(257),e),i(n(258),e),i(n(71),e),i(n(126),e),i(n(259),e),i(n(260),e),i(n(262),e),i(n(264),e)},257:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},258:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&a(e,t,n);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextField=void 0;var c,l=n(1),d=n(5),p=u(n(2)),b=n(35),_=n(36),C=n(38),m=n(6),f=n(4),O=n(124),T=n(70),E=n(71),h=n(126),I=n(127),A=n(72),L=n(129),y=(c=l.MDCComponent,i(v,c),v.attachTo=function(t){return new v(t)},v.prototype.initialize=function(t,e,n,r,i,o,a){void 0===t&&(t=function(t,e){return new m.MDCRipple(t,e)}),void 0===e&&(e=function(t){return new _.MDCLineRipple(t)}),void 0===n&&(n=function(t){return new I.MDCTextFieldHelperText(t)}),void 0===r&&(r=function(t){return new O.MDCTextFieldCharacterCounter(t)}),void 0===i&&(i=function(t){return new L.MDCTextFieldIcon(t)}),void 0===o&&(o=function(t){return new b.MDCFloatingLabel(t)}),void 0===a&&(a=function(t){return new C.MDCNotchedOutline(t)}),this.input=this.root.querySelector(E.strings.INPUT_SELECTOR);var s=this.root.querySelector(E.strings.LABEL_SELECTOR);this.label=s?o(s):null;var u=this.root.querySelector(E.strings.LINE_RIPPLE_SELECTOR);this.lineRipple=u?e(u):null;var c=this.root.querySelector(E.strings.OUTLINE_SELECTOR);this.outline=c?a(c):null;var l=A.MDCTextFieldHelperTextFoundation.strings,d=this.root.nextElementSibling,p=d&&d.classList.contains(E.cssClasses.HELPER_LINE),f=p&&d&&d.querySelector(l.ROOT_SELECTOR);this.helperText=f?n(f):null;var h=T.MDCTextFieldCharacterCounterFoundation.strings,y=this.root.querySelector(h.ROOT_SELECTOR);!y&&p&&d&&(y=d.querySelector(h.ROOT_SELECTOR)),this.characterCounter=y?r(y):null;var v=this.root.querySelector(E.strings.LEADING_ICON_SELECTOR);this.leadingIcon=v?i(v):null;var g=this.root.querySelector(E.strings.TRAILING_ICON_SELECTOR);this.trailingIcon=g?i(g):null,this.prefix=this.root.querySelector(E.strings.PREFIX_SELECTOR),this.suffix=this.root.querySelector(E.strings.SUFFIX_SELECTOR),this.ripple=this.createRipple(t)},v.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(),c.prototype.destroy.call(this)},v.prototype.initialSyncWithDOM=function(){this.disabled=this.input.disabled},Object.defineProperty(v.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(t){this.foundation.setValue(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"disabled",{get:function(){return this.foundation.isDisabled()},set:function(t){this.foundation.setDisabled(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(t){this.foundation.setValid(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"required",{get:function(){return this.input.required},set:function(t){this.input.required=t},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"pattern",{get:function(){return this.input.pattern},set:function(t){this.input.pattern=t},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"minLength",{get:function(){return this.input.minLength},set:function(t){this.input.minLength=t},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"maxLength",{get:function(){return this.input.maxLength},set:function(t){t<0?this.input.removeAttribute("maxLength"):this.input.maxLength=t},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"min",{get:function(){return this.input.min},set:function(t){this.input.min=t},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"max",{get:function(){return this.input.max},set:function(t){this.input.max=t},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"step",{get:function(){return this.input.step},set:function(t){this.input.step=t},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"helperTextContent",{set:function(t){this.foundation.setHelperTextContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"leadingIconAriaLabel",{set:function(t){this.foundation.setLeadingIconAriaLabel(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"leadingIconContent",{set:function(t){this.foundation.setLeadingIconContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"trailingIconAriaLabel",{set:function(t){this.foundation.setTrailingIconAriaLabel(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"trailingIconContent",{set:function(t){this.foundation.setTrailingIconContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"useNativeValidation",{set:function(t){this.foundation.setUseNativeValidation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"prefixText",{get:function(){return this.prefix?this.prefix.textContent:null},set:function(t){this.prefix&&(this.prefix.textContent=t)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"suffixText",{get:function(){return this.suffix?this.suffix.textContent:null},set:function(t){this.suffix&&(this.suffix.textContent=t)},enumerable:!1,configurable:!0}),v.prototype.focus=function(){this.input.focus()},v.prototype.layout=function(){var t=this.foundation.shouldFloat;this.foundation.notchOutline(t)},v.prototype.getDefaultFoundation=function(){var t=o(o(o(o(o({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods());return new h.MDCTextFieldFoundation(t,this.getFoundationMap())},v.prototype.getRootAdapterMethods=function(){var n=this;return{addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},registerTextFieldInteractionHandler:function(t,e){n.listen(t,e)},deregisterTextFieldInteractionHandler:function(t,e){n.unlisten(t,e)},registerValidationAttributeChangeHandler:function(e){var t=new MutationObserver(function(t){return e(function(t){return t.map(function(t){return t.attributeName}).filter(function(t){return t})}(t))});return t.observe(n.input,{attributes:!0}),t},deregisterValidationAttributeChangeHandler:function(t){t.disconnect()}}},v.prototype.getInputAdapterMethods=function(){var n=this;return{getNativeInput:function(){return n.input},setInputAttr:function(t,e){n.input.setAttribute(t,e)},removeInputAttr:function(t){n.input.removeAttribute(t)},isFocused:function(){return document.activeElement===n.input},registerInputInteractionHandler:function(t,e){n.input.addEventListener(t,e,d.applyPassive())},deregisterInputInteractionHandler:function(t,e){n.input.removeEventListener(t,e,d.applyPassive())}}},v.prototype.getLabelAdapterMethods=function(){var e=this;return{floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},hasLabel:function(){return Boolean(e.label)},shakeLabel:function(t){e.label&&e.label.shake(t)},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},v.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)}}},v.prototype.getOutlineAdapterMethods=function(){var e=this;return{closeOutline:function(){e.outline&&e.outline.closeNotch()},hasOutline:function(){return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)}}},v.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}},v.prototype.createRipple=function(t){var n=this,e=this.root.classList.contains(E.cssClasses.TEXTAREA),r=this.root.classList.contains(E.cssClasses.OUTLINED);if(e||r)return null;var i=o(o({},m.MDCRipple.createAdapter(this)),{isSurfaceActive:function(){return p.matches(n.input,":active")},registerInteractionHandler:function(t,e){n.input.addEventListener(t,e,d.applyPassive())},deregisterInteractionHandler:function(t,e){n.input.removeEventListener(t,e,d.applyPassive())}});return t(this.root,new f.MDCRippleFoundation(i))},v);function v(){return null!==c&&c.apply(this,arguments)||this}e.MDCTextField=y},259:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},260:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.characterCountStrings=e.characterCountCssClasses=void 0,i(n(261),e),i(n(124),e),i(n(70),e);var o=n(125);Object.defineProperty(e,"characterCountCssClasses",{enumerable:!0,get:function(){return o.cssClasses}}),Object.defineProperty(e,"characterCountStrings",{enumerable:!0,get:function(){return o.strings}})},261:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},262:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.helperTextStrings=e.helperTextCssClasses=void 0,i(n(263),e),i(n(127),e),i(n(72),e);var o=n(128);Object.defineProperty(e,"helperTextCssClasses",{enumerable:!0,get:function(){return o.cssClasses}}),Object.defineProperty(e,"helperTextStrings",{enumerable:!0,get:function(){return o.strings}})},263:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},264:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.iconStrings=e.iconCssClasses=void 0,i(n(265),e),i(n(129),e),i(n(130),e);var o=n(131);Object.defineProperty(e,"iconCssClasses",{enumerable:!0,get:function(){return o.cssClasses}}),Object.defineProperty(e,"iconStrings",{enumerable:!0,get:function(){return o.strings}})},265:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},27:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLineRippleFoundation=void 0;var a,s=n(0),u=n(28),c=(a=s.MDCFoundation,i(l,a),Object.defineProperty(l,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),l.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},l.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},l.prototype.activate=function(){this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(u.cssClasses.LINE_RIPPLE_ACTIVE)},l.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},l.prototype.deactivate=function(){this.adapter.addClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING)},l.prototype.handleTransitionEnd=function(t){var e=this.adapter.hasClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(u.cssClasses.LINE_RIPPLE_DEACTIVATING))},l);function l(t){var e=a.call(this,o(o({},l.defaultAdapter),t))||this;return e.transitionEndHandler=function(t){e.handleTransitionEnd(t)},e}e.MDCLineRippleFoundation=c,e.default=c},28:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=void 0;e.cssClasses={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}},29:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCNotchedOutlineFoundation=void 0;var a,s=n(0),u=n(18),c=(a=s.MDCFoundation,i(l,a),Object.defineProperty(l,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),l.prototype.notch=function(t){var e=l.cssClasses.OUTLINE_NOTCHED;0<t&&(t+=u.numbers.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(e)},l.prototype.closeNotch=function(){var t=l.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(t),this.adapter.removeNotchWidthProperty()},l);function l(t){return a.call(this,o(o({},l.defaultAdapter),t))||this}e.MDCNotchedOutlineFoundation=c,e.default=c},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,r=t.CSS;if("boolean"==typeof a&&!e)return a;
vendor: 4,129 bytes, line 1
1if(!(r&&"function"==typeof r.supports))return!1;var i=r.supports("--css-vars","yes"),o=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=i||o,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var r,i,o=e.x,a=e.y,s=o+n.left,u=a+n.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-s,i=c.changedTouches[0].pageY-u}else{var l=t;r=l.pageX-s,i=l.pageY-u}return{x:r,y:i}}},35:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFloatingLabel=void 0;var o,a=n(1),s=n(2),u=n(15),c=(o=a.MDCComponent,i(l,o),l.attachTo=function(t){return new l(t)},l.prototype.shake=function(t){this.foundation.shake(t)},l.prototype.float=function(t){this.foundation.float(t)},l.prototype.setRequired=function(t){this.foundation.setRequired(t)},l.prototype.getWidth=function(){return this.foundation.getWidth()},l.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},getWidth:function(){return s.estimateScrollWidth(n.root)},registerInteractionHandler:function(t,e){return n.listen(t,e)},deregisterInteractionHandler:function(t,e){return n.unlisten(t,e)}};return new u.MDCFloatingLabelFoundation(t)},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MDCFloatingLabel=c},36:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLineRipple=void 0;var o,a=n(1),s=n(27),u=(o=a.MDCComponent,i(c,o),c.attachTo=function(t){return new c(t)},c.prototype.activate=function(){this.foundation.activate()},c.prototype.deactivate=function(){this.foundation.deactivate()},c.prototype.setRippleCenter=function(t){this.foundation.setRippleCenter(t)},c.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},setStyle:function(t,e){return n.root.style.setProperty(t,e)},registerEventHandler:function(t,e){return n.listen(t,e)},deregisterEventHandler:function(t,e){return n.unlisten(t,e)}};return new s.MDCLineRippleFoundation(t)},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.MDCLineRipple=u},38:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCNotchedOutline=void 0;var o,a=n(1),s=n(15),u=n(18),c=n(29),l=(o=a.MDCComponent,i(d,o),d.attachTo=function(t){return new d(t)},d.prototype.initialSyncWithDOM=function(){this.notchElement=this.root.querySelector(u.strings.NOTCH_ELEMENT_SELECTOR);var t=this.root.querySelector("."+s.MDCFloatingLabelFoundation.cssClasse
vendor: 6,827 bytes, line 1
1s.ROOT);t?(t.style.transitionDuration="0s",this.root.classList.add(u.cssClasses.OUTLINE_UPGRADED),requestAnimationFrame(function(){t.style.transitionDuration=""})):this.root.classList.add(u.cssClasses.NO_LABEL)},d.prototype.notch=function(t){this.foundation.notch(t)},d.prototype.closeNotch=function(){this.foundation.closeNotch()},d.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){e.notchElement.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){e.notchElement.style.removeProperty("width")}};return new c.MDCNotchedOutlineFoundation(t)},d);function d(){return null!==o&&o.apply(this,arguments)||this}e.MDCNotchedOutline=l},4:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,u=n(0),c=n(7),l=n(3),d=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],f=[],h=(s=u.MDCFoundation,i(y,s),Object.defineProperty(y,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(y,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(y,"numbers",{get:function(){return c.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(y,"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:!1,configurable:!0}),y.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=y.cssClasses,r=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(r),t.adapter.isUnbounded()&&(t.adapter.addClass(i),t.layoutInternal())})}},y.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(y.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(y.cssClasses.FG_DEACTIVATION));var e=y.cssClasses,n=e.ROOT,r=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(r),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},y.prototype.activate=function(t){this.activateImpl(t)},y.prototype.deactivate=function(){this.deactivateImpl()},y.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},y.prototype.setUnbounded=function(t){var e=y.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},y.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(y.cssClasses.BG_FOCUSED)})},y.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(y.cssClasses.BG_FOCUSED)})},y.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},y.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},y.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var r=a(d),i=r.next();!i.done;i=r.next()){var o=i.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},y.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=a(p),i=r.next();!i.done;i=r.next()){var o=i.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},y.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(d),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterInteractionHandler(i,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},y.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(p),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterDocumentInteractionHandler(i,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},y.prototype.removeCssVars=function(){var e=this,n=y.strings;
vendor: 10,619 bytes, line 1
1Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},y.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;r&&void 0!==t&&r.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},y.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},y.prototype.animateActivation=function(){var t=this,e=y.strings,n=e.VAR_FG_TRANSLATE_START,r=e.VAR_FG_TRANSLATE_END,i=y.cssClasses,o=i.FG_DEACTIVATION,a=i.FG_ACTIVATION,s=y.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",c="";if(!this.adapter.isUnbounded()){var l=this.getFgTranslationCoordinates(),d=l.startPoint,p=l.endPoint;u=d.x+"px, "+d.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,u),this.adapter.updateCssVariable(r,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(o),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},y.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?l.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},y.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=y.cssClasses.FG_DEACTIVATION,n=this.activationState,r=n.hasDeactivationUXRun,i=n.isActivated;!r&&i||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},c.numbers.FG_DEACTIVATION_MS))},y.prototype.rmBoundedActivationClasses=function(){var t=y.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},y.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},y.numbers.TAP_DELAY_MS)},y.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},y.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},y.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+y.numbers.PADDING;var n=Math.floor(e*y.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()},y.prototype.updateLayoutCssVars=function(){var t=y.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,r=t.VAR_TOP,i=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(i,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},y);function y(t){var e=s.call(this,o(o({},y.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},r=function(){};t.document.addEventListener("test",r,n),t.document.removeEventListener("test",r,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,c=n(1),l=n(5),d=n(2),p=n(4),f=s(n(3)),h=(u=c.MDCComponent,i(y,u),y.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new y(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},y.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,l.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,l.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return d.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,l.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,l.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(y.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),y.prototype.activate=function(){this.foundation.activate()},y.prototype.deactivate=function(){this.foundation.deactivate()},y.prototype.layout=function(){this.foundation.layout()},y.prototype.getDefaultFoundation=function(){return new p.MDCRippleFoundation(y.createAdapter(this))},y.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},y.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},y);function y(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},70:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};
vendor: 46,827 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldCharacterCounterFoundation=void 0;var a,s=n(0),u=n(125),c=(a=s.MDCFoundation,i(l,a),Object.defineProperty(l,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!1,configurable:!0}),l.prototype.setCounterValue=function(t,e){t=Math.min(t,e),this.adapter.setContent(t+" / "+e)},l);function l(t){return a.call(this,o(o({},l.defaultAdapter),t))||this}e.MDCTextFieldCharacterCounterFoundation=c,e.default=c},71:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ALWAYS_FLOAT_TYPES=e.VALIDATION_ATTR_WHITELIST=e.numbers=e.strings=e.cssClasses=void 0;e.strings={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"};e.cssClasses={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",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"};e.numbers={LABEL_SCALE:.75};e.VALIDATION_ATTR_WHITELIST=["pattern","min","max","required","step","minlength","maxlength"];e.ALWAYS_FLOAT_TYPES=["color","date","datetime-local","month","range","time","week"]},72:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldHelperTextFoundation=void 0;var a,s=n(0),u=n(128),c=(a=s.MDCFoundation,i(l,a),Object.defineProperty(l,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),l.prototype.getId=function(){return this.adapter.getAttr("id")},l.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(u.strings.ARIA_HIDDEN)},l.prototype.setContent=function(t){this.adapter.setContent(t)},l.prototype.isPersistent=function(){return this.adapter.hasClass(u.cssClasses.HELPER_TEXT_PERSISTENT)},l.prototype.setPersistent=function(t){t?this.adapter.addClass(u.cssClasses.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(u.cssClasses.HELPER_TEXT_PERSISTENT)},l.prototype.isValidation=function(){return this.adapter.hasClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG)},l.prototype.setValidation=function(t){t?this.adapter.addClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG)},l.prototype.showToScreenReader=function(){this.adapter.removeAttr(u.strings.ARIA_HIDDEN)},l.prototype.setValidity=function(t){var e=this.adapter.hasClass(u.cssClasses.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(u.cssClasses.HELPER_TEXT_VALIDATION_MSG)&&!t;n?(this.showToScreenReader(),"alert"===this.adapter.getAttr(u.strings.ROLE)?this.refreshAlertRole():this.adapter.setAttr(u.strings.ROLE,"alert")):this.adapter.removeAttr(u.strings.ROLE),e||n||this.hide()},l.prototype.hide=function(){this.adapter.setAttr(u.strings.ARIA_HIDDEN,"true")},l.prototype.refreshAlertRole=function(){var t=this;this.adapter.removeAttr(u.strings.ROLE),requestAnimationFrame(function(){t.adapter.setAttr(u.strings.ROLE,"alert")})},l);function l(t){return a.call(this,o(o({},l.defaultAdapter),t))||this}e.MDCTextFieldHelperTextFoundation=c,e.default=c}},i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=256);function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,r});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/tooltip",[],e):"object"==typeof exports?exports.tooltip=e():(t.mdc=t.mdc||{},t.mdc.tooltip=e())}(this,function(){return o={},n.m=i={0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(n,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.destroy=function(){},n);function n(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,i){"use strict";var n=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=r.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return s},r=this&&this.__spreadArray||function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=i(0),s=(a.attachTo=function(t){return new a(t,new o.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,i){this.root.addEventListener(t,e,i)},a.prototype.unlisten=function(t,e,i){this.root.removeEventListener(t,e,i)},a.prototype.emit=function(t,e,i){var o;void 0===i&&(i=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:i,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,e),this.root.dispatchEvent(o)},a);function a(t,e){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.root=t,this.initialize.apply(this,r([],n(i))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},10:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var s={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 l(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(l(t)&&e in s){var i=t.document.createElement("div"),o=s[e],n=o.standard,r=o.prefixed;return n in i.style?n:r}return e},e.getCorrectEventName=function(t,e){if(l(t)&&e in a){var i=t.document.createElement("div"),o=a[e],n=o.standard,r=o.prefixed;return o.cssProperty in i.style?n:r}return e}},132:function(t,e,i){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},A=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTooltipFoundation=void 0;var s,a=i(17),p=i(10),l=i(0),h=i(8),v=i(73),c=v.CssClasses.RICH,d=v.CssClasses.SHOWN,u=v.CssClasses.SHOWING,T=v.CssClasses.SHOWING_TRANSITION,E=v.CssClasses.HIDE,f=v.CssClasses.HIDE_TRANSITION,m=v.CssClasses.MULTILINE_TOOLTIP;(s=s||{}).POLL_ANCHOR="poll_anchor";var y,g="undefined"!=typeof window,C=(y=l.MDCFoundation,n(O,y),Object.defineProperty(O,"defaultAdapter",{get:function(){return{getAttribute:function(){return null},setAttribute:function(){},removeAttribute:function(){},addClass:function(){},hasClass:function(){return!1},removeClass:function(){},getComputedStyleProperty:function(){return""},setStyleProperty:function(){},setSurfaceAnimationStyleProperty:function(){},getViewportWidth:function(){return 0},getViewportHeight:function(){return 0},getTooltipSize:function(){return{width:0,height:0}},getAnchorBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getParentBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getAnchorAttribute:function(){return null},setAnchorAttribute:function(){return null},isRTL:function(){return!1},anchorContainsElement:function(){return!1},tooltipContainsElement:function(){return!1},focusAnchorElement:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerAnchorEventHandler:function(){},deregisterAnchorEventHandler:function(){},registerDocumentEventHandler:function(){},deregisterDocumentEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){},notifyHidden:function(){},getTooltipCaretBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setTooltipCaretStyle:function(){},clearTooltipCaretStyles:function(){},getActiveElement:function(){return null}}},enumerable:!1,configurable:!0}),O.prototype.init=function(){this.richTooltip=this.adapter.hasClass(c),this.persistentTooltip="true"===this.adapter.getAttribute(v.attributes.PERSISTENT),this.interactiveTooltip=!!this.adapter.getAnchorAttribute(v.attributes.ARIA_EXPANDED)&&"dialog"===this.adapter.getAnchorAttribute(v.attributes.ARIA_HASPOPUP),this.hasCaret=this.richTooltip&&"true"===this.adapter.getAttribute(v.attributes.HAS_CARET)},O.prototype.isShown=function(){return this.tooltipShown},O.prototype.isRich=function(){return this.richTooltip},O.prototype.isPersistent=function(){return this.persistentTooltip},O.prototype.handleAnchorMouseEnter=function(){var t=this;this.tooltipShown?this.show():(this.clearHideTimeout(),this.showTimeout=setTimeout(function(){t.show()},this.showDelayMs))},O.prototype.handleAnchorTouchstart=function(){var t=this;this.showTimeout=setTimeout(function(){t.show()},this.showDelayMs),this.adapter.registerWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch)},O.prototype.preventContextMenuOnLongTouch=function(t){t.preventDefault()},O.prototype.handleAnchorTouchend=function(){this.clearShowTimeout(),this.isShown()||this.adapter.deregisterWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch)},O.prototype.handleAnchorFocus=function(t){var e=this,i=t.relatedTarget;i instanceof HTMLElement&&this.adapter.tooltipContainsElement(i)||(this.showTimeout=setTimeout(function(){e.show()},this.showDelayMs))},O.prototype.handleAnchorMouseLeave=function(){var t=this;this.clearShowTimeout(),this.hideTimeout=setTimeout(function(){t.hide()},this.hideDelayMs)},O.prototype.handleAnchorClick=function(){this.tooltipShown?this.hide():this.show()},O.prototype.handleDocumentClick=function(t){var e=t.target instanceof HTMLElement&&(this.adapter.anchorContainsElement(t.target)||this.adapter.tooltipContainsElement(t.target));this.richTooltip&&this.persistentTooltip&&e||this.hide()},O.prototype.handleKeydown=function(t){if(h.normalizeKey(t)===h.KEY.ESCAPE){var e=this.adapter.getActiveElement();e instanceof HTMLElement&&this.adapter.tooltipContainsElement(e)&&this.adapter.focusAnchorElement(),this.hide()}},O.prototype.handleAnchorBlur=function(t){if(this.richTooltip){if(t.relatedTarget instanceof HTMLElement&&this.adapter.tooltipContainsElement(t.relatedTarget))return;if(null===t.relatedTarget&&this.interactiveTooltip)return}this.hide()},O.prototype.handleTooltipMouseEnter=function(){this.show()},O.prototype.handleTooltipMouseLeave=function(){var t=this;this.clearShowTimeout(),this.hideTimeout=setTimeout(function(){t.hide()},this.hideDelayMs)},O.prototype.handleRichTooltipFocusOut=function(t){t.relatedTarget instanceof HTMLElement&&(this.adapter.anchorContainsElement(t.relatedTarget)||this.adapter.tooltipContainsElement(t.relatedTarget))||null===t.relatedTarget&&this.interactiveTooltip||this.hide()},O.prototype.handleWindowScrollEvent=function(){this.persistentTooltip?this.handleWindowChangeEvent():this.hide()},O.prototype.handleWindowChangeEvent=function(){var t=this;this.animFrame.request(s.POLL_ANCHOR,function(){t.repositionTooltipOnAnchorMove()})},O.prototype.show=function(){var e,t,i=this;if(this.clearHideTimeout(),this.clearShowTimeout(),!this.tooltipShown){this.tooltipShown=!0,this.adapter.removeAttribute("aria-hidden"),this.richTooltip&&(this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","true"),this.adapter.registerEventHandler("focusout",this.richTooltipFocusOutHandler)),this.persistentTooltip||(this.adapter.registerEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.registerEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.adapter.removeClass(E),this.adapter.addClass(u),this.isTooltipMultiline()&&!this.richTooltip&&this.adapter.addClass(m),this.anchorRect=this.adapter.getAnchorBoundingRect(),this.parentRect=this.adapter.getParentBoundingRect(),this.richTooltip?this.positionRichTooltip():this.positionPlainTooltip(),this.adapter.registerAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.registerDocumentEventHandler("click",this.documentClickHandler),this.adapter.registerDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.registerWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler);try{for(var o=A(this.addAncestorScrollEventListeners),n=o.next();!n.done;n=o.next())(0,n.value)()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.frameId=requestAnimationFrame(function(){i.clearAllAnimationClasses(),i.adapter.addClass(d),i.adapter.addClass(T)})}},O.prototype.hide=function(){var e,t;if(this.clearHideTimeout(),this.clearShowTimeout(),this.tooltipShown){this.frameId&&cancelAnimationFrame(this.frameId),this.tooltipShown=!1,this.adapter.setAttribute("aria-hidden","true"),this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.richTooltip&&this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","false"),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.clearAllAnimationClasses(),this.adapter.addClass(E),this.adapter.addClass(f),this.adapter.removeClass(d),this.adapter.deregisterAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch);try{for(var i=A(this.removeAncestorScrollEventListeners),o=i.next();!o.done;o=i.next())(0,o.value)()}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}},O.prototype.handleTransitionEnd=function(){var t=this.adapter.hasClass(E);this.adapter.removeClass(u),this.adapter.removeClass(T),this.adapter.removeClass(E),this.adapter.removeClass(f),t&&null===this.showTimeout&&this.adapter.notifyHidden()},O.prototype.clearAllAnimationClasses=function(){this.adapter.removeClass(T),this.adapter.removeClass(f)},O.prototype.setTooltipPosition=function(t){var e=t.xPos,i=t.yPos,o=t.withCaretPos;this.hasCaret&&o?this.tooltipPositionWithCaret=o:(e&&(this.xTooltipPos=e),i&&(this.yTooltipPos=i))},O.prototype.setAnchorBoundaryType=function(t){t===v.AnchorBoundaryType.UNBOUNDED?this.anchorGap=v.numbers.UNBOUNDED_ANCHOR_GAP:this.anchorGap=v.numbers.BOUNDED_ANCHOR_GAP},O.prototype.setShowDelay=function(t){this.showDelayMs=t},O.prototype.setHideDelay=function(t){this.hideDelayMs=t},O.prototype.isTooltipMultiline=function(){var t=this.adapter.getTooltipSize();return t.height>v.numbers.MIN_HEIGHT&&t.width>=v.numbers.MAX_WIDTH},O.prototype.positionPlainTooltip=function(){var t=this.calculateTooltipStyles(this.anchorRect),e=t.top,i=t.yTransformOrigin,o=t.left,n=t.xTransformOrigin,r=g?p.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setSurfaceAnimationStyleProperty(r+"-origin",n+" "+i),this.adapter.setStyleProperty("top",e+"px"),this.adapter.setStyleProperty("left",o+"px")},O.prototype.positionRichTooltip=function(){var t,e,i,o,n=this.adapter.getComputedStyleProperty("width");this.adapter.setStyleProperty("width",n);var r=this.hasCaret?this.calculateTooltipWithCaretStyles(this.anchorRect):this.calculateTooltipStyles(this.anchorRect),s=r.top,a=r.yTransformOrigin,l=r.left,h=r.xTransformOrigin,c=g?p.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setSurfaceAnimationStyleProperty(c+"-origin",h+" "+a);var d=l-(null!==(e=null===(t=this.parentRect)||void 0===t?void 0:t.left)&&void 0!==e?e:0),u=s-(null!==(o=null===(i=this.parentRect)||void 0===i?void 0:i.top)&&void 0!==o?o:0);this.adapter.setStyleProperty("top",u+"px"),this.adapter.setStyleProperty("left",d+"px")},O.prototype.calculateTooltipStyles=function(t){if(!t)return{top:0,left:0};var e=this.adapter.getTooltipSize(),i=this.calculateYTooltipDistance(t,e.height),o=this.calculateXTooltipDistance(t,e.width);return{top:i.distance,yTransformOrigin:i.yTransformOrigin,left:o.distance,xTransformOrigin:o.xTransformOrigin}},O.prototype.calculateXTooltipDistance=function(t,e){var i,o,n,r,s,a=!this.adapter.isRTL();s=this.richTooltip?(i=a?t.left-e:t.right,o=a?t.right:t.left-e,r=a?v.strings.RIGHT:v.strings.LEFT,a?v.strings.LEFT:v.strings.RIGHT):(i=a?t.left:t.right-e,o=a?t.right-e:t.left,n=t.left+(t.width-e)/2,r=a?v.strings.LEFT:v.strings.RIGHT,a?v.strings.RIGHT:v.strings.LEFT);var l=this.richTooltip?this.determineValidPositionOptions(i,o):this.determineValidPositionOptions(n,i,o);if(this.xTooltipPos===v.XPosition.START&&l.has(i))return{distance:i,xTransformOrigin:r};if(this.xTooltipPos===v.XPosition.END&&l.has(o))return{distance:o,xTransformOrigin:s};if(this.xTooltipPos===v.XPosition.CENTER&&l.has(n))return{distance:n,xTransformOrigin:v.strings.CENTER};var h=(this.richTooltip?[{distance:o,xTransformOrigin:s},{distance:i,xTransformOrigin:r}]:[{distance:n,xTransformOrigin:v.strings.CENTER},{distance:i,xTransformOrigin:r},{distance:o,xTransformOrigin:s}]).find(function(t){var e=t.distance;return l.has(e)});return h||(t.left<0?{distance:this.minViewportTooltipThreshold,xTransformOrigin:v.strings.LEFT}:{distance:this.adapter.getViewportWidth()-(e+this.minViewportTooltipThreshold),xTransformOrigin:v.strings.RIGHT})},O.prototype.determineValidPositionOptions=function(){for(var e,t,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=new Set,r=new Set;try{for(var s=A(i),a=s.next();!a.done;a=s.next()){var l=a.value;this.positionHonorsViewportThreshold(l)?n.add(l):this.positionDoesntCollideWithViewport(l)&&r.add(l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return n.size?n:r},O.prototype.positionHonorsViewportThreshold=function(t){var e=this.adapter.getViewportWidth();return t+this.adapter.getTooltipSize().width<=e-this.minViewportTooltipThreshold&&t>=this.minViewportTooltipThreshold},O.prototype.positionDoesntCollideWithViewport=function(t){var e=this.adapter.getViewportWidth();return t+this.adapter.getTooltipSize().width<=e&&0<=t},O.prototype.calculateYTooltipDistance=function(t,e){var i=t.bottom+this.anchorGap,o=t.top-(this.anchorGap+e),n=this.determineValidYPositionOptions(o,i);return this.yTooltipPos===v.YPosition.ABOVE&&n.has(o)?{distance:o,yTransformOrigin:v.strings.BOTTOM}:this.yTooltipPos===v.YPosition.BELOW&&n.has(i)?{distance:i,yTransformOrigin:v.strings.TOP}:n.has(i)?{distance:i,yTransformOrigin:v.strings.TOP}:n.has(o)?{distance:o,yTransformOrigin:v.strings.BOTTOM}:{distance:i,yTransformOrigin:v.strings.TOP}},O.prototype.determineValidYPositionOptions=function(t,e){var i=new Set,o=new Set;return this.yPositionHonorsViewportThreshold(t)?i.add(t):this.yPositionDoesntCollideWithViewport(t)&&o.add(t),this.yPositionHonorsViewportThreshold(e)?i.add(e):this.yPositionDoesntCollideWithViewport(e)&&o.add(e),i.size?i:o},O.prototype.yPositionHonorsViewportThreshold=function(t){var e=this.adapter.getViewportHeight();return t+this.adapter.getTooltipSize().height+this.minViewportTooltipThreshold<=e&&t>=this.minViewportTooltipThreshold},O.prototype.yPositionDoesntCollideWithViewport=function(t){var e=this.adapter.getViewportHeight();return t+this.adapter.getTooltipSize().height<=e&&0<=t},O.prototype.calculateTooltipWithCaretStyles=function(t){this.adapter.clearTooltipCaretStyles();var e=this.adapter.getTooltipCaretBoundingRect();if(!t||!e)return{position:v.PositionWithCaret.DETECTED,top:0,left:0};var i=e.width/v.numbers.ANIMATION_SCALE,o=e.height/v.numbers.ANIMATION_SCALE/2,n=this.adapter.getTooltipSize(),r=this.calculateYWithCaretDistanceOptions(t,n.height,{caretWidth:i,caretHeight:o}),s=this.calculateXWithCaretDistanceOptions(t,n.width,{caretWidth:i,caretHeight:o}),a=this.validateTooltipWithCaretDistances(r,s);a.size<1&&(a=this.generateBackupPositionOption(t,n,{caretWidth:i,caretHeight:o}));var l=this.determineTooltipWithCaretDistance(a),h=l.position,c=l.xDistance,d=l.yDistance,u=this.setCaretPositionStyles(h,{caretWidth:i,caretHeight:o});return{yTransformOrigin:u.yTransformOrigin,xTransformOrigin:u.xTransformOrigin,top:d,left:c}},O.prototype.calculateXWithCaretDistanceOptions=function(t,e,i){var o=i.caretWidth,n=i.caretHeight,r=!this.adapter.isRTL(),s=t.left+t.width/2,a=t.left-(e+this.anchorGap+n),l=t.right+this.anchorGap+n,h=r?a:l,c=r?l:a,d=s-(v.numbers.CARET_INDENTATION+o/2),u=s-(e-v.numbers.CARET_INDENTATION-o/2),p=r?d:u,T=r?u:d,E=s-e/2;return new Map([[v.XPositionWithCaret.START,p],[v.XPositionWithCaret.CENTER,E],[v.XPositionWithCaret.END,T],[v.XPositionWithCaret.SIDE_END,c],[v.XPositionWithCaret.SIDE_START,h]])},O.prototype.calculateYWithCaretDistanceOptions=function(t,e,i){var o=i.caretWidth,n=i.caretHeight,r=t.top+t.height/2,s=t.bottom+this.anchorGap+n,a=t.top-(this.anchorGap+e+n),l=r-(v.numbers.CARET_INDENTATION+o/2),h=r-e/2,c=r-(e-v.numbers.CARET_INDENTATION-o/2);return new Map([[v.YPositionWithCaret.ABOVE,a],[v.YPositionWithCaret.BELOW,s],[v.YPositionWithCaret.SIDE_TOP,l],[v.YPositionWithCaret.SIDE_CENTER,h],[v.YPositionWithCaret.SIDE_BOTTOM,c]])},O.prototype.repositionTooltipOnAnchorMove=function(){var t=this.adapter.getAnchorBoundingRect();t&&this.anchorRect&&(t.top===this.anchorRect.top&&t.left===this.anchorRect.left&&t.height===this.anchorRect.height&&t.width===this.anchorRect.width||(this.anchorRect=t,this.parentRect=this.adapter.getParentBoundingRect(),this.richTooltip?this.positionRichTooltip():this.positionPlainTooltip()))},O.prototype.validateTooltipWithCaretDistances=function(t,e){var i,o,n,r,s,a,l=new Map,h=new Map,c=new Map([[v.YPositionWithCaret.ABOVE,[v.XPositionWithCaret.START,v.XPositionWithCaret.CENTER,v.XPositionWithCaret.END]],[v.YPositionWithCaret.BELOW,[v.XPositionWithCaret.START,v.XPositionWithCaret.CENTER,v.XPositionWithCaret.END]],[v.YPositionWithCaret.SIDE_TOP,[v.XPositionWithCaret.SIDE_START,v.XPositionWithCaret.SIDE_END]],[v.YPositionWithCaret.SIDE_CENTER,[v.XPositionWithCaret.SIDE_START,v.XPositionWithCaret.SIDE_END]],[v.YPositionWithCaret.SIDE_BOTTOM,[v.XPositionWithCaret.SIDE_START,v.XPositionWithCaret.SIDE_END]]]);try{for(var d=A(c.keys()),u=d.next();!u.done;u=d.next()){var p=u.value,T=t.get(p);if(this.yPositionHonorsViewportThreshold(T))try{for(var E=(n=void 0,A(c.get(p))),f=E.next();!f.done;f=E.next()){var m=f.value,y=e.get(m);if(this.positionHonorsViewportThreshold(y)){var g=this.caretPositionOptionsMapping(m,p);l.set(g,{xDistance:y,yDistance:T})}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=E.return)&&r.call(E)}finally{if(n)throw n.error}}if(this.yPositionDoesntCollideWithViewport(T))try{for(var C=(s=void 0,A(c.get(p))),O=C.next();!O.done;O=C.next())m=O.value,y=e.get(m),this.positionDoesntCollideWithViewport(y)&&(g=this.caretPositionOptionsMapping(m,p),h.set(g,{xDistance:y,yDistance:T}))}catch(t){s={error:t}}finally{try{O&&!O.done&&(a=C.return)&&a.call(C)}finally{if(s)throw s.error}}}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return l.size?l:h},O.prototype.generateBackupPositionOption=function(t,e,i){var o,n,r,s,a=!this.adapter.isRTL();n=t.left<0?(o=this.minViewportTooltipThreshold+i.caretHeight,a?v.XPositionWithCaret.END:v.XPositionWithCaret.START):(o=this.adapter.getViewportWidth()-(e.width+this.minViewportTooltipThreshold+i.caretHeight),a?v.XPositionWithCaret.START:v.XPositionWithCaret.END),s=t.top<0?(r=this.minViewportTooltipThreshold+i.caretHeight,v.YPositionWithCaret.BELOW):(r=this.adapter.getViewportHeight()-(e.height+this.minViewportTooltipThreshold+i.caretHeight),v.YPositionWithCaret.ABOVE);var l=this.caretPositionOptionsMapping(n,s);return new Map([[l,{xDistance:o,yDistance:r}]])},O.prototype.determineTooltipWithCaretDistance=function(e){if(e.has(this.tooltipPositionWithCaret)){var t=e.get(this.tooltipPositionWithCaret);return{position:this.tooltipPositionWithCaret,xDistance:t.xDistance,yDistance:t.yDistance}}var i=[v.PositionWithCaret.ABOVE_START,v.PositionWithCaret.ABOVE_CENTER,v.PositionWithCaret.ABOVE_END,v.PositionWithCaret.TOP_SIDE_START,v.PositionWithCaret.CENTER_SIDE_START,v.PositionWithCaret.BOTTOM_SIDE_START,v.PositionWithCaret.TOP_SIDE_END,v.PositionWithCaret.CENTER_SIDE_END,v.PositionWithCaret.BOTTOM_SIDE_END,v.PositionWithCaret.BELOW_START,v.PositionWithCaret.BELOW_CENTER,v.PositionWithCaret.BELOW_END].find(function(t){return e.has(t)}),o=e.get(i);return{position:i,xDistance:o.xDistance,yDistance:o.yDistance}},O.prototype.caretPositionOptionsMapping=function(t,e){switch(e){case v.YPositionWithCaret.ABOVE:if(t===v.XPositionWithCaret.START)return v.PositionWithCaret.ABOVE_START;if(t===v.XPositionWithCaret.CENTER)return v.PositionWithCaret.ABOVE_CENTER;if(t===v.XPositionWithCaret.END)return v.PositionWithCaret.ABOVE_END;break;case v.YPositionWithCaret.BELOW:if(t===v.XPositionWithCaret.START)return v.PositionWithCaret.BELOW_START;if(t===v.XPositionWithCaret.CENTER)return v.PositionWithCaret.BELOW_CENTER;if(t===v.XPositionWithCaret.END)return v.PositionWithCaret.BELOW_END;break;case v.YPositionWithCaret.SIDE_TOP:if(t===v.XPositionWithCaret.SIDE_START)return v.PositionWithCaret.TOP_SIDE_START;if(t===v.XPositionWithCaret.SIDE_END)return v.PositionWithCaret.TOP_SIDE_END;break;case v.YPositionWithCaret.SIDE_CENTER:if(t===v.XPositionWithCaret.SIDE_START)return v.PositionWithCaret.CENTER_SIDE_START;if(t===v.XPositionWithCaret.SIDE_END)return v.PositionWithCaret.CENTER_SIDE_END;break;case v.YPositionWithCaret.SIDE_BOTTOM:if(t===v.XPositionWithCaret.SIDE_START)return v.PositionWithCaret.BOTTOM_SIDE_START;if(t===v.XPositionWithCaret.SIDE_END)return v.PositionWithCaret.BOTTOM_SIDE_END}throw new Error("MDCTooltipFoundation: Invalid caret position of "+t+", "+e)},O.prototype.setCaretPositionStyles=function(t,e){var i,o,n=this.calculateCaretPositionOnTooltip(t,e);if(!n)return{yTransformOrigin:0,xTransformOrigin:0};this.adapter.clearTooltipCaretStyles(),this.adapter.setTooltipCaretStyle(n.yAlignment,n.yAxisPx),this.adapter.setTooltipCaretStyle(n.xAlignment,n.xAxisPx);var r=n.skew*(Math.PI/180),s=Math.cos(r);this.adapter.setTooltipCaretStyle("transform","rotate("+n.rotation+"deg) skewY("+n.skew+"deg) scaleX("+s+")"),this.adapter.setTooltipCaretStyle("transform-origin",n.xAlignment+" "+n.yAlignment);try{for(var a=A(n.caretCorners),l=a.next();!l.done;l=a.next()){var h=l.value;this.adapter.setTooltipCaretStyle(h,"0")}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return{yTransformOrigin:n.yTransformOrigin,xTransformOrigin:n.xTransformOrigin}},O.prototype.calculateCaretPositionOnTooltip=function(t,e){var i=!this.adapter.isRTL(),o=this.adapter.getComputedStyleProperty("width"),n=this.adapter.getComputedStyleProperty("height");if(o&&n&&e){var r="calc(("+o+" - "+e.caretWidth+"px) / 2)",s="calc(("+n+" - "+e.caretWidth+"px) / 2)",a="0",l=v.numbers.CARET_INDENTATION+"px",h="calc("+o+" - "+l+")",c="calc("+n+" - "+l+")",d=Math.abs(55),u=["border-bottom-right-radius","border-top-left-radius"],p=["border-bottom-left-radius","border-top-right-radius"];switch(t){case v.PositionWithCaret.BELOW_CENTER:return{yAlignment:v.strings.TOP,xAlignment:v.strings.LEFT,yAxisPx:a,xAxisPx:r,rotation:-35,skew:-20,xTransformOrigin:r,yTransformOrigin:a,caretCorners:u};case v.PositionWithCaret.BELOW_END:return{yAlignment:v.strings.TOP,xAlignment:i?v.strings.RIGHT:v.strings.LEFT,yAxisPx:a,xAxisPx:l,rotation:i?35:-35,skew:i?20:-20,xTransformOrigin:i?h:l,yTransformOrigin:a,caretCorners:i?p:u};case v.PositionWithCaret.BELOW_START:return{yAlignment:v.strings.TOP,xAlignment:i?v.strings.LEFT:v.strings.RIGHT,yAxisPx:a,xAxisPx:l,rotation:i?-35:35,skew:i?-20:20,xTransformOrigin:i?l:h,yTransformOrigin:a,caretCorners:i?u:p};case v.PositionWithCaret.TOP_SIDE_END:return{yAlignment:v.strings.TOP,xAlignment:i?v.strings.LEFT:v.strings.RIGHT,yAxisPx:l,xAxisPx:a,rotation:i?d:-1*d,skew:i?-20:20,xTransformOrigin:i?a:o,yTransformOrigin:l,caretCorners:i?u:p};case v.PositionWithCaret.CENTER_SIDE_END:return{yAlignment:v.strings.TOP,xAlignment:i?v.strings.LEFT:v.strings.RIGHT,yAxisPx:s,xAxisPx:a,rotation:i?d:-1*d,skew:i?-20:20,xTransformOrigin:i?a:o,yTransformOrigin:s,caretCorners:i?u:p};case v.PositionWithCaret.BOTTOM_SIDE_END:return{yAlignment:v.strings.BOTTOM,xAlignment:i?v.strings.LEFT:v.strings.RIGHT,yAxisPx:l,xAxisPx:a,rotation:i?-1*d:d,skew:i?20:-20,xTransformOrigin:i?a:o,yTransformOrigin:c,caretCorners:i?p:u};case v.PositionWithCaret.TOP_SIDE_START:return{yAlignment:v.strings.TOP,xAlignment:i?v.strings.RIGHT:v.strings.LEFT,yAxisPx:l,xAxisPx:a,rotation:i?-1*d:d,skew:i?20:-20,xTransformOrigin:i?o:a,yTransformOrigin:l,caretCorners:i?p:u};case v.PositionWithCaret.CENTER_SIDE_START:return{yAlignment:v.strings.TOP,xAlignment:i?v.strings.RIGHT:v.strings.LEFT,yAxisPx:s,xAxisPx:a,rotation:i?-1*d:d,skew:i?20:-20,xTransformOrigin:i?o:a,yTransformOrigin:s,caretCorners:i?p:u};case v.PositionWithCaret.BOTTOM_SIDE_START:return{yAlignment:v.strings.BOTTOM,xAlignment:i?v.strings.RIGHT:v.strings.LEFT,yAxisPx:l,xAxisPx:a,rotation:i?d:-1*d,skew:i?-20:20,xTransformOrigin:i?o:a,yTransformOrigin:c,caretCorners:i?u:p};case v.PositionWithCaret.ABOVE_CENTER:return{yAlignment:v.strings.BOTTOM,xAlignment:v.strings.LEFT,yAxisPx:a,xAxisPx:r,rotation:35,skew:20,xTransformOrigin:r,yTransformOrigin:n,caretCorners:p};case v.PositionWithCaret.ABOVE_END:return{yAlignment:v.strings.BOTTOM,xAlignment:i?v.strings.RIGHT:v.strings.LEFT,yAxisPx:a,xAxisPx:l,rotation:i?-35:35,skew:i?-20:20,xTransformOrigin:i?h:l,yTransformOrigin:n,caretCorners:i?u:p};default:case v.PositionWithCaret.ABOVE_START:return{yAlignment:v.strings.BOTTOM,xAlignment:i?v.strings.LEFT:v.strings.RIGHT,yAxisPx:a,xAxisPx:l,rotation:i?35:-35,skew:i?20:-20,xTransformOrigin:i?l:h,yTransformOrigin:n,caretCorners:i?p:u}}}},O.prototype.clearShowTimeout=function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)},O.prototype.clearHideTimeout=function(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)},O.prototype.attachScrollHandler=function(t){var e=this;this.addAncestorScrollEventListeners.push(function(){t("scroll",e.windowScrollHandler)})},O.prototype.removeScrollHandler=function(t){var e=this;this.removeAncestorScrollEventListeners.push(function(){t("scroll",e.windowScrollHandler)})},O.prototype.destroy=function(){var e,t;this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=null),this.clearHideTimeout(),this.clearShowTimeout(),this.adapter.removeClass(d),this.adapter.removeClass(T),this.adapter.removeClass(u),this.adapter.removeClass(E),this.adapter.removeClass(f),this.richTooltip&&this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.adapter.deregisterAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler);try{for(var i=A(this.removeAncestorScrollEventListeners),o=i.next();!o.done;o=i.next())(0,o.value)()}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.animFrame.cancelAll()},O);function O(t){var e=y.call(this,r(r({},O.defaultAdapter),t))||this;return e.tooltipShown=!1,e.anchorGap=v.numbers.BOUNDED_ANCHOR_GAP,e.xTooltipPos=v.XPosition.DETECTED,e.yTooltipPos=v.YPosition.DETECTED,e.tooltipPositionWithCaret=v.PositionWithCaret.DETECTED,e.minViewportTooltipThreshold=v.numbers.MIN_VIEWPORT_TOOLTIP_THRESHOLD,e.hideDelayMs=v.numbers.HIDE_DELAY_MS,e.showDelayMs=v.numbers.SHOW_DELAY_MS,e.anchorRect=null,e.parentRect=null,e.frameId=null,e.hideTimeout=null,e.showTimeout=null,e.addAncestorScrollEventListeners=new Array,e.removeAncestorScrollEventListeners=new Array,e.animFrame=new a.AnimationFrame,e.anchorBlurHandler=function(t){e.handleAnchorBlur(t)},e.documentClickHandler=function(t){e.handleDocumentClick(t)},e.documentKeydownHandler=function(t){e.handleKeydown(t)},e.tooltipMouseEnterHandler=function(){e.handleTooltipMouseEnter()},e.tooltipMouseLeaveHandler=function(){e.handleTooltipMouseLeave()},e.richTooltipFocusOutHandler=function(t){e.handleRichTooltipFocusOut(t)},e.windowScrollHandler=function(){e.handleWindowScrollEvent()},e.windowResizeHandler=function(){e.handleWindowChangeEvent()},e}e.MDCTooltipFoundation=C,e.default=C},17:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrame=void 0;var o=(n.prototype.request=function(e,i){var o=this;this.cancel(e);var t=requestAnimationFrame(function(t){o.rafIDs.delete(e),i(t)});this.rafIDs.set(e,t)},n.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},n.prototype.cancelAll=function(){var i=this;this.rafIDs.forEach(function(t,e){i.cancel(e)})},n.prototype.getQueue=function(){var i=[];return this.rafIDs.forEach(function(t,e){i.push(e)}),i},n);function n(){this.rafIDs=new Map}e.AnimationFrame=o},266:function(t,e,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,i,o){void 0===o&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,o){void 0===o&&(o=i),t[o]=e[i]}),n=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||o(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(i(267),e),n(i(268),e),n(i(132),e),n(i(73),e)},267:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},268:function(t,e,i){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTooltip=void 0;var r,s=i(1),a=i(73),l=i(132),h=(r=s.MDCComponent,n(c,r),c.attachTo=function(t){return new c(t)},c.prototype.initialize=function(){var t=this.root.getAttribute("id");if(!t)throw new Error("MDCTooltip: Tooltip component must have an id.");var e=document.querySelector('[data-tooltip-id="'+t+'"]')||document.querySelector('[aria-describedby="'+t+'"]');if(!e)throw new Error("MDCTooltip: Tooltip component requires an anchor element annotated with [aria-describedby] or [data-tooltip-id].");this.anchorElem=e},c.prototype.initialSyncWithDOM=function(){var e=this;this.isTooltipRich=this.foundation.isRich(),this.isTooltipPersistent=this.foundation.isPersistent(),this.handleMouseEnter=function(){e.foundation.handleAnchorMouseEnter()},this.handleFocus=function(t){e.foundation.handleAnchorFocus(t)},this.handleMouseLeave=function(){e.foundation.handleAnchorMouseLeave()},this.handleTransitionEnd=function(){e.foundation.handleTransitionEnd()},this.handleClick=function(){e.foundation.handleAnchorClick()},this.handleTouchstart=function(){e.foundation.handleAnchorTouchstart()},this.handleTouchend=function(){e.foundation.handleAnchorTouchend()},this.isTooltipRich&&this.isTooltipPersistent?this.anchorElem.addEventListener("click",this.handleClick):(this.anchorElem.addEventListener("mouseenter",this.handleMouseEnter),this.anchorElem.addEventListener("focus",this.handleFocus),this.anchorElem.addEventListener("mouseleave",this.handleMouseLeave),this.anchorElem.addEventListener("touchstart",this.handleTouchstart),this.anchorElem.addEventListener("touchend",this.handleTouchend)),this.listen("transitionend",this.handleTransitionEnd)},c.prototype.destroy=function(){this.anchorElem&&(this.isTooltipRich&&this.isTooltipPersistent?this.anchorElem.removeEventListener("click",this.handleClick):(this.anchorElem.removeEventListener("mouseenter",this.handleMouseEnter),this.anchorElem.removeEventListener("focus",this.handleFocus),this.anchorElem.removeEventListener("mouseleave",this.handleMouseLeave),this.anchorElem.removeEventListener("touchstart",this.handleTouchstart),this.anchorElem.removeEventListener("touchend",this.handleTouchend))),this.unlisten("transitionend",this.handleTransitionEnd),r.prototype.destroy.call(this)},c.prototype.setTooltipPosition=function(t){this.foundation.setTooltipPosition(t)},c.prototype.setAnchorBoundaryType=function(t){this.foundation.setAnchorBoundaryType(t)},c.prototype.setShowDelay=function(t){this.foundation.setShowDelay(t)},c.prototype.setHideDelay=function(t){this.foundation.setHideDelay(t)},c.prototype.hide=function(){this.foundation.hide()},c.prototype.isShown=function(){return this.foundation.isShown()},c.prototype.attachScrollHandler=function(t){this.foundation.attachScrollHandler(t)},c.prototype.removeScrollHandler=function(t){this.foundation.removeScrollHandler(t)},c.prototype.getDefaultFoundation=function(){var n=this,t={getAttribute:function(t){return n.root.getAttribute(t)},setAttribute:function(t,e){n.root.setAttribute(t,e)},removeAttribute:function(t){n.root.removeAttribute(t)},addClass:function(t){n.root.classList.add(t)},hasClass:function(t){return n.root.classList.contains(t)},removeClass:function(t){n.root.classList.remove(t)},getComputedStyleProperty:function(t){return window.getComputedStyle(n.root).getPropertyValue(t)},setStyleProperty:function(t,e){n.root.style.setProperty(t,e)},setSurfaceAnimationStyleProperty:function(t,e){var i=n.root.querySelector("."+a.CssClasses.SURFACE_ANIMATION);null==i||i.style.setProperty(t,e)},getViewportWidth:function(){return window.innerWidth},getViewportHeight:function(){return window.innerHeight},getTooltipSize:function(){return{width:n.root.offsetWidth,height:n.root.offsetHeight}},getAnchorBoundingRect:function(){return n.anchorElem?n.anchorElem.getBoundingClientRect():null},getParentBoundingRect:function(){var t,e;return null!==(e=null===(t=n.root.parentElement)||void 0===t?void 0:t.getBoundingClientRect())&&void 0!==e?e:null},getAnchorAttribute:function(t){return n.anchorElem?n.anchorElem.getAttribute(t):null},setAnchorAttribute:function(t,e){var i;null===(i=n.anchorElem)||void 0===i||i.setAttribute(t,e)},isRTL:function(){return"rtl"===getComputedStyle(n.root).direction},anchorContainsElement:function(t){var e;return!!(null===(e=n.anchorElem)||void 0===e?void 0:e.contains(t))},tooltipContainsElement:function(t){return n.root.contains(t)},focusAnchorElement:function(){var t;null===(t=n.anchorElem)||void 0===t||t.focus()},registerEventHandler:function(t,e){n.root instanceof HTMLElement&&n.root.addEventListener(t,e)},deregisterEventHandler:function(t,e){n.root instanceof HTMLElement&&n.root.removeEventListener(t,e)},registerAnchorEventHandler:function(t,e){var i;null===(i=n.anchorElem)||void 0===i||i.addEventListener(t,e)},deregisterAnchorEventHandler:function(t,e){var i;null===(i=n.anchorElem)||void 0===i||i.removeEventListener(t,e)},registerDocumentEventHandler:function(t,e){document.body.addEventListener(t,e)},deregisterDocumentEventHandler:function(t,e){document.body.removeEventListener(t,e)},registerWindowEventHandler:function(t,e){window.addEventListener(t,e)},deregisterWindowEventHandler:function(t,e){window.removeEventListener(t,e)},notifyHidden:function(){n.emit(a.events.HIDDEN,{})},getTooltipCaretBoundingRect:function(){var t=n.root.querySelector("."+a.CssClasses.TOOLTIP_CARET_TOP);return t?t.getBoundingClientRect():null},setTooltipCaretStyle:function(t,e){var i=n.root.querySelector("."+a.CssClasses.TOOLTIP_CARET_TOP),o=n.root.querySelector("."+a.CssClasses.TOOLTIP_CARET_BOTTOM);i&&o&&(i.style.setProperty(t,e),o.style.setProperty(t,e))},clearTooltipCaretStyles:function(){var t=n.root.querySelector("."+a.CssClasses.TOOLTIP_CARET_TOP),e=n.root.querySelector("."+a.CssClasses.TOOLTIP_CARET_BOTTOM);t&&e&&(t.removeAttribute("style"),e.removeAttribute("style"))},getActiveElement:function(){return document.activeElement}};return new l.MDCTooltipFoundation(t)},c);function c(){return null!==r&&r.apply(this,arguments)||this}e.MDCTooltip=h},73:function(t,e,i){"use strict";var o,n;Object.defineProperty(e,"__esModule",{value:!0}),e.XPositionWithCaret=e.YPositionWithCaret=e.PositionWithCaret=e.strings=e.YPosition=e.AnchorBoundaryType=e.XPosition=e.events=e.attributes=e.numbers=e.CssClasses=void 0,(n=o=o||{}).RICH="mdc-tooltip--rich",n.SHOWN="mdc-tooltip--shown",n.SHOWING="mdc-tooltip--showing",n.SHOWING_TRANSITION="mdc-tooltip--showing-transition",n.HIDE="mdc-tooltip--hide",n.HIDE_TRANSITION="mdc-tooltip--hide-transition",n.MULTILINE_TOOLTIP="mdc-tooltip--multiline",n.SURFACE="mdc-tooltip__surface",n.SURFACE_ANIMATION="mdc-tooltip__surface-animation",n.TOOLTIP_CARET_TOP="mdc-tooltip__caret-surface-top",n.TOOLTIP_CARET_BOTTOM="mdc-tooltip__caret-surface-bottom",e.CssClasses=o;e.numbers={BOUNDED_ANCHOR_GAP:4,UNBOUNDED_ANCHOR_GAP:8,MIN_VIEWPORT_TOOLTIP_THRESHOLD:8,HIDE_DELAY_MS:600,SHOW_DELAY_MS:500,MIN_HEIGHT:24,MAX_WIDTH:200,CARET_INDENTATION:24,ANIMATION_SCALE:.8};e.attributes={ARIA_EXPANDED:"aria-expanded",ARIA_HASPOPUP:"aria-haspopup",PERSISTENT:"data-mdc-tooltip-persistent",SCROLLABLE_ANCESTOR:"tooltip-scrollable-ancestor",HAS_CARET:"data-mdc-tooltip-has-caret"};var r,s,a,l,h,c;e.events={HIDDEN:"MDCTooltip:hidden"},(s=r=r||{})[s.DETECTED=0]="DETECTED",s[s.START=1]="START",s[s.CENTER=2]="CENTER",s[s.END=3]="END",e.XPosition=r,(l=a=a||{})[l.DETECTED=0]="DETECTED",l[l.ABOVE=1]="ABOVE",l[l.BELOW=2]="BELOW",e.YPosition=a,(c=h=h||{})[c.BOUNDED=0]="BOUNDED",c[c.UNBOUNDED=1]="UNBOUNDED",e.AnchorBoundaryType=h;var d,u,p,T,E,f;e.strings={LEFT:"left",RIGHT:"right",CENTER:"center",TOP:"top",BOTTOM:"bottom"},(u=d=d||{})[u.DETECTED=0]="DETECTED",u[u.ABOVE_START=1]="ABOVE_START",u[u.ABOVE_CENTER=2]="ABOVE_CENTER",u[u.ABOVE_END=3]="ABOVE_END",u[u.TOP_S
vendor: 4,409 bytes, line 1
1IDE_START=4]="TOP_SIDE_START",u[u.CENTER_SIDE_START=5]="CENTER_SIDE_START",u[u.BOTTOM_SIDE_START=6]="BOTTOM_SIDE_START",u[u.TOP_SIDE_END=7]="TOP_SIDE_END",u[u.CENTER_SIDE_END=8]="CENTER_SIDE_END",u[u.BOTTOM_SIDE_END=9]="BOTTOM_SIDE_END",u[u.BELOW_START=10]="BELOW_START",u[u.BELOW_CENTER=11]="BELOW_CENTER",u[u.BELOW_END=12]="BELOW_END",e.PositionWithCaret=d,(T=p=p||{})[T.ABOVE=1]="ABOVE",T[T.BELOW=2]="BELOW",T[T.SIDE_TOP=3]="SIDE_TOP",T[T.SIDE_CENTER=4]="SIDE_CENTER",T[T.SIDE_BOTTOM=5]="SIDE_BOTTOM",e.YPositionWithCaret=p,(f=E=E||{})[f.START=1]="START",f[f.CENTER=2]="CENTER",f[f.END=3]="END",f[f.SIDE_START=4]="SIDE_START",f[f.SIDE_END=5]="SIDE_END",e.XPositionWithCaret=E},8:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isNavigationEvent=o.normalizeKey=o.KEY=void 0,o.KEY={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"};var n=new Set;n.add(o.KEY.BACKSPACE),n.add(o.KEY.ENTER),n.add(o.KEY.SPACEBAR),n.add(o.KEY.PAGE_UP),n.add(o.KEY.PAGE_DOWN),n.add(o.KEY.END),n.add(o.KEY.HOME),n.add(o.KEY.ARROW_LEFT),n.add(o.KEY.ARROW_UP),n.add(o.KEY.ARROW_RIGHT),n.add(o.KEY.ARROW_DOWN),n.add(o.KEY.DELETE),n.add(o.KEY.ESCAPE),n.add(o.KEY.TAB);var i=8,r=13,s=32,a=33,l=34,h=35,c=36,d=37,u=38,p=39,T=40,E=46,f=27,m=9,y=new Map;y.set(i,o.KEY.BACKSPACE),y.set(r,o.KEY.ENTER),y.set(s,o.KEY.SPACEBAR),y.set(a,o.KEY.PAGE_UP),y.set(l,o.KEY.PAGE_DOWN),y.set(h,o.KEY.END),y.set(c,o.KEY.HOME),y.set(d,o.KEY.ARROW_LEFT),y.set(u,o.KEY.ARROW_UP),y.set(p,o.KEY.ARROW_RIGHT),y.set(T,o.KEY.ARROW_DOWN),y.set(E,o.KEY.DELETE),y.set(f,o.KEY.ESCAPE),y.set(m,o.KEY.TAB);var g=new Set;function C(t){var e=t.key;if(n.has(e))return e;var i=y.get(t.keyCode);return i||o.KEY.UNKNOWN}g.add(o.KEY.PAGE_UP),g.add(o.KEY.PAGE_DOWN),g.add(o.KEY.END),g.add(o.KEY.HOME),g.add(o.KEY.ARROW_LEFT),g.add(o.KEY.ARROW_UP),g.add(o.KEY.ARROW_RIGHT),g.add(o.KEY.ARROW_DOWN),o.normalizeKey=C,o.isNavigationEvent=function(t){return g.has(C(t))}}},n.c=o,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=266);function n(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var i,o});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/top-app-bar",[],e):"object"==typeof exports?exports["top-app-bar"]=e():(t.mdc=t.mdc||{},t.mdc["top-app-bar"]=e())}(this,function(){return r={},o.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var r=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=r,e.default=r},1:function(t,e,n){"use strict";var o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};
vendor: 9,393 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var r=n(0),a=(s.attachTo=function(t){return new s(t,new r.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:n,detail:e}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(r)},s);function s(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=t,this.initialize.apply(this,i([],o(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},133:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFixedTopAppBarFoundation=void 0;var i,a=n(34),s=n(74),c=(i=s.MDCTopAppBarFoundation,o(u,i),u.prototype.handleTargetScroll=function(){this.adapter.getViewportScrollY()<=0?this.wasScrolled&&(this.adapter.removeClass(a.cssClasses.FIXED_SCROLLED_CLASS),this.wasScrolled=!1):this.wasScrolled||(this.adapter.addClass(a.cssClasses.FIXED_SCROLLED_CLASS),this.wasScrolled=!0)},u);function u(){var t=null!==i&&i.apply(this,arguments)||this;return t.wasScrolled=!1,t}e.MDCFixedTopAppBarFoundation=c,e.default=c},134:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCShortTopAppBarFoundation=void 0;var i,a=n(34),s=n(75),c=(i=s.MDCTopAppBarBaseFoundation,o(u,i),Object.defineProperty(u.prototype,"isCollapsed",{get:function(){return this.collapsed},enumerable:!1,configurable:!0}),u.prototype.init=function(){i.prototype.init.call(this),0<this.adapter.getTotalActionItems()&&this.adapter.addClass(a.cssClasses.SHORT_HAS_ACTION_ITEM_CLASS),this.setAlwaysCollapsed(this.adapter.hasClass(a.cssClasses.SHORT_COLLAPSED_CLASS))},u.prototype.setAlwaysCollapsed=function(t){this.isAlwaysCollapsed=!!t,this.isAlwaysCollapsed?this.collapse():this.maybeCollapseBar()},u.prototype.getAlwaysCollapsed=function(){return this.isAlwaysCollapsed},u.prototype.handleTargetScroll=function(){this.maybeCollapseBar()},u.prototype.maybeCollapseBar=function(){this.isAlwaysCollapsed||(this.adapter.getViewportScrollY()<=0?this.collapsed&&this.uncollapse():this.collapsed||this.collapse())},u.prototype.uncollapse=function(){this.adapter.removeClass(a.cssClasses.SHORT_COLLAPSED_CLASS),this.collapsed=!1},u.prototype.collapse=function(){this.adapter.addClass(a.cssClasses.SHORT_COLLAPSED_CLASS),this.collapsed=!0},u);function u(t){var e=i.call(this,t)||this;return e.collapsed=!1,e.isAlwaysCollapsed=!1,e}e.MDCShortTopAppBarFoundation=c,e.default=c},2:function(t,e,n){"use strict";function r(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(r(n,e))return n;n=n.parentElement}return null},e.matches=r,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}},269:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(270),e),o(n(271),e),o(n(34),e),o(n(75),e),o(n(133),e),o(n(134),e),o(n(74),e)},270:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},271:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTopAppBar=void 0;var a,s=n(1),c=n(6),u=n(34),l=n(133),p=n(134),d=n(74),f=(a=s.MDCComponent,o(h,a),h.attachTo=function(t){return new h(t)},h.prototype.initialize=function(n){void 0===n&&(n=function(t){return c.MDCRipple.attachTo(t)}),this.navIcon=this.root.querySelector(u.strings.NAVIGATION_ICON_SELECTOR);var t=[].slice.call(this.root.querySelectorAll(u.strings.ACTION_ITEM_SELECTOR));this.navIcon&&t.push(this.navIcon),this.iconRipples=t.map(function(t){var e=n(t);return e.unbounded=!0,e}),this.scrollTarget=window},h.prototype.initialSyncWithDOM=function(){this.handleNavigationClick=this.foundation.handleNavigationClick.bind(this.foundation),this.handleWindowResize=this.foundation.handleWindowResize.bind(this.foundation),this.handleTargetScroll=this.foundation.handleTargetScroll.bind(this.foundation),this.scrollTarget.addEventListener("scroll",this.handleTargetScroll),this.navIcon&&this.navIcon.addEventListener("click",this.handleNavigationClick);var t=this.root.classList.contains(u.cssClasses.FIXED_CLASS);this.root.classList.contains(u.cssClasses.SHORT_CLASS)||t||window.addEventListener("resize",this.handleWindowResize)},h.prototype.destroy=function(){var e,t;try{for(var n=i(this.iconRipples),r=n.next();!r.done;r=n.next())r.value.destroy()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll),this.navIcon&&this.navIcon.removeEventListener("click",this.handleNavigationClick);var o=this.root.classList.contains(u.cssClasses.FIXED_CLASS);this.root.classList.contains(u.cssClasses.SHORT_CLASS)||o||window.removeEventListener("resize",this.handleWindowResize),a.prototype.destroy.call(this)},h.prototype.setScrollTarget=function(t){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll),this.scrollTarget=t,this.handleTargetScroll=this.foundation.handleTargetScroll.bind(this.foundation),this.scrollTarget.addEventListener("scroll",this.handleTargetScroll)},h.prototype.getDefaultFoundation=function(){var n=this,t={hasClass:function(t){return n.root.classList.contains(t)},addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},setStyle:function(t,e){return n.root.style.setProperty(t,e)},getTopAppBarHeight:function(){return n.root.clientHeight},notifyNavigationIconClicked:function(){return n.emit(u.strings.NAVIGATION_EVENT,{})},getViewportScrollY:function(){var t=n.scrollTarget,e=n.scrollTarget;return void 0!==t.pageYOffset?t.pageYOffset:e.scrollTop},getTotalActionItems:function(){return n.root.querySelectorAll(u.strings.ACTION_ITEM_SELECTOR).length}};return this.root.classList.contains(u.cssClasses.SHORT_CLASS)?new p.MDCShortTopAppBarFoundation(t):this.root.classList.contains(u.cssClasses.FIXED_CLASS)?new l.MDCFixedTopAppBarFoundation(t):new d.MDCTopAppBarFoundation(t)},h);function h(){return null!==a&&a.apply(this,arguments)||this}e.MDCTopAppBar=f},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,r=t.CSS;if("boolean"==typeof a&&!e)return a;
vendor: 4,130 bytes, line 1
1if(!(r&&"function"==typeof r.supports))return!1;var o=r.supports("--css-vars","yes"),i=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=o||i,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var r,o,i=e.x,a=e.y,s=i+n.left,c=a+n.top;if("touchstart"===t.type){var u=t;r=u.changedTouches[0].pageX-s,o=u.changedTouches[0].pageY-c}else{var l=t;r=l.pageX-s,o=l.pageY-c}return{x:r,y:o}}},34:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.numbers=e.cssClasses=void 0;e.cssClasses={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"};e.numbers={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128};e.strings={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"}},4:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,c=n(0),u=n(7),l=n(3),p=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup","contextmenu"],f=[],h=(s=c.MDCFoundation,o(v,s),Object.defineProperty(v,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=v.cssClasses,r=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(r),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasse
vendor: 4,336 bytes, line 1
1s.FG_DEACTIVATION));var e=v.cssClasses,n=e.ROOT,r=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(r),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasses.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var r=a(p),o=r.next();!o.done;o=r.next()){var i=o.value;this.adapter.registerInteractionHandler(i,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=a(d),o=r.next();!o.done;o=r.next()){var i=o.value;this.adapter.registerDocumentInteractionHandler(i,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(p),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(d),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,n=v.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;r&&void 0!==t&&r.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<f.length&&f.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){f=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,n=e.VAR_FG_TRANSLATE_START,r=e.VAR_FG_TRANSLATE_END,o=v.cssClasse
vendor: 9,089 bytes, line 1
1s,i=o.FG_DEACTIVATION,a=o.FG_ACTIVATION,s=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var l=this.getFgTranslationCoordinates(),p=l.startPoint,d=l.endPoint;c=p.x+"px, "+p.y+"px",u=d.x+"px, "+d.y+"px"}this.adapter.updateCssVariable(n,c),this.adapter.updateCssVariable(r,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(i),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?l.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,n=this.activationState,r=n.hasDeactivationUXRun,o=n.isActivated;!r&&o||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},u.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=i({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var n=Math.floor(e*v.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()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,r=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},v);function v(t){var e=s.call(this,i(i({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},r=function(){};t.document.addEventListener("test",r,n),t.document.removeEventListener("test",r,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var c,u=n(1),l=n(5),p=n(2),d=n(4),f=s(n(3)),h=(c=u.MDCComponent,o(v,c),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return f.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,l.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,l.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return p.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,l.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,l.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new d.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==c&&c.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},74:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
vendor: 3,206 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTopAppBarFoundation=void 0;var i,a=n(34),s=n(75),c=(i=s.MDCTopAppBarBaseFoundation,o(u,i),u.prototype.destroy=function(){i.prototype.destroy.call(this),this.adapter.setStyle("top","")},u.prototype.handleTargetScroll=function(){var t=Math.max(this.adapter.getViewportScrollY(),0),e=t-this.lastScrollPosition;this.lastScrollPosition=t,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=e,0<this.currentAppBarOffsetTop?this.currentAppBarOffsetTop=0:Math.abs(this.currentAppBarOffsetTop)>this.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},u.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout(function(){t.resizeThrottleId=0,t.throttledResizeHandler()},a.numbers.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=0},a.numbers.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},u.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,e=this.currentAppBarOffsetTop<0,n=this.currentAppBarOffsetTop>t,r=e&&n;if(r)this.wasDocked=!1;else{if(!this.wasDocked)return this.wasDocked=!0;if(this.isDockedShowing!==n)return this.isDockedShowing=n,!0}return r},u.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-a.numbers.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",t+"px")}},u.prototype.throttledResizeHandler=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==t&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-t,this.topAppBarHeight=t),this.handleTargetScroll()},u);function u(t){var e=i.call(this,t)||this;return e.wasDocked=!0,e.isDockedShowing=!0,e.currentAppBarOffsetTop=0,e.isCurrentlyBeingResized=!1,e.resizeThrottleId=0,e.resizeDebounceId=0,e.lastScrollPosition=e.adapter.getViewportScrollY(),e.topAppBarHeight=e.adapter.getTopAppBarHeight(),e}e.MDCTopAppBarFoundation=c,e.default=c},75:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTopAppBarBaseFoundation=void 0;var a,s=n(0),c=n(34),u=(a=s.MDCFoundation,o(l,a),Object.defineProperty(l,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"cssClasses",{get:function(){return c.cssClasse
vendor: 4,912 bytes, line 1
1s},enumerable:!1,configurable:!0}),Object.defineProperty(l,"numbers",{get:function(){return c.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!1,configurable:!0}),l.prototype.handleTargetScroll=function(){},l.prototype.handleWindowResize=function(){},l.prototype.handleNavigationClick=function(){this.adapter.notifyNavigationIconClicked()},l);function l(t){return a.call(this,i(i({},l.defaultAdapter),t))||this}e.MDCTopAppBarBaseFoundation=u,e.default=u}},o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=269);function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,r});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/tab-bar",[],e):"object"==typeof exports?exports["tab-bar"]=e():(t.mdc=t.mdc||{},t.mdc["tab-bar"]=e())}(this,function(){return r={},o.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var r=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=r,e.default=r},1:function(t,e,n){"use strict";var o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var r=n(0),a=(s.attachTo=function(t){return new s(t,new r.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var r;void 0===n&&(n=!1),"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:n,detail:e}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(r)},s);function s(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=t,this.initialize.apply(this,i([],o(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},12:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};
vendor: 26,832 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabIndicatorFoundation=void 0;var a,s=n(0),c=n(31),l=(a=s.MDCFoundation,o(u,a),Object.defineProperty(u,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(u,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(u,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),u.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},u);function u(t){return a.call(this,i(i({},u.defaultAdapter),t))||this}e.MDCTabIndicatorFoundation=l,e.default=l},122:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabBarFoundation=void 0;var a=n(0),l=n(123),s=new Set;s.add(l.strings.ARROW_LEFT_KEY),s.add(l.strings.ARROW_RIGHT_KEY),s.add(l.strings.END_KEY),s.add(l.strings.HOME_KEY),s.add(l.strings.ENTER_KEY),s.add(l.strings.SPACE_KEY);var c=new Map;c.set(l.numbers.ARROW_LEFT_KEYCODE,l.strings.ARROW_LEFT_KEY),c.set(l.numbers.ARROW_RIGHT_KEYCODE,l.strings.ARROW_RIGHT_KEY),c.set(l.numbers.END_KEYCODE,l.strings.END_KEY),c.set(l.numbers.HOME_KEYCODE,l.strings.HOME_KEY),c.set(l.numbers.ENTER_KEYCODE,l.strings.ENTER_KEY),c.set(l.numbers.SPACE_KEYCODE,l.strings.SPACE_KEY);var u,d=(u=a.MDCFoundation,o(f,u),Object.defineProperty(f,"strings",{get:function(){return l.strings},enumerable:!1,configurable:!0}),Object.defineProperty(f,"numbers",{get:function(){return l.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(f,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),f.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation=t},f.prototype.activateTab=function(t){var e,n=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(t)&&t!==n&&(-1!==n&&(this.adapter.deactivateTabAtIndex(n),e=this.adapter.getTabIndicatorClientRectAtIndex(n)),this.adapter.activateTabAtIndex(t,e),this.scrollIntoView(t),this.adapter.notifyTabActivated(t))},f.prototype.handleKeyDown=function(t){var e=this.getKeyFromEvent(t);if(void 0!==e)if(this.isActivationKey(e)||t.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(e))return;var n=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),e);this.adapter.setActiveTab(n),this.scrollIntoView(n)}else{var r=this.adapter.getFocusedTabIndex();this.isActivationKey(e)?this.adapter.setActiveTab(r):(n=this.determineTargetFromKey(r,e),this.adapter.focusTabAtIndex(n),this.scrollIntoView(n))}},f.prototype.handleTabInteraction=function(t){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId))},f.prototype.scrollIntoView=function(t){this.indexIsInRange(t)&&(0!==t?t!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(t):this.scrollIntoViewImpl(t):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},f.prototype.determineTargetFromKey=function(t,e){var n=this.isRTL(),r=this.adapter.getTabListLength()-1,o=e===l.strings.END_KEY,i=e===l.strings.ARROW_LEFT_KEY&&!n||e===l.strings.ARROW_RIGHT_KEY&&n,a=e===l.strings.ARROW_RIGHT_KEY&&!n||e===l.strings.ARROW_LEFT_KEY&&n,s=t;return o?s=r:i?s-=1:a?s+=1:s=0,s<0?s=r:r<s&&(s=0),s},f.prototype.calculateScrollIncrement=function(t,e,n,r){var o=this.adapter.getTabDimensionsAtIndex(e),i=o.contentLeft-n-r,a=o.contentRight-n-l.numbers.EXTRA_SCROLL_AMOUNT,s=i+l.numbers.EXTRA_SCROLL_AMOUNT;return e<t?Math.min(a,0):Math.max(s,0)},f.prototype.calculateScrollIncrementRTL=function(t,e,n,r,o){var i=this.adapter.getTabDimensionsAtIndex(e),a=o-i.contentLeft-n,s=o-i.contentRight-n-r+l.numbers.EXTRA_SCROLL_AMOUNT,c=a-l.numbers.EXTRA_SCROLL_AMOUNT;return t<e?Math.max(s,0):Math.min(c,0)},f.prototype.findAdjacentTabIndexClosestToEdge=function(t,e,n,r){var o=e.rootLeft-n,i=e.rootRight-n-r,a=o+i;return o<0||a<0?t-1:0<i||0<a?t+1:-1},f.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(t,e,n,r,o){var i=o-e.rootLeft-r-n,a=o-e.rootRight-n,s=i+a;return 0<i||0<s?t+1:a<0||s<0?t-1:-1},f.prototype.getKeyFromEvent=function(t){return s.has(t.key)?t.key:c.get(t.keyCode)},f.prototype.isActivationKey=function(t){return t===l.strings.SPACE_KEY||t===l.strings.ENTER_KEY},f.prototype.indexIsInRange=function(t){return 0<=t&&t<this.adapter.getTabListLength()},f.prototype.isRTL=function(){return this.adapter.isRTL()},f.prototype.scrollIntoViewImpl=function(t){var e=this.adapter.getScrollPosition(),n=this.adapter.getOffsetWidth(),r=this.adapter.getTabDimensionsAtIndex(t),o=this.findAdjacentTabIndexClosestToEdge(t,r,e,n);if(this.indexIsInRange(o)){var i=this.calculateScrollIncrement(t,o,e,n);this.adapter.incrementScroll(i)}},f.prototype.scrollIntoViewImplRTL=function(t){var e=this.adapter.getScrollPosition(),n=this.adapter.getOffsetWidth(),r=this.adapter.getTabDimensionsAtIndex(t),o=this.adapter.getScrollContentWidth(),i=this.findAdjacentTabIndexClosestToEdgeRTL(t,r,e,n,o);if(this.indexIsInRange(i)){var a=this.calculateScrollIncrementRTL(t,i,e,n,o);this.adapter.incrementScroll(a)}},f);function f(t){var e=u.call(this,i(i({},f.defaultAdapter),t))||this;return e.useAutomaticActivation=!1,e}e.MDCTabBarFoundation=d,e.default=d},123:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.numbers=void 0;e.strings={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"};e.numbers={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32}},2:function(t,e,n){"use strict";function r(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(r(n,e))return n;n=n.parentElement}return null},e.matches=r,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var r=n.scrollWidth;return document.documentElement.removeChild(n),r}},247:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(248),e),o(n(249),e),o(n(123),e),o(n(122),e),o(n(250),e)},248:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},249:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabBar=void 0;var a,s=n(1),c=n(66),l=n(65),u=n(40),d=n(122),f=d.MDCTabBarFoundation.strings,p=0,h=(a=s.MDCComponent,o(v,a),v.attachTo=function(t){return new v(t)},Object.defineProperty(v.prototype,"focusOnActivate",{set:function(t){var e,n;try{for(var r=i(this.tabList),o=r.next();!o.done;o=r.next())o.value.focusOnActivate=t}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"useAutomaticActivation",{set:function(t){this.foundation.setUseAutomaticActivation(t)},enumerable:!1,configurable:!0}),v.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new l.MDCTab(t)}),void 0===e&&(e=function(t){return new c.MDCTabScroller(t)}),this.tabList=this.instantiateTabs(t),this.tabScroller=this.instantiatetabScroller(e)},v.prototype.initialSyncWithDOM=function(){var e=this;this.handleTabInteraction=function(t){e.foundation.handleTabInteraction(t)},this.handleKeyDown=function(t){e.foundation.handleKeyDown(t)},this.listen(u.MDCTabFoundation.strings.INTERACTED_EVENT,this.handleTabInteraction),this.listen("keydown",this.handleKeyDown);for(var t=0;t<this.tabList.length;t++)if(this.tabList[t].active){this.scrollIntoView(t);break}},v.prototype.destroy=function(){var e,t;a.prototype.destroy.call(this),this.unlisten(u.MDCTabFoundation.strings.INTERACTED_EVENT,this.handleTabInteraction),this.unlisten("keydown",this.handleKeyDown);try{for(var n=i(this.tabList),r=n.next();!r.done;r=n.next())r.value.destroy()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.tabScroller&&this.tabScroller.destroy()},v.prototype.getDefaultFoundation=function(){var n=this,t={scrollTo:function(t){n.tabScroller.scrollTo(t)},incrementScroll:function(t){n.tabScroller.incrementScroll(t)},getScrollPosition:function(){return n.tabScroller.getScrollPosition()},getScrollContentWidth:function(){return n.tabScroller.getScrollContentWidth()},getOffsetWidth:function(){return n.root.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(n.root).getPropertyValue("direction")},setActiveTab:function(t){n.foundation.activateTab(t)},activateTabAtIndex:function(t,e){n.tabList[t].activate(e)},deactivateTabAtIndex:function(t){n.tabList[t].deactivate()},focusTabAtIndex:function(t){n.tabList[t].focus()},getTabIndicatorClientRectAtIndex:function(t){return n.tabList[t].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(t){return n.tabList[t].computeDimensions()},getPreviousActiveTabIndex:function(){for(var t=0;t<n.tabList.length;t++)if(n.tabList[t].active)return t;return-1},getFocusedTabIndex:function(){var t=n.getTabElements(),e=document.activeElement;return t.indexOf(e)},getIndexOfTabById:function(t){for(var e=0;e<n.tabList.length;e++)if(n.tabList[e].id===t)return e;return-1},getTabListLength:function(){return n.tabList.length},notifyTabActivated:function(t){return n.emit(f.TAB_ACTIVATED_EVENT,{index:t},!0)}};return new d.MDCTabBarFoundation(t)},v.prototype.activateTab=function(t){this.foundation.activateTab(t)},v.prototype.scrollIntoView=function(t){this.foundation.scrollIntoView(t)},v.prototype.getTabElements=function(){return[].slice.call(this.root.querySelectorAll(f.TAB_SELECTOR))},v.prototype.instantiateTabs=function(e){return this.getTabElements().map(function(t){return t.id=t.id||"mdc-tab-"+ ++p,e(t)})},v.prototype.instantiatetabScroller=function(t){var e=this.root.querySelector(f.TAB_SCROLLER_SELECTOR);return e?t(e):null},v);function v(){return null!==a&&a.apply(this,arguments)||this}e.MDCTabBar=h},25:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerRTL=void 0;function r(t){this.adapter=t}e.MDCTabScrollerRTL=r,e.default=r},250:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,r=t.CSS;if("boolean"==typeof a&&!e)return a;if(!(r&&"function"==typeof r.supports))return!1;var o=r.supports("--css-vars","yes"),i=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=o||i,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var r,o,i=e.x,a=e.y,s=i+n.left,c=a+n.top;if("touchstart"===t.type){var l=t;r=l.changedTouches[0].pageX-s,o=l.changedTouches[0].pageY-c}else{var u=t;r=u.pageX-s,o=u.pageY-c}return{x:r,y:o}}},30:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFadingTabIndicatorFoundation=void 0;var i,a=n(12),s=(i=a.MDCTabIndicatorFoundation,o(c,i),c.prototype.activate=function(){this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},c.prototype.deactivate=function(){this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCFadingTabIndicatorFoundation=s,e.default=s},31:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0;e.cssClasses={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"};e.strings={CONTENT_SELECTOR:".mdc-tab-indicator__content"}},32:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSlidingTabIndicatorFoundation=void 0;var i,a=n(12),s=(i=a.MDCTabIndicatorFoundation,o(c,i),c.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),n=t.width/e.width,r=t.left-e.left;this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+r+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.NO_TRANSITION),this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},c.prototype.deactivate=function(){this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCSlidingTabIndicatorFoundation=s,e.default=s},33:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0;e.cssClasses={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"};e.strings={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"}},39:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabIndicator=void 0;var i,a=n(1),s=n(30),c=n(12),l=n(32),u=(i=a.MDCComponent,o(d,i),d.attachTo=function(t){return new d(t)},d.prototype.initialize=function(){this.content=this.root.querySelector(c.MDCTabIndicatorFoundation.strings.CONTENT_SELECTOR)},d.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},d.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},computeContentClientRect:function(){return n.content.getBoundingClientRect()},setContentStyleProperty:function(t,e){n.content.style.setProperty(t,e)}};return this.root.classList.contains(c.MDCTabIndicatorFoundation.cssClasses.FADE)?new s.MDCFadingTabIndicatorFoundation(t):new l.MDCSlidingTabIndicatorFoundation(t)},d.prototype.activate=function(t){this.foundation.activate(t)},d.prototype.deactivate=function(){this.foundation.deactivate()},d);function d(){return null!==i&&i.apply(this,arguments)||this}e.MDCTabIndicator=u},4:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,c=n(0),l=n(7),u=n(3),d=["touchstart","pointerdown","mousedown","keydown"],f=["touchend","pointerup","mouseup","contextmenu"],p=[],h=(s=c.MDCFoundation,o(v,s),Object.defineProperty(v,"cssClasses",{get:function(){return l.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return l.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return l.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=v.cssClasses,r=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(r),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasses.FG_DEACTIVATION));var e=v.cssClasses,n=e.ROOT,r=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(r),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasses.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var r=a(d),o=r.next();!o.done;o=r.next()){var i=o.value;this.adapter.registerInteractionHandler(i,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=a(f),o=r.next();!o.done;o=r.next()){var i=o.value;this.adapter.registerDocumentInteractionHandler(i,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(d),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(f),r=n.next();!r.done;r=n.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,n=v.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;r&&void 0!==t&&r.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<p.length&&p.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(p.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){p=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,n=e.VAR_FG_TRANSLATE_START,r=e.VAR_FG_TRANSLATE_END,o=v.cssClasses,i=o.FG_DEACTIVATION,a=o.FG_ACTIVATION,s=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",l="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates(),d=u.startPoint,f=u.endPoint;c=d.x+"px, "+d.y+"px",l=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(n,c),this.adapter.updateCssVariable(r,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(i),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?u.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect
vendor: 4,108 bytes, line 1
1()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,n=this.activationState,r=n.hasDeactivationUXRun,o=n.isActivated;!r&&o||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},l.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=i({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var n=Math.floor(e*v.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()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,r=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},v);function v(t){var e=s.call(this,i(i({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},40:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabFoundation=void 0;var a,s=n(0),c=n(49),l=(a=s.MDCFoundation,o(u,a),Object.defineProperty(u,"cssClasse
1s",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(u,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(u,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),u.prototype.handleClick=function(){this.adapter.notifyInteracted()},u.prototype.isActive=function(){return this.adapter.hasClass(c.cssClasses.ACTIVE)},u.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},u.prototype.activate=function(t){this.adapter.addClass(c.cssClasses.ACTIVE),this.adapter.setAttr(c.strings.ARIA_SELECTED,"true"),this.adapter.setAttr(c.strings.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},u.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(c.cssClasses.ACTIVE),this.adapter.setAttr(c.strings.ARIA_SELECTED,"false"),this.adapter.setAttr(c.strings.TABINDEX,"-1"),this.adapter.deactivateIndicator())},u.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),e=this.adapter.getOffsetLeft(),n=this.adapter.getContentOffsetWidth(),r=this.adapter.getContentOffsetLeft();return{contentLeft:e+r,contentRight:e+r+n,rootLeft:e,rootRight:e+t}},u);function u(t){var e=a.call(this,i(i({},u.defaultAdapter),t))||this;return e.focusOnActivate=!0,e}e.MDCTabFoundation=l,e.default=l},49:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0;e.cssClasses={ACTIVE:"mdc-tab--active"};e.strings={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"}},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},r=function(){};t.document.addEventListener("test",r,n),t.document.removeEventListener("test",r,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},50:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerFoundation=void 0;var s,c=n(0),l=n(33),u=n(67),d=n(68),f=n(69),p=(s=c.MDCFoundation,o(h,s),Object.defineProperty(h,"cssClasses",{get:function(){return l.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return l.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){}
vendor: 14,387 bytes, line 1
1,setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),h.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(h.cssClasses.SCROLL_AREA_SCROLL)},h.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var t=this.calculateCurrentTranslateX();return this.adapter.getScrollAreaScrollLeft()-t},h.prototype.handleInteraction=function(){this.isAnimating&&this.stopScrollAnimation()},h.prototype.handleTransitionEnd=function(t){var e=t.target;this.isAnimating&&this.adapter.eventTargetMatchesSelector(e,h.strings.CONTENT_SELECTOR)&&(this.isAnimating=!1,this.adapter.removeClass(h.cssClasses.ANIMATING))},h.prototype.incrementScroll=function(t){0!==t&&this.animate(this.getIncrementScrollOperation(t))},h.prototype.incrementScrollImmediate=function(t){if(0!==t){var e=this.getIncrementScrollOperation(t);0!==e.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition))}},h.prototype.scrollTo=function(t){this.isRTL()?this.scrollToImplRTL(t):this.scrollToImpl(t)},h.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},h.prototype.calculateCurrentTranslateX=function(){var t=this.adapter.getScrollContentStyleValue("transform");if("none"===t)return 0;var e=/\((.+?)\)/.exec(t);if(!e)return 0;var n=e[1],r=a(n.split(","),6),o=(r[0],r[1],r[2],r[3],r[4]);return r[5],parseFloat(o)},h.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.left,t),e.right)},h.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},h.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},h.prototype.scrollToImpl=function(t){var e=this.getScrollPosition(),n=this.clampScrollValue(t),r=n-e;this.animate({finalScrollPosition:n,scrollDelta:r})},h.prototype.scrollToImplRTL=function(t){var e=this.getRTLScroller().scrollToRTL(t);this.animate(e)},h.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var e=this.getScrollPosition(),n=t+e,r=this.clampScrollValue(n);return{finalScrollPosition:r,scrollDelta:r-e}},h.prototype.animate=function(t){var e=this;0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame(function(){e.adapter.addClass(h.cssClasses.ANIMATING),e.adapter.setScrollContentStyleProperty("transform","none")}),this.isAnimating=!0)},h.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(h.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},h.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),e=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(e,t):e-t},h.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var e=this.adapter.getScrollAreaScrollLeft();if(e<0)return this.adapter.setScrollAreaScrollLeft(t),new d.MDCTabScrollerRTLNegative(this.adapter);var n=this.adapter.computeScrollAreaClientRect(),r=this.adapter.computeScrollContentClientRect(),o=Math.round(r.right-n.right);return this.adapter.setScrollAreaScrollLeft(t),o===e?new f.MDCTabScrollerRTLReverse(this.adapter):new u.MDCTabScrollerRTLDefault(this.adapter)},h.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},h);function h(t){var e=s.call(this,i(i({},h.defaultAdapter),t))||this;return e.isAnimating=!1,e}e.MDCTabScrollerFoundation=p,e.default=p},51:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeHorizontalScrollbarHeight=void 0;var o,i=n(33);e.computeHorizontalScrollbarHeight=function(t,e){if(void 0===e&&(e=!0),e&&void 0!==o)return o;var n=t.createElement("div");n.classList.add(i.cssClasses.SCROLL_TEST),t.body.appendChild(n);var r=n.offsetHeight-n.clientHeight;return t.body.removeChild(n),e&&(o=r),r}},6:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var c,l=n(1),u=n(5),d=n(2),f=n(4),p=s(n(3)),h=(c=l.MDCComponent,o(v,c),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return p.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,u.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,u.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return d.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,u.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,u.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new f.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==c&&c.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},65:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTab=void 0;var i,a=n(1),s=n(6),c=n(4),l=n(39),u=n(40),d=(i=a.MDCComponent,o(f,i),f.attachTo=function(t){return new f(t)},f.prototype.initialize=function(t,e){void 0===t&&(t=function(t,e){return new s.MDCRipple(t,e)}),void 0===e&&(e=function(t){return new l.MDCTabIndicator(t)}),this.id=this.root.id;var n=new c.MDCRippleFoundation(s.MDCRipple.createAdapter(this));this.ripple=t(this.root,n);var r=this.root.querySelector(u.MDCTabFoundation.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator=e(r),this.content=this.root.querySelector(u.MDCTabFoundation.strings.CONTENT_SELECTOR)},f.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen("click",this.handleClick)},f.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),i.prototype.destroy.call(this)},f.prototype.getDefaultFoundation=function(){var n=this,t={setAttr:function(t,e){return n.root.setAttribute(t,e)},addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},activateIndicator:function(t){n.tabIndicator.activate(t)},deactivateIndicator:function(){n.tabIndicator.deactivate()},notifyInteracted:function(){return n.emit(u.MDCTabFoundation.strings.INTERACTED_EVENT,{tabId:n.id},!0)},getOffsetLeft:function(){return n.root.offsetLeft},getOffsetWidth:function(){return n.root.offsetWidth},getContentOffsetLeft:function(){return n.content.offsetLeft},getContentOffsetWidth:function(){return n.content.offsetWidth},focus:function(){return n.root.focus()}};return new u.MDCTabFoundation(t)},Object.defineProperty(f.prototype,"active",{get:function(){return this.foundation.isActive()},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"focusOnActivate",{set:function(t){this.foundation.setFocusOnActivate(t)},enumerable:!1,configurable:!0}),f.prototype.activate=function(t){this.foundation.activate(t)},f.prototype.deactivate=function(){this.foundation.deactivate()},f.prototype.computeIndicatorClientRect=function(){return this.tabIndicator.computeContentClientRect()},f.prototype.computeDimensions=function(){return this.foundation.computeDimensions()},f.prototype.focus=function(){this.root.focus()},f);function f(){return null!==i&&i.apply(this,arguments)||this}e.MDCTab=d},66:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScroller=void 0;var c,l=n(1),u=n(5),d=n(2),f=n(50),p=s(n(51)),h=(c=l.MDCComponent,o(v,c),v.attachTo=function(t){return new v(t)},v.prototype.initialize=function(){this.area=this.root.querySelector(f.MDCTabScrollerFoundation.strings.AREA_SELECTOR),this.content=this.root.querySelector(f.MDCTabScrollerFoundation.strings.CONTENT_SELECTOR)},v.prototype.initialSyncWithDOM=function(){var e=this;this.handleInteraction=function(){e.foundation.handleInteraction()},this.handleTransitionEnd=function(t){e.foundation.handleTransitionEnd(t)},this.area.addEventListener("wheel",this.handleInteraction,u.applyPassive()),this.area.addEventListener("touchstart",this.handleInteraction,u.applyPassive()),this.area.addEventListener("pointerdown",this.handleInteraction,u.applyPassive()),this.area.addEventListener("mousedown",this.handleInteraction,u.applyPassive()),this.area.addEventListener("keydown",this.handleInteraction,u.applyPassive()),this.content.addEventListener("transitionend",this.handleTransitionEnd)},v.prototype.destroy=function(){c.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("touchstart",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("pointerdown",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("mousedown",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("keydown",this.handleInteraction,u.applyPassive()),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},v.prototype.getDefaultFoundation=function(){var n=this,t={eventTargetMatchesSelector:function(t,e){return d.matches(t,e)},addClass:function(t){n.root.classList.add(t)},removeClass:function(t){n.root.classList.remove(t)},addScrollAreaClass:function(t){n.area.classList.add(t)},setScrollAreaStyleProperty:function(t,e){n.area.style.setProperty(t,e)}
vendor: 4,736 bytes, line 1
1,setScrollContentStyleProperty:function(t,e){n.content.style.setProperty(t,e)},getScrollContentStyleValue:function(t){return window.getComputedStyle(n.content).getPropertyValue(t)},setScrollAreaScrollLeft:function(t){return n.area.scrollLeft=t},getScrollAreaScrollLeft:function(){return n.area.scrollLeft},getScrollContentOffsetWidth:function(){return n.content.offsetWidth},getScrollAreaOffsetWidth:function(){return n.area.offsetWidth},computeScrollAreaClientRect:function(){return n.area.getBoundingClientRect()},computeScrollContentClientRect:function(){return n.content.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return p.computeHorizontalScrollbarHeight(document)}};return new f.MDCTabScrollerFoundation(t)},v.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},v.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},v.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},v.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},v);function v(){return null!==c&&c.apply(this,arguments)||this}e.MDCTabScroller=h},67:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerRTLDefault=void 0;var i,a=n(25),s=(i=a.MDCTabScrollerRTL,o(c,i),c.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),e=this.calculateScrollEdges().right;return Math.round(e-t)},c.prototype.scrollToRTL=function(t){var e=this.calculateScrollEdges(),n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(e.right-t);return{finalScrollPosition:r,scrollDelta:r-n}},c.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(e-t);return{finalScrollPosition:n,scrollDelta:n-e}},c.prototype.getAnimatingScrollPosition=function(t){return t},c.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},c.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.left,t),e.right)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCTabScrollerRTLDefault=s,e.default=s},68:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerRTLNegative=void 0;var i,a=n(25),s=(i=a.MDCTabScrollerRTL,o(c,i),c.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},c.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(-t);return{finalScrollPosition:n,scrollDelta:n-e}},c.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(e-t);return{finalScrollPosition:n,scrollDelta:n-e}},c.prototype.getAnimatingScrollPosition=function(t,e){return t-e},c.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-t,right:0}},c.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.max(Math.min(e.right,t),e.left)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCTabScrollerRTLNegative=s,e.default=s},69:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});
vendor: 2,642 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerRTLReverse=void 0;var i,a=n(25),s=(i=a.MDCTabScrollerRTL,o(c,i),c.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},c.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(t);return{finalScrollPosition:n,scrollDelta:e-n}},c.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(e+t);return{finalScrollPosition:n,scrollDelta:e-n}},c.prototype.getAnimatingScrollPosition=function(t,e){return t+e},c.prototype.calculateScrollEdges=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},c.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.right,t),e.left)},c);function c(){return null!==i&&i.apply(this,arguments)||this}e.MDCTabScrollerRTLReverse=s,e.default=s},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=247);function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,r});
vendor: 21,475 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/tab-scroller",[],e):"object"==typeof exports?exports["tab-scroller"]=e():(t.mdc=t.mdc||{},t.mdc["tab-scroller"]=e())}(this,function(){return o={},n.m=r={0:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(n,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.destroy=function(){},n);function n(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,l=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(o=l.next()).done;)i.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return i},l=this&&this.__spreadArray||function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=r(0),i=(a.attachTo=function(t){return new a(t,new o.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,r){this.root.addEventListener(t,e,r)},a.prototype.unlisten=function(t,e,r){this.root.removeEventListener(t,e,r)},a.prototype.emit=function(t,e,r){var o;void 0===r&&(r=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:r,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,e),this.root.dispatchEvent(o)},a);function a(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];this.root=t,this.initialize.apply(this,l([],n(r))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=i,e.default=i},2:function(t,e,r){"use strict";function o(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var r=t;r;){if(o(r,e))return r;r=r.parentElement}return null},e.matches=o,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);var o=r.scrollWidth;return document.documentElement.removeChild(r),o}},25:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerRTL=void 0;function o(t){this.adapter=t}e.MDCTabScrollerRTL=o,e.default=o},253:function(t,e,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,r,o){void 0===o&&(o=r),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,o){void 0===o&&(o=r),t[o]=e[r]}),n=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&o(e,t,r);return n(e,t),e},i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.util=void 0;var a=l(r(51));e.util=a,i(r(254),e),i(r(66),e),i(r(33),e),i(r(50),e),i(r(255),e)},254:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},255:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},33:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0;e.cssClasses={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"};e.strings={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"}},5:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var r={get passive(){return!(e=!0)}},o=function(){};t.document.addEventListener("test",o,r),t.document.removeEventListener("test",o,r)}catch(t){e=!1}return e}(t)&&{passive:!0}}},50:function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,l=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(o=l.next()).done;)i.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerFoundation=void 0;var a,c=r(0),s=r(33),u=r(67),f=r(68),p=r(69),d=(a=c.MDCFoundation,n(h,a),Object.defineProperty(h,"cssClasses",{get:function(){return s.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return s.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),h.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(h.cssClasses.SCROLL_AREA_SCROLL)},h.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var t=this.calculateCurrentTranslateX();return this.adapter.getScrollAreaScrollLeft()-t},h.prototype.handleInteraction=function(){this.isAnimating&&this.stopScrollAnimation()},h.prototype.handleTransitionEnd=function(t){var e=t.target;this.isAnimating&&this.adapter.eventTargetMatchesSelector(e,h.strings.CONTENT_SELECTOR)&&(this.isAnimating=!1,this.adapter.removeClass(h.cssClasses.ANIMATING))},h.prototype.incrementScroll=function(t){0!==t&&this.animate(this.getIncrementScrollOperation(t))},h.prototype.incrementScrollImmediate=function(t){if(0!==t){var e=this.getIncrementScrollOperation(t);0!==e.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition))}},h.prototype.scrollTo=function(t){this.isRTL()?this.scrollToImplRTL(t):this.scrollToImpl(t)},h.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},h.prototype.calculateCurrentTranslateX=function(){var t=this.adapter.getScrollContentStyleValue("transform");if("none"===t)return 0;var e=/\((.+?)\)/.exec(t);if(!e)return 0;var r=e[1],o=i(r.split(","),6),n=(o[0],o[1],o[2],o[3],o[4]);return o[5],parseFloat(n)},h.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.left,t),e.right)},h.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},h.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},h.prototype.scrollToImpl=function(t){var e=this.getScrollPosition(),r=this.clampScrollValue(t),o=r-e;this.animate({finalScrollPosition:r,scrollDelta:o})},h.prototype.scrollToImplRTL=function(t){var e=this.getRTLScroller().scrollToRTL(t);this.animate(e)},h.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var e=this.getScrollPosition(),r=t+e,o=this.clampScrollValue(r);return{finalScrollPosition:o,scrollDelta:o-e}},h.prototype.animate=function(t){var e=this;0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame(function(){e.adapter.addClass(h.cssClasses.ANIMATING),e.adapter.setScrollContentStyleProperty("transform","none")}),this.isAnimating=!0)},h.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(h.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},h.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),e=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(e,t):e-t},h.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var e=this.adapter.getScrollAreaScrollLeft();if(e<0)return this.adapter.setScrollAreaScrollLeft(t),new f.MDCTabScrollerRTLNegative(this.adapter);var r=this.adapter.computeScrollAreaClientRect(),o=this.adapter.computeScrollContentClientRect(),n=Math.round(o.right-r.right);return this.adapter.setScrollAreaScrollLeft(t),n===e?new p.MDCTabScrollerRTLReverse(this.adapter):new u.MDCTabScrollerRTLDefault(this.adapter)},h.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},h);function h(t){var e=a.call(this,l(l({},h.defaultAdapter),t))||this;return e.isAnimating=!1,e}e.MDCTabScrollerFoundation=d,e.default=d},51:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeHorizontalScrollbarHeight=void 0;var n,l=r(33);e.computeHorizontalScrollbarHeight=function(t,e){if(void 0===e&&(e=!0),e&&void 0!==n)return n;var r=t.createElement("div");r.classList.add(l.cssClasses.SCROLL_TEST),t.body.appendChild(r);var o=r.offsetHeight-r.clientHeight;return t.body.removeChild(r),e&&(n=o),o}},66:function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=this&&this.__createBinding||(Object.create?function(t,e,r,o){void 0===o&&(o=r),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,o){void 0===o&&(o=r),t[o]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&l(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScroller=void 0;var c,s=r(1),u=r(5),f=r(2),p=r(50),d=a(r(51)),h=(c=s.MDCComponent,n(S,c),S.attachTo=function(t){return new S(t)},S.prototype.initialize=function(){this.area=this.root.querySelector(p.MDCTabScrollerFoundation.strings.AREA_SELECTOR),this.content=this.root.querySelector(p.MDCTabScrollerFoundation.strings.CONTENT_SELECTOR)},S.prototype.initialSyncWithDOM=function(){var e=this;this.handleInteraction=function(){e.foundation.handleInteraction()},this.handleTransitionEnd=function(t){e.foundation.handleTransitionEnd(t)},this.area.addEventListener("wheel",this.handleInteraction,u.applyPassive()),this.area.addEventListener("touchstart",this.handleInteraction,u.applyPassive()),this.area.addEventListener("pointerdown",this.handleInteraction,u.applyPassive()),this.area.addEventListener("mousedown",this.handleInteraction,u.applyPassive()),this.area.addEventListener("keydown",this.handleInteraction,u.applyPassive()),this.content.addEventListener("transitionend",this.handleTransitionEnd)},S.prototype.destroy=function(){c.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("touchstart",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("pointerdown",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("mousedown",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("keydown",this.handleInteraction,u.applyPassive()),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},S.prototype.getDefaultFoundation=function(){var r=this,t={eventTargetMatchesSelector:function(t,e){return f.matches(t,e)},addClass:function(t){r.root.classList.add(t)},removeClass:function(t){r.root.classList.remove(t)},addScrollAreaClass:function(t){r.area.classList.add(t)},setScrollAreaStyleProperty:function(t,e){r.area.style.setProperty(t,e)},setScrollContentStyleProperty:function(t,e){r.content.style.setProperty(t,e)},getScrollContentStyleValue:function(t){return window.getComputedStyle(r.content).getPropertyValue(t)},setScrollAreaScrollLeft:function(t){return r.area.scrollLeft=t},getScrollAreaScrollLeft:function(){return r.area.scrollLeft},getScrollContentOffsetWidth:function(){return r.content.offsetWidth},getScrollAreaOffsetWidth:function(){return r.area.offsetWidth},computeScrollAreaClientRect:function(){return r.area.getBoundingClientRect()},computeScrollContentClientRect:function(){return r.content.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return d.computeHorizontalScrollbarHeight(document)}};return new p.MDCTabScrollerFoundation(t)},S.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},S.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},S.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},S.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},S);function S(){return null!==c&&c.apply(this,arguments)||this}e.MDCTabScroller=h},67:function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerRTLDefault=void 0;var l,i=r(25),a=(l=i.MDCTabScrollerRTL,n(c,l),c.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),e=this.calculateScrollEdges().right;return Math.round(e-t)},c.prototype.scrollToRTL=function(t){var e=this.calculateScrollEdges(),r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(e.right-t);return{finalScrollPosition:o,scrollDelta:o-r}},c.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(e-t);return{finalScrollPosition:r,scrollDelta:r-e}},c.prototype.getAnimatingScrollPosition=function(t){return t},c.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},c.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.left,t),e.right)},c);function c(){return null!==l&&l.apply(this,arguments)||this}e.MDCTabScrollerRTLDefault=a,e.default=a},68:function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerRTLNegative=void 0;var l,i=r(25),a=(l=i.MDCTabScrollerRTL,n(c,l),c.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},c.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(-t);return{finalScrollPosition:r,scrollDelta:r-e}},c.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(e-t);return{finalScrollPosition:r,scrollDelta:r-e}},c.prototype.getAnimatingScrollPosition=function(t,e){return t-e},c.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-t,right:0}},c.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.max(Math.min(e.right,t),e.left)},c);function c(){return null!==l&&l.apply(this,arguments)||this}e.MDCTabScrollerRTLNegative=a,e.default=a},69:function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabScrollerRTLReverse=void 0;var l,i=r(25),a=(l=i.MDCTabScrollerRTL,n(c,l),c.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},c.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t);return{finalScrollPosition:r,scrollDelta:e-r}},c.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(e+t);return{finalScrollPosition:r,scrollDelta:e-r}},c.prototype.getAnimatingScrollPosition=function(t,e){return t+e},c.prototype.calculateScrollEdges=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},c.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.right,t),e.left)},c);function c(){return null!==l&&l.apply(this,arguments)||this}e.MDCTabScrollerRTLReverse=a,e.default=a}},n.c=o,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=253);function n(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var r,o});
vendor: 2,543 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/tab-indicator",[],e):"object"==typeof exports?exports["tab-indicator"]=e():(t.mdc=t.mdc||{},t.mdc["tab-indicator"]=e())}(this,function(){return o={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var o=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=o,e.default=o},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a},i=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n<o;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var o=n(0),a=(u.attachTo=function(t){return new u(t,new o.MDCFoundation({}))},u.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},u.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},u.prototype.initialSyncWithDOM=function(){},u.prototype.destroy=function(){this.foundation.destroy()},u.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},u.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},u.prototype.emit=function(t,e,n){var o;void 0===n&&(n=!1),"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:n,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(o)},u);function u(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.root=t,this.initialize.apply(this,i([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},12:function(t,e,n){"use strict";
vendor: 8,663 bytes, line 1
1var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabIndicatorFoundation=void 0;var a,u=n(0),s=n(31),c=(a=u.MDCFoundation,r(l,a),Object.defineProperty(l,"cssClasses",{get:function(){return s.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l,"strings",{get:function(){return s.strings},enumerable:!1,configurable:!0}),Object.defineProperty(l,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),l.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},l);function l(t){return a.call(this,i(i({},l.defaultAdapter),t))||this}e.MDCTabIndicatorFoundation=c,e.default=c},251:function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(252),e),r(n(39),e),r(n(31),e),r(n(12),e),r(n(30),e),r(n(32),e)},252:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},30:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFadingTabIndicatorFoundation=void 0;var i,a=n(12),u=(i=a.MDCTabIndicatorFoundation,r(s,i),s.prototype.activate=function(){this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},s.prototype.deactivate=function(){this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.MDCFadingTabIndicatorFoundation=u,e.default=u},31:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0;e.cssClasses={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"};e.strings={CONTENT_SELECTOR:".mdc-tab-indicator__content"}},32:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSlidingTabIndicatorFoundation=void 0;var i,a=n(12),u=(i=a.MDCTabIndicatorFoundation,r(s,i),s.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),n=t.width/e.width,o=t.left-e.left;this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+o+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.NO_TRANSITION),this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},s.prototype.deactivate=function(){this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.MDCSlidingTabIndicatorFoundation=u,e.default=u},39:function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabIndicator=void 0;var i,a=n(1),u=n(30),s=n(12),c=n(32),l=(i=a.MDCComponent,r(d,i),d.attachTo=function(t){return new d(t)},d.prototype.initialize=function(){this.content=this.root.querySelector(s.MDCTabIndicatorFoundation.strings.CONTENT_SELECTOR)},d.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},d.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},computeContentClientRect:function(){return n.content.getBoundingClientRect()},setContentStyleProperty:function(t,e){n.content.style.setProperty(t,e)}};return this.root.classList.contains(s.MDCTabIndicatorFoundation.cssClasses.FADE)?new u.MDCFadingTabIndicatorFoundation(t):new c.MDCSlidingTabIndicatorFoundation(t)},d.prototype.activate=function(t){this.foundation.activate(t)},d.prototype.deactivate=function(){this.foundation.deactivate()},d);function d(){return null!==i&&i.apply(this,arguments)||this}e.MDCTabIndicator=l}},r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=251);function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/tab",[],e):"object"==typeof exports?exports.tab=e():(t.mdc=t.mdc||{},t.mdc.tab=e())}(this,function(){return i={},o.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o);function o(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,o=t.length;n<i;n++,o++)t[o]=e[n];return t};
vendor: 2,081 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),a=(s.attachTo=function(t){return new s(t,new i.MDCFoundation({}))},s.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},s.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},s.prototype.initialSyncWithDOM=function(){},s.prototype.destroy=function(){this.foundation.destroy()},s.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},s.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},s.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},s);function s(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,r([],o(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=a,e.default=a},12:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabIndicatorFoundation=void 0;var a,s=n(0),c=n(31),u=(a=s.MDCFoundation,o(d,a),Object.defineProperty(d,"cssClasses",{get:function(){return c.cssClasse
vendor: 2,184 bytes, line 1
1s},enumerable:!1,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),d.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},d);function d(t){return a.call(this,r(r({},d.defaultAdapter),t))||this}e.MDCTabIndicatorFoundation=u,e.default=u},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.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}},244:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(245),e),o(n(65),e),o(n(49),e),o(n(40),e),o(n(246),e)},245:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},246:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3:function(t,e,n){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof a&&!e)return a;
vendor: 12,957 bytes, line 1
1if(!(i&&"function"==typeof i.supports))return!1;var o=i.supports("--css-vars","yes"),r=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=o||r,e||(a=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var i,o,r=e.x,a=e.y,s=r+n.left,c=a+n.top;if("touchstart"===t.type){var u=t;i=u.changedTouches[0].pageX-s,o=u.changedTouches[0].pageY-c}else{var d=t;i=d.pageX-s,o=d.pageY-c}return{x:i,y:o}}},30:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFadingTabIndicatorFoundation=void 0;var r,a=n(12),s=(r=a.MDCTabIndicatorFoundation,o(c,r),c.prototype.activate=function(){this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},c.prototype.deactivate=function(){this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},c);function c(){return null!==r&&r.apply(this,arguments)||this}e.MDCFadingTabIndicatorFoundation=s,e.default=s},31:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0;e.cssClasses={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"};e.strings={CONTENT_SELECTOR:".mdc-tab-indicator__content"}},32:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSlidingTabIndicatorFoundation=void 0;var r,a=n(12),s=(r=a.MDCTabIndicatorFoundation,o(c,r),c.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),n=t.width/e.width,i=t.left-e.left;this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+i+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.NO_TRANSITION),this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},c.prototype.deactivate=function(){this.adapter.removeClass(a.MDCTabIndicatorFoundation.cssClasses.ACTIVE)},c);function c(){return null!==r&&r.apply(this,arguments)||this}e.MDCSlidingTabIndicatorFoundation=s,e.default=s},39:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabIndicator=void 0;var r,a=n(1),s=n(30),c=n(12),u=n(32),d=(r=a.MDCComponent,o(l,r),l.attachTo=function(t){return new l(t)},l.prototype.initialize=function(){this.content=this.root.querySelector(c.MDCTabIndicatorFoundation.strings.CONTENT_SELECTOR)},l.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},l.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},computeContentClientRect:function(){return n.content.getBoundingClientRect()},setContentStyleProperty:function(t,e){n.content.style.setProperty(t,e)}};return this.root.classList.contains(c.MDCTabIndicatorFoundation.cssClasses.FADE)?new s.MDCFadingTabIndicatorFoundation(t):new u.MDCSlidingTabIndicatorFoundation(t)},l.prototype.activate=function(t){this.foundation.activate(t)},l.prototype.deactivate=function(){this.foundation.deactivate()},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.MDCTabIndicator=d},4:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,c=n(0),u=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],f=["touchend","pointerup","mouseup","contextmenu"],p=[],h=(s=c.MDCFoundation,o(v,s),Object.defineProperty(v,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(v,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(v,"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:!1,configurable:!0}),v.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=v.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())})}},v.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(v.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(v.cssClasses.FG_DEACTIVATION));var e=v.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},v.prototype.activate=function(t){this.activateImpl(t)},v.prototype.deactivate=function(){this.deactivateImpl()},v.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},v.prototype.setUnbounded=function(t){var e=v.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},v.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(v.cssClasses.BG_FOCUSED)})},v.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(v.cssClasses.BG_FOCUSED)})},v.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},v.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},v.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var i=a(l),o=i.next();!o.done;o=i.next()){var r=o.value;this.adapter.registerInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},v.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=a(f),o=i.next();!o.done;o=i.next()){var r=o.value;this.adapter.registerDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},v.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=a(l),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},v.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=a(f),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},v.prototype.removeCssVars=function(){var e=this,n=v.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},v.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<p.length&&p.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(p.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){p=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},v.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},v.prototype.animateActivation=function(){var t=this,e=v.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,o=v.cssClasses,r=o.FG_DEACTIVATION,a=o.FG_ACTIVATION,s=v.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",u="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),l=d.startPoint,f=d.endPoint;c=l.x+"px, "+l.y+"px",u=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(n,c),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(r),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},s)},v.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?d.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect
vendor: 4,108 bytes, line 1
1()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},v.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=v.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,o=n.isActivated;!i&&o||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},u.numbers.FG_DEACTIVATION_MS))},v.prototype.rmBoundedActivationClasses=function(){var t=v.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},v.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},v.numbers.TAP_DELAY_MS)},v.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var n=r({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(n)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(n),t.resetActivationState()}))}},v.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},v.prototype.layoutInternal=function(){var t=this;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(t.frame.width,2)+Math.pow(t.frame.height,2))+v.numbers.PADDING;var n=Math.floor(e*v.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()},v.prototype.updateLayoutCssVars=function(){var t=v.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},v);function v(t){var e=s.call(this,r(r({},v.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=h,e.default=h},40:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabFoundation=void 0;var a,s=n(0),c=n(49),u=(a=s.MDCFoundation,o(d,a),Object.defineProperty(d,"cssClasse
1s",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),d.prototype.handleClick=function(){this.adapter.notifyInteracted()},d.prototype.isActive=function(){return this.adapter.hasClass(c.cssClasses.ACTIVE)},d.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},d.prototype.activate=function(t){this.adapter.addClass(c.cssClasses.ACTIVE),this.adapter.setAttr(c.strings.ARIA_SELECTED,"true"),this.adapter.setAttr(c.strings.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},d.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(c.cssClasses.ACTIVE),this.adapter.setAttr(c.strings.ARIA_SELECTED,"false"),this.adapter.setAttr(c.strings.TABINDEX,"-1"),this.adapter.deactivateIndicator())},d.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),e=this.adapter.getOffsetLeft(),n=this.adapter.getContentOffsetWidth(),i=this.adapter.getContentOffsetLeft();return{contentLeft:e+i,contentRight:e+i+n,rootLeft:e,rootRight:e+t}},d);function d(t){var e=a.call(this,r(r({},d.defaultAdapter),t))||this;return e.focusOnActivate=!0,e}e.MDCTabFoundation=u,e.default=u},49:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=e.cssClasses=void 0;e.cssClasses={ACTIVE:"mdc-tab--active"};e.strings={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"}},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return a(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var c,u=n(1),d=n(5),l=n(2),f=n(4),p=s(n(3)),h=(c=u.MDCComponent,o(v,c),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return p.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,d.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,d.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return l.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,d.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,d.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()}
vendor: 4,500 bytes, line 1
1,enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new f.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},v);function v(){var t=null!==c&&c.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=h},65:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTab=void 0;var r,a=n(1),s=n(6),c=n(4),u=n(39),d=n(40),l=(r=a.MDCComponent,o(f,r),f.attachTo=function(t){return new f(t)},f.prototype.initialize=function(t,e){void 0===t&&(t=function(t,e){return new s.MDCRipple(t,e)}),void 0===e&&(e=function(t){return new u.MDCTabIndicator(t)}),this.id=this.root.id;var n=new c.MDCRippleFoundation(s.MDCRipple.createAdapter(this));this.ripple=t(this.root,n);var i=this.root.querySelector(d.MDCTabFoundation.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator=e(i),this.content=this.root.querySelector(d.MDCTabFoundation.strings.CONTENT_SELECTOR)},f.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen("click",this.handleClick)},f.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),r.prototype.destroy.call(this)},f.prototype.getDefaultFoundation=function(){var n=this,t={setAttr:function(t,e){return n.root.setAttribute(t,e)},addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},hasClass:function(t){return n.root.classList.contains(t)},activateIndicator:function(t){n.tabIndicator.activate(t)},deactivateIndicator:function(){n.tabIndicator.deactivate()},notifyInteracted:function(){return n.emit(d.MDCTabFoundation.strings.INTERACTED_EVENT,{tabId:n.id},!0)},getOffsetLeft:function(){return n.root.offsetLeft},getOffsetWidth:function(){return n.root.offsetWidth},getContentOffsetLeft:function(){return n.content.offsetLeft},getContentOffsetWidth:function(){return n.content.offsetWidth},focus:function(){return n.root.focus()}};return new d.MDCTabFoundation(t)},Object.defineProperty(f.prototype,"active",{get:function(){return this.foundation.isActive()},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"focusOnActivate",{set:function(t){this.foundation.setFocusOnActivate(t)},enumerable:!1,configurable:!0}),f.prototype.activate=function(t){this.foundation.activate(t)},f.prototype.deactivate=function(){this.foundation.deactivate()},f.prototype.computeIndicatorClientRect=function(){return this.tabIndicator.computeContentClientRect()},f.prototype.computeDimensions=function(){return this.foundation.computeDimensions()},f.prototype.focus=function(){this.root.focus()},f);function f(){return null!==r&&r.apply(this,arguments)||this}e.MDCTab=l},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={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"},e.strings={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"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=244);function o(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,i});"use strict";class OcMd{static createBanner(type,properties){const normalizedType=type||'standard';let instance;switch(normalizedType){case'default':{instance=new OcMdBanner(properties);break}case'fixed':{instance=new OcMdBannerFixed(properties);break}default:{instance=new OcMdBannerFixed(properties);break}}return instance}static createButton(type,properties){const normalizedType=type||'standard';let instance;switch(normalizedType){case'fab':{instance=new OcMdButtonFloatingaction(properties);break}case'hold':{instance=new OcMdButtonStandardHold(properties);break}case'icon':{instance=new OcMdButtonIcon(properties);break}case'icon-toggle':{instance=new OcMdButtonIcontoggle(properties);break}default:{instance=new OcMdButtonStandard(properties)}}return instance}static createCard(content,properties){const card=new OcMdCard(properties);card.content.html(content);return card}static createDialog(type,properties){const normalizedType=type||'alert';let instance;switch(normalizedType){case'alert':{instance=new OcMdDialogAlert(properties);break}default:{instance=new OcMdDialogAlert(properties)}}return instance}static createInput(type,properties){const normalizedType=type||'standard';let instance;switch(normalizedType){case'checkbox':{instance=new OcMdInputCheckbox(properties);break}case'text-filled':{instance=new OcMdInputTextFilled(properties);break}case'text-outline':{instance=new OcMdInputTextOutlined(properties);break}default:{instance=new OcMdInputTextFilled(properties)}}return instance}static createProgressbar(type,properties){const normalizedType=type||'linear';let instance;switch(normalizedType){case'linear':{instance=new OcMdProgressbarLinear(properties);break}case'circular':{instance=new OcMdProgressbarCircular(properties);break}default:{instance=new OcMdProgressbarLinear(properties);break}}return instance}static createFontIcon(iconString){const matches=iconString.match(/^(.+?):(.+)$/);let iconType='md';let icon='';if(matches!=null&&matches.length>=3){[,iconType,icon]=matches}if(!['md','oc','image'].includes(iconType)){return null};let instance;switch(iconType){case'oc':instance=new OcUiFonticonOlefa({icon:icon});break;case'image':instance=new OcUiFonticonImage({icon:icon});break;case'md':default:instance=new OcMdIcon({icon:icon})}return instance}}Oc.OcMd=OcMd;"use strict";class OcMdComponent extends OcUi{constructor(properties){super(properties)}defaults(){return OcMdComponent.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,mdcReady:{get:this.__getMdcReady.bind(this)}}}__getMdcReady(){return this.__internals.initElementsDone}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.initElementsJobs=[]}__initialize(properties){if(properties?.base){this.__internals.dom.base=jQuery(properties.base)}super.__initialize(properties);this.__internals.initElementsDone=new Promise((resolve)=>{Promise.all(this.__internals.initElementsJobs).then(()=>{this.__onHtmlReady();resolve()})})}__onHtmlReady(){}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdComponent=OcMdComponent;"use strict";class OcMdBanner extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdBanner.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,text:{get:this.__getText.bind(this),set:this.__setText.bind(this)},primaryActionLabel:{get:this.__getPrimaryActionLabel.bind(this),set:this.__setPrimaryActionLabel.bind(this)},secondaryActionLabel:{get:this.__getSecondaryActionLabel.bind(this),set:this.__setSecondaryActionLabel.bind(this)},centered:{get:this.__getCentered.bind(this),set:this.__setCentered.bind(this)},icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},context:{get:this.__getContext.bind(this),set:this.__setContext.bind(this)}}}__getText(){return this.properties.text}__setText(value){this.properties.text=value;this.__handleMdc()}__getPrimaryActionLabel(){return this.properties.primaryActionLabel}__setPrimaryActionLabel(value){this.properties.primaryActionLabel=value;const buttonHasLabel=this.properties.primaryActionLabel.length>0;this.__internals.states.set('has-primary-action',buttonHasLabel);this.__handleMdc()}__getSecondaryActionLabel(){return this.properties.secondaryActionLabel}__setSecondaryActionLabel(value){this.properties.secondaryActionLabel=value;const buttonHasLabel=this.properties.secondaryActionLabel.length>0;this.__internals.states.set('has-secondary-action',buttonHasLabel);this.__handleMdc()}__getCentered(){return this.properties.centered}__setCentered(value){this.properties.centered=value;this.__internals.states.set('is-centered',this.properties.centered)}__getIcon(){return this.properties.icon}__setIcon(value){this.properties.icon=value;this.__handleIcon()}__getContext(){return this.properties.context}__setContext(value){this.properties.context=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdBanner:OLEFA.css.getIfNotLoaded('md/banner.css','--loaded--md-banner')};this.propertyHandlers.text=this.__setText;this.propertyHandlers.primaryActionLabel=this.__setPrimaryActionLabel;this.propertyHandlers.secondaryActionLabel=this.__setSecondaryActionLabel;this.propertyHandlers.centered=this.__setCentered;this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.context=this.__setContext}__initialize(properties){super.__initialize(properties);this.__handleBase()}__initElements(){super.__initElements();const cssBase='oc-md-banner';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div',class:`${cssBase}`}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({content:{tag:'div',class:`${cssBase}__content mdc-banner__content`,attributes:{role:'alertdialog','aria-live':'assertive'},children:{graphicTextWrapper:{tag:'div',class:`${cssBase}__graphic-text-wrapper mdc-banner__graphic-text-wrapper`,children:{graphic:{tag:'div',class:`${cssBase}__graphic mdc-banner__graphic`,attributes:{role:'img',alt:''}},text:{tag:'div',class:`${cssBase}__text mdc-banner__text`}}},actions:{tag:'div',class:`${cssBase}__actions mdc-banner__actions`,children:{secondaryAction:{tag:'button',class:`${cssBase}__secondary-action mdc-button mdc-banner__secondary-action`,attributes:{type:'button'},children:{secondaryActionRipple:{tag:'div',class:`${cssBase}__secondary-action-ripple mdc-button__ripple`,},secondaryActionLabel:{tag:'div',class:`${cssBase}__secondary-action-label mdc-button__label`,}}},primaryAction:{tag:'button',class:`${cssBase}__primary-action mdc-button mdc-banner__primary-action`,attributes:{type:'button'},children:{primaryActionRipple:{tag:'div',class:`${cssBase}__primary-action-ripple mdc-button__ripple`,},primaryActionLabel:{tag:'div',class:`${cssBase}__primary-action-label mdc-button__label`,}}}}}}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-banner mdc-banner--mobile-stacked`).attr('role','banner')}))}__initStates(){super.__initStates();this.__internals.states.define({state:'is-open',onChange:this.__onStateChange__isOpen.bind(this)}).define({state:'has-primary-action'}).define({state:'has-secondary-action'}).define({state:'is-centered',onChange:this.__onStateChange__isCentered.bind(this)}).define({state:'has-icon'})}__onStateChange__isOpen(){this.__handleMdc()}__onStateChange__isCentered(){this.__handleBase()}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`MDCBanner:closing.${this.refID}`,this.__onBase__mdcBannerClosing.bind(this)).on(`MDCBanner:closed.${this.refID}`,this.__onBase__mdcBannerClosed.bind(this)).on(`MDCBanner:opening.${this.refID}`,this.__onBase__mdcBannerOpening.bind(this)).on(`MDCBanner:opened.${this.refID}`,this.__onBase__mdcBannerOpened.bind(this));OLEFA.events.listen('resize',this.__onResize.bind(this),this.refID)}__onBase__mdcBannerClosing(ev){this.__internals.states.remove('is-open');this.__trigger__closing({reason:ev.originalEvent.detail.reason,context:this.__getContext()});let buttonPicked;if(ev.originalEvent.detail.reason==mdc.banner.CloseReason.PRIMARY){buttonPicked='primary'}else if(ev.originalEvent.detail.reason==mdc.banner.CloseReason.SECONDARY){buttonPicked='secondary'};if(!OcUtilities.hasNoValue(buttonPicked)){this.__trigger__choice({choice:buttonPicked,context:this.__getContext()})}}__onBase__mdcBannerClosed(ev){this.__internals.states.remove('is-open');this.__trigger_closed({reason:ev.originalEvent.detail.reason,context:this.__getContext()})}__onBase__mdcBannerOpening(){this.__internals.states.add('is-open');this.__trigger__opening()}__onBase__mdcBannerOpened(){this.__internals.states.add('is-open');this.__trigger__opened()}__onResize(){this.layout()}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcBanner=new mdc.banner.MDCBanner(baseNode)};this.__handleMdc()}__handleBase(){this.__deferOnce('__handleBase',()=>{const isCentered=this.__internals.states.hasState('is-centered');OcHtml.setClassIfTrue(isCentered,this.__internals.dom.base,'mdc-banner--centered')})}__handleMdc(){this.__deferOnce('__handleMdc',()=>{if(!this.__internals.mdcBanner){return};const isOpen=this.__internals.states.hasState('is-open');this.__internals.mdcBanner.setText(this.properties.text);this.__internals.mdcBanner.setPrimaryActionText(this.properties.primaryActionLabel);this.__internals.mdcBanner.setSecondaryActionText(this.properties.secondaryActionLabel);if(this.__internals.mdcBanner.isOpen!=isOpen){if(isOpen){this.__internals.mdcBanner.open()}else{this.__internals.mdcBanner.close(mdc.banner.CloseReason.UNSPECIFIED)}}})}__handleIcon(){this.__deferOnce('__handleIcon',()=>{let hasIcon=false;if(this.__internals.icon){this.__internals.icon.destroy();delete this.__internals.icon};if(this.properties.icon){hasIcon=true;this.__internals.icon=OcUiFonticon(this.properties.icon);this.__internals.icon.base.addClass('oc-md-banner__icon mdc-banner__icon').appendTo(this.__internals.dom.graphic)}this.__internals.states.set('has-icon',hasIcon)})}open(){this.__internals.states.add('is-open')}close(){this.__internals.states.remove('is-open')}layout(){this.__internals.mdcBanner?.layout()}__trigger_closed(eventData){const event=new OcEvent({eventName:'closed',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__closing(eventData){const event=new OcEvent({eventName:'closing',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__opened(){const event=new OcEvent({eventName:'opened'});this.__internals.events.triggerEvent(event)}__trigger__opening(){const event=new OcEvent({eventName:'opening'});this.__internals.events.triggerEvent(event)}__trigger__choice(eventData){const event=new OcEvent({eventName:'choice',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){OLEFA.events.cancelAllFromScope(this.refID);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,text:'',primaryActionLabel:'',secondaryActionLabel:'',centered:false,fixed:false,icon:'',context:''}}}}Oc.OcMdBanner=OcMdBanner;"use strict";
1class OcMdBannerFixed extends OcMdBanner{constructor(properties){super(properties)}defaults(){return OcMdBannerFixed.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-banner-fixed';this.__internals.initElementsJobs.push(this.__createDOMNodes({fixed:{tag:'div',class:`${cssBase}__fixed mdc-banner__fixed`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.content.appendTo(this.__internals.dom.fixed)}))}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdBannerFixed=OcMdBannerFixed;"use strict";class OcMdButtonFloatingaction extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdButtonFloatingaction.defaults()};__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},mini:{get:this.__getMini.bind(this),set:this.__setMini.bind(this)},extended:{get:this.__getExtended.bind(this),set:this.__setExtended.bind(this)}}};__setVisible(value){super.__setVisible(value);this.__deferOnce('__setVisible',()=>{if(this.properties.visible){this.__internals.dom.base.removeClass('mdc-fab--exited')}else{this.__internals.dom.base.addClass('mdc-fab--exited')}})};__setIcon(value){this.properties.icon=value;this.__applyIconProperties()};__getIcon(){return this.properties.icon};__setLabel(value,setAsDefault=false){this.__internals.properties.label.set(value,setAsDefault)};__getLabel(){return this.__internals.properties.label.get()};__setMini(value){this.properties.mini=value;this.__deferOnce('__setMini',()=>{if(this.properties.mini){this.__internals.dom.base.addClass('mdc-fab--mini')}else{this.__internals.dom.base.removeClass('mdc-fab--mini')}})};__getMini(){return this.properties.mini};__setExtended(value){this.properties.extended=value;this.__deferOnce('__setExtended',()=>{if(this.properties.extended){this.__internals.dom.base.addClass('mdc-fab--extended');this.__internals.dom.label.appendTo(this.__internals.dom.base)}else{this.__internals.dom.base.removeClass('mdc-fab--extended');this.__internals.dom.label.detach()}})};__getExtended(){return this.properties.extended};__generateInternalProperties(){const inheritedInternalProperties=super.__generateInternalProperties();const defaults=this.defaults();return{...inheritedInternalProperties,label:new OcProperty({name:'label',value:defaults.properties.label,onChange:this.__onPropertyValueChangeHandler.bind(this)})}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.mini=this.__setMini;this.propertyHandlers.extended=this.__setExtended};__initElements(){super.__initElements();const cssBase='oc-md-floatingaction';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'button'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'div',class:`${cssBase}__ripple mdc-fab__ripple`},focusRing:{tag:'div',class:`${cssBase} mdc-fab__focus-ring`},touch:{tag:'div',class:`${cssBase}__touch mdc-fab__touch`},label:{tag:'span',class:`${cssBase}__label mdc-fab__label`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-fab mdc-fab--touch`)},true))};__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)}this.__initEvents__labelProperty(ev.value);this.__handleBaseNode();this.__handleLabelNode();break;default:break}}__initialize(properties){super.__initialize(properties);this.__handleLabelNode()}__onHtmlReady(){super.__onHtmlReady();const el=this.__internals.dom.base.get(0);
1if(el){this.__internals.rippleEffect=new mdc.ripple.MDCRipple(el)}}__initEvents__labelProperty(property){if(property instanceof OcNodeText){property.events.listen(OcNodeText.events.RENDER,this.__onLabelProperty__render.bind(this,property),this.refID)}}__onLabelProperty__render(node,ev){this.__handleBaseNode()}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('OcMdButtonFloatingaction.__handleBaseNode',()=>{const node=this.__internals.dom.base;const label=this.__getLabel();const stringLabel=label instanceof OcNodeText?label.node.textContent:label;node.attr({'aria-label':stringLabel,'title':stringLabel})},'repaint')}__handleLabelNode(){this.__deferOnce('OcMdButtonFloatingaction.__handleLabelNode',()=>{const node=this.__internals.dom.label;const label=this.__getLabel();const usableLabel=label instanceof OcNodeText?label.node:label;node.html(usableLabel)},'repaint')}__applyIconProperties(){if(this.__internals.icon){this.__internals.icon.base.detach();this.__internals.icon.destroy();delete this.__internals.icon};if(this.properties.icon){this.__internals.icon=OcUiFonticon(this.properties.icon);this.__internals.icon.base.addClass('oc-md-button-floatingaction__icon mdc-fab__icon material-icons').appendTo(this.__internals.dom.base)}};destroy(){this.__internals.rippleEffect.destroy();super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,icon:'',label:'',mini:false,extended:false}}}}Oc.OcMdButtonFloatingaction=OcMdButtonFloatingaction;"use strict";class OcMdButtonIcon extends OcMdComponent{constructor(properties){super(properties)};defaults(){return OcMdButtonIcon.defaults()};__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},size:{get:this.__getSize.bind(this),set:this.__setSize.bind(this)},paddingRatio:{get:this.__getPaddingRatio.bind(this),set:this.__setPaddingRatio.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},hasPopup:{get:this.__getHasPopup.bind(this),set:this.__setHasPopup.bind(this)},ariaExpanded:{get:this.__getAriaExpanded.bind(this),set:this.__setAriaExpanded.bind(this)}}};__setIcon(value){this.properties.icon=value;this.__deferOnce('__setter__icon',()=>{if(this.__internals.icon){this.__internals.icon.destroy();delete this.__internals.icon};if(this.properties.icon){const icon=OcUiFonticon(this.properties.icon);this.__internals.icon=icon;icon.base.addClass('oc-md-button-icon__icon mdc-icon-button__icon').appendTo(this.__internals.dom.base);this.__adjustSize()}})};__getIcon(){return this.properties.icon};__setLabel(value){this.properties.label=value};__getLabel(){return this.properties.label};__setSize(value){this.properties.size=value;this.__adjustSize()};__getSize(){return this.properties.size};__setPaddingRatio(ratio){this.properties.paddingRatio=OcUtilities.clamp(OcMdButtonIcon.constraints.paddingRatio.min,ratio,OcMdButtonIcon.constraints.paddingRatio.max);this.__adjustSize()};__getPaddingRatio(){return this.properties.paddingRatio};__setDisabled(value){this.properties.disabled=OcDatatype.toBoolean(value);this.__deferOnce('__setter__disabled',()=>{if(this.properties.disabled){this.__internals.dom.base.attr('disabled','')}else{this.__internals.dom.base.removeAttr('disabled')}})};__getDisabled(){return this.properties.disabled};__getHasPopup(){return this.properties.hasPopup}__setHasPopup(value){this.properties.hasPopup=value;this.__handleAriaHandlerProperty()}__getAriaExpanded(){return this.properties.ariaExpanded}__setAriaExpanded(value){this.properties.ariaExpanded=value;this.__handleAriaHandlerProperty()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.size=this.__setSize;this.propertyHandlers.paddingRatio=this.__setPaddingRatio;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.hasPopup=this.__setHasPopup;this.propertyHandlers.ariaExpanded=this.__setAriaExpanded};__initElements(){super.__initElements();const cssBase='oc-md-button-icon';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'button'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'div',class:`${cssBase}__ripple mdc-icon-button__ripple`},focusRing:{tag:'span',class:`${cssBase}__focus-ring mdc-icon-button__focus-ring`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-icon-button`).attr({'type':'button'})},true))};__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':this.__onPropertyChange__label(ev.value,ev.oldValue);break;default:break}}__getAriaHandler(){return OcAriaButton};__initialize(properties){super.__initialize(properties);this.__onPropertyChange__label(this.__getLabel())};__onHtmlReady(){super.__onHtmlReady();const el=this.__internals.dom.base.get(0);
1if(el){this.__internals.rippleEffect=new mdc.ripple.MDCRipple(el);this.__internals.rippleEffect.unbounded=true}}__onPropertyChange__label(newValue,oldValue){if(oldValue instanceof OcNodeText){oldValue.events.cancelAllFromScope(this.refID)}if(newValue instanceof OcNodeText){newValue.events.listen(OcNodeText.events.RENDER,()=>{this.__handleBaseNode();this.__handleAriaHandlerProperty()},this.refID)}this.__handleBaseNode();this.__handleAriaHandlerProperty()}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcMdButtonIcon',()=>{const node=this.__internals.dom.base;this.__internals.dom.base.attr({'title':this.__generateLabel()})},'repaint')}__handleAriaHandlerProperty(){super.__handleAriaHandlerProperty();const instance=this.__internals.ariaHandler;if(!instance){return}const label=this.__generateLabel();const hasPopup=this.__getHasPopup();const ariaExpanded=this.__getAriaExpanded();instance.label=label;instance.hasPopup=hasPopup;instance.expanded=ariaExpanded}__generateLabel(){const label=this.__getLabel();if(label instanceof OcNodeText){return label.node.textContent}return label}__adjustSize(){this.__deferOnce('__adjustSize',()=>{const halfPaddingOnTwoSides=0.5;this.__internals.dom.base.css({'height':this.properties.size,'width':this.properties.size,'padding':this.properties.size*(this.properties.paddingRatio*halfPaddingOnTwoSides),'font-size':this.properties.size*(1-this.properties.paddingRatio)});if(this.__internals.icon){this.__internals.icon.base.css({'font-size':this.properties.size*(1-this.properties.paddingRatio)})}})};destroy(){this.__internals.rippleEffect?.destroy();this.__internals.dom.base.off('click.'+this.refID+' touchend.'+this.refID);super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,icon:'',label:'',size:48,paddingRatio:0.5,disabled:false,hasPopup:null,ariaExpanded:null}}}}OcMdButtonIcon.constraints={paddingRatio:{min:0,max:1},hasPopup:{values:["true","false","menu","listbox","tree","grid","dialog"]}};Oc.OcMdButtonIcon=OcMdButtonIcon;"use strict";class OcMdButtonIcontoggle extends OcMdButtonIcon{constructor(properties){super(properties)}defaults(){return OcMdButtonIcontoggle.defaults()};__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,iconSet:{get:this.__getIconSet.bind(this),set:this.__setIconSet.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},state:{get:this.__getState.bind(this),set:this.__setState.bind(this)},labelSet:{get:this.__getLabelSet.bind(this),set:this.__setLabelSet.bind(this)}}}__setIconSet(value){this.properties.iconSet=value;this.__deferOnce('__setIconSet',()=>{if(this.__internals.iconSet){this.__internals.iconSet.destroy();delete this.__internals.iconSet};if(this.properties.iconSet){const icon=OcUiFonticon(value);this.__internals.iconSet=icon;icon.base.addClass('mdc-icon-button__icon mdc-icon-button__icon--on oc-md-button-icon-toggle__icon-set').appendTo(this.__internals.dom.base);this.__adjustSize()}})};__getIconSet(){return this.properties.iconSet};__setState(value){if(this.properties.state==value){return};this.properties.state=value;this.__handleBaseNode();this.__handleMdcIconButtonToggleNode();this.__handleAriaHandlerProperty();this.__trigger__toggle({isOn:this.properties.state})};__getState(){return this.properties.state};__getLabelSet(){return this.properties.labelSet}__setLabelSet(value){this.properties.labelSet=value;this.__handleAriaHandlerProperty()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.iconSet=this.__setIconSet;this.propertyHandlers.state=this.__setState;this.propertyHandlers.labelSet=this.__setLabelSet}__initElements(){super.__initElements();this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass('oc-md-button-icontoggle')},true))};__initEvents__mdcIconButtonToggle(mdcIconButtonToggle){mdcIconButtonToggle.listen('MDCIconButtonToggle:change',this.__onMdcIconButtonToggle__change.bind(this))};__onMdcIconButtonToggle__change(e){this.__setState(e.detail.isOn)}__onHtmlReady(){super.__onHtmlReady();const el=this.__internals.dom.base.get(0);if(el){this.__internals.mdcIconButtonToggle=new mdc['icon-button'].MDCIconButtonToggle(el);this.__initEvents__mdcIconButtonToggle(this.__internals.mdcIconButtonToggle);this.__handleMdcIconButtonToggleNode()}}__handleAriaHandlerProperty(){super.__handleAriaHandlerProperty();const instance=this.__internals.ariaHandler;if(!instance){return}const state=this.__getState();const labelSet=this.__getLabelSet();let normalizedPressedAttribute=null;if(!labelSet){normalizedPressedAttribute=OcDatatype.toBooleanString(state)}instance.pressed=normalizedPressedAttribute}__handleMdcIconButtonToggleNode(){this.__deferOnce('__handleMdcIconButtonToggleNode',()=>{const instance=this.__internals.mdcIconButtonToggle;if(!instance){return};const state=this.__getState();instance.on=state})}__generateLabel(){const state=this.__getState();const labelSet=this.__getLabelSet();let label=this.__getLabel();if(label instanceof OcNodeText){label=label.node.textContent}if(state&&labelSet){label=labelSet}return label}__adjustSize(){super.__adjustSize();this.__deferOnce('__adjustSize__iconToggle',()=>{this.__internals.iconSet?.base.css({'font-size':this.properties.size*(1-this.properties.paddingRatio)})})};__trigger__toggle(data){this.events.trigger('toggle',data)};destroy(){this.__internals.mdcIconButtonToggle?.destroy();super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,iconSet:'',state:false,labelSet:''}}}}Oc.OcMdButtonIcontoggle=OcMdButtonIcontoggle;"use strict";
1class OcMdButtonStandard extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdButtonStandard.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,disableMdcRipple:{get:this.__getDisableMdcRipple.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},style:{get:this.__getStyle.bind(this),set:this.__setStyle.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},iconPosition:{get:this.__getIconPosition.bind(this),set:this.__setIconPosition.bind(this)},type:{get:this.__getType.bind(this),set:this.__setType.bind(this)}}};__getDisableMdcRipple(){return this.properties.disableMdcRipple}__setDisableMdcRipple(value){this.properties.disableMdcRipple=value}__setLabel(value,setAsDefault=false){this.__internals.properties.label.set(value,setAsDefault)};__getLabel(){return this.__internals.properties.label.get()};__setIcon(value){this.properties.icon=value;this.__applyIconProperties()};__getIcon(){return this.properties.icon};__setStyle(value){if(!OcArray.has(Object.values(OcMdButtonStandard.styles),value)){return};this.properties.style=value;this.__deferOnce('__setStyle',()=>{this.__internals.dom.base.removeClass(Object.values(OcMdButtonStandard.cssClasses.style).join(' '));this.__internals.dom.base.addClass(OcMdButtonStandard.cssClasses.style[this.properties.style])})};__getStyle(){return this.properties.style};__setDisabled(value){this.properties.disabled=OcDatatype.toBoolean(value);if(!this.__internals.promises.setter__disabled__defer){this.__internals.promises.setter__disabled__defer=this.defer(()=>{if(this.properties.disabled){this.__internals.dom.base.attr('disabled','')}else{this.__internals.dom.base.removeAttr('disabled')}}).finally(()=>{delete this.__internals.promises.setter__disabled__defer})}};__getDisabled(){return this.properties.disabled};__getIconPosition(){return this.properties.iconPosition}__setIconPosition(value){this.properties.iconPosition=value;this.__applyIconProperties()}__getType(){return this.properties.type}__setType(type){const defaultValues=this.defaults();if(!defaultValues.availableTypes.has(type)){return};this.properties.type=type;this.defer(()=>{this.__internals.dom.base.attr('type',this.properties.type)})}__generateInternalProperties(){const inheritedInternalProperties=super.__generateInternalProperties();const defaults=this.defaults();return{...inheritedInternalProperties,label:new OcProperty({name:'label',value:defaults.properties.label,onChange:this.__onPropertyValueChangeHandler.bind(this)})}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={};this.propertyHandlers.disableMdcRipple=this.__setDisableMdcRipple;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.style=this.__setStyle;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.iconPosition=this.__setIconPosition;this.propertyHandlers.type=this.__setType};__initElements(){super.__initElements();const cssBase='oc-md-button-standard';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'button'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'span',class:`${cssBase}__ripple mdc-button__ripple`},touch:{tag:'span',class:`${cssBase}__touch mdc-button__touch`},focusRing:{tag:'span',class:`${cssBase}__focus-ring mdc-button__focus-ring`},label:{tag:'span',class:`${cssBase}__label mdc-button__label`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-button mdc-button--touch`)},true))};__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':this.__handleLabelNode();break;default:break}}__initialize(properties){super.__initialize(properties);this.__handleLabelNode()}__handleLabelNode(){this.__deferOnce('OcMdButtonStandard.__handleLabelNode',()=>{const node=this.__internals.dom.label;const label=this.__getLabel();if(label instanceof OcNodeText){node.html(label.node)}else{node.html(label)}},'repaint')}__onHtmlReady(){super.__onHtmlReady();const disableMdcRipple=this.__getDisableMdcRipple();if(!disableMdcRipple){const el=this.__internals.dom.base.get(0);
1if(el){this.__internals.rippleEffect=new mdc.ripple.MDCRipple(el)}}}__applyIconProperties(){this.__deferOnce('__applyIconProperties',()=>{if(this.__internals.icon){this.__internals.dom.base.removeClass(OcMdButtonStandard.cssClasses.icon.leading);const oldIcon=this.__internals.icon;delete this.__internals.icon;oldIcon.base.detach();oldIcon.defer(function(){oldIcon.destroy()}.bind(this))};if(this.properties.icon){this.__internals.dom.base.addClass(OcMdButtonStandard.cssClasses.icon.leading);const icon=OcUiFonticon(this.properties.icon);this.__internals.icon=icon;icon.base.addClass('mdc-button__icon oc-md-button-standard__icon').attr({'aria-hidden':'true'});if(this.properties.iconPosition=='leading'){icon.base.insertBefore(this.__internals.dom.label)}else{icon.base.insertAfter(this.__internals.dom.label)}}})}destroy(){this.__internals.rippleEffect?.destroy();delete this.__internals.rippleEffect;super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,disableMdcRipple:false,label:'',icon:'',style:OcMdButtonStandard.styles.FLAT,disabled:false,iconPosition:OcMdButtonStandard.iconPositions.LEADING,type:OcMdButtonStandard.types.BUTTON},availableTypes:new Set(["button","submit","reset"])}}static createOkButton(){const button=new OcMdButtonStandard({style:'containedFlush'});OLEFA.i18n.load('general.json').then(()=>{button.label=OLEFA.i18n.get('ok')});return button}}OcMdButtonStandard.styles={FLAT:'flat',CONTAINED:'contained',CONTAINEDFLUSH:'containedFlush',OUTLINED:'outlined'};OcMdButtonStandard.iconPositions={LEADING:'leading',TRAILING:'trailing'};OcMdButtonStandard.types={BUTTON:'button',SUBMIT:'submit',RESET:'reset'};OcMdButtonStandard.cssClasses={style:{flat:'',contained:'mdc-button--raised',containedFlush:'mdc-button--unelevated',outlined:'mdc-button--outlined'},icon:{leading:'mdc-button--icon-leading'}};(function(OcMdButtonStandard){})(OcMdButtonStandard||(OcMdButtonStandard={}));Oc.OcMdButtonStandard=OcMdButtonStandard;"use strict";class OcMdButtonStandardHold extends OcMdButtonStandard{constructor(properties){super(properties)};defaults(){return OcMdButtonStandardHold.defaults()};__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,holdDelay:{get:this.__getHoldDelay.bind(this),set:this.__setHoldDelay.bind(this)}}};__setHoldDelay(value){if(!OcDatatype.is('number',value)){return};this.properties.holdDelay=value};__getHoldDelay(){return this.properties.holdDelay};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.pbTransitionDuration=0;this.__internals.progressTimer=undefined;this.__internals.clicky=null;this.propertyHandlers.holdDelay=this.__setHoldDelay};__initialize(properties){super.__initialize(properties)};__initElements(){super.__initElements();const cssBase='oc-md-button-standard-hold';this.__internals.initElementsJobs.push(this.__createDOMNodes({progressBar:{component:OcMdProgressbarLinear,class:`${cssBase}__progress-bar`,properties:{visible:false}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} oc-md-button-standard-hold__button`);this.__internals.dom.label.addClass('oc-md-button-standard-hold__label');this.__internals.dom.icon?.addClass('oc-md-button-standard-hold__icon')}))};__initStates(){super.__initStates();this.__internals.states.define({state:OcMdButtonStandardHold.__states.ENTER_KEY_PRESSED,onChange:this.__onStateChange__enterKeyPressed.bind(this)}).define({state:OcMdButtonStandardHold.__states.HOLD_PROGRESS,onChange:this.__onStateChange__holdProgress.bind(this)}).define({state:OcMdButtonStandardHold.__states.MOUSE_KEY_PRESSED,onChange:this.__onStateChange__mouseKeyPressed.bind(this)}).define({state:OcMdButtonStandardHold.__states.SPACE_KEY_PRESSED,onChange:this.__onStateChange__spaceKeyPressed.bind(this)}).define({state:OcMdButtonStandardHold.__states.FINGER_PRESSED,onChange:this.__onStateChange__touchFingerPressed.bind(this)}).define({state:OcMdButtonStandardHold.__states.ALLOW_CLICK_EVENT})}__onStateChange__enterKeyPressed(){this.__handleHoldProgressState()};__onStateChange__holdProgress(){const condition__isHoldProgressStateActive=this.__internals.states.hasState(OcMdButtonStandardHold.__states.HOLD_PROGRESS);if(condition__isHoldProgressStateActive){this.__startHoldButton()}else{this.__stopHoldButton()}}__onStateChange__mouseKeyPressed(){this.__handleHoldProgressState()}__onStateChange__spaceKeyPressed(){this.__handleHoldProgressState()};__onStateChange__touchFingerPressed(){this.__handleHoldProgressState()}__initEvents(){super.__initEvents();this.__internals.dom.base.on('focusout',this.__onBase__focusout.bind(this)).on('keydown',this.__onBase__keydown.bind(this)).on('keyup',this.__onBase__keyup.bind(this)).on('mousedown',this.__onBase__mousedown.bind(this)).on('mouseout',this.__onBase__mouseout.bind(this)).on('mouseup',this.__onBase__mouseup.bind(this)).on('touchend',this.__onBase__touchend.bind(this)).on('touchstart',this.__onBase__touchstart.bind(this))};__onBase__click(e){if(!this.__internals.states.hasState(OcMdButtonStandardHold.__states.ALLOW_CLICK_EVENT)){e.preventDefault();e.stopImmediatePropagation();return};this.__internals.states.remove(OcMdButtonStandardHold.__states.ALLOW_CLICK_EVENT)}__onBase__focusout(e){const condition__focusWithinInstance=OcHtml.hasFocus(this.__internals.dom.base);if(!condition__focusWithinInstance){const statesToRemove=[OcMdButtonStandardHold.__states.SPACE_KEY_PRESSED,OcMdButtonStandardHold.__states.ENTER_KEY_PRESSED,OcMdButtonStandardHold.__states.MOUSE_KEY_PRESSED,OcMdButtonStandardHold.__states.FINGER_PRESSED];for(const state of statesToRemove){this.__internals.states.remove(state)}}}__onBase__keydown(e){switch(e.key){case OcAria.keys.ENTER:this.__internals.states.add(OcMdButtonStandardHold.__states.ENTER_KEY_PRESSED);break;case OcAria.keys.SPACEBAR:this.__internals.states.add(OcMdButtonStandardHold.__states.SPACE_KEY_PRESSED);break;default:break}};__onBase__keyup(e){switch(e.key){case OcAria.keys.ENTER:this.__internals.states.remove(OcMdButtonStandardHold.__states.ENTER_KEY_PRESSED);break;case OcAria.keys.SPACEBAR:this.__internals.states.remove(OcMdButtonStandardHold.__states.SPACE_KEY_PRESSED);break;default:break}};__onBase__mousedown(e){if(e.button!=OcMdButtonStandardHold.mouseButtons.MAIN){return};this.__internals.states.add(OcMdButtonStandardHold.__states.MOUSE_KEY_PRESSED)};__onBase__mouseout(e){this.__internals.states.remove(OcMdButtonStandardHold.__states.MOUSE_KEY_PRESSED)};__onBase__mouseup(e){if(e.button!=OcMdButtonStandardHold.mouseButtons.MAIN){return};this.__internals.states.remove(OcMdButtonStandardHold.__states.MOUSE_KEY_PRESSED)};__onBase__touchend(e){this.__internals.states.remove(OcMdButtonStandardHold.__states.FINGER_PRESSED)};__onBase__touchstart(e){this.__internals.states.add(OcMdButtonStandardHold.__states.FINGER_PRESSED)};__startHoldButton(){if(this.properties.disabled){return};if(!this.__internals.clicky){this.__internals.elements.progressBar.visible=true;this.__internals.clicky=Date.now();window.clearInterval(this.__internals.progressTimer);this.__internals.progressTimer=window.setInterval(this.__setProgress.bind(this),OcMdButtonStandardHold.progressResolution)}};__stopHoldButton(){this.__internals.elements.progressBar.visible=false;window.clearInterval(this.__internals.progressTimer);if(this.__internals.clicky&&Date.now()-this.__internals.clicky<OcMdButtonStandardHold.holdReleaseWarning){magictooltip(this.__internals.dom.base.get(0),OLEFA.i18n.get('hold_to_confirm'))}this.__internals.elements.progressBar.progress=0;this.__internals.clicky=null};__setProgress(){const adjustedHoldDelay=this.__getAdjustedHoldDelay();const clicky=this.__internals.clicky||0;const timeGoneBy=Date.now()-clicky;const progress=timeGoneBy/adjustedHoldDelay;this.__internals.elements.progressBar.progress=progress;if(timeGoneBy>=(adjustedHoldDelay+this.__internals.pbTransitionDuration+OcMdButtonStandardHold.progressResolution)){this.__internals.states.remove(OcMdButtonStandardHold.__states.HOLD_PROGRESS);this.__internals.states.add(OcMdButtonStandardHold.__states.ALLOW_CLICK_EVENT);
1const mouseEvent=new MouseEvent('click');OcHtml.clickOnElement(this.__internals.dom.base);this.__trigger__click({nativeEvent:mouseEvent})}};__getAdjustedHoldDelay(){var td=this.__internals.elements.progressBar.base.find('.oc-md-progressbar-linear__primary-bar').css('transition-duration');while(isNaN(Number(td))){td=td.slice(0,-1)}this.__internals.pbTransitionDuration=Number.parseFloat(td)*1000;return this.properties.holdDelay-this.__internals.pbTransitionDuration-OcMdButtonStandardHold.progressResolution};__handleHoldProgressState(){const condition__spaceKeyIsPressed=this.__internals.states.hasState(OcMdButtonStandardHold.__states.SPACE_KEY_PRESSED);const condition__enterKeyIsPressed=this.__internals.states.hasState(OcMdButtonStandardHold.__states.ENTER_KEY_PRESSED);const condition__mouseKeyIsPressed=this.__internals.states.hasState(OcMdButtonStandardHold.__states.MOUSE_KEY_PRESSED);const condition__fingerIsPressed=this.__internals.states.hasState(OcMdButtonStandardHold.__states.FINGER_PRESSED);const condition__holdStateShouldBeActive=condition__enterKeyIsPressed||condition__spaceKeyIsPressed||condition__mouseKeyIsPressed||condition__fingerIsPressed;this.__internals.states.set(OcMdButtonStandardHold.__states.HOLD_PROGRESS,condition__holdStateShouldBeActive)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,holdDelay:2000}}}}OcMdButtonStandardHold.__keyboardHoldTriggers=[OcAria.keys.SPACEBAR,OcAria.keys.ENTER];OcMdButtonStandardHold.__states={...OcMdButtonStandard.__states,SPACE_KEY_PRESSED:'space-key-pressed',ENTER_KEY_PRESSED:'enter-key-pressed',MOUSE_KEY_PRESSED:'mouse-key-pressed',FINGER_PRESSED:'finter-pressed',HOLD_PROGRESS:'hold-progress',ALLOW_CLICK_EVENT:'allow-click-event'};OcMdButtonStandardHold.mouseButtons={MAIN:0,AUXILLARY:1,SECONDARY:2,TERTIARY:3,QUATERNARY:4};OcMdButtonStandardHold.holdReleaseWarning=200;OcMdButtonStandardHold.progressResolution=100;Oc.OcMdButtonStandardHold=OcMdButtonStandardHold;"use strict";class OcMdButtonSegmented extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdButtonSegmented.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,name:{get:this.__getName.bind(this),set:this.__setName.bind(this)},required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},labelledBy:{get:this.__getLabelledBy.bind(this),set:this.__setLabelledBy.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},hideLabels:{get:this.__getHideLabels.bind(this),set:this.__setHideLabels.bind(this)},buttons:{get:this.__getButtons.bind(this)}}}__getName(){return this.properties.name}__setName(value){this.properties.name=value;this.__handleInputNode()}__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__handleInputNode()}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value}__getLabelledBy(){return this.properties.labelledBy}__setLabelledBy(value){this.properties.labelledBy=value}__getHideLabels(){return this.properties.hideLabels}__setHideLabels(value){this.properties.hideLabels=value;this.__internals.states.set(OcMdButtonSegmented.__states.HIDE_LABELS,this.properties.hideLabels)}__getButtons(){return Object.values(this.__internals.buttons)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.buttons={};this.__internals.promises={cssMdButtonSegmented:OLEFA.css.getIfNotLoaded('md/button/segmented.css','--loaded--md-button-segmented')};this.propertyHandlers.name=this.__setName;this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.labelledBy=this.__setLabelledBy;this.propertyHandlers.hideLabels=this.__setHideLabels;this.propertyHandlers.buttons=this.addButton}__initElements(){super.__initElements();const cssBase='oc-md-button-segmented';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({input:{tag:'input',class:`${cssBase}__input`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-segmented-button`)}))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdButtonSegmented.__states.HIDE_LABELS})}__initialize(properties){super.__initialize(properties);this.defer(()=>{this.propertyHandlers.value=this.__setValue;const value=(properties&&"value"in properties&&properties.value)?properties.value:this.defaults().properties.value;this.__setPropertyViaPropertyHandler('value',value)})}__handleInputNode(){this.__deferOnce('__handleInputNode',()=>{const node=this.__internals.dom.input;const attributesData={};const booleanBasedProperties=['required'];for(const property of booleanBasedProperties){const value=this.properties[property];attributesData[property]={condition:value,value:''}}const textBasedProperties=['name'];for(const property of textBasedProperties){const value=this.properties[property];attributesData[property]={condition:value!==null,value:value||''}}OcHtml.setAttributesIfTrue(node,attributesData)})}addButton(button){if(this.__internals.buttons[button.refID]){OLEFA.log.info('Duplicate button');return};this.__internals.buttons[button.refID]=button;this.__internals.dom.base.append(button.base)}getButton(refId){const button=this.__internals.buttons[refId];if(!button){return undefined}return button}removeButton(refId){if(!this.__internals.buttons[refId]){OLEFA.log.info('Button with given ID does not exist',arguments);return};this.__internals.buttons[refId].events.cancelAllFromScope(this.refID);const toRemove=this.__internals.buttons[refId];OcHtml.detachIfInside(toRemove.base,this.__internals.dom.base);delete this.__internals.buttons[refId]}__removeButton(value){this.properties.buttons}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,name:'',required:false,label:'',labelledBy:'',value:'',hideLabels:false,buttons:[]}}}}OcMdButtonSegmented.__states={...OcMdComponent.__states,HIDE_LABELS:'hide-labels'};Oc.OcMdButtonSegmented=OcMdButtonSegmented;"use strict";
1class OcMdButtonSegmentedSingle extends OcMdButtonSegmented{constructor(properties){super(properties)}defaults(){return OcMdButtonSegmentedSingle.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setRequired(value){super.__setRequired(value);if(this.__internals.ariaRadiogroup){this.__internals.ariaRadiogroup.required=value}}__setLabel(value){super.__setLabel(value);if(this.__internals.ariaRadiogroup){this.__internals.ariaRadiogroup.label=value.length>0?value:null}}__setLabelledBy(value){super.__setLabelledBy(value);if(this.__internals.ariaRadiogroup){this.__internals.ariaRadiogroup.labelledBy=value.length>0?value:null}}__getValue(){return this.properties.value}__setValue(value){const radioWithValue=Object.values(this.__internals.buttons).find(button=>button.value==value);if(!radioWithValue){return};this.properties.value=value;radioWithValue.selected=true}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.propertyHandlers.value=this.__setValue;if(properties){if(properties.value){this.__setValue(properties.value)}}}__initElements(){super.__initElements();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.ariaRadiogroup=new OcAriaRadiogroup(baseNode)}this.__internals.initElementsJobs.push(this.defer(()=>{const base=this.__internals.dom.base;base.addClass(`mdc-segmented-button--single-select`)}))}__initEvents(){super.__initEvents();this.__internals.ariaRadiogroup?.events.listen('change',this.__onAriaRadiogroup__change.bind(this),this.refID)}__onAriaRadiogroup__change(ev){this.properties.value=ev.data.value;this.__internals.dom.input.val(ev.data.value);this.__trigger__change({value:ev.data.value})}__trigger__change(eventData){const event=new OcEvent({eventName:'change',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,value:''}}}}Oc.OcMdButtonSegmentedSingle=OcMdButtonSegmentedSingle;"use strict";class OcMdButtonSegmentedMulti extends OcMdButtonSegmented{constructor(properties){super(properties)}defaults(){return OcMdButtonSegmentedMulti.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__getValue(){throw new Error("Method not implemented.");}__setValue(value){throw new Error("Method not implemented.");}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();this.__internals.initElementsJobs.push(this.defer(()=>{const base=this.__internals.dom.base;base.attr('role',"group")}))}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdButtonSegmentedMulti=OcMdButtonSegmentedMulti;"use strict";class OcMdButtonSegmentedSegment extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdButtonSegmentedSegment.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},selected:{get:this.__getSelected.bind(this),set:this.__setSelected.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__internals.states.set(OcMdButtonSegmentedSegment.__states.HAS_LABEL,this.properties.label.length>0);this.__updateLabelNode()}__getIcon(){return this.properties.icon}__setIcon(value){this.properties.icon=value;this.__updateIconInstance()}__getSelected(){return this.properties.selected}__setSelected(value){this.properties.selected=value;this.__internals.states.set(OcMdButtonSegmentedSegment.__states.SELECTED,this.properties.selected)}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.selected=this.__setSelected;this.propertyHandlers.value=this.__setValue}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-button-segmented-segment';this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div',class:`${cssBase} mdc-touch-target-wrapper`,children:{button:{tag:'button',class:`${cssBase}__button mdc-segmented-button__segment mdc-segmented-button--touch`,attributes:{type:'button'},children:{touch:{tag:'div',class:`${cssBase}__touch mdc-segmented-button__touch`},ripple:{tag:'div',class:`${cssBase}__ripple mdc-segmented-button__ripple`},label:{tag:'div',class:`${cssBase}__label mdc-segmented-button__label`}}}}}}))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdButtonSegmentedSegment.__states.HAS_LABEL}).define({state:OcMdButtonSegmentedSegment.__states.SELECTED,onChange:this.__onStateChange__hasSelected.bind(this)})}__onStateChange__hasSelected(){this.__updateButtonLabel()}__updateLabelNode(){this.__deferOnce('__updateLabelNode',()=>{const node=this.__internals.dom.label;const label=this.__getLabel();node.text(label)})}__updateButtonLabel(){this.__deferOnce('__updateButtonLabel',()=>{const node=this.__internals.dom.button;const isSelected=this.__internals.states.hasState(OcMdButtonSegmentedSegment.__states.SELECTED);OcHtml.setClassIfTrue(isSelected,node,'mdc-segmented-button__segment--selected')})}__updateIconInstance(){if(this.__internals.icon){this.__internals.icon.destroy();delete this.__internals.icon}if(this.properties.icon){const icon=OcUiFonticon(this.properties.icon);this.__internals.icon=icon;icon.base.addClass('mdc-segmented-button__icon oc-md-button-segmented-button__icon');this.__internals.dom.button.append(icon.base)}}destroy(){super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',icon:'',selected:false,value:''}}}}OcMdButtonSegmentedSegment.__states={...OcMdComponent.__states,SELECTED:'selected',HAS_LABEL:'has-label'};
1Oc.OcMdButtonSegmentedSegment=OcMdButtonSegmentedSegment;"use strict";class OcMdButtonSegmentedSegmentSingle extends OcMdButtonSegmentedSegment{constructor(properties){super(properties)}defaults(){return OcMdButtonSegmentedSegmentSingle.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setLabel(value){super.__setLabel(value);if(this.__internals.ariaRadio){this.__internals.ariaRadio.label=value}}__setSelected(value){super.__setSelected(value);if(this.__internals.ariaRadio){this.__internals.ariaRadio.checked=value}}__setValue(value){super.__setValue(value);if(this.__internals.ariaRadio){this.__internals.ariaRadio.value=value}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.value=this.__setValue}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const buttonNode=this.__internals.dom.button.get(0);if(buttonNode){this.__internals.ariaRadio=new OcAriaRadio(buttonNode)};this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass('oc-md-button-segmented-segment-single')}))}__initEvents(){super.__initEvents();this.__internals.ariaRadio?.events.listen('property-change',this.__onAriaRadio__propertyChange.bind(this))}__onAriaRadio__propertyChange(ev){if(ev.property=='checked'){this.__setSelected(ev.value)}}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdButtonSegmentedSegmentSingle=OcMdButtonSegmentedSegmentSingle;"use strict";class OcMdCard extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdCard.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,content:{get:()=>{return this.__internals.dom.content}},mediaBackground:{get:this.__getMediaBackground.bind(this),set:this.__setMediaBackground.bind(this)},mediaText:{get:this.__getMediaText.bind(this),set:this.__setMediaText.bind(this)},mediaStyle:{get:this.__getMediaStyle.bind(this),set:this.__setMediaStyle.bind(this)},actions:{get:this.__getActions.bind(this)},style:{get:this.__getStyle.bind(this),set:this.__setStyle.bind(this)},primaryAction:{get:this.__getPrimaryAction.bind(this),set:this.__setPrimaryAction.bind(this)}}};__setMediaBackground(value){this.properties.mediaBackground=value;this.__deferOnce('__setter__mediaBackground',()=>{this.__internals.dom.mediaWrapper.css({'background-image':'url('+this.properties.mediaBackground+')'})})};__getMediaBackground(){return this.properties.mediaBackground};__setMediaText(value){this.properties.mediaText=value;this.__deferOnce('__setter__mediaText',()=>{this.__internals.dom.mediaContent.html(this.properties.mediaText)})};__getMediaText(){return this.properties.mediaText};__setMediaStyle(value){if(!OcMdCard.__mediaStyles[value]){return};this.properties.mediaStyle=value;this.__deferOnce('__setter__mediaStyle',()=>{this.__internals.dom.mediaWrapper.removeClass('mdc-card__media--square mdc-card__media--16-9');if(this.properties.mediaStyle=='none'){this.__internals.dom.mediaWrapper.detach()}else{this.__internals.dom.mediaWrapper.prependTo(this.__internals.dom.primaryActionWrapper);if(this.properties.mediaStyle=='square'){this.__internals.dom.mediaWrapper.addClass('mdc-card__media--square')}else if(this.properties.mediaStyle=='wide'){this.__internals.dom.mediaWrapper.addClass('mdc-card__media--16-9')}}})};__getMediaStyle(){return this.properties.mediaStyle};__getActions(){return this.properties.actions};__setStyle(value){if(!OcMdCard.__cardStyles[value]){return};this.properties.style=value;this.__deferOnce('__setter__style',()=>{this.__internals.dom.base.removeClass('mdc-card--outlined');if(this.properties.style=='outlined'){this.__internals.dom.base.addClass('mdc-card--outlined')}})};__getStyle(){return this.properties.style};__setPrimaryAction(value){this.properties.primaryAction=value;this.__deferOnce('__setter__primaryAction',()=>{if(this.properties.primaryAction){this.__internals.dom.primaryActionWrapper.addClass('mdc-card__primary-action');this.__internals.dom.base.attr('tabindex',0)}else{this.__internals.dom.primaryActionWrapper.removeClass('mdc-card__primary-action');this.__internals.dom.base.removeAttr('tabindex')}})};__getPrimaryAction(){return this.properties.primaryAction};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdCard:OLEFA.css.getIfNotLoaded('md/card.css','--loaded--md-card')};
1this.propertyHandlers.mediaBackground=this.__setMediaBackground;this.propertyHandlers.mediaText=this.__setMediaText;this.propertyHandlers.mediaStyle=this.__setMediaStyle;this.propertyHandlers.actionButtons=this.addButton;this.propertyHandlers.actionIcons=this.addIconButton;this.propertyHandlers.style=this.__setStyle;this.propertyHandlers.primaryAction=this.__setPrimaryAction};__initElements(){super.__initElements();this.__createDOMNodes({base:{tag:'div',class:'mdc-card oc-md-card',children:{primaryActionWrapper:{tag:'div',class:'oc-md-card__primary-action-wrapper mdc-card__primary-action',children:{content:{tag:'div',class:'oc-md-card__content'}},},}},mediaWrapper:{tag:'div',class:'mdc-card__media mdc-card__media--square oc-md-card__media-wrapper',children:{mediaContent:{tag:'div',class:'mdc-card__media-content oc-md-card__media-content'}}},actionsWrapper:{tag:'div',class:'mdc-card__actions oc-md-card__actions-wrapper',children:{actionsButtons:{tag:'div',class:'mdc-card__action-buttons oc-md-card__buttons'},actionsIcons:{tag:'div',class:'mdc-card__action-icons oc-md-card__icons'}}}})};__initStates(){super.__initStates();this.__internals.states.define({state:'hasButtons',onGain:this.__onStateGain__hasButtons.bind(this),onLoss:this.__onStateLoss__hasButtons.bind(this)})};__onStateGain__hasButtons(){this.defer(()=>{this.__internals.dom.actionsWrapper.appendTo(this.__internals.dom.base)})};__onStateLoss__hasButtons(){this.defer(()=>{this.__internals.dom.actionsWrapper.detach()})};__onBase__click(ev){super.__onBase__click(ev);if(this.properties.primaryAction){this.__trigger__primaryAction()}}addButton(buttonData){let Button;if(buttonData instanceof OcMdButtonStandard||buttonData instanceof OcMdButtonStandardHold){Button=buttonData}else{Button=new OcMdButtonStandard(buttonData)};if(!(Button instanceof OcMdButtonStandard||buttonData instanceof OcMdButtonStandardHold)){return};this.properties.actionButtons.push(Button);this.defer(()=>{Button.base.addClass('mdc-card__action mdc-card__action--button').appendTo(this.__internals.dom.actionsButtons)});this.__internals.states.add('hasButtons')};addIconButton(buttonData){let Button;if(buttonData instanceof OcMdButtonIcon||buttonData instanceof OcMdButtonIcontoggle){Button=buttonData}else{Button=new OcMdButtonIcon(buttonData)};if(!(Button instanceof OcMdButtonIcon)){return};this.properties.actionIcons.push(Button);this.defer(()=>{Button.base.addClass('mdc-card__action mdc-card__action--icon').appendTo(this.__internals.dom.actionsIcons)});this.__internals.states.add('hasButtons')};__trigger__primaryAction(){this.events.trigger('primary-action',undefined)};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,mediaBackground:'',mediaText:'',mediaStyle:'none',actionButtons:[],actionIcons:[],style:'default',primaryAction:false}}}}OcMdCard.__cardStyles={default:1,outlined:1};OcMdCard.__mediaStyles={none:1,square:1,wide:1};(function(OcMdCard){ $})(OcMdCard||(OcMdCard={}));Oc.OcMdCard=OcMdCard;"use strict";class OcMdChip extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdChip.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},sortValue:{get:this.__getSortValue.bind(this),set:this.__setSortValue.bind(this)},leadingIcon:{get:this.__getLeadingIcon.bind(this),set:this.__setLeadingIcon.bind(this)},accentColor:{get:this.__getAccentColor.bind(this),set:this.__setAccentColor.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__handleTextLabelNode()}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value}__getSortValue(){return this.properties.sortValue}__setSortValue(value){this.properties.sortValue=value;this.__handleBaseNode()}__getLeadingIcon(){return this.properties.leadingIcon}__setLeadingIcon(value){this.properties.leadingIcon=value;this.__recreateLeadingIcon()}__getAccentColor(){return this.properties.accentColor}__setAccentColor(value){this.properties.accentColor=value;this.__handleBaseNode();this.__handleHasAccentColorState()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.value=this.__setValue;this.propertyHandlers.sortValue=this.__setSortValue;this.propertyHandlers.leadingIcon=this.__setLeadingIcon;this.propertyHandlers.accentColor=this.__setAccentColor}__initElements(){super.__initElements();const cssBase='oc-md-chip';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'div',class:`${cssBase}__ripple mdc-chip__ripple`},contentCell:{tag:'span',class:`${cssBase}__content-cell`,attributes:{role:'gridcell'},children:{primaryAction:{tag:'span',class:`${cssBase}__primary-action mdc-chip__primary-action`,attributes:{role:'button'},children:{text:{tag:'span',class:`${cssBase}__text mdc-chip__text`,children:{accentColor:{tag:'span',class:`${cssBase}__accent-color`},textLabel:{tag:'span',class:`${cssBase}__text-label`}}}}}}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.attr({'role':'row'}).addClass(`${cssBase} mdc-chip`);this.__internals.dom.accentColor.text('⬤')},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdChip.__states.HAS_ACCENT_COLOR,onChange:this.__onStateChange__hasAccentColor.bind(this)})}__onStateChange__hasAccentColor(){}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`MDCChip:interaction.${this.refID}`,this.__onBase__mdcChip__interaction.bind(this)).on(`MDCChip:removal.${this.refID}`,this.__onBase__mdcChip__removal.bind(this)).on(`MDCChip:navigation.${this.refID}`,this.__onBase__mdcChip__navigation.bind(this))}__onBase__mdcChip__interaction(ev){this.__trigger__interaction()}__onBase__mdcChip__removal(ev){this.__trigger__removal()}__onBase__mdcChip__navigation(ev){this.__trigger__navigation({key:ev.originalEvent.detail.ke
1y,source:ev.originalEvent.detail.source})}__initialize(properties){super.__initialize(properties)}__handleHasAccentColorState(){const accentColor=this.__getAccentColor();this.__internals.states.set(OcMdChip.__states.HAS_ACCENT_COLOR,accentColor!=null);this.__handleAccentColorNode()}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcMdChip',()=>{const node=this.__internals.dom.base;const sortValue=this.__getSortValue();const accentColor=this.__getAccentColor();const hasSortValue=sortValue.length>0;OcHtml.setAttributeIfTrue(hasSortValue,node,'data-sort-value',sortValue);node.css('--accent-color',accentColor||'')})}__handleAccentColorNode(){this.__deferOnce('__handleAccentColorNode',()=>{const node=this.__internals.dom.accentColor;const hasAccentColor=this.__internals.states.hasState(OcMdChip.__states.HAS_ACCENT_COLOR);OcHtml.setAttributeIfTrue(hasAccentColor!=null,node,'inert','')},'repaint')}__handleTextLabelNode(){this.__deferOnce('__handleTextLabelNode',()=>{const node=this.__internals.dom.textLabel;const label=this.__getLabel();node.text(label)},'repaint')}__recreateLeadingIcon(){this.__deferOnce('__recreateLeadingIcon',()=>{if(this.__internals.leadingIcon){this.__internals.leadingIcon.destroy();delete this.__internals.leadingIcon};if(this.properties.leadingIcon){const icon=OcUiFonticon(this.properties.leadingIcon);this.__internals.leadingIcon=icon;icon.base.addClass('mdc-chip__icon mdc-chip__icon--leading').insertAfter(this.__internals.dom.ripple)}})}__trigger__interaction(){const event=new OcEvent({eventName:'interaction'});this.__internals.events.triggerEvent(event)}__trigger__removal(){const event=new OcEvent({eventName:'removal'});this.__internals.events.triggerEvent(event)}__trigger__navigation(eventData){const event=new OcEvent({eventName:'navigation',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',value:undefined,sortValue:'',leadingIcon:'',accentColor:null},cssFiles:{...inheritedDefaults.cssFiles,mdChip:{file:"md/chip.css",key:"--loaded--md-chip"}}}}}OcMdChip.__states={...OcMdComponent.__states,HAS_ACCENT_COLOR:'has-accent-color'};Oc.OcMdChip=OcMdChip;"use strict";class OcMdChipInput extends OcMdChip{constructor(properties){super(properties)}defaults(){return OcMdChipInput.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setLabel(value){super.__setLabel(value);this.__internals.promises.langkitGeneral.then(()=>{if(this.__internals.ariaTrailingIcon){this.__internals.ariaTrailingIcon.label=OLEFA.i18n.get('remove_item',{'ITEM':`${value}`})}})}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={langkitGeneral:OLEFA.i18n.load('general.json')}}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-chip-input';this.__internals.initElementsJobs.push(this.__createDOMNodes({trailingIconCell:{tag:'span',class:`${cssBase}__trailing-icon-cell`,attributes:{role:'gridcell'},children:{trailingIcon:{component:OcMdIcon,class:`${cssBase}__trailing-icon mdc-chip__icon mdc-chip__icon--trailing`,properties:{icon:'cancel',rberg:123}}}}},this.__internals.dom.base));const trailingIconNode=this.__internals.elements.trailingIcon.base.get(0);if(trailingIconNode){this.__internals.ariaTrailingIcon=new OcAriaButton(trailingIconNode)};this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase}`);this.__internals.elements.trailingIcon.base.attr({role:'button',tabindex:'0'})},true))}__initEvents(){super.__initEvents();this.__internals.elements.trailingIcon.events.listen('click',this.__onTrailingIcon__click.bind(this),this.refID)}__onTrailingIcon__click(ev){this.__trigger__trailingIconInteraction()}__trigger__trailingIconInteraction(){const event=new OcEvent({eventName:'trailingIconInteraction'});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdChipInput=OcMdChipInput;"use strict";
1class OcMdChipSelectable extends OcMdChip{constructor(properties){super(properties)}defaults(){return OcMdChipSelectable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`MDCChip:selection.${this.refID}`,this.__onBase__mdcChip__selection.bind(this))}__onBase__mdcChip__selection(ev){this.__trigger__selection({selected:ev.originalEvent.detail.selected})}__trigger__selection(eventData){const event=new OcEvent({eventName:'selection',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdChipSelectable=OcMdChipSelectable;"use strict";class OcMdChipset extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdChipset.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,chips:{get:this.__getChips.bind(this)}}}__getChips(){return Object.values(this.__internals.chips).sort((a,b)=>a.sortValue.localeCompare(b.sortValue))}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.chips={};this.propertyHandlers.chips=this.addChip}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-chipset';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.attr({'role':'grid'}).addClass(`${cssBase} mdc-chip-set`)},true))}__initEvents__chip(chip){chip.events.listen('interaction',this.__onChip__interaction.bind(this,chip),this.refID).listen('navigation',this.__onChip__navigation.bind(this,chip),this.refID)}__onChip__interaction(chip,ev){this.__trigger__chipInteraction({chip:chip})}__onChip__navigation(chip,ev){this.__trigger__chipNavigation({...ev.data,chip:chip})}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcChipSet=new mdc.chips.deprecated.MDCChipSet(baseNode)}}__updateChipsProperty(){this.properties.chips=this.chips}addChip(chip){if(this.__internals.chips[chip.refID]){OLEFA.log.info('Duplicate ID');return};this.__internals.chips[chip.refID]=chip;this.__initEvents__chip(chip);this.__updateChipsProperty();chip.base.appendTo(this.__internals.dom.base);const chipNode=chip.base.get(0);if(chipNode&&this.__internals.mdcChipSet){this.__internals.mdcChipSet.addChip(chipNode)}this.__trigger__chipAdd({chip:chip})}getChip(refId){const chip=this.__internals.chips[refId];if(!chip){return undefined};return chip}removeChip(refId){if(!this.__internals.chips[refId]){OLEFA.log.info('ID does not exist');return};const chip=this.__internals.chips[refId];OcHtml.detachIfInside(chip.base,this.__internals.dom.base);delete this.__internals.chips[refId];this.__updateChipsProperty();this.__trigger__chipRemove({chip:chip})}__trigger__chipAdd(eventData){const event=new OcEvent({eventName:'chip-add',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__chipInteraction(eventData){const event=new OcEvent({eventName:'chip-interaction',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__chipNavigation(eventData){const event=new OcEvent({eventName:'chip-navigation',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__chipRemove(eventData){const event=new OcEvent({eventName:'chip-remove',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,chips:[]}}}}Oc.OcMdChipset=OcMdChipset;"use strict";class OcMdChipsetInput extends OcMdChipset{constructor(properties){super(properties)}defaults(){return OcMdChipsetInput.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-chipset-input';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-chip-set--input`)},true))}__initEvents__chip(chip){super.__initEvents__chip(chip);chip.events.listen('trailingIconInteraction',this.__onChip__trailingIconInteraction.bind(this,chip),this.refID)}__onChip__trailingIconInteraction(chip,ev){this.removeChip(chip.refID)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,chips:[]}}}}Oc.OcMdChipsetInput=OcMdChipsetInput;"use strict";
1class OcMdChipsetSelectable extends OcMdChipset{constructor(properties){super(properties)}defaults(){return OcMdChipsetSelectable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.__internals.autoSortChips=new OcInteractivityAutoSort(this.__internals.dom.base,{sortKey:'data-sort-value'})}__initElements(){super.__initElements();this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass('oc-md-chipset-selectable')},true))}__initEvents__chip(chip){super.__initEvents__chip(chip);chip.events.listen('selection',this.__onChip__selection.bind(this,chip),this.refID)}__onChip__selection(chip,ev){this.__trigger__chipSelection({...ev.data,chip:chip});this.__trigger__select({chip:chip,value:chip.value});this.__handleSelectionChange()}__handleSelectionChange(){};select(refId,selected){if(!this.__internals.mdcChipSet){return};const chip=this.getChip(refId);if(!chip){return}const chipId=chip.base.attr('id');const mdcChip=this.__internals.mdcChipSet.chips.find(chip=>chip.id===chipId);if(!mdcChip){return};mdcChip.selected=selected}selectByValue(value,selected){const chip=Object.values(this.__internals.chips).find(chip=>chip.value==value);if(!chip){OLEFA.log.warn('Value not found');return};this.select(chip.refID,selected)}__trigger__chipSelection(eventData){const event=new OcEvent({eventName:'chip-selection',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,chips:[]}}}}Oc.OcMdChipsetSelectable=OcMdChipsetSelectable;"use strict";class OcMdChipsetChoice extends OcMdChipsetSelectable{constructor(properties){super(properties)}defaults(){return OcMdChipsetChoice.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)}}}__getValue(){return this.properties.value}__setValue(value){const isValueInChips=Object.values(this.__internals.chips).some(chip=>chip.value==value);if(!isValueInChips){OLEFA.log.info('Value not acceptable',this,arguments);return}if(value===this.properties.value){return};this.properties.value=value}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.propertyHandlers.value=this.__setValue;const value=(properties&&"value"in properties)?properties.value:this.defaults().properties.value;this.__setPropertyViaPropertyHandler('value',value)}__initElements(){super.__initElements();const cssBase='oc-md-chipset-choice';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-chip-set--choice`)},true))}__handleMdcChipset(){this.__deferOnce('__handleMdcChipset',()=>{if(!this.__internals.mdcChipSet){return};const value=this.__getValue();const selectedChipIds=Object.values(this.__internals.chips).filter(chip=>chip.value==value).map(chip=>chip.base.attr('id'));for(const chip of this.__internals.mdcChipSet?.chips){const shouldBeSelected=selectedChipIds.includes(chip.id);chip.selected=shouldBeSelected}})}__handleSelectionChange(){const selectedChips=this.__internals.mdcChipSet?.selectedChipIds;if(!selectedChips){return};const selectedChip=selectedChips[0];const chip=Oc.getInstanceFromElement(this.__internals.dom.base.find(`#${selectedChip}`));if(!(chip instanceof OcMdChipSelectable)){return};this.__setValue(chip.value)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,value:''}}}}Oc.OcMdChipsetChoice=OcMdChipsetChoice;"use strict";class OcMdDialog extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdDialog.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,title:{get:this.__getTitle.bind(this),set:this.__setTitle.bind(this)},canClose:{get:this.__getCanClose.bind(this),set:this.__setCanClose.bind(this)},fullscreen:{get:this.__getFullscreen.bind(this),set:this.__setFullscreen.bind(this)},header:{get:this.__getHeader.bind(this)},content:{get:this.__getContent.bind(this)}}}__getTitle(){return this.__internals.properties.title.get()}__setTitle(value,setAsDefault=false){this.__internals.properties.title.set(value,setAsDefault)}__getCanClose(){return this.properties.canClose}
1__setCanClose(value){this.properties.canClose=value}__getFullscreen(){return this.properties.fullscreen}__setFullscreen(value){this.properties.fullscreen=value;this.__internals.states.set(OcMdDialog.__states.IS_FULLSCREEN,this.properties.fullscreen)}__getHeader(){return this.__internals.dom.title}__getContent(){return this.__internals.dom.content}__generateInternalProperties(){const inheritedInternalProperties=super.__generateInternalProperties();const defaults=this.defaults();return{...inheritedInternalProperties,title:new OcProperty({name:'title',value:defaults.properties.title,onChange:this.__onPropertyValueChangeHandler.bind(this)})}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.title=this.__setTitle;this.propertyHandlers.canClose=this.__setCanClose;this.propertyHandlers.fullscreen=this.__setFullscreen}__initialize(properties){super.__initialize(properties);this.__internals.initElementsDone.finally(()=>{const node=this.__internals.dom.surface.get(0);if(node){this.__internals.ariaDialogHandler=new OcAriaAlertDialog(node,{labelledBy:`${this.refID}--title`,describedBy:`${this.refID}--content`})};this.__onStateChange__hasTitle();this.__onStateChange__isFullscreen();this.__handleHasTitleState();this.__handleTitleNode()})}__initElements(){super.__initElements();const cssBase='oc-md-dialog';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({container:{tag:'div',class:`${cssBase}__container mdc-dialog__container`,children:{surface:{tag:'div',class:`${cssBase}__surface mdc-dialog__surface`,children:{title:{tag:'h2',class:`${cssBase}__title mdc-dialog__title`,attributes:{id:`${this.refID}--title`}},content:{tag:'div',class:`${cssBase}__content mdc-dialog__content`,attributes:{id:`${this.refID}--content`}}}}}},scrim:{tag:'div',class:`${cssBase}__scrim mdc-dialog__scrim`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.__createDOMNodes({header:{tag:'div',class:`${cssBase}__header mdc-dialog__header`},close:{component:OcMdButtonIcon,class:`${cssBase}__close mdc-dialog__close`,properties:{icon:'md:close'}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-dialog ${OcMdMenu.cssClasses.fixedAnchor}`)},true))}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`keydown.${this.refID}`,this.__onBase__keydown.bind(this));this.__internals.dom.title.on(`dblclick.${this.refID}`,this.__onTitle__dblclick.bind(this));this.__internals.dom.scrim.on(`click.${this.refID}`,this.__onScrim__click.bind(this))}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'title':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)}if(ev.value instanceof OcNodeText){ev.value.events.listen('render',()=>{this.__handleHasTitleState()},this.refID)}this.__handleHasTitleState();this.__handleTitleNode();break;default:break}}__onBase__keydown(ev){if(ev.key==OcAria.keys.ESCAPE){ev.preventDefault();this.close()}}__onTitle__dblclick(ev){if(document.fullscreenElement){document.exitFullscreen()}else{const node=this.__internals.dom.surface.get(0);if(node){node.requestFullscreen()}}}__onScrim__click(ev){this.close()}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdDialog.__states.IS_OPEN,onChange:this.__onStateChange__isOpen.bind(this)}).define({state:OcMdDialog.__states.HAS_TITLE,onChange:this.__onStateChange__hasTitle.bind(this)}).define({state:OcMdDialog.__states.IS_FULLSCREEN,onChange:this.__onStateChange__isFullscreen.bind(this)})}__onStateChange__isOpen(data){const isOpen=this.__internals.states.hasState(OcMdDialog.__states.IS_OPEN);if(isOpen){if(this.__internals.dom.base.parent().length==0){this.__internals.dom.base.appendTo(document.body)};this.__internals.ariaDialogHandler?.open();this.__internals.mdcDialog?.open()}else{this.__internals.mdcDialog?.close(data.reason);this.__internals.ariaDialogHandler?.close()}}__onStateChange__hasTitle(){this.__deferOnce('__onStateChange__hasTitle',()=>{const hasTitle=this.__internals.states.hasState(OcMdDialog.__states.HAS_TITLE);if(hasTitle){this.__internals.dom.title.insertBefore(this.__internals.dom.content)}else{this.__internals.dom.title.detach()}})}__onStateChange__isFullscreen(){this.__deferOnce('__onStateChange__isFullscreen',()=>{const isFullscreen=this.__internals.states.hasState(OcMdDialog.__states.IS_FULLSCREEN);OcHtml.setClassIfTrue(isFullscreen,this.__internals.dom.base,'mdc-dialog--fullscreen');this.__handleHeader()})}__initEvents__mdcDialog(mdcDialog){mdcDialog.listen('MDCDialog:closed',this.__onMdcDialog__closed.bind(this));mdcDialog.listen('MDCDialog:closing',this.__onMdcDialog__closing.bind(this));mdcDialog.listen('MDCDialog:opened',this.__onMdcDialog__opened.bind(this));mdcDialog.listen('MDCDialog:opening',this.__onMdcDialog__opening.bind(this))}__onMdcDialog__closed(ev){this.__internals.dom.base.detach();this.__trigger__close({reason:ev.detail.action})}__onMdcDialog__closing(ev){this.__trigger__closing({reason:ev.detail.action})}__onMdcDialog__opened(){this.__trigger__open()}__onMdcDialog__opening(){this.__trigger__opening()}__onHtmlReady(){super.__onHtmlReady();const nodeBase=this.__internals.dom.base.get(0);if(nodeBase){this.__internals.mdcDialog=new mdc.dialog.MDCDialog(nodeBase);this.__internals.mdcDialog.escapeKeyAction='';this.__internals.mdcDialog.scrimClickAction='';this.__initEvents__mdcDialog(this.__internals.mdcDialog)}}__handleHasTitleState(){const title=this.__getTitle();let titleString;if(title instanceof OcNodeText){titleString=title.node.textContent}else{titleString=title}this.__internals.states.set(OcMdDialog.__states.HAS_TITLE,titleString.length>0)}__handleHeader(){this.__deferOnce('__handleHeader',()=>{const isFullscreen=this.__internals.states.hasState(OcMdDialog.__states.IS_FULLSCREEN);if(isFullscreen){this.__internals.dom.header.prependTo(this.__internals.dom.surface);this.__internals.dom.title.appendTo(this.__internals.dom.header)}else{this.__internals.dom.title.prependTo(this.__internals.dom.surface);this.__internals.dom.header.detach()}})}__handleTitleNode(){this.__deferOnce('__handleTitleNode',()=>{const node=this.__internals.dom.title;const title=this.__getTitle();if(title instanceof OcNodeText){node.html(title.node)}else{node.text(title)}},'repaint')}__canClose(){return true}layout(){Promise.all(this.__internals.initElementsJobs).then(()=>{this.__internals.mdcDialog?.layout()}).catch(OcUtilities.doNothing)}open(){Promise.all(this.__internals.initElementsJobs).then(()=>{this.__internals.states.add(OcMdDialog.__states.IS_OPEN)}).catch(OcUtilities.doNothing)}close(reason,ignoreCloseCondition=false){Promise.all(this.__internals.initElementsJobs).then(()=>
1{if(!ignoreCloseCondition){const privateCanClose=this.__canClose();if(!privateCanClose){return};const canCloseFunction=(typeof this.properties.canClose=='function'&&this.properties.canClose());const canCloseBoolean=(typeof this.properties.canClose=='boolean'&&this.properties.canClose);const canClose=canCloseFunction||canCloseBoolean;if(!canClose){return}};this.__internals.states.remove(OcMdDialog.__states.IS_OPEN,{reason:reason})}).catch(OcUtilities.doNothing)}forcedClose(reason){this.close(reason,true)};__trigger__close(eventData){const event=new OcEvent({eventName:'close',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__closing(eventData){const event=new OcEvent({eventName:'closing',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__open(){const event=new OcEvent({eventName:'open'});this.__internals.events.triggerEvent(event)}__trigger__opening(){const event=new OcEvent({eventName:'opening'});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,title:'',canClose:true,fullscreen:false}}}}OcMdDialog.__states={...OcMdComponent.__states,IS_OPEN:'is-open',HAS_TITLE:'has-title',IS_FULLSCREEN:'is-fullscreen'};Oc.OcMdDialog=OcMdDialog;"use strict";class OcMdDialogFullscreen extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdDialogFullscreen.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,canClose:{get:this.__getCanClose.bind(this),set:this.__setCanClose.bind(this)},title:{get:this.__getTitle.bind(this),set:this.__setTitle.bind(this)},toolbarActions:{get:this.__getToolbarActions.bind(this)},listActions:{get:this.__getListActions.bind(this)},contextualAppBars:{get:this.__getContextualAppBars.bind(this)},content:{get:this.__getContent.bind(this)}}}__getCanClose(){return this.properties.canClose}__setCanClose(value){this.properties.canClose=value}__getTitle(){return this.properties.title}__setTitle(value){this.properties.title=value;this.__internals.elements.topAppBar.title=this.properties.title}__getToolbarActions(){return this.properties.toolbarActions}__getListActions(){return this.properties.listActions}__getContextualAppBars(){return this.properties.contextualAppBars}__getContent(){return this.__internals.dom.content}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdDialogFullscreen:OLEFA.css.getIfNotLoaded('md/dialog/fullScreen.css','--loaded--md-dialog-fullscreen')};this.propertyHandlers.canClose=this.__setCanClose;this.propertyHandlers.title=this.__setTitle}__initialize(properties){super.__initialize(properties);const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.ariaDialog=new OcAriaDialog(baseNode,{labelledBy:this.__internals.elements.topAppBar.titleNodeId,describedBy:`${this.refID}--content`})}}__initElements(){super.__initElements();const cssBase='oc-md-dialog-fullscreen';this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div',class:cssBase,children:{topAppBar:{component:OcMdTopappbar,class:`${cssBase}__top-app-bar`,properties:{navigationIcon:new OcMdButtonIcon({icon:'md:close',label:OLEFA.i18n.get('close')})}},content:{tag:'div',class:`${cssBase}__content `,attributes:{id:`${this.refID}--content`}}}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdDialogFullscreen.__states.OPEN,onChange:this.__onStateChange__open.bind(this)}).define({state:OcMdDialogFullscreen.__states.OPEN_CLOSE_TRANSITION,onChange:this.__onStateChange__openCloseTransition.bind(this)})}__onStateChange__open(){this.__internals.states.remove(OcMdDialogFullscreen.__states.OPEN_CLOSE_TRANSITION);this.__internals.states.add(OcMdDialogFullscreen.__states.OPEN_CLOSE_TRANSITION);const isOpen=this.__internals.states.hasState(OcMdDialogFullscreen.__states.OPEN);if(isOpen){this.__internals.ariaDialog?.open()}else{this.__internals.ariaDialog?.close()}}__onStateChange__openCloseTransition(){const isTransitioning=this.__internals.states.hasState(OcMdDialogFullscreen.__states.OPEN_CLOSE_TRANSITION);if(isTransitioning){this.__internals.dom.base.on(`transitionend.${this.refID}`,(event)=>{if(!this.__internals.dom.base.is(event.target)){return};this.__internals.states.remove(OcMdDialogFullscreen.__states.OPEN_CLOSE_TRANSITION);this.__onTransitionAnimationEnd()})}else{this.__internals.dom.base.off(`transitionend.${this.refID}`)}}__initEvents(){super.__initEvents();this.__internals.elements.topAppBar.events.listen('navigation-select',this.__onTopAppBar__navigationSelect.bind(this),this.refID)}__onTopAppBar__navigationSelect(){this.close()}__onTransitionAnimationEnd(){const isOpen=this.__internals.states.hasState(OcMdDialogFullscreen.__states.OPEN);if(isOpen){this.__trigger__open()}else{this.__internals.dom.base.detach();this.__trigger__close({reason:''})}}addListAction(actionDefinition){this.__internals.elements.topAppBar.addListAction(actionDefinition);this.properties.listActions=this.__internals.elements.topAppBar.listActions}getListAction(refId){return this.__internals.elements.topAppBar.getListAction(refId)}removeListAction(refId){this.__internals.elements.topAppBar.removeListAction(refId);this.properties.listActions=this.__internals.elements.topAppBar.listActions}addToolbarAction(actionDefinition){this.__internals.elements.topAppBar.addToolbarAction(actionDefinition);this.properties.toolbarActions=this.__internals.elements.topAppBar.toolbarActions}getToolbarAction(refId){return this.__internals.elements.topAppBar.getToolbarAction(refId)}removeToolbarAction(refId){this.__internals.elements.topAppBar.removeToolbarAction(refId);this.properties.toolbarActions=this.__internals.elements.topAppBar.toolbarActions}addContextualAppBar(appBarDefinition){this.__internals.elements.topAppBar.addContextualAppBar(appBarDefinition);this.properties.contextualAppBars=this.__internals.elements.topAppBar.contextualAppBars}getContextualAppBar(id){return this.__internals.elements.topAppBar.getContextualAppBar(id)}
1removeContextualAppBar(id){this.__internals.elements.topAppBar.removeContextualAppBar(id);this.properties.contextualAppBars=this.__internals.elements.topAppBar.contextualAppBars}showContextualAppBar(id){this.__internals.elements.topAppBar.showContextualAppBar(id)}closeContextualAppBar(){this.__internals.elements.topAppBar.closeContextualAppBar()}open(){Promise.all(this.__internals.initElementsJobs).then(()=>{this.__internals.dom.base.appendTo(document.body);this.__internals.states.add(OcMdDialogFullscreen.__states.OPEN)}).catch(OcUtilities.doNothing)};close(reason='',ignoreCloseCondition=false){Promise.all(this.__internals.initElementsJobs).then(()=>{if(!ignoreCloseCondition){const canCloseFunction=(typeof this.properties.canClose=='function'&&this.properties.canClose());const canCloseBoolean=(typeof this.properties.canClose=='boolean'&&this.properties.canClose);const canClose=canCloseFunction||canCloseBoolean;if(!canClose){return}};this.__internals.states.remove(OcMdDialogFullscreen.__states.OPEN,{reason:reason})}).catch(OcUtilities.doNothing)};__trigger__close(eventData){const event=new OcEvent({eventName:'close',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__closing(eventData){const event=new OcEvent({eventName:'closing',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__open(){const event=new OcEvent({eventName:'open'});this.__internals.events.triggerEvent(event)}__trigger__opening(){const event=new OcEvent({eventName:'opening'});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();const topAppBarDefaults=OcMdTopappbar.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,canClose:true,title:topAppBarDefaults.properties.title,toolbarActions:topAppBarDefaults.properties.toolbarActions,listActions:topAppBarDefaults.properties.listActions,contextualAppBars:topAppBarDefaults.properties.contextualAppBars}}}}OcMdDialogFullscreen.__states={...OcMdComponent.__states,OPEN:'open',OPEN_CLOSE_TRANSITION:'open-close-transition'};Oc.OcMdDialogFullscreen=OcMdDialogFullscreen;"use strict";class OcMdDialogSimple extends OcMdDialog{constructor(properties){super(properties)}defaults(){return OcMdDialogSimple.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,options:{get:this.__getOptions.bind(this)},text:{get:this.__getText.bind(this),set:this.__setText.bind(this)}}}__getOptions(){return this.__internals.options}__getText(){return this.properties.text}__setText(value){this.properties.text=value;this.__internals.dom.text.text(value);const hasText=(value.length>0);this.__internals.states.set(OcMdDialogSimple.__states.HAS_TEXT,hasText)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.options={};this.propertyHandlers.options=this.addOption;this.propertyHandlers.text=this.__setText}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-dialog-simple';this.__internals.initElementsJobs.push(this.__createDOMNodes({list:{component:OcMdListSinglelineSelectableSingle,class:`${cssBase}__list`,properties:{iconType:'avatar',autoSort:true}}},this.__internals.dom.content));this.__internals.initElementsJobs.push(this.__createDOMNodes({text:{tag:'p',}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.content.prepend(this.__internals.dom.text)}))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdDialogSimple.__states.HAS_TEXT,onChange:this.__onStateChange__hasText.bind(this)})}__onStateChange__hasText(){const hasText=this.__internals.states.hasState(OcMdDialogSimple.__states.HAS_TEXT);if(hasText){this.__internals.dom.text.show()}else{this.__internals.dom.text.hide()}}__initEvents(){super.__initEvents();this.__internals.elements.list.events.listen('select',this.__onList__select.bind(this),this.refID)}__onList__select(ev){const listItem=ev.data.listItem;if(listItem instanceof OcMdListitemSeparator){return};const selectedValue=listItem.value;this.__trigger__select({value:selectedValue});this.forcedClose()}__updateProperty__options(){this.properties.options=Object.values(this.__internals.options)}addOption(option){if(this.__internals.options[option.refID]){OLEFA.log.warn('OcMdListitemSingleline.addOption(): Execution stopped prematurely because the list item already exists');return option};this.__internals.options[option.refID]=option;this.__internals.elements.list.addItem(option);this.__updateProperty__options();this.__trigger__optionAdd({option:option});return option}getOption(refId){return this.__internals.options[refId]}removeOption(refId){const option=this.__internals.options[refId];if(!option){OLEFA.log.warn('OcMdListitemSingleline.removeOption(): Execution stopped prematurely because the list item does not exist');return};delete this.__internals.options[refId];this.__updateProperty__options();this.__trigger__optionRemove({option:option})}__trigger__optionAdd(eventData){const event=new OcEvent({eventName:'option-add',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__optionRemove(eventData){const event=new OcEvent({eventName:'option-remove',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,text:'',options:[]}}}}OcMdDialogSimple.__states={...OcMdDialog.__states,HAS_TEXT:'has-text',};
1Oc.OcMdDialogSimple=OcMdDialogSimple;"use strict";class OcMdDialogWithbuttons extends OcMdDialog{constructor(properties){super(properties)}defaults(){return OcMdDialogWithbuttons.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,buttons:{get:this.__getButtons.bind(this)}}}__getButtons(){return Object.values(this.__internals.buttons)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.buttons={};this.propertyHandlers.buttons=this.addButton}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-dialog-withbuttons';this.__internals.initElementsJobs.push(this.__createDOMNodes({actions:{tag:'div',class:`${cssBase}__actions mdc-dialog__actions`}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.actions.insertAfter(this.__internals.dom.content)},true));this.__internals.buttonAutoSort=new OcInteractivityAutoSort(this.__internals.dom.actions,{sortKey:'data-order',sortDirection:'desc'})}__initEvents__dialogButton(button){button.events.listen('click',this.__onDialogButton__click.bind(this,button),this.refID)}__onDialogButton__click(button,ev){if(button.autoCloseDialog){this.close()};if(!button.button){return};this.__trigger__choice({button:button.button,value:button.value})}__updateButtonsProperty(){this.__deferOnce('__updateButtonsProperty',()=>{this.properties.buttons=Object.values(this.__internals.buttons).filter(x=>typeof x.button!='undefined').map(x=>{return{button:x.button,value:x.value,order:x.order,autoCloseDialog:x.autoCloseDialog}})})}addButton(buttonDefinition){if(this.__internals.buttons[buttonDefinition.value]){OLEFA.log.warn('Duplicate value. Button not added',buttonDefinition);return};const dialogButton=new OcMdDialogButton({button:buttonDefinition.button,value:buttonDefinition.value,order:buttonDefinition.order,autoCloseDialog:buttonDefinition.autoCloseDialog});this.__internals.buttons[buttonDefinition.value]=dialogButton;dialogButton.button?.base.appendTo(this.__internals.dom.actions);this.__initEvents__dialogButton(dialogButton);this.__updateButtonsProperty();return dialogButton}getButton(value){if(!this.__internals.buttons[value]){return undefined};return this.__internals.buttons[value]}removeButton(value){if(!this.__internals.buttons[value]){return};const jButton=this.__internals.buttons[value].button?.base;const jBase=this.__internals.dom.base;if(OcUtilities.isElementInElement(jButton,jBase)){this.__internals.buttons[value].button?.base.detach()};this.__internals.buttons[value].button?.events.cancelAllFromScope(this.refID);this.__internals.buttons[value].destroy();delete this.__internals.buttons[value];this.__updateButtonsProperty()}__trigger__choice(eventData){const event=new OcEvent({eventName:'choice',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,buttons:[]}}}static createOkButton(){const button=OcMdButtonStandard.createOkButton();return{value:'ok',autoCloseDialog:true,button:button}}}Oc.OcMdDialogWithbuttons=OcMdDialogWithbuttons;"use strict";class OcMdDialogButton extends OcComponent{constructor(properties){super(properties)}defaults(){return OcMdDialogButton.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,button:{get:this.__getButton.bind(this),set:this.__setButton.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},order:{get:this.__getOrder.bind(this),set:this.__setOrder.bind(this)},autoCloseDialog:{get:this.__getAutoCloseDialog.bind(this),set:this.__setAutoCloseDialog.bind(this)}}}__getButton(){return this.properties.button}__setButton(value){if(this.properties.button){this.properties.button.events.cancelAllFromScope(this.refID)};this.properties.button=value;if(this.properties.button){this.__initEvents__button(this.properties.button)}this.__handleButton()}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value;this.__handleButton()}__getOrder(){return this.properties.order}__setOrder(value){this.properties.order=value;this.__handleButton()}__getAutoCloseDialog(){return this.properties.autoCloseDialog}__setAutoCloseDialog(value){this.properties.autoCloseDialog=value;this.__handleButton()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.button=this.__setButton;this.propertyHandlers.value=this.__setValue;this.propertyHandlers.order=this.__setOrder;this.propertyHandlers.autoCloseDialog=this.__setAutoCloseDialog}__initialize(properties){super.__initialize(properties);this.__initProperties(properties)}__initEvents__button(button){button.events.listen('click',this.__onButton__click.bind(this,button),this.refID)}__onButton__click(button,ev){this.__trigger__click(ev)}__handleButton(){this.__deferOnce('__handleButton',()=>{if(!this.properties.button){return};this.properties.button.base.addClass('mdc-dialog__button').attr({'data-order':this.properties.order,'data-mdc-dialog-action':this.properties.value});if(this.properties.autoCloseDialog){this.properties.button.base.attr({'data-mdc-dialog-action':this.properties.value})}else{this.properties.button.base.removeAttr('data-mdc-dialog-action')}})}__trigger__click(eventData){const event=new OcEvent({eventName:'click',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.properties.button?.events.cancelAllFromScope(this.refID);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,button:undefined,value:'',order:'',autoCloseDialog:false}}}}Oc.OcMdDialogButton=OcMdDialogButton;"use strict";
1class OcMdDialogAlert extends OcMdDialogWithbuttons{constructor(properties){super(properties)}defaults(){return OcMdDialogAlert.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdDialogAlert=OcMdDialogAlert;"use strict";class OcMdDialogConfirmation extends OcMdDialogWithbuttons{constructor(properties){super(properties)}defaults(){return OcMdDialogConfirmation.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},text:{get:this.__getText.bind(this),set:this.__setText.bind(this)},options:{get:this.__getOptions.bind(this)}}}__getValue(){return this.properties.value}__setValue(value){const acceptableValues=Object.values(this.__internals.options).map(option=>option.value);if(!acceptableValues.includes(value)){OLEFA.log.warn('Unacceptable value',this,arguments);return}this.properties.value=value;this.__internals.elements.list.value=this.properties.value}__getText(){return this.properties.text}__setText(value){this.properties.text=value;this.__internals.dom.text.text(value);const hasText=(value.length>0);this.__internals.states.set(OcMdDialogConfirmation.__states.HAS_TEXT,hasText)}__getOptions(){return this.__internals.options}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.options={};this.__internals.mandatoryButtons={cancel:new OcMdButtonStandard(),ok:new OcMdButtonStandard({style:'containedFlush'})};this.__internals.promises={langkitGeneral:OLEFA.i18n.load('general.json')};this.propertyHandlers.options=this.addOption;this.propertyHandlers.text=this.__setText}__initialize(properties){super.__initialize(properties);this.propertyHandlers.value=this.__setValue;const value=properties&&properties.value?properties.value:this.defaults().properties.value;this.__setPropertyViaPropertyHandler('value',value);this.addButton({autoCloseDialog:false,button:this.__internals.mandatoryButtons.ok,value:'ok',order:'0'});this.addButton({autoCloseDialog:true,button:this.__internals.mandatoryButtons.cancel,value:'cancel',order:'1'});this.__internals.promises.langkitGeneral.then(()=>{this.__internals.mandatoryButtons.cancel.label=OLEFA.i18n.get('cancel');this.__internals.mandatoryButtons.ok.label=OLEFA.i18n.get('confirm')}).catch(OcUtilities.doNothing);this.__onStateChange__hasText()}__initElements(){super.__initElements();const cssBase='oc-md-dialog-confirmation';this.__internals.initElementsJobs.push(this.__createDOMNodes({text:{tag:'p',}}));this.__internals.initElementsJobs.push(this.__createDOMNodes({list:{component:OcMdListSinglelineSelectableRadio,class:`${cssBase}__list`,properties:{ariaLabelledBy:`${this.refID}--title`}}},this.__internals.dom.content));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.content.prepend(this.__internals.dom.text)}))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdDialogConfirmation.__states.HAS_TEXT,onChange:this.__onStateChange__hasText.bind(this)})}__onStateChange__hasText(){const hasText=this.__internals.states.hasState(OcMdDialogConfirmation.__states.HAS_TEXT);if(hasText){this.__internals.dom.text.show()}else{this.__internals.dom.text.hide()}}__initEvents(){super.__initEvents();this.__internals.mandatoryButtons.ok.events.listen('click',this.__onMandatoryButtons__ok__click.bind(this),this.refID)}__onMandatoryButtons__ok__click(ev){const currentlySelectedValue=this.__internals.elements.list.value;if(typeof currentlySelectedValue=='undefined'){return};this.__trigger__confirmation({value:currentlySelectedValue});this.forcedClose()}__updateProperty__options(){this.properties.options=Object.values(this.__internals.options)}addOption(option){if(this.__internals.options[option.refID]){OLEFA.log.warn('OcMdListitemSingleline.addOption(): Execution stopped prematurely because the list item already exists');return option};this.__internals.options[option.refID]=option;this.__internals.elements.list.addItem(option);this.__updateProperty__options();this.__trigger__optionAdd({option:option});return option}getOption(refId){return this.__internals.options[refId]}removeOption(refId){const option=this.__internals.options[refId];if(!option){OLEFA.log.warn('OcMdListitemSingleline.removeOption(): Execution stopped prematurely because the list item does not exist');return};delete this.__internals.options[refId];this.__updateProperty__options();this.__trigger__optionRemove({option:option})}__trigger__confirmation(eventData){const event=new OcEvent({eventName:'confirmation',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__optionAdd(eventData){const event=new OcEvent({eventName:'option-add',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__optionRemove(eventData){const event=new OcEvent({eventName:'option-remove',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,value:'',text:'',options:[]}}}}OcMdDialogConfirmation.__states={...OcMdDialogWithbuttons.__states,HAS_TEXT:'has-text',};
1Oc.OcMdDialogConfirmation=OcMdDialogConfirmation;"use strict";class OcMdFloatinglabel extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdFloatinglabel.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,disableMdc:{get:this.__getDisableMdc.bind(this)},text:{get:this.__getText.bind(this),set:this.__setText.bind(this)},float:{get:this.__getFloat.bind(this),set:this.__setFloat.bind(this)},width:{get:this.__getWidth.bind(this)}}}__getDisableMdc(){return this.properties.disableMdc}__setDisableMdc(value){this.properties.disableMdc=value}__getText(){return this.properties.text}__setText(value){this.properties.text=value;this.__updateBaseNode()}__getFloat(){return this.properties.float}__setFloat(value){this.properties.float=value;this.__internals.states.set(OcMdFloatinglabel.__states.isFloating,this.properties.float)}__getWidth(){return this.__internals.mdcFloatingLabel?.getWidth()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.disableMdc=this.__setDisableMdc;this.propertyHandlers.text=this.__setText;this.propertyHandlers.float=this.__setFloat}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'span'}}))}this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${OcMdFloatinglabel.baseCssClass} ${OcMdFloatinglabel.mdcFloatinglabelClasses.ROOT}`)},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdFloatinglabel.__states.isFloating,onChange:this.__onStateChange__isFloating.bind(this)})}__onStateChange__isFloating(){if(this.__internals.mdcFloatingLabel){const isFloating=this.__internals.states.hasState(OcMdFloatinglabel.__states.isFloating);this.__internals.mdcFloatingLabel.float(isFloating)}this.__updateBaseNode()}__onHtmlReady(){super.__onHtmlReady();if(!this.disableMdc){const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcFloatingLabel=new mdc["floating-label"].MDCFloatingLabel(baseNode)}}}__updateBaseNode(){this.__deferOnce('__updateBaseNode',()=>{const isFloating=this.__internals.states.hasState(OcMdFloatinglabel.__states.isFloating);const text=this.__getText();OcHtml.setClassIfTrue(isFloating,this.__internals.dom.base,OcMdFloatinglabel.mdcFloatinglabelClasses.LABEL_FLOAT_ABOVE);this.__internals.dom.base.text(text)})}shake(){Promise.all(this.__internals.initElementsJobs).then(()=>{this.__internals.mdcFloatingLabel?.shake(true)}).catch(OcUtilities.doNothing)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,disableMdc:false,text:'',float:false}}}}OcMdFloatinglabel.baseCssClass='oc-md-floatinglabel';OcMdFloatinglabel.mdcFloatinglabelClasses=mdc["floating-label"].cssClasses;OcMdFloatinglabel.__states={...OcMdComponent.__states,isFloating:'is-floating'};Oc.OcMdFloatinglabel=OcMdFloatinglabel;"use strict";class OcMdFormfield extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdFormfield.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,input:{get:this.__getInput.bind(this),set:this.__setInput.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},labelPosition:{get:this.__getLabelPosition.bind(this),set:this.__setLabelPosition.bind(this)},noWrap:{get:this.__getNoWrap.bind(this),set:this.__setNoWrap.bind(this)}}}__getInput(){return this.properties.input}__setInput(value){this.properties.input=value;this.__handleInput()}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__handleLabel()}__getLabelPosition(){return this.properties.labelPosition}__setLabelPosition(value){this.properties.labelPosition=value;const isLabelLeading=this.properties.labelPosition=='leading';this.__internals.states.set(OcMdFormfield.__states.labelIsLeading,isLabelLeading)}__getNoWrap(){return this.properties.noWrap}__setNoWrap(value){this.properties.noWrap=value;this.__internals.states.set(OcMdFormfield.__states.labelNoWrap,this.properties.noWrap)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.input=undefined;this.propertyHandlers.input=this.__setInput;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.labelPosition=this.__setLabelPosition;this.propertyHandlers.noWrap=this.__setNoWrap}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-formfield';if(!this.__internals.initElementsJobs.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({label:{tag:'label',class:`${cssBase}__label`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-form-field`)},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdFormfield.__states.hasInput,onChange:this.__onStateChange__hasInput.bind(this)}).define({state:OcMdFormfield.__states.labelIsLeading,onChange:this.__onStateChange__labelIsLeading.bind(this)}).define({state:OcMdFormfield.__states.labelNoWrap,onChange:this.__onStateChange__labelNoWrap.bind(this)})}__onStateChange__hasInput(){const hasInput=this.__internals.states.hasState(OcMdFormfield.__states.hasInput);const currentInput=this.__internals.input;const newInput=this.properties.input;if(hasInput){if(newInput){const id=this.properties.input?.refID||'';newInput.input.attr({'id':id});this.__internals.dom.label.attr({'for':id});newInput.__internals.dom.base.insertBefore(this.__internals.dom.label)}this.__internals.input=newInput;if(this.__internals.mdcFormField&&this.__internals.input&&this.__internals.input.mdcInstance){this.__internals.mdcFormField.input=this.__internals.input.mdcInstance}}else{const isInputInInstance=OcUtilities.isElementInElement(this.__internals.input?.base,this.__internals.dom.base);if(isInputInInstance){currentInput?.base.detach()}this.__internals.dom.label.removeAttr('for');this.__internals.input=undefined}}__onStateChange__labelIsLeading(){const isLabelLeading=this.__internals.states.hasState(OcMdFormfield.__states.labelIsLeading);OcHtml.setClassIfTrue(isLabelLeading,this.__internals.dom.base,OcMdFormfield.__classes.alignEnd)}__onStateChange__labelNoWrap(){const isLabelForbiddenFromWrapping=this.__internals.states.hasState(OcMdFormfield.__states.labelNoWrap);OcHtml.setClassIfTrue(isLabelForbiddenFromWrapping,this.__internals.dom.base,OcMdFormfield.__classes.noWrap)}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcFormField=new mdc["form-field"].MDCFormField(baseNode)}}__handleInput(){this.__deferOnce('__handleInput',()=>{if(!this.properties.input){this.__internals.states.remove(OcMdFormfield.__states.hasInput)}else{if(this.properties.input.refID!=this.__internals.input?.refID){this.__internals.states.remove(OcMdFormfield.__states.hasInput)}this.__internals.states.add(OcMdFormfield.__states.hasInput)}})}__handleLabel(){this.__deferOnce('__handleLabel',()=>{const node=this.__internals.dom.label;const label=this.__getLabel();node.text(label)})}destroy(){this.__internals.mdcFormField?.destroy();delete this.__internals.mdcFormField;super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,input
1:undefined,label:'',labelPosition:OcMdFormfield.labelPositions.TRAILING,noWrap:false}}}}OcMdFormfield.__classes={alignEnd:'mdc-form-field--align-end',noWrap:'mdc-form-field--nowrap'};OcMdFormfield.__states={...OcMdComponent.__states,hasInput:'has-input',labelIsLeading:'label-is-leading',labelNoWrap:'label-no-wrap'};OcMdFormfield.labelPositions={LEADING:'leading',TRAILING:'trailing'};Oc.OcMdFormfield=OcMdFormfield;"use strict";class OcMdProgressbarCircular extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdProgressbarCircular.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},progress:{get:this.__getProgress.bind(this),set:this.__setProgress.bind(this)},determinate:{get:this.__getDeterminate.bind(this),set:this.__setDeterminate.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__handleBase()}__getProgress(){return this.properties.progress}__setProgress(value){const normalizedValue=OcUtilities.clamp(0,value,1);this.properties.progress=normalizedValue;this.__handleMdc()}__getDeterminate(){return this.properties.determinate}__setDeterminate(value){this.properties.determinate=value;this.__handleMdc()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdProgressbarCircular:OLEFA.css.getIfNotLoaded('md/progressBar/circular.css','--loaded--md-progressbar-circular')};this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.progress=this.__setProgress;this.propertyHandlers.determinate=this.__setDeterminate}__initialize(properties){super.__initialize(properties);this.__handleHiddenState()}__initElements(){super.__initElements();const cssBase='oc-md-progressbar-circular';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({determinateContainer:{tag:'div',class:`${cssBase}__determinate-container mdc-circular-progress__determinate-container`},indeterminateContainer:{tag:'div',class:`${cssBase}__indeterminate-container mdc-circular-progress__indeterminate-container`,children:{spinnerLayer:{tag:'div',class:`${cssBase}__spinner-layer mdc-circular-progress__spinner-layer`,children:{circleLeft:{tag:'div',class:`${cssBase}__circle-left mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left`},gapPatch:{tag:'div',class:`${cssBase}__gap-patch mdc-circular-progress__gap-patch`},circleRight:{tag:'div',class:`${cssBase}__circle-right mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right`},}}}}},this.__internals.dom.base));this.__internals.dom.determinateCircleGraphic=jQuery('<svg class="mdc-circular-progress__determinate-circle-graphic" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle class="mdc-circular-progress__determinate-track" cx="24" cy="24" r="18" stroke-width="4"/><circle class="mdc-circular-progress__determinate-circle" cx="24" cy="24" r="18" stroke-dasharray="113.097" stroke-dashoffset="113.097" stroke-width="4"/></svg>');this.__internals.dom.indeterminateCircleGraphic1=jQuery('<svg class="mdc-circular-progress__indeterminate-circle-graphic" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg>');this.__internals.dom.indeterminateCircleGraphic2=jQuery('<svg class="mdc-circular-progress__indeterminate-circle-graphic" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="3.2"/></svg>');this.__internals.dom.indeterminateCircleGraphic3=jQuery('<svg class="mdc-circular-progress__indeterminate-circle-graphic" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg>');this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-circular-progress`).attr({role:'progressbar','aria-valuemin':'0','aria-valuemax':'1'});this.__internals.dom.determinateCircleGraphic.appendTo(this.__internals.dom.determinateContainer);this.__internals.dom.indeterminateCircleGraphic1.appendTo(this.__internals.dom.circleLeft);this.__internals.dom.indeterminateCircleGraphic2.appendTo(this.__internals.dom.ga
1pPatch);this.__internals.dom.indeterminateCircleGraphic3.appendTo(this.__internals.dom.circleRight)},true))}__onStates__stateChange(eventData){super.__onStates__stateChange(eventData);if(eventData.state=='hidden'){this.__handleHiddenState()}}__onHtmlReady(){super.__onHtmlReady();const nodeBase=this.__internals.dom.base.get(0);if(nodeBase){this.__internals.mdcCircularProgress=new mdc['circular-progress'].MDCCircularProgress(nodeBase)};this.__handleMdc()}__handleBase(){this.__deferOnce('__handleBase',()=>{this.__internals.dom.base.attr({'aria-label':this.properties.label})})}__handleHiddenState(){this.__deferOnce('__handleHiddenState',()=>{const isHidden=this.__internals.states.hasState('hidden');if(isHidden){this.__internals.mdcCircularProgress?.close()}else{this.__internals.mdcCircularProgress?.open()}})}__handleMdc(){this.__deferOnce('__handleMdc',()=>{if(!this.__internals.mdcCircularProgress){return};this.__internals.mdcCircularProgress.progress=this.properties.progress;this.__internals.mdcCircularProgress.determinate=this.properties.determinate})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',progress:0,determinate:true}}}}Oc.OcMdProgressbarCircular=OcMdProgressbarCircular;"use strict";class OcMdIcon extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdIcon.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)}}}__setVisible(value){this.properties.visible=OcDatatype.toBoolean(value);this.__internals.states.set('hidden',!this.visible)}__getIcon(){return this.properties.icon}__setIcon(value){this.properties.icon=value;this.__deferOnce('__setIcon',()=>{this.__internals.dom.base.text(this.properties.icon)})}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.icon=this.__setIcon}__initialize(properties){super.__initialize(properties);if(this.__internals.ariaHandler){this.__internals.ariaHandler.hidden=true}}__initElements(){super.__initElements();if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'span'}}))};this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass('oc-md-icon material-icons')},true))}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,icon:''}}}}Oc.OcMdIcon=OcMdIcon;"use strict";class OcMdInput extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInput.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},form:{get:this.__getForm.bind(this),set:this.__setForm.bind(this)},name:{get:this.__getName.bind(this),set:this.__setName.bind(this)}}}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__handleInputNode()}__getForm(){return this.properties.form}__setForm(value){this.properties.form=value;this.__handleInputNode()}__getName(){return this.properties.name}__setName(value){this.properties.name=value;this.__handleInputNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.form=this.__setForm;this.propertyHandlers.name=this.__setName}__initialize(properties){super.__initialize(properties)}__handleInputNode(){this.__deferOnce('__handleInputNode',()=>{const node=this.__getInputNode();if(!node){return};const attributeSetterRules={};const booleanAttributes=['disabled'];for(const attribute of booleanAttributes){const value=this.properties[attribute];attributeSetterRules[attribute]={condition:value!==null&&value,value:''}}const stringAttributes=['form','name'];for(const attribute of stringAttributes){const value=this.properties[attribute];attributeSetterRules[attribute]={condition:value!==null,value:value||''}}OcHtml.setAttributesIfTrue(node,attributeSetterRules)})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,disabled:false,form:null,name:null}}}}
1Oc.OcMdInput=OcMdInput;"use strict";class OcMdInputCheckbox extends OcMdComponent{constructor(properties){super(properties)};defaults(){return OcMdInputCheckbox.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},name:{get:this.__getName.bind(this),set:this.__setName.bind(this)},checked:{get:this.__getChecked.bind(this),set:this.__setChecked.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},form:{get:this.__getForm.bind(this),set:this.__setForm.bind(this)},attributes:{get:this.__getAttributes.bind(this)},input:{get:this.__getInput.bind(this)}}};__setValue(value){this.properties.value=value;this.__updateMdcCheckbox()};__getValue(){return this.properties.value};__getName(){return this.properties.name}__setName(value){this.properties.name=value;this.__updateInputNode()}__setChecked(value){const bool=OcDatatype.toBoolean(value);this.properties.checked=bool;this.__updateMdcCheckbox()};__getChecked(){return this.properties.checked};__setDisabled(value){const bool=OcDatatype.toBoolean(value);this.properties.disabled=bool;this.__updateMdcCheckbox()};__getDisabled(){return this.properties.disabled};__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__updateInputNode()}__getForm(){return this.properties.form}__setForm(value){this.properties.form=value;this.__updateInputNode()}__setAttributes(attributes){this.__deferOnce('__setAttributes',()=>{for(var key in attributes){const value=attributes[key];if(key=='value'){this.__setValue(value)}else{if(typeof(value)=='undefined'){this.__internals.dom.nativeControl.removeAttr(key)}else{this.__internals.dom.nativeControl.attr(key,value)}}}})};__getAttributes(){const attributes={};const node=this.__internals.dom.nativeControl.get(0);if(!node){return attributes}const nodeAttributes=node.attributes;for(var i=0;i<nodeAttributes.length;++i){attributes[nodeAttributes[i].name]=nodeAttributes[i].value};return attributes};__getInput(){return this.__internals.dom.nativeControl}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.value=this.__setValue;this.propertyHandlers.name=this.__setName;this.propertyHandlers.checked=this.__setChecked;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.form=this.__setForm;this.propertyHandlers.attributes=this.__setAttributes};__initElements(){super.__initElements();const cssBase='oc-md-input-checkbox';if(this.__internals.dom.base.length){this.__internals.dom.nativeControl=this.__internals.dom.base}else{this.__internals.initElementsJobs.push(this.__createDOMNodes({nativeControl:{tag:'input',attributes:{'type':'checkbox'}},}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div',class:`${cssBase} mdc-checkbox mdc-checkbox--touch`,children:{background:{tag:'div',class:`${cssBase}__background mdc-checkbox__background`,children:{mixedmark:{tag:'div',class:`${cssBase}__mixedmark mdc-checkbox__mixedmark`}}},ripple:{tag:'div',class:`${cssBase}__ripple mdc-checkbox__ripple`},focusRing:{tag:'div',class:`${cssBase}__focus-ring mdc-checkbox__focus-ring`}}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.nativeControl.addClass(`${cssBase}__native-control mdc-checkbox__native-control`).prependTo(this.__internals.dom.base);this.__internals.dom.background.append('<svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24"><path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg>')},true))};__initEvents(){super.__initEvents();const that=this;this.__internals.dom.nativeControl.on('change',function(){that.__setChecked(this.checked)})};__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcCheckbox=new mdc.checkbox.MDCCheckbox(baseNode)};this.__updateMdcCheckbox()}__updateMdcCheckbox(){if(!this.__internals.mdcCheckbox){return}this.__internals.mdcCheckbox.value=this.properties.value;this.__internals.mdcCheckbox.checked=this.properties.checked;this.__internals.mdcCheckbox.disabled=this.properties.disabled}__updateInputNode(){this.__deferOnce('__updateInputNode',()=>{const node=this.__internals.dom.nativeControl;const attributes={};const required=this.__getRequired();attributes.required={condition:required,value:''};const standardHtmlAttributes=['name','form'];for(const attribute of standardHtmlAttributes){const value=this.properties[attribute];attributes[attribute]={condition:value!==null,value:value||''}}OcHtml.setAttributesIfTrue(node,attributes)})}addAttribute(attribute,value){switch(attribute){case'name':{this.__setName(String(value));break}case'value':{this.__setValue(String(value));break}case'form':{this.__setForm(String(value));break}default:{this.__internals.dom.nativeControl.attr(attribute,value)}}};removeAttribute(attribute){this.__internals.dom.nativeControl.removeAttr(attribute)};destroy(){this.__internals.mdcCheckbox?.destroy();delete this.__internals.mdcCheckbox;super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,value:'on',name:null,checked:false,disabled:false,form:null,required:false,attributes:{}}}}}Oc.OcMdInputCheckbox=OcMdInputCheckbox;"use strict";
1class OcMdInputHelperCounter extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputHelperCounter.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,maxCharacterCount:{get:this.__getMaxCharacterCount.bind(this),set:this.__setMaxCharacterCount.bind(this)},currentCharacterCount:{get:this.__getCurrentCharacterCount.bind(this),set:this.__setCurrentCharacterCount.bind(this)}}};__setMaxCharacterCount(value){this.properties.maxCharacterCount=value;this.__updateMdc()};__getMaxCharacterCount(){return this.properties.maxCharacterCount};__setCurrentCharacterCount(value){this.properties.currentCharacterCount=value;this.__updateMdc()};__getCurrentCharacterCount(){return this.properties.currentCharacterCount};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.maxCharacterCount=this.__setMaxCharacterCount;this.propertyHandlers.currentCharacterCount=this.__setCurrentCharacterCount}__initElements(){super.__initElements();const cssBase='oc-md-input-helper-count';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))}this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-text-field-character-counter`)},true))};__onHtmlReady(){super.__onHtmlReady();const el=this.__internals.dom.base.get(0);if(el){this.__internals.mdcTextFieldCharacterCounter=new mdc.textfield.MDCTextFieldCharacterCounter(el)}this.__updateMdc()}__updateMdc(){if(!this.__internals.mdcTextFieldCharacterCounter){return}this.__internals.mdcTextFieldCharacterCounter.foundationForTextField.setCounterValue(this.properties.currentCharacterCount,this.properties.maxCharacterCount)}destroy(){this.__internals.mdcTextFieldCharacterCounter?.destroy();super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,maxCharacterCount:0,currentCharacterCount:0}}}}Oc.OcMdInputHelperCounter=OcMdInputHelperCounter;"use strict";class OcMdInputHelperText extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputHelperText.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,text:{get:this.__getText.bind(this),set:this.__setText.bind(this)},alternativeText:{get:this.__getAlternativeText.bind(this),set:this.__setAlternativeText.bind(this)},onlyVisibleOnFocus:{get:this.__getOnlyVisibleOnFocus.bind(this),set:this.__setOnlyVisibleOnFocus.bind(this)}}};__setText(text){this.properties.text=text;this.__updateMdc()};__getText(){return this.properties.text};__setAlternativeText(alternativeText){this.properties.alternativeText=alternativeText;this.__updateMdc()}__getAlternativeText(){return this.properties.alternativeText}__setOnlyVisibleOnFocus(onlyVisibleOnFocus){const bool=OcDatatype.toBoolean(onlyVisibleOnFocus);this.properties.onlyVisibleOnFocus=bool;this.__updateMdc()};__getOnlyVisibleOnFocus(){return this.properties.onlyVisibleOnFocus};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.text=this.__setText;this.propertyHandlers.onlyVisibleOnFocus=this.__setOnlyVisibleOnFocus}__initElements(){super.__initElements();const cssBase='oc-md-input-helper-text';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.attr({'aria-hidden':'true'}).addClass(`${cssBase} mdc-text-field-helper-text`)},true))};__onHtmlReady(){super.__onHtmlReady();const el=this.__internals.dom.base.get(0);if(el){this.__internals.mdcTextFieldHelperText=new mdc.textfield.MDCTextFieldHelperText(el)}this.__updateMdc()}__updateMdc(){this.__deferOnce('__updateMdc',()=>{if(!this.__internals.mdcTextFieldHelperText){return};this.__internals.mdcTextFieldHelperText.foundationForTextField.setPersistent(!this.properties.onlyVisibleOnFocus);const shownText=(this.properties.alternativeText)?this.properties.alternativeText:this.properties.text;this.__internals.mdcTextFieldHelperText.foundationForTextField.setContent(shownText)})}destroy(){if(this.__internals.mdcTextFieldHelperText){this.__internals.mdcTextFieldHelperText.destroy()}super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,text:'',alternativeText:'',onlyVisibleOnFocus:false}}}}Oc.OcMdInputHelperText=OcMdInputHelperText;"use strict";
1class OcMdInputRadio extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputRadio.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,checked:{get:this.__getChecked.bind(this),set:this.__setChecked.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},name:{get:this.__getName.bind(this),set:this.__setName.bind(this)},input:{get:this.__getInput.bind(this)},mdcInstance:{get:this.__getMdcInstance.bind(this)}}}__getChecked(){return this.properties.checked}__setChecked(value){this.properties.checked=value;this.__internals.states.set(OcMdInputRadio.__states.isChecked,this.properties.checked)}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__internals.states.set(OcMdInputRadio.__states.isDisabled,this.properties.disabled)}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value;if(this.__internals.mdcRadio&&this.__internals.mdcRadio.value!==this.properties.value){this.__internals.mdcRadio.value=this.properties.value}}__getName(){return this.properties.name}__setName(value){this.properties.name=value;this.__deferOnce("__setName",()=>{if(this.properties.name!==null){this.__internals.dom.nativeControl.attr('name',this.properties.name)}else{this.__internals.dom.nativeControl.removeAttr('name')}})}__getInput(){return this.__internals.dom.nativeControl}__getMdcInstance(){return this.__internals.mdcRadio}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.checked=this.__setChecked;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.value=this.__setValue;this.propertyHandlers.name=this.__setName}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-input-radio';if(this.__internals.dom.base.length){this.__internals.dom.nativeControl=this.__internals.dom.base}else{this.__internals.initElementsJobs.push(this.__createDOMNodes({nativeControl:{tag:'input',attributes:{'type':'radio'}},}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div',class:`${cssBase} mdc-radio mdc-radio--touch`,children:{background:{tag:'div',class:`${cssBase}__background mdc-radio__background`,children:{outerCircle:{tag:'div',class:`${cssBase}__outer-circle mdc-radio__outer-circle`},innerCircle:{tag:'div',class:`${cssBase}__inner-circle mdc-radio__inner-circle`}}},ripple:{tag:'div',class:`${cssBase}__ripple mdc-radio__ripple`,},focusRing:{tag:'div',class:`${cssBase}__focus-ring mdc-radio__focus-ring`}}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.nativeControl.addClass(`${cssBase}__native-control mdc-radio__native-control`).prependTo(this.__internals.dom.base)},true));this.__internals.nativeControlMutationObserver=OLEFA.mutations.createObserver({element:this.__internals.dom.nativeControl,event:`${this.refID}--native-control-mutation`,mutations:{attributeFilter:['disabled','value']}})}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputRadio.__states.isChecked,onChange:this.__onStateChange__isChecked.bind(this)}).define({state:OcMdInputRadio.__states.isDisabled,onChange:this.__onStateChange__isDisabled.bind(this)})}__onStateChange__isChecked(){if(this.__internals.mdcRadio){const isChecked=this.__internals.states.hasState(OcMdInputRadio.__states.isChecked);this.__internals.mdcRadio.checked=isChecked}}__onStateChange__isDisabled(){if(this.__internals.mdcRadio){const isDisabled=this.__internals.states.hasState(OcMdInputRadio.__states.isDisabled);this.__internals.mdcRadio.disabled=isDisabled}}__initEvents(){super.__initEvents();this.__internals.dom.nativeControl.on(`change.${this.refID}`,this.__onNativeControl__change.bind(this));this.__internals.nativeControlMutationObserver?.events.listen('attribute-change',this.__onNativeControlMutationObserver__attributeChange.bind(this),this.refID)}__onNativeControl__change(ev){const inputNode=this.__internals.dom.nativeControl.get(0);if(inputNode){this.__setChecked(inputNode.checked)}}__onNativeControlMutationObserver__attributeChange(ev){switch(ev.attribute){case'disabled':const isDisabled=typeof this.__internals.dom.nativeControl.attr('disabled')!='undefined';this.__setDisabled(isDisabled);break;case'value':const value=OcUtilities.define(this.__internals.dom.nativeControl.val(),'');this.__setValue(value.toString());break}}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcRadio=new mdc.radio.MDCRadio(baseNode);this.__internals.mdcRadio.checked=this.__getChecked();this.__internals.mdcRadio.disabled=this.__getDisabled();this.__internals.mdcRadio.value=this.__getValue()}}destroy(){OLEFA.mutations.destroyObserver(`${this.refID}--native-control-mutation`);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,checked:false,disabled:false,value:'',name:null}}}}OcMdInputRadio.__states={...OcMdComponent.__states,isChecked:'is-checked',isDisabled:'is-disabled'};Oc.OcMdInputRadio=OcMdInputRadio;"use strict";
1class OcMdInputSelect extends OcMdInput{constructor(properties){super(properties)}defaults(){return OcMdInputSelect.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,autoSort:{get:this.__getAutoSort.bind(this),set:this.__setAutoSort.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},description:{get:this.__getDescription.bind(this),set:this.__setDescription.bind(this)},icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},options:{get:this.__getOptions.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},input:{get:this.__getInput.bind(this)},attributes:{get:this.__getAttributes.bind(this)}}}__getAutoSort(){return this.properties.autoSort}__setAutoSort(value){this.properties.autoSort=value;this.__internals.elements.menu.autoSort=value}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__internals.states.set(OcMdInputSelectFilled.__states.hasLabel,this.properties.label.length>0)}__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__internals.states.set(OcMdInputSelect.__states.isRequired,this.properties.required);this.__updateInputNode()}__setDisabled(value){super.__setDisabled(value);this.__internals.states.set(OcMdInputSelect.__states.isDisabled,this.properties.disabled)}__getDescription(){return this.properties.description}__setDescription(value){this.properties.description=value;this.__internals.elements.helperText.text=this.properties.description;this.__internals.states.set(OcMdInputSelect.__states.hasDescription,this.properties.description.length>0)}__getIcon(){return this.properties.icon}__setIcon(value){this.properties.icon=value;this.__internals.elements.icon.icon=this.properties.icon;this.__internals.states.set(OcMdInputSelect.__states.hasIcon,this.properties.icon.length>0)}__getOptions(){return[...this.__internals.elements.menu.list.items]}__getValue(){return this.properties.value}__setValue(value){const isValueInOptions=this.__internals.elements.menu.list.items.some(listItem=>listItem.value==value);if(!isValueInOptions){OLEFA.log.info('Value is not acceptable',this,arguments);return}this.properties.value=value}__getInput(){return this.__internals.dom.input}__getAttributes(){const node=this.__internals.dom.input.get(0);if(!node){return{}};const nodeAttributes=node.attributes;const attributes={};for(let i=0;i<nodeAttributes.length;++i){const attr=nodeAttributes.item(i);if(attr){attributes[attr.name]=attr.value}};return attributes}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdInputSelect:OLEFA.css.getIfNotLoaded('md/input/select.css','--loaded--md-input-select')};this.propertyHandlers.autoSort=this.__setAutoSort;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.description=this.__setDescription;this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.options=this.addOption;this.propertyHandlers.attributes=this.setAttributes;this.propertyHandlers.icon=this.__setIcon}__initialize(properties){super.__initialize(properties);this.propertyHandlers.value=this.__setValue;const value=(properties&&"value"in properties)?properties.value:this.defaults().properties.value;this.__setPropertyViaPropertyHandler('value',value);this.__updateMdcSelect();this.__updateBaseNode();this.__updateAnchorNode();this.__updateSelectNode();this.__updateIconElement();this.__updateInputNode()}__initElements(){super.__initElements();const cssBase='oc-md-input-select';if(this.__internals.dom.base.length>0){this.__internals.dom.input=this.__internals.dom.base}else{this.__internals.initElementsJobs.push(this.__createDOMNodes({input:{tag:'input'},}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div',class:`${cssBase}`,children:{select:{tag:'div',class:`${cssBase}
1__select ${mdc.select.cssClasses.ROOT}`,children:{anchor:{tag:'div',class:`${cssBase}__anchor mdc-select__anchor`,attributes:{role:'button','aria-haspopup':'listbox','aria-expanded':'false','aria-labelledby':`${this.refID}--label ${this.refID}--selected-text`},children:{selectedTextContainer:{tag:'span',class:`${cssBase}__selected-text-container mdc-select__selected-text-container`,children:{selectedText:{tag:'span',class:`${cssBase}__selected-text mdc-select__selected-text`,attributes:{id:`${this.refID}--selected-text`}}}},dropdownIcon:{tag:'span',class:`${cssBase}__dropdown-icon mdc-select__dropdown-icon`}}},helperText:{component:OcMdInputSelectHelpertext,class:`${cssBase}__helper-text`},menu:{component:OcMdMenuSelectableSelect,class:`${cssBase}__menu mdc-select__menu`,properties:{disableMdc:true}}}}}},icon:{component:OcMdInputSelectIcon,class:`${cssBase}__icon`}}));this.__internals.elements.menu.anchorNode=this.__internals.dom.anchor;this.__internals.dom.svg=jQuery('<svg class="mdc-select__dropdown-icon-graphic" viewBox="7 10 10 5" focusable="false"> <polygon class="mdc-select__dropdown-icon-inactive" stroke="none" fill-rule="evenodd" points="7 10 12 15 17 10"> </polygon> <polygon class="mdc-select__dropdown-icon-active" stroke="none" fill-rule="evenodd" points="7 15 12 10 17 15"> </polygon> </svg>');this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.input.addClass(`${cssBase}__input`).attr({'role':'none','tabindex':'-1','aria-hidden':'true'}).prependTo(this.__internals.dom.select);this.__internals.elements.helperText.base.attr('id',`${this.refID}--helper-text`);this.__internals.dom.svg.appendTo(this.__internals.dom.dropdownIcon)},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputSelectFilled.__states.hasLabel,onChange:this.__onStateChange__hasLabel.bind(this)}).define({state:OcMdInputSelectFilled.__states.hasValue,onChange:this.__onStateChange__hasValue.bind(this)}).define({state:OcMdInputSelect.__states.isRequired,onChange:this.__onStateChange__isRequired.bind(this)}).define({state:OcMdInputSelect.__states.isDisabled,onChange:this.__onStateChange__isDisabled.bind(this)}).define({state:OcMdInputSelect.__states.hasDescription,onChange:this.__onStateChange__hasDescription.bind(this)}).define({state:OcMdInputSelect.__states.hasIcon,onChange:this.__onStateChange__hasIcon.bind(this)})}__onStateChange__hasLabel(){if(this.__internals.mdcSelect){this.__internals.mdcSelect.layout()}}__onStateChange__hasValue(){if(this.__internals.mdcSelect){this.__internals.mdcSelect.layout()}}__onStateChange__isRequired(){this.__updateMdcSelect()}__onStateChange__isDisabled(){this.__updateMdcSelect()}__onStateChange__hasDescription(){this.__updateAnchorNode()}__onStateChange__hasIcon(){this.__updateSelectNode();this.__updateIconElement()}__initEvents(){super.__initEvents();this.__internals.elements.menu.events.listen('open',this.__onMenu__open.bind(this),this.refID).listen('selected',this.__onMenu__selected.bind(this),this.refID)}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'value':const value=this.__getValue();this.__updateMdcSelect();this.__updateInputNode();this.__trigger__change({value:value});break;default:break}}__onMenu__open(ev){this.__trigger__open()}__onMenu__selected(ev){this.__setValue(ev.data.value);this.__internals.states.set(OcMdInputSelect.__states.hasValue,Boolean(ev.data.value))}__initEvents__listItem(item){item.events.listen('md-html-update',this.__onListitem__mdHtmlUpdate.bind(this),this.refID)}__onListitem__mdHtmlUpdate(){this.__internals.mdcSelect?.layoutOptions();this.__updateVisibleLabelOfSelectedValue()}__onHtmlReady(){super.__onHtmlReady();const selectNode=this.__internals.dom.select.get(0);if(selectNode){this.__internals.mdcSelect=new mdc.select.MDCSelect(selectNode);this.__updateMdcSelect()}}__getInputNode(){const node=this.__internals.dom.input.get(0);if(!node){return undefined};return node}__updateMdcSelect(){this.__deferOnce('__updateMdcSelect',()=>{if(!this.__internals.mdcSelect){return}const isRequired=this.__internals.states.hasState(OcMdInputSelect.__states.isRequired);this.__internals.mdcSelect.required=isRequired;const isDisabled=this.__internals.states.hasState(OcMdInputSelect.__states.isDisabled);this.__internals.mdcSelect.disabled=isDisabled;const value=this.__getValue();this.__internals.mdcSelect.value=value;this.__updateVisibleLabelOfSelectedValue()})}__updateVisibleLabelOfSelectedValue(){this.__deferOnce('__updateVisibleLabelOfSelectedValue',()=>{if(this.__internals.mdcSelect){this.__internals.mdcSelect.value=String(this.__getValue())}})}__updateBaseNode(){this.__deferOnce('__updateLabelNode',()=>{const node=this.__internals.dom.base;const hasLabel=this.__internals.states.hasState(OcMdInputSelectFilled.__states.hasLabel);OcHtml.setClassIfTrue(!hasLabel,node,OcMdInputSelectFilled.__cssClasse
1s.noLabel)})}__updateAnchorNode(){this.__deferOnce('__updateAnchorNode',()=>{const node=this.__internals.dom.anchor;const hasDescription=this.__internals.states.hasState(OcMdInputSelect.__states.hasDescription);const helperTextId=`${this.refID}--helper-text`;OcHtml.setAttributeIfTrue(hasDescription,node,'aria-controls',helperTextId);OcHtml.setAttributeIfTrue(hasDescription,node,'aria-describedby',helperTextId)})}__updateSelectNode(){this.__deferOnce('__updateSelectNode',()=>{const node=this.__internals.dom.select;const hasIcon=this.__internals.states.hasState(OcMdInputSelect.__states.hasIcon);OcHtml.setClassIfTrue(hasIcon,node,'mdc-select--with-leading-icon')})}__updateIconElement(){this.__deferOnce('__updateIconElement',()=>{const instance=this.__internals.elements.icon;const hasIcon=this.__internals.states.hasState(OcMdInputSelect.__states.hasIcon);instance.visible=hasIcon})}__updateInputNode(){this.__deferOnce('__updateInputNode',()=>{const node=this.__internals.dom.input;const attributes={};const value=this.__getValue();node.val(value).trigger('input').trigger('change');const required=this.__getRequired();OcHtml.setAttributeIfTrue(required,node,'required','')})}addOption(item){this.__internals.elements.menu.list.addItem(item);this.__initEvents__listItem(item);if(this.__internals.mdcSelect){this.__internals.mdcSelect.layoutOptions()}}getOption(refId){return this.__internals.elements.menu.list.getItem(refId)}removeOption(refId){const option=this.getOption(refId);option?.events.cancelAllFromScope(this.refID);this.__internals.elements.menu.list.removeItem(refId);if(this.__internals.mdcSelect){this.__internals.mdcSelect.layoutOptions()}}removeOptionByValue(value){const itemsToBeRemoved=this.__internals.elements.menu.list.items.filter(listItem=>listItem instanceof OcMdListitem&&listItem.value==value);for(const item of itemsToBeRemoved){this.removeOption(item.refID)}}setAttributes(attributes){for(var key in attributes){const value=attributes[key];if(key=='value'){this.__setValue(value)}else{if(typeof(value)=='undefined'||value===null){this.__internals.dom.input.removeAttr(key)}else{this.__internals.dom.input.attr(key,value)}}}}__trigger__change(eventData){const event=new OcEvent({eventName:'change',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__open(){const event=new OcEvent({eventName:'open'});this.__internals.events.triggerEvent(event)}reset(){const options=this.__getOptions();const value=(options.length>0)?options[0].value:"";this.value=value;this.defer(()=>{const select=this.__internals.mdcSelect;if(select){select.valid=true}})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,base:undefined,autoSort:false,label:'',required:false,description:'',icon:'',options:[],value:'',attributes:{},}}}}
1OcMdInputSelect.__cssClasses={noLabel:'mdc-select--no-label',hasFixedAnchor:'oc-md-input-select--has-fixed-anchor'};OcMdInputSelect.__states={...OcMdInput.__states,hasDescription:'has-description',hasLabel:'has-label',hasValue:'has-value',isRequired:'is-required',isDisabled:'is-disabled',hasIcon:'has-icon'};Oc.OcMdInputSelectBase=OcMdInputSelect;"use strict";class OcMdInputSelectFilled extends OcMdInputSelect{constructor(properties){super(properties)}defaults(){return OcMdInputSelectFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setLabel(value){super.__setLabel(value);this.__internals.elements.label.text=value}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.__updateLabelNode()}__initElements(){super.__initElements();const cssBase='oc-md-input-select-filled';this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'span',class:`${cssBase}__ripple`},lineRipple:{tag:'span',class:`${cssBase}__line-ripple mdc-line-ripple`},label:{component:OcMdFloatinglabel,class:`${cssBase}__label`,properties:{disableMdc:true}},}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.select.addClass('mdc-select--filled');this.__internals.dom.ripple.prependTo(this.__internals.dom.anchor);this.__internals.dom.lineRipple.insertAfter(this.__internals.dom.dropdownIcon);this.__internals.elements.label.base.attr('id',`${this.refID}--label`).insertAfter(this.__internals.dom.ripple);this.__internals.elements.icon.base.insertAfter(this.__internals.elements.label.base)},true))}__onStateChange__hasLabel(){super.__onStateChange__hasLabel();this.__updateLabelNode()}__updateLabelNode(){this.__deferOnce('__updateLabelNode',()=>{this.__internals.elements.label.text=this.properties.label;})}__updateVisibleLabelOfSelectedValue(){super.__updateVisibleLabelOfSelectedValue();this.__internals.elements.label.float=(this.value!=="")}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputSelectFilled=OcMdInputSelectFilled;"use strict";class OcMdInputSelectHelpertext extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputSelectHelpertext.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,text:{get:this.__getText.bind(this),set:this.__setText.bind(this)}}}__getText(){return this.properties.text}__setText(value){this.properties.text=value;this.__updateMdc()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.text=this.__setText}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-input-select-helpertext';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'p'}}))};this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.attr({'aria-hidden':'true'}).addClass(`${cssBase} mdc-select-helper-text`)},true))};__onHtmlReady(){super.__onHtmlReady();const el=this.__internals.dom.base.get(0);if(el){this.__internals.mdcSelectHelperText=new mdc.select.MDCSelectHelperText(el)}this.__updateMdc()}__updateMdc(){this.__deferOnce('__updateMdc',()=>{if(!this.__internals.mdcSelectHelperText){return};this.__internals.mdcSelectHelperText.foundationForSelect.setContent(this.properties.text)})}destroy(){this.__internals.mdcSelectHelperText?.destroy();super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,text:''}}}}Oc.OcMdInputSelectHelpertext=OcMdInputSelectHelpertext;"use strict";class OcMdInputSelectIcon extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputSelectIcon.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)}}}__getIcon(){return this.properties.icon}__setIcon(value){this.properties.icon=value;this.__handleIcon()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.icon=this.__setIcon}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase=OcMdInputSelectIcon.__baseCSS;if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))}this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-select__icon`)},true))}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcSelectIcon=new mdc.select.MDCSelectIcon(baseNode)}}__handleIcon(){this.__deferOnce('__handleIcon',()=>{const iconString=this.__getIcon();if(this.__internals.icon&&this.__internals.icon.icon!=iconString){this.__internals.icon.destroy();delete this.__internals.icon}if(iconString){const newIcon=OcMd.createFontIcon(iconString);if(newIcon!=null){this.__internals.icon=newIcon;this.__internals.icon.base.addClass(`${OcMdInputSelectIcon.__baseCSS}__icon`).appendTo(this.__internals.dom.base)}}})}destroy(){this.__internals.mdcSelectIcon?.destroy();delete this.__internals.mdcSelectIcon;super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,icon:'',}}}}OcMdInputSelectIcon.__baseCSS='oc-md-input-select-icon';Oc.OcMdInputSelectIcon=OcMdInputSelectIcon;"use strict";
1class OcMdInputSelectOutlined extends OcMdInputSelect{constructor(properties){super(properties)}defaults(){return OcMdInputSelectOutlined.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setLabel(value){super.__setLabel(value);this.__internals.elements.label.text=value}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.__updateLabelNode()}__initElements(){super.__initElements();const cssBase='oc-md-input-select-outlined';this.__internals.initElementsJobs.push(this.__createDOMNodes({label:{component:OcMdNotchedOutline,class:`${cssBase}__label`,properties:{disableMdc:true}},}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.select.addClass(mdc.select.cssClasses.OUTLINED);this.__internals.elements.label.base.attr('id',`${this.refID}--label`).insertBefore(this.__internals.dom.selectedTextContainer);this.__internals.elements.icon.base.insertAfter(this.__internals.elements.label.base)},true))}__onStateChange__hasLabel(){super.__onStateChange__hasLabel();this.__updateLabelNode()}__updateLabelNode(){this.__deferOnce('__updateLabelNode',()=>{this.__internals.elements.label.text=this.properties.label})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:''}}}}Oc.OcMdInputSelectOutlined=OcMdInputSelectOutlined;"use strict";class OcMdInputSlider extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputSlider.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},labelledBy:{get:this.__getLabelledBy.bind(this),set:this.__setLabelledBy.bind(this)},name:{get:this.__getName.bind(this),set:this.__setName.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__internals.states.set(OcMdInputSlider.__states.hasOwnLabel,this.properties.label.length>0)}__getLabelledBy(){return this.properties.labelledBy}__setLabelledBy(value){this.properties.labelledBy=value;this.__internals.states.set(OcMdInputSlider.__states.hasDeferredLabel,this.properties.labelledBy.length>0)}__getName(){return this.properties.name}__setName(value){this.properties.name=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.labelledBy=this.__setLabelledBy;this.propertyHandlers.name=this.__setName}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const baseCss='oc-md-input-slider';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({track:{tag:'div',class:`${baseCss}__track ${mdc.slider.cssClasses.TRACK}`,children:{trackInactive:{tag:'div',class:`${baseCss}__track-inactive mdc-slider__track--inactive`,},trackActive:{tag:'div',class:`${baseCss}__track-active mdc-slider__track--active`,children:{trackActiveFill:{tag:`div`,class:`${baseCss}__track-active-fill mdc-slider__track--active_fill`}}}}},thumb1:{tag:'div',class:`${baseCss}__thumb-1 mdc-slider__thumb`,children:{thumbKnob1:{tag:'div',class:`${baseCss}__thumb-knob-1 mdc-slider__thumb-knob`}}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${baseCss} mdc-slider`)},true));this.__internals.resizeObserver=new OcResizeobserver();this.__internals.resizeObserver.observe(this.__internals.dom.base)}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputSlider.__states.hasName,onChange:this.__onStateChange__hasName.bind(this)}).define({state:OcMdInputSlider.__states.hasDeferredLabel,onChange:this.__onStateChange__hasDeferredLabel.bind(this)}).define({state:OcMdInputSlider.__states.hasOwnLabel,onChange:this.__onStateChange__hasOwnLabel.bind(this)})}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`MDCSlider:change.${this.refID}`,this.__onBase__change.bind(this)).on(`MDCSlider:input.${this.refID}`,this.__onBase__input.bind(this));this.__internals.resizeObserver.events.listen('resize',this.__onResizeObserver__resize.bind(this),this.refID)}__onResizeObserver__resize(ev){this.__deferOnce('__onResizeObserver__resize',()=>{this.__internals.mdcSlider?.layout()})}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcSlider=new mdc.slider.MDCSlider(baseNode);this.__internals.mdcSlider.layout()}}layout(){this.__internals.mdcSlider?.layout()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',labelledBy:'',name:''}}}}OcMdInputSlider.__states={...OcMdComponent.__states,hasName:'has-name',hasOwnLabel:'has-own-label',hasDeferredLabel:'has-deferred-label'};
1Oc.OcMdInputSlider=OcMdInputSlider;"use strict";class OcMdInputSliderRange extends OcMdInputSlider{constructor(properties){super(properties)}defaults(){return OcMdInputSliderRange.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,fromMin:{get:this.__getFromMin.bind(this),set:this.__setFromMin.bind(this)},fromMax:{get:this.__getFromMax.bind(this),set:this.__setFromMax.bind(this)},toMin:{get:this.__getToMin.bind(this),set:this.__setToMin.bind(this)},toMax:{get:this.__getToMax.bind(this),set:this.__setToMax.bind(this)},from:{get:this.__getFrom.bind(this),set:this.__setFrom.bind(this)},to:{get:this.__getTo.bind(this),set:this.__setTo.bind(this)}}}__getFromMin(){return this.properties.fromMin}__setFromMin(value){this.properties.fromMin=value;this.__updateMdcSlider()}__getFromMax(){return this.properties.fromMax}__setFromMax(value){const normalizedValue=OcUtilities.clamp(this.__getFromMin(),value,this.__getToMax());this.properties.fromMax=normalizedValue;this.__updateInputNodes()}__getToMin(){return this.properties.toMin}__setToMin(value){const normalizedValue=OcUtilities.clamp(this.__getFromMin(),value,this.__getToMax());this.properties.toMin=normalizedValue;this.__updateInputNodes()}__getToMax(){return this.properties.toMax}__setToMax(value){this.properties.toMax=value;this.__updateMdcSlider()}__getFrom(){return this.properties.from}__setFrom(value,setAsDefault,source='script'){const normalizedValue=OcUtilities.clamp(this.__getFromMin(),value,this.__getFromMax());this.properties.from=normalizedValue;this.__updateMdcSlider();this.__onValueChange(source)}__getTo(){return this.properties.to}__setTo(value,setAsDefault,source='script'){const normalizedValue=OcUtilities.clamp(this.__getToMin(),value,this.__getToMax());this.properties.to=normalizedValue;this.__updateMdcSlider();this.__onValueChange(source)}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.fromMin=this.__setFromMin;this.propertyHandlers.toMax=this.__setToMax}__initialize(properties){super.__initialize(properties);let value;this.propertyHandlers.fromMax=this.__setFromMax;value=(properties&&'fromMax'in properties)?properties.fromMax:undefined;value=OcUtilities.define(value,this.defaults().properties.fromMax);this.__setPropertyViaPropertyHandler('fromMax',value);this.propertyHandlers.toMin=this.__setToMin;value=(properties&&'toMin'in properties)?properties.toMin:undefined;value=OcUtilities.define(value,this.defaults().properties.toMin);this.__setPropertyViaPropertyHandler('toMin',value);this.propertyHandlers.from=this.__setFrom;value=(properties&&'from'in properties)?properties.from:undefined;value=OcUtilities.define(value,this.defaults().properties.from);this.__setPropertyViaPropertyHandler('from',value);this.propertyHandlers.to=this.__setTo;value=(properties&&'to'in properties)?properties.to:undefined;value=OcUtilities.define(value,this.defaults().properties.to);this.__setPropertyViaPropertyHandler('to',value)}__initElements(){super.__initElements();const baseCss='oc-md-input-slider-range';this.__internals.initElementsJobs.push(this.__createDOMNodes({inputFrom:{tag:'input',class:`${baseCss}__input mdc-slider__input`,attributes:{type:'range',min:'0',max:'100',value:'0'}},inputTo:{tag:'input',class:`${baseCss}__input mdc-slider__input`,attributes:{type:'range',min:'0',max:'100',value:'100'}},thumb2:{tag:'div',class:`${baseCss}__thumb-2 mdc-slider__thumb`,children:{thumbKnob2:{tag:'div',class:`${baseCss}__thumb-knob-2 mdc-slider__thumb-knob`}}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${baseCss} mdc-slider--range`);this.__internals.dom.inputFrom.insertBefore(this.__internals.dom.track);this.__internals.dom.inputTo.insertBefore(this.__internals.dom.track);this.__internals.dom.thumb2.insertAfter(this.__internals.dom.thumb1)},true))}__onStateChange__hasName(){this.__updateInputNodes()}__onStateChange__hasDeferredLabel(){this.__updateInputNodes()}__onStateChange__hasOwnLabel(){this.__updateInputNodes()}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`MDCSlider:change.${this.refID}`,this.__onBase__change.bind(this))}__onBase__change(ev){const absoluteMin=this.__getFromMin();const absoluteMax=this.__getToMax();const realValue=OcUtilities.percentToValue(ev.originalEvent.detail.value,absoluteMin,absoluteMax);let handler;if(ev.originalEvent.detail.thumb==1){handler=this.__setFrom}else{handler=this.__setTo};handler.call(this,realValue,false,'input')}__onBase__input(ev){const[from,to]=[this.__getFrom(),this.__getTo()];this.__trigger__input({from:from,to:to})}__onHtmlReady(){super.__onHtmlReady();this.__updateMdcSlider()}
1__updateMdcSlider(){if(!this.__internals.mdcSlider){return};this.__updateInputNodes();const absoluteMin=this.__getFromMin();const absoluteMax=this.__getToMax();const percentStart=OcUtilities.valueToPercent(this.__getFrom(),absoluteMin,absoluteMax);this.__internals.mdcSlider.setValueStart(percentStart);const percentEnd=OcUtilities.valueToPercent(this.__getTo(),absoluteMin,absoluteMax);this.__internals.mdcSlider.setValue(percentEnd)}__updateInputNodes(){const fromNode=this.__internals.dom.input;const toNode=this.__internals.dom.input;const absoluteMin=this.__getFromMin();const absoluteMax=this.__getToMax();const fromMaxPercentage=OcUtilities.valueToPercent(this.__getFromMax(),absoluteMin,absoluteMax);this.__internals.dom.inputFrom.attr({'max':fromMaxPercentage});const toMinPercentage=OcUtilities.valueToPercent(this.__getToMin(),absoluteMin,absoluteMax);this.__internals.dom.inputTo.attr({'min':toMinPercentage});const hasName=this.properties.name.length>0;OcHtml.setAttributeIfTrue(hasName,fromNode,'name',`${this.properties.name}-start`);OcHtml.setAttributeIfTrue(hasName,toNode,'name',`${this.properties.name}-end`);const hasDeferredLabel=this.__internals.states.hasState(OcMdInputSliderStandard.__states.hasDeferredLabel);const hasOwnLabel=this.__internals.states.hasState(OcMdInputSliderStandard.__states.hasOwnLabel);const useDeferredlabel=hasDeferredLabel;OcHtml.setAttributeIfTrue(useDeferredlabel,fromNode,'aria-labelledby',this.properties.labelledBy);OcHtml.setAttributeIfTrue(useDeferredlabel,toNode,'aria-labelledby',this.properties.labelledBy);const useOwnLabel=!hasDeferredLabel&&hasOwnLabel;OcHtml.setAttributeIfTrue(useOwnLabel,fromNode,'aria-label',this.properties.label);OcHtml.setAttributeIfTrue(useDeferredlabel,toNode,'aria-labelledby',this.properties.labelledBy)}__onValueChange(source){const[from,to]=[this.__getFrom(),this.__getTo()];this.__trigger__change({from:from,to:to,trigger:source})}__trigger__change(eventData){const event=new OcEvent({eventName:'change',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__input(eventData){const event=new OcEvent({eventName:'input',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,fromMin:0,fromMax:100,toMin:0,toMax:100,from:0,to:100}}}}Oc.OcMdInputSliderRange=OcMdInputSliderRange;"use strict";class OcMdInputSliderStandard extends OcMdInputSlider{constructor(properties){super(properties)}defaults(){return OcMdInputSliderStandard.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,min:{get:this.__getMin.bind(this),set:this.__setMin.bind(this)},max:{get:this.__getMax.bind(this),set:this.__setMax.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)}}}__getMin(){return this.properties.min}__setMin(value){this.properties.min=value;this.__updateMdcSlider()}__getMax(){return this.properties.max}__setMax(value){this.properties.max=value;this.__updateMdcSlider()}__getValue(){return this.properties.value}__setValue(value,setAsDefault,source='script'){const clampedValue=OcUtilities.clamp(this.properties.min,value,this.properties.max);if(clampedValue==this.properties.value){return};this.properties.value=clampedValue;this.__updateMdcSlider();this.__trigger__change({trigger:source,value:this.properties.value})}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.min=this.__setMin;this.propertyHandlers.max=this.__setMax}__initialize(properties){super.__initialize(properties);this.propertyHandlers.value=this.__setValue;let value=(properties&&'value'in properties)?properties.value:undefined;value=OcUtilities.define(value,this.defaults().properties.value);this.__setPropertyViaPropertyHandler('value',value);this.__updateMdcSlider()}__initElements(){super.__initElements();const baseCss='oc-md-input-slider-standard';this.__internals.initElementsJobs.push(this.__createDOMNodes({input:{tag:'input',class:`${baseCss}__input mdc-slider__input`,attributes:{type:'range',min:'0',max:'100',value:'0'}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(baseCss);this.__internals.dom.input.insertBefore(this.__internals.dom.track)},true))}__onStateChange__hasName(){this.__updateInputNode()}__onStateChange__hasDeferredLabel(){this.__updateInputNode()}__onStateChange__hasOwnLabel(){this.__updateInputNode()}__onBase__change(ev){const realValue=OcUtilities.percentToValue(ev.originalEvent.detail.value,this.properties.min,this.properties.max);this.__setValue(realValue,false,'input')}__onBase__input(ev){const realValue=OcUtilities.percentToValue(ev.originalEvent.detail.value,this.properties.min,this.properties.max);this.__trigger__input({value:realValue})}__onHtmlReady(){super.__onHtmlReady();this.__updateMdcSlider()}
1__updateMdcSlider(){if(!this.__internals.mdcSlider){return};const percent=OcUtilities.valueToPercent(this.properties.value,this.properties.min,this.properties.max);this.__internals.mdcSlider.setValue(percent)}__updateInputNode(){this.__deferOnce('__updateInputNode',()=>{const node=this.__internals.dom.input;const hasName=this.properties.name.length>0;OcHtml.setAttributeIfTrue(hasName,node,'name',this.properties.name);const hasDeferredLabel=this.__internals.states.hasState(OcMdInputSliderStandard.__states.hasDeferredLabel);const hasOwnLabel=this.__internals.states.hasState(OcMdInputSliderStandard.__states.hasOwnLabel);const useDeferredlabel=hasDeferredLabel;OcHtml.setAttributeIfTrue(useDeferredlabel,node,'aria-labelledby',this.properties.labelledBy);const useOwnLabel=!hasDeferredLabel&&hasOwnLabel;OcHtml.setAttributeIfTrue(useOwnLabel,node,'aria-label',this.properties.label)})}__trigger__change(eventData){const event=new OcEvent({eventName:'change',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__input(eventData){const event=new OcEvent({eventName:'input',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,min:0,max:100,value:50}}}}Oc.OcMdInputSliderStandard=OcMdInputSliderStandard;"use strict";class OcMdInputTextArea extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputTextArea.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,autocomplete:{get:this.__getAutocomplete.bind(this),set:this.__setAutocomplete.bind(this)},autocorrect:{get:this.__getAutocorrect.bind(this),set:this.__setAutocorrect.bind(this)},autofocus:{get:this.__getAutofocus.bind(this),set:this.__setAutofocus.bind(this)},cols:{get:this.__getCols.bind(this),set:this.__setCols.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},form:{get:this.__getForm.bind(this),set:this.__setForm.bind(this)},maxlength:{get:this.__getMaxlength.bind(this),set:this.__setMaxlength.bind(this)},minlength:{get:this.__getMinlength.bind(this),set:this.__setMinlength.bind(this)},name:{get:this.__getName.bind(this),set:this.__setName.bind(this)},placeholder:{get:this.__getPlaceholder.bind(this),set:this.__setPlaceholder.bind(this)},readonly:{get:this.__getReadonly.bind(this),set:this.__setReadonly.bind(this)},required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},rows:{get:this.__getRows.bind(this),set:this.__setRows.bind(this)},spellcheck:{get:this.__getSpellcheck.bind(this),set:this.__setSpellcheck.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},wrap:{get:this.__getWrap.bind(this),set:this.__setWrap.bind(this)},resizable:{get:this.__getResizable.bind(this),set:this.__setResizable.bind(this)},autoGrow:{get:this.__getAutoGrow.bind(this),set:this.__setAutoGrow.bind(this)},autoGrowMaxRows:{get:this.__getAutoGrowMaxRows.bind(this),set:this.__setAutoGrowMaxRows.bind(this)},autoGrowMinRows:{get:this.__getAutoGrowMinRows.bind(this),set:this.__setAutoGrowMinRows.bind(this)},input:{get:this.__getInput.bind(this)}}}__getAutocomplete(){return this.properties.autocomplete}__setAutocomplete(value){this.properties.autocomplete=value;this.__updateInputNode()}__getAutocorrect(){return this.properties.autocorrect}__setAutocorrect(value){this.properties.autocorrect=value;this.__updateInputNode()}__getAutofocus(){return this.properties.autofocus}__setAutofocus(value){this.properties.autofocus=value;this.__updateInputNode()}__getCols(){return this.properties.cols}__setCols(value){this.properties.cols=value;this.__updateInputNode()}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__updateInputNode()}__getForm(){return this.properties.form}__setForm(value){this.properties.form=value;this.__updateInputNode()}__getMaxlength(){return this.properties.maxlength}__setMaxlength(value){this.properties.maxlength=value;this.__updateInputNode()}__getMinlength(){return this.properties.minlength}__setMinlength(value){this.properties.minlength=value;this.__updateInputNode()}__getName(){return this.properties.name}__setName(value){this.properties.name=value;this.__updateInputNode()}__getPlaceholder(){return this.properties.placeholder}__setPlaceholder(value){this.properties.placeholder=value;this.__updateInputNode()}__getReadonly(){return this.properties.readonly}__setReadonly(value){this.properties.readonly=value;this.__updateInputNode()}__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__updateInputNode()}__getRows(){return this.properties.rows}__setRows(value){this.properties.rows=value;this.__updateInputNode()}
1__getSpellcheck(){return this.properties.spellcheck}__setSpellcheck(value){this.properties.spellcheck=value;this.__updateInputNode()}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__internals.elements.label.text=this.properties.label;this.__internals.states.set(OcMdInputTextArea.__states.HAS_LABEL,this.properties.label.length>0)}__getValue(){return this.properties.value}__setValue(value){if(this.properties.value==value){return}this.properties.value=value;this.__internals.dom.input.val(value);this.__updateMdcInstance();OcUtilities.triggerEvent(this.__internals.dom.input,'input')}__getWrap(){return this.properties.wrap}__setWrap(value){this.properties.wrap=value;this.__updateInputNode()}__getResizable(){return this.properties.resizable}__setResizable(value){this.properties.resizable=value;this.__handleResizableState()}__getAutoGrow(){return this.properties.autoGrow}__setAutoGrow(value){this.properties.autoGrow=value;this.__internals.states.set(OcMdInputTextArea.__states.AUTO_GROW,this.properties.autoGrow)}__getAutoGrowMaxRows(){return this.properties.autoGrowMaxRows}__setAutoGrowMaxRows(value){this.properties.autoGrowMaxRows=value;this.__handleAutoGrow()}__getAutoGrowMinRows(){return this.properties.autoGrowMinRows}__setAutoGrowMinRows(value){this.properties.autoGrowMinRows=value;this.__handleAutoGrow()}__getInput(){return this.__internals.dom.input}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdInputTextArea:OLEFA.css.getIfNotLoaded('md/input/text/area.css','--loaded--md-input-text-area')};this.__internals.autogrowResizeActive=false;this.propertyHandlers.autocomplete=this.__setAutocomplete;this.propertyHandlers.autocorrect=this.__setAutocorrect;this.propertyHandlers.autofocus=this.__setAutofocus;this.propertyHandlers.cols=this.__setCols;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.form=this.__setForm;this.propertyHandlers.maxlength=this.__setMaxlength;this.propertyHandlers.minlength=this.__setMinlength;this.propertyHandlers.name=this.__setName;this.propertyHandlers.placeholder=this.__setPlaceholder;this.propertyHandlers.readonly=this.__setReadonly;this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.rows=this.__setRows;this.propertyHandlers.spellcheck=this.__setSpellcheck;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.value=this.__setValue;this.propertyHandlers.wrap=this.__setWrap;this.propertyHandlers.resizable=this.__setResizable;this.propertyHandlers.autoGrow=this.__setAutoGrow;this.propertyHandlers.autoGrowMinRows=this.__setAutoGrowMinRows;this.propertyHandlers.autoGrowMaxRows=this.__setAutoGrowMaxRows}__initialize(properties){super.__initialize(properties);this.__updateBaseNode();this.__updateInputNode();this.__updateLabelNode()}__initElements(){super.__initElements();const cssBase='oc-md-input-text-area';if(this.__internals.dom.base.length>0){this.__internals.dom.input=this.__internals.dom.base}else{this.__internals.initElementsJobs.push(this.__createDOMNodes({input:{tag:'textarea'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'label',class:`${cssBase} mdc-text-field mdc-text-field--textarea`,children:{resizer:{tag:'span',class:`${cssBase}__resizer mdc-text-field__resizer`}}},label:{component:OcMdFloatinglabel,class:`${cssBase}__label`,properties:{disableMdc:true}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.input.addClass(`${cssBase}__input mdc-text-field__input`).appendTo(this.__internals.dom.resizer);this.__internals.elements.label.base.attr({'id':`${this.refID}--label`})},true));this.__internals.inputObserver=OLEFA.mutations.createObserver({element:this.__internals.dom.input,event:`${this.refID}--input`,mutations:{attributeFilter:['maxlength']}})}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputTextArea.__states.HAS_LABEL,onChange:this.__onStateChange__hasLabel.bind(this)}).define({state:OcMdInputTextArea.__states.HAS_MAX_LENGTH,onChange:this.__onStateChange__hasMaxLength.bind(this)}).define({state:OcMdInputTextArea.__states.RESIZABLE}).define({state:OcMdInputTextArea.__states.AUTO_GROW,onChange:this.__onStateChange__autoGrow.bind(this)})}__onStateChange__hasLabel(){this.__updateBaseNode();this.__updateLabelNode();this.__updateInputNode()}__onStateChange__hasMaxLength(){this.__updateBaseNode();this.__updateCharacterCounter()}__onStateChange__autoGrow(){this.__handleResizableState();this.__updateInputNode();const hasAutoGrowState=this.__internals.states.hasState(OcMdInputTextArea.__states.AUTO_GROW);
1if(hasAutoGrowState){this.__internals.dom.resizer.css({'height':'','width':''});this.__initEvents__autogrow()}else{this.__terminateEvents__autogrow()}this.__handleAutoGrow()}__initEvents(){super.__initEvents();this.__internals.inputObserver?.events.listen('attribute-change',this.__onInputObserver__attributeChange.bind(this),this.refID);this.__internals.dom.input.on(`change.${this.refID}`,this.__onInput__change.bind(this)).on(`input.${this.refID}`,this.__onInput__input.bind(this))}__onInputObserver__attributeChange(ev){if(ev.attribute=='maxlength'){this.__updateCharacterCounter()}}__onInput__input(e){this.__setValue(e.target.value);this.__updateCharacterCounter();this.__trigger__input({text:String(this.__internals.dom.input.val())||''})}__onInput__change(e){this.__setValue(e.target.value);this.__trigger__input({text:this.__getValue()});this.__trigger__change({text:this.__getValue()})}__initEvents__autogrow(){this.__internals.dom.input.on(`input.${this.refID}--autogrow`,this.__onInput__autogrow__input.bind(this))}__terminateEvents__autogrow(){this.__internals.dom.input.off(`.${this.refID}--autogrow`)}__onInput__autogrow__input(ev){this.__handleAutoGrow()}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcTextField=new mdc.textfield.MDCTextField(baseNode);this.__updateMdcInstance()}}__handleResizableState(){const autogrow=this.__internals.states.hasState(OcMdInputTextArea.__states.AUTO_GROW);if(autogrow){this.__internals.states.remove(OcMdInputTextArea.__states.RESIZABLE)};const resizable=this.__getResizable();this.__internals.states.set(OcMdInputTextArea.__states.RESIZABLE,resizable)}__updateBaseNode(){this.__deferOnce('__updateBaseNode',()=>{const node=this.__internals.dom.base;const hasLabel=this.__internals.states.hasState(OcMdInputTextArea.__states.HAS_LABEL);OcHtml.setClassIfTrue(!hasLabel,node,'mdc-text-field--no-label');const hasMaxLength=this.__internals.states.hasState(OcMdInputTextArea.__states.HAS_MAX_LENGTH);OcHtml.setClassIfTrue(hasMaxLength,node,'mdc-text-field--with-internal-counter')})}__updateInputNode(){this.__deferOnce('__updateInputNode',()=>{const node=this.__internals.dom.input;const attributes={};const booleanAttributes=['autofocus','readonly','required','disabled'];for(const attribute of booleanAttributes){const value=this.properties[attribute];attributes[attribute]={condition:value!==null&&value,value:''}}const stringAttributes=['autocomplete','autocorrect','cols','form','maxlength','minlength','name','placeholder','spellcheck','wrap'];for(const attribute of stringAttributes){let value=this.properties[attribute];if(typeof value=='number'){value=String(value)}attributes[attribute]={condition:value!==null,value:value||''}}const autoGrow=this.__internals.states.hasState(OcMdInputTextArea.__states.AUTO_GROW);if(!autoGrow){const rows=this.__getRows();attributes.rows={condition:rows!==null,value:rows||''}}const hasLabel=this.__internals.states.hasState(OcMdInputTextArea.__states.HAS_LABEL);attributes['aria-labelledby']={condition:hasLabel,value:`${this.refID}--label`};OcHtml.setAttributesIfTrue(node,attributes)})}__updateCharacterCounter(){this.__deferOnce('__updateCharacterCounter',()=>{const current=String(this.__internals.dom.input.val());const max=this.__getMaxlength();const shouldHaveCharacterCounter=max!==null;if(shouldHaveCharacterCounter){if(!this.__internals.characterCounter){this.__internals.characterCounter=new OcMdInputHelperCounter();this.__internals.states.add(OcMdInputTextArea.__states.HAS_MAX_LENGTH)}this.__internals.characterCounter.currentCharacterCount=current.length;this.__internals.characterCounter.maxCharacterCount=Number(max);this.__internals.characterCounter.base.insertAfter(this.__internals.dom.input)}else{this.__internals.characterCounter?.base.detach()}})}__updateMdcInstance(){if(!this.__internals.mdcTextField){return};const value=this.__getValue();this.__internals.mdcTextField.value=value}__handleAutoGrow(){const hasAutoGrowState=this.__internals.states.hasState(OcMdInputTextArea.__states.AUTO_GROW);if(!hasAutoGrowState){return};if(this.__internals.autogrowResizeActive){return};this.__internals.autogrowResizeActive=true;let rows=1;this.__internals.dom.input.attr('rows',rows);let contentHeight=this.__internals.dom.input.get(0)?.scrollHeight||0;
1let inputHeight=this.__internals.dom.input.innerHeight()||0;const minimumHeight=this.__getAutoGrowMinRows();const maximumHeight=this.__getAutoGrowMaxRows();const isInputTooSmall=function(){return inputHeight<contentHeight};const isInputSmallerThanMinimumSize=function(){return rows<minimumHeight};const isInputSmallerThanMaximumSize=function(){return rows<maximumHeight};while((isInputSmallerThanMinimumSize()||isInputTooSmall())&&isInputSmallerThanMaximumSize()){++rows;this.__internals.dom.input.attr('rows',rows);contentHeight=this.__internals.dom.input.get(0)?.scrollHeight||0;inputHeight=this.__internals.dom.input.innerHeight()||0}this.__internals.autogrowResizeActive=false}__trigger__change(eventData){const event=new OcEvent({eventName:'change',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__input(eventData){const event=new OcEvent({eventName:'input',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,autocomplete:null,autocorrect:null,autofocus:null,cols:null,disabled:null,form:null,maxlength:null,minlength:null,name:null,placeholder:null,readonly:null,required:null,rows:null,spellcheck:null,label:'',value:'',wrap:null,resizable:false,autoGrow:false,autoGrowMinRows:1,autoGrowMaxRows:5,}}}}OcMdInputTextArea.__states={...OcMdComponent.__states,HAS_LABEL:'has-label',HAS_MAX_LENGTH:'has-max-length',RESIZABLE:'resizable',AUTO_GROW:'auto-grow'};Oc.OcMdInputTextArea=OcMdInputTextArea;"use strict";class OcMdInputTextAreaFilled extends OcMdInputTextArea{constructor(properties){super(properties)}defaults(){return OcMdInputTextAreaFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-input-text-area-filled';this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'span',class:`${cssBase}__ripple mdc-text-field__ripple`},lineRipple:{tag:'span',class:`${cssBase}__line-riple mdc-line-ripple`}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-text-field--filled`);this.__internals.dom.ripple.insertBefore(this.__internals.dom.resizer);this.__internals.dom.lineRipple.insertAfter(this.__internals.dom.resizer);this.__internals.elements.label.base.insertAfter(this.__internals.dom.ripple)},true))}__updateLabelNode(){this.__deferOnce('__updateLabelNode',()=>{const hasLabel=this.__internals.states.hasState(OcMdInputTextAreaOutlined.__states.HAS_LABEL);if(hasLabel){this.__internals.elements.label.base.insertAfter(this.__internals.dom.ripple)}else{this.__internals.elements.label.base.detach()}})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputTextAreaFilled=OcMdInputTextAreaFilled;"use strict";class OcMdInputTextAreaOutlined extends OcMdInputTextArea{constructor(properties){super(properties)}defaults(){return OcMdInputTextAreaOutlined.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-input-text-area-outlined';this.__internals.initElementsJobs.push(this.__createDOMNodes({notchedOutline:{tag:'span',class:`${cssBase}__notched-outline mdc-notched-outline`,children:{notchedOutlineLeading:{tag:'span',class:`${cssBase}__notched-outline-leading mdc-notched-outline__leading`},notch:{tag:'span',class:`${cssBase}__notch mdc-notched-outline__notch`},notchedOutlineTrailing:{tag:'span',class:`${cssBase}__notched-outline-trailing mdc-notched-outline__trailing`}}},}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-text-field--outlined`);this.__internals.dom.notchedOutline.insertBefore(this.__internals.dom.resizer);this.__internals.elements.label.base.appendTo(this.__internals.dom.notch)},true))}__updateLabelNode(){this.__deferOnce('__updateLabelNode',()=>{const hasLabel=this.__internals.states.hasState(OcMdInputTextAreaOutlined.__states.HAS_LABEL);if(hasLabel){this.__internals.dom.notch.insertAfter(this.__internals.dom.notchedOutlineLeading)}else{this.__internals.dom.notch.detach()}})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputTextAreaOutlined=OcMdInputTextAreaOutlined;"use strict";
1class OcMdInputTextBase extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputTextBase.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},placeholder:{get:this.__getPlaceholder.bind(this),set:this.__setPlaceholder.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},name:{get:this.__getName.bind(this),set:this.__setName.bind(this)},description:{get:this.__getDescription.bind(this),set:this.__setDescription.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},prefix:{get:this.__getPrefix.bind(this),set:this.__setPrefix.bind(this)},suffix:{get:this.__getSuffix.bind(this),set:this.__setSuffix.bind(this)},leadingIcon:{get:this.__getLeadingIcon.bind(this),set:this.__setLeadingIcon.bind(this)},leadingIconInteractible:{get:this.__getLeadingIconInteractible.bind(this),set:this.__setLeadingIconInteractible.bind(this)},leadingIconLabel:{get:this.__getLeadingIconLabel.bind(this),set:this.__setLeadingIconLabel.bind(this)},trailingIcon:{get:this.__getTrailingIcon.bind(this),set:this.__setTrailingIcon.bind(this)},trailingIconInteractible:{get:this.__getTrailingIconInteractible.bind(this),set:this.__setTrailingIconInteractible.bind(this)},trailingIconLabel:{get:this.__getTrailingIconLabel.bind(this),set:this.__setTrailingIconLabel.bind(this)},suggestedValues:{get:this.__getSuggestedValues.bind(this)},attributes:{get:this.__getAttributes.bind(this)},autocomplete:{get:this.__getAutocomplete.bind(this),set:this.__setAutocomplete.bind(this)},dirname:{get:this.__getDirname.bind(this),set:this.__setDirname.bind(this)},input:{get:this.__getInput.bind(this)},form:{get:this.__getForm.bind(this),set:this.__setForm.bind(this)},list:{get:this.__getList.bind(this),set:this.__setList.bind(this)},max:{get:this.__getMax.bind(this),set:this.__setMax.bind(this)},maxlength:{get:this.__getMaxlength.bind(this),set:this.__setMaxlength.bind(this)},min:{get:this.__getMin.bind(this),set:this.__setMin.bind(this)},minlength:{get:this.__getMinlength.bind(this),set:this.__setMinlength.bind(this)},multiple:{get:this.__getMultiple.bind(this),set:this.__setMultiple.bind(this)},pattern:{get:this.__getPattern.bind(this),set:this.__setPattern.bind(this)},readonly:{get:this.__getReadonly.bind(this),set:this.__setReadonly.bind(this)},required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},size:{get:this.__getSize.bind(this),set:this.__setSize.bind(this)},step:{get:this.__getStep.bind(this),set:this.__setStep.bind(this)},type:{get:this.__getType.bind(this),set:this.__setType.bind(this)},icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},autocapitalize:{get:this.__getAutocapitalize.bind(this),set:this.__setAutocapitalize.bind(this)},inputmode:{get:this.__getInputmode.bind(this),set:this.__setInputmode.bind(this)}}}__getLabel(){return this.__internals.properties.label.get()}__setLabel(value,setAsDefault=false){this.__internals.properties.label.set(value,setAsDefault)}__getPlaceholder(){return this.properties.placeholder}__setPlaceholder(value){this.properties.placeholder=value;this.__internals.states.set(OcMdInputTextBase.__states.HAS_PLACEHOLDER,this.properties.placeholder!=='')}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value;this.__internals.states.set(OcMdInputTextBase.__states.HAS_CONTENT,this.properties.value!=='');this.__handleMdcTextField()}__getName(){return this.properties.name}__setName(value){this.properties.name=value;this.__handleInput()}__getDescription(){return this.properties.description}__setDescription(value){this.properties.description=value;this.__internals.states.set(OcMdInputTextBase.__states.HAS_DESCRIPTION,this.properties.description.length>0)}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__handleMdcTextField()}__getPrefix(){return this.properties.prefix}__setPrefix(value){this.properties.prefix=value;this.__internals.states.set(OcMdInputTextBase.__states.HAS_PREFIX,this.properties.prefix.length>0);this.__deferOnce('__setPrefix',()=>{this.__internals.dom.prefix.text(this.properties.prefix)})}
1__getSuffix(){return this.properties.suffix}__setSuffix(value){this.properties.suffix=value;this.__internals.states.set(OcMdInputTextBase.__states.HAS_SUFFIX,this.properties.suffix.length>0);this.__deferOnce('__setSuffix',()=>{this.__internals.dom.suffix.text(this.properties.suffix)})}__getLeadingIcon(){return this.properties.leadingIcon}__setLeadingIcon(value){this.properties.leadingIcon=value;this.__recreateLeadingIcon()}__getLeadingIconInteractible(){return this.properties.leadingIconInteractible}__setLeadingIconInteractible(value){this.properties.leadingIconInteractible=value;this.__internals.states.set(OcMdInputTextBase.__states.LEADING_ICON_INTERACTIBLE,this.properties.leadingIconInteractible)}__getLeadingIconLabel(){return this.properties.leadingIconLabel}__setLeadingIconLabel(value){this.properties.leadingIconLabel=value}__getTrailingIcon(){return this.properties.trailingIcon}__setTrailingIcon(value){this.properties.trailingIcon=value;this.__recreateTrailingIcon()}__getTrailingIconInteractible(){return this.properties.trailingIconInteractible}__setTrailingIconInteractible(value){this.properties.trailingIconInteractible=value;this.__internals.states.set(OcMdInputTextBase.__states.TRAILING_ICON_INTERACTIBLE,this.properties.trailingIconInteractible)}__getTrailingIconLabel(){return this.properties.trailingIconLabel}__setTrailingIconLabel(value){this.properties.trailingIconLabel=value;this.__handleLeadingIcon()}__getSuggestedValues(){return this.properties.suggestedValues}__getAttributes(){const node=this.__internals.dom.input.get(0);if(!node){return{}};const nodeAttributes=node.attributes;const attributes={};for(let i=0;i<nodeAttributes.length;++i){const attr=nodeAttributes.item(i);if(attr){attributes[attr.name]=attr.value}};return attributes}__getAutocomplete(){return this.properties.autocomplete}__setAutocomplete(value){this.properties.autocomplete=value;this.__handleInput()}__getDirname(){return this.properties.dirname}__setDirname(value){this.properties.dirname=value;this.__handleInput()}__getInput(){return this.__internals.dom.input}__getForm(){return this.properties.form}__setForm(value){this.properties.form=value;this.__handleInput()}__getList(){return this.properties.list}__setList(value){this.properties.list=value;this.__handleInput()}__getMax(){return this.properties.max}__setMax(value){this.properties.max=value;this.__handleInput()}__getMaxlength(){return this.properties.maxlength}__setMaxlength(value){this.properties.maxlength=value;this.__handleInput()}__getMin(){return this.properties.min}__setMin(value){this.properties.min=value;this.__handleInput()}__getMinlength(){return this.properties.minlength}__setMinlength(value){this.properties.minlength=value;this.__handleInput()}__getMultiple(){return this.properties.multiple}__setMultiple(value){this.properties.multiple=value;this.__handleInput()}__getPattern(){return this.properties.pattern}__setPattern(value){this.properties.pattern=value;this.__handleInput()}__getReadonly(){return this.properties.readonly}__setReadonly(value){this.properties.readonly=value;this.__handleInput()}__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__handleInput()}__getSize(){return this.properties.size}__setSize(value){this.properties.size=value;this.__handleInput()}__getStep(){return this.properties.step}__setStep(value){this.properties.step=value;this.__handleInput()}__getType(){return this.properties.type}__setType(value){this.properties.type=value;this.__handleInput()}__getIcon(){OLEFA.log.deprecated('DEPRECATED! Use leadingIcon instead!');return this.__getLeadingIcon()}__setIcon(value){OLEFA.log.deprecated('DEPRECATED! Use leadingIcon instead!');this.__setLeadingIcon(value)}__getAutocapitalize(){return this.properties.autocapitalize}__setAutocapitalize(value){this.properties.autocapitalize=value;this.__handleInput()}__getInputmode(){return this.properties.inputmode}__setInputmode(value){this.properties.inputmode=value;this.__handleInput()}__generateInternalProperties(){const inheritedInternalProperties=super.__generateInternalProperties();const defaults=this.defaults();return{...inheritedInternalProperties,label:new OcProperty({name:'label',value:defaults.properties.label,onChange:this.__onPropertyValueChangeHandler.bind(this)})}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.suggestedValues=new OcSet();this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.placeholder=this.__setPlaceholder;this.propertyHandlers.value=this.__setValue;this.propertyHandlers.name=this.__setName;this.propertyHandlers.description=this.__setDescription;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.prefix=this.__setPrefix;this.propertyHandlers.suffix=this.__setSuffix;this.propertyHandlers.leadingIcon=this.__setLeadingIcon;this.propertyHandlers.leadingIconInteractible=this.__setLeadingIconInteractible;this.propertyHandlers.leadingIconLabel=this.__setLeadingIconLabel;this.propertyHandlers.trailingIcon=this.__setTrailingIcon;this.propertyHandlers.trailingIconInteractible=this.__setTrailingIconInteractible;this.propertyHandlers.trailingIconLabel=this.__setTrailingIconLabel;this.propertyHandlers.suggestedValues=this.addSuggestedValue;this.propertyHandlers.attributes=this.setAttributes;this.propertyHandlers.autocomplete=this.__setAutocomplete;this.propertyHandlers.dirname=this.__setDirname;this.propertyHandlers.form=this.__setForm;this.propertyHandlers.list=this.__setList;
1this.propertyHandlers.max=this.__setMax;this.propertyHandlers.maxlength=this.__setMaxlength;this.propertyHandlers.min=this.__setMin;this.propertyHandlers.minlength=this.__setMinlength;this.propertyHandlers.multiple=this.__setMultiple;this.propertyHandlers.pattern=this.__setPattern;this.propertyHandlers.readonly=this.__setReadonly;this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.size=this.__setSize;this.propertyHandlers.step=this.__setStep;this.propertyHandlers.type=this.__setType;this.propertyHandlers.autocapitalize=this.__setAutocapitalize;this.propertyHandlers.inputmode=this.__setInputmode;this.propertyHandlers.icon=this.__setIcon}__initElements(){super.__initElements();const cssBase='oc-md-input-text-base';if(this.__internals.dom.base.length){this.__internals.dom.input=this.__internals.dom.base}else{this.__internals.initElementsJobs.push(this.__createDOMNodes({input:{tag:'input'},}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div',class:`${cssBase}`,children:{textField:{tag:'label',class:`${cssBase}__text-field mdc-text-field`},helperLine:{tag:'div',class:`${cssBase}__helper-line mdc-text-field-helper-line`},suggestions:{tag:'datalist',class:`${cssBase}__suggestions`,attributes:{id:`${this.refID}--suggestions`}}}},prefix:{tag:'span',class:`${cssBase}__prefix mdc-text-field__affix mdc-text-field__affix--prefix`},suffix:{tag:'span',class:`${cssBase}__suffix mdc-text-field__affix mdc-text-field__affix--suffix`}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.input.addClass(`${cssBase}__input mdc-text-field__input`)},true));this.__internals.inputMutationObserver=OLEFA.mutations.createObserver({event:this.refID,element:this.__internals.dom.input,mutations:{attributeFilter:['maxlength','value']}});this.__internals.suggestedValuesAutoSort=new OcInteractivityAutoSort(this.__internals.dom.suggestions,{sortKey:'value',sortDirection:'asc'})}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputTextBase.__states.HAS_DESCRIPTION,onChange:this.__onStateChange__hasDescription.bind(this)}).define({state:OcMdInputTextBase.__states.HAS_MAX_LENGTH,onChange:this.__onStateChange__hasMaxLength.bind(this)}).define({state:OcMdInputTextBase.__states.HAS_PREFIX,onChange:this.__onStateChange__hasPrefix.bind(this)}).define({state:OcMdInputTextBase.__states.HAS_SUFFIX,onChange:this.__onStateChange__hasSuffix.bind(this)}).define({state:OcMdInputTextBase.__states.HAS_CONTENT}).define({state:OcMdInputTextBase.__states.HAS_FOCUS}).define({state:OcMdInputTextBase.__states.HAS_LABEL,onChange:this.__onStateChange__hasLabel.bind(this)}).define({state:OcMdInputTextBase.__states.HAS_PLACEHOLDER,onChange:this.__onStateChange__hasPlaceholder.bind(this)}).define({state:OcMdInputTextBase.__states.LABEL_FLOATING,onChange:this.__onStateChange__labelFloating.bind(this)}).define({state:OcMdInputTextBase.__states.LEADING_ICON_INTERACTIBLE,onChange:this.__onStateChange__leadingIconInteractible.bind(this)}).define({state:OcMdInputTextBase.__states.TRAILING_ICON_INTERACTIBLE,onChange:this.__onStateChange__trailingIconInteractible.bind(this)})}__onStateChange__disabled(){this.__deferOnce('__onStateChange__disabled',()=>{const isDisabled=this.__internals.states.hasState('disabled');if(isDisabled){this.__internals.dom.input.attr({disabled:''});this.__internals.dom.textField.addClass('mdc-text-field--disabled')}else{this.__internals.dom.input.removeAttr('disabled');this.__internals.dom.textField.removeClass('mdc-text-field--disabled')}})}__onStateChange__hasDescription(){this.__handleHelperLine()}__onStateChange__hasMaxLength(){this.__handleHelperLine()}__onStateChange__hasPrefix(){this.__deferOnce('__onStateChange__hasPrefix',()=>{const hasPrefix=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_PREFIX);if(hasPrefix){this.__internals.dom.prefix.insertBefore(this.__internals.dom.input)}else{this.__internals.dom.prefix.detach()}})}__onStateChange__hasSuffix(){this.__deferOnce('__onStateChange__hasSuffix',()=>{const hasSuffix=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_SUFFIX);if(hasSuffix){this.__internals.dom.suffix.insertAfter(this.__internals.dom.input)}else{this.__internals.dom.suffix.detach()}})}__onStateChange__hasLabel(){this.__handleTextField();this.__handleInput();const hasFocus=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_FOCUS);const hasContent=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_CONTENT);const shouldLabelFloat=hasContent||hasFocus;this.__internals.states.set(OcMdInputTextBase.__states.LABEL_FLOATING,shouldLabelFloat)}__onStateChange__hasPlaceholder(){this.__handleInput()}__onStateChange__labelFloating(){this.__deferOnce('__onStateChange__isLabelFloating',()=>{if(this.__internals.mdcTextField){const isLabelFloating=this.__internals.states.hasState(OcMdInputTextBase.__states.LABEL_FLOATING);if(isLabelFloating){this.__internals.mdcTextField.getDefaultFoundation().activateFocus()}else{this.__internals.mdcTextField.getDefaultFoundation().deactivateFocus()}}})}__onStateChange__leadingIconInteractible(){this.__handleLeadingIcon()}__onStateChange__trailingIconInteractible(){this.__handleTrailingIcon()}__initEvents(){super.__initEvents();this.__internals.dom.input.on(`blur.${this.refID}`,this.__onInput__blur.bind(this)).on(`change.${this.refID}`,this.__onInput__change.bind(this)).on(`focus.${this.refID}`,this.__onInput__focus.bind(this)).on(`input.${this.refID}`,this.__onInput__input.bind(this));this.__internals.inputMutationObserver?.events.listen('attribute-change',this.__onInputMutationObserver__attributeChange.bind(this),this.refID);
1this.__internals.suggestedValues.events.listen('value-added',this.__onSuggestedValues__valueAdded.bind(this),this.refID).listen('value-deleted',this.__onSuggestedValues__valueDeleted.bind(this),this.refID)}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)}if(ev.value instanceof OcNodeText){ev.value.events.listen('render',()=>{this.__handleHasLabelState},this.refID)}this.__handleHasLabelState();break;default:break}}__onInput__blur(e){this.__internals.states.set(OcMdInputTextBase.__states.HAS_FOCUS,false)}__onInput__input(e){this.__setValue(e.target.value);this.__handleCharacterCounter();this.__trigger__input({text:String(this.__internals.dom.input.val())||''})}__onInput__focus(e){this.__internals.states.set(OcMdInputTextBase.__states.HAS_FOCUS,true)}__onInput__change(e){this.__setValue(e.target.value);this.__trigger__input({text:this.__getValue()});this.__trigger__change({text:this.__getValue()})}__onInputMutationObserver__attributeChange(ev){switch(ev.attribute){case'maxlength':case'value':this.__handleCharacterCounter();break}}__onSuggestedValues__valueAdded(ev){this.defer(()=>{this.__internals.dom.suggestions.append(`<option value="${ev.data.value}">`)})}__onSuggestedValues__valueDeleted(ev){this.defer(()=>{this.__internals.dom.suggestions.find(`option[value="${ev.data.value}"]`).remove()})}__initEvents__leadingIcon(icon){icon.events.listen('click',this.__onLeadingIcon__click.bind(this))}__onLeadingIcon__click(){const isInteractible=this.__internals.states.hasState(OcMdInputTextBase.__states.LEADING_ICON_INTERACTIBLE);if(isInteractible){this.__onLeadingIconInteraction()}}__initEvents__trailingIcon(icon){icon.events.listen('click',this.__onTrailingIcon__click.bind(this))}__onTrailingIcon__click(ev){const isInteractible=this.__internals.states.hasState(OcMdInputTextBase.__states.TRAILING_ICON_INTERACTIBLE);if(isInteractible){ev.nativeEvent.stopPropagation();ev.nativeEvent.preventDefault();this.__onTrailingIconInteraction()}}__initialize(properties){super.__initialize(properties);this.__handleCharacterCounter();this.__handleHelperLine();this.__handleHelperText();this.__handleInput();this.__handleLeadingIcon();this.__handleTextField();this.__handleTrailingIcon();this.defer(()=>{const required=this.__internals.dom.input.is('[required]');if(required){this.__internals.dom.input.removeAttr('required');this.__internals.dom.input.attr('required','')}})}__onHtmlReady(){super.__onHtmlReady();const textField=this.__internals.dom.textField.get(0);if(textField){this.__internals.mdcTextField=new mdc.textfield.MDCTextField(textField)}}__onLeadingIconInteraction(){}__onTrailingIconInteraction(){}__handleHasLabelState(){const label=this.__getLabel();let normalizedLabel;if(label instanceof OcNodeText){normalizedLabel=label.node.textContent}else{normalizedLabel=label}this.__internals.states.set(OcMdInputTextBase.__states.HAS_LABEL,normalizedLabel.length>0)}__handleMdcTextField(){this.__deferOnce('__handleMdcTextField',()=>{if(!this.__internals.mdcTextField){return};this.__internals.mdcTextField.value=this.properties.value;this.__internals.mdcTextField.disabled=this.properties.disabled})}__shouldShowHelperText(){const hasDescription=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_DESCRIPTION);return hasDescription}__handleHelperLine(){this.__deferOnce('__handleHelperLine',()=>{let shouldShowHelperText=this.__shouldShowHelperText();if(shouldShowHelperText){const helperText=this.__createHelperText();helperText.base.appendTo(this.__internals.dom.helperLine);this.defer(()=>{helperText.base.attr("aria-hidden","true")})}else{this.__internals.helperText?.base.detach()}const attributes={};attributes['aria-controls']={condition:shouldShowHelperText,value:`${this.refID}--helper-text`};attributes['aria-describedby']={condition:shouldShowHelperText,value:`${this.refID}--helper-text`};OcHtml.setAttributesIfTrue(this.__internals.dom.input,attributes);const hasMaxLength=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_MAX_LENGTH);if(hasMaxLength){const characterCounter=this.__createCharacterCounter();characterCounter.base.appendTo(this.__internals.dom.helperLine)}else{this.__internals.characterCounter?.base.detach()}})}__handleHelperText(){this.__deferOnce('__handleHelperText',()=>{const helperText=this.__createHelperText();helperText.text=this.properties.description})}__handleCharacterCounter(){this.__deferOnce('__handleCharacterCounter',()=>{const counter=this.__createCharacterCounter();const maxlength=this.__getMaxlength();const maxLength=Number(maxlength)||0;this.__internals.states.set(OcMdInputTextBase.__states.HAS_MAX_LENGTH,maxLength>0);counter.maxCharacterCount=Number(maxlength)||0;counter.currentCharacterCount=String(this.__internals.dom.input.val()).length||0})}__handleTextField(){this.__deferOnce('__handleTextField',()=>{const node=this.__internals.dom.textField;const hasLabel=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_LABEL);OcHtml.setClassIfTrue(!hasLabel,node,'mdc-text-field--no-label')})}__handleInput(){this.__deferOnce('__handleInput',()=>{const node=this.__internals.dom.input;const attributes={};const hasLabel=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_LABEL);attributes['aria-labelledby']={condition:hasLabel,value:`${this.refID}--label`};const hasPlaceholder=this.__internals.states.hasState(OcMdInputTextBase.__states.HAS_PLACEHOLDER);const placeholder=this.__getPlaceholder();attributes.placeholder={condition:hasPlaceholder,value:placeholder};const standardBooleanHtmlAttributes=['readonly','required'];for(const attribute of standardBooleanHtmlAttributes){const isSet=this.properties[attribute];attributes[attribute]={condition:Boolean(isSet),value:''}}const specialBooleanHtmlAttributes=['multiple'];for(const attribute of specialBooleanHtmlAttributes){const isSet=this.properties[attribute];attributes[attribute]={condition:Boolean(isSet),value:''}}const standardHtmlAttributes=['autocomplete','dirname','name','form','maxlength','minlength','pattern','size','type','autocapitalize','inputmode'];for(const attribute of standardHtmlAttributes){const value=this.properties[attribute];attributes[attribute]={condition:value!==null,value:String(value)}}const rangeHtmlAttributes=['max','min','step'];for(const attribute of rangeHtmlAttributes){const value=this.properties[attribute];attributes[attribute]={condition:value!==null,value:String(value)}}const listProperty=this.__getList()||'';const numberOfSuggestions=this.__internals.suggestedValues.size;attributes.list={condition:listProperty.length>0||numberOfSuggestions>0,value:listProperty||`${this.refID}--suggestions`};OcHtml.setAttributesIfTrue(node,attributes)})}__handleLeadingIcon(){this.__deferOnce('__handleLeadingIcon',()=>{const icon=this.__internals.leadingIcon?.base.get(0);const isInteractible=this.__internals.states.hasState(OcMdInputTextBase.__states.LEADING_ICON_INTERACTIBLE);if(icon&&isInteractible){if(!this.__internals.leadingIconAria){this.__internals.leadingIconAria=new OcAriaButton(icon,{hidden:null})}}else{this.__internals.leadingIconAria?.destroy();delete this.__internals.leadingIconAria};if(this.__internals.leadingIconAria){const leadingIconLabel=this.__getLeadingIconLabel();this.__internals.leadingIconAria.label=leadingIconLabel}})}__handleTrailingIcon(){this.__deferOnce('__handleTrailingIcon',()=>{const icon=this.__internals.trailingIcon?.base.get(0);const isInteractible=this.__internals.states.hasState(OcMdInputTextBase.__states.TRAILING_ICON_INTERACTIBLE);if(icon&&isInteractible){if(!this.__internals.trailingIconAria){this.__internals.trailingIconAria=new OcAriaButton(icon,{hidden:null})}}else{this.__internals.trailingIconAria?.destroy();delete this.__internals.trailingIconAria};if(this.__internals.trailingIconAria){const trailingIconLabel=this.__getTrailingIconLabel();this.__internals.trailingIconAria.label=trailingIconLabel}})}__recreateLeadingIcon(){const leadingIconHadFocus=this.__internals.leadingIcon&&(OcHtml.getFocusedElement()==this.__internals.leadingIcon?.base.get(0));this.__deferOnce('__recreateLeadingIcon',()=>{if(this.__internals.leadingIcon){this.__internals.leadingIconAria?.destroy();delete this.__internals.leadingIconAria;this.__internals.leadingIcon.destroy();delete this.__internals.leadingIcon;this.__internals.dom.textField.removeClass('mdc-text-field--with-leading-icon')};if(this.properties.leadingIcon){const icon=OcUiFonticon(this.properties.leadingIcon);this.__internals.leadingIcon=icon;icon.base.addClass('mdc-text-field__icon mdc-text-field__icon--leading').insertBefore(this.__internals.dom.input);this.__internals.dom.textField.addClass('mdc-text-field--with-leading-icon');this.__initEvents__leadingIcon(this.__internals.leadingIcon);this.__handleLeadingIcon();this.defer(()=>{this.defer(()=>{if(leadingIconHadFocus){icon.base.trigger('focus')}})})}})}__recreateTrailingIcon(){this.__deferOnce('__recreateTrailingIcon',()=>{const trailingIconHadFocus=this.__internals.trailingIcon&&(OcHtml.getFocusedElement()==this.__internals.trailingIcon?.base.get(0));if(this.__internals.trailingIcon){this.__internals.trailingIconAria?.destroy();delete this.__internals.trailingIconAria;this.__internals.trailingIcon.destroy();delete this.__internals.trailingIcon;this.__internals.dom.textField.removeClass('mdc-text-field--with-trailing-icon')};if(this.properties.trailingIcon){const icon=OcUiFonticon(this.properties.trailingIcon);this.__internals.trailingIcon=icon;icon.base.addClass('mdc-text-field__icon mdc-text-field__icon--trailing').insertAfter(this.__internals.dom.input);this.__internals.dom.textField.addClass('mdc-text-field--with-trailing-icon');this.__initEvents__trailingIcon(this.__internals.trailingIcon);this.__handleTrailingIcon();this.defer(()=>{this.defer(()=>{if(trailingIconHadFocus){icon.base.trigger('focus')}})})}})}__createHelperText(){if(this.__internals.helperText){return this.__internals.helperText};this.__internals.helperText=new OcMdInputHelperText();this.__internals.helperText.base.attr('id',`${this.refID}
1--helper-text`);this.__handleHelperText();return this.__internals.helperText}__createCharacterCounter(){if(this.__internals.characterCounter){return this.__internals.characterCounter};this.__internals.characterCounter=new OcMdInputHelperCounter();this.__internals.characterCounter.base.attr('id',`${this.refID}--character-counter`);this.__handleCharacterCounter();return this.__internals.characterCounter}setAttributes(attributes){this.properties.attributes=attributes;const toNumberOrNull=function(value){if(value===null){return value};return Number(value)};const toBooleanOrNull=function(value){if(value===null){return value};return Boolean(value)};for(var key in attributes){const value=attributes[key];OLEFA.log.deprecated('DEPRECATED: Use the property directly instead of setting it via attributes');switch(key){case'value':this.__setValue(value);break;case'name':if(value){this.__setName(value)}break;case'list':if(typeof value!='undefined'){this.__setList(value)}break;case'max':if(typeof value!='undefined'){this.__setMax(value)}break;case'maxlength':if(typeof value!='undefined'){this.__setMaxlength(toNumberOrNull(value))}break;case'min':if(typeof value!='undefined'){this.__setMin(value)}break;case'minlength':if(typeof value!='undefined'){this.__setMinlength(toNumberOrNull(value))}break;case'multiple':if(typeof value!='undefined'){this.__setMultiple(toBooleanOrNull(value))}break;case'pattern':if(typeof value!='undefined'){this.__setPattern(value)}break;case'readonly':if(typeof value!='undefined'){this.__setReadonly(toBooleanOrNull(value))}break;case'required':if(typeof value!='undefined'){this.__setRequired(toBooleanOrNull(value))}break;case'size':if(typeof value!='undefined'){this.__setSize(toNumberOrNull(value))}break;case'step':if(typeof value!='undefined'){this.__setStep(value)}break;case'autocomplete':if(OcArray.has(OcMdInputTextBase.__autocompleteValues,value)){this.__setAutocomplete(value)}break;default:if(typeof(value)=='undefined'||value===null){this.__internals.dom.input.removeAttr(key)}else{this.__internals.dom.input.attr(key,value)};break}}}__trigger__change(eventData){const event=new OcEvent({eventName:'change',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__input(eventData){const event=new OcEvent({eventName:'input',data:eventData});this.__internals.events.triggerEvent(event)}addSuggestedValue(value){this.__internals.suggestedValues.add(value)}removeSuggestedValue(value){this.__internals.suggestedValues.delete(value)}reset(){this.value="";this.defer(()=>{const textfield=this.__internals.mdcTextField;if(textfield){textfield.valid=true}})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',placeholder:'',value:'',name:null,description:'',disabled:false,prefix:'',suffix:'',leadingIcon:'',leadingIconInteractible:false,leadingIconLabel:null,trailingIcon:'',trailingIconInteractible:false,trailingIconLabel:null,suggestedValues:[],autocomplete:null,dirname:null,form:null,list:null,max:null,maxlength:null,min:null,minlength:null,multiple:null,pattern:null,readonly:null,required:null,size:null,step:null,type:'text',autocapitalize:null,inputmode:null,attributes:{}}}}}OcMdInputTextBase.__states={...OcMdComponent.__states,HAS_DESCRIPTION:'has-description',HAS_MAX_LENGTH:'has-max-length',HAS_PREFIX:'has-prefix',HAS_SUFFIX:'has-suffix',HAS_CONTENT:'has-content',HAS_FOCUS:'has-focus',HAS_LABEL:'has-label',HAS_PLACEHOLDER:'has-placeholder',LABEL_FLOATING:'label-floating',LEADING_ICON_INTERACTIBLE:'leading-icon-interactible',TRAILING_ICON_INTERACTIBLE:'trailing-icon-interactible'};OcMdInputTextBase.__autocompleteValues=['off','on','name','honorific-prefix','given-name','additional-name','family-name','honorific-suffix','nickname','email','username','new-password','current-password','one-time-code','organization-title','organization','street-address','address-line1','address-line2','address-line3','address-level4','address-level3','address-level2','address-level1','country','country-name','postal-code','cc-name','cc-given-name','cc-additional-nane','cc-family-name','cc-number','cc-exp','cc-exp-month','cc-exp-year','cc-csc','cc-type','transaction-currency','transaction-amount','language','bday','bday-day','bday-month','bday-year','sex','tel','tel-country-code','tel-national','tel-area-code','tel-local','tel-extension','impp','url','photo','webauthn'];
1OcMdInputTextBase.__typeValues=['color','date','datetime-local','email','month','number','password','search','tel','text','time','url','week'];Oc.OcMdInputTextBase=OcMdInputTextBase;"use strict";class OcMdInputTextFilled extends OcMdInputTextBase{constructor(properties){super(properties)}defaults(){return OcMdInputTextFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)}if(ev.value instanceof OcNodeText){ev.value.events.listen('render',()=>{this.__handleLabelElement()},this.refID)}this.__handleLabelElement();break;default:break}}__initElements(){super.__initElements();const cssBase='oc-md-input-text-filled';this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'span',class:`${cssBase}__ripple mdc-text-field__ripple`},lineRipple:{tag:'span',class:`${cssBase}__line-ripple mdc-line-ripple`},label:{component:OcMdFloatinglabel,class:`${cssBase}__label`,properties:{disableMdc:true}},},this.__internals.dom.textField));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.textField.addClass('mdc-text-field--filled');this.__internals.elements.label.base.insertAfter(this.__internals.dom.ripple);this.__internals.dom.input.insertBefore(this.__internals.dom.lineRipple);this.__internals.elements.label.base.attr({'id':`${this.refID}--label`})},true))}__initialize(properties){super.__initialize(properties)}__handleLabelElement(){const element=this.__internals.elements.label;const label=this.__getLabel();let normalizedLabel;if(label instanceof OcNodeText){normalizedLabel=label.node.textContent}else{normalizedLabel=label}element.text=normalizedLabel}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdInputTextFilled=OcMdInputTextFilled;"use strict";class OcMdInputTextSuggestions extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdInputTextSuggestions.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},name:{get:this.__getName.bind(this),set:this.__setName.bind(this)},inputDelimiter:{get:this.__getInputDelimiter.bind(this),set:this.__setInputDelimiter.bind(this)},allowCustomOption:{get:this.__getAllowCustomOption.bind(this),set:this.__setAllowCustomOption.bind(this)},required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},options:{get:this.__getOptions.bind(this)},selection:{get:this.__getSelection.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__internals.states.set(OcMdInputTextSuggestions.__states.HAS_LABEL,this.properties.label.length>0)}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__internals.states.set(OcMdInputTextSuggestions.__states.DISABLED,this.properties.disabled)}__getName(){return this.properties.name}__setName(value){this.properties.name=value;this.__updateFormInputNode()}__getInputDelimiter(){return this.properties.inputDelimiter}__setInputDelimiter(value){this.properties.inputDelimiter=value;this.__updateFormInputValue()}__getAllowCustomOption(){return this.properties.allowCustomOption}__setAllowCustomOption(value){this.properties.allowCustomOption=value;this.__updateInputValidity()}__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__updateFormInputNode();this.__updateInputValidity()}__getOptions(){return this.__internals.options}__getSelection(){return Array.from(this.__internals.selectedOptions.values())}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.options={};this.__internals.visibleOptions=new Set();this.__internals.selectedOptions=new OcSet();this.__internals.promises={cssMdInputTextSuggestions:OLEFA.css.getIfNotLoaded('md/input/text/suggestions.css','--loaded--md-input-text-suggestions')};this.__internals.inputInvalidReason=null;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.name=this.__setName;this.propertyHandlers.inputDelimiter=this.__setInputDelimiter;this.propertyHandlers.allowCustomOption=this.__setAllowCustomOption;this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.options=this.addOption}__initialize(properties){super.__initialize(properties);this.__updateTextfieldNode();this.__updateFormInputNode();this.__updateFormInputValue();this.__updateInputNode();this.__updateInputValidity()}__initElements(){super.__initElements();if(this.__internals.dom.base.length>0){this.__internals.dom.formInput=this.__internals.dom.base}else{this.__internals.initElementsJobs.push(this.__createDOMNodes({formInput:{tag:'input'}}))};const cssBase='oc-md-input-text-suggestions';this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div',class:`${cssBase}`,children:{textfield:{tag:'label',class:`${cssBase}__text-field mdc-text-field mdc-text-field--label-floating`},inputWrapper:{tag:'div',class:`${cssBase}__input-wrapper`,children:{input:{tag:'input',class:`${cssBase}__input mdc-text-field__input`,attributes:{autocomplete:'off',spellcheck:'false',autocorrect:'off'}},selectedValues:{component:OcMdChipsetInput,class:`${cssBase}__selected-values`}}},menu:{component:OcMdMenuList,class:`${cssBase}__menu`,properties:{focusOnOpen:'none'}}}}}));this.__internals.elements.menu.anchorNode=this.__internals.dom.input;this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.formInput.addClass(`${cssBase}__form-input`).attr('tabindex','-1')},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputTextSuggestions.__states.DISABLED,onChange:this.__onStateChange__disabled.bind(this)}).define({state:OcMdInputTextSuggestions.__states.HAS_LABEL,onChange:this.__onStateChange__hasLabel.bind(this)}).define({state:OcMdInputTextSuggestions.__states.INVALID_INPUT,onChange:this.__onStateChange__invalidInput.bind(this)})}__onStateChange__disabled(){this.__updateInputNode();this.__updateFormInputNode()}__onStateChange__hasLabel(){this.__updateTextfieldNode()}
1__onStateChange__invalidInput(){const isInvalidInput=this.__internals.states.hasState(OcMdInputTextSuggestions.__states.INVALID_INPUT);if(this.__internals.mdcTextField){this.__internals.mdcTextField.valid=isInvalidInput}const node=this.__internals.dom.formInput.get(0);if(node){if(isInvalidInput){if(this.__internals.inputInvalidReason==OcMdInputTextSuggestions.__inputConstraints.INVALID_OPTION){const invalidMessage=OLEFA.i18n.get('input_suggestions_custom_options_not_allowed');node.setCustomValidity(invalidMessage)}else{node.setCustomValidity('')}}else{node.setCustomValidity('')};node.reportValidity()}}__initEvents(){super.__initEvents();this.__internals.dom.input.on(`change.${this.refID}`,this.__onInput__change.bind(this)).on(`focus.${this.refID}`,this.__onInput__focus.bind(this)).on(`input.${this.refID}`,this.__onInput__input.bind(this)).on(`blur.${this.refID}`,this.__onInput__blur.bind(this)).on(`keydown.${this.refID}`,this.__onInput__keydown.bind(this));this.__internals.elements.menu.base.on(`click.${this.refID}`,this.__onMenu__base__click.bind(this));this.__internals.elements.menu.events.listen('select',this.__onMenu__select.bind(this),this.refID);this.__internals.selectedOptions.events.listen('size-changed',this.__onSelectedOptions__sizeChanged.bind(this),this.refID);this.__internals.elements.selectedValues.events.listen('chip-add',this.__onSelectedValues__chipAdd.bind(this),this.refID).listen('chip-remove',this.__onSelectedValues__chipRemove.bind(this),this.refID);this.__internals.elements.selectedValues.base.on(`click.${this.refID}`,this.__onSelectedValues__dom__click.bind(this))}__onBase__click(ev){super.__onBase__click(ev);this.__internals.dom.input.trigger('focus')}__onInput__change(){this.__deferOnce('call__showAutocomplete',()=>{this.showAutocomplete()})}__onInput__focus(){this.__deferOnce('call__showAutocomplete',()=>{this.showAutocomplete()})}__onInput__input(){this.__deferOnce('call__showAutocomplete',()=>{this.showAutocomplete()})}__onInput__blur(){this.defer(()=>{this.__internals.dom.textfield.addClass('mdc-text-field--label-floating')})}__onInput__keydown(event){switch(event.key){case OcAria.keys.ARROW_DOWN:this.__onInput__arrowDown();break;case OcAria.keys.ENTER:this.__onInput__enter();break;case OcAria.keys.BACKSPACE:this.__onInput__backspace();break;default:break}}__onInput__arrowDown(){this.__internals.elements.menu.base.find('.oc-md-listlitem-singleline-selectable:visible').first().trigger('focus')}__onInput__enter(){const value=String(this.__internals.dom.input.val());const accepted=this.select(value);if(accepted){this.__handleInputOnSelection('clear')}}__onInput__backspace(){const inputIsEmpty=String(this.__internals.dom.input.val()).length==0;if(!inputIsEmpty){return}const lastVisibleOption=this.__internals.elements.selectedValues.base.find('.oc-md-chip:visible').last();const chip=Oc.getInstanceFromElement(lastVisibleOption);if(!(chip instanceof OcMdChip)){return}this.deselect(chip.value)}__onMenu__base__click(event){event.stopPropagation()}__onMenu__select(event){this.select(event.data.value);this.__handleInputOnSelection('select')}__onSelectedOptions__sizeChanged(){this.__updateInputValidity();this.__onSelectionChange()}__onSelectedValues__chipAdd(event){this.__select(event.data.chip.value)}__onSelectedValues__chipRemove(event){this.__deselect(event.data.chip.value)}__onSelectedValues__dom__click(ev){ev.preventDefault();ev.stopPropagation()};__onHtmlReady(){super.__onHtmlReady();const node=this.__internals.dom.textfield.get(0);if(node){this.__internals.mdcTextField=new mdc.textfield.MDCTextField(node)}}__updateTextfieldNode(){this.__deferOnce('__updateTextfieldNode',()=>{const node=this.__internals.dom.textfield;const hasLabel=this.__internals.states.hasState(OcMdInputTextSuggestions.__states.HAS_LABEL);OcHtml.setClassIfTrue(!hasLabel,node,'mdc-text-field--no-label')})};__updateInputNode(){this.__deferOnce('__updateInputNode',()=>{const node=this.__internals.dom.input;const disabled=this.__getDisabled();OcHtml.setAttributeIfTrue(disabled,node,'disabled','')})}__updateFormInputNode(){this.__deferOnce('__updateFormInputNode',()=>{const node=this.__internals.dom.formInput;const disabled=this.__getDisabled();OcHtml.setAttributeIfTrue(disabled,node,'disabled','');const name=this.__getName();OcHtml.setAttributeIfTrue(name.length>0,node,'name',name);const required=this.__getRequired();OcHtml.setAttributeIfTrue(required,node,'required','')})}__updateFormInputValue(){const values=Array.from(this.__internals.selectedOptions.values());const delimiter=this.__getInputDelimiter();this.__internals.dom.formInput.attr('value',values.join(delimiter))}__updateInputValidity(){const condition_required=this.__getRequired();const condition_hasSelectedOptions=this.__internals.selectedOptions.size>0;if(condition_required&&!condition_hasSelectedOptions){this.__internals.states.add(OcMdInputTextSuggestions.__states.INVALID_INPUT);this.__internals.inputInvalidReason=OcMdInputTextSuggestions.__inputConstraints.REQUIRED;return};const condition_allowCustomOptions=this.__getAllowCustomOption();if(!condition_allowCustomOptions){const suggestionValues=Object.values(this.__internals.options).map(option=>option.value);const selectedValues=Array.from(this.__internals.selectedOptions.values());const condition_hasCustomOptions=selectedValues.some(selectedValue=>!OcArray.has(suggestionValues,selectedValue));if(condition_hasCustomOptions){this.__internals.inputInvalidReason=OcMdInputTextSuggestions.__inputConstraints.INVALID_OPTION;this.__internals.states.add(OcMdInputTextSuggestions.__states.INVALID_INPUT);return}}this.__internals.inputInvalidReason=null;this.__internals.states.remove(OcMdInputTextSuggestions.__states.INVALID_INPUT)}__handleInputOnSelection(behavior){if(behavior=='clear'){this.__internals.dom.input.val('')};this.__internals.dom.input.trigger('input').trigger('focus');if(behavior=='select'){this.__internals.dom.input.trigger('select')}}__onSelectionChange(){this.__updateFormInputValue();this.__filterOptions();this.__updateInputValidity();this.__trigger__change({input:this,value:Array.from(this.__internals.selectedOptions.values())})}__filterOptions(){this.__deferOnce('__filterOptions',()=>{const searchStrings=String(this.__internals.dom.input.val()).split(' ');const validOptions=Object.values(this.__internals.options).filter(option=>{const isSelected=this.__internals.selectedOptions.has(option.value);const matchesSearch=this.__matchesSearchString(searchStrings,[option.value,option.label].join(' '));return(!isSelected&&matchesSearch)}).map(option=>option.refID);const updateOptionVisibility=(refId,visible)=>{const option=this.getOption(refId);if(option){option.visible=visible}};OcArray.forEachChange(Array.from(this.__internals.visibleOptions),validOptions,{onAddition:refId=>{updateOptionVisibility(refId,true)},onRemoval:refId=>{updateOptionVisibility(refId,false)}});this.__internals.visibleOptions=new Set(validOptions)})}__matchesSearchString(searchFor,searchIn){if(!OcDatatype.is('array',searchFor)||!OcDatatype.is('str
1ing',searchIn)){return false};searchIn=searchIn.toLowerCase();for(var index in searchFor){if(!searchIn.includes(searchFor[index].toLowerCase())){return false}};return true};__select(value){this.__internals.selectedOptions.add(value);this.__onSelectionChange()}__deselect(value){this.__internals.selectedOptions.delete(value);this.__onSelectionChange()}addOption(option){if(this.__internals.options[option.refID]){OLEFA.log.info('Duplicate option');return};this.__internals.options[option.refID]=option;this.__internals.elements.menu.list.addItem(option);const inputHasFocus=OcHtml.hasFocus(this.__internals.dom.input);if(inputHasFocus){this.showAutocomplete()};this.__updateInputValidity()}getOption(refId){const option=this.__internals.options[refId];if(!option){return undefined};return option}removeOption(refId){if(!this.__internals.options[this.refID]){OLEFA.log.info('Option does not exist');return};this.__internals.elements.menu.list.removeItem(this.__internals.options[refId].refID);delete this.__internals.options[refId];this.__filterOptions();this.__updateInputValidity()}showAutocomplete(){this.__filterOptions();const hasVisibleOptions=Object.values(this.__internals.options).some(listItem=>listItem.visible);if(!hasVisibleOptions){return}const inputHeight=this.__internals.dom.base.height()||0;this.__internals.elements.menu.openAbsolute(0,inputHeight)}select(value){if(this.__internals.selectedOptions.has(value)){return false};const optionFromSuggestions=Object.values(this.__internals.options).find(listItem=>listItem.value==value);const allowCustomOption=this.__getAllowCustomOption();if(!allowCustomOption&&!optionFromSuggestions){return false};const label=(optionFromSuggestions)?optionFromSuggestions.label.toString():value;const chip=new OcMdChipInput({label:label,value:value,accentColor:optionFromSuggestions?.accentColor});this.__internals.elements.selectedValues.addChip(chip);this.__select(value);return true}deselect(value){const chip=this.__internals.elements.selectedValues.chips.find(chip=>chip.value==value);if(!chip){return};this.__internals.elements.selectedValues.removeChip(chip.refID);this.__deselect(value)};__trigger__change(eventData){const event=new OcEvent({eventName:'change',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.__internals.options={};super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',disabled:false,name:'',inputDelimiter:',',allowCustomOption:true,required:false,options:[]}}}}OcMdInputTextSuggestions.__states={...OcMdComponent.__states,DISABLED:'disabled',HAS_LABEL:'has-label',INVALID_INPUT:'invalid-input'};OcMdInputTextSuggestions.__inputConstraints={REQUIRED:'required',INVALID_OPTION:'invalid-option'};Oc.OcMdInputTextSuggestions=OcMdInputTextSuggestions;"use strict";class OcMdInputTextSuggestionsFilled extends OcMdInputTextSuggestions{constructor(properties){super(properties)}defaults(){return OcMdInputTextSuggestionsFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setLabel(value){super.__setLabel(value);this.__internals.elements.label.text=this.properties.label}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises.cssMdInputTextSuggestionsFilled=OLEFA.css.getIfNotLoaded('md/input/text/suggestions/filled.css','--loaded--md-input-text-suggestions-filled')}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-input-text-suggestions-filled';this.__internals.initElementsJobs.push(this.__createDOMNodes({label:{component:OcMdFloatinglabel,class:`${cssBase}__label`,properties:{disableMdc:true,float:true}}}));this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'span',class:`${cssBase}__ripple mdc-text-field__ripple`},lineRipple:{tag:'span',class:`${cssBase}__line-ripple mdc-line-ripple`}},this.__internals.dom.textfield));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.textfield.addClass('mdc-text-field--filled');this.__internals.elements.label.base.insertAfter(this.__internals.dom.ripple);this.__internals.dom.inputWrapper.insertBefore(this.__internals.dom.lineRipple);this.__internals.dom.formInput.prependTo(this.__internals.dom.textfield);this.__internals.elements.menu.base.appendTo(this.__internals.dom.base);this.__internals.elements.label.base.attr({'id':`${this.refID}--label`})},true))}__onInput__blur(){super.__onInput__blur();this.__internals.elements.label.float=false;this.__internals.elements.label.float=true}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputTextSuggestionsFilled=OcMdInputTextSuggestionsFilled;"use strict";
1class OcMdInputTextSuggestionsOutlined extends OcMdInputTextSuggestions{constructor(properties){super(properties)}defaults(){return OcMdInputTextSuggestionsOutlined.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setLabel(value){super.__setLabel(value);this.__internals.elements.notchedOutline.text=this.properties.label}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises.cssMdInputTextSuggestionsOutlined=OLEFA.css.getIfNotLoaded('md/input/text/suggestions/filled.css','--loaded--md-input-text-suggestions-outlined')}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-input-text-outlined';this.__internals.initElementsJobs.push(this.__createDOMNodes({notchedOutline:{component:OcMdNotchedOutline,class:`${cssBase}__notched-outline`}},this.__internals.dom.textfield));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.textfield.addClass('mdc-text-field--outlined');this.__internals.dom.inputWrapper.appendTo(this.__internals.dom.textfield);this.__internals.dom.formInput.prependTo(this.__internals.dom.textfield);this.__internals.elements.menu.base.appendTo(this.__internals.dom.base);this.__internals.elements.notchedOutline.labelInstance.base.attr({'id':`${this.refID}--label`})},true))}__onInput__blur(){super.__onInput__blur();this.defer(()=>{this.__internals.elements.notchedOutline.base.addClass('mdc-notched-outline--notched')});this.__internals.elements.notchedOutline.labelInstance.float=false;this.__internals.elements.notchedOutline.labelInstance.float=true}__attachLabelNode(){this.__internals.elements.notchedOutline.setLabel(this.__internals.elements.label.base)}__detachLabelNode(){this.__internals.elements.notchedOutline.unsetLabel()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputTextSuggestionsOutlined=OcMdInputTextSuggestionsOutlined;"use strict";class EmailSpellChecker{constructor(){this.POPULAR_DOMAINS=['msn.com','bellsouth.net','telus.net','comcast.net','optusnet.com.au','earthlink.net','qq.com','sky.com','icloud.com','sympatico.ca','googlemail.com','att.net','xtra.co.nz','web.de','cox.net','gmail.com','ymail.com','aim.com','rogers.com','verizon.net','rocketmail.com','optonline.net','sbcglobal.net','aol.com','aim.com','me.com','mailw.com','btinternet.com','charter.net','shaw.ca','hey.com','proton.me','pm.com','protonmail.com','zoho.com','yandex.com','titan.email',];this.POPULAR_TLDS=['com','com.au','com.tw','co','ca','co.nz','co.uk','de','fr','it','ru','org','edu','gov','jp','nl','kr','se','eu','ie','co.il','us','at','be','dk','hk','es','gr','ch','no','cz','net','net.au','info','biz','mil','co.jp','sg','hu','uk','sk','ar','cf','cl','cn','ga','gq','ir','ml','mx','nu','nz','ph','pl','ro','tk','tw','ua','vg','ws','xn','za','app','au','ai','biz','br','blog','cloud','club','cc','de','dev','digital','fi','finance','id','in','io','me','mobi','network','pw','so','xyz','software','to','tech',];this.DEFAULT_CONFIG={domainThreshold:2,domains:this.POPULAR_DOMAINS,secondLevelThreshold:2,secondLevelDomains:['yahoo','hotmail','mail','live','outlook'],topLevelThreshold:2,topLevelDomains:this.POPULAR_TLDS,distance:this.sift3Distance,};this.MINIUM_EMAIL_PARTS=2}sift3Distance(s1,s2){if(s1==null||s1.length===0){if(s2==null||s2.length===0){return 0}else{return s2.length}}if(s2==null||s2.length===0){return s1.length}let c=0;let offset1=0;let offset2=0;let lcs=0;const maxOffset=5;while(c+offset1<s1.length&&c+offset2<s2.length){if(s1.charAt(c+offset1)==s2.charAt(c+offset2)){lcs++}else{offset1=0;offset2=0;for(let i=0;i<maxOffset;i++){if(c+i<s1.length&&s1.charAt(c+i)==s2.charAt(c)){offset1=i;break}if(c+i<s2.length&&s1.charAt(c)==s2.charAt(c+i)){offset2=i;break}}}c++}return(s1.length+s2.length)/2-lcs}run(userOptions){const options=this.getOptions(userOptions);this.assertValidUserOptions(options||{});const email=this.suggestEmail(options);if(!email&&userOptions.empty){userOptions.empty()}if(email&&userOptions.suggested){userOptions.suggested(email)}return email}assert(condition,message){if(!condition){throw new Error(message);}}assertValidUserOptions(options){this.assert(Array.isArray(options.domains),'domains must be an array');this.assert(Array.isArray(options.topLevelDomains),'topLevelDomains must be an array');this.assert(Array.isArray(options.secondLevelDomains),'secondLevelDomains must be an array');this.assert(typeof options.distance==='function','distance must be a function')}encodeEmail(email){const result=encodeURI(email).replace(/%20/g,' ').replace(/%25/g,'%').replace(/%5E/g,'^').replace(/%60/g,'`').replace(/%7B/g,'{').replace(/%7C/g,'|').replace(/%7D/g,'}');return result}findClosestDomain(opts){const{domain,domains,distance,threshold}=opts;let dist;let minDist=Infinity;let closestDomain=null;if(!domain||!domains){return undefined}for(let i=0;i<domains.length;i++){if(domain===domains[i]){return domain}dist=distance(domain,domains[i]);if(dist<minDist){minDist=dist;closestDomain=domains[i]}}if(minDist<=threshold&&closestDomain!==null){return closestDomain}else{return undefined}}getOptions(userOptions){return{email:userOptions.email,domains:userOptions.domains||this.DEFAULT_CONFIG.domains,topLevelDomains:userOptions.topLevelDomains||this.DEFAULT_CONFIG.topLevelDomains,secondLevelDomains:userOptions.secondLevelDomains||this.DEFAULT_CONFIG.secondLevelDomains,distance:userOptions.distance||this.DEFAULT_CONFIG.distance,domainThreshold:userOptions.domainThreshold||this.DEFAULT_CONFIG.domainThreshold,secondLevelThreshold:userOptions.secondLevelThreshold||this.DEFAULT_CONFIG.secondLevelThreshold,topLevelThreshold:userOptions.topLevelThreshold||this.DEFAULT_CONFIG.topLevelThreshold,suggested:userOptions.suggested||undefined,empty:userOptions.suggested||undefined,}}parseEmail(emailStr){const email=this.trim(emailStr);const parts=email.split('@');
1if(parts.length<this.MINIUM_EMAIL_PARTS){return false}for(let i=0;i<parts.length;i++){if(parts[i]===''){return false}}let sld='';let tld='';const domain=parts.pop();const domainParts=domain.split('.');if(domainParts.length===0){return false}else if(domainParts.length==1){tld=domainParts[0]}else{sld=domainParts[0];for(let j=1;j<domainParts.length;j++){tld+=domainParts[j]+'.'}tld=tld.substring(0,tld.length-1)}return{topLevelDomain:tld,secondLevelDomain:sld,domain,address:parts.join('@'),}}trim(str){if(str.trim){return str.trim()}return this.right(this.left(str))}left(str){return str.replace(/^\s\s*/,'')}right(str){let i=str.length;while(/\s/.test(str.charAt(--i)));return str.slice(0,i+1)}suggestEmail(opts){const encodedEmail=this.encodeEmail(opts.email.toLowerCase());const email=this.parseEmail(encodedEmail);if(!email){return undefined}const{domains,domainThreshold,distance,secondLevelDomains,topLevelDomains,}=opts;if(secondLevelDomains&&topLevelDomains){if(secondLevelDomains.indexOf(email.secondLevelDomain)!==-1&&topLevelDomains.indexOf(email.topLevelDomain)!==-1){return undefined}}let closestDomain=this.findClosestDomain({domain:email.domain,domains,distance,threshold:domainThreshold,});if(closestDomain){if(closestDomain==email.domain){return undefined}else{return{address:email.address,domain:closestDomain,full:email.address+'@'+closestDomain,}}}const closestSecondLevelDomain=this.findClosestDomain({domain:email.secondLevelDomain,domains:secondLevelDomains,distance,threshold:opts.secondLevelThreshold,});const closestTopLevelDomain=this.findClosestDomain({domain:email.topLevelDomain,domains:topLevelDomains,distance,threshold:opts.topLevelThreshold,});if(email.domain){closestDomain=email.domain;let rtrn=false;if(closestSecondLevelDomain&&closestSecondLevelDomain!=email.secondLevelDomain){closestDomain=closestDomain.replace(email.secondLevelDomain,closestSecondLevelDomain);rtrn=true}if(closestTopLevelDomain&&closestTopLevelDomain!=email.topLevelDomain&&email.secondLevelDomain!==''){closestDomain=closestDomain.replace(new RegExp(email.topLevelDomain+'$'),closestTopLevelDomain);rtrn=true}if(rtrn){return{address:email.address,domain:closestDomain,full:email.address+'@'+closestDomain,}}}return undefined}}Oc.EmailSpellChecker=EmailSpellChecker;"use strict";class OcMdInputTextEmailFilledChecked extends OcMdInputTextFilled{constructor(properties){super(properties)}defaults(){return OcMdInputTextEmailFilledChecked.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,domainConstraints:{get:this.__getDomainConstraints.bind(this)},additionalDomains:{get:this.__getAdditionalDomains.bind(this)}}};__getDomainConstraints(){return this.properties.domainConstraints}__getAdditionalDomains(){return this.properties.additionalDomains}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.mailchecker=new EmailSpellChecker();this.__internals.additionalDomains={};this.__internals.mailPattern=/^[a-zA-Z0-9.!#$%&'*+/=?^_{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/;const blockexample={...OcMdInputTextEmailFilledChecked.domainConstraints.EXAMPLE};this.__internals.promises={langkitGeneral:OLEFA.i18n.load('general.json'),};this.__internals.promises.langkitGeneral.then(()=>{const example_email_text=OLEFA.i18n.get("general-example-email-helper-text");blockexample.message=example_email_text});this.__internals.domainConstraints={};this.__internals.domainConstraints[this.__getDomainConstraintIndex(blockexample)]=blockexample;this.__internals.spellcheckerRunOptions={domains:[],secondLevelDomains:[],topLevelDomains:[]};this.propertyHandlers.additionalDomains=this.addAdditionalDomain;this.propertyHandlers.domainConstraints=this.addDomainConstraint};__initialize(properties){super.__initialize(properties);this.addAdditionalDomain("*.lu");this.addAdditionalDomain("pt.lu");this.addAdditionalDomain("education.lu");this.addAdditionalDomain("365.education.lu");const regexResult=OLEFA.environment.hostname.match(new RegExp("(?:www.|https:\/\/|http:\/\/)*(.{3,})"));if(regexResult&®exResult.length>=2){this.addAdditionalDomain(regexResult[1])}}__initElements(){super.__initElements();this.defer(()=>{this.__internals.dom.base.addClass('oc-md-input-text-emailchecked')})};__onInput__change(e){super.__onInput__change(e);this.__handleOnChange()}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputTextEmailFilledChecked.__states.HAS_ALTERNATIVE_TEXT,onChange:this.__onStateChange__hasAlternativeText.bind(this)})}__onStateChange__hasAlternativeText(){const hasAlternativeText=OcMdInputTextEmailFilledChecked.__states.HAS_ALTERNATIVE_TEXT;this.__handleHelperLine()}async __handleOnChange(){this.__setHelperAlternativeText('');const checkFailed=this.__checkForInvalidEmailAddress();if(!checkFailed){this.__suggestEmail()}}async __suggestEmail(){const input=(this.__internals.dom.input.val()||'').toString().toLowerCase();if(this.__internals.mailPattern.test(input)){this.__deferOnce('__handleOnInput',()=>{const email=this.__internals.mailchecker.run({...this.__internals.spellcheckerRunOptions,email:input});if(email!=undefined){if(input!=email.full){this.__internals.promises.langkitGeneral.then(()=>{const propose=OLEFA.i18n.get("emailSpellChecker-email_suggestion",{'SUGGESTION':email.full});this.__setHelperAlternativeText(propose)})}}else{this.__setHelperAlternativeText("")}})}}__checkForInvalidEmailAddress(){const input=(this.__internals.dom.input.val()||'').toString().toLowerCase();if(input.length){if(!this.__internals.mailPattern.test(input)){const message=OLEFA.i18n.get("invalid_email");this.__internals.dom.input.get(0)?.setCustomValidity(message);this.__setHelperAlternativeText(message,'alert');return true}let res=this.__checkCustomConstraints(input);if(res){const isblocking=res.level=="block";if(!res.message){res.message=OLEFA.i18n.get("invalid_email")};this.__setHelperAlternativeText(res.message,'alert');this.__internals.dom.input.get(0)?.setCustomValidity(isblocking?res.message:"");return true}};this.__setHelperAlternativeText("");this.__internals.dom.input.get(0)?.setCustomValidity("");return false}__checkCustomConstraints(input){let result=null;for(const constraint of Object.values(this.__internals.domainConstraints)){if(input.match(constraint.regex)){result=constraint;if(constraint.level=="block"){return result}}}return result}__setHelperAlternativeText(text,type='status'){const helperText=this.__createHelperText();const condition_alternativeTextIsDifferent=helperText.alternativeText!=text;const condition_hasAlternativeText=text.length>0;helperText.alternativeText=text;this.__internals.states.set(OcMdInputTextEmailFilledChecked.__states.HAS_ALTERNATIVE_TEXT,condition_hasAlternativeText);if(condition_hasAlternativeText&&condition_alternativeTextIsDifferent){OLEFA.snackbar.show({message:text,type:type})}}__shouldShowHelperText(){const hasDescription=this.__internals.states.hasState('has-description');const hasAlternativeText=this.__internals.states.hasState('has-alternative-text');return hasDescription||hasAlternativeText}__interpretAdditionalDomain(domain){let type="domain";
1let value=domain;if(domain.includes("*")){let matches=domain.match(new RegExp("(.*)\\.(.*)$"));if(matches){if(matches[2]=="*"){type="secondLevelDomain";value=matches[1]}else{type="topLevelDomain";value=matches[2]}}}return{name:domain,type:type,value:value}}__updateRunOptions(){this.__deferOnce("__updateRunOptions",()=>{let mailCheckerConfig=this.__internals.mailchecker.DEFAULT_CONFIG;const additionalDomains=Object.values(this.__internals.additionalDomains);this.__internals.spellcheckerRunOptions.topLevelDomains=[...additionalDomains.filter(item=>item.type=="topLevelDomain").map(item=>item.value),...mailCheckerConfig.topLevelDomains];this.__internals.spellcheckerRunOptions.secondLevelDomains=[...additionalDomains.filter(item=>item.type=="secondLevelDomain").map(item=>item.value),...mailCheckerConfig.secondLevelDomains];this.__internals.spellcheckerRunOptions.domains=[...additionalDomains.filter(item=>item.type=="domain").map(item=>item.value),...mailCheckerConfig.domains]})}__getDomainConstraintIndex(domain){return domain.level+":"+domain.regex.toString()}addAdditionalDomain(domain){domain=domain.toLowerCase();if(this.__internals.additionalDomains[domain]){return}let item=this.__interpretAdditionalDomain(domain);this.__internals.additionalDomains[domain]=item;this.__updateRunOptions()}removeAdditionalDomain(domain){domain=domain.toLowerCase();let entry=this.__internals.additionalDomains[domain];if(entry==undefined){return}delete this.__internals.additionalDomains[domain];this.__updateRunOptions()}addDomainConstraint(domain){const index=this.__getDomainConstraintIndex(domain);if(this.__internals.domainConstraints[index]){return}this.__internals.domainConstraints[index]=domain;this.__checkForInvalidEmailAddress()}removeDomainConstraint(domain){const index=this.__getDomainConstraintIndex(domain);let entry=this.__internals.domainConstraints[index];if(entry==undefined){return}delete this.__internals.domainConstraints[index];this.__checkForInvalidEmailAddress()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,leadingIcon:'md:mail',placeholder:"[email protected]",domainConstraints:[],additionalDomains:[],name:'email',type:'email',autocomplete:'email',pattern:/^[a-zA-Z0-9\.!#\$%&'\*\+\/=\?\^_\{\|\}~\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?)+$/.source,autocapitalize:'off'}}}static enhanceForDimmi(input){input.addDomainConstraint({regex:/@(hotmail|icloud|outlook)/,level:"warn",message:OLEFA.i18n.get("general-email-helper-text")});const loc=OLEFA.i18n.get("general_include_location_comment",{'LOCATION':OLEFA.environment.hostname});const school_email_text=OLEFA.i18n.get("general-school-email-helper-text",{'COMMENT':loc});input.addDomainConstraint({...OcMdInputTextEmailFilledChecked.domainConstraints.SCHOOL,message:school_email_text})}}OcMdInputTextEmailFilledChecked.__states={...OcMdInputTextFilled.__states,HAS_ALTERNATIVE_TEXT:'has-alternative-text'};OcMdInputTextEmailFilledChecked.domainConstraints={SCHOOL:{regex:/.*@school\.lu/,level:"block"},EXAMPLE:{regex:/.*@example\.com/,level:"block"}};(function(OcMdInputTextEmailFilledChecked){;})(OcMdInputTextEmailFilledChecked||(OcMdInputTextEmailFilledChecked={}));Oc.OcMdInputTextEmailFilledChecked=OcMdInputTextEmailFilledChecked;"use strict";class OcMdInputTextPasswordFilled extends OcMdInputTextFilled{defaults(){return OcMdInputTextPasswordFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,trailingIcon:{get:this.__getTrailingIcon.bind(this)},trailingIconInteractible:{get:this.__getTrailingIconInteractible.bind(this)},}};__buildInstanceStructure(){super.__buildInstanceStructure();delete this.propertyHandlers.trailingIcon;delete this.propertyHandlers.trailingIconInteractible};__initialize(properties){super.__initialize(properties);this.__setTrailingIcon('md:visibility_off');this.__setTrailingIconInteractible(true)}__initElements(){super.__initElements();this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass('oc-md-input-text-passwordfilled')},true))};__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputTextPasswordFilled.__states.PASSWORD_VISIBLE,onChange:this.__onStateChange__passwordVisible.bind(this)})};__onStateChange__passwordVisible(){const isPasswordVisible=this.__internals.states.hasState(OcMdInputTextPasswordFilled.__states.PASSWORD_VISIBLE);const inputType=isPasswordVisible?"text":"password";this.__setType(inputType);const icon=isPasswordVisible?'md:visibility':'md:visibility_off';this.__setTrailingIcon(icon)}__handleTrailingIconAria(){this.__deferOnce('__handleTrailingIconAria',()=>{if(this.__internals.trailingIconAria){const isPasswordVisible=this.__internals.states.hasState(OcMdInputTextPasswordFilled.__states.PASSWORD_VISIBLE);const pressedValue=isPasswordVisible?'true':'false';this.__internals.trailingIconAria.pressed=pressedValue;this.__internals.trailingIconAria.label=OLEFA.i18n.get('show_password')}})}__recreateTrailingIcon(){super.__recreateTrailingIcon();this.__deferOnce('__recreateTrailingIcon__passwordFilled',()=>{this.__handleTrailingIconAria()})}__onTrailingIconInteraction(){super.__onTrailingIconInteraction();const isPasswordVisible=this.__internals.states.hasState(OcMdInputTextPasswordFilled.__states.PASSWORD_VISIBLE);this.__internals.states.set(OcMdInputTextPasswordFilled.__states.PASSWORD_VISIBLE,!isPasswordVisible)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,leadingIcon:'md:password',trailingIcon:'md:visibility_off',trailingIconInteractible:true,name:'password',type:'password',autocomplete:'current-password',required:true,autocapitalize:'off'}}}}OcMdInputTextPasswordFilled.__states={...OcMdInputTextFilled.__states,PASSWORD_VISIBLE:'password-visible'};(function(OcMdInputTextPasswordFilled){})(OcMdInputTextPasswordFilled||(OcMdInputTextPasswordFilled={}));Oc.OcMdInputTextPasswordFilled=OcMdInputTextPasswordFilled;"use strict";
1class OcMdInputTextOutlined extends OcMdInputTextBase{constructor(properties){super(properties)}defaults(){return OcMdInputTextOutlined.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)}if(ev.value instanceof OcNodeText){ev.value.events.listen('render',()=>{this.__handleNotchedOutlineElement()},this.refID)}this.__handleNotchedOutlineElement();break;default:break}}__initElements(){super.__initElements();const cssBase='oc-md-input-text-outlined';this.__internals.initElementsJobs.push(this.__createDOMNodes({notchedOutline:{component:OcMdNotchedOutline,class:`${cssBase}__notched-outline`}},this.__internals.dom.textField));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.textField.addClass('mdc-text-field--outlined');this.__internals.dom.input.appendTo(this.__internals.dom.textField);this.__internals.elements.notchedOutline.labelInstance.base.attr({'id':`${this.refID}--label`})},true))}__initialize(properties){super.__initialize(properties)}__handleNotchedOutlineElement(){const element=this.__internals.elements.notchedOutline;const label=this.__getLabel();let normalizedLabel;if(label instanceof OcNodeText){normalizedLabel=label.node.textContent}else{normalizedLabel=label}element.text=normalizedLabel}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdInputTextOutlined=OcMdInputTextOutlined;"use strict";class OcMdInputTextOLEFAUsernameFilled extends OcMdInputTextFilled{constructor(properties){super(properties)}defaults(){return OcMdInputTextOLEFAUsernameFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.usernamePattern=/^\w+(@[\w\-]+)?$/;this.__internals.promises={langkitGeneral:OLEFA.i18n.load('general.json'),};this.__internals.promises.langkitGeneral.then(()=>{const notAnEmail=OLEFA.i18n.get("username_input_helper")})};__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();this.defer(()=>{this.__internals.dom.base.addClass('oc-md-input-text-olefausername')})};__onInput__change(e){super.__onInput__change(e);this.__handleOnChange()}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputTextOLEFAUsernameFilled.__states.HAS_ALTERNATIVE_TEXT,onChange:this.__onStateChange__hasAlternativeText.bind(this)})}__onStateChange__hasAlternativeText(){const hasAlternativeText=OcMdInputTextOLEFAUsernameFilled.__states.HAS_ALTERNATIVE_TEXT;this.__handleHelperLine()}async __handleOnChange(){this.__setHelperAlternativeText('');this.__checkForEmailAddress()}__checkForEmailAddress(){const input=(this.__internals.dom.input.val()||'').toString().toLowerCase();if(input.length){if(!this.__internals.usernamePattern.test(input)){const message=OLEFA.i18n.get("username_input_helper");this.__internals.dom.input.get(0)?.setCustomValidity(message);this.__setHelperAlternativeText(message,'alert');return true}};this.__setHelperAlternativeText("");this.__internals.dom.input.get(0)?.setCustomValidity("");return false}__setHelperAlternativeText(text,type='status'){const helperText=this.__createHelperText();const condition_alternativeTextIsDifferent=helperText.alternativeText!=text;const condition_hasAlternativeText=text.length>0;helperText.alternativeText=text;this.__internals.states.set(OcMdInputTextOLEFAUsernameFilled.__states.HAS_ALTERNATIVE_TEXT,condition_hasAlternativeText);if(condition_hasAlternativeText&&condition_alternativeTextIsDifferent){OLEFA.snackbar.show({message:text,type:type})}}__shouldShowHelperText(){const hasDescription=this.__internals.states.hasState('has-description');const hasAlternativeText=this.__internals.states.hasState('has-alternative-text');return hasDescription||hasAlternativeText}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,placeholder:"user@group",name:'username',type:'text',autocomplete:'username',pattern:/^\w+(@[\w\-]+)?$/.source,autocapitalize:'off'}}}}OcMdInputTextOLEFAUsernameFilled.__states={...OcMdInputTextFilled.__states,HAS_ALTERNATIVE_TEXT:'has-alternative-text'};(function(OcMdInputTextOLEFAUsernameFilled){;})(OcMdInputTextOLEFAUsernameFilled||(OcMdInputTextOLEFAUsernameFilled={}));Oc.OcMdInputTextOLEFAUsernameFilled=OcMdInputTextOLEFAUsernameFilled;"use strict";
1class OcMdInputTextOLEFApasswordFilled extends OcMdInputTextPasswordFilled{constructor(properties){super(properties)}defaults(){return OcMdInputTextOLEFApasswordFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.passwordPattern=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*[<>&\s]).{5,}$/;this.__internals.promises={langkitGeneral:OLEFA.i18n.load('general.json'),};this.__internals.promises.langkitGeneral.then(()=>{const notAnEmail=OLEFA.i18n.get("password_pattern")})};__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();this.defer(()=>{this.__internals.dom.base.addClass('oc-md-input-text-olefapassword')})};__onInput__change(e){super.__onInput__change(e);this.__handleOnChange()}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdInputTextOLEFApasswordFilled.__states.HAS_ALTERNATIVE_TEXT,onChange:this.__onStateChange__hasAlternativeText.bind(this)})}__onStateChange__hasAlternativeText(){const hasAlternativeText=OcMdInputTextOLEFApasswordFilled.__states.HAS_ALTERNATIVE_TEXT;this.__handleHelperLine()}async __handleOnChange(){this.__setHelperAlternativeText('');this.__checkForPasswordSyntax()}__checkForPasswordSyntax(){const input=(this.__internals.dom.input.val()||'').toString();if(input.length){if(!this.__internals.passwordPattern.test(input)){const message=OLEFA.i18n.get("password_pattern");this.__internals.dom.input.get(0)?.setCustomValidity(message);this.__setHelperAlternativeText(message,'alert');return true}};this.__setHelperAlternativeText("");this.__internals.dom.input.get(0)?.setCustomValidity("");return false}__setHelperAlternativeText(text,type='status'){const helperText=this.__createHelperText();const condition_alternativeTextIsDifferent=helperText.alternativeText!=text;const condition_hasAlternativeText=text.length>0;helperText.alternativeText=text;this.__internals.states.set(OcMdInputTextOLEFApasswordFilled.__states.HAS_ALTERNATIVE_TEXT,condition_hasAlternativeText);if(condition_hasAlternativeText&&condition_alternativeTextIsDifferent){OLEFA.snackbar.show({message:text,type:type})}}__shouldShowHelperText(){const hasDescription=this.__internals.states.hasState('has-description');const hasAlternativeText=this.__internals.states.hasState('has-alternative-text');return hasDescription||hasAlternativeText}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,type:'password',pattern:/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*[<>&\s]).{5,}$/.source}}}}OcMdInputTextOLEFApasswordFilled.__states={...OcMdInputTextPasswordFilled.__states,HAS_ALTERNATIVE_TEXT:'has-alternative-text'};(function(OcMdInputTextOLEFApasswordFilled){;})(OcMdInputTextOLEFApasswordFilled||(OcMdInputTextOLEFApasswordFilled={}));Oc.OcMdInputTextOLEFApasswordFilled=OcMdInputTextOLEFApasswordFilled;"use strict";class OcMdInputColor extends OcMdInputTextBase{constructor(properties){super(properties)}defaults(){return OcMdInputColor.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,value:{get:this.__getValue.bind(this)},}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdInputColor:OLEFA.css.getIfNotLoaded('md/input/color.css','--loaded--md-input-color')};delete this.propertyHandlers.value}__initialize(properties){super.__initialize(properties);this.__setType('color')}__initElements(){super.__initElements();const cssBase='oc-md-input-color';this.__internals.initElementsJobs.push(this.__createDOMNodes({colorInputUi:{component:this.__getColorInputUi(),class:`${cssBase}__color-input-ui`}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}__initEvents(){super.__initEvents();this.__internals.dom.textField.on(`click.${this.refID}`,this.__onTextfield__click.bind(this))}__onTextfield__click(ev){if(ev.target.nodeName!=="INPUT"){ev.preventDefault()}}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,type:'color',value:'rgb(0,0,0)',}}}}Oc.OcMdInputColor=OcMdInputColor;"use strict";
1class OcMdInputColorInputsRgb extends OcUi{constructor(properties){super(properties)}defaults(){return OcMdInputColorInputsRgb.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,red:{get:this.__getRed.bind(this),set:this.__setRed.bind(this)},green:{get:this.__getGreen.bind(this),set:this.__setGreen.bind(this)},blue:{get:this.__getBlue.bind(this),set:this.__setBlue.bind(this)},list:{get:this.__getList.bind(this),set:this.__setList.bind(this)}}}__getRed(){return this.properties.red}__setRed(value){if(this.properties.red===value){return}this.properties.red=this.__toValidColorValue(value);this.__onChangeViaProperty()}__getGreen(){return this.properties.green}__setGreen(value){if(this.properties.green===value){return}this.properties.green=this.__toValidColorValue(value);this.__onChangeViaProperty()}__getBlue(){return this.properties.blue}__setBlue(value){if(this.properties.blue===value){return}this.properties.blue=this.__toValidColorValue(value);this.__onChangeViaProperty()}__getList(){return this.properties.list}__setList(value){this.properties.list=value;this.__handleColorInput()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdInputColorInputsRgb:OLEFA.css.getIfNotLoaded('md/input/color/inputs/rgb.css','--loaded--md-input-color-inputs-rgb')}}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-input-color-inputs-rgb';this.__createDOMNodes({base:{tag:'div',class:cssBase,children:{colorWrapper:{tag:'div',class:`${cssBase}__color-wrapper`,children:{colorInput:{tag:'input',class:`${cssBase}__color-input`,attributes:{type:'color'}}}}}}});this.defer(()=>{this.__internals.dom.base.addClass(cssBase)})}__initEvents(){super.__initEvents();this.__internals.dom.colorInput.on(`input.${this.refID}`,this.__onColorInput__change.bind(this))}__onColorInput__change(){const value=String(this.__internals.dom.colorInput.val());const rgbValue=OcDatatype.hexToRGB(value);if(!rgbValue){return};this.__setRed(rgbValue.red);this.__setGreen(rgbValue.green);this.__setBlue(rgbValue.blue);this.__onChangeViaInput()}__generateInputValue(){const red=this.__getRed();const green=this.__getGreen();const blue=this.__getBlue();const redHex=OcDatatype.numberToHex(red,2);const greenHex=OcDatatype.numberToHex(green,2);const blueHex=OcDatatype.numberToHex(blue,2);return`#${redHex}${greenHex}${blueHex}`}__handleColorInput(){this.__deferOnce('__handleColorInput',()=>{const node=this.__internals.dom.colorInput;const val=this.__generateInputValue();node.val(val);const list=this.__getList();OcHtml.setAttributeIfTrue(list!==null,node,'list',String(list))})}__toValidColorValue(value){return OcUtilities.clamp(OcMdInputColorInputsRgb.__constants.lowestColorValue,value,OcMdInputColorInputsRgb.__constants.highestColorValue)}__onChangeViaInput(){this.__handleColorInput()}__onChangeViaProperty(){this.__handleColorInput()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,red:0,green:0,blue:0,list:null}}}}OcMdInputColorInputsRgb.__constants={lowestColorValue:0,highestColorValue:255};Oc.OcMdInputColorInputsRgb=OcMdInputColorInputsRgb;"use strict";class OcMdInputColorInputsRgba extends OcMdInputColorInputsRgb{constructor(properties){super(properties)}defaults(){return OcMdInputColorInputsRgba.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,opacity:{get:this.__getOpacity.bind(this),set:this.__setOpacity.bind(this)}}}__getOpacity(){return this.properties.opacity}__setOpacity(value){if(this.properties.opacity===value){return};this.properties.opacity=this.__toValidOpacityValue(value);this.__onChangeViaProperty()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises.cssMdInputColorInputsRgba=OLEFA.css.getIfNotLoaded('md/input/color/inputs/rgba.css','--loaded--md-input-color-inputs-rgba')}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-input-color-inputs-rgba';this.__createDOMNodes({opacity:{component:OcMdInputSliderStandard,class:`${cssBase}__opacity`,properties:{min:0,max:1}}},this.__internals.dom.base);this.defer(()=>{this.__internals.dom.base.addClass(cssBase)})}__initEvents(){super.__initEvents();this.__internals.elements.opacity.events.listen('input',this.__onOpacity__input.bind(this),this.refID)}__onOpacity__input(event){this.__setOpacity(event.data.value);this.__onChangeViaInput()}__handleColorInput(){super.__handleColorInput();this.__deferOnce('__handleColorInput__rgba',()=>{const node=this.__internals.dom.colorInput;const opacity=this.__getOpacity();node.css({opacity:opacity})})}__toValidOpacityValue(value){return OcUtilities.clamp(OcMdInputColorInputsRgba.__constants.lowestOpacityValue,value,OcM
1dInputColorInputsRgba.__constants.highestOpacityValue)}__onChangeViaProperty(){super.__onChangeViaProperty();const opacity=this.__getOpacity();this.__internals.elements.opacity.value=opacity}layout(){this.__internals.elements.opacity.layout()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,opacity:1}}}}OcMdInputColorInputsRgba.__constants={...OcMdInputColorInputsRgb.__constants,lowestOpacityValue:0,highestOpacityValue:1};Oc.OcMdInputColorInputsRgba=OcMdInputColorInputsRgba;"use strict";class OcMdInputColorRgb extends OcMdInputColor{constructor(properties){super(properties)}defaults(){return OcMdInputColorRgb.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,red:{get:this.__getRed.bind(this),set:this.__setRed.bind(this)},green:{get:this.__getGreen.bind(this),set:this.__setGreen.bind(this)},blue:{get:this.__getBlue.bind(this),set:this.__setBlue.bind(this)}}}__getRed(){return this.properties.red}__setRed(value){this.properties.red=value;this.__internals.elements.colorInputUi.red=value;this.__onColorChange()}__getGreen(){return this.properties.green}__setGreen(value){this.properties.green=value;this.__internals.elements.colorInputUi.green=value;this.__onColorChange()}__getBlue(){return this.properties.blue}__setBlue(value){this.properties.blue=value;this.__internals.elements.colorInputUi.blue=value;this.__onColorChange()}__setList(value){super.__setList(value);this.__internals.elements.colorInputUi.list=value}__buildInstanceStructure(){this.propertyHandlers.red=this.__setRed;this.propertyHandlers.green=this.__setGreen;this.propertyHandlers.blue=this.__setBlue;super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initEvents(){super.__initEvents();this.__internals.elements.colorInputUi.events.listen('property-change',this.__onColorInputUi__propertyChange.bind(this),this.refID)}__onColorInputUi__propertyChange(eventData){switch(eventData.property){case'red':this.__setRed(eventData.value);break;case'green':this.__setGreen(eventData.value);break;case'blue':this.__setBlue(eventData.value);break;default:break}}__onColorChange(){const value=this.__generateInputValue();this.__setValue(value);this.__trigger__input({text:this.__getValue()});this.__trigger__change({text:this.__getValue()})}__generateInputValue(){const red=this.__getRed();const green=this.__getGreen();const blue=this.__getBlue();const redHex=OcDatatype.numberToHex(red,2);const greenHex=OcDatatype.numberToHex(green,2);const blueHex=OcDatatype.numberToHex(blue,2);return`#${redHex}${greenHex}${blueHex}`}__getColorInputUi(){return OcMdInputColorInputsRgb}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,red:0,green:0,blue:0}}}}OcMdInputColorRgb.__constants={lowestColorValue:0,highestColorValue:255};Oc.OcMdInputColorRgb=OcMdInputColorRgb;"use strict";class OcMdInputColorRgbFilled extends OcMdInputColorRgb{constructor(properties){super(properties)}defaults(){return OcMdInputColorRgbFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)}if(ev.value instanceof OcNodeText){ev.value.events.listen('render',()=>{this.__handleLabelElement},this.refID)}this.__handleLabelElement();break;default:break}}__initElements(){super.__initElements();const cssBase='oc-md-input-color-rgb-filled';this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'span',class:`${cssBase}__ripple mdc-text-field__ripple`},lineRipple:{tag:'span',class:`${cssBase}__line-ripple mdc-line-ripple`},label:{component:OcMdFloatinglabel,class:`${cssBase}__label`,properties:{disableMdc:true}},},this.__internals.dom.textField));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.textField.addClass('mdc-text-field--filled');this.__internals.elements.label.base.insertAfter(this.__internals.dom.ripple);this.__internals.dom.input.insertBefore(this.__internals.dom.lineRipple);this.__internals.elements.label.base.attr({'id':`${this.refID}--label`});this.__internals.elements.colorInputUi.base.insertAfter(this.__internals.dom.input)},true))}__initialize(properties){super.__initialize(properties)}__handleLabelElement(){const element=this.__internals.elements.label;const label=this.__getLabel();let normalizedLabel;if(label instanceof OcNodeText){normalizedLabel=label.node.textContent}else{normalizedLabel=label}element.text=normalizedLabel}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputColorRgbFilled=OcMdInputColorRgbFilled;"use strict";
1class OcMdInputColorRgbOutlined extends OcMdInputColorRgb{constructor(properties){super(properties)}defaults(){return OcMdInputColorRgbOutlined.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises.cssMdInputColorRgbOutlined=OLEFA.css.getIfNotLoaded('md/input/color/rgb/outlined.css','--loaded--md-input-color-rgb-outlined')}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)};if(ev.value instanceof OcNodeText){ev.value.events.listen('render',()=>{this.__handleBaseNode()},this.refID)};this.__handleBaseNode();break;default:break}}__initElements(){super.__initElements();const cssBase='oc-md-input-color-rgb-outlined';this.__internals.initElementsJobs.push(this.__createDOMNodes({notchedOutline:{component:OcMdNotchedOutline,class:`${cssBase}__notched-outline`}},this.__internals.dom.textField));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.textField.addClass('mdc-text-field--outlined');this.__internals.dom.input.appendTo(this.__internals.dom.textField);this.__internals.elements.notchedOutline.labelInstance.base.attr({'id':`${this.refID}--label`});this.__internals.elements.colorInputUi.base.insertAfter(this.__internals.dom.input)},true))}__initialize(properties){super.__initialize(properties)}__handleNotchedOutlineElement(){const element=this.__internals.elements.notchedOutline;const label=this.__getLabel();let normalizedLabel;if(label instanceof OcNodeText){normalizedLabel=label.node.textContent}else{normalizedLabel=label}element.text=normalizedLabel}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputColorRgbOutlined=OcMdInputColorRgbOutlined;"use strict";class OcMdInputColorRgba extends OcMdInputColorRgb{constructor(properties){super(properties)}defaults(){return OcMdInputColorRgba.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,opacity:{get:this.__getOpacity.bind(this),set:this.__setOpacity.bind(this)}}}__getOpacity(){return this.properties.opacity}__setOpacity(value){this.properties.opacity=value;this.__internals.elements.colorInputUi.opacity=value;this.__onColorChange()}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__onColorInputUi__propertyChange(eventData){super.__onColorInputUi__propertyChange(eventData);switch(eventData.property){case'opacity':this.__setOpacity(eventData.value);break;default:break}}__generateInputValue(){const red=this.__getRed();const green=this.__getGreen();const blue=this.__getBlue();const opacity=this.__getOpacity();return`rgba(${red},${green},${blue},${opacity})`}__getColorInputUi(){return OcMdInputColorInputsRgba}layout(){this.__internals.elements.colorInputUi.layout()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,opacity:1}}}}Oc.OcMdInputColorRgba=OcMdInputColorRgba;"use strict";class OcMdInputColorRgbaFilled extends OcMdInputColorRgba{constructor(properties){super(properties)}defaults(){return OcMdInputColorRgbaFilled.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)}if(ev.value instanceof OcNodeText){ev.value.events.listen('render',()=>{this.__handleLabelElement()},this.refID)}this.__handleLabelElement();break;default:break}}__initElements(){super.__initElements();const cssBase='oc-md-input-color-rgb-filled';this.__internals.initElementsJobs.push(this.__createDOMNodes({ripple:{tag:'span',class:`${cssBase}__ripple mdc-text-field__ripple`},lineRipple:{tag:'span',class:`${cssBase}__line-ripple mdc-line-ripple`},label:{component:OcMdFloatinglabel,class:`${cssBase}__label`,properties:{disableMdc:true}},},this.__internals.dom.textField));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.textField.addClass('mdc-text-field--filled');this.__internals.elements.label.base.insertAfter(this.__internals.dom.ripple);this.__internals.dom.input.insertBefore(this.__internals.dom.lineRipple);this.__internals.elements.label.base.attr({'id':`${this.refID}--label`});this.__internals.elements.colorInputUi.base.insertAfter(this.__internals.dom.input)},true))}__initialize(properties){super.__initialize(properties)}__handleLabelElement(){const element=this.__internals.elements.label;const label=this.__getLabel();let normalizedLabel;if(label instanceof OcNodeText){normalizedLabel=label.node.textContent}else{normalizedLabel=label}element.text=normalizedLabel}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputColorRgbaFilled=OcMdInputColorRgbaFilled;"use strict";
1class OcMdInputColorRgbaOutlined extends OcMdInputColorRgba{constructor(properties){super(properties)}defaults(){return OcMdInputColorRgbaOutlined.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises.cssMdInputColorRgbaOutlined=OLEFA.css.getIfNotLoaded('md/input/color/rgba/outlined.css','--loaded--md-input-color-rgba-outlined')}__onSelf__propertyChange(ev){super.__onSelf__propertyChange(ev);switch(ev.property){case'label':if(ev.oldValue instanceof OcNodeText){ev.oldValue.events.cancelAllFromScope(this.refID)}if(ev.value instanceof OcNodeText){ev.value.events.listen('render',()=>{this.__handleNotchedOutlineElement()},this.refID)}this.__handleNotchedOutlineElement();break;default:break}}__initElements(){super.__initElements();const cssBase='oc-md-input-color-rgba-outlined';this.__internals.initElementsJobs.push(this.__createDOMNodes({notchedOutline:{component:OcMdNotchedOutline,class:`${cssBase}__notched-outline`}},this.__internals.dom.textField));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.textField.addClass('mdc-text-field--outlined');this.__internals.dom.input.appendTo(this.__internals.dom.textField);this.__internals.elements.notchedOutline.labelInstance.base.attr({'id':`${this.refID}--label`});this.__internals.elements.colorInputUi.base.insertAfter(this.__internals.dom.input)},true))}__initialize(properties){super.__initialize(properties)}__handleNotchedOutlineElement(){const element=this.__internals.elements.notchedOutline;const label=this.__getLabel();let normalizedLabel;if(label instanceof OcNodeText){normalizedLabel=label.node.textContent}else{normalizedLabel=label}element.text=normalizedLabel}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdInputColorRgbaOutlined=OcMdInputColorRgbaOutlined;"use strict";class OcMdLayout extends OcComponent{constructor(properties){super(properties)}defaults(){return OcMdLayout.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,root:{get:function(){return that.__internals.root}},orientation:{get:function(){return that.__internals.data.orientation}},deviceType:{get:function(){return that.__internals.data.deviceType}},device:{get:function(){return that.__internals.data.device}},size:{get:function(){return that.__internals.data.size}},breakpoint:{get:function(){return that.__internals.data.breakpoint}}};return extendedDefinitions};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.mediaQueryListeners=[];this.__internals.root=undefined;this.__internals.data={orientation:"landscape",deviceType:3,device:6,size:5,breakpoint:"1920plus"};this.propertyHandlers.root=this.__setRoot}__initialize(properties){this.__initEvents();this.__initProperties(properties);this.__handleRootNode()}__initEvents(){super.__initEvents();const defaults=this.defaults();Object.entries(defaults.breakpoints).forEach(item=>{const[breakpoint,breakpointProperties]=item;const mediaQueryParts=[];if(breakpointProperties.minWidth){mediaQueryParts.push('(min-width: '+breakpointProperties.minWidth+'px)')};if(breakpointProperties.maxWidth){mediaQueryParts.push('(max-width: '+breakpointProperties.maxWidth+'px)')};const mediaQueryString=mediaQueryParts.join(' and ');if(mediaQueryString){const mql=window.matchMedia(mediaQueryString);OcUtilities.addListenerToMql(mql,(e)=>{if(e.matches){this.__onMediaQueryEvent(breakpoint)}});if(mql.matches){this.__onMediaQueryEvent(breakpoint)};this.__internals.mediaQueryListeners.push(mql)}});const mql=window.matchMedia('(min-aspect-ratio: 1/1)');OcUtilities.addListenerToMql(mql,(e)=>{this.__onMediaQueryEvent(this.__internals.data.breakpoint)});this.__internals.mediaQueryListeners.push(mql)};
1__onMediaQueryEvent(breakpoint){const rules=this.__getBreakpointRules(breakpoint);const orientation=this.__getOrientation();this.__setDeviceType(rules.deviceType[orientation]);this.__setDevice(rules.device[orientation]);this.__setSize(rules['size']);this.__setBreakpoint(breakpoint);this.__setOrientation(orientation)};__setRoot(root){this.properties.root=root;this.__internals.root=jQuery(this.properties.root)};__getRoot(){return this.properties.root};__setDeviceType(deviceType){if(deviceType!=this.__internals.data.deviceType){this.__internals.data.deviceType=deviceType;this.__handleRootNode();this.__trigger__deviceTypeChange(deviceType)}};__setDevice(device){if(device!=this.__internals.data.device){this.__internals.data.device=device;this.__handleRootNode();this.__trigger__deviceChange(device)}};__setSize(size){if(size!=this.__internals.data['size']){this.__internals.data['size']=size;this.__handleRootNode();this.__trigger__sizeChange(size)}};__setBreakpoint(breakpoint){if(breakpoint!=this.__internals.data.breakpoint){this.__internals.data.breakpoint=breakpoint;this.__handleRootNode();this.__trigger__breakpointChange(breakpoint)}};__setOrientation(orientation){if(orientation!=this.__internals.data.orientation){this.__internals.data.orientation=orientation;this.__handleRootNode();this.__trigger__orientationChange(orientation)}};__getBreakpointRules(breakpoint){const defaults=this.defaults();breakpoint=OcUtilities.define(breakpoint,defaults.defaultBreakpoint);if(!defaults.breakpoints[breakpoint]){breakpoint=defaults.defaultBreakpoint};return defaults.breakpoints[breakpoint]};__getOrientation(){const defaults=this.defaults();if(screen.orientation){if(screen.orientation.type.match(/^landscape/)){return defaults.orientations.LANDSCAPE}else if(screen.orientation.type.match(/^portrait/)){return defaults.orientations.PORTRAIT}};if(window.innerWidth>window.innerHeight){return defaults.orientations.LANDSCAPE}else{return defaults.orientations.PORTRAIT}};__handleRootNode(){this.__deferOnce('__handleRootNode__OcMdLayout',()=>{const node=this.__internals.root;if(!node){return}const defaults=this.defaults();const deviceType=this.__internals.data.deviceType;const device=this.__internals.data.device;const size=this.__internals.data.size;const breakpoint=this.__internals.data.breakpoint;const orientation=this.orientation;node.attr({'data-mdlayout-devicetype':defaults.deviceTypes[deviceType],'data-mdlayout-device':defaults.devices[device],'data-mdlayout-size':defaults.sizes[size],'data-mdlayout-breakpoint':breakpoint,'data-mdlayout-orientation':orientation})},'repaint')}__trigger__deviceTypeChange(data){this.events.trigger('device-type-change',data)};__trigger__deviceChange(data){this.events.trigger('deviceChange',data);this.events.trigger('device-change',data)};__trigger__sizeChange(data){this.events.trigger('sizeChange',data);this.events.trigger('size-change',data)};__trigger__breakpointChange(data){this.events.trigger('breakpointChange',data);this.events.trigger('breakpoint-change',data)};__trigger__orientationChange(data){this.events.trigger('orientation-change',data)};destroy(){for(var i in this.__internals.mediaQueryListeners){this.__internals.mediaQueryListeners[i].removeEventListener('change',()=>{})};super.destroy()};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,root:'body'},defaultBreakpoint:'1920plus',orientations:{LANDSCAPE:'landscape',PORTRAIT:'portrait'},deviceTypes:{HANDSET:1,1:'handset',TABLET:2,2:'tablet',DESKTOP:3,3:'desktop'},devices:{HANDSETSMALL:1,1:'handset-small',HANDSETMEDIUM:2,2:'handset-medium',HANDSETLARGE:3,3:'handset-large',TABLETSMALL:4,4:'tablet-small',TABLETLARGE:5,5:'tablet-large',DESKTOP:6,6:'desktop'},sizes:{XSMALL:1,1:'xsmall',SMALL:2,2:'small',MEDIUM:3,3:'medium',LARGE:4,4:'large',XLARGE:5,5:'xlarge'},breakpoints:{'0':{'id':'0','minWidth':0,'maxWidth':359,'deviceType':{'portrait':1,'landscape':1},'device':{'portrait':1,'landscape':1},'size':1,'columns':4,'margins':16},'360':{'id':'360','minWidth':360,'maxWidth':399,'deviceType':{'portrait':1,'landscape':1},'device':{'portrait':2,'landscape':1},'size':1,'columns':4,'margins':16},'400':{'id':'400','minWidth':400,'maxWidth':479,'deviceType':{'portrait':1,'landscape':1},'device':{'portrait':3,'landscape':1},'size':1,'columns':4,'margins':16},'480':{'id':'480','minWidth':480,'maxWidth':599,'deviceType':{'portrait':1,'landscape':1},'device':{'portrait':3,'landscape':1},'size':1,'columns':4,'margins':16},'600':{'id':'600','minWidth':600,'maxWidth':719,'deviceType':{'portrait':2,'landscape':1},'device':{'portrait':4,'landscape':2},'size':2,'columns':8,'margins':16},'720':{'id':'720','minWidth':720,'maxWidth':839,'deviceType':{'portrait':2,'landscape':1},'device':{'portrait':5,'landscape':3},'size':2,'columns':8,'margins':24},'840':{'id':'840','minWidth':840,'maxWidth':959,'deviceType':{'portrait':2,'landscape':1},'device':{'portrait':5,'landscape':3},'size':2,'columns':12,'margins':24},'960':{'id':'960','minWidth':960,'maxWidth':1023,'deviceType':{'portrait':3,'landscape':2},'device':{'portrait':6,'landscape':4},'size':2,'columns':12,'margins':24},'1024':{'id':'1024','minWidth':1024,'maxWidth':1279,'deviceType':{'portrait':3,'landscape':2},'device':{'portrait':6,'landscape':5},'size':3,'columns':12,'margins':24},'1280':{'id':'1280','minWidth':1280,'maxWidth':1439,'deviceType':{'portrait':3,'landscape':2},'device':{'portrait':6,'landscape':5},'size':3,'columns':12,'margins':24},'1440':{'id':'1440','minWidth':1440,'maxWidth':1599,'deviceType':{'portrait':3,'landscape':3},'device':{'portrait':6,'landscape':6},'size':4,'columns':12,'margins':24},'1600':{'id':'1600','minWidth':1600,'maxWidth':1919,'deviceType':{'portrait':3,'landscape':3},'device':{'portrait':6,'landscape':6},'size':4,'columns':12,'margins':24},'1920plus':{'id':'1920plus','minWidth':1920,'maxWidth':undefined,'deviceType':{'portrait':3,'landscape':3},'device':{'portrait':6,'landscape':6},'size':5,'columns':12,'margins':24}}};return extendedData}}Oc.OcMdLayout=OcMdLayout;"use strict";
1class OcMdList extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdList.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,iconType:{get:this.__getIconType.bind(this),set:this.__setIconType.bind(this)},dense:{get:this.__getDense.bind(this),set:this.__setDense.bind(this)},autoSort:{get:this.__getAutoSort.bind(this),set:this.__setAutoSort.bind(this)},sortDirection:{get:this.__getSortDirection.bind(this),set:this.__setSortDirection.bind(this)},items:{get:this.__getItems.bind(this)},disableMdc:{get:this.__getDisableMdc.bind(this)}}}__getIconType(){return this.properties.iconType}__setIconType(value){this.properties.iconType=value;this.__handleIconType()}__getDense(){return this.properties.dense}__setDense(value){this.properties.dense=value;this.__handleDense()}__getAutoSort(){return this.properties.autoSort}__setAutoSort(value){this.properties.autoSort=value;this.__internals.states.set('autosort',this.properties.autoSort)}__getSortDirection(){return this.properties.sortDirection}__setSortDirection(value){this.properties.sortDirection=value;this.__handleAutoSort()}__getItems(){const items=[];for(const item of Object.values(this.__internals.items)){const indexOfItemFromSortedList=item.base.index();OcArray.insert(items,indexOfItemFromSortedList,item)};return items}__getDisableMdc(){return this.properties.disableMdc}__setDisableMdc(value){this.properties.disableMdc=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.items={};this.propertyHandlers.iconType=this.__setIconType;this.propertyHandlers.dense=this.__setDense;this.propertyHandlers.autoSort=this.__setAutoSort;this.propertyHandlers.sortDirection=this.__setSortDirection;this.propertyHandlers.items=this.addItem;this.propertyHandlers.disableMdc=this.__setDisableMdc}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-list-base';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:this.__getBaseTag()}}))};this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-deprecated-list`)},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdList.__states.autosort,onChange:this.__onStateChange__autosort.bind(this)})}__onStateChange__autosort(){const isAutosortActive=this.__internals.states.hasState(OcMdList.__states.autosort);if(isAutosortActive){this.__internals.autoSort=new OcInteractivityAutoSort(this.__internals.dom.base,{sortKey:'data-sort-value',});this.__initEvents__autoSort(this.__internals.autoSort);this.__handleAutoSort()}else{this.__internals.autoSort?.destroy();delete this.__internals.autoSort}}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`focus.${this.refID}`,this.__onBase__focus.bind(this))}__onBase__focus(ev){if(!ev.originalEvent.target){return};if(jQuery(ev.originalEvent.target).is(this.__internals.dom.base)){this.__handleTabindex()}}__onBase__mdcList__action(ev){const listItem=this.__getListItemFromMdcListAction(ev.originalEvent.detail.index);if(!listItem){return};this.__trigger__select({listItem:listItem,value:listItem.value})}__initEvents__autoSort(autoSort){autoSort.events.listen('sort',this.__onAutosort__sort.bind(this))}__onAutosort__sort(ev){const sortedElementWasFirstElement=ev.data.from==0;const sortedElementHasBecomeFirstElement=ev.data.to==0;const sortedElementIsNoLongerInList=ev.data.to==-1;if(sortedElementWasFirstElement||sortedElementHasBecomeFirstElement||sortedElementIsNoLongerInList){this.__handleTabindex()}};__initEvents__listItem(listItem){listItem.events.listen('select',this.__onListitem__select.bind(this,listItem),this.refID).listen('meta',this.__onListitem__meta.bind(this,listItem),this.refID)}__onListitem__select(listItem,event){this.__trigger__select({listItem:listItem,value:listItem.value})}__onListitem__meta(listItem,event){this.__trigger__meta({listItem:listItem,value:listItem.value})}__onHtmlReady(){super.__onHtmlReady();if(!this.disableMdc){const list=this.__internals.dom.base.get(0);if(list){this.__internals.mdcList=new mdc.list.MDCList(list)}}}__handleAutoSort(){this.__deferOnce('__handleAutoSort',()=>{if(!this.__internals.autoSort){return};const sortDirection=this.__getSortDirection();this.__internals.autoSort.sortDirection=sortDirection})}__getBaseTag(){return'ul'}
1__getListItemFromMdcListAction(index){if(!this.__internals.mdcList){OLEFA.log.info('OcMdList.__onBase__mdcList__action(): No mdc instance');return};const nodes=this.__internals.mdcList?.listElements;if(!nodes){OLEFA.log.error('OcMdList.__onBase__mdcList__action(): List has no children');return};const node=nodes[index];const listItem=jQuery(node).prop('olefa-object-reference');return listItem}__handleTabindex(){this.__deferOnce('__handleTabindex',()=>{this.__internals.dom.base.children().each((index,element)=>{element.setAttribute('tabindex','-1')});this.__internals.dom.base.children(':visible').first().attr('tabindex','0')})}__addItemToList(item){item.base.appendTo(this.__internals.dom.base)}__handleIconType(){this.__deferOnce('__handleIconType',()=>{const allIconClasses=Object.values(OcMdList.__cssClasses.icons).join(' ');this.__internals.dom.base.removeClass(allIconClasses);this.__internals.dom.base.addClass(OcMdList.__cssClasses.icons[this.properties.iconType])})}__handleDense(){this.__deferOnce('__handleDense',()=>{OcHtml.setClassIfTrue(this.properties.dense,this.__internals.dom.base,'mdc-deprecated-list--dense')})}addItem(item){if(this.__internals.items[item.refID]){OLEFA.log.warn('OcMdList.addItem(): Item not added because it already exists');return this.__internals.items[item.refID]};this.__internals.items[item.refID]=item;this.__addItemToList(item);this.__handleTabindex();if(item instanceof OcMdListitem){this.__initEvents__listItem(item)};this.__trigger__itemAdded({listItem:item});this.__trigger__itemsChanged({listItem:item});return this.__internals.items[item.refID]}getItem(refId){if(!this.__internals.items[refId]){return};return this.__internals.items[refId]}removeItem(refId){if(!this.__internals.items[refId]){OLEFA.log.info('OcMdList.removeItem(): Item does not exists');return};const item=this.__internals.items[refId];this.__internals.items[refId].events.cancelAllFromScope(this.refID);OcHtml.detachIfInside(this.__internals.items[refId].base,this.__internals.dom.base);delete this.__internals.items[refId];this.__handleTabindex();this.__trigger__itemRemoved({listItem:item});this.__trigger__itemsChanged({listItem:item})}empty(){const keys=Object.keys(this.__internals.items);for(const key of keys){this.removeItem(key)}}__trigger__meta(eventData){const event=new OcEvent({eventName:'meta',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__itemAdded(eventData){const event=new OcEvent({eventName:'item-added',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__itemRemoved(eventData){const event=new OcEvent({eventName:'item-removed',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__itemsChanged(eventData){const event=new OcEvent({eventName:'items-changed',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.empty();super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,iconType:'none',dense:false,selectType:'none',autoSort:false,sortDirection:'asc',items:[],disableMdc:false}}}}
1OcMdList.__cssClasses={icons:{none:'mdc-deprecated-list--textual-list',avatar:'mdc-deprecated-list--avatar-list',icon:'mdc-deprecated-list--icon-list',image:'mdc-deprecated-list--image-list',thumbnail:'mdc-deprecated-list--thumbnail-list',video:'mdc-deprecated-list--video-list',}};OcMdList.__states={...OcMdComponent.__states,autosort:'autosort'};Oc.OcMdList=OcMdList;"use strict";class OcMdListSingleline extends OcMdList{constructor(properties){super(properties)}defaults(){return OcMdListSingleline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}addItem(item){return super.addItem(item)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdListSingleline=OcMdListSingleline;"use strict";class OcMdListSinglelineAction extends OcMdListSingleline{constructor(properties){super(properties)}defaults(){return OcMdListSinglelineAction.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();const cssBase='oc-md-list-singleline-action';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}__initialize(properties){super.__initialize(properties)}__getBaseTag(){return'div'}addItem(item){return super.addItem(item)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdListSinglelineAction=OcMdListSinglelineAction;"use strict";class OcMdListSinglelineSelectable extends OcMdListSingleline{constructor(properties){super(properties)}defaults(){return OcMdListSinglelineSelectable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)}}}__getValue(){OLEFA.log.error('OcMdListSinglelineSelectable.__getValue: This method must be overriden')}__setValue(value){OLEFA.log.error('OcMdListSinglelineSelectable.__setValue: This method must be overriden')}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-list-singleline-selectable';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase).attr({'role':this.defaults().baseNodeRole})},true))}__onBase__mdcList__action(ev){super.__onBase__mdcList__action(ev);const listItem=this.__getListItemFromMdcListAction(ev.originalEvent.detail.index);if(!listItem){return};this.__onListItemSelect(listItem)}__initEvents__listItem(listItem){listItem.events.listen('select',this.__onListitem__select.bind(this,listItem),this.refID)}__onListitem__select(listItem,ev){super.__onListitem__select(listItem,ev);this.__onListItemSelect(listItem)}__onListItemSelect(listItem){OLEFA.log.error('OcMdListSinglelineSelectable.__onListItemSelect: This method must be overridden')}__getAriaHandler(){return OcAriaListbox};__getBaseTag(){return'div'}addItem(item){return super.addItem(item)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,baseNodeRole:'listbox'}}}Oc.OcMdListSinglelineSelectable=OcMdListSinglelineSelectable;"use strict";class OcMdListSinglelineSelectableMulti extends OcMdListSinglelineSelectable{constructor(properties){super(properties)}defaults(){return OcMdListSinglelineSelectableMulti.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,value:{get:this.__getValue.bind(this)}}}__getValue(){const selectedListItems=Object.values(this.__internals.items).filter(listItem=>listItem.selected);return selectedListItems.map(listItem=>listItem.value)}__setValue(value){}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.__internals.ariaHandler.multiSelectable=true}__onListItemSelect(listItem){listItem.selected=!listItem.selected;this.__handleTabindex()}__onHtmlReady(){super.__onHtmlReady();if(this.__internals.mdcList){this.__internals.mdcList.singleSelection=false}}select(refId,state){const listItem=this.getItem(refId);listItem.selected=state}selectByValue(value,state){const listItem=Object.values(this.__internals.items).find(listItem=>listItem.value==value);
1if(!listItem){OLEFA.log.warn('Value not found',arguments);return};this.select(listItem?.refID,state)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdListSinglelineSelectableMulti=OcMdListSinglelineSelectableMulti;"use strict";class OcMdListSinglelineSelectableSingle extends OcMdListSinglelineSelectable{constructor(properties){super(properties)}defaults(){return OcMdListSinglelineSelectableSingle.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__getValue(){const selectedListitem=Object.values(this.__internals.items).find(listItem=>listItem.selected);return selectedListitem?.value}__setValue(value){const listItem=Object.values(this.__internals.items).find(listItem=>listItem.value==value);if(!listItem){return};this.__onListItemSelect(listItem)}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__onListItemSelect(listItem){for(const item of Object.values(this.__internals.items)){const isSelectedItem=item.refID==listItem.refID;item.selected=isSelectedItem};this.__handleTabindex()}addItem(item){const listItem=super.addItem(item);return listItem}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdListSinglelineSelectableSingle=OcMdListSinglelineSelectableSingle;"use strict";class OcMdListSinglelineSelectableSelect extends OcMdListSinglelineSelectableSingle{constructor(properties){super(properties)}defaults(){return OcMdListSinglelineSelectableSelect.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}addItem(item){const listItem=super.addItem(item);return listItem}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdListSinglelineSelectableSelect=OcMdListSinglelineSelectableSelect;"use strict";class OcMdListSinglelineSelectableRadio extends OcMdListSinglelineSelectableSingle{constructor(properties){super(properties)}defaults(){return OcMdListSinglelineSelectableRadio.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__getValue(){return Object.values(this.__internals.items).find(item=>item.selected)?.value}__setValue(value){const listItem=Object.values(this.__internals.items).find(item=>item.value==value);if(!listItem){OLEFA.log.info('Item with given value does not exist',value);return};this.__onListItemSelect(listItem)}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-list-singleline-selectable-radio';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}__getAriaHandler(){return OcAriaDeprecatedRadiogroup};__handleTabindex(){const isSelected=Object.values(this.__internals.items).some(item=>item.selected);if(!isSelected){super.__handleTabindex()}else{for(const item of Object.values(this.__internals.items)){const tabIndex=item.selected?'0':'-1';item.base.attr('tabindex',tabIndex)}}}addItem(item){const listItem=super.addItem(item);listItem.group=this.refID;return listItem}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,baseNodeRole:'radiogroup'}}}Oc.OcMdListSinglelineSelectableRadio=OcMdListSinglelineSelectableRadio;"use strict";class OcMdListTwoline extends OcMdList{constructor(properties){super(properties)}defaults(){return OcMdListTwoline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-list-twoline';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-deprecated-list--two-line`)},true))}__createItem(item){const newInstance=OcMdListitemTwoline.toInstance(item);return newInstance}addItem(item){return super.addItem(item)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdListTwoline=OcMdListTwoline;"use strict";
1class OcMdListTwolineAction extends OcMdListTwoline{constructor(properties){super(properties)}defaults(){return OcMdListTwolineAction.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();const cssBase='oc-md-list-singleline-action';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}__initialize(properties){super.__initialize(properties)}__getBaseTag(){return'div'}addItem(item){return super.addItem(item)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdListTwolineAction=OcMdListTwolineAction;"use strict";class OcMdListitem extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdListitem.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,isFirstItem:{get:this.__getIsFirstItem.bind(this),set:this.__setIsFirstItem.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},meta:{get:this.__getMeta.bind(this),set:this.__setMeta.bind(this)},showIcon:{get:this.__getShowIcon.bind(this),set:this.__setShowIcon.bind(this)},showMeta:{get:this.__getShowMeta.bind(this),set:this.__setShowMeta.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},metaCancelsClick:{get:this.__getMetaCancelsClick.bind(this),set:this.__setMetaCancelsClick.bind(this)},customMeta:{get:this.__getCustomMeta.bind(this),set:this.__setCustomMeta.bind(this)},sortValue:{get:this.__getSortValue.bind(this),set:this.__setSortValue.bind(this)},accentColor:{get:this.__getAccentColor.bind(this),set:this.__setAccentColor.bind(this)},metaWrapper:{get:this.__getMetaWrapper.bind(this)}}}__getIsFirstItem(){return this.properties.isFirstItem}__setIsFirstItem(value){this.properties.isFirstItem=value;this.__internals.states.set('is-first-item',this.properties.isFirstItem)}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value}__getIcon(){return this.properties.icon}__setIcon(value){this.properties.icon=value;if(this.__internals.icon){this.__internals.icon.destroy();delete this.__internals.icon};if(this.properties.icon){const icon=OcUiFonticon(this.properties.icon);this.__internals.icon=icon;icon.base.addClass('mdc-deprecated-list-item__graphic').insertBefore(this.__internals.dom.text);this.__internals.states.add('has-icon')}else{this.__internals.states.remove('has-icon')}}__getMeta(){return this.properties.meta}__setMeta(value){this.properties.meta=value;if(this.__internals.meta){this.__internals.meta.destroy();delete this.__internals.meta;this.__internals.states.remove('has-meta')};if(this.properties.meta){const meta=OcUiFonticon(this.properties.meta);this.__internals.meta=meta;meta.base.addClass('mdc-deprecated-list-item__meta');this.__initEvents__meta();this.__internals.states.add('has-meta')}else{this.__internals.states.remove('has-meta')}}__getShowIcon(){return this.properties.showIcon}__setShowIcon(value){this.properties.showIcon=value;this.__internals.states.set('show-icon',this.properties.showIcon)}__getShowMeta(){return this.properties.showMeta}__setShowMeta(value){this.properties.showMeta=value;this.__internals.states.set('show-meta',this.properties.showMeta)}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__internals.states.set('is-disabled',this.properties.disabled)}__getMetaCancelsClick(){return this.properties.metaCancelsClick}__setMetaCancelsClick(value){this.properties.metaCancelsClick=value}__getCustomMeta(){return this.properties.customMeta}__setCustomMeta(value){this.properties.customMeta=value;this.__internals.states.set('uses-custom-meta',value)}__getSortValue(){return this.properties.sortValue}__setSortValue(value){this.properties.sortValue=value;this.__deferOnce('__setSortValue',()=>{this.__internals.dom.base.attr('data-sort-value',this.properties.sortValue)})}__getAccentColor(){return this.properties.accentColor}__setAccentColor(value){this.properties.accentColor=value;this.__handleAccentColorNode()}__getMetaWrapper(){const usesCustomMeta=this.__internals.states.hasState('uses-custom-meta');if(usesCustomMeta){return this.__internals.dom.metaWrapper}else{return this.__internals.meta?.base}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.isFirstItem=this.__setIsFirstItem;this.propertyHandlers.value=this.__setValue;this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.meta=this.__setMeta;this.propertyHandlers.showIcon=this.__setShowIcon;this.propertyHandlers.showMeta=this.__setShowMeta;this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.metaCancelsClick=this.__setMetaCancelsClick;this.propertyHandlers.customMeta=this.__setCustomMeta;this.propertyHandlers.sortValue=this.__setSortValue;this.propertyHandlers.accentColor=this.__setAccentColor}__initialize(properties){super.__initialize(properties);if(!properties||typeof properties.ariaLabelledBy=='undefined'){this.__setAriaLabelledBy(`${this.refID}--text`)}}__initElements(){super.__initElements();const cssBase='oc-md-listitem-base';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:this.__getBaseTag()}}))};this.__createDOMNodes({metaWrapper:{tag:'div',class:`${cssBase}__meta-wrapper mdc-deprecated-list-item__meta`}});this.__internals.initElementsJobs.push(this.__createDOMNodes({accentColor:{tag:'div',class:`${cssBase}__accent-color`,attributes:{role:'presentation'}},ripple:{tag:'span',class:`${cssBase}__ripple mdc-deprecated-list-item__ripple`},text:{tag:'span',class:`${cssBase}__text mdc-deprecated-list-item__text`,attributes:{'aria-hidden':'true','id':`${this.refID}--text`}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-deprecated-list-item`)},true))}__initStates(){super.__initStates();this.__internals.states.define({state:'is-first-item',onChange:this.__onStateChange__isFirstItem.bind(this)}).define({state:'has-icon',onChange:this.__onStateChange__hasIcon.bind(this)}).define({state:'has-meta',onChange:this.__onStateChange__hasMeta.bind(this)}).define({state:'show-icon',onChange:this.__onStateChange__showIcon.bind(this)}).define({state:'show-meta',onChange:this.__onStateChange__showMeta.bind(this)}).define({state:'is-disabled',onChange:this.__onStateChange__isDisabled.bind(this)}).define({state:'uses-custom-meta',onChange:this.__onStateChange__usesCustomMeta.bind(this)})};__onStateChange__isFirstItem(){this.__deferOnce('__onStateChange__isFirstItem',()=>{const isFirstItem=this.__internals.states.hasState('is-first-item');OcHtml.setAttributeIfTrue(isFirstItem,this.__internals.dom.base,'tabindex','0')})}__onStateChange__hasIcon(){this.__handleIcon()}__onStateChange__hasMeta(){this.__handleMeta()}__onStateChange__showIcon(){this.__handleIcon()}__onStateChange__showMeta(){this.__handleMeta()}__onStateChange__isDisabled(){this.__deferOnce('__onStateChange__isDisabled',()=>{const isDisabled=this.__internals.states.hasState('is-disabled');OcHtml.setClassIfTrue(isDisabled,this.__internals.dom.base,'mdc-deprecated-list-item--disabled')})}__onStateChange__usesCustomMeta(){this.__handleMeta()}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`dblclick.${this.refID}`,this.__onBase__dblclick.bind(this)).on(`keydown.${this.refID}`,this.__onBase__keydown.bind(this));this.__internals.dom.metaWrapper.on(`click.${this.refID}`,this.__onMetaWrapper__click.bind(this))}__onBase__click(ev){super.__onBase__click(ev);if(!this.properties.disabled){this.__onListItemSelect('click')}}__onBase__keydown(ev){switch(ev.key){case OcAria.keys.SPACEBAR:this.__onListItemSelect('keypress');break}}__onBase__dblclick(ev){ev.preventDefault();if(!this.properties.disabled){this.__trigger__dblclick()}}__onMetaWrapper__click(ev){this.__onMetaClick(ev)}__initEvents__meta(){this.__internals.meta?.base.on(`click.${this.refID}`,this.__onMeta__click.bind(this))}__onMeta__click(ev){this.__onMetaClick(ev)}__onHtmlReady(){super.__onHtmlReady();const ripple=this.__internals.dom.base.get(0);
1if(ripple){this.__internals.mdcRipple=new mdc.ripple.MDCRipple(ripple);this.__onMdHtmlUpdate()}}__handleIcon(){this.__deferOnce('__handleIcon',()=>{const hasIcon=this.__internals.states.hasState('has-icon');const showIcon=this.__internals.states.hasState('show-icon');if(showIcon&&hasIcon&&this.__internals.icon){this.__internals.icon.base.insertBefore(this.__internals.dom.text)}else{this.__internals.icon?.base.detach()}})}__handleMeta(){this.__deferOnce('__handleMeta',()=>{const showMeta=this.__internals.states.hasState('show-meta');if(showMeta){if(this.properties.customMeta){this.__internals.dom.metaWrapper.insertAfter(this.__internals.dom.text);this.__internals.meta?.base.detach()}else{const hasMeta=this.__internals.states.hasState('has-meta');if(hasMeta){this.__internals.meta?.base.insertAfter(this.__internals.dom.text);this.__internals.dom.metaWrapper.detach()}}}else{this.__internals.meta?.base.detach();this.__internals.dom.metaWrapper.detach()}})}__handleAccentColorNode(){this.__deferOnce('__handleAccentColorNode',()=>{const node=this.__internals.dom.accentColor;const accentColor=this.__getAccentColor()||'transparent';node.css('background-color',accentColor)},'repaint')}__onMdHtmlUpdate(){this.__deferOnce('__onMdHtmlUpdate',()=>{this.__trigger__mdHtmlUpdate()})}__onListItemSelect(via){let eventToTrigger='select';if(via=='keypress'){const metaCancelsClick=this.__getMetaCancelsClick();if(metaCancelsClick){eventToTrigger='meta'}}if(eventToTrigger=='meta'){this.__trigger__meta()}else{this.__trigger__select()}}__onMetaClick(ev){this.__trigger__meta({clickEvent:ev.originalEvent});if(this.properties.metaCancelsClick){ev.preventDefault();ev.stopPropagation()}}__getBaseTag(){return'li'}__trigger__select(){this.__internals.events.trigger('select',{value:this.properties.value})}__trigger__dblclick(){this.__internals.events.trigger('dblclick',{value:this.properties.value})}__trigger__meta(eventData){const normalizedData={...{value:this.__getValue()},...eventData};this.__internals.events.trigger('meta',normalizedData)}__trigger__mdHtmlUpdate(){const event=new OcEvent({eventName:'md-html-update'});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,isFirstItem:false,value:'',icon:'',meta:'',showIcon:true,showMeta:true,disabled:false,metaCancelsClick:false,customMeta:false,sortValue:'',accentColor:null},cssFiles:{...inheritedDefaults.cssFiles,mdListitem:{file:"md/listItem.css",key:"--loaded--md-listitem"}}}}}Oc.OcMdListitem=OcMdListitem;"use strict";class OcMdListitemSeparator extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdListitemSeparator.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,sortValue:{get:this.__getSortValue.bind(this),set:this.__setSortValue.bind(this)}}}__getSortValue(){return this.properties.sortValue}__setSortValue(value){this.properties.sortValue=value;this.__deferOnce('__setSortValue',()=>{const hasSortValue=this.properties.sortValue.length>0;OcHtml.setAttributeIfTrue(hasSortValue,this.__internals.dom.base,'data-sort-value',this.properties.sortValue)})}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.sortValue=this.__setSortValue}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-listitem-separator';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'li'}}))}this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-deprecated-list-divider`).attr({'role':'separator'})},true))}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,sortValue:''}}}}Oc.OcMdListitemSeparator=OcMdListitemSeparator;"use strict";class OcMdListitemSingleline extends OcMdListitem{constructor(properties){super(properties)}defaults(){return OcMdListitemSingleline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__updateTextNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.label=this.__setLabel}__initialize(properties){super.__initialize(properties)}__updateTextNode(){this.__deferOnce('__updateTextNode',()=>{this.__internals.dom.text.html(this.properties.label);this.__onMdHtmlUpdate()})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:''}}}}Oc.OcMdListitemSingleline=OcMdListitemSingleline;"use strict";
1class OcMdListitemSinglelineAction extends OcMdListitemSingleline{constructor(properties){super(properties)}defaults(){return OcMdListitemSinglelineAction.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,hasPopup:{get:this.__getHasPopup.bind(this),set:this.__setHasPopup.bind(this)}}}__getHasPopup(){return this.properties.hasPopup}__setHasPopup(value){this.properties.hasPopup=value;this.__handleAriaHandlerProperty()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.hasPopup=this.__setHasPopup}__initialize(properties){super.__initialize(properties)}__getAriaHandler(){return OcAriaButton}__handleAriaHandlerProperty(){super.__handleAriaHandlerProperty();const ariaHandler=this.__internals.ariaHandler;if(!ariaHandler){return};const hasPopup=this.__getHasPopup();ariaHandler.hasPopup=hasPopup}__getBaseTag(){return'div'}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,hasPopup:null}}}}Oc.OcMdListitemSinglelineAction=OcMdListitemSinglelineAction;"use strict";class OcMdListitemSinglelineLink extends OcMdListitemSingleline{constructor(properties){super(properties)}defaults(){return OcMdListitemSinglelineLink.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},link:{get:this.__getLink.bind(this),set:this.__setLink.bind(this)},target:{get:this.__getTarget.bind(this),set:this.__setTarget.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__updateTextNode()}__getLink(){return this.properties.link}__setLink(value){this.properties.link=value;this.__updateLinkNode()}__getTarget(){return this.properties.target}__setTarget(value){this.properties.target=value;this.__updateLinkNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMdListitemSinglelineLink:OLEFA.css.getIfNotLoaded('md/listItem/singleLine/link.css','--loaded--md-listitem-singleline-link')};this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.link=this.__setLink;this.propertyHandlers.target=this.__setTarget}__initEvents(){super.__initEvents();this.__internals.dom.base.on('keydown',ev=>{if(ev.key==OcAria.keys.ENTER||ev.key==OcAria.keys.SPACEBAR){ev.stopPropagation();OcHtml.clickOnElement(this.__internals.dom.link,{metaKey:ev.metaKey,altKey:ev.altKey,ctrlKey:ev.ctrlKey,shiftKey:ev.shiftKey})}})}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-listitem-singleline-link';this.__internals.initElementsJobs.push(this.__createDOMNodes({link:{tag:'a',class:`${cssBase}__link`,attributes:{'aria-labelledby':`${this.refID}--text`}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.add(cssBase)},true))}__onStateChange__isDisabled(){super.__onStateChange__isDisabled();this.__deferOnce('__onStateChange__isDisabled__link',()=>{const isDisabled=this.__internals.states.hasState('is-disabled');OcHtml.setAttributeIfTrue(isDisabled,this.__internals.dom.link,'hidden','')})}__updateTextNode(){this.__deferOnce('__updateTextNode',()=>{const node=this.__internals.dom.text;const label=this.__getLabel();node.html(label);this.__onMdHtmlUpdate()})}__updateLinkNode(){this.__deferOnce('__updateLinkNode',()=>{const node=this.__internals.dom.link;const link=this.__getLink();const target=this.__getTarget();const attributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'href',value:link},{type:'string',property:'target',value:target}]);OcHtml.setAttributesIfTrue(node,attributes)})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',link:'',target:''}}}}Oc.OcMdListitemSinglelineLink=OcMdListitemSinglelineLink;"use strict";class OcMdListitemSinglelineSelectable extends OcMdListitemSingleline{constructor(properties){super(properties)}defaults(){return OcMdListitemSinglelineSelectable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,selected:{get:this.__getSelected.bind(this),set:this.__setSelected.bind(this)}}}__getSelected(){return this.properties.selected}__setSelected(value){this.properties.selected=value;this.__internals.states.set('is-selected',this.properties.selected)}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.selected=this.__setSelected}__initialize(properties){super.__initialize(properties);this.__handleBaseChanges()}__initElements(){super.__initElements();const cssBase='oc-md-listlitem-singleline-selectable';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase).attr({'role':this.defaults().baseNodeRole})},true))}__initStates(){super.__initStates();this.__internals.states.define({state:'is-selected',onChange:this.__onStateChange__isSelected.bind(this)})}__onStateChange__isFirstItem(){}__onStateChange__isSelected(){const isSelected=this.__internals.states.hasState('is-selected');const value=this.__getValue();this.__handleBaseChanges();this.__trigger__selectedToggle({selected:isSelected,value:value})}__handleBaseChanges(){this.__deferOnce('__handleBaseChanges',()=>{const isSelected=this.__internals.states.hasState('is-selected');OcHtml.setClassIfTrue(isSelected,this.__internals.dom.base,'mdc-deprecated-list-item--selected');let ariaCheckedValue=(isSelected)?'true':'false';this.__internals.dom.base.attr(this.defaults().selectedListItemAttribute,ariaCheckedValue)})}__getBaseTag(){return'div'}__trigger__selectedToggle(eventData){const event=new OcEvent({eventName:'selected-toggle',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,selected:false},baseNodeRole:'option',selectedListItemAttribute:'aria-selected'}}}OcMdListitemSinglelineSelectable.__states={...OcMdListitemSingleline.__states,isSelected:'is-selected'};(function(OcMdListitemSinglelineSelectable){})(OcMdListitemSinglelineSelectable||(OcMdListitemSinglelineSelectable={}));Oc.OcMdListitemSinglelineSelectable=OcMdListitemSinglelineSelectable;"use strict";
1class OcMdListitemSinglelineSelectableSelect extends OcMdListitemSinglelineSelectable{constructor(properties){super(properties)}defaults(){return OcMdListitemSinglelineSelectableSelect.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setValue(value){super.__setValue(value);this.__handleBaseChanges()}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__handleBaseChanges(){super.__handleBaseChanges();this.__deferOnce('__handleBaseChanges__select',()=>{this.__internals.dom.base.attr(OcMdListitemSinglelineSelectableSelect.__attributes.value,this.__getValue());this.__onMdHtmlUpdate()})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}OcMdListitemSinglelineSelectableSelect.__attributes={value:'data-value'};Oc.OcMdListitemSinglelineSelectableSelect=OcMdListitemSinglelineSelectableSelect;"use strict";class OcMdListitemSinglelineSelectableSwitch extends OcMdListitemSinglelineSelectable{constructor(properties){super(properties)}defaults(){return OcMdListitemSinglelineSelectableSwitch.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,customMeta:{get:this.__getCustomMeta.bind(this)},metaCancelsClick:{get:this.__getMetaCancelsClick.bind(this)}}}__buildInstanceStructure(){super.__buildInstanceStructure()}__onStateChange__isDisabled(){super.__onStateChange__isDisabled();const isDisabled=this.__internals.states.hasState('is-disabled');this.__internals.elements.switch.disabled=isDisabled}__onStateChange__isSelected(){super.__onStateChange__isSelected();const isSelected=this.__internals.states.hasState('is-selected');this.__internals.elements.switch.selected=isSelected}__initElements(){super.__initElements();const cssBase='oc-md-listitem-singleline-selectable-switch';const defaultProperties=this.defaults().properties;this.__createDOMNodes({switchWrapper:{tag:'div',class:`${cssBase}__switch-wrapper`,children:{switchEventCatcher:{tag:'div',class:`${cssBase}__switch-event-catcher`,},switch:{component:OcMdSwitch,class:`${cssBase}__switch`,properties:{disabled:defaultProperties.disabled,selected:defaultProperties.selected}}}}},this.__internals.dom.metaWrapper);this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.elements.switch.base.attr('inert','')})}__initEvents(){super.__initEvents();this.__internals.dom.switchEventCatcher.on('click',e=>{e.preventDefault();e.stopPropagation();this.__onBase__click(e)})}__onBase__click(ev){super.__onBase__click(ev)}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,customMeta:true},cssFiles:{...inheritedDefaults.cssFiles,mdListitemSinglelineSelectableSwitch:{file:"md/listitem/singleLine/selectable/switch.css",key:"--loaded--md-listitem-singleline-selectable-switch"}}}}}Oc.OcMdListitemSinglelineSelectableSwitch=OcMdListitemSinglelineSelectableSwitch;"use strict";class OcMdListitemSinglelineSelectableRadio extends OcMdListitemSinglelineSelectable{constructor(properties){super(properties)}defaults(){return OcMdListitemSinglelineSelectableRadio.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,icon:{get:this.__getIcon.bind(this)},group:{get:this.__getGroup.bind(this),set:this.__setGroup.bind(this)}}}__setIcon(value){}__setLabel(value){super.__setLabel(value);this.__internals.elements.radioInput.value=this.__getValue()}__getGroup(){return this.properties.group}__setGroup(value){this.properties.group=value;this.__handleRadioInput()}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.__handleRadioInput()}__initElements(){super.__initElements();const cssBase='oc-md-listitem-singleline-selectable-radio';this.__internals.initElementsJobs.push(this.__createDOMNodes({graphic:{tag:'span',class:`${cssBase} mdc-deprecated-list-item__graphic`,children:{radioInput:{component:OcMdInputRadio,class:`${cssBase}__radio-input`}}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.graphic.insertBefore(this.__internals.dom.text);const labelId=`${this.refID}--label`;this.__internals.elements.radioInput.input.attr({'id':labelId,'aria-hidden':'true','tabindex':-1});this.__internals.dom.text.attr('for',labelId)},true))}__onStateChange__isSelected(){super.__onStateChange__isSelected();this.__handleRadioInput()}__handleRadioInput(){this.__deferOnce('__handleRadioInput',()=>{const isSelected=this.__internals.states.hasState(OcMdListitemSinglelineSelectableRadio.__states.isSelected);this.__internals.elements.radioInput.checked=isSelected;const group=this.__getGroup();this.__internals.elements.radioInput.input.attr('name',group);this.__onMdHtmlUpdate()})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,value:'',group:''},baseNodeRole:'radio',selectedListItemAttribute:"aria-checked"}}}Oc.OcMdListitemSinglelineSelectableRadio=OcMdListitemSinglelineSelectableRadio;"use strict";
1class OcMdListitemTwoline extends OcMdListitem{constructor(properties){super(properties)}defaults(){return OcMdListitemTwoline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,primaryText:{get:this.__getPrimaryText.bind(this),set:this.__setPrimaryText.bind(this)},secondaryText:{get:this.__getSecondaryText.bind(this),set:this.__setSecondaryText.bind(this)}}}__getPrimaryText(){return this.properties.primaryText}__setPrimaryText(value){if(typeof value=='string'){value=value.trim()};this.properties.primaryText=value;this.__handlePrimaryText();this.__handleAriaHandlerProperty()}__getSecondaryText(){return this.properties.secondaryText}__setSecondaryText(value){if(typeof value=='string'){value=value.trim()};this.properties.secondaryText=value;this.__handleSecondaryText();this.__handleAriaHandlerProperty()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.primaryText=this.__setPrimaryText;this.propertyHandlers.secondaryText=this.__setSecondaryText}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-listitem-twoline';this.__internals.initElementsJobs.push(this.__createDOMNodes({primaryText:{tag:'span',class:`${cssBase} mdc-deprecated-list-item__primary-text`},secondaryText:{tag:'span',class:`${cssBase} mdc-deprecated-list-item__secondary-text`}},this.__internals.dom.text));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}__handleAriaHandlerProperty(){super.__handleAriaHandlerProperty();const element=this.__internals.ariaHandler;if(!element){return};const ariaLabel=this.__getAriaLabel();if(!ariaLabel){let primaryText=this.__getPrimaryText();let secondaryText=this.__getSecondaryText();if(primaryText instanceof jQuery){primaryText=primaryText.text()}if(secondaryText instanceof jQuery){secondaryText=secondaryText.text()}const textFragments=[primaryText,secondaryText].filter(text=>text.length>0);const text=textFragments.join(' ');element.label=text}}__handlePrimaryText(){this.__deferOnce('__handlePrimaryText',()=>{this.__internals.dom.primaryText.html(this.properties.primaryText);this.__onMdHtmlUpdate()})}__handleSecondaryText(){this.__deferOnce('__handleSecondaryText',()=>{this.__internals.dom.secondaryText.html(this.properties.secondaryText);this.__onMdHtmlUpdate()})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,primaryText:'',secondaryText:''}}}}Oc.OcMdListitemTwoline=OcMdListitemTwoline;"use strict";class OcMdListitemTwolineAction extends OcMdListitemTwoline{constructor(properties){super(properties)}defaults(){return OcMdListitemTwolineAction.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,hasPopup:{get:this.__getHasPopup.bind(this),set:this.__setHasPopup.bind(this)}}}__getHasPopup(){return this.properties.hasPopup}__setHasPopup(value){this.properties.hasPopup=value;this.__handleAriaHandlerProperty()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.hasPopup=this.__setHasPopup}__initialize(properties){super.__initialize(properties)}__getAriaHandler(){return OcAriaRoleButton}__handleAriaHandlerProperty(){super.__handleAriaHandlerProperty();const ariaHandler=this.__internals.ariaHandler;if(!ariaHandler){return};const hasPopup=this.__getHasPopup();ariaHandler.hasPopup=hasPopup}__getBaseTag(){return'div'}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,hasPopup:null}}}}Oc.OcMdListitemTwolineAction=OcMdListitemTwolineAction;"use strict";class OcMdMenu extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdMenu.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,focusOnOpen:{get:this.__getFocusOnOpen.bind(this),set:this.__setFocusOnOpen.bind(this)},disableMdc:{get:this.__getDisableMdc.bind(this)},anchorNode:{get:this.__getAnchorNode.bind(this),set:this.__setAnchorNode.bind(this)},context:{get:this.__getContext.bind(this),set:this.__setContext.bind(this)}}}__getFocusOnOpen(){return this.properties.focusOnOpen}__setFocusOnOpen(value){this.properties.focusOnOpen=value;this.__handleMdcInstance()}__getDisableMdc(){return this.properties.disableMdc}__setDisableMdc(value){this.properties.disableMdc=value}__getAnchorNode(){return this.properties.anchorNode}__setAnchorNode(value){this.properties.anchorNode=value}__getContext(){return this.properties.context}__setContext(value){this.properties.context=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.focusOnOpen=this.__setFocusOnOpen;this.propertyHandlers.disableMdc=this.__setDisableMdc;this.propertyHandlers.anchorNode=this.__setAnchorNode;this.propertyHandlers.context=this.__setContext}__initialize(properties){super.__initialize(properties)}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdMenu.__states.HAS_FIXED_ANCHOR})}__initEvents(){super.__initEvents();OLEFA.events.listen('resize',this.__onResize.bind(this),this.refID);this.__internals.mutationObserverBase?.events.listen('attribute-change',this.__onMutationObserverBase__attributeChange.bind(this),this.refID)}__onResize(ev){this.__reposition()}__onMutationObserverBase__attributeChange(eventData){const oldValue=eventData.oldValue||'';this.__detectMenuOpenClose(oldValue,eventData.value)}__initElements(){super.__initElements();const cssBase='oc-md-menu';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.mutationObserverBase=OLEFA.mutations.createObserver({element:this.__internals.dom.base,event:`${this.refID}__base`,mutations:{attributeFilter:['class'],attributeOldValue:true}});this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-menu mdc-menu-surface`)}))}__onHtmlReady(){super.__onHtmlReady();if(!this.disableMdc){const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcMenu=new mdc.menu.MDCMenu(baseNode);this.__handleMdcInstance()}}}
1__focusOnOpenToMdcFocusState(focusOnOpen){const translationTable={'first-item':mdc.menu.DefaultFocusState.FIRST_ITEM,'last-item':mdc.menu.DefaultFocusState.LAST_ITEM,'list-root':mdc.menu.DefaultFocusState.LIST_ROOT,'none':mdc.menu.DefaultFocusState.NONE};return translationTable[focusOnOpen]}__handleMdcInstance(){const mdcMenu=this.__internals.mdcMenu;if(!mdcMenu){return};const focusOnOpen=this.__getFocusOnOpen();const translatedFocusOnOpen=this.__focusOnOpenToMdcFocusState(focusOnOpen);mdcMenu.setDefaultFocusState(translatedFocusOnOpen)};__detectMenuOpenClose(oldClassesString,newClassesString){const oldClasses=oldClassesString.split(' ');const newClasses=newClassesString.split(' ');OcArray.forEachChange(oldClasses,newClasses,{onAddition:className=>{if(className==OcMdMenu.__const.openCloseDetectionClass){this.__onMenuOpen()}},onRemoval:className=>{if(className==OcMdMenu.__const.openCloseDetectionClass){this.__onMenuClose()}}})}__reposition(){this.__deferOnce('reposition',()=>{OcCss.modifyTransform(this.__internals.dom.base,{translateX:0,translateY:0});const position=this.__internals.dom.base.get(0)?.getBoundingClientRect();if(position&&window.visualViewport){const transformValues={translateX:0,translateY:0};if(position.right>window.visualViewport.width){transformValues.translateX=-position.width}if(position.bottom>window.visualViewport.height){transformValues.translateY=-position.height}OcCss.modifyTransform(this.__internals.dom.base,transformValues)}this.__customAnchorbind()})}__onMenuOpen(){this.__reposition();this.__trigger__open()}__onMenuClose(){OcCss.modifyTransform(this.__internals.dom.base,{translateX:0,translateY:0});this.__trigger__close()}__customAnchorbind(){if(this.properties.anchorNode){const anchorNode=jQuery(this.properties.anchorNode);const fixedAnchorNode=anchorNode.parents(`.${OcMdMenu.cssClasses.fixedAnchor}`).first();const hasFixedAnchor=fixedAnchorNode.length>0;this.__internals.states.set(OcMdMenu.__states.HAS_FIXED_ANCHOR,hasFixedAnchor);if(hasFixedAnchor){const absolutePositionOfReferenceNodeInViewport=anchorNode.get(0)?.getBoundingClientRect();const absolutePositionOfFixedAnchorNodeInViewport=fixedAnchorNode.get(0)?.getBoundingClientRect();let appearAbove=false;if(absolutePositionOfReferenceNodeInViewport){const spaceAboveAnchor=absolutePositionOfReferenceNodeInViewport.top;const spaceBelowAnchor=window.innerHeight-absolutePositionOfReferenceNodeInViewport.bottom;appearAbove=spaceAboveAnchor>spaceBelowAnchor};let maxHeight;let top='auto';let bottom='auto';const marginFromViewportEdge=OLEFA.css.getMDUnit();let extraMarginForIos=0;if(OLEFA.environment.isIos){extraMarginForIos=80}if(appearAbove){const availableHeightAboveAnchor=absolutePositionOfReferenceNodeInViewport?.top||0;const positionOfAnchorNodeTop=absolutePositionOfReferenceNodeInViewport?.top||0;const positionOfFixedAnchorNodeBottom=absolutePositionOfFixedAnchorNodeInViewport?.bottom||0;bottom=`${positionOfFixedAnchorNodeBottom - positionOfAnchorNodeTop}px`;maxHeight=availableHeightAboveAnchor-marginFromViewportEdge-extraMarginForIos}else{const availableHeightBelowAnchor=window.innerHeight-(absolutePositionOfReferenceNodeInViewport?.bottom||0);const positionOfAnchorNodeBottom=absolutePositionOfReferenceNodeInViewport?.bottom||0;const positionOfFixedAnchorNodeTop=absolutePositionOfFixedAnchorNodeInViewport?.top||0;top=`${positionOfAnchorNodeBottom - positionOfFixedAnchorNodeTop}px`;maxHeight=availableHeightBelowAnchor-marginFromViewportEdge-extraMarginForIos}const maxWidth=window.innerWidth-(absolutePositionOfReferenceNodeInViewport?.left||0)-marginFromViewportEdge;const relativePosition=OcHtml.getRelativePositionBetweenElements(fixedAnchorNode,anchorNode);this.__internals.dom.base.css({top:top,bottom:bottom,left:relativePosition.left,'max-height':maxHeight,'max-width':`${maxWidth}px`,transform:'none'})}}else{this.__internals.states.add(OcMdMenu.__states.HAS_FIXED_ANCHOR,false)}}open(){Promise.all(this.__internals.initElementsJobs).then(()=>{if(this.__internals.mdcMenu){this.__internals.mdcMenu.open=true}}).catch(OcUtilities.doNothing)};openAbsolute(x,y,elevation){Promise.all(this.__internals.initElementsJobs).then(()=>
1{if(this.__internals.mdcMenu){this.__internals.mdcMenu.setAbsolutePosition(x,y);this.__internals.mdcMenu.open=true;if(elevation!==undefined){this.__internals.dom.base.css('z-index',elevation)}}}).catch(OcUtilities.doNothing)}openFixed(){Promise.all(this.__internals.initElementsJobs).then(()=>{if(this.__internals.mdcMenu){this.__internals.mdcMenu.setFixedPosition(true);this.__internals.mdcMenu.open=true}}).catch(OcUtilities.doNothing)}close(){Promise.all(this.__internals.initElementsJobs).then(()=>{if(this.__internals.mdcMenu){this.__internals.mdcMenu.open=false}}).catch(OcUtilities.doNothing)}fixPosition(){this.__reposition()}__trigger__open(){const event=new OcEvent({eventName:'open'});this.__internals.events.triggerEvent(event)}__trigger__close(){const event=new OcEvent({eventName:'close'});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,disableMdc:false,focusOnOpen:'list-root',anchorNode:null,context:null},cssFiles:{...inheritedDefaults.cssFiles,mdMenu:{file:"md/menu.css",key:"--loaded--md-menu"}}}}}OcMdMenu.__events={mdcMenuSelected:'MDCMenu:selected'};OcMdMenu.__const={openCloseDetectionClass:'mdc-menu-surface--open'};OcMdMenu.__states={...OcMdComponent.__states,HAS_FIXED_ANCHOR:'has-fixed-anchor'};OcMdMenu.cssClasses={fixedAnchor:'oc-md-menu--fixed-anchor',};Oc.OcMdMenu=OcMdMenu;"use strict";class OcMdMenuList extends OcMdMenu{constructor(properties){super(properties)}defaults(){return OcMdMenuList.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,list:{get:this.__getList.bind(this)}}}__getList(){return this.__internals.elements.list}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-menu-list';this.__internals.initElementsJobs.push(this.__createDOMNodes({list:{component:OcMdListSingleline,class:`${cssBase}__list`,properties:{disableMdc:true}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.elements.list.base.attr({tabindex:'-1'})}))}__initEvents__mdcMenu(mdcMenu){mdcMenu.listen(OcMdMenuList.__events.mdcMenuSelected,this.__onMdcMenu__MDCMenu_selected.bind(this,mdcMenu))}__onMdcMenu__MDCMenu_selected(mdcMenu,event){const selectedListItem=Oc.getInstanceFromElement(event.detail.item);if(!(selectedListItem instanceof OcMdListitemSingleline)){return};this.__trigger__select({listItem:selectedListItem,value:selectedListItem.value})}__onHtmlReady(){super.__onHtmlReady();if(this.__internals.mdcMenu){this.__initEvents__mdcMenu(this.__internals.mdcMenu)}}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}OcMdMenuList.const={events:{SELECT:'select'}};Oc.OcMdMenuList=OcMdMenuList;"use strict";class OcMdMenuSelectable extends OcMdMenu{constructor(properties){super(properties)}defaults(){return OcMdMenuSelectable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,list:{get:this.__getList.bind(this)},autoSort:{get:this.__getAutoSort.bind(this),set:this.__setAutoSort.bind(this)}}}__getList(){return this.__internals.elements.list}__getAutoSort(){return this.properties.autoSort}__setAutoSort(value){this.properties.autoSort=value;this.__internals.elements.list.autoSort=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.autoSort=this.__setAutoSort}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-menu-selectable';this.__internals.initElementsJobs.push(this.__createDOMNodes({list:{component:this.__getListConstructor(),class:`${cssBase}__list`,properties:{disableMdc:true,autoSort:true}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.elements.list.base.attr({tabindex:'-1'})}))}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`${OcMdMenu.__events.mdcMenuSelected}.${this.refID}`,this.__onBase__mdcMenuSelected.bind(this))}__onBase__mdcMenuSelected(ev){const listItem=jQuery(ev.originalEvent.detail.item).prop('olefa-object-reference');if(!listItem){return};this.__internals.elements.list.value=listItem.value;this.__trigger__selected({value:this.__internals.elements.list.value,listItem:listItem})}__trigger__selected(eventData){const event=new OcEvent({eventName:'selected',data:eventData});this.__internals.events.triggerEvent(event)}__getListConstructor(){return OcMdListSinglelineSelectableSingle}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,autoSort:false}}}}Oc.OcMdMenuSelectable=OcMdMenuSelectable;"use strict";
1class OcMdMenuSelectableSelect extends OcMdMenuSelectable{constructor(properties){super(properties)}defaults(){return OcMdMenuSelectableSelect.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-menu-selectable-select';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}__getListConstructor(){return OcMdListSinglelineSelectableSelect}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdMenuSelectableSelect=OcMdMenuSelectableSelect;"use strict";class OcMdNotchedOutline extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdNotchedOutline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,text:{get:this.__getText.bind(this),set:this.__setText.bind(this)},labelInstance:{get:this.__getLabelInstance.bind(this)}}}__getText(){return this.properties.text}__setText(value){this.properties.text=value;this.__internals.elements.label.text=this.properties.text;this.__internals.states.set(OcMdNotchedOutline.__states.hasLabel,this.properties.text.length>0)}__getLabelInstance(){return this.__internals.elements.label}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.text=this.__setText}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-notchedoutline';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'span'}}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({leading:{tag:'span',class:`${cssBase}__leading mdc-notched-outline__leading`},notch:{tag:'span',class:`${cssBase}__notch mdc-notched-outline__notch`,children:{label:{component:OcMdFloatinglabel,class:`${cssBase}__label`,properties:{disableMdc:true}}}},trailing:{tag:'span',class:`${cssBase}__trailing mdc-notched-outline__trailing`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-notched-outline`)},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdNotchedOutline.__states.hasLabel,onChange:this.__onStateChange__hasLabel.bind(this)})}__onStateChange__hasLabel(){this.__updateBaseNode()}__onHtmlReady(){super.__onHtmlReady();const el=this.__internals.dom.base.get(0);if(el){this.__internals.mdcNotchedOutline=new mdc["notched-outline"].MDCNotchedOutline(el)}}__updateBaseNode(){this.__deferOnce('__updateBaseNode',()=>{const hasLabel=this.__internals.states.hasState(OcMdNotchedOutline.__states.hasLabel);OcHtml.setClassIfTrue(!hasLabel,this.__internals.dom.base,mdc["notched-outline"].cssClasses.NO_LABEL)})}setLabel(label){this.__internals.label=label;label.appendTo(this.__internals.dom.notch);this.__internals.dom.base.removeClass('mdc-notched-outline--no-label')}unsetLabel(){this.__internals.label?.detach();this.__internals.dom.base.addClass('mdc-notched-outline--no-label')}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,text:''}}}}OcMdNotchedOutline.__states={...OcMdComponent.__states,hasLabel:'has-label'};Oc.OcMdInputTextOutlinedNotch=OcMdNotchedOutline;"use strict";class OcMdParser extends OcComponent{constructor(properties){super(properties)}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,observerRoot:{get:function(){return that.__getObserverRoot()},set:function(a){that.__setObserverRoot(a)}}};return extendedDefinitions};__setObserverRoot(observerRoot){this.properties.observerRoot=observerRoot;this.__initObserver()};__getObserverRoot(){return this.properties.observerRoot};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.parserHandlers={'BUTTON-STANDARD':{handler:this.__parse__basic.bind(this),obj:OcMdButtonStandard},'BUTTON-STANDARD-HOLD':{handler:this.__parse__basic.bind(this),obj:OcMdButtonStandardHold},'BUTTON-FLOATING-ACTION':{handler:this.__parse__basic.bind(this),obj:OcMdButtonFloatingaction},'BUTTON-SEGMENTED-MULTI':{handler:this.__parse__segmented_button.bind(this),obj:OcMdButtonSegmentedMulti},'INPUT-TEXT-FILLED':{handler:this.__parse__basic.bind(this),obj:OcMdInputTextFilled},'INPUT-TEXT-PASSWORDFILLED':{handler:this.__parse__basic.bind(this),obj:OcMdInputTextPasswordFilled},'INPUT-TEXT-EMAILFILLEDCHECKED':{handler:this.__parse__basic.bind(this),obj:OcMdInputTextEmailFilledChecked},'INPUT-TEXT-OLEFAUSERNAMEFILLED':{handler:this.__parse__basic.bind(this),obj:OcMdInputTextOLEFAUsernameFilled},'INPUT-TEXT-OLEFAPASSWORDFILLED':{handler:this.__parse__basic.bind(this),obj:OcMdInputTextOLEFApasswordFilled},'INPUT-MULTICOMPLETE-FILLED':{handler:this.__parse__basic.bind(this),obj:OcMdInputTextSuggestionsFilled},'INPUT-SELECT-FILLED':{handler:this.__parse__select.bind(this),obj:OcMdInputSelectFilled},'INPUT-COLOR-RGB-FILLED':{handler:this.__parse__color.bind(this),obj:OcMdInputColorRgbFilled},'INPUT-CHECKBOX':{handler:this.__parse__basic.bind(this),obj:OcMdInputCheckbox},'INPUT-RADIO':{handler:this.__parse__basic.bind(this),obj:OcMdInputRadio},'FORMFIELD':{handler:this.__parse__formfield.bind(this),obj:OcMdFormfield},'LIST-SINGLELINE':{handler:this.__parse__list.bind(this),obj:OcMdListSingleline},'LIST-SINGLELINE-SELECTABLE-SINGLE':{handler:this.__parse__list.bind(this),obj:OcMdListSinglelineSelectableSingle},'LIST-SINGLELINE-SELECTABLE-MULTI':{handler:this.__parse__list.bind(this),obj:OcMdListSinglelineSelectableMulti},'TAB-CONTAINER':{handler:this.__parse__tabContainer.bind(this),obj:OcMdTabcontainerUnderline},'BUTTON-SEGMENTED-SINGLE':{handler:this.__parse__segmented_button.bind(this),obj:OcMdButtonSegmentedSingle}};this.propertyHandlers.observerRoot=this.__setObserverRoot};__initialize(properties){this.__initProperties(properties)};
1__initObserver(){this.__destroyObserver();if(!this.__getObserverRoot()){return};this.__internals.observer=OLEFA.mutations.createObserver({event:this.refID,element:this.__getObserverRoot(),mutations:{childList:true,subtree:true}});this.__initEvents__observer()};__initEvents__observer(){if(this.__internals.observer){this.__internals.observer.events.listen('childlist-added',this.__onObserver__childListAdded.bind(this))}};__onObserver__childListAdded(node){const that=this;const tags=this.__findSupportedMDTags(node.node);tags.each(function(){that.__onNewElement({node:this})})};__destroyObserver(){if(this.__internals.observer){OLEFA.mutations.destroyObserver(this.refID);delete this.__internals.observer}};__onNewElement(data){const jNode=jQuery(data.node);const tagName=jNode.prop('tagName');if(!tagName){return};jQuery(data.node).find('');const regexpResult=tagName.match(/^OC-MD-(.*)$/u);if(!regexpResult){return};const type=regexpResult[1];if(this.__internals.parserHandlers[type]){this.__internals.parserHandlers[type].handler(jNode,type)}};__parse__basic(jNode,type){const attributes=OLEFA.basics.getAllSetAttributesFromElement(jNode);const properties=OcObject.copy(attributes);const that=this;jNode.children().each(function(){const property=jQuery(this).attr('property');if(property){properties[property]=that.__parseTag(this)}});const content=jNode.children('content').detach();const Element=new this.__internals.parserHandlers[type].obj(properties);if(typeof(attributes.class)!='undefined'){Element.base.addClass(attributes.class);delete attributes.class};Element.base.attr(attributes).append(content.html());jNode.replaceWith(Element.base)};__parse__select(jNode,type){const attributes=OLEFA.basics.getAllSetAttributesFromElement(jNode);const properties=OcObject.copy(attributes);const that=this;properties['options']=[];jNode.children().each(function(){const property=jQuery(this).attr('property');if(property){if(property=='options'){const options=that.__parseTag(this);for(const option of options){properties['options'].push(new OcMdListitemSinglelineSelectableSelect(option))}}else{properties[property]=that.__parseTag(this)}}});const content=jNode.children('content').detach();const Element=new this.__internals.parserHandlers[type].obj(properties);if(typeof(attributes.class)!='undefined'){Element.base.addClass(attributes.class);delete attributes.class};Element.base.attr(attributes).append(content.html());jNode.replaceWith(Element.base)};__parse__color(jNode,type){const attributes=OLEFA.basics.getAllSetAttributesFromElement(jNode);const properties=OcObject.copy(attributes);const that=this;jNode.children().each(function(){const property=jQuery(this).attr('property');if(property){if(property=='value'){const rgb=OcDatatype.hexToRGB(that.__parseTag(this));if(rgb){properties.red=rgb.red;properties.green=rgb.green;properties.blue=rgb.blue}}else{properties[property]=that.__parseTag(this)}}});const content=jNode.children('content').detach();const Element=new this.__internals.parserHandlers[type].obj(properties);if(typeof(attributes.class)!='undefined'){Element.base.addClass(attributes.class);delete attributes.class};Element.base.attr(attributes).append(content.html());jNode.replaceWith(Element.base)};__parse__tabContainer(jNode,type){const attributes=OLEFA.basics.getAllSetAttributesFromElement(jNode);const properties=OcObject.copy(attributes);const that=this;properties['tabs']=[];jNode.children().each(function(){const property=jQuery(this).attr('property');if(property){if(property=='tabs'){const options=that.__parseTag(this);for(const option of options){properties['tabs'].push({tab:new OcMdTabUnderline(option.tab),content:jQuery(option.content)})}}else{properties[property]=that.__parseTag(this)}}});const content=jNode.children('content').detach();const Element=new this.__internals.parserHandlers[type].obj(properties);if(typeof(attributes.class)!='undefined'){Element.base.addClass(attributes.class);delete attributes.class};Element.base.attr(attributes).append(content.html());jNode.replaceWith(Element.base)};__parse__formfield(jNode,type){const attributes=OLEFA.basics.getAllSetAttributesFromElement(jNode);const properties=OcObject.copy(attributes);const that=this;properties['input']=undefined;jNode.children().each(function(){const property=jQuery(this).attr('property');if(property){if(property=='input'){const options=that.__parseTag(this);if(options.type=='radio'){properties['input']=new OcMdInputRadio(options)}else if(options.type=='checkbox'){properties['input']=new OcMdInputCheckbox(options)}}else{properties[property]=that.__parseTag(this)}}});const content=jNode.children('content').detach();const Element=new this.__internals.parserHandlers[type].obj(properties);if(typeof(attributes.class)!='undefined'){Element.base.addClass(attributes.class);delete attributes.class};Element.base.attr(attributes).append(content.html());jNode.replaceWith(Element.base)};__parse__list(jNode,type){const attributes=OLEFA.basics.getAllSetAttributesFromElement(jNode);const properties=OcObject.copy(attributes);const that=this;let itemConstructor;switch(type){case'LIST-SINGLELINE-SELECTABLE-SINGLE':case'LIST-SINGLELINE-SELECTABLE-MULTI':itemConstructor=OcMdListitemSinglelineSelectable;break;default:itemConstructor=OcMdListitemSingleline;break}properties['items']=[];jNode.children().each(function(){const property=jQuery(this).attr('property');if(property){if(property=='items'){const options=that.__parseTag(this);for(const option of options){properties['items'].push(new itemConstructor(option))}}else{properties[property]=that.__parseTag(this)}}});const content=jNode.children('content').detach();const Element=new this.__internals.parserHandlers[type].obj(properties);if(typeof(attributes.class)!='undefined'){Element.base.addClass(attributes.class);delete attributes.class};Element.base.attr(attributes).append(content.html());jNode.replaceWith(Element.base)};__parse__segmented_button(jNode,type){const attributes=OLEFA.basics.getAllSetAttributesFromElement(jNode);const properties=OcObject.copy(attributes);const that=this;properties['buttons']=[];jNode.children().each(function(){const property=jQuery(this).attr('property');if(property){switch(property){case'buttons':const buttons=that.__parseTag(this);for(const button of buttons){if('selected'in button&&button.selected){button.selected=true}properties['buttons'].push(new OcMdButtonSegmentedSegmentSingle(button))}break;case'required':case'hideLabels':properties[property]=Boolean(Number(that.__parseTag(this)));break;default:{properties[property]=that.__parseTag(this)}}}});const content=jNode.children('content').detach();//@ts-expect-error 2const Element=new this.__internals.parserHandlers[type].obj(properties);if(typeof(attributes.class)!='undefined'){Element.base.addClass(attributes.class);delete attributes.class};Element.base.attr(attributes).append(content.html());jNode.replaceWith(Element.base)}__parseTag(tag){let result=null;const that=this;const jTag=jQuery(tag);switch(tag.tagName){case'OBJECT':result={};jQuery(jTag).children().each(function(){const property=jQuery(this).attr('property');if(property){result[property]=that.__parseTag(this)}});break;case'ARRAY':result=[];jQuery(jTag).children().each(function(){if(this.tagName=='ITEM'||this.tagName=='OBJECT'){result.push(that.__parseTag(this))}});break;case'VALUE':default:result=tag.innerHTML;break};return result};forceCheck(){const that=this;const tags=this.__findSupportedMDTags(this.observerRoot);tags.each(function(){that.__onNewElement({node:this})})};__findSupportedMDTags(nodeSelector){const node=jQuery(nodeSelector).get(0);let matchingCandidates=[];if(!(node instanceof HTMLElement)){return jQuery(matchingCandidates)};const possibleCandidates=Array.from(node.querySelectorAll('*')).filter(el=>el.tagName.toLowerCase().startsWith('oc-md-'));for(var key in this.__internals.parserHandlers){const keyCandidates=possibleCandidates.filter(element=>element.tagName.toLowerCase()==`oc-md-${key.toLowerCase()}`);for(const candidate of keyCandidates){if(candidate instanceof HTMLElement){matchingCandidates.push(candidate)}}};return jQuery(matchingCandidates)};destroy(){this.__destroyObserver();super.destroy()};defaults(){return OcMdParser.defaults()}static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,observerRoot:'body'}};return extendedData}}Oc.OcMdParser=OcMdParser;"use strict";
2class OcMdProgressbarLinear extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdProgressbarLinear.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,determinate:{get:this.__getDeterminate.bind(this),set:this.__setDeterminate.bind(this)},progress:{get:this.__getProgress.bind(this),set:this.__setProgress.bind(this)},buffer:{get:this.__getBuffer.bind(this),set:this.__setBuffer.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)}}}__getVisible(){return this.properties.visible}__setVisible(value){this.properties.visible=value;this.__handleMdProgressbar()}__getDeterminate(){return this.properties.determinate}__setDeterminate(value){this.properties.determinate=value;this.__handleMdProgressbar()}__getProgress(){return this.properties.progress}__setProgress(value){if(!Number.isFinite(value)){return};this.properties.progress=OcUtilities.clamp(OcMdProgressbarLinear.valueBoundaries.min,value,OcMdProgressbarLinear.valueBoundaries.max);this.__handleMdProgressbar()}__getBuffer(){return this.properties.buffer}__setBuffer(value){if(!Number.isFinite(value)){return};this.properties.buffer=OcUtilities.clamp(OcMdProgressbarLinear.valueBoundaries.min,value,OcMdProgressbarLinear.valueBoundaries.max);this.__handleMdProgressbar()}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__deferOnce('__setLabel',()=>{this.__internals.dom.base.attr({'aria-label':this.properties.label})})}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.determinate=this.__setDeterminate;this.propertyHandlers.progress=this.__setProgress;this.propertyHandlers.buffer=this.__setBuffer;this.propertyHandlers.label=this.__setLabel}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-progressbar-linear';if(!this.__internals.dom.base.length){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({buffer:{tag:'div',class:`${cssBase}__buffer mdc-linear-progress__buffer`,children:{bufferBar:{tag:'div',class:`${cssBase}__buffer-bar mdc-linear-progress__buffer-bar`},bufferDots:{tag:'div',class:`${cssBase}__buffer-dots mdc-linear-progress__buffer-dots`}}},primaryBar:{tag:'div',class:`${cssBase}__primary-bar mdc-linear-progress__bar mdc-linear-progress__primary-bar`,children:{primaryBarInner:{tag:'span',class:`${cssBase}__primary-bar-inner mdc-linear-progress__bar-inner`}}},secondaryBar:{tag:'div',class:`${cssBase}__secondary-bar mdc-linear-progress__bar mdc-linear-progress__secondary-bar`,children:{secondaryBarInner:{tag:'span',class:`${cssBase}__secondary-bar-inner mdc-linear-progress__bar-inner`}}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-linear-progress`).attr({role:'progressbar'})},true))}__onHtmlReady(){super.__onHtmlReady();const el=this.__internals.dom.base.get(0);if(!el){return};this.__internals.mdProgressbar=new mdc['linear-progress'].MDCLinearProgress(el);this.__handleMdProgressbar()}__handleMdProgressbar(){this.__deferOnce('__handleMdPogressbar',()=>{if(!this.__internals.mdProgressbar){return};if(this.properties.visible){this.__internals.mdProgressbar.open()}else{this.__internals.mdProgressbar.close()}this.__internals.mdProgressbar.determinate=this.properties.determinate;this.__internals.mdProgressbar.progress=this.properties.progress;this.__internals.mdProgressbar.buffer=this.properties.buffer})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,visible:true,determinate:true,progress:0,buffer:1,label:''}}}}OcMdProgressbarLinear.valueBoundaries={min:0,max:1};Oc.OcMdProgressbarLinear=OcMdProgressbarLinear;"use strict";class OcMdSnackbar extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdSnackbar.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,message:{get:this.__getMessage.bind(this),set:this.__setMessage.bind(this)},timeout:{get:this.__getTimeout.bind(this),set:this.__setTimeout.bind(this)},position:{get:this.__getPosition.bind(this),set:this.__setPosition.bind(this)},actionLabel:{get:this.__getActionLabel.bind(this),set:this.__setActionLabel.bind(this)},actionData:{get:this.__getActionData.bind(this),set:this.__setActionData.bind(this)},type:{get:this.__getType.bind(this),set:this.__setType.bind(this)}}}__getMessage(){return this.properties.message}__setMessage(value){this.properties.message=value;this.__updateMdcSnackbar()}__getTimeout(){return this.properties.timeout}__setTimeout(value){if(value==OcMdSnackbar.timeout.disabled){this.properties.timeout=value}else{this.properties.timeout=OcUtilities.clamp(OcMdSnackbar.timeout.min,value,OcM
2dSnackbar.timeout.max)}this.__updateMdcSnackbar()}__getPosition(){return this.properties.position}__setPosition(value){this.properties.position=value;this.__internals.states.set(OcMdSnackbar.__states.autoPosition,this.properties.position=='auto');this.__updateBaseNode()}__getActionLabel(){return this.properties.actionLabel}__setActionLabel(value){this.properties.actionLabel=value;this.__internals.elements.action.label=this.properties.actionLabel;this.__internals.states.set(OcMdSnackbar.__states.hasAction,this.properties.actionLabel.length>0)}__getActionData(){return this.properties.actionData}__setActionData(value){this.properties.actionData=value}__getType(){return this.properties.type}__setType(value){this.properties.type=value;this.__updateBaseNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.message=this.__setMessage;this.propertyHandlers.timeout=this.__setTimeout;this.propertyHandlers.position=this.__setPosition;this.propertyHandlers.actionLabel=this.__setActionLabel;this.propertyHandlers.actionData=this.__setActionData;this.propertyHandlers.type=this.__setType}__initialize(properties){super.__initialize(properties);this.__updateBaseNode();this.__updateSurfaceNode();this.__updateActionsNode()}__initElements(){super.__initElements();const cssBase='oc-md-snackbar';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'aside'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({surface:{tag:'div',class:`${cssBase}__surface mdc-snackbar__surface`,attributes:{'aria-relevant':'additions'},children:{label:{tag:'div',class:`${cssBase}__label mdc-snackbar__label`,attributes:{'aria-atomic':'false'}}}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.__createDOMNodes({actions:{tag:'div',class:`${cssBase}__actions mdc-snackbar__actions`,attributes:{'aria-atomic':'true'},children:{action:{component:OcMdButtonStandard,class:`${cssBase}__action mdc-snackbar__action`,properties:{disableMdcRipple:true}}}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-snackbar`)},true))};__initStates(){super.__initStates();this.__internals.states.define({state:OcMdSnackbar.__states.autoPosition,onChange:this.__onStatesChange__autoPosition.bind(this)}).define({state:OcMdSnackbar.__states.hasAction,onChange:this.__onStateChange__hasAction.bind(this)})}__onStatesChange__autoPosition(){const hasAutoPosition=this.__internals.states.hasState(OcMdSnackbar.__states.autoPosition);if(hasAutoPosition){this.__initEvents__layoutWatcher()}else{this.__cancelEvents__layoutWatcher()}};__onStateChange__hasAction(){this.__updateActionsNode()}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`MDCSnackbar:opening`,this.__onBase__MdcSnackbar__opening.bind(this)).on(`MDCSnackbar:opened`,this.__onBase__MdcSnackbar__opened.bind(this)).on(`MDCSnackbar:closing`,this.__onBase__MdcSnackbar__closing.bind(this)).on(`MDCSnackbar:closed`,this.__onBase__MdcSnackbar__closed.bind(this));this.__internals.elements.action.events.listen('click',this.__onAction__click.bind(this),this.refID)};__onBase__MdcSnackbar__opening(){this.__trigger__opening()}__onBase__MdcSnackbar__opened(){this.__trigger__opened()}__onBase__MdcSnackbar__closing(){this.__trigger__closing()}__onBase__MdcSnackbar__closed(){this.__trigger__closed()}__onAction__click(ev){const data=this.__getActionData();this.__trigger__action(data)}__initEvents__layoutWatcher(){OLEFA.layoutWatcher.device;OLEFA.layoutWatcher.events.listen('device-type-change',this.__onLayoutWatcher__deviceTypeChange.bind(this),this.refID)}__onLayoutWatcher__deviceTypeChange(ev){this.__updateBaseNode()}__cancelEvents__layoutWatcher(){OLEFA.layoutWatcher.events.cancelAllFromScope(this.refID)}__onHtmlReady(){super.__onHtmlReady();const node=this.__internals.dom.base.get(0);if(node){this.__internals.mdcSnackbar=new mdc.snackbar.MDCSnackbar(node);this.__updateMdcSnackbar()}}__updateMdcSnackbar(){this.__deferOnce('__updateMdcSnackbar',()=>{if(!this.__internals.mdcSnackbar){return};const message=this.__getMessage();this.__internals.mdcSnackbar.labelText=message;const timeout=this.__getTimeout();this.__internals.mdcSnackbar.timeoutMs=timeout})}__updateBaseNode(){this.__deferOnce('__updateBaseNode',()=>{const node=this.__internals.dom.base;let shouldSnackbarBeLeading;const autoPosition=this.__internals.states.hasState(OcMdSnackbar.__states.autoPosition);if(autoPosition){const isTabletOrLarger=OLEFA.layoutWatcher.deviceType>=OLEFA.layoutWatcher.defaults().deviceTypes.TABLET;shouldSnackbarBeLeading=isTabletOrLarger}else{const position=this.__getPosition();shouldSnackbarBeLeading=(position=='leading')}OcHtml.setClassIfTrue(shouldSnackbarBeLeading,node,'mdc-snackbar--leading')}
2)}__updateSurfaceNode(){this.__deferOnce('__updateSurfaceNode',()=>{const node=this.__internals.dom.surface;const snackbarType=this.__getType();let role;switch(snackbarType){case'alert':role='alert';break;case'status':default:role='status';break}node.attr('role',role)})}__updateActionsNode(){this.__deferOnce('__updateActionsNode',()=>{const node=this.__internals.dom.actions;const hasAction=this.__internals.states.hasState(OcMdSnackbar.__states.hasAction);if(hasAction){node.insertAfter(this.__internals.dom.label)}else{node.detach()}})}show(){this.__internals.initElementsDone.then(()=>{this.__internals.mdcSnackbar?.open()})}__trigger__action(eventData){const event=new OcEvent({eventName:'action',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__closed(){const event=new OcEvent({eventName:'closed'});this.__internals.events.triggerEvent(event)}__trigger__closing(){const event=new OcEvent({eventName:'closing'});this.__internals.events.triggerEvent(event)}__trigger__opened(){const event=new OcEvent({eventName:'opened'});this.__internals.events.triggerEvent(event)}__trigger__opening(){const event=new OcEvent({eventName:'opening'});this.__internals.events.triggerEvent(event)}destroy(){this.__cancelEvents__layoutWatcher();super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,message:'',timeout:5000,position:'auto',actionLabel:'',actionData:{},type:'status'}}}}OcMdSnackbar.__states={...OcMdComponent.__states,autoPosition:'auto-position',hasAction:'has-action'};OcMdSnackbar.timeout={min:4000,max:10000,disabled:-1};Oc.OcMdSnackbar=OcMdSnackbar;"use strict";class OcMdSwitch extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdSwitch.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},selected:{get:this.__getSelected.bind(this),set:this.__setSelected.bind(this)}}}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__updateMdcSwitch()}__getSelected(){return this.properties.selected}__setSelected(value){this.properties.selected=value;this.__internals.states.set(OcMdSwitch.__states.isSelected,this.properties.selected)}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.selected=this.__setSelected}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-switch';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'button'}}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({track:{tag:'div',class:`${cssBase}__track mdc-switch__track`},handleTrack:{tag:'div',class:`${cssBase}__handle-track mdc-switch__handle-track`,children:{handle:{tag:'div',class:`${cssBase}__handle mdc-switch__handle`,children:{shadow:{tag:'div',class:`${cssBase}__shadow mdc-switch__shadow`,children:{elevationOverlay:{tag:'div',class:`${cssBase}__elevation-overlay mdc-elevation-overlay`}}},ripple:{tag:'div',class:`${cssBase}__ripple mdc-switch__ripple`},icons:{tag:'div',class:`${cssBase}__icons mdc-switch__icons`}}}}},focusRingWrapper:{tag:'span',class:`${cssBase}__focus-ring-wrapper mdc-switch__focus-ring-wrappper`,children:{focusRing:{tag:'div',class:`${cssBase}__focus-ring mdc-switch__focus-ring`}}}},this.__internals.dom.base));this.__internals.dom.iconOn=jQuery('<svg class="mdc-switch__icon mdc-switch__icon--on" viewBox="0 0 24 24"><path d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z" /></svg>');this.__internals.dom.iconOff=jQuery('<svg class="mdc-switch__icon mdc-switch__icon--off" viewBox="0 0 24 24"><path d="M20 13H4v-2h16v2z" /></svg>');this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-switch`).attr({type:'button',role:'switch'});this.__internals.dom.iconOn.appendTo(this.__internals.dom.icons);this.__internals.dom.iconOff.appendTo(this.__internals.dom.icons)},true));this.__internals.mutationObserver=OLEFA.mutations.createObserver({element:this.__internals.dom.base,event:`${this.refID}--mutation`,mutations:{attributes:true,attributeFilter:['aria-checked'],attributeOldValue:true}})}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdSwitch.__states.isSelected,onChange:this.__onStateChange__isSelected.bind(this)})}__onStateChange__isSelected(){this.__updateMdcSwitch();const isSelected=this.__internals.states.hasState(OcMdSwitch.__states.isSelected);this.__trigger__toggle({selected:isSelected})}__initEvents(){super.__initEvents();this.__internals.mutationObserver?.events.listen('attribute-change',this.__onMutationObserver__attributeChange.bind(this),this.refID)}__onMutationObserver__attributeChange(ev){const isSelected=ev.value=='true';this.__setSelected(isSelected)}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){const selected=this.__getSelected();OcHtml.setClassIfTrue(selected,baseNode,'mdc-switch--selected');baseNode.setAttribute('aria-checked',selected?'true':'false');this.__internals.mdcSwitch=new mdc.switch.MDCSwitch(baseNode);this.__updateMdcSwitch()}}__updateMdcSwitch(){this.__deferOnce('__updateMdcSwitch',()=>{if(!this.__internals.mdcSwitch){return}const isDisabled=this.__getDisabled();this.__internals.mdcSwitch.disabled=isDisabled;const isSelected=this.__getSelected();this.__internals.mdcSwitch.selected=isSelected})}__trigger__toggle(eventData){const event=new OcEvent({eventName:'toggle',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){OLEFA.mutations.destroyObserver(`${this.refID}--mutation`);super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,disabled:false,selected:false}}}}OcMdSwitch.__states={...OcMdComponent.__states,isSelected:'is-selected'};Oc.OcMdSwitch=OcMdSwitch;"use strict";
2class OcMdTab extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdTab.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},stacked:{get:this.__getStacked.bind(this),set:this.__setStacked.bind(this)},minWidth:{get:this.__getMinWidth.bind(this),set:this.__setMinWidth.bind(this)},controls:{get:this.__getControls.bind(this),set:this.__setControls.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__updateLabelNode()}__getIcon(){return this.properties.icon}__setIcon(value){this.properties.icon=value;this.__updateIconInstance()}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value}__getStacked(){return this.properties.stacked}__setStacked(value){this.properties.stacked=value;this.__internals.states.set(OcMdTab.__states.IS_STACKED,this.properties.stacked)}__getMinWidth(){return this.properties.minWidth}__setMinWidth(value){this.properties.minWidth=value;this.__internals.states.set(OcMdTab.__states.MIN_WIDTH,this.properties.minWidth)}__getControls(){return this.properties.controls}__setControls(value){this.properties.controls=value;this.__updateBaseNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.value=this.__setValue;this.propertyHandlers.stacked=this.__setStacked;this.propertyHandlers.minWidth=this.__setMinWidth}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tab';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'button',attributes:{type:'button'}}}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({content:{tag:'span',class:`${cssBase}__content mdc-tab__content`,children:{textLabel:{tag:'span',class:`${cssBase}__text-label mdc-tab__text-label`}}},ripple:{tag:'span',class:`${cssBase}__ripple mdc-tab__ripple`},focusRing:{tag:'div',class:`${cssBase}__focus-ring`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-tab`).attr({'role':'tab','aria-selected':'false'})},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdTab.__states.IS_STACKED,onChange:this.__onStateChange__isStacked.bind(this)}).define({state:OcMdTab.__states.MIN_WIDTH,onChange:this.__onStateChange__minWidth.bind(this)})}__onStateChange__isStacked(){this.__updateBaseNode()}__onStateChange__minWidth(){this.__updateBaseNode()}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`MDCTab:interacted.${this.refID}`,this.__onBase__mdcTab__interacted.bind(this))}__onBase__mdcTab__interacted(ev){this.__trigger__interaction(ev.originalEvent.detail)}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcTab=new mdc.tab.MDCTab(baseNode)}}__updateBaseNode(){this.__deferOnce('__updateBaseNode',()=>{const node=this.__internals.dom.base;const isStacked=this.__internals.states.hasState(OcMdTab.__states.IS_STACKED);OcHtml.setClassIfTrue(isStacked,node,'mdc-tab--stacked');const minWidth=this.__internals.states.hasState(OcMdTab.__states.MIN_WIDTH);OcHtml.setClassIfTrue(minWidth,node,'mdc-tab--min-width');const controls=this.__getControls();OcHtml.setAttributeIfTrue(controls.length>0,node,'aria-controls',controls)})}__updateLabelNode(){this.__deferOnce('__updateLabelNode',()=>{const node=this.__internals.dom.textLabel;const label=this.__getLabel();node.text(label)})}__updateIconInstance(){this.__deferOnce('__updateIconInstance',()=>{if(this.__internals.icon){this.__internals.icon.destroy();delete this.__internals.icon}const fontIcon=OcMd.createFontIcon(this.properties.icon);if(fontIcon){this.__internals.icon=fontIcon;fontIcon.base.addClass(`oc-md-tab__icon mdc-tab__icon`).attr({'aria-hidden':'true'}).insertBefore(this.__internals.dom.textLabel)}})}__trigger__interaction(eventData){const event=new OcEvent({eventName:'interaction',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',icon:'',value:'',stacked:false,minWidth:false,controls:''}}}}OcMdTab.__states={...OcMdComponent.__states,IS_STACKED:'is-stacked',MIN_WIDTH:'min-width'};Oc.OcMdTab=OcMdTab;"use strict";
2class OcMdTabIcon extends OcMdTab{constructor(properties){super(properties)}defaults(){return OcMdTabIcon.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,indicatorIcon:{get:this.__getIndicatorIcon.bind(this),set:this.__setIndicatorIcon.bind(this)},indicatorAnimation:{get:this.__getIndicatorAnimation.bind(this),set:this.__setIndicatorAnimation.bind(this)}}}__getIndicatorIcon(){return this.properties.indicatorIcon}__setIndicatorIcon(value){this.properties.indicatorIcon=value;this.__internals.elements.indicator.icon=this.properties.indicatorIcon}__getIndicatorAnimation(){return this.properties.indicatorAnimation}__setIndicatorAnimation(value){this.properties.indicatorAnimation=value;this.__internals.elements.indicator.animation=this.properties.indicatorAnimation}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.indicatorIcon=this.__setIndicatorIcon;this.propertyHandlers.indicatorAnimation=this.__setIndicatorAnimation}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tab-icon';this.__internals.initElementsJobs.push(this.__createDOMNodes({indicator:{component:OcMdTabIndicatorIcon,class:`${cssBase}__indicator`,properties:{disableMdcTabIndicator:true}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.elements.indicator.base.insertAfter(this.__internals.dom.content)},true))}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,indicatorIcon:'',indicatorAnimation:OcMdTabIcon.animations.SLIDE}}}}OcMdTabIcon.animations={FADE:'fade',SLIDE:'slide'};Oc.OcMdTabIcon=OcMdTabIcon;"use strict";class OcMdTabUnderline extends OcMdTab{constructor(properties){super(properties)}defaults(){return OcMdTabUnderline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tab-underline';this.__internals.initElementsJobs.push(this.__createDOMNodes({indicator:{component:OcMdTabIndicatorUnderline,class:`${cssBase}__indicator`,properties:{disableMdcTabIndicator:true}}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.elements.indicator.base.insertAfter(this.__internals.dom.content)},true))}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdTabUnderline=OcMdTabUnderline;"use strict";class OcMdTabIndicator extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdTabIndicator.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,disableMdcTabIndicator:{get:this.__getDisableMdcTabIndicator.bind(this)}}}__getDisableMdcTabIndicator(){return this.properties.disableMdcTabIndicator}__setDisableMdcTabIndicator(value){this.properties.disableMdcTabIndicator=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.disableMdcTabIndicator=this.__setDisableMdcTabIndicator}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tab-indicator';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'span'}}))}this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-tab-indicator`)},true))}__onHtmlReady(){super.__onHtmlReady();const disableMdcTabIndicator=this.__getDisableMdcTabIndicator();if(!disableMdcTabIndicator){const node=this.__internals.dom.base.get(0);if(node){this.__internals.mdcTabIndicator=new mdc["tab-indicator"].MDCTabIndicator(node)}}}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,disableMdcTabIndicator:false}}}}Oc.OcMdTabIndicator=OcMdTabIndicator;"use strict";
2class OcMdTabIndicatorIcon extends OcMdTabIndicator{constructor(properties){super(properties)}defaults(){return OcMdTabIndicatorIcon.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},animation:{get:this.__getAnimation.bind(this),set:this.__setAnimation.bind(this)}}}__getIcon(){return this.properties.icon}__setIcon(value){this.properties.icon=value;this.__updateIconNode()}__getAnimation(){return this.properties.animation}__setAnimation(value){this.properties.animation=value;this.__updateBaseNode()}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tab-indicator-icon';this.__internals.initElementsJobs.push(this.__createDOMNodes({content:{tag:'span',class:`${cssBase}__content mdc-tab-indicator__content mdc-tab-indicator__content--underline`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.content.hide()},true))}__updateBaseNode(){this.__deferOnce('__updateBaseNode',()=>{const node=this.__internals.dom.base;const animation=this.__getAnimation();const useFadeAnimation=animation=='fade';OcHtml.setClassIfTrue(useFadeAnimation,node,'mdc-tab-indicator--fade')})}__updateIconNode(){this.__deferOnce('__updateIconNode',()=>{if(this.__internals.icon){this.__internals.icon.destroy();delete this.__internals.icon};const iconString=this.__getIcon();if(iconString){const iconInstance=OcMd.createFontIcon(iconString);if(iconInstance){this.__internals.icon=iconInstance;this.__internals.icon.base.addClass('mdc-tab-indicator__content mdc-tab-indicator__content--icon').attr({'aria-hidden':'true'}).appendTo(this.__internals.dom.base)}}})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,icon:'',animation:OcMdTabIndicatorIcon.animations.SLIDE}}}}OcMdTabIndicatorIcon.animations={SLIDE:'slide',FADE:'fade'};Oc.OcMdTabIndicatorIcon=OcMdTabIndicatorIcon;"use strict";class OcMdTabIndicatorUnderline extends OcMdTabIndicator{constructor(properties){super(properties)}defaults(){return OcMdTabIndicatorUnderline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tab-indicator-underline';this.__internals.initElementsJobs.push(this.__createDOMNodes({content:{tag:'span',class:`${cssBase}__content mdc-tab-indicator__content mdc-tab-indicator__content--underline`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcMdTabIndicatorUnderline=OcMdTabIndicatorUnderline;"use strict";class OcMdTabcontainer extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdTabcontainer.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,tabs:{get:this.__getTabs.bind(this)}}}__getTabs(){return{...this.__internals.tabs}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.tabs={};this.propertyHandlers.tabs=this.addTab}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tabcontainer';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({content:{tag:'div',class:`${cssBase}__content`}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}__onTabBar__activate(ev){const tab=ev.data.tab;if(!this.__internals.tabs[tab.refID]){return};this.__internals.dom.content.empty();this.__internals.tabs[tab.refID].content.appendTo(this.__internals.dom.content);this.__internals.events.triggerEvent(ev)}
2__updateTabsProperty(){this.properties.tabs=Object.values(this.__internals.tabs)}addTab(tabData){const{tab,content}=tabData;this.__addTabToTabbar(tab);this.__internals.tabs[tab.refID]={tab:tab,content:content};const jContent=jQuery(content);const contentId=jContent.attr('id');let referenceId;const labelId=`${tab.refID}--tab`;if(!contentId){referenceId=`${tab.refID}--tabpanel`;jContent.attr('id',referenceId)}else{referenceId=contentId};tab.controls=referenceId;tab.base.attr({'id':labelId});jContent.attr({'role':'tabpanel','aria-labelledby':labelId});this.__updateTabsProperty()}getTabData(refId){const tab=this.__internals.tabs[refId];if(!tab){return undefined};return tab}getTabDataByValue(refId){const tab=Object.values(this.__internals.tabs[refId]).find(tab=>tab)}removeTab(refId){const tab=this.__internals.tabs[refId];if(!tab){return};OcHtml.detachIfInside(tab.content,this.__internals.dom.base);delete this.__internals.tabs[refId];this.__updateTabsProperty()}activateTab(refId){this.__activateTab(refId)}activateTabByValue(value){this.__activateTabByValue(value)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,tabs:[]}}}}Oc.OcMdTabcontainer=OcMdTabcontainer;"use strict";
2class OcMdTabcontainerIcon extends OcMdTabcontainer{constructor(properties){super(properties)}defaults(){return OcMdTabcontainerIcon.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const baseCSS='oc-md-tabcontainer-icon';this.__internals.initElementsJobs.push(this.__createDOMNodes({tabBar:{component:OcMdTabbarIcon,class:`${baseCSS}__tab-bar`}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(baseCSS);this.__internals.elements.tabBar.base.insertBefore(this.__internals.dom.content)},true))}__initEvents(){super.__initEvents();this.__internals.elements.tabBar.events.listen('activate',this.__onTabBar__activate.bind(this),this.refID)}__addTabToTabbar(tab){this.__internals.elements.tabBar.addTab(tab)}__activateTab(refId){this.__internals.elements.tabBar.activateTab(refId)}__activateTabByValue(value){const tab=this.__internals.elements.tabBar.getTabByValue(value);if(!tab){return};this.__activateTab(tab.refID)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdTabcontainerIcon=OcMdTabcontainerIcon;"use strict";
2class OcMdTabcontainerUnderline extends OcMdTabcontainer{constructor(properties){super(properties)}defaults(){return OcMdTabcontainerUnderline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const baseCSS='oc-md-tabcontainer-underline';this.__internals.initElementsJobs.push(this.__createDOMNodes({tabBar:{component:OcMdTabbarUnderline,class:`${baseCSS}__tab-bar`}}));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(baseCSS);this.__internals.elements.tabBar.base.insertBefore(this.__internals.dom.content)},true))}__initEvents(){super.__initEvents();this.__internals.elements.tabBar.events.listen('activate',this.__onTabBar__activate.bind(this),this.refID)}__addTabToTabbar(tab){this.__internals.elements.tabBar.addTab(tab)}__activateTab(refId){this.__internals.elements.tabBar.activateTab(refId)}__activateTabByValue(value){const tab=this.__internals.elements.tabBar.getTabByValue(value);if(!tab){return};this.__activateTab(tab.refID)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdTabcontainerUnderline=OcMdTabcontainerUnderline;"use strict";class OcMdTabbar extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdTabbar.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,tabs:{get:this.__getTabs.bind(this)}}}__getTabs(){return{...this.__internals.tabs}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.tabs={};this.__internals.outstandingSync=new OcManualpromise();this.propertyHandlers.tabs=this.addTab}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tabbar';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({scroller:{component:OcMdTabScroller,class:`${cssBase}__scroller`,properties:{disableMdcTabScroller:true}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-tab-bar`).attr({'role':'tablist'})},true))}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`MDCTabBar:activated.${this.refID}`,this.__onBase__mdcTabBar__activated.bind(this))}__onBase__mdcTabBar__activated(ev){const index=ev.originalEvent.detail.index;const tabNode=this.__internals.elements.scroller.content.children().eq(index);const tabInstance=Oc.getInstanceFromElement(tabNode);if(!tabInstance||!(tabInstance instanceof OcMdTab)){OLEFA.log.warn('OcMdtabbar.__onBase__mdcTabBar__activated(): Element not of expected type',arguments);return}this.__trigger__activate({tab:tabInstance})}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);if(baseNode){this.__internals.mdcTabBar=new mdc["tab-bar"].MDCTabBar(baseNode);this.__internals.mdcTabBar?.activateTab(0)}}__updateTabsProperty(){this.properties.tabs=Object.values(this.__internals.tabs)}__activateTab(tab){const index=this.__internals.elements.scroller.content.children().index(tab.base);if(index==-1){OLEFA.log.error('OcMdTabbar.activateTab(): Tab does not exist in HTML',arguments);return}OcUtilities.allSettled([this.mdcReady,this.__internals.outstandingSync.promise]).then(()=>{this.__internals.mdcTabBar?.activateTab(index)})}activateTab(refId){const tab=this.getTab(refId);if(!tab){OLEFA.log.info('OcMdTabbar.activateTab(): Tab not found',arguments);return};this.__activateTab(tab)}activateTabByValue(value){const tab=this.getTabByValue(value);if(!tab){OLEFA.log.info('OcMdTabbar.activateTabByValue(): Tab not found',arguments);return};this.__activateTab(tab)}addTab(tab){if(this.__internals.tabs[tab.refID]){OLEFA.log.info('OcMdTabbar.addTab(): Duplicate instance',...arguments);return};this.__internals.tabs[tab.refID]=tab;tab.base.appendTo(this.__internals.elements.scroller.content);if(this.__internals.outstandingSync.isResolved){this.__internals.outstandingSync=new OcManualpromise()};tab.mdcReady.then(()=>{this.__internals.mdcTabBar?.initialize();this.__internals.outstandingSync.resolve()});
2this.__updateTabsProperty()}getTab(refId){return this.__internals.tabs[refId]}getTabByValue(value){const tab=Object.values(this.__internals.tabs).find(tab=>tab.value==value);return tab}removeTab(refId){if(!this.__internals.tabs[refId]){OLEFA.log.info('OcMdTabbar.removeTab(): Tab with given ID does not exist. Skipping',...arguments);return}this.__internals.tabs[refId].base.detach();delete this.__internals.tabs[refId];this.__internals.mdcTabBar?.initialize();this.__internals.outstandingSync.resolve();this.__updateTabsProperty()}__trigger__activate(eventData){const event=new OcEvent({eventName:'activate',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,tabs:[]}}}}Oc.OcMdTabbar=OcMdTabbar;"use strict";class OcMdTabbarIcon extends OcMdTabbar{constructor(properties){super(properties)}defaults(){return OcMdTabbarIcon.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcMdTabbarIcon=OcMdTabbarIcon;"use strict";class OcMdTabbarUnderline extends OcMdTabbar{constructor(properties){super(properties)}defaults(){return OcMdTabbarUnderline.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,tabs:[]}}}}Oc.OcMdTabbarUnderline=OcMdTabbarUnderline;"use strict";class OcMdTabScroller extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdTabScroller.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,disableMdcTabScroller:{get:this.__getDisableMdcTabScroller.bind(this)},content:{get:this.__getContent.bind(this)}}}__getDisableMdcTabScroller(){return this.properties.disableMdcTabScroller}__setDisableMdcTabScroller(value){this.properties.disableMdcTabScroller=value}
2__getContent(){return this.__internals.dom.scrollContent}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-tab-scroller';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))}this.__internals.initElementsJobs.push(this.__createDOMNodes({scrollArea:{tag:'div',class:`${cssBase}__scroll-area mdc-tab-scroller__scroll-area`,children:{scrollContent:{tag:'div',class:`${cssBase}__scroll-content mdc-tab-scroller__scroll-content`}}}},this.__internals.dom.base));this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-tab-scroller`)},true))}__onHtmlReady(){super.__onHtmlReady();const baseNode=this.__internals.dom.base.get(0);const disableMdcTabScroller=this.__getDisableMdcTabScroller();if(baseNode&&!disableMdcTabScroller){this.__internals.mdcTabScroller=new mdc["tab-scroller"].MDCTabScroller(baseNode)}}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,disableMdcTabScroller:false}}}}Oc.OcMdTabScroller=OcMdTabScroller;"use strict";class OcMdTopappbar extends OcMdComponent{constructor(properties){super(properties)}defaults(){return OcMdTopappbar.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,title:{get:this.__getTitle.bind(this),set:this.__setTitle.bind(this)},navigationIcon:{get:this.__getNavigationIcon.bind(this),set:this.__setNavigationIcon.bind(this)},toolbarActions:{get:this.__getToolbarActions.bind(this)},listActions:{get:this.__getListActions.bind(this)},contextualAppBars:{get:this.__getContextualAppBars.bind(this)},activeContext:{get:this.__getActiveContext.bind(this)},titleNodeId:{get:this.__getTitleNodeId.bind(this)}}}__getTitle(){return this.properties.title}__setTitle(value){this.properties.title=value;this.__updateTitleNode()}__getNavigationIcon(){return this.properties.navigationIcon}__setNavigationIcon(value){this.properties.navigationIcon=value;this.properties.navigationIcon?.base.addClass(OcMdTopappbar.cssClasses.navigationIcon);const hasNavigationIcon=this.properties.navigationIcon instanceof OcMdButtonIcon;this.__internals.states.set(OcMdTopappbar.__states.HAS_NAVIGATION_ICON,hasNavigationIcon)}__getToolbarActions(){return Object.values(this.__internals.toolbarActions)}__getListActions(){return Object.values(this.__internals.listActions)}__getContextualAppBars(){return Object.values(this.__internals.contextualAppBars)}__getActiveContext(){const activeContext=Object.values(this.__internals.contextualAppBars).find(appBar=>appBar.instance.visible);if(!activeContext){return null};return activeContext.id}__getTitleNodeId(){return`${this.refID}--title`}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.listActions={};this.__internals.actionsList=new OcMdMenuList();this.__internals.actionsList.list.autoSort=true;this.__internals.toolbarActions={};this.__internals.contextualAppBars={};this.__internals.promises={cssMdTopappbar:OLEFA.css.getIfNotLoaded('md/topAppBar.css','--loaded--md-topappbar')};this.propertyHandlers.title=this.__setTitle;this.propertyHandlers.toolbarActions=this.addToolbarAction;this.propertyHandlers.listActions=this.addListAction;this.propertyHandlers.contextualAppBars=this.addContextualAppBar}__initialize(properties){super.__initialize(properties);this.__internals.toolbarAutoSort=new OcInteractivityAutoSort(this.__internals.dom.alignEnd,{sortKey:'data-sort-value'});this.propertyHandlers.navigationIcon=this.__setNavigationIcon;if(properties?.navigationIcon===undefined){const defaultNavigationIcon=new OcMdButtonIcon({icon:'md:menu',label:OLEFA.i18n.get('menu')});this.__setNavigationIcon(defaultNavigationIcon)}else if(properties?.navigationIcon===null){this.__setNavigationIcon(null)}else{this.__setNavigationIcon(properties.navigationIcon)};this.__onStateChange__hasNavigationIcon()}__initElements(){super.__initElements();const cssBase='oc-md-topappbar';if(this.__internals.dom.base.length==0){this.__internals.initElementsJobs.push(this.__createDOMNodes({base:{tag:'div'}}))};this.__internals.initElementsJobs.push(this.__createDOMNodes({row:{tag:'header',class:`${cssBase}__row mdc-top-app-bar__row`,children:{alignStart:{tag:'section',class:`${cssBase}__align-start mdc-top-app-bar__section mdc-top-app-bar__section--align-start`,children:{title:{tag:'span',class:`${cssBase}__title mdc-top-app-bar__title`,attributes:{'aria-live':'off',lang:'',id:this.__getTitleNodeId()}}}},alignEnd:{tag:'div',class:`${cssBase}__align-end mdc-top-app-bar__section mdc-top-app-bar__section--align-en
2d`,attributes:{role:'toolbar'},children:{more:{component:OcMdTopappbarAction,class:`${cssBase}__more`,properties:{icon:'md:more_vert',sortValue:'zz99',label:OLEFA.i18n.get('show_more')}}}}}},contextualAppBars:{tag:'div',class:`${cssBase}__contextual-app-bars`}},this.__internals.dom.base));const rowNode=this.__internals.dom.row.get(0);if(rowNode){this.__internals.rowAriaHandler=new OcAriaRoleBanner(rowNode,{labelledBy:this.__getTitleNodeId()})}this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`mdc-top-app-bar ${cssBase}`);this.__internals.actionsList.base.appendTo(this.__internals.dom.base)},true))}__initStates(){super.__initStates();this.__internals.states.define({state:OcMdTopappbar.__states.HAS_LIST_ACTIONS}).define({state:OcMdTopappbar.__states.HAS_NAVIGATION_ICON,onChange:this.__onStateChange__hasNavigationIcon.bind(this)}).define({state:OcMdTopappbar.__states.IS_CONTEXTUAL_APP_BAR_ACTIVE,onChange:this.__onStateChange__isContextualAppBarActive.bind(this)})}__onStateChange__hasNavigationIcon(){this.__updateNavigationNode()}__onStateChange__isContextualAppBarActive(){this.__handleRowNode()}__initEvents(){super.__initEvents();this.__internals.elements.more.events.listen('click',this.__onMore__click.bind(this),this.refID);this.__internals.actionsList.events.listen('select',this.__onActionsList__select.bind(this),this.refID)}__onMore__click(ev){const morePosition=this.__internals.elements.more.base.offset();const x=(morePosition?.left||0)+ev.nativeEvent.offsetX;const y=(morePosition?.top||0)+ev.nativeEvent.offsetY;this.__internals.actionsList.openAbsolute(x,y)}__onActionsList__select(ev){if(!ev.data.value){return};this.__trigger__actionSelect({action:ev.data.value})}__initEvents__navigationIcon(navigationIcon){navigationIcon.events.listen('click',this.__onNavigationIcon__click.bind(this,navigationIcon),this.refID)}__onNavigationIcon__click(navigationIcon,ev){this.__trigger__navigationSelect()}__initEvents__contextualTopAppBar(appBar){appBar.events.listen('navigation-select',this.__onContextualTopAppBar__navigationSelect.bind(this,appBar),this.refID)}__onContextualTopAppBar__navigationSelect(appBar,ev){this.closeContextualAppBar()}__initEvents__toolbarAction(toolbarAction){toolbarAction.events.listen('click',this.__onToolbarAction__click.bind(this,toolbarAction),this.refID)}__onToolbarAction__click(toolbarAction,ev){this.__trigger__actionSelect({action:toolbarAction.value})}__updateNavigationNode(){this.__deferOnce('__updateNavigationNode',()=>{if(this.__internals.navigationIcon){OcHtml.detachIfInside(this.__internals.navigationIcon.base,this.__internals.dom.base);this.__internals.navigationIcon.events.cancelAllFromScope(this.refID);delete this.__internals.navigationIcon}const navigationIcon=this.__getNavigationIcon();if(navigationIcon){this.__internals.navigationIcon=navigationIcon;navigationIcon.base.insertBefore(this.__internals.dom.title);this.__initEvents__navigationIcon(navigationIcon)}})}__updateListActionsProperty(){this.properties.listActions=Object.values(this.__internals.listActions)}__updateToolbarActionsProperty(){this.properties.toolbarActions=Object.values(this.__internals.toolbarActions)}__updateContextualAppBarsProperty(){this.properties.contextualAppBars=Object.values(this.__internals.contextualAppBars)}__updateTitleNode(){this.__deferOnce('__updateTitleNode',()=>{const node=this.__internals.dom.title;const title=this.__getTitle();node.empty();if(OcDatatype.isJQuery(title)){node.append(title)}else if(title instanceof OcNodeText){node.append(title.node)}else{node.html(title)}})}__handleRowNode(){this.__deferOnce('__handleRowNode',()=>{const node=this.__internals.dom.row;const isContextualAppBarActive=this.__internals.states.hasState(OcMdTopappbar.__states.IS_CONTEXTUAL_APP_BAR_ACTIVE);const attributes=OcHtml.setAttributesIfTrueHelper([{property:'inert',type:'boolean',value:isContextualAppBarActive}]);OcHtml.setAttributesIfTrue(node,attributes)},'repaint')}addListAction(actionDefinition){if(this.__internals.listActions[actionDefinition.refID]){OLEFA.log.info('OcMdTopappbar.addListAction(): Duplicate entry',arguments);return};this.__internals.listActions[actionDefinition.refID]=actionDefinition;this.__internals.actionsList.list.addItem(actionDefinition);this.__internals.states.add(OcMdTopappbar.__states.HAS_LIST_ACTIONS);this.__updateListActionsProperty()}getListAction(refId){const listAction=this.__internals.listActions[refId];if(!listAction){return undefined};return listAction}removeListAction(refId){const listAction=this.__internals.listActions[refId];if(!listAction){return};OcHtml.detachIfInside(this.__internals.listActions[refId].base,this.__internals.dom.base);delete this.__internals.listActions[refId];this.__updateListActionsProperty()}addToolbarAction(actionDefinition){if(this.__internals.toolbarActions[actionDefinition.refID]){OLEFA.log.info('OcMdTopappbar.addToolbarAction(): Duplicate entry',arguments);return};this.__internals.toolbarActions[actionDefinition.refID]=actionDefinition;actionDefinition.base.appendTo(this.__internals.dom.alignEnd);this.__initEvents__toolbarAction(actionDefinition);this.__updateToolbarActionsProperty()}getToolbarAction(refId){const listAction=this.__internals.toolbarActions[refId];if(!listAction){return undefined};return listAction}removeToolbarAction(refId){const listAction=this.__internals.toolbarActions[refId];if(!listAction){return};listAction.events.cancelAllFromScope(this.refID);OcHtml.detachIfInside(this.__internals.toolbarActions[refId].base,this.__internals.dom.base);delete this.__internals.toolbarActions[refId];this.__updateToolbarActionsProperty()}addContextualAppBar(appBarDefinition){if(this.__internals.listActions[appBarDefinition.id]){OLEFA.log.info('OcMdTopappbar.addListAction(): Duplicate entry',arguments);return};appBarDefinition.instance.visible=false;appBarDefinition;this.__internals.contextualAppBars[appBarDefinition.id]=appBarDefinition;appBarDefinition.instance.base.appendTo(this.__internals.dom.contextualAppBars);this.__initEvents__contextualTopAppBar(appBarDefinition.instance);
2this.__updateContextualAppBarsProperty()}getContextualAppBar(id){const topAppBar=this.__internals.contextualAppBars[id];if(!topAppBar){return undefined};return topAppBar}removeContextualAppBar(id){const appBar=this.__internals.contextualAppBars[id];if(!appBar){return};appBar.instance.events.cancelAllFromScope(this.refID);OcHtml.detachIfInside(appBar.instance.base,this.__internals.dom.base);delete this.__internals.contextualAppBars[id];this.__updateContextualAppBarsProperty()}showContextualAppBar(id){const contextualAppBar=this.getContextualAppBar(id);if(!contextualAppBar){OLEFA.log.warn('Contextual App Bar with the given ID does not exist',arguments);return}this.closeContextualAppBar();this.__internals.states.add(OcMdTopappbar.__states.IS_CONTEXTUAL_APP_BAR_ACTIVE);contextualAppBar.instance.visible=true;this.__trigger__contextSwitch({activeContext:id,appBar:contextualAppBar.instance})}closeContextualAppBar(){const isContextualAppBarActive=this.__internals.states.hasState(OcMdTopappbar.__states.IS_CONTEXTUAL_APP_BAR_ACTIVE);if(!isContextualAppBarActive){return};const visibleContextualAppBars=Object.values(this.__internals.contextualAppBars).filter(appBar=>appBar.instance.visible);for(const appBar of visibleContextualAppBars){appBar.instance.visible=false};this.__internals.states.remove(OcMdTopappbar.__states.IS_CONTEXTUAL_APP_BAR_ACTIVE);this.__trigger__contextSwitch({activeContext:null,appBar:this})}__trigger__navigationSelect(){const event=new OcEvent({eventName:OcMdTopappbar.events.NAVIGATION_SELECT});this.__internals.events.triggerEvent(event)}__trigger__actionSelect(eventData){const event=new OcEvent({eventName:OcMdTopappbar.events.ACTION_SELECT,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__contextSwitch(eventData){const event=new OcEvent({eventName:OcMdTopappbar.events.CONTEXT_SWITCH,data:eventData});this.__internals.events.triggerEvent(event)}static __setLabelForIcon(navigationIcon,labelKey){const token=OLEFA.basics.generateID();let hasChanged=false;navigationIcon.events.listen('property-change',ev=>{if(ev.property=='label'){hasChanged=true;navigationIcon.events.cancelAllFromScope(token)}},token);OLEFA.i18n.load('general.json').finally(()=>{if(!hasChanged){navigationIcon.label=OLEFA.i18n.get(labelKey)}})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,title:'',navigationIcon:undefined,toolbarActions:[],listActions:[],contextualAppBars:[]}}}static createNavigationIcon(parameters){let c=OcMdButtonIcon;if(parameters.type=='toggle'){c=OcMdButtonIcontoggle}const navigationIcon=new c(parameters.parameters);return navigationIcon}static createNavigationIcon__menu(){const navigationIcon=new OcMdButtonIcon({icon:'md:menu'});this.__setLabelForIcon(navigationIcon,'menu');return navigationIcon}static createNavigationIcon__back(){const navigationIcon=new OcMdButtonIcon({icon:'md:arrow_back'});this.__setLabelForIcon(navigationIcon,'back');return navigationIcon}}OcMdTopappbar.__states={...OcMdComponent.__states,HAS_NAVIGATION_ICON:'has-navigation-icon',HAS_LIST_ACTIONS:'has-list-actions',IS_CONTEXTUAL_APP_BAR_ACTIVE:'is-contextual-app-bar-active'};OcMdTopappbar.events={...OcMdComponent.events,ACTION_SELECT:'action-select',CONTEXT_SWITCH:'context-switch',NAVIGATION_SELECT:'navigation-select'};OcMdTopappbar.cssClasses={contentNodeFixedBar:'mdc-top-app-bar--fixed-adjust',navigationIcon:'mdc-topapp-bar__navigation-icon'};Oc.OcMdTopappbar=OcMdTopappbar;"use strict";class OcMdTopappbarAction extends OcMdButtonIcon{constructor(properties){super(properties)}defaults(){return OcMdTopappbarAction.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)},sortValue:{get:this.__getSortValue.bind(this),set:this.__setSortValue.bind(this)}}}__getValue(){return this.properties.value}__setValue(value){this.properties.value=value}__getSortValue(){return this.properties.sortValue}__setSortValue(value){this.properties.sortValue=value;this.__updateBaseNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.value=this.__setValue;this.propertyHandlers.sortValue=this.__setSortValue}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-topappbar-action';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(`${cssBase} mdc-top-app-bar__action-item`)},true))}__updateBaseNode(){this.__deferOnce('__updateBaseNode',()=>{const node=this.__internals.dom.base;const sortValue=this.__getSortValue();node.attr({'data-sort-value':sortValue})})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,value:'',sortValue:''}}}}Oc.OcMdTopappbarAction=OcMdTopappbarAction;"use strict";
2class OcMdTopappbarContextual extends OcMdTopappbar{constructor(properties){super(properties)}defaults(){return OcMdTopappbarContextual.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__setNavigationIcon(value){}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises.cssMdTopappbarContextual=OLEFA.css.getIfNotLoaded('md/topAppBar/contextual.css','--loaded--md-topappbar-contextual')}__initialize(properties){super.__initialize(properties)}__initElements(){super.__initElements();const cssBase='oc-md-topappbar-contextual';this.__internals.initElementsJobs.push(this.defer(()=>{this.__internals.dom.base.addClass(cssBase)},true))}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,visible:false,navigationIcon:new OcMdTopappbarAction({icon:'md:close',label:new OcNodeTextI18n({file:OcL10nGeneral.FILE,key:OcL10nGeneral.keys.CLOSE})})}}}}Oc.OcMdTopappbarContextual=OcMdTopappbarContextual;"use strict";class OcMdTopappbarContextualSearch extends OcMdTopappbarContextual{constructor(properties){super(properties)}defaults(){return OcMdTopappbarContextualSearch.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,searchInput:{get:this.__getSearchInput.bind(this)}}}__getSearchInput(){return this.__internals.elements.searchInput}__buildInstanceStructure(){super.__buildInstanceStructure()}__initEvents(){super.__initEvents();this.__internals.dom.form.on(`submit.${this.refID}`,this.__onForm__submit.bind(this))}__onForm__submit(ev){ev.preventDefault();this.__trigger__search({search:this.__internals.elements.searchInput.value})}__initElements(){super.__initElements();const cssBase='oc-md-topappbar-contextual-search';this.__internals.initElementsJobs.push(this.__createDOMNodes({searchButton:{component:OcMdTopappbarAction,class:`${cssBase}__search-button`,properties:{ariaControls:`${this.refID}--search-input`,icon:'md:search'}}},this.__internals.dom.alignStart));this.__internals.initElementsJobs.push(this.__createDOMNodes({form:{tag:'form',class:`${cssBase}__form`,attributes:{id:`${this.refID}--form`,role:'search'},children:{searchInput:{component:OcMdInputTextFilled,class:`${cssBase}__search-input`,properties:{type:'search',name:'search',minlength:3,required:true}}}}},this.__internals.dom.alignStart));this.__internals.initElementsJobs.push(this.defer(()=>{this.addToolbarAction(this.__internals.elements.searchButton);this.__internals.elements.searchButton.base.attr({type:'submit',form:`${this.refID}--form`});this.__internals.elements.searchInput.input.attr('id',`${this.refID}--search-input`);this.__internals.dom.base.addClass(cssBase)},true))}__initialize(properties){super.__initialize(properties);OcUtilities.allSettled([this.__internals.initElementsDone,this.__allLangkitsSettled()]).finally(()=>{this.__internals.elements.searchButton.label=OcL10nGeneral.SEARCH})}__trigger__search(eventData){const event=new OcEvent({eventName:OcMdTopappbarContextualSearch.events.SEARCH,data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}OcMdTopappbarContextualSearch.events={...OcMdTopappbarContextual.events,SEARCH:'search'};Oc.OcMdTopappbarContextualSearch=OcMdTopappbarContextualSearch;(()=>{"use strict";function e(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var t=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},r=globalThis,o=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;
2class n{constructor(e,t,r){if(this._$cssResult$=!0,r!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){var e=this.o,t=this.t;if(o&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(t,e))}return e}toString(){return this.cssText}}var l,s,d,c=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var a=1===e.length?e[0]:r.reduce(((t,r,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1]),e[0]);return new n(a,e,i)},v=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{var t="";for(var r of e.cssRules)t+=r.cssText;return(e=>new n("string"==typeof e?e:e+"",void 0,i))(t)})(e):e;function p(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}var{is:h,defineProperty:u,getOwnPropertyDescriptor:f,getOwnPropertyNames:m,getOwnPropertySymbols:b,getPrototypeOf:y}=Object,g=globalThis,x=g.trustedTypes,_=x?x.emptyScript:"",w=g.reactiveElementPolyfillSupport,O=(e,t)=>e,k={toAttribute(e,t){switch(t){case Boolean:e=e?_:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){var r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},z=(e,t)=>!h(e,t),C={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:z};null!==(l=Symbol.metadata)&&void 0!==l||(Symbol.metadata=Symbol("metadata")),null!==(s=g.litPropertyMetadata)&&void 0!==s||(g.litPropertyMetadata=new WeakMap);class E extends HTMLElement{static addInitializer(e){var t;this._$Ei(),(null!==(t=this.l)&&void 0!==t?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){var r=Symbol(),o=this.getPropertyDescriptor(e,r,t);void 0!==o&&u(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var o,{get:i,set:a}=null!==(o=f(this.prototype,e))&&void 0!==o?o:{get(){return this[t]},set(e){this[t]=e}};return{get(){return null==i?void 0:i.call(this)},set(t){var o=null==i?void 0:i.call(this);a.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:C}static _$Ei(){if(!this.hasOwnProperty(O("elementProperties"))){var e=y(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}}static finalize(){if(!this.hasOwnProperty(O("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){var e=this.properties,t=[...m(e),...b(e)];for(var r of t)this.createProperty(r,e[r])}var o=this[Symbol.metadata];if(null!==o){var i=litPropertyMetadata.get(o);if(void 0!==i)for(var[a,n]of i)this.elementProperties.set(a,n)}for(var[l,s]of(this._$Eh=new Map,this.elementProperties)){var d=this._$Eu(l,s);void 0!==d&&this._$Eh.set(d,l)}this.elementStyles=this.finalizeStyles(this.styles)}}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse());for(var o of r)t.unshift(v(o))}else void 0!==e&&t.push(v(e));return t}static _$Eu(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;
2this._$Eg=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$ES(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,r;(null!==(t=this._$E_)&&void 0!==t?t:this._$E_=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$E_)||void 0===t||t.delete(e)}_$ES(){var e=new Map,t=this.constructor.elementProperties;for(var r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(o)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(var i of t){var a=document.createElement("style"),n=r.litNonce;void 0!==n&&a.setAttribute("nonce",n),a.textContent=i.cssText,e.appendChild(a)}})(t,this.constructor.elementStyles),t}connectedCallback(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$E_)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$E_)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t){var r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(void 0!==o&&!0===r.reflect){var i,a=(void 0!==(null===(i=r.converter)||void 0===i?void 0:i.toAttribute)?r.converter:k).toAttribute(t,r.type);this._$Em=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(e,t){var r=this.constructor,o=r._$Eh.get(e);if(void 0!==o&&this._$Em!==o){var i,a=r.getPropertyOptions(o),n="function"==typeof a.converter?{fromAttribute:a.converter}:void 0!==(null===(i=a.converter)||void 0===i?void 0:i.fromAttribute)?a.converter:k;this._$Em=o,this[o]=n.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){var o,i;if(null!==(o=r)&&void 0!==o||(r=this.constructor.getPropertyOptions(e)),!(null!==(i=r.hasChanged)&&void 0!==i?i:z)(this[e],t))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(e,t,r){var o;this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(null!==(o=this._$ET)&&void 0!==o?o:this._$ET=new Set).add(e)}_$EP(){var e,t=this;return(e=function*(){t.isUpdatePending=!0;try{yield t._$Eg}catch(e){Promise.reject(e)}var e=t.scheduleUpdate();return null!=e&&(yield e),!t.isUpdatePending},function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function n(e){p(a,o,i,n,l,"next",e)}function l(e){p(a,o,i,n,l,"throw",e)}n(void 0)}))})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(this.isUpdatePending){if(!this.hasUpdated){var e;if(null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(var[t,r]of this._$Ep)this[t]=r;this._$Ep=void 0}var o=this.constructor.elementProperties;if(o.size>0)for(var[i,a]of o)!0!==a.wrapped||this._$AL.has(i)||void 0===this[i]||this.C(i,this[i],a)}var n=!1,l=this._$AL;try{var s;(n=this.shouldUpdate(l))?(this.willUpdate(l),null!==(s=this._$E_)&&void 0!==s&&s.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(l)):this._$Ej()}catch(l){throw n=!1,this._$Ej(),l}n&&this._$AE(l)}}willUpdate(e){}_$AE(e){var t;null!==(t=this._$E_)&&void 0!==t&&t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ej(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$ET&&(this._$ET=this._$ET.forEach((e=>this._$EO(e,this[e])))),this._$Ej()}updated(e){}firstUpdated(e){}}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?j(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[O("elementProperties")]=new Map,E[O("finalized")]=new Map,null!=w&&w({ReactiveElement:E}),(null!==(d=g.reactiveElementVersions)&&void 0!==d?d:g.reactiveElementVersions=[]).push("2.0.3");var S={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:z},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,{kind:o,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(r.name,e),"accessor"===o){var{name:n}=r;return{set(r){var o=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,o,e)},init(t){return void 0!==t&&this.C(n,void 0,e),t}}}if("setter"===o){var{name:l}=r;return function(r){var o=this[l];t.call(this,r),this.requestUpdate(l,o,e)}}throw Error("Unsupported decorator location: "+o)};function T(e){return(t,r)=>"object"==typeof r?A(e,t,r):((e,t,r)=>{var o=t.hasOwnProperty(r);return t.constructor.createProperty(r,o?P(P({},e),{},{wrapped:!0}):e),o?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e){return T(R(R({},e),{},{state:!0,attribute:!1}))}var D,$,M=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,r),r);function B(e,t){return(r,o,i)=>{var a=t=>{var r,o;return null!==(r=null===(o=t.renderRoot)||void 0===o?void 0:o.querySelector(e))&&void 0!==r?r:null};if(t){var{get:n,set:l}="object"==typeof o?r:null!=i?i:(()=>{var e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return M(r,o,{get(){var e=n.call(this);return void 0===e&&(null!==(e=a(this))||this.hasUpdated)&&l.call(this,e),e}})}return M(r,o,{get(){return a(this)}})}}function U(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function N(e){return(t,r)=>M(t,r,{get(){var t,r=this;return(t=function*(){var t,o;return yield r.updateComplete,null!==(t=null===(o=r.renderRoot)||void 0===o?void 0:o.querySelector(e))&&void 0!==t?t:null},function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function n(e){U(a,o,i,n,l,"next",e)}function l(e){U(a,o,i,n,l,"throw",e)}n(void 0)}))})()}})}function F(e){return(t,r)=>{var{slot:o,selector:i}=null!=e?e:{},a="slot"+(o?"[name=".concat(o,"]"):":not([name])");return M(t,r,{get(){var t,r,o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(a),n=null!==(r=null==o?void 0:o.assignedElements(e))&&void 0!==r?r:[];return void 0===i?n:n.filter((e=>e.matches(i)))}})}}function q(e){return(t,r)=>{var{slot:o}=null!=e?e:{},i="slot"+(o?"[name=".concat(o,"]"):":not([name])");return M(t,r,{get(){var t,r,o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(r=null==o?void 0:o.assignedNodes(e))&&void 0!==r?r:[]}})}}var V=globalThis,H=V.trustedTypes,K=H?H.createPolicy("lit-html",{createHTML:e=>e}):void 0,W="$lit$",G="lit$".concat((Math.random()+"").slice(9),"$"),X="?"+G,Y="<".concat(X,">"),Z=document,J=()=>Z.createComment(""),Q=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ee=Array.isArray,te=e=>ee(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),re="[ \t\n\f\r]",oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,ae=/>/g,ne=RegExp(">|".concat(re,"(?:([^\\s\"'>=/]+)(").concat(re,"*=").concat(re,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),le=/'/g,se=/"/g,de=/^(?:script|style|textarea|title)$/i,ce=e=>function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return{_$litType$:e,strings:t,values:o}}
vendor: 5,112 bytes, line 2
2,ve=ce(1),pe=ce(2),he=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),fe=new WeakMap,me=Z.createTreeWalker(Z,129);function be(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(t):t}var ye=(e,t)=>{for(var r,o=e.length-1,i=[],a=2===t?"<svg>":"",n=oe,l=0;l<o;l++){for(var s=e[l],d=void 0,c=void 0,v=-1,p=0;p<s.length&&(n.lastIndex=p,null!==(c=n.exec(s)));){var h;p=n.lastIndex,n===oe?"!--"===c[1]?n=ie:void 0!==c[1]?n=ae:void 0!==c[2]?(de.test(c[2])&&(r=RegExp("</"+c[2],"g")),n=ne):void 0!==c[3]&&(n=ne):n===ne?">"===c[0]?(n=null!==(h=r)&&void 0!==h?h:oe,v=-1):void 0===c[1]?v=-2:(v=n.lastIndex-c[2].length,d=c[1],n=void 0===c[3]?ne:'"'===c[3]?se:le):n===se||n===le?n=ne:n===ie||n===ae?n=oe:(n=ne,r=void 0)}var u=n===ne&&e[l+1].startsWith("/>")?" ":"";a+=n===oe?s+Y:v>=0?(i.push(d),s.slice(0,v)+W+s.slice(v)+G+u):s+G+(-2===v?l:u)}return[be(e,a+(e[o]||"<?>")+(2===t?"</svg>":"")),i]};class ge{constructor(e,t){var r,{strings:o,_$litType$:i}=e;this.parts=[];var a=0,n=0,l=o.length-1,s=this.parts,[d,c]=ye(o,i);if(this.el=ge.createElement(d,t),me.currentNode=this.el.content,2===i){var v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;null!==(r=me.nextNode())&&s.length<l;){if(1===r.nodeType){if(r.hasAttributes())for(var p of r.getAttributeNames())if(p.endsWith(W)){var h=c[n++],u=r.getAttribute(p).split(G),f=/([.?@])?(.*)/.exec(h);s.push({type:1,index:a,name:f[2],strings:u,ctor:"."===f[1]?ke:"?"===f[1]?ze:"@"===f[1]?Ce:Oe}),r.removeAttribute(p)}else p.startsWith(G)&&(s.push({type:6,index:a}),r.removeAttribute(p));if(de.test(r.tagName)){var m=r.textContent.split(G),b=m.length-1;if(b>0){r.textContent=H?H.emptyScript:"";for(var y=0;y<b;y++)r.append(m[y],J()),me.nextNode(),s.push({type:2,index:++a});r.append(m[b],J())}}}else if(8===r.nodeType)if(r.data===X)s.push({type:2,index:a});else for(var g=-1;-1!==(g=r.data.indexOf(G,g+1));)s.push({type:7,index:a}),g+=G.length-1;a++}}static createElement(e,t){var r=Z.createElement("template");return r.innerHTML=e,r}}function xe(e,t){var r,o,i,a,n,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===he)return t;var d=void 0!==s?null===(r=l._$Co)||void 0===r?void 0:r[s]:l._$Cl,c=Q(t)?void 0:t._$litDirective$;return(null===(o=d)||void 0===o?void 0:o.constructor)!==c&&(null!==(i=d)&&void 0!==i&&null!==(a=i._$AO)&&void 0!==a&&a.call(i,!1),void 0===c?d=void 0:(d=new c(e))._$AT(e,l,s),void 0!==s?(null!==(n=l._$Co)&&void 0!==n?n:l._$Co=[])[s]=d:l._$Cl=d),void 0!==d&&(t=xe(e,d._$AS(e,t.values),d,s)),t}class _e{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t,{el:{content:r},parts:o}=this._$AD,i=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Z).importNode(r,!0);me.currentNode=i;for(var a=me.nextNode(),n=0,l=0,s=o[0];void 0!==s;){var d;if(n===s.index){var c=void 0;2===s.type?c=new we(a,a.nextSibling,this,e):1===s.type?c=new s.ctor(a,s.name,s.strings,this,e):6===s.type&&(c=new Ee(a,this,e)),this._$AV.push(c),s=o[++l]}n!==(null===(d=s)||void 0===d?void 0:d.index)&&(a=me.nextNode(),n++)}return me.currentNode=Z,i}p(e){var t=0;for(var r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class we{get _$AU(){var e,t;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cv}constructor(e,t,r,o){var i;this.type=2,this._$AH=ue,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=null===(i=null==o?void 0:o.isConnected)||void 0===i||i}get parentNode(){var e,t=this._$AA.parentNode,r=this._$AM;return void 0!==r&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e){e=xe(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),Q(e)?e===ue||null==e||""===e?(this._$AH!==ue&&this._$AR(),this._$AH=ue):e!==this._$AH&&e!==he&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):te(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ue&&Q(this._$AH)?this._$AA.nextSibling.data=e:this.$(Z.createTextNode(e)),this._$AH=e}g(e){var t,{values:r,_$litType$:o}=e,i="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=ge.createElement(be(o.h,o.h[0]),this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.p(r);else{var a=new _e(i,this),n=a.u(this.options);a.p(r),this.$(n),this._$AH=a}}_$AC(e){var t=fe.get(e.strings);return void 0===t&&fe.set(e.strings,t=new ge(e)),t}T(e){ee(this._$AH)||(this._$AH=[],this._$AR());var t,r=this._$AH,o=0;for(var i of e)o===r.length?r.push(t=new we(this.k(J()),this.k(J()),this,this.options)):t=r[o],t._$AI(i),o++;o<r.length&&(this._$AR(t&&t._$AB.nextSibling,o),r.length=o)}_$AR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,t=arguments.length>1?arguments[1]:void 0;
2for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,t);e&&e!==this._$AB;){var r,o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;void 0===this._$AM&&(this._$Cv=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Oe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,i){this.type=1,this._$AH=ue,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ue}_$AI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=this.strings,a=!1;if(void 0===i)e=xe(this,e,t,0),(a=!Q(e)||e!==this._$AH&&e!==he)&&(this._$AH=e);else{var n,l,s=e;for(e=i[0],n=0;n<i.length-1;n++){var d;(l=xe(this,s[r+n],t,n))===he&&(l=this._$AH[n]),a||(a=!Q(l)||l!==this._$AH[n]),l===ue?e=ue:e!==ue&&(e+=(null!==(d=l)&&void 0!==d?d:"")+i[n+1]),this._$AH[n]=l}}a&&!o&&this.O(e)}O(e){e===ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class ke extends Oe{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ue?void 0:e}}class ze extends Oe{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ue)}}class Ce extends Oe{constructor(e,t,r,o,i){super(e,t,r,o,i),this.type=5}_$AI(e){var t;if((e=null!==(t=xe(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:ue)!==he){var r=this._$AH,o=e===ue&&r!==ue||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==ue&&(r===ue||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}}handleEvent(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!==(t=null===(r=this.options)||void 0===r?void 0:r.host)&&void 0!==t?t:this.element,e):this._$AH.handleEvent(e)}}class Ee{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){xe(this,e)}}var je={j:W,P:G,A:X,C:1,M:ye,L:_e,R:te,V:xe,D:we,I:Oe,H:ze,N:Ce,U:ke,B:Ee},Pe=V.litHtmlPolyfillSupport;null!=Pe&&Pe(ge,we),(null!==($=V.litHtmlVersions)&&void 0!==$?$:V.litHtmlVersions=[]).push("3.1.1");var Se,Ae,Te=(e,t,r)=>{var o,i=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:t,a=i._$litPart$;if(void 0===a){var n,l=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;i._$litPart$=a=new we(t.insertBefore(J(),l),l,void 0,null!=r?r:{})}return a._$AI(e),a};class Ie extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t,r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Te(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return he}}Ie._$litElement$=!0,Ie.finalized=!0,null===(Se=globalThis.litElementHydrateSupport)||void 0===Se||Se.call(globalThis,{LitElement:Ie});var Re,Le,De=globalThis.litElementPolyfillSupport;null==De||De({LitElement:Ie}),(null!==(Ae=globalThis.litElementVersions)&&void 0!==Ae?Ae:globalThis.litElementVersions=[]).push("4.0.3");class $e extends Ie{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return ve(Re||(e=['<span class="shadow"></span>'],t||(t=e.slice(0)),Re=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))));var e,t}}var Me,Be,Ue=c(Le||(Me=[':host{display:flex;pointer-events:none}:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}.shadow::before,.shadow::after{content:"";
2transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}/*# sourceMappingURL=elevation-styles.css.map */\n'],Be||(Be=Me.slice(0)),Le=Object.freeze(Object.defineProperties(Me,{raw:{value:Object.freeze(Be)}})))),Ne=class extends $e{};Ne.styles=[Ue],Ne=e([t("md-elevation")],Ne);var Fe,qe=Symbol("attachableController");Fe=new MutationObserver((e=>{for(var t of e){var r;null===(r=t.target[qe])||void 0===r||r.hostConnected()}}));class Ve{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){null===e?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector("#".concat(this.htmlFor)):null:this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,t){var r;this.host=e,this.onControlChange=t,this.currentControl=null,e.addController(this),e[qe]=this,null===(r=Fe)||void 0===r||r.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}var He=["focusin","focusout","pointerdown"];class Ke extends Ie{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Ve(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var t,r;if(!e[Ge]){switch(e.type){default:return;case"focusin":this.visible=null!==(t=null===(r=this.control)||void 0===r?void 0:r.matches(":focus-visible"))&&void 0!==t&&t;break;case"focusout":case"pointerdown":this.visible=!1}e[Ge]=!0}}onControlChange(e,t){for(var r of He)null==e||e.removeEventListener(r,this),null==t||t.addEventListener(r,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}e([T({type:Boolean,reflect:!0})],Ke.prototype,"visible",void 0),e([T({type:Boolean,reflect:!0})],Ke.prototype,"inward",void 0);var We,Ge=Symbol("handledByFocusRing"),Xe=c(We||(We=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}
2@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}/*# sourceMappingURL=focus-ring-styles.css.map */\n"]))),Ye=class extends Ke{};Ye.styles=[Xe],Ye=e([t("md-focus-ring")],Ye);var Ze=e=>function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return{_$litDirective$:e,values:r}};class Je{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}var Qe,et,tt=Ze(class extends Je{constructor(e){var t;if(super(e),1!==e.type||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.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){var[r]=t;if(void 0===this.it){for(var o in this.it=new Set,void 0!==e.strings&&(this.st=ne
2w Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e)))),r){var i;r[o]&&(null===(i=this.st)||void 0===i||!i.has(o))&&this.it.add(o)}return this.render(r)}var a=e.element.classList;for(var n of this.it)n in r||(a.remove(n),this.it.delete(n));for(var l in r){var s,d=!!r[l];d===this.it.has(l)||(null===(s=this.st)||void 0===s?void 0:s.has(l))||(d?(a.add(l),this.it.add(l)):(a.remove(l),this.it.delete(l)))}return he}}),rt="cubic-bezier(0.2, 0, 0, 1)",ot="cubic-bezier(.3,0,0,1)",it="cubic-bezier(.3,0,.8,.15)";function at(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function nt(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function n(e){at(a,o,i,n,l,"next",e)}function l(e){at(a,o,i,n,l,"throw",e)}n(void 0)}))}}!function(e){e[e.INACTIVE=0]="INACTIVE",e[e.TOUCH_DELAY=1]="TOUCH_DELAY",e[e.HOLDING=2]="HOLDING",e[e.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(et||(et={}));var lt,st=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],dt=window.matchMedia("(forced-colors: active)");class ct extends Ie{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=et.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Ve(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){var e={hovered:this.hovered,pressed:this.pressed};return ve(Qe||(Qe=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['<div class="surface ','"></div>'])),tt(e))}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==et.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state!==et.HOLDING)return this.state===et.TOUCH_DELAY?(this.state=et.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=et.WAITING_FOR_CLICK}}handlePointerdown(e){var t=this;return nt((function*(){if(t.shouldReactToEvent(e)){if(t.rippleStartEvent=e,!t.isTouch(e))return t.state=et.WAITING_FOR_CLICK,void t.startPressAnimation(e);t.checkBoundsAfterContextMenu&&!t.inBounds(e)||(t.checkBoundsAfterContextMenu=!1,t.state=et.TOUCH_DELAY,yield new Promise((e=>{setTimeout(e,150)})),t.state===et.TOUCH_DELAY&&(t.state=et.HOLDING,t.startPressAnimation(e)))}}))()}handleClick(){this.disabled||(this.state!==et.WAITING_FOR_CLICK?this.state===et.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){var{height:e,width:t}=this.getBoundingClientRect(),r=Math.max(e,t),o=Math.max(.35*r,75),i=Math.floor(.2*r),a=Math.sqrt(t**2+e**2)+10;this.initialSize=i,this.rippleScale="".concat((a+o)/i),this.rippleSize="".concat(i,"px")}getNormalizedPointerEventCoords(e){var{scrollX:t,scrollY:r}=window,{left:o,top:i}=this.getBoundingClientRect(),a=t+o,n=r+i,{pageX:l,pageY:s}=e;return{x:l-a,y:s-n}}getTranslationCoordinates(e){var t,{height:r,width:o}=this.getBoundingClientRect(),i={x:(o-this.initialSize)/2,y:(r-this.initialSize)/2};return{startPoint:t={x:(t=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:o/2,y:r/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:i}}startPressAnimation(e){var t;if(this.mdRoot){this.pressed=!0,null===(t=this.growAnimation)||void 0===t||t.cancel(),this.determineRippleSize();var{startPoint:r,endPoint:o}=this.getTranslationCoordinates(e),i="".concat(r.x,"px, ").concat(r.y,"px"),a="".concat(o.x,"px, ").concat(o.y,"px");
2this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:["translate(".concat(i,") scale(1)"),"translate(".concat(a,") scale(").concat(this.rippleScale,")")]},{pseudoElement:"::after",duration:450,easing:rt,fill:"forwards"})}}endPressAnimation(){var e=this;return nt((function*(){e.rippleStartEvent=void 0,e.state=et.INACTIVE;var t=e.growAnimation,r=1/0;"number"==typeof(null==t?void 0:t.currentTime)?r=t.currentTime:null!=t&&t.currentTime&&(r=t.currentTime.to("ms").value),r>=225?e.pressed=!1:(yield new Promise((e=>{setTimeout(e,225-r)})),e.growAnimation===t&&(e.pressed=!1))}))()}shouldReactToEvent(e){if(this.disabled||!e.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if("pointerenter"===e.type||"pointerleave"===e.type)return!this.isTouch(e);var t=1===e.buttons;return this.isTouch(e)||t}inBounds(e){var{x:t,y:r}=e,{top:o,left:i,bottom:a,right:n}=this.getBoundingClientRect();return t>=i&&t<=n&&r>=o&&r<=a}isTouch(e){var{pointerType:t}=e;return"touch"===t}handleEvent(e){var t=this;return nt((function*(){if(null==dt||!dt.matches)switch(e.type){case"click":t.handleClick();break;case"contextmenu":t.handleContextmenu();break;case"pointercancel":t.handlePointercancel(e);break;case"pointerdown":yield t.handlePointerdown(e);break;case"pointerenter":t.handlePointerenter(e);break;case"pointerleave":t.handlePointerleave(e);break;case"pointerup":t.handlePointerup(e)}}))()}onControlChange(e,t){for(var r of st)null==e||e.removeEventListener(r,this),null==t||t.addEventListener(r,this)}}e([T({type:Boolean,reflect:!0})],ct.prototype,"disabled",void 0),e([L()],ct.prototype,"hovered",void 0),e([L()],ct.prototype,"pressed",void 0),e([B(".surface")],ct.prototype,"mdRoot",void 0);var vt=c(lt||(lt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}/*# sourceMappingURL=ripple-styles.css.map */\n']))),pt=class extends ct{};pt.styles=[vt],pt=e([t("md-ripple")],pt);var ht=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];function ut(e){return e.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function ft(e){for(var t of ht)e.createProperty(t,{attribute:ut(t),reflect:!0});e.addInitializer((e=>{var t={hostConnected(){e.setAttribute("role","presentation")}};e.addController(t)}))}ht.map(ut);var mt=Symbol("internals"),bt=Symbol("privateInternals");function yt(e){return class extends e{get[mt](){return this[bt]||(this[bt]=this.attachInternals()),this[bt]}}}function gt(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function xt(e){e.addInitializer((e=>{var t=e;t.addEventListener("click",function(){var e,r=(e=function*(e){var{type:r,[mt]:o}=t,{form:i}=o;i&&"button"!==r&&(yield new Promise((e=>{setTimeout(e)})),e.defaultPrevented||("reset"!==r?(i.addEventListener("submit",(e=>{Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>t})}),{capture:!0,once:!0}),o.setFormValue(t.value),i.requestSubmit()):i.reset()))},function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);
2function n(e){gt(a,o,i,n,l,"next",e)}function l(e){gt(a,o,i,n,l,"throw",e)}n(void 0)}))});return function(e){return r.apply(this,arguments)}}())}))}function _t(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function wt(e){var t=new MouseEvent("click",{bubbles:!0});return e.dispatchEvent(t),t}function Ot(e){return e.currentTarget===e.target&&e.composedPath()[0]===e.target&&!e.target.disabled&&!function(e){var t=Pt;return t&&(e.preventDefault(),e.stopImmediatePropagation()),function(){St.apply(this,arguments)}(),t}(e)}var kt,zt,Ct,Et,jt,Pt=!1;function St(){var e;return e=function*(){Pt=!0,yield null,Pt=!1},St=function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function n(e){_t(a,o,i,n,l,"next",e)}function l(e){_t(a,o,i,n,l,"throw",e)}n(void 0)}))},St.apply(this,arguments)}function At(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Tt,It,Rt=yt(Ie);class Lt extends Rt{get name(){var e;return null!==(e=this.getAttribute("name"))&&void 0!==e?e:""}set name(e){this.setAttribute("name",e)}get form(){return this[mt].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.handleActivationClick=e=>{Ot(e)&&this.buttonElement&&(this.focus(),wt(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;null===(e=this.buttonElement)||void 0===e||e.focus()}blur(){var e;null===(e=this.buttonElement)||void 0===e||e.blur()}render(){var e,t=this.disabled&&!this.href,r=this.href?this.renderLink():this.renderButton(),o=this.href?"link":"button";return ve(kt||(kt=At(["\n ",'\n <div class="background"></div>\n <md-focus-ring part="focus-ring" for=',"></md-focus-ring>\n <md-ripple for=",' ?disabled="','"></md-ripple>\n ',"\n "])),null===(e=this.renderElevationOrOutline)||void 0===e?void 0:e.call(this),o,o,t,r)}renderButton(){var{ariaLabel:e,ariaHasPopup:t,ariaExpanded:r}=this;return ve(zt||(zt=At(['<button\n id="button"\n class="button"\n ?disabled=','\n aria-label="','"\n aria-haspopup="','"\n aria-expanded="','">\n ',"\n </button>"])),this.disabled,e||ue,t||ue,r||ue,this.renderContent())}renderLink(){var{ariaLabel:e,ariaHasPopup:t,ariaExpanded:r}=this;return ve(Ct||(Ct=At(['<a\n id="link"\n class="button"\n aria-label="','"\n aria-haspopup="','"\n aria-expanded="','"\n href=',"\n target=","\n >","\n </a>"])),e||ue,t||ue,r||ue,this.href,this.target||ue,this.renderContent())}renderContent(){var e=ve(Et||(Et=At(['<slot\n name="icon"\n @slotchange="','"></slot>'])),this.handleSlotChange);return ve(jt||(jt=At(['\n <span class="touch"></span>\n ','\n <span class="label"><slot></slot></span>\n ',"\n "])),this.trailingIcon?ue:e,this.trailingIcon?e:ue)}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}ft(Lt),xt(Lt),Lt.formAssociated=!0,Lt.shadowRootOptions={mode:"open",delegatesFocus:!0},e([T({type:Boolean,reflect:!0})],Lt.prototype,"disabled",void 0),e([T()],Lt.prototype,"href",void 0),e([T()],Lt.prototype,"target",void 0),e([T({type:Boolean,attribute:"trailing-icon",reflect:!0})],Lt.prototype,"trailingIcon",void 0),e([T({type:Boolean,attribute:"has-icon",reflect:!0})],Lt.prototype,"hasIcon",void 0),e([T()],Lt.prototype,"type",void 0),e([T({reflect:!0})],Lt.prototype,"value",void 0),e([B(".button")],Lt.prototype,"buttonElement",void 0),e([F({slot:"icon",flatten:!0})],Lt.prototype,"assignedIcons",void 0);class Dt extends Lt{renderElevationOrOutline(){return ve(Tt||(Tt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<md-elevation></md-elevation>"])))}}var $t,Mt,Bt,Ut,Nt=c(It||(It=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-color: var(--md-elevated-button-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_container-elevation: var(--md-elevated-button-container-elevation, 1);--_container-height: var(--md-elevated-button-container-height, 40px);--_container-shadow-color: var(--md-elevated-button-container-shadow-color, var(--md-sys-color-shadow, #000));
2--_container-shape: var(--md-elevated-button-container-shape, 9999px);--_disabled-container-color: var(--md-elevated-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-elevated-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-elevated-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-elevated-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-elevated-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-elevated-button-focus-container-elevation, 1);--_focus-label-text-color: var(--md-elevated-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-elevated-button-hover-container-elevation, 2);--_hover-label-text-color: var(--md-elevated-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-elevated-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-elevated-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-elevated-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-elevated-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-elevated-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-elevated-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-elevated-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-elevated-button-pressed-container-elevation, 1);--_pressed-label-text-color: var(--md-elevated-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-elevated-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-elevated-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-elevated-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-elevated-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-elevated-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-elevated-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-elevated-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-elevated-button-icon-size, 18px);--_pressed-icon-color: var(--md-elevated-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-elevated-button-leading-space, 24px);--_trailing-space: var(--md-elevated-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-elevated-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-elevated-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-elevated-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-elevated-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-elevated-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-elevated-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-elevated-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-elevated-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=elevated-styles.css.map */\n"]))),Ft=c($t||($t=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["md-elevation{transition-duration:280ms}:host([disabled]) md-elevation{transition:none}md-elevation{--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color)}:host(:focus-within) md-elevation{--md-elevation-level: var(--_focus-container-elevation)}:host(:hover) md-elevation{--md-elevation-level: var(--_hover-container-elevation)}:host(:active) md-elevation{--md-elevation-level: var(--_pressed-container-elevation)}:host([disabled]) md-elevation{--md-elevation-level: var(--_disabled-container-elevation)}/*# sourceMappingURL=shared-elevation-styles.css.map */\n"]))),qt=c(Mt||(Mt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;
2cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background-color:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host([disabled]) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host([disabled]) .background{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host([disabled]){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([disabled]) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}/*# sourceMappingURL=shared-styles.css.map */\n"]))),Vt=class extends Dt{};Vt.styles=[qt,Ft,Nt],Vt=e([t("md-elevated-button")],Vt);class Ht extends Lt{renderElevationOrOutline(){return ve(Bt||(Bt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<md-elevation></md-elevation>"])))}}var Kt,Wt,Gt=c(Ut||(Ut=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));
2--_container-shape: var(--md-filled-button-container-shape, 9999px);--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-filled-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=filled-styles.css.map */\n"]))),Xt=class extends Ht{};Xt.styles=[qt,Ft,Gt],Xt=e([t("md-filled-button")],Xt);class Yt extends Lt{renderElevationOrOutline(){return ve(Kt||(Kt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<md-elevation></md-elevation>"])))}}var Zt,Jt,Qt=c(Wt||(Wt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));
2--_container-shape: var(--md-filled-tonal-button-container-shape, 9999px);--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-filled-tonal-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-tonal-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-tonal-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-tonal-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=filled-tonal-styles.css.map */\n"]))),er=class extends Yt{};
2er.styles=[qt,Ft,Qt],er=e([t("md-filled-tonal-button")],er);class tr extends Lt{renderElevationOrOutline(){return ve(Zt||(Zt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['<div class="outline"></div>'])))}}var rr,or=c(Jt||(Jt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-height: var(--md-outlined-button-container-height, 40px);--_container-shape: var(--md-outlined-button-container-shape, 9999px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0;--_container-shape-start-start: var( --md-outlined-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-button-container-shape-end-start, var(--_container-shape) )}.outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}:host(:active) .outline{border-color:var(--_pressed-outline-color)}:host([disabled]) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){:host([disabled]) .background{border-color:GrayText}:host([disabled]) .outline{opacity:1}}.outline,md-ripple{border-width:var(--_outline-width)}md-ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)}/*# sourceMappingURL=outlined-styles.css.map */\n"]))),ir=class extends tr{};ir.styles=[qt,or],ir=e([t("md-outlined-button")],ir);class ar extends Lt{}var nr=c(rr||(rr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-height: var(--md-text-button-container-height, 40px);--_container-shape: var(--md-text-button-container-shape, 9999px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0;--_container-shape-start-start: var( --md-text-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-text-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-text-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-text-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=text-styles.css.map */\n"]))),lr=class extends ar{};function sr(e,t){!t.bubbles||e.shadowRoot&&!t.composed||t.stopPropagation();var r=Reflect.construct(t.constructor,[t.type,t]),o=e.dispatchEvent(r);return o||t.preventDefault(),o}function dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?dr(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}lr.styles=[qt,nr],lr=e([t("md-text-button")],lr);var vr=Symbol("createValidator"),pr=Symbol("getValidityAnchor"),hr=Symbol("privateValidator"),ur=Symbol("privateSyncValidity"),fr=Symbol("privateCustomValidationMessage");function mr(e){var t;class r extends e{constructor(){super(...arguments),this[t]=""}get validity(){return this[ur](),this[mt].validity}get validationMessage(){return this[ur](),this[mt].validationMessage}get willValidate(){return this[ur](),this[mt].willValidate}checkValidity(){return this[ur](),this[mt].checkValidity()}reportValidity(){return this[ur](),this[mt].reportValidity()}setCustomValidity(e){this[fr]=e,this[ur]()}requestUpdate(e,t,r){super.requestUpdate(e,t,r),this[ur]()}firstUpdated(e){super.firstUpdated(e),this[ur]()}[(t=fr,ur)](){var e;this[hr]||(this[hr]=this[vr]());var{validity:t,validationMessage:r}=this[hr].getValidity(),o=!!this[fr],i=this[fr]||r;this[mt].setValidity(cr(cr({},t),{},{customError:o}),i,null!==(e=this[pr]())&&void 0!==e?e:void 0)}[vr](){throw new Error("Implement [createValidator]")}[pr](){throw new Error("Implement [getValidityAnchor]")}}return r}var br,yr=Symbol("getFormValue"),gr=Symbol("getFormState");function xr(t){class r extends t{get form(){return this[mt].form}get labels(){return this[mt].labels}get name(){var e;return null!==(e=this.getAttribute("name"))&&void 0!==e?e:""}set name(e){this.setAttribute("name",e)}get disabled(){return this.hasAttribute("disabled")}set disabled(e){this.toggleAttribute("disabled",e)}attributeChangedCallback(e,t,r){if("name"!==e&&"disabled"!==e)super.attributeChangedCallback(e,t,r);else{var o="disabled"===e?null!==t:t;this.requestUpdate(e,o)}}requestUpdate(e,t,r){super.requestUpdate(e,t,r),this[mt].setFormValue(this[yr](),this[gr]())}[yr](){throw new Error("Implement [getFormValue]")}[gr](){return this[yr]()}formDisabledCallback(e){this.disabled=e}}return r.formAssociated=!0,e([T({noAccessor:!0})],r.prototype,"name",null),e([T({type:Boolean,noAccessor:!0})],r.prototype,"disabled",null),r}class _r{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:""}}getValidity(){var e=this.getCurrentState();if(this.prevState&&this.equals(this.prevState,e))return this.currentValidity;var{validity:t,validationMessage:r}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:r,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}}class wr extends _r{computeValidity(e){return this.checkboxControl||(this.checkboxControl=document.createElement("input"),this.checkboxControl.type="checkbox"),this.checkboxControl.checked=e.checked,this.checkboxControl.required=e.required,{validity:this.checkboxControl.validity,validationMessage:this.checkboxControl.validationMessage}}equals(e,t){return e.checked===t.checked&&e.required===t.required}copy(e){var{checked:t,required:r}=e;return{checked:t,required:r}}}function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Or(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zr,Cr=mr(xr(yt(Ie)));class Er extends Cr{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",(e=>{Ot(e)&&this.input&&(this.focus(),wt(this.input))}))}update(e){var t,r,o;(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=null!==(t=e.get("checked"))&&void 0!==t?t:this.checked,this.prevDisabled=null!==(r=e.get("disabled"))&&void 0!==r?r:this.disabled,this.prevIndeterminate=null!==(o=e.get("indeterminate"))&&void 0!==o?o:this.indeterminate),super.update(e)}render(){var e=!this.prevChecked&&!this.prevIndeterminate,t=this.prevChecked&&!this.prevIndeterminate,r=this.prevIndeterminate,o=this.checked&&!this.indeterminate,i=this.indeterminate,a=tt({disabled:this.disabled,selected:o||i,unselected:!o&&!i,checked:o,indeterminate:i,"prev-unselected":e,"prev-checked":t,"prev-indeterminate":r,"prev-disabled":this.prevDisabled}),{ariaLabel:n,ariaInvalid:l}=this;return ve(br||(br=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="container ','">\n <input\n type="checkbox"\n id="input"\n aria-checked=',"\n aria-label=","\n aria-invalid=","\n ?disabled=","\n ?required=","\n .indeterminate=","\n .checked=","\n @input=","\n @change=",' />\n\n <div class="outline"></div>\n <div class="background"></div>\n <md-focus-ring part="focus-ring" for="input"></md-focus-ring>\n <md-ripple for="input" ?disabled=','></md-ripple>\n <svg class="icon" viewBox="0 0 18 18" aria-hidden="true">\n <rect class="mark short" />\n <rect class="mark long" />\n </svg>\n </div>\n '])),a,i?"mixed":ue,n||ue,l||ue,this.disabled,this.required,this.indeterminate,this.checked,this.handleInput,this.handleChange,this.disabled)}handleInput(e){var t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){sr(this,e)}[yr](){return!this.checked||this.indeterminate?null:this.value}[gr](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked="true"===e}[vr](){return new wr((()=>this))}[pr](){return this.input}}ft(Er),Er.shadowRootOptions=kr(kr({},Ie.shadowRootOptions),{},{delegatesFocus:!0}),e([T({type:Boolean})],Er.prototype,"checked",void 0),e([T({type:Boolean})],Er.prototype,"indeterminate",void 0),e([T({type:Boolean})],Er.prototype,"required",void 0),e([T()],Er.prototype,"value",void 0),e([L()],Er.prototype,"prevChecked",void 0),e([L()],Er.prototype,"prevDisabled",void 0),e([L()],Er.prototype,"prevIndeterminate",void 0),e([B("input")],Er.prototype,"input",void 0);var jr,Pr,Sr,Ar,Tr,Ir,Rr,Lr,Dr,$r=c(zr||(zr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{border-start-start-radius:var(--md-checkbox-container-shape-start-start, var(--md-checkbox-container-shape, 2px));border-start-end-radius:var(--md-checkbox-container-shape-start-end, var(--md-checkbox-container-shape, 2px));border-end-end-radius:var(--md-checkbox-container-shape-end-end, var(--md-checkbox-container-shape, 2px));border-end-start-radius:var(--md-checkbox-container-shape-end-start, var(--md-checkbox-container-shape, 2px));display:inline-flex;height:var(--md-checkbox-container-size, 18px);position:relative;vertical-align:top;width:var(--md-checkbox-container-size, 18px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-checkbox-container-size, 18px))/2)}md-focus-ring{height:44px;inset:unset;width:44px}input{appearance:none;height:48px;margin:0;opacity:0;outline:none;position:absolute;width:48px;z-index:1;cursor:inherit}:host([touch-target=none]) input{height:100%;width:100%}.container{border-radius:inherit;display:flex;height:100%;place-content:center;place-items:center;position:relative;width:100%}.outline,.background,.icon{inset:0;position:absolute}.outline,.background{border-radius:inherit}.outline{border-color:var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant, #49454f));border-style:solid;border-width:var(--md-checkbox-outline-width, 2px);box-sizing:border-box}.background{background-color:var(--md-checkbox-selected-container-color, var(--md-sys-color-primary, #6750a4))}.background,.icon{opacity:0;transition-duration:150ms,50ms;transition-property:transform,opacity;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15),linear;transform:scale(0.6)}:where(.selected) :is(.background,.icon){opacity:1;transition-duration:350ms,50ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1),linear;transform:scale(1)}md-ripple{border-radius:var(--md-checkbox-state-layer-shape, 9999px);height:var(--md-checkbox-state-layer-size, 40px);inset:unset;width:var(--md-checkbox-state-layer-size, 40px);--md-ripple-hover-color: var(--md-checkbox-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-checkbox-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-checkbox-pressed-state-layer-opacity, 0.12)}.selected md-ripple{--md-ripple-hover-color: var(--md-checkbox-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-checkbox-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-checkbox-selected-pressed-state-layer-opacity, 0.12)}
2.icon{fill:var(--md-checkbox-selected-icon-color, var(--md-sys-color-on-primary, #fff));height:var(--md-checkbox-icon-size, 18px);width:var(--md-checkbox-icon-size, 18px)}.mark.short{height:2px;transition-property:transform,height;width:2px}.mark.long{height:2px;transition-property:transform,width;width:10px}.mark{animation-duration:150ms;animation-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15);transition-duration:150ms;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15)}.selected .mark{animation-duration:350ms;animation-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1);transition-duration:350ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1)}.checked .mark,.prev-checked.unselected .mark{transform:scaleY(-1) translate(7px, -14px) rotate(45deg)}.checked .mark.short,.prev-checked.unselected .mark.short{height:5.6568542495px}.checked .mark.long,.prev-checked.unselected .mark.long{width:11.313708499px}.indeterminate .mark,.prev-indeterminate.unselected .mark{transform:scaleY(-1) translate(4px, -10px) rotate(0deg)}.prev-unselected .mark{transition-property:none}.prev-unselected.checked .mark.long{animation-name:prev-unselected-to-checked}@keyframes prev-unselected-to-checked{from{width:0}}:where(:hover) .outline{border-color:var(--md-checkbox-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-hover-outline-width, 2px)}:where(:hover) .background{background:var(--md-checkbox-selected-hover-container-color, var(--md-sys-color-primary, #6750a4))}:where(:hover) .icon{fill:var(--md-checkbox-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:focus-within) .outline{border-color:var(--md-checkbox-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-focus-outline-width, 2px)}:where(:focus-within) .background{background:var(--md-checkbox-selected-focus-container-color, var(--md-sys-color-primary, #6750a4))}:where(:focus-within) .icon{fill:var(--md-checkbox-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:active) .outline{border-color:var(--md-checkbox-pressed-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-pressed-outline-width, 2px)}:where(:active) .background{background:var(--md-checkbox-selected-pressed-container-color, var(--md-sys-color-primary, #6750a4))}:where(:active) .icon{fill:var(--md-checkbox-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff))}:where(.disabled,.prev-disabled) :is(.background,.icon,.mark){animation-duration:0s;transition-duration:0s}:where(.disabled) .outline{border-color:var(--md-checkbox-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-disabled-outline-width, 2px);opacity:var(--md-checkbox-disabled-container-opacity, 0.38)}:where(.selected.disabled) .outline{visibility:hidden}:where(.selected.disabled) .background{background:var(--md-checkbox-selected-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-checkbox-selected-disabled-container-opacity, 0.38)}:where(.disabled) .icon{fill:var(--md-checkbox-selected-disabled-icon-color, var(--md-sys-color-surface, #fef7ff))}@media(forced-colors: active){.background{background-color:CanvasText}.selected.disabled .background{background-color:GrayText;opacity:1}.outline{border-color:CanvasText}.disabled .outline{border-color:GrayText;opacity:1}.icon{fill:Canvas}}/*# sourceMappingURL=checkbox-styles.css.map */\n"]))),Mr=class extends Er{};function Br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Br(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Mr.styles=[$r],Mr=e([t("md-checkbox")],Mr);class Fr extends Ie{constructor(){super(...arguments),this.disabled=!1,this.alwaysFocusable=!1,this.label="",this.hasIcon=!1}get rippleDisabled(){return this.disabled}focus(e){this.disabled&&!this.alwaysFocusable||super.focus(e)}render(){return ve(jr||(jr=Nr(['\n <div class="container ','">\n ',"\n </div>\n "])),tt(this.getContainerClasses()),this.renderContainerContent())}updated(e){e.has("disabled")&&void 0!==e.get("disabled")&&this.dispatchEvent(new Event("update-focus",{bubbles:!0}))}getContainerClasses(){return{disabled:this.disabled,"has-icon":this.hasIcon}}renderContainerContent(){return ve(Pr||(Pr=Nr(["\n ",'\n <md-focus-ring part="focus-ring" for=',"></md-focus-ring>\n <md-ripple\n for=","\n ?disabled=","></md-ripple>\n ","\n "])),this.renderOutline(),this.primaryId,this.primaryId,this.rippleDisabled,this.renderPrimaryAction(this.renderPrimaryContent()))}renderOutline(){return ve(Sr||(Sr=Nr(['<span class="outline"></span>'])))}renderLeadingIcon(){return ve(Ar||(Ar=Nr(['<slot name="icon" @slotchange=',"></slot>"])),this.handleIconChange)}renderPrimaryContent(){return ve(Tr||(Tr=Nr(['\n <span class="leading icon" aria-hidden="true">\n ','\n </span>\n <span class="label">','</span>\n <span class="touch"></span>\n '])),this.renderLeadingIcon(),this.label)}handleIconChange(e){var t=e.target;this.hasIcon=t.assignedElements({flatten:!0}).length>0}}function qr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}ft(Fr),Fr.shadowRootOptions=Ur(Ur({},Ie.shadowRootOptions),{},{delegatesFocus:!0}),e([T({type:Boolean,reflect:!0})],Fr.prototype,"disabled",void 0),e([T({type:Boolean,attribute:"always-focusable"})],Fr.prototype,"alwaysFocusable",void 0),e([T()],Fr.prototype,"label",void 0),e([T({type:Boolean,reflect:!0,attribute:"has-icon"})],Fr.prototype,"hasIcon",void 0);class Kr extends Fr{constructor(){super(...arguments),this.elevated=!1,this.href="",this.target=""}get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&this.disabled}getContainerClasses(){return Hr(Hr({},super.getContainerClasses()),{},{disabled:!this.href&&this.disabled,elevated:this.elevated,link:!!this.href})}renderPrimaryAction(e){var{ariaLabel:t}=this;return this.href?ve(Ir||(Ir=qr(['\n <a\n class="primary action"\n id="link"\n aria-label=',"\n href=","\n target=","\n >","</a\n >\n "])),t||ue,this.href,this.target||ue,e):ve(Rr||(Rr=qr(['\n <button\n class="primary action"\n id="button"\n aria-label=',"\n ?disabled=",'\n type="button"\n >',"</button\n >\n "])),t||ue,this.disabled&&!this.alwaysFocusable,e)}renderOutline(){return this.elevated?ve(Lr||(Lr=qr(["<md-elevation></md-elevation>"]))):super.renderOutline()}}e([T({type:Boolean})],Kr.prototype,"elevated",void 0),e([T()],Kr.prototype,"href",void 0),e([T()],Kr.prototype,"target",void 0);var Wr,Gr,Xr,Yr,Zr=c(Dr||(Dr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-height: var(--md-assist-chip-container-height, 32px);--_container-shape: var(--md-assist-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));
2--_elevated-disabled-container-color: var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color: var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color: var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-assist-chip-leading-space, 16px);--_trailing-space: var(--md-assist-chip-trailing-space, 16px);--_icon-label-space: var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-assist-chip-with-leading-icon-leading-space, 8px);--_container-shape-start-start: var( --md-assist-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-assist-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-assist-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-assist-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=assist-styles.css.map */\n"]))),Jr=c(Wr||(Wr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".elevated{--md-elevation-level: var(--_elevated-container-elevation);--md-elevation-shadow-color: var(--_elevated-container-shadow-color)}.elevated::before{background:var(--_elevated-container-color)}.elevated:hover{--md-elevation-level: var(--_elevated-hover-container-elevation)}.elevated:focus-within{--md-elevation-level: var(--_elevated-focus-container-elevation)}.elevated:active{--md-elevation-level: var(--_elevated-pressed-container-elevation)}.elevated.disabled{--md-elevation-level: var(--_elevated-disabled-container-elevation)}.elevated.disabled::before{background:var(--_elevated-disabled-container-color);opacity:var(--_elevated-disabled-container-opacity)}@media(forced-colors: active){.elevated md-elevation{border:1px solid CanvasText}.elevated.disabled md-elevation{border-color:GrayText}}/*# sourceMappingURL=elevated-styles.css.map */\n"]))),Qr=c(Gr||(Gr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);
2display:inline-flex;height:var(--_container-height);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}:host([disabled]){pointer-events:none}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.container{border-radius:inherit;box-sizing:border-box;display:flex;height:100%;position:relative;width:100%}.container::before{border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute}.container:not(.disabled){cursor:pointer}.container.disabled{pointer-events:none}.cell{display:flex}.action{align-items:baseline;appearance:none;background:none;border:none;border-radius:inherit;display:flex;outline:none;padding:0;position:relative;text-decoration:none}.primary.action{padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space)}.has-icon .primary.action{padding-inline-start:var(--_with-leading-icon-leading-space)}.touch{height:48px;inset:50% 0 0;position:absolute;transform:translateY(-50%);width:100%}:host([touch-target=none]) .touch{display:none}.outline{border:var(--_outline-width) solid var(--_outline-color);border-radius:inherit;inset:0;pointer-events:none;position:absolute}:where(:focus) .outline{border-color:var(--_focus-outline-color)}:where(.disabled) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}md-ripple{border-radius:inherit}.label,.icon,.touch{z-index:1}.label{align-items:center;color:var(--_label-text-color);display:flex;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);height:100%;text-overflow:ellipsis;user-select:none;white-space:nowrap}:where(:hover) .label{color:var(--_hover-label-text-color)}:where(:focus) .label{color:var(--_focus-label-text-color)}:where(:active) .label{color:var(--_pressed-label-text-color)}:where(.disabled) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}.icon{align-self:center;display:flex;fill:currentColor;position:relative}.icon ::slotted(:first-child){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size)}.leading.icon{color:var(--_leading-icon-color)}.leading.icon ::slotted(*),.leading.icon svg{margin-inline-end:var(--_icon-label-space)}:where(:hover) .leading.icon{color:var(--_hover-leading-icon-color)}:where(:focus) .leading.icon{color:var(--_focus-leading-icon-color)}:where(:active) .leading.icon{color:var(--_pressed-leading-icon-color)}:where(.disabled) .leading.icon{color:var(--_disabled-leading-icon-color);opacity:var(--_disabled-leading-icon-opacity)}@media(forced-colors: active){:where(.disabled) :is(.label,.outline,.leading.icon){color:GrayText;opacity:1}}a,button:not(:disabled){cursor:inherit}/*# sourceMappingURL=shared-styles.css.map */\n']))),eo=class extends Kr{};eo.styles=[Qr,Jr,Zr],eo=e([t("md-assist-chip")],eo);class to extends Ie{get chips(){return this.childElements.filter((e=>e instanceof Fr))}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return ve(Xr||(Xr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<slot @slotchange=","></slot>"])),this.updateTabIndices)}handleKeyDown(e){var t="ArrowLeft"===e.key,r="ArrowRight"===e.key,o="Home"===e.key,i="End"===e.key;if(t||r||o||i){var{chips:a}=this;if(!(a.length<2)){if(e.preventDefault(),o||i)return a[o?0:a.length-1].focus({trailing:i}),void this.updateTabIndices();var n="rtl"===getComputedStyle(this).direction?t:r,l=a.find((e=>e.matches(":focus-within")));if(!l)return(n?a[0]:a[a.length-1]).focus({trailing:!n}),void this.updateTabIndices();for(var s=a.indexOf(l),d=n?s+1:s-1;d!==s;){d>=a.length?d=0:d<0&&(d=a.length-1);var c=a[d];if(!c.disabled||c.alwaysFocusable){c.focus({trailing:!n}),this.updateTabIndices();break}n?d++:d--}}}}updateTabIndices(){var e,{chips:t}=this;for(var r of t){var o=r.alwaysFocusable||!r.disabled;r.matches(":focus-within")&&o?e=r:(o&&!e&&(e=r),r.tabIndex=-1)}e&&(e.tabIndex=0)}}e([F()],to.prototype,"childElements",void 0);var ro,oo=c(Yr||(Yr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{display:flex;flex-wrap:wrap;gap:8px}/*# sourceMappingURL=chip-set-styles.css.map */\n"]))),io=class extends to{};io.styles=[oo],io=e([t("md-chip-set")],io);var ao,no,lo,so,co,vo="aria-label-remove";class po extends Fr{get ariaLabelRemove(){if(this.hasAttribute(vo))return this.getAttribute(vo);var{ariaLabel:e}=this;return"Remove ".concat(e||this.label)}set ariaLabelRemove(e){e!==this.ariaLabelRemove&&(null===e?this.removeAttribute(vo):this.setAttribute(vo,e),this.requestUpdate())}constructor(){super(),this.handleTrailingActionFocus=this.handleTrailingActionFocus.bind(this),this.addEventListener("keydown",this.handleKeyDown.bind(this))}focus(e){(this.alwaysFocusable||!this.disabled)&&null!=e&&e.trailing&&this.trailingAction?this.trailingAction.focus(e):super.focus(e)}renderContainerContent(){return ve(ro||(ro=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n ","\n ","\n "])),super.renderContainerContent(),this.renderTrailingAction(this.handleTrailingActionFocus))}handleKeyDown(e){var t,r,o="ArrowLeft"===e.key,i="ArrowRight"===e.key;if((o||i)&&this.primaryAction&&this.trailingAction){var a="rtl"===getComputedStyle(this).direction?o:i,n=null===(t=this.primaryAction)||void 0===t?void 0:t.matches(":focus-within"),l=null===(r=this.trailingAction)||void 0===r?void 0:r.matches(":focus-within");a&&l||!a&&n||(e.preventDefault(),e.stopPropagation(),(a?this.trailingAction:this.primaryAction).focus())}}handleTrailingActionFocus(){var{primaryAction:e,trailingAction:t}=this;e&&t&&(e.tabIndex=-1,t.addEventListener("focusout",(()=>{e.tabIndex=0}),{once:!0}))}}function ho(e){var{ariaLabel:t,disabled:r,focusListener:o,tabbable:i=!1}=e;
2return ve(ao||(ao=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <button\n class="trailing action"\n aria-label=',"\n tabindex=","\n @click=","\n @focus=",'>\n <md-focus-ring part="trailing-focus-ring"></md-focus-ring>\n <md-ripple ?disabled=','></md-ripple>\n <span class="trailing icon" aria-hidden="true">\n <slot name="remove-trailing-icon">\n <svg viewBox="0 96 960 960">\n <path\n d="m249 849-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z" />\n </svg>\n </slot>\n </span>\n <span class="touch"></span>\n </button>\n '])),t,i?ue:-1,uo,o,r)}function uo(e){this.disabled||(e.stopPropagation(),!this.dispatchEvent(new Event("remove",{cancelable:!0}))||this.remove())}function fo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function bo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class yo extends po{constructor(){super(...arguments),this.elevated=!1,this.removable=!1,this.selected=!1,this.hasSelectedIcon=!1}get primaryId(){return"button"}getContainerClasses(){return bo(bo({},super.getContainerClasses()),{},{elevated:this.elevated,selected:this.selected,"has-trailing":this.removable,"has-icon":this.hasIcon||this.selected})}renderPrimaryAction(e){var{ariaLabel:t}=this;return ve(no||(no=fo(['\n <button\n class="primary action"\n id="button"\n aria-label=',"\n aria-pressed=","\n ?disabled=","\n @click=","\n >","</button\n >\n "])),t||ue,this.selected,this.disabled&&!this.alwaysFocusable,this.handleClick,e)}renderLeadingIcon(){return this.selected?ve(lo||(lo=fo(['\n <slot name="selected-icon">\n <svg class="checkmark" viewBox="0 0 18 18" aria-hidden="true">\n <path\n d="M6.75012 12.1274L3.62262 8.99988L2.55762 10.0574L6.75012 14.2499L15.7501 5.24988L14.6926 4.19238L6.75012 12.1274Z" />\n </svg>\n </slot>\n ']))):super.renderLeadingIcon()}renderTrailingAction(e){return this.removable?ho({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:this.disabled}):ue}renderOutline(){return this.elevated?ve(so||(so=fo(["<md-elevation></md-elevation>"]))):super.renderOutline()}handleClick(e){if(!this.disabled){var t=this.selected;this.selected=!this.selected,!sr(this,e)&&(this.selected=t)}}}e([T({type:Boolean})],yo.prototype,"elevated",void 0),e([T({type:Boolean})],yo.prototype,"removable",void 0),e([T({type:Boolean,reflect:!0})],yo.prototype,"selected",void 0),e([T({type:Boolean,reflect:!0,attribute:"has-selected-icon"})],yo.prototype,"hasSelectedIcon",void 0),e([B(".primary.action")],yo.prototype,"primaryAction",void 0),e([B(".trailing.action")],yo.prototype,"trailingAction",void 0);var go,xo,_o,wo,Oo,ko,zo=c(co||(co=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-height: var(--md-filter-chip-container-height, 32px);--_container-shape: var(--md-filter-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-filter-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filter-chip-disabled-label-text-opacity, 0.38);--_elevated-container-elevation: var(--md-filter-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-filter-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));
2--_elevated-disabled-container-color: var(--md-filter-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-filter-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-filter-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-filter-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-filter-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-filter-chip-elevated-pressed-container-elevation, 1);--_elevated-selected-container-color: var(--md-filter-chip-elevated-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_label-text-font: var(--md-filter-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filter-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filter-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filter-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-focus-label-text-color: var(--md-filter-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-filter-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-filter-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity: var(--md-filter-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color: var(--md-filter-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-filter-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-filter-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_selected-pressed-state-layer-opacity: var(--md-filter-chip-selected-pressed-state-layer-opacity, 0.12);--_elevated-container-color: var(--md-filter-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_disabled-outline-color: var(--md-filter-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-filter-chip-disabled-outline-opacity, 0.12);--_disabled-selected-container-color: var(--md-filter-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-filter-chip-disabled-selected-container-opacity, 0.12);--_focus-outline-color: var(--md-filter-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-filter-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-filter-chip-outline-width, 1px);--_selected-container-color: var(--md-filter-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-outline-width: var(--md-filter-chip-selected-outline-width, 0px);--_focus-label-text-color: var(--md-filter-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-filter-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filter-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-filter-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filter-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--md-filter-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-filter-chip-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filter-chip-pressed-state-layer-opacity, 0.12);--_icon-size: var(--md-filter-chip-icon-size, 18px);--_disabled-leading-icon-color: var(--md-filter-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-filter-chip-disabled-leading-icon-opacity, 0.38);--_selected-focus-leading-icon-color: var(--md-filter-chip-selected-focus-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-leading-icon-color: var(--md-filter-chip-selected-hover-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-leading-icon-color: var(--md-filter-chip-selected-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-leading-icon-color: var(--md-filter-chip-selected-pressed-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-leading-icon-color: var(--md-filter-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-filter-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-filter-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-filter-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color: var(--md-filter-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-filter-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color: var(--md-filter-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color: var(--md-filter-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color: var(--md-filter-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color: var(--md-filter-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color: var(--md-filter-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-filter-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color: var(--md-filter-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color: var(--md-filter-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filter-chip-leading-space, 16px);--_trailing-space: var(--md-filter-chip-trailing-space, 16px);--_icon-label-space: var(--md-filter-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-filter-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space: var(--md-filter-chip-with-trailing-icon-trailing-space, 8px);--_container-shape-start-start: var( --md-filter-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filter-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filter-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filter-chip-container-shape-end-start, var(--_container-shape) )}.selected.elevated::before{background:var(--_elevated-selected-container-color)}.checkmark{height:var(--_icon-size);width:var(--_icon-size)}.disabled .checkmark{opacity:var(--_disabled-leading-icon-opacity)}@media(forced-colors: active){.disabled .checkmark{opacity:1}}/*# sourceMappingURL=filter-styles.css.map */\n"]))),Co=c(go||(go=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}:where(.selected)::before{background:var(--_selected-container-color)}:where(.selected) .outline{border-width:var(--_selected-outline-width)}:where(.selected.disabled)::before{background:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}:where(.selected) .label{color:var(--_selected-label-text-color)}:where(.selected:hover) .label{color:var(--_selected-hover-label-text-color)}:where(.selected:focus) .label{color:var(--_selected-focus-label-text-color)}:where(.selected:active) .label{color:var(--_selected-pressed-label-text-color)}:where(.selected) .leading.icon{color:var(--_selected-leading-icon-color)}:where(.selected:hover) .leading.icon{color:var(--_selected-hover-leading-icon-color)}:where(.selected:focus) .leading.icon{color:var(--_selected-focus-leading-icon-color)}:where(.selected:active) .leading.icon{color:var(--_selected-pressed-leading-icon-color)}@media(forced-colors: active){:where(.selected:not(.elevated))::before{border:1px solid CanvasText}:where(.selected) .outline{border-width:1px}}/*# sourceMappingURL=selectable-styles.css.map */\n"]))),Eo=c(xo||(xo=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".trailing.action{align-items:center;justify-content:center;padding-inline-start:var(--_icon-label-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}.trailing.action :is(md-ripple,md-focus-ring){border-radius:50%;height:calc(1.3333333333*var(--_icon-size));width:calc(1.3333333333*var(--_icon-size))}.trailing.action md-focus-ring{inset:unset}.has-trailing .primary.action{padding-inline-end:0}.trailing.icon{color:var(--_trailing-icon-color);height:var(--_icon-size);width:var(--_icon-size)}:where(:hover) .trailing.icon{color:var(--_hover-trailing-icon-color)}:where(:focus) .trailing.icon{color:var(--_focus-trailing-icon-color)}:where(:active) .trailing.icon{color:var(--_pressed-trailing-icon-color)}:where(.disabled) .trailing.icon{color:var(--_disabled-trailing-icon-color);opacity:var(--_disabled-trailing-icon-opacity)}:where(.selected) .trailing.icon{color:var(--_selected-trailing-icon-color)}:where(.selected:hover) .trailing.icon{color:var(--_selected-hover-trailing-icon-color)}:where(.selected:focus) .trailing.icon{color:var(--_selected-focus-trailing-icon-color)}:where(.selected:active) .trailing.icon{color:var(--_selected-pressed-trailing-icon-color)}@media(forced-colors: active){.trailing.icon{color:ButtonText}:where(.disabled) .trailing.icon{color:GrayText;opacity:1}}/*# sourceMappingURL=trailing-icon-styles.css.map */\n"]))),jo=class extends yo{};function Po(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function So(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ao(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?So(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):So(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}jo.styles=[Qr,Jr,Eo,Co,zo],jo=e([t("md-filter-chip")],jo);class To extends po{constructor(){super(...arguments),this.avatar=!1,this.href="",this.target="",this.removeOnly=!1,this.selected=!1}get primaryId(){return this.href?"link":this.removeOnly?"":"button"}get rippleDisabled(){return!this.href&&this.disabled}get primaryAction(){return this.removeOnly?null:this.renderRoot.querySelector(".primary.action")}getContainerClasses(){return Ao(Ao({},super.getContainerClasses()),{},{avatar:this.avatar,disabled:!this.href&&this.disabled,link:!!this.href,selected:this.selected,"has-trailing":!0})}renderPrimaryAction(e){var{ariaLabel:t}=this;return this.href?ve(_o||(_o=Po(['\n <a\n class="primary action"\n id="link"\n aria-label=',"\n href=","\n target=","\n >","</a\n >\n "])),t||ue,this.href,this.target||ue,e):this.removeOnly?ve(wo||(wo=Po(['\n <span class="primary action" aria-label=',">\n ","\n </span>\n "])),t||ue,e):ve(Oo||(Oo=Po(['\n <button\n class="primary action"\n id="button"\n aria-label=',"\n ?disabled=",'\n type="button"\n >',"</button\n >\n "])),t||ue,this.disabled&&!this.alwaysFocusable,e)}renderTrailingAction(e){return ho({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&this.disabled,tabbable:this.removeOnly})}}e([T({type:Boolean})],To.prototype,"avatar",void 0),e([T()],To.prototype,"href",void 0),e([T()],To.prototype,"target",void 0),e([T({type:Boolean,attribute:"remove-only"})],To.prototype,"removeOnly",void 0),e([T({type:Boolean,reflect:!0})],To.prototype,"selected",void 0),e([B(".trailing.action")],To.prototype,"trailingAction",void 0);var Io,Ro=c(ko||(ko=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-height: var(--md-input-chip-container-height, 32px);--_container-shape: var(--md-input-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-input-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-input-chip-disabled-label-text-opacity, 0.38);--_disabled-selected-container-color: var(--md-input-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-input-chip-disabled-selected-container-opacity, 0.12);--_label-text-font: var(--md-input-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-input-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-input-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-input-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-container-color: var(--md-input-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-label-text-color: var(--md-input-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-input-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));
2--_selected-hover-state-layer-color: var(--md-input-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity: var(--md-input-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color: var(--md-input-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-outline-width: var(--md-input-chip-selected-outline-width, 0px);--_selected-pressed-label-text-color: var(--md-input-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-input-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-opacity: var(--md-input-chip-selected-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-input-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-input-chip-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-input-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-input-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-input-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-input-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-input-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-input-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-input-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-input-chip-outline-width, 1px);--_pressed-label-text-color: var(--md-input-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-input-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-input-chip-pressed-state-layer-opacity, 0.12);--_avatar-shape: var(--md-input-chip-avatar-shape, 9999px);--_avatar-size: var(--md-input-chip-avatar-size, 24px);--_disabled-avatar-opacity: var(--md-input-chip-disabled-avatar-opacity, 0.38);--_disabled-leading-icon-color: var(--md-input-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-input-chip-disabled-leading-icon-opacity, 0.38);--_icon-size: var(--md-input-chip-icon-size, 18px);--_selected-focus-leading-icon-color: var(--md-input-chip-selected-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-leading-icon-color: var(--md-input-chip-selected-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-leading-icon-color: var(--md-input-chip-selected-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-leading-icon-color: var(--md-input-chip-selected-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-input-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-input-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-input-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-input-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color: var(--md-input-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-input-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color: var(--md-input-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color: var(--md-input-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));
2--_selected-pressed-trailing-icon-color: var(--md-input-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color: var(--md-input-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color: var(--md-input-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-input-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color: var(--md-input-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color: var(--md-input-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-input-chip-leading-space, 16px);--_trailing-space: var(--md-input-chip-trailing-space, 16px);--_icon-label-space: var(--md-input-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-input-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space: var(--md-input-chip-with-trailing-icon-trailing-space, 8px);--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--_container-shape) )}:host([avatar]){--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) )}.avatar .primary.action{padding-inline-start:4px}.avatar .leading.icon ::slotted(:first-child){border-radius:var(--_avatar-shape);height:var(--_avatar-size);width:var(--_avatar-size)}.disabled.avatar .leading.icon{opacity:var(--_disabled-avatar-opacity)}@media(forced-colors: active){.link .outline{border-color:ActiveText}.disabled.avatar .leading.icon{opacity:1}}/*# sourceMappingURL=input-styles.css.map */\n"]))),Lo=class extends To{};Lo.styles=[Qr,Eo,Co,Ro],Lo=e([t("md-input-chip")],Lo);class Do extends Kr{}var $o,Mo=c(Io||(Io=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-height: var(--md-suggestion-chip-container-height, 32px);--_container-shape: var(--md-suggestion-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-suggestion-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-suggestion-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-suggestion-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-suggestion-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-suggestion-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-suggestion-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-suggestion-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-suggestion-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-suggestion-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-suggestion-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-suggestion-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-suggestion-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-suggestion-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-suggestion-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-suggestion-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-suggestion-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-suggestion-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-suggestion-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-suggestion-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-suggestion-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-suggestion-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-suggestion-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-suggestion-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-suggestion-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-suggestion-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-suggestion-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-suggestion-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-suggestion-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-suggestion-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-suggestion-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-suggestion-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-suggestion-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-suggestion-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-suggestion-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-suggestion-chip-icon-size, 18px);--_leading-space: var(--md-suggestion-chip-leading-space, 16px);--_trailing-space: var(--md-suggestion-chip-trailing-space, 16px);--_icon-label-space: var(--md-suggestion-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-suggestion-chip-with-leading-icon-leading-space, 8px);--_container-shape-start-start: var( --md-suggestion-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-suggestion-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-suggestion-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-suggestion-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=suggestion-styles.css.map */\n"]))),Bo=class extends Do{};Bo.styles=[Qr,Jr,Mo],Bo=e([t("md-suggestion-chip")],Bo);class Uo extends Ie{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}e([T({type:Boolean,reflect:!0})],Uo.prototype,"inset",void 0),e([T({type:Boolean,reflect:!0,attribute:"inset-start"})],Uo.prototype,"insetStart",void 0),e([T({type:Boolean,reflect:!0,attribute:"inset-end"})],Uo.prototype,"insetEnd",void 0);var No=c($o||($o=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}/*# sourceMappingURL=divider-styles.css.map */\n']))),Fo=class extends Uo{};
2Fo.styles=[No],Fo=e([t("md-divider")],Fo);var qo,Vo,Ho={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:ot}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:ot,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},Ko={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:it}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:it,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};function Wo(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function Go(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function n(e){Wo(a,o,i,n,l,"next",e)}function l(e){Wo(a,o,i,n,l,"throw",e)}n(void 0)}))}}class Xo extends Ie{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.returnValue="",this.getOpenAnimation=()=>Ho,this.getCloseAnimation=()=>Ko,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.escapePressedWithoutCancel=!1,this.addEventListener("submit",this.handleSubmit),this.addEventListener("focus",(()=>{var e;null===(e=this.dialog)||void 0===e||e.focus()})),this.addEventListener("blur",(()=>{var e;null===(e=this.dialog)||void 0===e||e.blur()}))}show(){var e=this;return Go((function*(){var t;e.isOpening=!0,yield e.isConnectedPromise,yield e.updateComplete;var r=e.dialog;!r.open&&e.isOpening?e.dispatchEvent(new Event("open",{cancelable:!0}))?(r.showModal(),e.open=!0,e.scroller&&(e.scroller.scrollTop=0),null===(t=e.querySelector("[autofocus]"))||void 0===t||t.focus(),yield e.animateDialog(e.getOpenAnimation()),e.dispatchEvent(new Event("opened")),e.isOpening=!1):e.open=!1:e.isOpening=!1}))()}close(){var e=arguments,t=this;return Go((function*(){var r=e.length>0&&void 0!==e[0]?e[0]:t.returnValue;if(t.isOpening=!1,t.isConnected){yield t.updateComplete;var o=t.dialog;if(o.open&&!t.isOpening){var i=t.returnValue;t.returnValue=r,t.dispatchEvent(new Event("close",{cancelable:!0}))?(yield t.animateDialog(t.getCloseAnimation()),o.close(r),t.open=!1,t.dispatchEvent(new Event("closed"))):t.returnValue=i}else t.open=!1}else t.open=!1}))()}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){var e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),t={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},{ariaLabel:r}=this;return ve(qo||(qo=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="scrim"></div>\n <dialog\n class=',"\n aria-label=","\n aria-labelledby=","\n role=","\n @cancel=","\n @click=","\n @close=","\n @keydown=","\n .returnValue=",'>\n <div class="container" @click=','>\n <div class="headline">\n <div class="icon" aria-hidden="true">\n <slot name="icon" @slotchange=','></slot>\n </div>\n <h2 id="headline" aria-hidden=','>\n <slot\n name="headline"\n @slotchange=','></slot>\n </h2>\n <md-divider></md-divider>\n </div>\n <div class="scroller">\n <div class="content">\n <div class="top anchor"></div>\n <slot name="content"></slot>
2\n <div class="bottom anchor"></div>\n </div>\n </div>\n <div class="actions">\n <md-divider></md-divider>\n <slot name="actions" @slotchange=',"></slot>\n </div>\n </div>\n </dialog>\n "])),tt(t),r||ue,this.hasHeadline?"headline":ue,"alert"===this.type?"alertdialog":ue,this.handleCancel,this.handleDialogClick,this.handleClose,this.handleKeydown,this.returnValue||ue,this.handleContentClick,this.handleIconChange,!this.hasHeadline||ue,this.handleHeadlineChange,this.handleActionsChange)}firstUpdated(){this.intersectionObserver=new IntersectionObserver((e=>{for(var t of e)this.handleAnchorIntersection(t)}),{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){this.nextClickIsFromContent?this.nextClickIsFromContent=!1:!this.dispatchEvent(new Event("cancel",{cancelable:!0}))||this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){var t,r=e.target,{submitter:o}=e;"dialog"===r.method&&o&&this.close(null!==(t=o.getAttribute("value"))&&void 0!==t?t:this.returnValue)}handleCancel(e){if(e.target===this.dialog){this.escapePressedWithoutCancel=!1;var t=!sr(this,e);e.preventDefault(),t||this.close()}}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,null===(e=this.dialog)||void 0===e||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){"Escape"===e.key&&(this.escapePressedWithoutCancel=!0,setTimeout((()=>{this.escapePressedWithoutCancel=!1})))}animateDialog(e){var t=this;return Go((function*(){var{dialog:r,scrim:o,container:i,headline:a,content:n,actions:l}=t;if(r&&o&&i&&a&&n&&l){var{container:s,dialog:d,scrim:c,headline:v,content:p,actions:h}=e,u=[[r,null!=d?d:[]],[o,null!=c?c:[]],[i,null!=s?s:[]],[a,null!=v?v:[]],[n,null!=p?p:[]],[l,null!=h?h:[]]],f=[];for(var[m,b]of u)for(var y of b)f.push(m.animate(...y));yield Promise.all(f.map((e=>e.finished)))}}))()}handleHeadlineChange(e){var t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){var t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){var t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){var{target:t,isIntersecting:r}=e;t===this.topAnchor&&(this.isAtScrollTop=r),t===this.bottomAnchor&&(this.isAtScrollBottom=r)}getIsConnectedPromise(){return new Promise((e=>{this.isConnectedPromiseResolve=e}))}}ft(Xo),e([T({type:Boolean})],Xo.prototype,"open",null),e([T({attribute:!1})],Xo.prototype,"returnValue",void 0),e([T()],Xo.prototype,"type",void 0),e([B("dialog")],Xo.prototype,"dialog",void 0),e([B(".scrim")],Xo.prototype,"scrim",void 0),e([B(".container")],Xo.prototype,"container",void 0),e([B(".headline")],Xo.prototype,"headline",void 0),e([B(".content")],Xo.prototype,"content",void 0),e([B(".actions")],Xo.prototype,"actions",void 0),e([L()],Xo.prototype,"isAtScrollTop",void 0),e([L()],Xo.prototype,"isAtScrollBottom",void 0),e([B(".scroller")],Xo.prototype,"scroller",void 0),e([B(".top.anchor")],Xo.prototype,"topAnchor",void 0),e([B(".bottom.anchor")],Xo.prototype,"bottomAnchor",void 0),e([L()],Xo.prototype,"hasHeadline",void 0),e([L()],Xo.prototype,"hasActions",void 0),e([L()],Xo.prototype,"hasIcon",void 0);var Yo,Zo,Jo,Qo,ei,ti=c(Vo||(Vo=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, 28px));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, 28px));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, 28px));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, 28px));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}
2.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}/*# sourceMappingURL=dialog-styles.css.map */\n']))),ri=class extends Xo{};function oi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}ri.styles=[ti],ri=e([t("md-dialog")],ri);class ii extends Ie{constructor(){super(...arguments),this.size="medium",this.label="",this.lowered=!1}render(){var{ariaLabel:e}=this;return ve(Yo||(Yo=oi(['\n <button\n class="fab ','"\n aria-label=','>\n <md-elevation></md-elevation>\n <md-focus-ring part="focus-ring"></md-focus-ring>\n <md-ripple class="ripple"></md-ripple>\n '," "," ","\n </button>\n "])),tt(this.getRenderClasses()),e||ue,this.renderTouchTarget(),this.renderIcon(),this.renderLabel())}getRenderClasses(){var e=!!this.label;return{lowered:this.lowered,small:"small"===this.size&&!e,large:"large"===this.size&&!e,extended:e}}renderTouchTarget(){return ve(Zo||(Zo=oi(['<div class="touch-target"></div>'])))}renderLabel(){return this.label?ve(Jo||(Jo=oi(['<span class="label">',"</span>"])),this.label):""}renderIcon(){var{ariaLabel:e}=this;return ve(Qo||(Qo=oi(['<span class="icon">\n <slot\n name="icon"\n aria-hidden=',">\n <span></span>\n </slot>\n </span>"])),e||this.label?"true":ue)}}function ai(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ni(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ai(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ai(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}ft(ii),ii.shadowRootOptions={mode:"open",delegatesFocus:!0},e([T({reflect:!0})],ii.prototype,"size",void 0),e([T()],ii.prototype,"label",void 0),e([T({type:Boolean})],ii.prototype,"lowered",void 0);class li extends ii{constructor(){super(...arguments),this.variant="surface"}getRenderClasses(){return ni(ni({},super.getRenderClasses()),{},{primary:"primary"===this.variant,secondary:"secondary"===this.variant,tertiary:"tertiary"===this.variant})}}e([T()],li.prototype,"variant",void 0);var si,di,ci=c(ei||(ei=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-color: var(--md-fab-branded-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-branded-container-elevation, 3);--_container-height: var(--md-fab-branded-container-height, 56px);--_container-shadow-color: var(--md-fab-branded-container-shadow-color, var(--md-sys-color-shadow, #000));
2--_container-shape: var(--md-fab-branded-container-shape, 16px);--_container-width: var(--md-fab-branded-container-width, 56px);--_focus-container-elevation: var(--md-fab-branded-focus-container-elevation, 3);--_hover-container-elevation: var(--md-fab-branded-hover-container-elevation, 4);--_hover-state-layer-color: var(--md-fab-branded-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-branded-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-fab-branded-icon-size, 36px);--_lowered-container-color: var(--md-fab-branded-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-branded-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-branded-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-branded-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-branded-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-branded-pressed-container-elevation, 3);--_pressed-state-layer-color: var(--md-fab-branded-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-branded-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-branded-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-branded-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-branded-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-fab-branded-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-size: var(--md-fab-branded-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-line-height: var(--md-fab-branded-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-weight: var(--md-fab-branded-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-branded-large-container-height, 96px);--_large-container-shape: var(--md-fab-branded-large-container-shape, 28px);--_large-container-width: var(--md-fab-branded-large-container-width, 96px);--_large-icon-size: var(--md-fab-branded-large-icon-size, 48px);--_pressed-label-text-color: var(--md-fab-branded-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var( --md-fab-branded-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-fab-branded-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-fab-branded-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-fab-branded-container-shape-end-start, var(--_container-shape) );--_large-container-shape-start-start: var( --md-fab-branded-large-container-shape-start-start, var(--_large-container-shape) );--_large-container-shape-start-end: var( --md-fab-branded-large-container-shape-start-end, var(--_large-container-shape) );--_large-container-shape-end-end: var( --md-fab-branded-large-container-shape-end-end, var(--_large-container-shape) );--_large-container-shape-end-start: var( --md-fab-branded-large-container-shape-end-start, var(--_large-container-shape) )}/*# sourceMappingURL=fab-branded-styles.css.map */\n"]))),vi=c(si||(si=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["@media(forced-colors: active){.fab{border:1px solid ButtonText}.fab.extended{padding-inline-start:15px;padding-inline-end:19px}md-focus-ring{--md-focus-ring-outward-offset: 3px}}/*# sourceMappingURL=forced-colors-styles.css.map */\n"]))),pi=c(di||(di=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);display:inline-flex;-webkit-tap-highlight-color:rgba(0,0,0,0)}
2:host([size=medium][touch-target=wrapper]){margin:max(0px,48px - var(--_container-height))}:host([size=large][touch-target=wrapper]){margin:max(0px,48px - var(--_large-container-height))}.fab,.icon,.icon ::slotted(*){display:flex}.fab{align-items:center;justify-content:center;vertical-align:middle;padding:0;position:relative;height:var(--_container-height);transition-property:background-color;border-width:0px;outline:none;z-index:0;--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color);background-color:var(--_container-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color)}.fab.extended{width:inherit;box-sizing:border-box;padding-inline-start:16px;padding-inline-end:20px}.fab:not(.extended){width:var(--_container-width)}.fab.large{width:var(--_large-container-width);height:var(--_large-container-height)}.fab.large .icon ::slotted(*){width:var(--_large-icon-size);height:var(--_large-icon-size);font-size:var(--_large-icon-size)}.fab.large,.fab.large .ripple{border-start-start-radius:var(--_large-container-shape-start-start);border-start-end-radius:var(--_large-container-shape-start-end);border-end-start-radius:var(--_large-container-shape-end-start);border-end-end-radius:var(--_large-container-shape-end-end)}.fab.large md-focus-ring{--md-focus-ring-shape-start-start: var(--_large-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_large-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_large-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_large-container-shape-end-start)}.fab:focus{--md-elevation-level: var(--_focus-container-elevation)}.fab:hover{--md-elevation-level: var(--_hover-container-elevation)}.fab:active{--md-elevation-level: var(--_pressed-container-elevation)}.fab.lowered{background-color:var(--_lowered-container-color);--md-elevation-level: var(--_lowered-container-elevation)}.fab.lowered:focus{--md-elevation-level: var(--_lowered-focus-container-elevation)}.fab.lowered:hover{--md-elevation-level: var(--_lowered-hover-container-elevation)}.fab.lowered:active{--md-elevation-level: var(--_lowered-pressed-container-elevation)}.fab .label{color:var(--_label-text-color)}.fab:hover .fab .label{color:var(--_hover-label-text-color)}.fab:focus .fab .label{color:var(--_focus-label-text-color)}.fab:active .fab .label{color:var(--_pressed-label-text-color)}.label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight)}.fab.extended .icon ::slotted(*){margin-inline-end:12px}.ripple{overflow:hidden}.ripple,md-elevation{z-index:-1}.touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}:host([touch-target=none]) .touch-target{display:none}md-elevation,.fab{transition-duration:280ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1)}.fab,.ripple{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.icon ::slotted(*){width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size)}/*# sourceMappingURL=shared-styles.css.map */\n"])));function hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ui(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hi(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var fi,mi=class extends li{getRenderClasses(){return ui(ui({},super.getRenderClasses()),{},{primary:!1,secondary:!1,tertiary:!1,small:!1})}};mi.styles=[pi,ci,vi],mi=e([t("md-branded-fab")],mi);var bi,yi,gi,xi,_i,wi,Oi,ki,zi,Ci=c(fi||(fi=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_container-color: var(--md-fab-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-container-elevation, 3);--_container-height: var(--md-fab-container-height, 56px);--_container-shadow-color: var(--md-fab-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-fab-container-shape, 16px);--_container-width: var(--md-fab-container-width, 56px);--_focus-container-elevation: var(--md-fab-focus-container-elevation, 3);--_focus-icon-color: var(--md-fab-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-fab-hover-container-elevation, 4);--_hover-icon-color: var(--md-fab-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-fab-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-fab-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-fab-icon-size, 24px);--_lowered-container-color: var(--md-fab-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-pressed-container-elevation, 3);--_pressed-icon-color: var(--md-fab-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-fab-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-fab-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-fab-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-fab-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-fab-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-large-container-height, 96px);--_large-container-shape: var(--md-fab-large-container-shape, 28px);--_large-container-width: var(--md-fab-large-container-width, 96px);--_large-icon-size: var(--md-fab-large-icon-size, 36px);--_pressed-label-text-color: var(--md-fab-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_primary-container-color: var(--md-fab-primary-container-color, var(--md-sys-color-primary-container, #eaddff));--_primary-focus-icon-color: var(--md-fab-primary-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-focus-label-text-color: var(--md-fab-primary-focus-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-icon-color: var(--md-fab-primary-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-label-text-color: var(--md-fab-primary-hover-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-state-layer-color: var(--md-fab-primary-hover-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-icon-color: var(--md-fab-primary-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-label-text-color: var(--md-fab-primary-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-icon-color: var(--md-fab-primary-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-label-text-color: var(--md-fab-primary-pressed-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-state-layer-color: var(--md-fab-primary-pressed-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_secondary-container-color: var(--md-fab-secondary-container-color, var(--md-sys-color-secondary-container, #e8def8));--_secondary-focus-icon-color: var(--md-fab-secondary-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-focus-label-text-color: var(--md-fab-secondary-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-icon-color: var(--md-fab-secondary-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-label-text-color: var(--md-fab-secondary-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-state-layer-color: var(--md-fab-secondary-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-icon-color: var(--md-fab-secondary-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-label-text-color: var(--md-fab-secondary-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-icon-color: var(--md-fab-secondary-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-label-text-color: var(--md-fab-secondary-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-state-layer-color: var(--md-fab-secondary-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_small-container-height: var(--md-fab-small-container-height, 40px);--_small-container-shape: var(--md-fab-small-container-shape, 12px);--_small-container-width: var(--md-fab-small-container-width, 40px);--_small-icon-size: var(--md-fab-small-icon-size, 24px);--_tertiary-container-color: var(--md-fab-tertiary-container-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_tertiary-focus-icon-color: var(--md-fab-tertiary-focus-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-focus-label-text-color: var(--md-fab-tertiary-focus-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-icon-color: var(--md-fab-tertiary-hover-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-label-text-color: var(--md-fab-tertiary-hover-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-state-layer-color: var(--md-fab-tertiary-hover-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-icon-color: var(--md-fab-tertiary-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-label-text-color: var(--md-fab-tertiary-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-icon-color: var(--md-fab-tertiary-pressed-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-label-text-color: var(--md-fab-tertiary-pressed-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-state-layer-color: var(--md-fab-tertiary-pressed-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_container-shape-start-start: var( --md-fab-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-fab-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-fab-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-fab-container-shape-end-start, var(--_container-shape) );--_large-container-shape-start-start: var( --md-fab-large-container-shape-start-start, var(--_large-container-shape) );--_large-container-shape-start-end: var( --md-fab-large-container-shape-start-end, var(--_large-container-shape) );--_large-container-shape-end-end: var( --md-fab-large-container-shape-end-end, var(--_large-container-shape) );--_large-container-shape-end-start: var( --md-fab-large-container-shape-end-start, var(--_large-container-shape) );--_small-container-shape-start-start: var( --md-fab-small-container-shape-start-start, var(--_small-container-shape) );--_small-container-shape-start-end: var( --md-fab-small-container-shape-start-end, var(--_small-container-shape) );--_small-container-shape-end-end: var( --md-fab-small-container-shape-end-end, var(--_small-container-shape) );--_small-container-shape-end-start: var( --md-fab-small-container-shape-end-start, var(--_small-container-shape) );cursor:pointer}:host([size=small][touch-target=wrapper]){margin:max(0px,48px - var(--_small-container-height))}.fab{cursor:inherit}.fab .icon ::slotted(*){color:var(--_icon-color)}.fab:focus{color:var(--_focus-icon-color)}.fab:hover{color:var(--_hover-icon-color)}.fab:active{color:var(--_pressed-icon-color)}.fab.primary{background-color:var(--_primary-container-color);--md-ripple-hover-color: var(--_primary-hover-state-layer-color);--md-ripple-pressed-color: var(--_primary-pressed-state-layer-color)}.fab.primary .icon ::slotted(*){color:var(--_primary-icon-color)}.fab.primary:focus{color:var(--_primary-focus-icon-color)}.fab.primary:hover{color:var(--_primary-hover-icon-color)}.fab.primary:active{color:var(--_primary-pressed-icon-color)}.fab.primary .label{color:var(--_primary-label-text-color)}.fab:hover .fab.primary .label{color:var(--_primary-hover-label-text-color)}.fab:focus .fab.primary .label{color:var(--_primary-focus-label-text-color)}.fab:active .fab.primary .label{color:var(--_primary-pressed-label-text-color)}.fab.secondary{background-color:var(--_secondary-container-color);--md-ripple-hover-color: var(--_secondary-hover-state-layer-color);--md-ripple-pressed-color: var(--_secondary-pressed-state-layer-color)}.fab.secondary .icon ::slotted(*){color:var(--_secondary-icon-color)}.fab.secondary:focus{color:var(--_secondary-focus-icon-color)}.fab.secondary:hover{color:var(--_secondary-hover-icon-color)}.fab.secondary:active{color:var(--_secondary-pressed-icon-color)}.fab.secondary .label{color:var(--_secondary-label-text-color)}.fab:hover .fab.secondary .label{color:var(--_secondary-hover-label-text-color)}.fab:focus .fab.secondary .label{color:var(--_secondary-focus-label-text-color)}.fab:active .fab.secondary .label{color:var(--_secondary-pressed-label-text-color)}
2.fab.tertiary{background-color:var(--_tertiary-container-color);--md-ripple-hover-color: var(--_tertiary-hover-state-layer-color);--md-ripple-pressed-color: var(--_tertiary-pressed-state-layer-color)}.fab.tertiary .icon ::slotted(*){color:var(--_tertiary-icon-color)}.fab.tertiary:focus{color:var(--_tertiary-focus-icon-color)}.fab.tertiary:hover{color:var(--_tertiary-hover-icon-color)}.fab.tertiary:active{color:var(--_tertiary-pressed-icon-color)}.fab.tertiary .label{color:var(--_tertiary-label-text-color)}.fab:hover .fab.tertiary .label{color:var(--_tertiary-hover-label-text-color)}.fab:focus .fab.tertiary .label{color:var(--_tertiary-focus-label-text-color)}.fab:active .fab.tertiary .label{color:var(--_tertiary-pressed-label-text-color)}.fab.extended slot span{padding-inline-start:4px}.fab.small{width:var(--_small-container-width);height:var(--_small-container-height)}.fab.small .icon ::slotted(*){width:var(--_small-icon-size);height:var(--_small-icon-size);font-size:var(--_small-icon-size)}.fab.small,.fab.small .ripple{border-start-start-radius:var(--_small-container-shape-start-start);border-start-end-radius:var(--_small-container-shape-start-end);border-end-start-radius:var(--_small-container-shape-end-start);border-end-end-radius:var(--_small-container-shape-end-end)}.fab.small md-focus-ring{--md-focus-ring-shape-start-start: var(--_small-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_small-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_small-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_small-container-shape-end-start)}/*# sourceMappingURL=fab-styles.css.map */\n"]))),Ei=class extends li{};function ji(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Ei.styles=[pi,Ci,vi],Ei=e([t("md-fab")],Ei);class Pi extends Ie{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){var e,t,r=null!==(e=this.count)&&void 0!==e?e:-1,o=null!==(t=this.max)&&void 0!==t?t:-1;return r<0||o<=0?"":"".concat(r," / ").concat(o)}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&void 0!==e.get("disabled")&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var e,t,r,o=this.renderLabel(!0),i=this.renderLabel(!1),a=null===(e=this.renderOutline)||void 0===e?void 0:e.call(this,o),n={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return ve(bi||(bi=ji(['\n <div class="field ','">\n <div class="container-overflow">\n '," "," ",'\n <div class="container">\n <div class="start">\n <slot name="start"></slot>\n </div>\n <div class="middle">\n <div class="label-wrapper">\n '," ",'\n </div>\n <div class="content">\n <slot></slot>\n </div>\n </div>\n <div class="end">\n <slot name="end"></slot>\n </div>\n </div>\n </div>\n ',"\n </div>\n "])),tt(n),null===(t=this.renderBackground)||void 0===t?void 0:t.call(this),null===(r=this.renderIndicator)||void 0===r?void 0:r.call(this),a,i,a?ue:o,this.renderSupportingText())}updated(e){(e.has("supportingText")||e.has("errorText")||e.has("count")||e.has("max"))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame((()=>{this.refreshErrorAlert=!1})),this.disableTransitions&&requestAnimationFrame((()=>{this.disableTransitions=!1}))}renderSupportingText(){var{supportingOrErrorText:e,counterText:t}=this;if(!e&&!t)return ue;var r=ve(yi||(yi=ji(["<span>","</span>"])),e),o=t?ve(gi||(gi=ji(['<span class="counter">',"</span>"])),t):ue,i=this.error&&this.errorText&&!this.refreshErrorAlert?"alert":ue;return ve(xi||(xi=ji(['\n <div class="supporting-text" role=',">","",'</div>\n <slot\n name="aria-describedby"\n @slotchange=',"></slot>\n "])),i,r,o,this.updateSlottedAriaDescribedBy)}updateSlottedAriaDescribedBy(){for(var e of this.slottedAriaDescribedBy)Te(ve(_i||(_i=ji([""," ",""])),this.supportingOrErrorText,this.counterText),e),e.setAttribute("hidden","")}renderLabel(e){if(!this.label)return ue;var t,r={hidden:!(t=e?this.focused||this.populated||this.isAnimating:!this.focused&&!this.populated&&!this.isAnimating),floating:e,resting:!e},o="".concat(this.label).concat(this.required?"*":"");
2return ve(wi||(wi=ji(['\n <span class="label ','" aria-hidden=',"\n >","</span\n >\n "])),tt(r),!t,o)}animateLabelIfNeeded(e){var t,r,o,i,a,{wasFocused:n,wasPopulated:l}=e;this.label&&(null!==(t=n)&&void 0!==t||(n=this.focused),null!==(r=l)&&void 0!==r||(l=this.populated),(n||l)!==(this.focused||this.populated)&&(this.isAnimating=!0,null===(o=this.labelAnimation)||void 0===o||o.cancel(),this.labelAnimation=null===(i=this.floatingLabelEl)||void 0===i?void 0:i.animate(this.getLabelKeyframes(),{duration:150,easing:rt}),null===(a=this.labelAnimation)||void 0===a||a.addEventListener("finish",(()=>{this.isAnimating=!1}))))}getLabelKeyframes(){var{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];var{x:r,y:o,height:i}=e.getBoundingClientRect(),{x:a,y:n,height:l}=t.getBoundingClientRect(),s=e.scrollWidth,d=t.scrollWidth,c=d/s,v=a-r,p=n-o+Math.round((l-i*c)/2),h="translateX(".concat(v,"px) translateY(").concat(p,"px) scale(").concat(c,")"),u="translateX(0) translateY(0) scale(1)",f=t.clientWidth,m=d>f?"".concat(f/c,"px"):"";return this.focused||this.populated?[{transform:h,width:m},{transform:u,width:m}]:[{transform:u,width:m},{transform:h,width:m}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}function Si(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}e([T({type:Boolean})],Pi.prototype,"disabled",void 0),e([T({type:Boolean})],Pi.prototype,"error",void 0),e([T({type:Boolean})],Pi.prototype,"focused",void 0),e([T()],Pi.prototype,"label",void 0),e([T({type:Boolean})],Pi.prototype,"populated",void 0),e([T({type:Boolean})],Pi.prototype,"required",void 0),e([T({type:Boolean})],Pi.prototype,"resizable",void 0),e([T({attribute:"supporting-text"})],Pi.prototype,"supportingText",void 0),e([T({attribute:"error-text"})],Pi.prototype,"errorText",void 0),e([T({type:Number})],Pi.prototype,"count",void 0),e([T({type:Number})],Pi.prototype,"max",void 0),e([T({type:Boolean,attribute:"has-start"})],Pi.prototype,"hasStart",void 0),e([T({type:Boolean,attribute:"has-end"})],Pi.prototype,"hasEnd",void 0),e([F({slot:"aria-describedby"})],Pi.prototype,"slottedAriaDescribedBy",void 0),e([L()],Pi.prototype,"isAnimating",void 0),e([L()],Pi.prototype,"refreshErrorAlert",void 0),e([L()],Pi.prototype,"disableTransitions",void 0),e([B(".label.floating")],Pi.prototype,"floatingLabelEl",void 0),e([B(".label.resting")],Pi.prototype,"restingLabelEl",void 0),e([B(".container")],Pi.prototype,"containerEl",void 0);class Ai extends Pi{renderBackground(){return ve(Oi||(Oi=Si(['\n <div class="background"></div>\n <div class="state-layer"></div>\n '])))}renderIndicator(){return ve(ki||(ki=Si(['<div class="active-indicator"></div>'])))}}var Ti,Ii,Ri,Li=c(zi||(zi=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['@layer styles{:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_container-shape-start-start: var( --md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, 4px) );--_container-shape-start-end: var( --md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, 4px) );--_container-shape-end-end: var( --md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, 0px) );--_container-shape-end-start: var( --md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, 0px) );--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);
2--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px)}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}}@layer hcm{@media(forced-colors: active){.disabled .active-indicator::before{border-color:GrayText;opacity:1}}}/*# sourceMappingURL=filled-styles.css.map */\n']))),Di=c(Ti||(Ti=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start,.with-end .end{min-width:48px}.with-start .start{margin-inline-end:4px}.with-end .end{margin-inline-start:4px
vendor: 4,433 bytes, line 2
2}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}}
2/*# sourceMappingURL=shared-styles.css.map */\n"]))),$i=class extends Ai{};$i.styles=[Di,Li],$i=e([t("md-filled-field")],$i);class Mi extends Pi{renderOutline(e){return ve(Ii||(Ii=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="outline">\n <div class="outline-start"></div>\n <div class="outline-notch">\n <div class="outline-panel-inactive"></div>\n <div class="outline-panel-active"></div>\n <div class="outline-label">','</div>\n </div>\n <div class="outline-end"></div>\n </div>\n '])),e)}}var Bi,Ui,Ni=c(Ri||(Ri=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_container-shape: var(--md-outlined-field-container-shape, 4px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_container-shape-start-start: var( --md-outlined-field-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-field-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-field-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-field-container-shape-end-start, var(--_container-shape) )}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;
2transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}:host-context([dir=rtl]) .resizable .container,:host([dir=rtl]) .resizable .container{clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}/*# sourceMappingURL=outlined-styles.css.map */\n']))),Fi=class extends Mi{};Fi.styles=[Di,Ni],Fi=e([t("md-outlined-field")],Fi);class qi extends Ie{render(){return ve(Bi||(Bi=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<slot></slot>"])))}connectedCallback(){super.connectedCallback(),"false"!==this.getAttribute("aria-hidden")?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")}}var Vi,Hi=c(Ui||(Ui=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}/*# sourceMappingURL=icon-styles.css.map */\n"]))),Ki=class extends qi{};Ki.styles=[Hi],Ki=e([t("md-icon")],Ki);var Wi,Gi,Xi,Yi,Zi,Ji,Qi,ea,ta,ra=c(Vi||(Vi=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{--_container-color: var(--md-filled-icon-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-height: var(--md-filled-icon-button-container-height, 40px);--_container-shape: var(--md-filled-icon-button-container-shape, 9999px);--_container-width: var(--md-filled-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-icon-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-icon-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-icon-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-icon-button-icon-color, var(--md-sys-color-on-primary, #fff));
2--_icon-size: var(--md-filled-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-icon-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-icon-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-icon-button-selected-container-color, var(--md-sys-color-primary, #6750a4));--_toggle-selected-focus-icon-color: var(--md-filled-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-icon-color: var(--md-filled-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-state-layer-color: var(--md-filled-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-icon-color: var(--md-filled-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-icon-color: var(--md-filled-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-state-layer-color: var(--md-filled-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_unselected-container-color: var(--md-filled-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-icon-button-toggle-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-icon-color: var(--md-filled-icon-button-toggle-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-state-layer-color: var(--md-filled-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_toggle-icon-color: var(--md-filled-icon-button-toggle-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-icon-color: var(--md-filled-icon-button-toggle-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-state-layer-color: var(--md-filled-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var( --md-filled-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-icon-button-container-shape-end-start, var(--_container-shape) )}.icon-button{color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}/*# sourceMappingURL=filled-styles.css.map */\n']))),oa=Symbol.for(""),ia=e=>{if((null==e?void 0:e.r)===oa)return null==e?void 0:e._$litStatic$},aa=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return{_$litStatic$:r.reduce(((t,r,o)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error("Value passed to 'literal' function must be a 'literal' result: ".concat(e,". Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security."))}
2)(r)+e[o+1]),e[0]),r:oa}},na=new Map,la=e=>function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];for(var a,n,l,s=o.length,d=[],c=[],v=0,p=!1;v<s;){for(l=t[v];v<s&&void 0!==(n=o[v],a=ia(n));)l+=a+t[++v],p=!0;v!==s&&c.push(n),d.push(l),v++}if(v===s&&d.push(t[s]),p){var h=d.join("$$lit$$");void 0===(t=na.get(h))&&(d.raw=d,na.set(h,t=d)),o=c}return e(t,...o)},sa=la(ve);function da(e){return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&"rtl"===getComputedStyle(e).getPropertyValue("direction").trim()}function ca(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function va(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}la(pe);var pa,ha=yt(Ie);class ua extends ha{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=da(this,this.flipIconInRtl)}get name(){var e;return null!==(e=this.getAttribute("name"))&&void 0!==e?e:""}set name(e){this.setAttribute("name",e)}get form(){return this[mt].form}get labels(){return this[mt].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){var e=this.href?aa(Wi||(Wi=va(["div"]))):aa(Gi||(Gi=va(["button"]))),{ariaLabel:t,ariaHasPopup:r,ariaExpanded:o}=this,i=t&&this.ariaLabelSelected,a=this.toggle?this.selected:ue,n=ue;return this.href||(n=i&&this.selected?this.ariaLabelSelected:t),sa(Xi||(Xi=va(["<",'\n class="icon-button ','"\n id="button"\n aria-label="','"\n aria-haspopup="','"\n aria-expanded="','"\n aria-pressed="','"\n ?disabled="','"\n @click="','">\n ',"\n ","\n ","\n ","\n ","\n ","\n </",">"])),e,tt(this.getRenderClasses()),n||ue,!this.href&&r||ue,!this.href&&o||ue,a,!this.href&&this.disabled,this.handleClick,this.renderFocusRing(),this.renderRipple(),this.selected?ue:this.renderIcon(),this.selected?this.renderSelectedIcon():ue,this.renderTouchTarget(),this.href&&this.renderLink(),e)}renderLink(){var{ariaLabel:e}=this;return ve(Yi||(Yi=va(['\n <a\n class="link"\n id="link"\n href="','"\n target="','"\n aria-label="','"></a>\n '])),this.href,this.target||ue,e||ue)}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return ve(Zi||(Zi=va(['<span class="icon"><slot></slot></span>'])))}renderSelectedIcon(){return ve(Ji||(Ji=va(['<span class="icon icon--selected"\n ><slot name="selected"><slot></slot></slot\n ></span>'])))}renderTouchTarget(){return ve(Qi||(Qi=va(['<span class="touch"></span>'])))}renderFocusRing(){return ve(ea||(ea=va(['<md-focus-ring\n part="focus-ring"\n for=',"></md-focus-ring>"])),this.href?"link":"button")}renderRipple(){return ve(ta||(ta=va(["<md-ripple\n for=",'\n ?disabled="','"></md-ripple>'])),this.href?"link":ue,!this.href&&this.disabled)}connectedCallback(){this.flipIcon=da(this,this.flipIconInRtl),super.connectedCallback()}handleClick(e){var t,r=this;return(t=function*(){yield 0,!r.toggle||r.disabled||e.defaultPrevented||(r.selected=!r.selected,r.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),r.dispatchEvent(new Event("change",{bubbles:!0})))},function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function n(e){ca(a,o,i,n,l,"next",e)}function l(e){ca(a,o,i,n,l,"throw",e)}n(void 0)}))})()}}ft(ua),xt(ua),ua.formAssociated=!0,ua.shadowRootOptions={mode:"open",delegatesFocus:!0},e([T({type:Boolean,reflect:!0})],ua.prototype,"disabled",void 0),e([T({type:Boolean,attribute:"flip-icon-in-rtl"})],ua.prototype,"flipIconInRtl",void 0),e([T()],ua.prototype,"href",void 0),e([T()],ua.prototype,"target",void 0),e([T({attribute:"aria-label-selected"})],ua.prototype,"ariaLabelSelected",void 0),e([T({type:Boolean})],ua.prototype,"toggle",void 0),e([T({type:Boolean,reflect:!0})],ua.prototype,"selected",void 0),e([T()],ua.prototype,"type",void 0),e([T({reflect:!0})],ua.prototype,"value",void 0),e([L()],ua.prototype,"flipIcon",void 0);var fa=c(pa||(pa=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;
2cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}}/*# sourceMappingURL=shared-styles.css.map */\n"])));function ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ba(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ma(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ma(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ya,ga=class extends ua{getRenderClasses(){return ba(ba({},super.getRenderClasses()),{},{filled:!0,"toggle-filled":this.toggle})}};ga.styles=[fa,ra],ga=e([t("md-filled-icon-button")],ga);var xa=c(ya||(ya=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{--_container-color: var(--md-filled-tonal-icon-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-height: var(--md-filled-tonal-icon-button-container-height, 40px);--_container-shape: var(--md-filled-tonal-icon-button-container-shape, 9999px);--_container-width: var(--md-filled-tonal-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-tonal-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-tonal-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-icon-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-icon-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-icon-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-tonal-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-tonal-icon-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-icon-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-tonal-icon-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_toggle-selected-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-container-color: var(--md-filled-tonal-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-icon-color: var(--md-filled-tonal-icon-button-toggle-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var( --md-filled-tonal-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-tonal-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-tonal-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-tonal-icon-button-container-shape-end-start, var(--_container-shape) )}.icon-button{color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled-tonal{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled-tonal:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled-tonal:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled-tonal:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled-tonal:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled-tonal:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}/*# sourceMappingURL=filled-tonal-styles.css.map */\n'])));function _a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?_a(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Oa,ka=class extends ua{getRenderClasses(){return wa(wa({},super.getRenderClasses()),{},{"filled-tonal":!0,"toggle-filled-tonal":this.toggle})}};ka.styles=[fa,xa],ka=e([t("md-filled-tonal-icon-button")],ka);var za=c(Oa||(Oa=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, 9999px);--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}/*# sourceMappingURL=standard-styles.css.map */\n"])));function Ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ea(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Ca(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ca(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ja,Pa=class extends ua{getRenderClasses(){return Ea(Ea({},super.getRenderClasses()),{},{standard:!0})}};Pa.styles=[fa,za],Pa=e([t("md-icon-button")],Pa);var Sa=c(ja||(ja=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{--_container-height: var(--md-outlined-icon-button-container-height, 40px);--_container-shape: var(--md-outlined-icon-button-container-shape, 9999px);--_container-width: var(--md-outlined-icon-button-container-width, 40px);--_disabled-icon-color: var(--md-outlined-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-icon-button-disabled-icon-opacity, 0.38);--_disabled-selected-container-color: var(--md-outlined-icon-button-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-outlined-icon-button-disabled-selected-container-opacity, 0.12);--_hover-state-layer-opacity: var(--md-outlined-icon-button-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-outlined-icon-button-icon-size, 24px);--_pressed-state-layer-opacity: var(--md-outlined-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-icon-button-selected-container-color, var(--md-sys-color-inverse-surface, #322f35));--_selected-focus-icon-color: var(--md-outlined-icon-button-selected-focus-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-icon-color: var(--md-outlined-icon-button-selected-hover-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-state-layer-color: var(--md-outlined-icon-button-selected-hover-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-icon-color: var(--md-outlined-icon-button-selected-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-icon-color: var(--md-outlined-icon-button-selected-pressed-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-state-layer-color: var(--md-outlined-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_disabled-outline-color: var(--md-outlined-icon-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-icon-button-disabled-outline-opacity, 0.12);--_focus-icon-color: var(--md-outlined-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-outlined-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-outlined-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_icon-color: var(--md-outlined-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-outlined-icon-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-icon-button-outline-width, 1px);--_pressed-icon-color: var(--md-outlined-icon-button-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-outlined-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var( --md-outlined-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-icon-button-container-shape-end-start, var(--_container-shape) )}.outlined{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.outlined::before{border-color:var(--_outline-color);border-width:var(--_outline-width)}.outlined:hover{color:var(--_hover-icon-color)}.outlined:focus{color:var(--_focus-icon-color)}.outlined:active{color:var(--_pressed-icon-color)}.outlined:disabled{color:var(--_disabled-icon-color)}.outlined:disabled::before{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}.outlined:disabled .icon{opacity:var(--_disabled-icon-opacity)}.outlined::before{block-size:100%;border-style:solid;border-radius:inherit;box-sizing:border-box;content:"";inline-size:100%;inset:0;pointer-events:none;position:absolute;z-index:-1}.outlined.selected::before{border-width:0}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}.selected:disabled::before{background-color:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}@media(forced-colors: active){:host([disabled]){--_disabled-outline-opacity: 1}.selected::before{border-color:CanvasText;border-width:var(--_outline-width)}.selected:disabled::before{border-color:GrayText;opacity:1}}/*# sourceMappingURL=outlined-styles.css.map */\n'])));function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Aa(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ia=class extends ua{getRenderClasses(){return Ta(Ta({},super.getRenderClasses()),{},{outlined:!0})}};function Ra(e){var t=$a(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:qa);return t&&(t.tabIndex=0,t.focus()),t}function La(e){var t=Ma(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:qa);return t&&(t.tabIndex=0,t.focus()),t}function Da(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qa,r=0;r<e.length;r++){var o=e[r];if(0===o.tabIndex&&t(o))return{item:o,index:r}}return null}function $a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qa;for(var r of e)if(t(r))return r;return null}function Ma(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qa,r=e.length-1;r>=0;r--){var o=e[r];if(t(o))return o}return null}function Ba(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qa;if(t){var o=function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qa,o=1;o<e.length;o++){var i=e[(o+t)%e.length];if(r(i))return i}return e[t]?e[t]:null}(e,t.index,r);return o&&(o.tabIndex=0,o.focus()),o}return Ra(e,r)}function Ua(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qa;if(t){var o=function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qa,o=1;o<e.length;o++){var i=e[(t-o+e.length)%e.length];if(r(i))return i}return e[t]?e[t]:null}(e,t.index,r);return o&&(o.tabIndex=0,o.focus()),o}return La(e,r)}function Na(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function Fa(){return new Event("request-activation",{bubbles:!0,composed:!0})}function qa(e){return!e.disabled}Ia.styles=[fa,Sa],Ia=e([t("md-outlined-icon-button")],Ia);var Va,Ha={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class Ka{constructor(e){this.handleKeydown=e=>{var t=e.key;if(!e.defaultPrevented&&this.isNavigableKey(t)){var r=this.items;if(r.length){var o=Da(r,this.isActivatable);o&&(o.item.tabIndex=-1),e.preventDefault();var i=this.isRtl();switch(t){case Ha.ArrowDown:case i?Ha.ArrowLeft:Ha.ArrowRight:Ba(r,o,this.isActivatable);break;case Ha.ArrowUp:case i?Ha.ArrowRight:Ha.ArrowLeft:Ua(r,o,this.isActivatable);break;case Ha.Home:Ra(r,this.isActivatable);break;case Ha.End:La(r,this.isActivatable)}}}},this.onDeactivateItems=()=>{var e=this.items;for(var t of e)this.deactivateItem(t)},this.onRequestActivation=e=>{this.onDeactivateItems();var t=e.target;this.activateItem(t),t.focus()},this.onSlotchange=()=>{var e=this.items,t=!1;for(var r of e)!r.disabled&&r.tabIndex>-1&&!t?(t=!0,r.tabIndex=0):r.tabIndex=-1;if(!t){var o=$a(e,this.isActivatable);o&&(o.tabIndex=0)}};var{isItem:t,getPossibleItems:r,isRtl:o,deactivateItem:i,activateItem:a,isNavigableKey:n,isActivatable:l}=e;this.isItem=t,this.getPossibleItems=r,this.isRtl=o,this.deactivateItem=i,this.activateItem=a,this.isNavigableKey=n,this.isActivatable=l}get items(){var e=this.getPossibleItems(),t=[];for(var r of e)if(this.isItem(r))t.push(r);else{var o=r.item;
2o&&this.isItem(o)&&t.push(o)}return t}activateNextItem(){var e=this.items,t=Da(e,this.isActivatable);return t&&(t.item.tabIndex=-1),Ba(e,t,this.isActivatable)}activatePreviousItem(){var e=this.items,t=Da(e,this.isActivatable);return t&&(t.item.tabIndex=-1),Ua(e,t,this.isActivatable)}}var Wa,Ga=new Set(Object.values(Ha));class Xa extends Ie{get items(){return this.listController.items}constructor(){super(),this.listController=new Ka({isItem:e=>e.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:e=>{e.tabIndex=-1},activateItem:e=>{e.tabIndex=0},isNavigableKey:e=>Ga.has(e),isActivatable:e=>!e.disabled&&"text"!==e.type}),this.internals=this.attachInternals(),this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown)}render(){return ve(Va||(Va=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n <slot\n @deactivate-items=","\n @request-activation=","\n @slotchange=",">\n </slot>\n "])),this.listController.onDeactivateItems,this.listController.onRequestActivation,this.listController.onSlotchange)}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}e([F({flatten:!0})],Xa.prototype,"slotItems",void 0);var Ya,Za,Ja=c(Wa||(Wa=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{background:var(--md-list-container-color, var(--md-sys-color-surface, #fef7ff));color:unset;display:flex;flex-direction:column;outline:none;padding:8px 0;position:relative}/*# sourceMappingURL=list-styles.css.map */\n"]))),Qa=class extends Xa{};Qa.styles=[Ja],Qa=e([t("md-list")],Qa);class en extends Ie{constructor(){super(...arguments),this.multiline=!1}render(){return ve(Ya||(Ya=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <slot name="container"></slot>\n <slot class="non-text" name="start"></slot>\n <div class="text">\n <slot name="overline" @slotchange=','></slot>\n <slot\n class="default-slot"\n @slotchange=','></slot>\n <slot name="headline" @slotchange=','></slot>\n <slot\n name="supporting-text"\n @slotchange=','></slot>\n </div>\n <slot class="non-text" name="trailing-supporting-text"></slot>\n <slot class="non-text" name="end"></slot>\n '])),this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange)}handleTextSlotChange(){var e=!1,t=0;for(var r of this.textSlots)if(tn(r)&&(t+=1),t>1){e=!0;break}this.multiline=e}}function tn(e){for(var t of e.assignedNodes({flatten:!0})){var r,o=t.nodeType===Node.ELEMENT_NODE,i=t.nodeType===Node.TEXT_NODE&&(null===(r=t.textContent)||void 0===r?void 0:r.match(/\S/));if(o||i)return!0}return!1}e([T({type:Boolean,reflect:!0})],en.prototype,"multiline",void 0),e([(e,t)=>M(e,t,{get(){var e,t;return(null!==(e=this.renderRoot)&&void 0!==e?e:null!==(t=D)&&void 0!==t?t:D=document.createDocumentFragment()).querySelectorAll(".text slot")}})],en.prototype,"textSlots",void 0);var rn,on,an,nn,ln,sn,dn,cn,vn,pn=c(Za||(Za=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{color:var(--md-sys-color-on-surface, #1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, 0.875rem);font-weight:var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}/*# sourceMappingURL=item-styles.css.map */\n"]))),hn=class extends en{};function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?un(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}hn.styles=[pn],hn=e([t("md-item")],hn);class bn extends Ie{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem(ve(rn||(rn=mn(['\n <md-item>\n <div slot="container">\n '," ",'\n </div>\n <slot name="start" slot="start"></slot>\n <slot name="end" slot="end"></slot>\n ',"\n </md-item>\n "])),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(e){var t,r="link"===this.type;switch(this.type){case"link":t=aa(on||(on=mn(["a"])));break;case"button":t=aa(an||(an=mn(["button"])));break;default:t=aa(nn||(nn=mn(["li"])))}var o="text"!==this.type,i=r&&this.target?this.target:ue;return sa(ln||(ln=mn(["\n <",'\n id="item"\n tabindex="','"\n ?disabled=','\n role="listitem"\n aria-selected=',"\n aria-checked=","\n aria-expanded=","\n aria-haspopup=",'\n class="list-item ','"\n href=',"\n target=","\n @focus=","\n >","</",">\n "])),t,this.isDisabled||!o?-1:0,this.isDisabled,this.ariaSelected||ue,this.ariaChecked||ue,this.ariaExpanded||ue,this.ariaHasPopup||ue,tt(this.getRenderClasses()),this.href||ue,i,this.onFocus,e,t)}renderRipple(){return"text"===this.type?ue:ve(sn||(sn=mn([' <md-ripple\n part="ripple"\n for="item"\n ?disabled=',"></md-ripple>"])),this.isDisabled)}renderFocusRing(){return"text"===this.type?ue:ve(dn||(dn=mn([" <md-focus-ring\n @visibility-changed=",'\n part="focus-ring"\n for="item"\n inward></md-focus-ring>'])),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(e){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return ve(cn||(cn=mn(['\n <slot></slot>\n <slot name="overline" slot="overline"></slot>\n <slot name="headline" slot="headline"></slot>\n <slot name="supporting-text" slot="supporting-text"></slot>\n <slot\n name="trailing-supporting-text"\n slot="trailing-supporting-text"></slot>\n '])))}onFocus(){-1===this.tabIndex&&this.dispatchEvent(Fa())}focus(){var e;null===(e=this.listItemRoot)||void 0===e||e.focus()}}ft(bn),bn.shadowRootOptions=fn(fn({},Ie.shadowRootOptions),{},{delegatesFocus:!0}),e([T({type:Boolean,reflect:!0})],bn.prototype,"disabled",void 0),e([T({reflect:!0})],bn.prototype,"type",void 0),e([T({type:Boolean,attribute:"md-list-item",reflect:!0})],bn.prototype,"isListItem",void 0),e([T()],bn.prototype,"href",void 0),e([T()],bn.prototype,"target",void 0),e([B(".list-item")],bn.prototype,"listItemRoot",void 0);var yn=c(vn||(vn=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{display:flex;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-list-item-pressed-state-layer-opacity, 0.12)}
2:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, 0.3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-list-item-one-line-container-height, 56px);padding-top:var(--md-list-item-top-space, 12px);padding-bottom:var(--md-list-item-bottom-space, 12px);padding-inline-start:var(--md-list-item-leading-space, 16px);padding-inline-end:var(--md-list-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}@media(forced-colors: active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}/*# sourceMappingURL=list-item-styles.css.map */\n"]))),gn=class extends bn{};gn.styles=[yn],gn=e([t("md-list-item")],gn);var xn="important",_n=" !"+xn,wn=Ze(class extends Je{constructor(e){var t;if(super(e),1!==e.type||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,r)=>{var o=e[r];return null==o?t:t+"".concat(r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(o,";")}),"")}update(e,t){var[r]=t,{style:o}=e.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(r)),this.render(r);for(var i of this.ut)null==r[i]&&(this.ut.delete(i),i.includes("-")?o.removeProperty(i):o[i]=null);for(var a in r){var n=r[a];if(null!=n){this.ut.add(a);var l="string"==typeof n&&n.endsWith(_n);a.includes("-")||l?o.setProperty(a,l?n.slice(0,-11):n,l?xn:""):o[a]=n}}return he}}),On=function(e,t){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:e,reason:t,itemPath:[e]}})};function kn(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}var zn="ArrowRight",Cn="ArrowLeft",En={SPACE:"Space",ENTER:"Enter"},jn="keydown",Pn={ESCAPE:"Escape",SPACE:En.SPACE,ENTER:En.ENTER};function Sn(e){return Object.values(Pn).some((t=>t===e))}function An(e,t){var r=new Event("md-contains",{bubbles:!0,composed:!0}),o=[],i=e=>{o=e.composedPath()};return t.addEventListener("md-contains",i),e.dispatchEvent(r),t.removeEventListener("md-contains",i),o.length>0}var Tn="none",In="first-item",Rn="last-item";function Ln(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function Dn(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);
2function n(e){Ln(a,o,i,n,l,"next",e)}function l(e){Ln(a,o,i,n,l,"throw",e)}n(void 0)}))}}var $n="start-start";class Mn{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}position(){var e=this;return Dn((function*(){var{surfaceEl:t,anchorEl:r,anchorCorner:o,surfaceCorner:i,positioning:a,xOffset:n,yOffset:l,repositionStrategy:s}=e.getProperties(),d=o.toLowerCase().trim(),c=i.toLowerCase().trim();if(t&&r){var v=window.innerWidth,p=window.innerHeight,h=document.createElement("div");h.style.opacity="0",h.style.position="fixed",h.style.display="block",h.style.inset="0",document.body.appendChild(h);var u=h.getBoundingClientRect();h.remove();var f=window.innerHeight-u.bottom,m=window.innerWidth-u.right;e.surfaceStylesInternal={display:"block",opacity:"0"},e.host.requestUpdate(),yield e.host.updateComplete,t.popover&&t.isConnected&&t.showPopover();var b=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),y=r.getSurfacePositionClientRect?r.getSurfacePositionClientRect():r.getBoundingClientRect(),[g,x]=c.split("-"),[_,w]=d.split("-"),O="ltr"===getComputedStyle(t).direction,{blockInset:k,blockOutOfBoundsCorrection:z,surfaceBlockProperty:C}=e.calculateBlock({surfaceRect:b,anchorRect:y,anchorBlock:_,surfaceBlock:g,yOffset:l,positioning:a,windowInnerHeight:p,blockScrollbarHeight:f});if(z){var E="start"===g?"end":"start",j="start"===_?"end":"start",P=e.calculateBlock({surfaceRect:b,anchorRect:y,anchorBlock:j,surfaceBlock:E,yOffset:l,positioning:a,windowInnerHeight:p,blockScrollbarHeight:f});z>P.blockOutOfBoundsCorrection&&(k=P.blockInset,z=P.blockOutOfBoundsCorrection,C=P.surfaceBlockProperty)}var{inlineInset:S,inlineOutOfBoundsCorrection:A,surfaceInlineProperty:T}=e.calculateInline({surfaceRect:b,anchorRect:y,anchorInline:w,surfaceInline:x,xOffset:n,positioning:a,isLTR:O,windowInnerWidth:v,inlineScrollbarWidth:m});if(A){var I="start"===x?"end":"start",R="start"===w?"end":"start",L=e.calculateInline({surfaceRect:b,anchorRect:y,anchorInline:R,surfaceInline:I,xOffset:n,positioning:a,isLTR:O,windowInnerWidth:v,inlineScrollbarWidth:m});Math.abs(A)>Math.abs(L.inlineOutOfBoundsCorrection)&&(S=L.inlineInset,A=L.inlineOutOfBoundsCorrection,T=L.surfaceInlineProperty)}"move"===s&&(k-=z,S-=A),e.surfaceStylesInternal={display:"block",opacity:"1",[C]:"".concat(k,"px"),[T]:"".concat(S,"px")},"resize"===s&&(z&&(e.surfaceStylesInternal.height="".concat(b.height-z,"px")),A&&(e.surfaceStylesInternal.width="".concat(b.width-A,"px"))),e.host.requestUpdate()}}))()}calculateBlock(e){var{surfaceRect:t,anchorRect:r,anchorBlock:o,surfaceBlock:i,yOffset:a,positioning:n,windowInnerHeight:l,blockScrollbarHeight:s}=e,d="fixed"===n||"document"===n?1:0,c="document"===n?1:0,v="start"===i?1:0,p="end"===i?1:0,h=(o!==i?1:0)*r.height+a,u=v*r.top+p*(l-r.bottom-s);return{blockInset:d*u+c*(v*window.scrollY-p*window.scrollY)+h,blockOutOfBoundsCorrection:Math.abs(Math.min(0,l-u-h-t.height)),surfaceBlockProperty:"start"===i?"inset-block-start":"inset-block-end"}}calculateInline(e){var{isLTR:t,surfaceInline:r,anchorInline:o,anchorRect:i,surfaceRect:a,xOffset:n,positioning:l,windowInnerWidth:s,inlineScrollbarWidth:d}=e,c="fixed"===l||"document"===l?1:0,v="document"===l?1:0,p=t?1:0,h=t?0:1,u="start"===r?1:0,f="end"===r?1:0,m=(o!==r?1:0)*i.width+n,b=p*(u*i.left+f*(s-i.right-d))+h*(u*(s-i.right-d)+f*i.left),y="start"===r?"inset-inline-start":"inset-inline-end";return"document"!==l&&"fixed"!==l||(y="start"===r&&t||"end"===r&&!t?"left":"right"),{inlineInset:c*b+m+v*(p*(u*window.scrollX-f*window.scrollX)+h*(f*window.scrollX-u*window.scrollX)),inlineOutOfBoundsCorrection:Math.abs(Math.min(0,s-b-m-a.width)),surfaceInlineProperty:y}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}onUpdate(){var e=this;return Dn((function*(){var t=e.getProperties(),r=!1;for(var[o,i]of Object.entries(t))if(r=r||i!==e.lastValues[o])break;var a=e.lastValues.isOpen!==t.isOpen,n=!!t.anchorEl,l=!!t.surfaceEl;
2r&&n&&l&&(e.lastValues.isOpen=t.isOpen,t.isOpen?(e.lastValues=t,yield e.position(),t.onOpen()):a&&(yield t.beforeClose(),e.close(),t.onClose()))}))()}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();var e=this.getProperties().surfaceEl;null!=e&&e.popover&&null!=e&&e.isConnected&&e.hidePopover()}}var Bn,Un,Nn;class Fn{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=e=>{this.isTypingAhead?this.typeahead(e):this.beginTypeahead(e)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){var t;this.active&&("Space"===e.code||"Enter"===e.code||e.code.startsWith("Arrow")||"Escape"===e.code||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map(((e,t)=>[t,e,e.typeaheadText.trim().toLowerCase()])),this.lastActiveRecord=null!==(t=this.typeaheadRecords.find((e=>0===e[1].tabIndex)))&&void 0!==t?t:null,this.lastActiveRecord&&(this.lastActiveRecord[1].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(!e.defaultPrevented){if(clearTimeout(this.cancelTypeaheadTimeout),"Enter"===e.code||e.code.startsWith("Arrow")||"Escape"===e.code)return this.endTypeahead(),void(this.lastActiveRecord&&(this.lastActiveRecord[1].tabIndex=-1));"Space"===e.code&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();var t=this.lastActiveRecord?this.lastActiveRecord[0]:-1,r=this.typeaheadRecords.length,o=e=>(e[0]+r-t)%r,i=this.typeaheadRecords.filter((e=>!e[1].disabled&&e[2].startsWith(this.typaheadBuffer))).sort(((e,t)=>o(e)-o(t)));if(0===i.length)return clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[1].tabIndex=-1),void this.endTypeahead();var a,n,l=1===this.typaheadBuffer.length;a=this.lastActiveRecord===i[0]&&l&&null!==(n=i[1])&&void 0!==n?n:i[0],this.lastActiveRecord&&(this.lastActiveRecord[1].tabIndex=-1),this.lastActiveRecord=a,a[1].tabIndex=0,a[1].focus()}}}function qn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Vn(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function Hn(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function n(e){Vn(a,o,i,n,l,"next",e)}function l(e){Vn(a,o,i,n,l,"throw",e)}n(void 0)}))}}var Kn,Wn=new Set([Ha.ArrowDown,Ha.ArrowUp,Ha.Home,Ha.End]),Gn=new Set([Ha.ArrowLeft,Ha.ArrowRight,...Wn]);class Xn extends Ie{get openDirection(){return"start"===this.menuCorner.split("-")[0]?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector("#".concat(this.anchor)):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){var e,t;super(),e=this,this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=200,this.anchorCorner="end-start",this.menuCorner=$n,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=In,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=(t=null,{start(){var e;return null===(e=t)||void 0===e||e.abort(),(t=new AbortController).signal},finish(){t=null}}),this.listController=new Ka({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>this.isSubmenu?e===("rtl"===getComputedStyle(this).direction?Ha.ArrowLeft:Ha.ArrowRight)||Wn.has(e):Gn.has(e)}),this.lastFocusedElement=null,this.typeaheadController=new Fn((()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive}))),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new Mn(this,(()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:"popover"===this.positioning?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&"popover"!==this.positioning?"move":"resize"}))),this.onWindowResize=()=>
2{this.isRepositioning||"document"!==this.positioning&&"fixed"!==this.positioning&&"popover"!==this.positioning||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=function(){var t=Hn((function*(t){var r=e.anchorElement;if(!e.stayOpenOnFocusout&&e.open&&!e.pointerPath.includes(r)){if(t.relatedTarget){if(An(t.relatedTarget,e)||0!==e.pointerPath.length&&An(t.relatedTarget,r))return}else if(e.pointerPath.includes(e))return;var o=e.skipRestoreFocus;e.skipRestoreFocus=!0,e.close(),yield e.updateComplete,e.skipRestoreFocus=o}}));return function(e){return t.apply(this,arguments)}}(),this.onOpened=Hn((function*(){e.lastFocusedElement=function(){for(var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement;e&&null!==(t=e)&&void 0!==t&&null!==(r=t.shadowRoot)&&void 0!==r&&r.activeElement;){var t,r;e=e.shadowRoot.activeElement}return e}();var t=e.items,r=Da(t);r&&e.defaultFocus!==Tn&&(r.item.tabIndex=-1);var o=!e.quick;switch(e.quick?e.dispatchEvent(new Event("opening")):o=!!(yield e.animateOpen()),e.defaultFocus){case In:var i=$a(t);i&&(i.tabIndex=0,i.focus(),yield i.updateComplete);break;case Rn:var a=Ma(t);a&&(a.tabIndex=0,a.focus(),yield a.updateComplete);break;case"list-root":e.focus()}o||e.dispatchEvent(new Event("opened"))})),this.beforeClose=Hn((function*(){var t,r;e.open=!1,e.skipRestoreFocus||null===(t=e.lastFocusedElement)||void 0===t||null===(r=t.focus)||void 0===r||r.call(t),e.quick||(yield e.animateClose())})),this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(this.open){var t=e.composedPath();this.stayOpenOnOutsideClick||t.includes(this)||t.includes(this.anchorElement)||(this.open=!1)}},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){e.has("open")&&(this.open?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true"))}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&"popover"===this.positioning&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}render(){return this.renderSurface()}renderSurface(){return ve(Bn||(Bn=qn(['\n <div\n class="menu ','"\n style=',"\n popover=",">\n ",'\n <div class="items">\n <div class="item-padding"> '," </div>\n </div>\n </div>\n "])),tt(this.getSurfaceClasses()),wn(this.menuPositionController.surfaceStyles),"popover"===this.positioning?"manual":ue,this.renderElevation(),this.renderMenuItems())}renderMenuItems(){return ve(Un||(Un=qn(["<slot\n @close-menu=","\n @deactivate-items=","\n @request-activation=","\n @deactivate-typeahead=","\n @activate-typeahead=","\n @stay-open-on-focusout=","\n @close-on-focusout=","\n @slotchange=","></slot>"])),this.onCloseMenu,this.onDeactivateItems,this.onRequestActivation,this.handleDeactivateTypeahead,this.handleActivateTypeahead,this.handleStayOpenOnFocusout,this.handleCloseOnFocusout,this.listController.onSlotchange)}renderElevation(){return ve(Nn||(Nn=qn(['<md-elevation part="elevation"></md-elevation>'])))}getSurfaceClasses(){return{open:this.open,fixed:"fixed"===this.positioning,"has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Sn(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}animateOpen(){var e=this;return Hn((function*(){var t=e.surfaceEl,r=e.slotEl;if(!t||!r)return!0;var o=e.openDirection;e.dispatchEvent(new Event("opening")),t.classList.toggle("animating",!0);for(var i=e.openCloseAnimationSignal.start(),a=t.offsetHeight,n="UP"===o,l=e.items,s=250/l.length,d=t.animate([{height:"0px"},{height:"".concat(a,"px")}],{duration:500,easing:ot}),c=r.animate([{transform:n?"translateY(-".concat(a,"px)"):""},{transform:""}],{duration:500,easing:ot}),v=t.animate([{opacity:0}
2,{opacity:1}],50),p=[],h=function*(){var e=n?l.length-1-u:u,t=l[e],r=t.animate([{opacity:0},{opacity:1}],{duration:250,delay:s*u});t.classList.toggle("md-menu-hidden",!0),r.addEventListener("finish",(()=>{t.classList.toggle("md-menu-hidden",!1)})),p.push([t,r])},u=0;u<l.length;u++)yield*h();var f=e=>{},m=new Promise((e=>{f=e}));return i.addEventListener("abort",(()=>{d.cancel(),c.cancel(),v.cancel(),p.forEach((e=>{var[t,r]=e;t.classList.toggle("md-menu-hidden",!1),r.cancel()})),f(!0)})),d.addEventListener("finish",(()=>{t.classList.toggle("animating",!1),e.openCloseAnimationSignal.finish(),f(!1)})),yield m}))()}animateClose(){var e,t,r=new Promise(((r,o)=>{e=r,t=o})),o=this.surfaceEl,i=this.slotEl;if(!o||!i)return t(),r;var a="UP"===this.openDirection;this.dispatchEvent(new Event("closing")),o.classList.toggle("animating",!0);for(var n=this.openCloseAnimationSignal.start(),l=o.offsetHeight,s=this.items,d=50/s.length,c=o.animate([{height:"".concat(l,"px")},{height:"".concat(.35*l,"px")}],{duration:150,easing:it}),v=i.animate([{transform:""},{transform:a?"translateY(-".concat(.65*l,"px)"):""}],{duration:150,easing:it}),p=o.animate([{opacity:1},{opacity:0}],{duration:50,delay:100}),h=[],u=function(){var e=a?f:s.length-1-f,t=s[e],r=t.animate([{opacity:1},{opacity:0}],{duration:50,delay:50+d*f});r.addEventListener("finish",(()=>{t.classList.toggle("md-menu-hidden",!0)})),h.push([t,r])},f=0;f<s.length;f++)u();return n.addEventListener("abort",(()=>{c.cancel(),v.cancel(),p.cancel(),h.forEach((e=>{var[t,r]=e;r.cancel(),t.classList.toggle("md-menu-hidden",!1)})),t()})),c.addEventListener("finish",(()=>{o.classList.toggle("animating",!1),h.forEach((e=>{var[t]=e;t.classList.toggle("md-menu-hidden",!1)})),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)})),r}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach((e=>{var t;null===(t=e.close)||void 0===t||t.call(e)}))}show(){this.open=!0}activateNextItem(){var e;return null!==(e=this.listController.activateNextItem())&&void 0!==e?e:null}activatePreviousItem(){var e;return null!==(e=this.listController.activatePreviousItem())&&void 0!==e?e:null}reposition(){this.open&&this.menuPositionController.position()}}e([B(".menu")],Xn.prototype,"surfaceEl",void 0),e([B("slot")],Xn.prototype,"slotEl",void 0),e([T()],Xn.prototype,"anchor",void 0),e([T()],Xn.prototype,"positioning",void 0),e([T({type:Boolean})],Xn.prototype,"quick",void 0),e([T({type:Boolean,attribute:"has-overflow"})],Xn.prototype,"hasOverflow",void 0),e([T({type:Boolean,reflect:!0})],Xn.prototype,"open",void 0),e([T({type:Number,attribute:"x-offset"})],Xn.prototype,"xOffset",void 0),e([T({type:Number,attribute:"y-offset"})],Xn.prototype,"yOffset",void 0),e([T({type:Number,attribute:"typeahead-delay"})],Xn.prototype,"typeaheadDelay",void 0),e([T({attribute:"anchor-corner"})],Xn.prototype,"anchorCorner",void 0),e([T({attribute:"menu-corner"})],Xn.prototype,"menuCorner",void 0),e([T({type:Boolean,attribute:"stay-open-on-outside-click"})],Xn.prototype,"stayOpenOnOutsideClick",void 0),e([T({type:Boolean,attribute:"stay-open-on-focusout"})],Xn.prototype,"stayOpenOnFocusout",void 0),e([T({type:Boolean,attribute:"skip-restore-focus"})],Xn.prototype,"skipRestoreFocus",void 0),e([T({attribute:"default-focus"})],Xn.prototype,"defaultFocus",void 0),e([F({flatten:!0})],Xn.prototype,"slotItems",void 0),e([L()],Xn.prototype,"typeaheadActive",void 0);var Yn,Zn,Jn,Qn,el,tl,rl,ol,il,al=c(Kn||(Kn=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--md-elevation-level: var(--md-menu-container-elevation, 2);--md-elevation-shadow-color: var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape: var(--md-menu-container-shape, 4px)}.menu{border-radius:var(--md-menu-container-shape, 4px);display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:none;box-sizing:border-box;background-color:var(--md-menu-container-color, var(--md-sys-color-surface-container, #f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit}.item-padding{padding-block:8px}.has-overflow:not([popover]) .items{overflow:visible}.has-overflow.animating .items,.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}
2slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors: active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}}/*# sourceMappingURL=menu-styles.css.map */\n"]))),nl=class extends Xn{};nl.styles=[al],nl=e([t("md-menu")],nl);class ll{constructor(e,t){this.host=e,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent(On(this.host,{kind:"click-selection"}))},this.onKeydown=e=>{if(this.host.href&&"Enter"===e.code){var t=this.getInteractiveElement();t instanceof HTMLAnchorElement&&t.click()}if(!e.defaultPrevented){var r=e.code;this.host.keepOpen&&"Escape"!==r||Sn(r)&&(e.preventDefault(),this.host.dispatchEvent(On(this.host,{kind:jn,key:r})))}},this.getHeadlineElements=t.getHeadlineElements,this.getSupportingTextElements=t.getSupportingTextElements,this.getDefaultElements=t.getDefaultElements,this.getInteractiveElement=t.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(null!==this.internalTypeaheadText)return this.internalTypeaheadText;var e=this.getHeadlineElements(),t=[];return e.forEach((e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())})),0===t.length&&this.getDefaultElements().forEach((e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())})),0===t.length&&this.getSupportingTextElements().forEach((e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())})),t.join(" ")}get tagName(){switch(this.host.type){case"link":return"a";case"button":return"button";default:return"li"}}get role(){return"option"===this.host.type?"option":"menuitem"}hostConnected(){this.host.toggleAttribute("md-menu-item",!0)}hostUpdate(){this.host.href&&(this.host.type="link")}setTypeaheadText(e){this.internalTypeaheadText=e}}function sl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function dl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class vl extends Ie{constructor(){super(...arguments),this.disabled=!1,this.type="menuitem",this.href="",this.target="",this.keepOpen=!1,this.selected=!1,this.menuItemController=new ll(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.menuItemController.typeaheadText}set typeaheadText(e){this.menuItemController.setTypeaheadText(e)}render(){return this.renderListItem(ve(Yn||(Yn=cl(['\n <md-item>\n <div slot="container">\n '," ",'\n </div>\n <slot name="start" slot="start"></slot>\n <slot name="end" slot="end"></slot>\n ',"\n </md-item>\n "])),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(e){var t,r="link"===this.type;switch(this.menuItemController.tagName){case"a":t=aa(Zn||(Zn=cl(["a"])));break;case"button":t=aa(Jn||(Jn=cl(["button"])));break;default:t=aa(Qn||(Qn=cl(["li"])))}var o=r&&this.target?this.target:ue;return sa(el||(el=cl(["\n <",'\n id="item"\n tabindex=',"\n role=","\n aria-label=","\n aria-selected=","\n aria-checked=","\n aria-expanded=","\n aria-haspopup=",'\n class="list-item ','"\n href=',"\n target=","\n @click=","\n @keydown=","\n >","</",">\n "])),t,this.disabled&&!r?-1:0,this.menuItemController.role,this.ariaLabel||ue,this.ariaSelected||ue,this.ariaChecked||ue,this.ariaExpanded||ue,this.ariaHasPopup||ue,tt(this.getRenderClasses()),this.href||ue,o,this.menuItemController.onClick,this.menuItemController.onKeydown,e,t)}
2renderRipple(){return ve(tl||(tl=cl([' <md-ripple\n part="ripple"\n for="item"\n ?disabled=',"></md-ripple>"])),this.disabled)}renderFocusRing(){return ve(rl||(rl=cl([' <md-focus-ring\n part="focus-ring"\n for="item"\n inward></md-focus-ring>'])))}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return ve(ol||(ol=cl(['\n <slot></slot>\n <slot name="overline" slot="overline"></slot>\n <slot name="headline" slot="headline"></slot>\n <slot name="supporting-text" slot="supporting-text"></slot>\n <slot\n name="trailing-supporting-text"\n slot="trailing-supporting-text"></slot>\n '])))}focus(){var e;null===(e=this.listItemRoot)||void 0===e||e.focus()}}ft(vl),vl.shadowRootOptions=dl(dl({},Ie.shadowRootOptions),{},{delegatesFocus:!0}),e([T({type:Boolean,reflect:!0})],vl.prototype,"disabled",void 0),e([T()],vl.prototype,"type",void 0),e([T()],vl.prototype,"href",void 0),e([T()],vl.prototype,"target",void 0),e([T({type:Boolean,attribute:"keep-open"})],vl.prototype,"keepOpen",void 0),e([T({type:Boolean})],vl.prototype,"selected",void 0),e([B(".list-item")],vl.prototype,"listItemRoot",void 0),e([F({slot:"headline"})],vl.prototype,"headlineElements",void 0),e([F({slot:"supporting-text"})],vl.prototype,"supportingTextElements",void 0),e([q({slot:""})],vl.prototype,"defaultElements",void 0),e([T({attribute:"typeahead-text"})],vl.prototype,"typeaheadText",null);var pl,hl,ul=c(il||(il=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{display:flex;--md-ripple-hover-color: var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, 0.3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-menu-item-one-line-container-height, 56px);padding-top:var(--md-menu-item-top-space, 12px);padding-bottom:var(--md-menu-item-bottom-space, 12px);padding-inline-start:var(--md-menu-item-leading-space, 16px);padding-inline-end:var(--md-menu-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-menu-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-menu-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}.list-item{background-color:var(--md-menu-item-container-color, transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color, var(--md-sys-color-secondary-container, #e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b))}@media(forced-colors: active){:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}}/*# sourceMappingURL=menu-item-styles.css.map */\n']))),fl=class extends vl{};function ml(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function bl(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);
2function n(e){ml(a,o,i,n,l,"next",e)}function l(e){ml(a,o,i,n,l,"throw",e)}n(void 0)}))}}fl.styles=[ul],fl=e([t("md-menu-item")],fl);class yl extends Ie{get item(){var e;return null!==(e=this.items[0])&&void 0!==e?e:null}get menu(){var e;return null!==(e=this.menus[0])&&void 0!==e?e:null}constructor(){super(),this.anchorCorner="start-end",this.menuCorner=$n,this.hoverOpenDelay=400,this.hoverCloseDelay=400,this.isSubMenu=!0,this.previousOpenTimeout=0,this.previousCloseTimeout=0,this.onMouseenter=()=>{var e;clearTimeout(this.previousOpenTimeout),clearTimeout(this.previousCloseTimeout),null!==(e=this.menu)&&void 0!==e&&e.open||(this.hoverOpenDelay?this.previousOpenTimeout=setTimeout((()=>{this.show()}),this.hoverOpenDelay):this.show())},this.onMouseleave=()=>{clearTimeout(this.previousCloseTimeout),clearTimeout(this.previousOpenTimeout),this.hoverCloseDelay?this.previousCloseTimeout=setTimeout((()=>{this.close()}),this.hoverCloseDelay):this.close()},this.addEventListener("mouseenter",this.onMouseenter),this.addEventListener("mouseleave",this.onMouseleave)}render(){return ve(pl||(pl=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <slot\n name="item"\n @click=',"\n @keydown=","\n @slotchange=",'>\n </slot>\n <slot\n name="menu"\n @keydown=',"\n @close-menu=","\n @slotchange=",">\n </slot>\n "])),this.onClick,this.onKeydown,this.onSlotchange,this.onSubMenuKeydown,this.onCloseSubmenu,this.onSlotchange)}firstUpdated(){this.onSlotchange()}show(){var e=this;return bl((function*(){var t=e.menu;if(t&&!t.open){t.addEventListener("closed",(()=>{e.item.ariaExpanded="false",e.dispatchEvent(kn()),e.dispatchEvent(Na()),t.ariaHidden="true"}),{once:!0}),"document"===t.positioning&&(t.positioning="absolute"),t.quick=!0,t.hasOverflow=!0,t.anchorCorner=e.anchorCorner,t.menuCorner=e.menuCorner,t.anchorElement=e.item,t.defaultFocus="first-item",t.removeAttribute("aria-hidden"),t.skipRestoreFocus=!1;var r=t.open;if(t.show(),e.item.ariaExpanded="true",e.item.ariaHasPopup="menu",t.id&&e.item.setAttribute("aria-controls",t.id),e.dispatchEvent(Na()),e.dispatchEvent(new Event("deactivate-typeahead",{bubbles:!0,composed:!0})),e.item.selected=!0,!r){var o=e=>{},i=new Promise((e=>{o=e}));t.addEventListener("opened",o,{once:!0}),yield i}}}))()}close(){var e=this;return bl((function*(){var t=e.menu;if(t&&t.open){e.dispatchEvent(kn()),t.quick=!0,t.close(),e.dispatchEvent(Na());var r=e=>{},o=new Promise((e=>{r=e}));t.addEventListener("closed",r,{once:!0}),yield o}}))()}onSlotchange(){var e;if(this.item){this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",null!==(e=this.menu)&&void 0!==e&&e.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;var t=this.menu;t&&(t.isSubmenu=!0,t.ariaHidden="true")}}onClick(){this.show()}onKeydown(e){var t=this;return bl((function*(){var r=t.isSubmenuOpenKey(e.code);if(!e.defaultPrevented){var o=r&&(Cn===e.code||zn===e.code);if((e.code===En.SPACE||o)&&(e.preventDefault(),o&&e.stopPropagation()),r){var i=t.menu;if(i){var a=$a(i.items);return a?(yield t.show(),a.tabIndex=0,void a.focus()):void 0}}}}))()}onCloseSubmenu(e){var{itemPath:t,reason:r}=e.detail;if(t.push(this.item),this.dispatchEvent(kn()),r.kind===jn&&r.key===Pn.ESCAPE)return e.stopPropagation(),void this.item.dispatchEvent(Fa());this.dispatchEvent(Na())}onSubMenuKeydown(e){var t=this;return bl((function*(){var r;if(!e.defaultPrevented){var{close:o,keyCode:i}=t.isSubmenuCloseKey(e.code);o&&(e.preventDefault(),i!==Cn&&i!==zn||e.stopPropagation(),yield t.close(),function(e){var t=Da(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:qa);t&&(t.item.tabIndex=-1)}(t.menu.items),null===(r=t.item)||void 0===r||r.focus(),t.item.tabIndex=0,t.item.focus())}}))()}isSubmenuOpenKey(e){switch(e){case"rtl"===getComputedStyle(this).direction?Cn:zn:case En.SPACE:case En.ENTER:return!0;default:return!1}}isSubmenuCloseKey(e){switch(e){case"rtl"===getComputedStyle(this).direction?zn:Cn:case Pn.ESCAPE:return{close:!0,keyCode:e};default:return{close:!1}}}}e([T({attribute:"anchor-corner"})],yl.prototype,"anchorCorner",void 0),e([T({attribute:"menu-corner"})],yl.prototype,"menuCorner",void 0),e([T({type:Number,attribute:"hover-open-delay"})],yl.prototype,"hoverOpenDelay",void 0),e([T({type:Number,attribute:"hover-close-delay"})],yl.prototype,"hoverCloseDelay",void 0),e([T({type:Boolean,reflect:!0,attribute:"md-sub-menu"})],yl.prototype,"isSubMenu",void 0),e([F({slot:"item",flatten:!0})],yl.prototype,"items",void 0),e([F({slot:"menu",flatten:!0})],yl.prototype,"menus",void 0);var gl,xl,_l,wl,Ol=c(hl||(hl=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{position:relative;display:flex;flex-direction:column}/*# sourceMappingURL=sub-menu-styles.css.map */\n"]))),kl=class extends yl{};kl.styles=Ol,kl=e([t("md-sub-menu")],kl);class zl extends Ie{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){var{ariaLabel:e}=this;return ve(gl||(gl=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div\n class="progress ','"\n role="progressbar"\n aria-label="','"\n aria-valuemin="0"\n aria-valuemax=',"\n aria-valuenow=","\n >","</div\n >\n "])),tt(this.getRenderClasses()),e||ue,this.max,this.indeterminate?ue:this.value,this.renderIndicator())}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}function Cl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}ft(zl),e([T({type:Number})],zl.prototype,"value",void 0),e([T({type:Number})],zl.prototype,"max",void 0),e([T({type:Boolean})],zl.prototype,"indeterminate",void 0),e([T({type:Boolean,attribute:"four-color"})],zl.prototype,"fourColor",void 0);class El extends zl{renderIndicator(){return this.indeterminate?this.renderIndeterminateContainer():this.renderDeterminateContainer()}renderDeterminateContainer(){var e=100*(1-this.value/this.max);return ve(xl||(xl=Cl(['\n <svg viewBox="0 0 4800 4800">\n <circle class="track" pathLength="100"></circle>
2\n <circle\n class="active-track"\n pathLength="100"\n stroke-dashoffset=',"></circle>\n </svg>\n "])),e)}renderIndeterminateContainer(){return ve(_l||(_l=Cl([' <div class="spinner">\n <div class="left">\n <div class="circle"></div>\n </div>\n <div class="right">\n <div class="circle"></div>\n </div>\n </div>'])))}}var jl,Pl,Sl=c(wl||(wl=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_active-indicator-color: var(--md-circular-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-width: var(--md-circular-progress-active-indicator-width, 10);--_four-color-active-indicator-four-color: var(--md-circular-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-circular-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-circular-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-circular-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_size: var(--md-circular-progress-size, 48px);display:inline-flex;vertical-align:middle;width:var(--_size);height:var(--_size);position:relative;align-items:center;justify-content:center;contain:strict;content-visibility:auto}.progress{flex:1;align-self:stretch;margin:4px}.progress,.spinner,.left,.right,.circle,svg,.track,.active-track{position:absolute;inset:0}svg{transform:rotate(-90deg)}circle{cx:50%;cy:50%;r:calc(50%*(1 - var(--_active-indicator-width)/100));stroke-width:calc(var(--_active-indicator-width)*1%);stroke-dasharray:100;fill:rgba(0,0,0,0)}.active-track{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1);stroke:var(--_active-indicator-color)}.track{stroke:rgba(0,0,0,0)}.progress.indeterminate{animation:linear infinite linear-rotate;animation-duration:1568.2352941176ms}.spinner{animation:infinite both rotate-arc;animation-duration:5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.left{overflow:hidden;inset:0 50% 0 0}.right{overflow:hidden;inset:0 0 0 50%}.circle{box-sizing:border-box;border-radius:50%;border:solid calc(var(--_active-indicator-width)/100*(var(--_size) - 8px));border-color:var(--_active-indicator-color) var(--_active-indicator-color) rgba(0,0,0,0) rgba(0,0,0,0);animation:expand-arc;animation-iteration-count:infinite;animation-fill-mode:both;animation-duration:1333ms,5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.four-color .circle{animation-name:expand-arc,four-color}.left .circle{rotate:135deg;inset:0 -100% 0 0}.right .circle{rotate:100deg;inset:0 0 0 -100%;animation-delay:-666.5ms,0ms}@media(forced-colors: active){.active-track{stroke:CanvasText}.circle{border-color:CanvasText CanvasText Canvas Canvas}}@keyframes expand-arc{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes rotate-arc{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes linear-rotate{to{transform:rotate(360deg)}}@keyframes four-color{0%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}15%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}25%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}40%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}50%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}65%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}75%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}90%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}100%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}}/*# sourceMappingURL=circular-progress-styles.css.map */\n"]))),Al=class extends
2El{};Al.styles=[Sl],Al=e([t("md-circular-progress")],Al);class Tl extends zl{constructor(){super(...arguments),this.buffer=1}renderIndicator(){var e={transform:"scaleX(".concat(100*(this.indeterminate?1:this.value/this.max),"%)")},t={transform:"scaleX(".concat(100*(this.indeterminate?1:this.buffer/this.max),"%)")},r=this.indeterminate||this.buffer>=this.max||this.value>=this.max;return ve(jl||(jl=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="dots" ?hidden=','></div>\n <div class="inactive-track" style=','></div>\n <div class="bar primary-bar" style=','>\n <div class="bar-inner"></div>\n </div>\n <div class="bar secondary-bar">\n <div class="bar-inner"></div>\n </div>\n '])),r,wn(t),wn(e))}}e([T({type:Number})],Tl.prototype,"buffer",void 0);var Il=c(Pl||(Pl=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_active-indicator-color: var(--md-linear-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-linear-progress-active-indicator-height, 4px);--_four-color-active-indicator-four-color: var(--md-linear-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-linear-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-linear-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-linear-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_track-color: var(--md-linear-progress-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_track-height: var(--md-linear-progress-track-height, 4px);--_track-shape: var(--md-linear-progress-track-shape, 0px);border-radius:var(--_track-shape);display:flex;position:relative;min-width:80px;height:var(--_track-height);content-visibility:auto;contain:strict}.progress,.dots,.inactive-track,.bar,.bar-inner{position:absolute}.progress{direction:ltr;inset:0;border-radius:inherit;overflow:hidden;display:flex;align-items:center}.bar{animation:none;width:100%;height:var(--_active-indicator-height);transform-origin:left center;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1)}.secondary-bar{display:none}.bar-inner{inset:0;animation:none;background:var(--_active-indicator-color)}.inactive-track{background:var(--_track-color);inset:0;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1);transform-origin:left center}.dots{inset:0;animation:linear infinite 250ms;animation-name:buffering;background-color:var(--_track-color);background-repeat:repeat-x;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");z-index:-1}.dots[hidden]{display:none}.indeterminate .bar{transition:none}.indeterminate .primary-bar{inset-inline-start:-145.167%}.indeterminate .secondary-bar{inset-inline-start:-54.8889%;display:block}.indeterminate .primary-bar{animation:linear infinite 2s;animation-name:primary-indeterminate-translate}.indeterminate .primary-bar>.bar-inner{animation:linear infinite 2s primary-indeterminate-scale}.indeterminate.four-color .primary-bar>.bar-inner{animation-name:primary-indeterminate-scale,four-color;animation-duration:2s,4s}.indeterminate .secondary-bar{animation:linear infinite 2s;animation-name:secondary-indeterminate-translate}.indeterminate .secondary-bar>.bar-inner{animation:linear infinite 2s secondary-indeterminate-scale}.indeterminate.four-color .secondary-bar>.bar-inner{animation-name:secondary-indeterminate-scale,four-color;animation-duration:2s,4s}:host-context([dir=rtl]),:host([dir=rtl]){transform:scale(-1)}:host(:dir(rtl)){transform:scale(-1)}
2@keyframes primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.00432);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes buffering{0%{transform:translateX(calc(var(--_track-height) / 2 * 5))}}@keyframes primary-indeterminate-translate{0%{transform:translateX(0px)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0px)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.6714%)}100%{transform:translateX(200.611%)}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0px)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.6519%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.3862%)}100%{transform:translateX(160.278%)}}@keyframes four-color{0%{background:var(--_four-color-active-indicator-one-color)}15%{background:var(--_four-color-active-indicator-one-color)}25%{background:var(--_four-color-active-indicator-two-color)}40%{background:var(--_four-color-active-indicator-two-color)}50%{background:var(--_four-color-active-indicator-three-color)}65%{background:var(--_four-color-active-indicator-three-color)}75%{background:var(--_four-color-active-indicator-four-color)}90%{background:var(--_four-color-active-indicator-four-color)}100%{background:var(--_four-color-active-indicator-one-color)}}@media(forced-colors: active){:host{outline:1px solid CanvasText}.bar-inner,.dots{background-color:CanvasText}}/*# sourceMappingURL=linear-progress-styles.css.map */\n"]))),Rl=class extends Tl{};Rl.styles=[Il],Rl=e([t("md-linear-progress")],Rl);var Ll,Dl,$l=Symbol("isFocusable"),Ml=Symbol("privateIsFocusable"),Bl=Symbol("externalTabIndex"),Ul=Symbol("isUpdatingTabIndex"),Nl=Symbol("updateTabIndex"),Fl=Symbol("hasConstructed");function ql(t){var r,o,i,a;class n extends t{get[$l](){return this[Ml]}set[$l](e){this[$l]!==e&&(this[Ml]=e,this[Nl]())}constructor(){super(...arguments),this[r]=!1,this[o]=null,this[i]=!1,this[a]=!1,this[$l]=!0,queueMicrotask((()=>{this[Fl]=!0,this[Nl]()}))}attributeChangedCallback(e,t,r){if("tabindex"===e){if(this.requestUpdate("tabIndex",Number(null!=t?t:-1)),!this[Ul])return this.hasAttribute("tabindex")?void(this[Bl]=this.tabIndex):(this[Bl]=null,void this[Nl]())}else super.attributeChangedCallback(e,t,r)}[(r=Ml,o=Bl,i=Ul,a=Fl,Nl)](){var e;if(this[Fl]){var t=this[$l]?0:-1,r=null!==(e=this[Bl])&&void 0!==e?e:t;this[Ul]=!0,this.tabIndex=r,this[Ul]=!1}}}return e([T({noAccessor:!0})],n.prototype,"tabIndex",void 0),n}class Vl extends _r{computeValidity(e){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");var t=!1,r=!1;for(var{checked:o,required:i}of e)i&&(t=!0),o&&(r=!0);return this.radioElement.checked=r,this.radioElement.required=t,{validity:{valueMissing:t&&!r},validationMessage:this.radioElement.validationMessage}}equals(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var o=e[r],i=t[r];if(o.checked!==i.checked||o.required!==i.required)return!1}return!0}copy(e){return e.map((e=>{var{checked:t,required:r}=e;return{checked:t,required:r}}))}}class Hl{get controls(){var e=this.host.getAttribute("name");return e&&this.root&&this.host.isConnected?Array.from(this.root.querySelectorAll('[name="'.concat(e,'"]'))):[this.host]}constructor(e){this.host=e,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=e=>{var t="ArrowDown"===e.key,r="ArrowUp"===e.key,o="ArrowLeft"===e.key,i="ArrowRight"===e.key;if(o||i||t||r){var a=this.controls;if(a.length){e.preventDefault();for(var n="rtl"===getComputedStyle(this.host).direction?o||t:i||t,l=a.indexOf(this.host),s=n?l+1:l-1;s!==l;){s>=a.length?s=0:s<0&&(s=a.length-1);var d=a[s];if(!d.hasAttribute("disabled")){for(var c of a)c!==d&&(c.checked=!1,c.tabIndex=-1,
2c.blur());d.checked=!0,d.tabIndex=0,d.focus(),d.dispatchEvent(new Event("change",{bubbles:!0}));break}n?s++:s--}}}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(var e of this.controls)e!==this.host&&(e.checked=!1)}updateTabIndices(){var e=this.controls,t=e.find((e=>e.checked));if(t||this.focused){var r=t||this.host;for(var o of(r.tabIndex=0,e))o!==r&&(o.tabIndex=-1)}else for(var i of e)i.tabIndex=0}}function Kl(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function Wl(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function n(e){Kl(a,o,i,n,l,"next",e)}function l(e){Kl(a,o,i,n,l,"throw",e)}n(void 0)}))}}var Gl,Xl=Symbol("checked"),Yl=0,Zl=mr(xr(yt(ql(Ie))));class Jl extends Zl{get checked(){return this[Xl]}set checked(e){var t=this.checked;t!==e&&(this[Xl]=e,this.requestUpdate("checked",t),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId="cutout".concat(++Yl),this[Dl]=!1,this.required=!1,this.value="on",this.selectionController=new Hl(this),this.addController(this.selectionController),this[mt].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){var e={checked:this.checked};return ve(Ll||(Ll=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="container ','" aria-hidden="true">\n <md-ripple\n part="ripple"\n .control=',"\n ?disabled=",'></md-ripple>\n <md-focus-ring part="focus-ring" .control=','></md-focus-ring>\n <svg class="icon" viewBox="0 0 20 20">\n <mask id="','">\n <rect width="100%" height="100%" fill="white" />\n <circle cx="10" cy="10" r="8" fill="black" />\n </mask>\n <circle\n class="outer circle"\n cx="10"\n cy="10"\n r="10"\n mask="url(#',')" />\n <circle class="inner circle" cx="10" cy="10" r="5" />\n </svg>\n\n <input\n id="input"\n type="radio"\n tabindex="-1"\n .checked=',"\n .value=","\n ?disabled="," />\n </div>\n "])),tt(e),this,this.disabled,this,this.maskId,this.maskId,this.checked,this.value,this.disabled)}updated(){this[mt].ariaChecked=String(this.checked)}handleClick(e){var t=this;return Wl((function*(){t.disabled||(yield 0,e.defaultPrevented||(Ot(e)&&t.focu
2s(),t.checked=!0,t.dispatchEvent(new Event("change",{bubbles:!0})),t.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}))()}handleKeydown(e){var t=this;return Wl((function*(){yield 0," "!==e.key||e.defaultPrevented||t.click()}))()}[(Dl=Xl,yr)](){return this.checked?this.value:null}[gr](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked="true"===e}[vr](){return new Vl((()=>this.selectionController?this.selectionController.controls:[this]))}[pr](){return this.container}}e([T({type:Boolean})],Jl.prototype,"checked",null),e([T({type:Boolean})],Jl.prototype,"required",void 0),e([T()],Jl.prototype,"value",void 0),e([B(".container")],Jl.prototype,"container",void 0);var Ql=c(Gl||(Gl=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}input{appearance:none;height:48px;margin:0;position:absolute;width:48px;cursor:inherit}:host([touch-target=none]) input{width:100%;height:100%}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}}/*# sourceMappingURL=radio-styles.css.map */\n"]))),es=class extends Jl{};es.styles=[Ql],es=e([t("md-radio")],es);var ts=Symbol("onReportValidity"),rs=Symbol("privateCleanupFormListeners"),os=Symbol("privateDoNotReportInvalid"),is=Symbol("privateIsSelfReportingValidity"),as=Symbol("privateCallOnReportValidity");function ns(e){var t,r,o;class i extends e{constructor(){super(...arguments),this[t]=new AbortController,this[r]=!1,this[o]=!1,this.addEventListener("invalid",(e=>{!this[os]&&e.isTrusted&&this.addEventListener("invalid",(()=>
2{this[as](e)}),{once:!0})}),{capture:!0})}checkValidity(){this[os]=!0;var e=super.checkValidity();return this[os]=!1,e}reportValidity(){this[is]=!0;var e=super.reportValidity();return e&&this[as](null),this[is]=!1,e}[(t=rs,r=os,o=is,as)](e){var t=null==e?void 0:e.defaultPrevented;t||(this[ts](e),!t&&(null==e?void 0:e.defaultPrevented)&&(this[is]||function(e,t){if(!e)return!0;var r;for(var o of e.elements)if(o.matches(":invalid")){r=o;break}return r===t}(this[mt].form,this))&&this.focus())}[ts](e){throw new Error("Implement [onReportValidity]")}formAssociatedCallback(e){super.formAssociatedCallback&&super.formAssociatedCallback(e),this[rs].abort(),e&&(this[rs]=new AbortController,function(e,t,r,o){var i,a=function(e){if(!bs.has(e)){var t=new EventTarget;bs.set(e,t);var r=function(){var r=e[o];e[o]=function(){t.dispatchEvent(new Event("before"));var e=Reflect.apply(r,this,arguments);return t.dispatchEvent(new Event("after")),e}};for(var o of["reportValidity","requestSubmit"])r()}return bs.get(e)}(t),n=!1,l=!1;a.addEventListener("before",(()=>{l=!0,i=new AbortController,n=!1,e.addEventListener("invalid",(()=>{n=!0}),{signal:i.signal})}),{signal:o}),a.addEventListener("after",(()=>{var e;l=!1,null===(e=i)||void 0===e||e.abort(),n||r()}),{signal:o}),t.addEventListener("submit",(()=>{l||r()}),{signal:o})}(this,e,(()=>{this[as](null)}),this[rs].signal))}}return i}var ls,ss,ds,cs,vs,ps,hs,us,fs,ms,bs=new WeakMap;class ys extends _r{computeValidity(e){return this.selectControl||(this.selectControl=document.createElement("select")),Te(ve(ls||(ls=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<option value=","></option>"])),e.value),this.selectControl),this.selectControl.value=e.value,this.selectControl.required=e.required,{validity:this.selectControl.validity,validationMessage:this.selectControl.validationMessage}}equals(e,t){return e.value===t.value&&e.required===t.required}copy(e){var{value:t,required:r}=e;return{value:t,required:r}}}function gs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _s(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function ws(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function n(e){_s(a,o,i,n,l,"next",e)}function l(e){_s(a,o,i,n,l,"throw",e)}n(void 0)}))}}function Os(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ks,zs,Cs=Symbol("value"),Es=ns(mr(xr(yt(Ie))));
2class js extends Es{get value(){return this[Cs]}set value(e){this.lastUserSetValue=e,this.select(e)}get options(){var e,t;return null!==(e=null===(t=this.menu)||void 0===t?void 0:t.items)&&void 0!==e?e:[]}get selectedIndex(){var e,t,[r,o]=null!==(e=(null!==(t=this.getSelectedOptions())&&void 0!==t?t:[])[0])&&void 0!==e?e:[];return null!=o?o:-1}set selectedIndex(e){this.lastUserSetSelectedIndex=e,this.selectIndex(e)}get selectedOptions(){var e;return(null!==(e=this.getSelectedOptions())&&void 0!==e?e:[]).map((e=>{var[t]=e;return t}))}get hasError(){return this.error||this.nativeError}constructor(){super(),this.quick=!1,this.required=!1,this.errorText="",this.label="",this.supportingText="",this.error=!1,this.menuPositioning="popover",this.clampMenuWidth=!1,this.typeaheadDelay=200,this.hasLeadingIcon=!1,this.displayText="",this.menuAlign="start",this[ms]="",this.lastUserSetValue=null,this.lastUserSetSelectedIndex=null,this.lastSelectedOption=null,this.lastSelectedOptionRecords=[],this.nativeError=!1,this.nativeErrorText="",this.focused=!1,this.open=!1,this.defaultFocus=Tn,this.prevOpen=this.open,this.selectWidth=0,this.addEventListener("focus",this.handleFocus.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}select(e){var t=this.options.find((t=>t.value===e));t&&this.selectItem(t)}selectIndex(e){var t=this.options[e];t&&this.selectItem(t)}reset(){for(var e of this.options)e.selected=e.hasAttribute("selected");this.updateValueAndDisplayText(),this.nativeError=!1,this.nativeErrorText=""}[(ms=Cs,ts)](e){null==e||e.preventDefault();var t,r=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,r===this.getErrorText()&&(null===(t=this.field)||void 0===t||t.reannounceError())}update(e){if(this.hasUpdated||this.initUserSelection(),this.prevOpen!==this.open&&this.open){var t=this.getBoundingClientRect();this.selectWidth=t.width}this.prevOpen=this.open,super.update(e)}render(){return ve(ss||(ss=Os(['\n <span\n class="select ','"\n @focusout=',">\n "," ","\n </span>\n "])),tt(this.getRenderClasses()),this.handleFocusout,this.renderField(),this.renderMenu())}firstUpdated(e){var t=()=>super.firstUpdated,r=this;return ws((function*(){var o;yield null===(o=r.menu)||void 0===o?void 0:o.updateComplete,r.lastSelectedOptionRecords.length||r.initUserSelection(),r.lastSelectedOptionRecords.length||r.options.length||setTimeout((()=>{r.updateValueAndDisplayText()})),t().call(r,e)}))()}getRenderClasses(){return{disabled:this.disabled,error:this.error,open:this.open}}renderField(){return sa(ds||(ds=Os(["\n <",'\n aria-haspopup="listbox"\n role="combobox"\n part="field"\n id="field"\n tabindex=',"\n aria-label=",'\n aria-describedby="description"\n aria-expanded=','\n aria-controls="listbox"\n class="field"\n label=',"\n .focused=","\n .populated=","\n .disabled=","\n .required=","\n .error=","\n ?has-start=","\n has-end\n supporting-text=","\n error-text=","\n @keydown=","\n @click=",">\n ",'\n <div id="description" slot="aria-describedby"></div>\n </',">"])),this.fieldTag,this.disabled?"-1":"0",this.ariaLabel||ue,this.open?"true":"false",this.label,this.focused||this.open,!!this.displayText,this.disabled,this.required,this.hasError,this.hasLeadingIcon,this.supportingText,this.getErrorText(),this.handleKeydown,this.handleClick,this.renderFieldContent(),this.fieldTag)}renderFieldContent(){return[this.renderLeadingIcon(),this.renderLabel(),this.renderTrailingIcon()]}renderLeadingIcon(){return ve(cs||(cs=Os(['\n <span class="icon leading" slot="start">\n <slot name="leading-icon" @slotchange=',"></slot>\n </span>\n "])),this.handleIconChange)}renderTrailingIcon(){return ve(vs||(vs=Os(['\n <span class="icon trailing" slot="end">\n <slot name="trailing-icon" @slotchange=','>\n <svg height="5" viewBox="7 10 10 5" focusable="false">\n <polygon\n class="down"\n stroke="none"\n fill-rule="evenodd"\n points="7 10 12 15 17 10"></polygon>\n <polygon\n class="up"\n stroke="none"\n fill-rule="evenodd"\n points="7 15 12 10 17 15"></polygon>\n </svg>\n </slot>\n </span>\n '])),this.handleIconChange)}renderLabel(){return ve(ps||(ps=Os(['<div id="label">',"</div>"])),this.displayText||ve(hs||(hs=Os([" "]))))}renderMenu(){var e=this.label||this.ariaLabel;return ve(us||(us=Os(['<div class="menu-wrapper">\n <md-menu\n id="listbox"\n .defaultFocus=','\n role="listbox"\n tabindex="-1"\n aria-label=','\n stay-open-on-focusout\n part="menu"\n exportparts="focus-ring: menu-focus-ring"\n anchor="field"\n style=',"\n .open=","\n .quick=","\n .positioning=","\n .typeaheadDelay=","\n .anchorCorner=","\n .menuCorner=","\n @opening=","\n @opened=","\n @closing=","\n @closed=","\n @close-menu=","\n @request-selection=","\n @request-deselection=",">\n ","\n </md-menu>\n </div>"])),this.defaultFocus,e||ue,wn({"--__menu-min-width":"".concat(this.selectWidth,"px"),"--__menu-max-width":this.clampMenuWidth?"".concat(this.selectWidth,"px"):void 0}),this.open,this.quick,this.menuPositioning,this.typeaheadDelay,"start"===this.menuAlign?"end-start":"end-end","start"===this.menuAlign?"start-start":"start-end",this.handleOpening,this.redispatchEvent,this.redispatchEvent,this.handleClosed,this.handleCloseMenu,this.handleRequestSelection,this.handleRequestDeselection,this.renderMenuContent())}renderMenuContent(){return ve(fs||(fs=Os(["<slot></slot>"])))}handleKeydown(e){if(!this.open&&!this.disabled&&this.menu){var t=this.menu.typeaheadController,r="Space"===e.code||"ArrowDown"===e.code||"ArrowUp"===e.code||"End"===e.code||"Home"===e.code||"Enter"===e.code;
2if(t.isTypingAhead||!r){if(1===e.key.length){var o,i;t.onKeydown(e),e.preventDefault();var{lastActiveRecord:a}=t;if(!a)return;null===(o=this.labelEl)||void 0===o||null===(i=o.setAttribute)||void 0===i||i.call(o,"aria-live","polite"),this.selectItem(a[1])&&this.dispatchInteractionEvents()}}else switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=Tn;break;case"End":this.defaultFocus=Rn;break;case"ArrowUp":case"Home":this.defaultFocus=In}}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&An(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;var e=this.menu.items;return this.lastSelectedOptionRecords=function(e){for(var t=[],r=0;r<e.length;r++){var o=e[r];o.selected&&t.push([o,r])}return t}(e),this.lastSelectedOptionRecords}getUpdateComplete(){var e=()=>super.getUpdateComplete,t=this;return ws((function*(){var r;return yield null===(r=t.menu)||void 0===r?void 0:r.updateComplete,e().call(t)}))()}updateValueAndDisplayText(){var e,t=null!==(e=this.getSelectedOptions())&&void 0!==e?e:[],r=!1;if(t.length){var[o]=t[0];r=this.lastSelectedOption!==o,this.lastSelectedOption=o,this[Cs]=o.value,this.displayText=o.displayText}else r=null!==this.lastSelectedOption,this.lastSelectedOption=null,this[Cs]="",this.displayText="";return r}handleOpening(e){var t=this;return ws((function*(){var r,o,i,a,n;if(null===(r=t.labelEl)||void 0===r||null===(o=r.removeAttribute)||void 0===o||o.call(r,"aria-live"),t.redispatchEvent(e),t.defaultFocus===Tn){var l=t.menu.items,s=null===(i=Da(l))||void 0===i?void 0:i.item,[d]=null!==(a=t.lastSelectedOptionRecords[0])&&void 0!==a?a:[null];s&&s!==d&&(s.tabIndex=-1),(d=null!==(n=d)&&void 0!==n?n:l[0])&&(d.tabIndex=0,d.focus())}}))()}redispatchEvent(e){sr(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){var t=e.detail.reason,r=e.detail.itemPath[0];this.open=!1;var o,i=!1;"click-selection"===t.kind||"keydown"===t.kind&&(o=t.key,Object.values(En).some((e=>e===o)))?i=this.selectItem(r):(r.tabIndex=-1,r.blur()),i&&this.dispatchInteractionEvents()}selectItem(e){var t;return(null!==(t=this.getSelectedOptions())&&void 0!==t?t:[]).forEach((t=>{var[r]=t;e!==r&&(r.selected=!1)})),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){var t=e.target;this.lastSelectedOptionRecords.some((e=>{var[r]=e;return r===t}))||this.selectItem(t)}handleRequestDeselection(e){var t=e.target;this.lastSelectedOptionRecords.some((e=>{var[r]=e;return r===t}))&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):null===this.lastUserSetSelectedIndex||this.lastSelectedOptionRecords.length?this.updateValueAndDisplayText():this.selectIndex(this.lastUserSetSelectedIndex)}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[yr](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}[vr](){return new ys((()=>this))}[pr](){return this.field}}ft(js),js.shadowRootOptions=xs(xs({},Ie.shadowRootOptions),{},{delegatesFocus:!0}),e([T({type:Boolean})],js.prototype,"quick",void 0),e([T({type:Boolean})],js.prototype,"required",void 0),e([T({type:String,attribute:"error-text"})],js.prototype,"errorText",void 0),e([T()],js.prototype,"label",void 0),e([T({type:String,attribute:"supporting-text"})],js.prototype,"supportingText",void 0),e([T({type:Boolean,reflect:!0})],js.prototype,"error",void 0),e([T({attribute:"menu-positioning"})],js.prototype,"menuPositioning",void 0),e([T({type:Boolean,attribute:"clamp-menu-width"})],js.prototype,"clampMenuWidth",void 0),e([T({type:Number,attribute:"typeahead-delay"})],js.prototype,"typeaheadDelay",void 0),e([T({type:Boolean,attribute:"has-leading-icon"})],js.prototype,"hasLeadingIcon",void 0),e([T({attribute:"display-text"})],js.prototype,"displayText",void 0),e([T({attribute:"menu-align"})],js.prototype,"menuAlign",void 0),e([T()],js.prototype,"value",null),e([T({type:Number,attribute:"selected-index"})],js.prototype,"selectedIndex",null),e([L()],js.prototype,"nativeError",void 0),e([L()],js.prototype,"nativeErrorText",void 0),e([L()],js.prototype,"focused",void 0),e([L()],js.prototype,"open",void 0),e([L()],js.prototype,"defaultFocus",void 0),e([B(".field")],js.prototype,"field",void 0),e([B("md-menu")],js.prototype,"menu",void 0),e([B("#label")],js.prototype,"labelEl",void 0),e([F({slot:"leading-icon",flatten:!0})],js.prototype,"leadingIcons",void 0);class Ps extends js{constructor(){super(...arguments),this.fieldTag=aa(ks||(ks=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["md-filled-field"])))}}var Ss,As,Ts,Is=c(zs||(zs=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-container-shape-start-start: var( --md-filled-select-text-field-container-shape-start-start, var( --md-filled-select-text-field-container-shape, 4px ) );--_text-field-container-shape-start-end: var( --md-filled-select-text-field-container-shape-start-end, var( --md-filled-select-text-field-container-shape, 4px ) );--_text-field-container-shape-end-end: var( --md-filled-select-text-field-container-shape-end-end, var( --md-filled-select-text-field-container-shape, 0px ) );--_text-field-container-shape-end-start: var( --md-filled-select-text-field-container-shape-end-start, var( --md-filled-select-text-field-container-shape, 0px ) );--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 3px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-filled-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-filled-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-filled-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-filled-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-filled-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-filled-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-filled-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-filled-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 24px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-filled-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-filled-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-filled-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-filled-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--
2_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--md-filled-field-active-indicator-color: var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height: var(--_text-field-active-indicator-height);--md-filled-field-container-color: var(--_text-field-container-color);--md-filled-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-filled-field-content-color: var(--_text-field-input-text-color);--md-filled-field-content-font: var(--_text-field-input-text-font);--md-filled-field-content-line-height: var(--_text-field-input-text-line-height);--md-filled-field-content-size: var(--_text-field-input-text-size);--md-filled-field-content-weight: var(--_text-field-input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color: var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_text-field-label-text-color);--md-filled-field-label-text-font: var(--_text-field-label-text-font);--md-filled-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-filled-field-label-text-size: var(--_text-field-label-text-size);--md-filled-field-label-text-weight: var(--_text-field-label-text-weight);--md-filled-field-leading-content-color: var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-filled-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-filled-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}/*# sourceMappingURL=filled-select-styles.css.map */\n"]))),Rs=c(Ss||(Ss=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{color:unset;min-width:210px;display:flex}.field{cursor:default;outline:none}.select{position:relative;flex-direction:column}.icon.trailing svg,.icon ::slotted(*){fill:currentColor}.icon ::slotted(*){width:inherit;height:inherit;font-size:inherit}.icon slot{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.icon.trailing :is(.up,.down){opacity:0;transition:opacity 75ms linear 75ms}.select:not(.open) .down,.select.open .up{opacity:1}.field,.select,md-menu{min-width:inherit;width:inherit;max-width:inherit;display:flex}md-menu{min-width:var(--__menu-min-width);max-width:var(--__menu-max-width, inherit)}.menu-wrapper{width:0px;height:0px;max-width:inherit}md-menu ::slotted(:not[disabled]){cursor:pointer}.field,.select{width:100%}:host{display:inline-flex}:host([disabled]){pointer-events:none}/*# sourceMappingURL=shared-styles.css.map */\n"]))),Ls=class extends Ps{};Ls.styles=[Rs,Is],Ls=e([t("md-filled-select")],Ls);class Ds extends js{constructor(){super(...arguments),this.fieldTag=aa(As||(As=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["md-outlined-field"])))}}var $s,Ms,Bs,Us,Ns,Fs=c(Ts||(Ts=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_text-field-container-shape: var(--md-outlined-select-text-field-container-shape, 4px);--_text-field-disabled-input-text-color: var(--md-outlined-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-outlined-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-outlined-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-outlined-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-outlined-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-outlined-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-outline-color: var(--md-outlined-select-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-outline-opacity: var(--md-outlined-select-text-field-disabled-outline-opacity, 0.12);--_text-field-disabled-outline-width: var(--md-outlined-select-text-field-disabled-outline-width, 1px);--_text-field-disabled-supporting-text-color: var(--md-outlined-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-outlined-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-outlined-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-outlined-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-focus-input-text-color: var(--md-outlined-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-outlined-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-outlined-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-outline-color: var(--md-outlined-select-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-supporting-text-color: var(--md-outlined-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-outlined-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-input-text-color: var(--md-outlined-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-outlined-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-outlined-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-outline-color: var(--md-outlined-select-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-supporting-text-color: var(--md-outlined-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-outlined-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-outlined-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-outlined-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-outlined-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-outline-color: var(--md-outlined-select-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-supporting-text-color: var(--md-outlined-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-outlined-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-input-text-color: var(--md-outlined-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-outlined-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-outlined-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-outline-color: var(--md-outlined-select-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-outline-width: var(--md-outlined-select-text-field-focus-outline-width, 3px);--_text-field-focus-supporting-text-color: var(--md-outlined-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-outlined-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-input-text-color: var(--md-outlined-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-outlined-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-outlined-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-outline-color: var(--md-outlined-select-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-outline-width: var(--md-outlined-select-text-field-hover-outline-width, 1px);--_text-field-hover-supporting-text-color: var(--md-outlined-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-outlined-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-outlined-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-outlined-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-outlined-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-outlined-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-outlined-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-outlined-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-outlined-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-outlined-selec
2t-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-outlined-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-outlined-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-outlined-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-outlined-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-outlined-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-outlined-select-text-field-leading-icon-size, 24px);--_text-field-outline-color: var(--md-outlined-select-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_text-field-outline-width: var(--md-outlined-select-text-field-outline-width, 1px);--_text-field-supporting-text-color: var(--md-outlined-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-outlined-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-outlined-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-outlined-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-outlined-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-outlined-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-outlined-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var( --md-outlined-select-text-field-container-shape-start-start, var(--_text-field-container-shape) );--_text-field-container-shape-start-end: var( --md-outlined-select-text-field-container-shape-start-end, var(--_text-field-container-shape) );--_text-field-container-shape-end-end: var( --md-outlined-select-text-field-container-shape-end-end, var(--_text-field-container-shape) );--_text-field-container-shape-end-start: var( --md-outlined-select-text-field-container-shape-end-start, var(--_text-field-container-shape) );--md-outlined-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-outlined-field-content-color: var(--_text-field-input-text-color);--md-outlined-field-content-font: var(--_text-field-input-text-font);--md-outlined-field-content-line-height: var(--_text-field-input-text-line-height);--md-outlined-field-content-size: var(--_text-field-input-text-size);--md-outlined-field-content-weight: var(--_text-field-input-text-weight);--md-outlined-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_text-field-disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_text-field-disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_text-field-disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_text-field-error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_text-field-error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_text-field-error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_text-field-error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_text-field-focus-outline-color);--md-outlined-field-focus-outline-width: var(--_text-field-focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_text-field-hover-outline-color);--md-outlined-field-hover-outline-width: var(--_text-field-hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_text-field-label-text-color);--md-outlined-field-label-text-font: var(--_text-field-label-text-font);--md-outlined-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-outlined-field-label-text-size: var(--_text-field-label-text-size);--md-outlined-field-label-text-weight: var(--_text-field-label-text-weight);--md-outlined-field-leading-content-color: var(--_text-field-leading-icon-color);--md-outlined-field-outline-color: var(--_text-field-outline-color);--md-outlined-field-outline-width: var(--_text-field-outline-width);--md-outlined-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-outlined-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-outlined-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}/*# sourceMappingURL=outlined-select-styles.css.map */\n"]))),qs=class extends Ds{};qs.styles=[Rs,Fs],qs=e([t("md-outlined-select")],qs);class Vs{get role(){return this.menuItemController.role}get typeaheadText(){return this.menuItemController.typeaheadText}setTypeaheadText(e){this.menuItemController.setTypeaheadText(e)}get displayText(){return null!==this.internalDisplayText?this.internalDisplayText:this.menuItemController.typeaheadText}
2setDisplayText(e){this.internalDisplayText=e}constructor(e,t){this.host=e,this.internalDisplayText=null,this.lastSelected=this.host.selected,this.firstUpdate=!0,this.onClick=()=>{this.menuItemController.onClick()},this.onKeydown=e=>{this.menuItemController.onKeydown(e)},this.menuItemController=new ll(e,t),e.addController(this)}hostUpdate(){this.lastSelected!==this.host.selected&&(this.host.ariaSelected=this.host.selected?"true":"false")}hostUpdated(){this.lastSelected===this.host.selected||this.firstUpdate||(this.host.selected?this.host.dispatchEvent(new Event("request-selection",{bubbles:!0,composed:!0})):this.host.dispatchEvent(new Event("request-deselection",{bubbles:!0,composed:!0}))),this.lastSelected=this.host.selected,this.firstUpdate=!1}}function Hs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Ks(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hs(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ws(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class Gs extends Ie{constructor(){super(...arguments),this.disabled=!1,this.isMenuItem=!0,this.selected=!1,this.value="",this.type="option",this.selectOptionController=new Vs(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.selectOptionController.typeaheadText}set typeaheadText(e){this.selectOptionController.setTypeaheadText(e)}get displayText(){return this.selectOptionController.displayText}set displayText(e){this.selectOptionController.setDisplayText(e)}render(){return this.renderListItem(ve($s||($s=Ws(['\n <md-item>\n <div slot="container">\n '," ",'\n </div>\n <slot name="start" slot="start"></slot>\n <slot name="end" slot="end"></slot>\n ',"\n </md-item>\n "])),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(e){return ve(Ms||(Ms=Ws(['\n <li\n id="item"\n tabindex=',"\n role=","\n aria-label=","\n aria-selected=","\n aria-checked=","\n aria-expanded=","\n aria-haspopup=",'\n class="list-item ','"\n @click=',"\n @keydown=","\n >","</li\n >\n "])),this.disabled?-1:0,this.selectOptionController.role,this.ariaLabel||ue,this.ariaSelected||ue,this.ariaChecked||ue,this.ariaExpanded||ue,this.ariaHasPopup||ue,tt(this.getRenderClasses()),this.selectOptionController.onClick,this.selectOptionController.onKeydown,e)}renderRipple(){return ve(Bs||(Bs=Ws([' <md-ripple\n part="ripple"\n for="item"\n ?disabled=',"></md-ripple>"])),this.disabled)}renderFocusRing(){return ve(Us||(Us=Ws([' <md-focus-ring\n part="focus-ring"\n for="item"\n inward></md-focus-ring>'])))}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return ve(Ns||(Ns=Ws(['\n <slot></slot>\n <slot name="overline" slot="overline"></slot>\n <slot name="headline" slot="headline"></slot>\n <slot name="supporting-text" slot="supporting-text"></slot>\n <slot\n name="trailing-supporting-text"\n slot="trailing-supporting-text"></slot>\n '])))}focus(){var e;null===(e=this.listItemRoot)||void 0===e||e.focus()}}ft(Gs),Gs.shadowRootOptions=Ks(Ks({},Ie.shadowRootOptions),{},{delegatesFocus:!0}),e([T({type:Boolean,reflect:!0})],Gs.prototype,"disabled",void 0),e([T({type:Boolean,attribute:"md-menu-item",reflect:!0})],Gs.prototype,"isMenuItem",void 0),e([T({type:Boolean})],Gs.prototype,"selected",void 0),e([T()],Gs.prototype,"value",void 0),e([B(".list-item")],Gs.prototype,"listItemRoot",void 0),e([F({slot:"headline"})],Gs.prototype,"headlineElements",void 0),e([F({slot:"supporting-text"})],Gs.prototype,"supportingTextElements",void 0),e([q({slot:""})],Gs.prototype,"defaultElements",void 0),e([T({attribute:"typeahead-text"})],Gs.prototype,"typeaheadText",null),e([T({attribute:"display-text"})],Gs.prototype,"displayText",null);var Xs,Ys=class extends Gs{};Ys.styles=[ul],Ys=e([t("md-select-option")],Ys);var Zs,Js,Qs,ed,td,rd,od=c(Xs||(Xs=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["@media(forced-colors: active){:host{--md-slider-active-track-color: CanvasText;--md-slider-disabled-active-track-color: GrayText;--md-slider-disabled-active-track-opacity: 1;--md-slider-disabled-handle-color: GrayText;--md-slider-disabled-inactive-track-color: GrayText;--md-slider-disabled-inactive-track-opacity: 1;--md-slider-focus-handle-color: CanvasText;--md-slider-handle-color: CanvasText;--md-slider-handle-shadow-color: Canvas;--md-slider-hover-handle-color: CanvasText;--md-slider-hover-state-layer-color: Canvas;--md-slider-hover-state-layer-opacity: 1;--md-slider-inactive-track-color: Canvas;--md-slider-label-container-color: Canvas;--md-slider-label-text-color: CanvasText;--md-slider-pressed-handle-color: CanvasText;--md-slider-pressed-state-layer-color: Canvas;--md-slider-pressed-state-layer-opacity: 1;--md-slider-with-overlap-handle-outline-color: CanvasText}.label,.label::before{border:var(--_with-overlap-handle-outline-color) solid var(--_with-overlap-handle-outline-width)}:host(:not([disabled])) .track::before{border:1px solid var(--_active-track-color)}.tickmarks::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='CanvasText'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3C/svg%3E\")}.tickmarks::after{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='Canvas'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3C/svg%3E\")}:host([disabled]) .tickmarks::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='Canvas'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3C/svg%3E\")}}/*# sourceMappingURL=forced-colors-styles.css.map */\n"])));function id(e,t,r){return e?t(e):null==r?void 0:r(e)}function ad(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}
2function nd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ad(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ld(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function sd(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function n(e){ld(a,o,i,n,l,"next",e)}function l(e){ld(a,o,i,n,l,"throw",e)}n(void 0)}))}}function dd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var cd,vd=xr(yt(Ie));class pd extends vd{get nameStart(){var e;return null!==(e=this.getAttribute("name-start"))&&void 0!==e?e:this.name}set nameStart(e){this.setAttribute("name-start",e)}get nameEnd(){var e;return null!==(e=this.getAttribute("name-end"))&&void 0!==e?e:this.nameStart}set nameEnd(e){this.setAttribute("name-end",e)}get renderAriaLabelStart(){var{ariaLabel:e}=this;return this.ariaLabelStart||e&&"".concat(e," start")||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){var{ariaLabel:e}=this;return this.range?this.ariaLabelEnd||e&&"".concat(e," end")||this.valueLabelEnd||String(this.valueEnd):e||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);var{ariaValueText:e}=this;return e||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",(e=>{Ot(e)&&this.inputEnd&&(this.focus(),wt(this.inputEnd))}))}focus(){var e;null===(e=this.inputEnd)||void 0===e||e.focus()}willUpdate(e){var t,r;this.renderValueStart=e.has("valueStart")?this.valueStart:null===(t=this.inputStart)||void 0===t?void 0:t.valueAsNumber;var o=e.has("valueEnd")&&this.range||e.has("value");this.renderValueEnd=o?this.range?this.valueEnd:this.value:null===(r=this.inputEnd)||void 0===r?void 0:r.valueAsNumber,void 0!==e.get("handleStartHover")?this.toggleRippleHover(this.rippleStart,this.handleStartHover):void 0!==e.get("handleEndHover")&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(e){if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){var t=(this.max-this.min)/3;if(void 0===this.valueStart){this.inputStart.valueAsNumber=this.min+t;var r=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=r}if(void 0===this.valueEnd){this.inputEnd.valueAsNumber=this.min+2*t;var o=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=o}}else{var i;null!==(i=this.value)&&void 0!==i||(this.value=this.renderValueEnd)}if(e.has("range")||e.has("renderValueStart")||e.has("renderValueEnd")||this.isUpdatePending){var a,n,l=null===(a=this.handleStart)||void 0===a?void 0:a.querySelector(".handleNub"),s=null===(n=this.handleEnd)||void 0===n?void 0:n.querySelector(".handleNub");this.handlesOverlapping=function(e,t){if(!e||!t)return!1;var r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return!(r.top>o.bottom||r.right<o.left||r.bottom<o.top||r.left>o.right)}(l,s)}this.performUpdate()}render(){var e,t,r,o,i=0===this.step?1:this.step,a=Math.max(this.max-this.min,i),n=this.range?((null!==(e=this.renderValueStart)&&void 0!==e?e:this.min)-this.min)/a:0,l=((null!==(t=this.renderValueEnd)&&void 0!==t?t:this.min)-this.min)/a,s={"--_start-fraction":String(n),"--_end-fraction":String(l),"--_tick-count":String(a
2/i)},d={ranged:this.range},c=this.valueLabelStart||String(this.renderValueStart),v=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),p={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:null!==(r=this.valueEnd)&&void 0!==r?r:this.max},h={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range&&null!==(o=this.valueStart)&&void 0!==o?o:this.min,ariaMax:this.max},u={start:!0,hover:this.handleStartHover,label:c},f={start:!1,hover:this.handleEndHover,label:v},m={hover:this.handleStartHover||this.handleEndHover};return ve(Zs||(Zs=dd([' <div\n class="container ','"\n style=',">\n ","\n "," ",'\n <div class="handleContainerPadded">\n <div class="handleContainerBlock">\n <div class="handleContainer ','">\n ',"\n ","\n </div>\n </div>\n </div>\n </div>"])),tt(d),wn(s),id(this.range,(()=>this.renderInput(p))),this.renderInput(h),this.renderTrack(),tt(m),id(this.range,(()=>this.renderHandle(u))),this.renderHandle(f))}renderTrack(){return ve(Js||(Js=dd(['\n <div class="track"></div>\n ',"\n "])),this.ticks?ve(Qs||(Qs=dd(['<div class="tickmarks"></div>']))):ue)}renderLabel(e){return ve(ed||(ed=dd(['<div class="label" aria-hidden="true">
2\n <span class="labelContent" part="label">',"</span>\n </div>"])),e)}renderHandle(e){var{start:t,hover:r,label:o}=e,i=!this.disabled&&t===this.startOnTop,a=!this.disabled&&this.handlesOverlapping,n=t?"start":"end";return ve(td||(td=dd(['<div\n class="handle ','">\n <md-focus-ring part="focus-ring" for=',"></md-focus-ring>\n <md-ripple\n for=","\n class=","\n ?disabled=",'></md-ripple>\n <div class="handleNub"><md-elevation></md-elevation></div>\n ',"\n </div>"])),tt({[n]:!0,hover:r,onTop:i,isOverlapping:a}),n,n,n,this.disabled,id(this.labeled,(()=>this.renderLabel(o))))}renderInput(e){var{start:t,value:r,ariaLabel:o,ariaValueText:i,ariaMin:a,ariaMax:n}=e,l=t?"start":"end";return ve(rd||(rd=dd(['<input\n type="range"\n class="','"\n @focus=',"\n @pointerdown=","\n @pointerup=","\n @pointerenter=","\n @pointermove=","\n @pointerleave=","\n @keydown=","\n @keyup=","\n @input=","\n @change=","\n id=","\n .disabled=","\n .min=","\n aria-valuemin=","\n .max=","\n aria-valuemax=","\n .step=","\n .value=","\n .tabIndex=","\n aria-label=","\n aria-valuetext="," />"])),tt({start:t,end:!t}),this.handleFocus,this.handleDown,this.handleUp,this.handleEnter,this.handleMove,this.handleLeave,this.handleKeydown,this.handleKeyup,this.handleInput,this.handleChange,l,this.disabled,String(this.min),a,String(this.max),n,String(this.step),String(r),t?1:0,o||ue,i)}toggleRippleHover(e,t){var r=this;return sd((function*(){var o=yield e;o&&(t?o.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:r.ripplePointerId})):o.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:r.ripplePointerId})))}))()}handleFocus(e){this.updateOnTop(e.target)}startAction(e){var t=e.target,r=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:"pointerdown"===e.type,flipped:!1,target:t,fixed:r,values:new Map([[t,t.valueAsNumber],[r,null==r?void 0:r.valueAsNumber]])}}finishAction(e){this.action=void 0}handleKeydown(e){this.startAction(e)}handleKeyup(e){this.finishAction(e)}handleDown(e){this.startAction(e),this.ripplePointerId=e.pointerId;var t=e.target===this.inputStart;this.handleStartHover=!this.disabled&&t&&Boolean(this.handleStart),this.handleEndHover=!this.disabled&&!t&&Boolean(this.handleEnd)}handleUp(e){var t=this;return sd((function*(){if(t.action){var{target:r,values:o,flipped:i}=t.action;yield new Promise(requestAnimationFrame),void 0!==r&&(r.focus(),i&&r.valueAsNumber!==o.get(r)&&r.dispatchEvent(new Event("change",{bubbles:!0}))),t.finishAction(e)}}))()}handleMove(e){this.handleStartHover=!this.disabled&&hd(e,this.handleStart),this.handleEndHover=!this.disabled&&hd(e,this.handleEnd)}handleEnter(e){this.handleMove(e)}handleLeave(){this.handleStartHover=!1,this.handleEndHover=!1}updateOnTop(e){this.startOnTop=e.classList.contains("start")}needsClamping(){if(!this.action)return!1;var{target:e,fixed:t}=this.action;return e===this.inputStart?e.valueAsNumber>t.valueAsNumber:e.valueAsNumber<t.valueAsNumber}isActionFlipped(){var{action:e}=this;if(!e)return!1;var{target:t,fixed:r,values:o}=e;return e.canFlip&&o.get(t)===o.get(r)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=r,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;var{target:e,fixed:t,values:r}=this.action,o=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=r.get(t),o}clampAction(){if(!this.needsClamping()||!this.action)return!1;var{target:e,fixed:t}=this.action;return e.valueAsNumber=t.valueAsNumber,!0}handleInput(e){if(!this.isRedispatchingEvent){var t=!1,r=!1;this.range&&(this.isActionFlipped()&&(t=!0,r=this.flipAction()),this.clampAction()&&(t=!0,r=!1));var o=e.target;this.updateOnTop(o),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),r&&(this.isRedispatchingEvent=!0,sr(o,e),this.isRedispatchingEvent=!1)}}handleChange(e){var t,r=e.target,{target:o,values:i}=null!==(t=this.action)&&void 0!==t?t:{};o&&o.valueAsNumber===i.get(r)||sr(this,e),this.finishAction(e)}[yr](){if(this.range){var e=new FormData;return e.append(this.nameStart,String(this.valueStart)),e.append(this.nameEnd,String(this.valueEnd)),e}return String(this.value)}formResetCallback(){if(this.range){var e=this.getAttribute("value-start");this.valueStart=null!==e?Number(e):void 0;var t=this.getAttribute("value-end");this.valueEnd=null!==t?Number(t):void 0}else{var r=this.getAttribute("value");this.value=null!==r?Number(r):void 0}}formStateRestoreCallback(e){if(Array.isArray(e)){var[[,t],[,r]]=e;return this.valueStart=Number(t),this.valueEnd=Number(r),void(this.range=!0)}this.value=Number(e),this.range=!1}}function hd(e,t){var{x:r,y:o}=e;if(!t)return!1;var{top:i,left:a,bottom:n,right:l}=t.getBoundingClientRect();return r>=a&&r<=l&&o>=i&&o<=n}ft(pd),pd.shadowRootOptions=nd(nd({},Ie.shadowRootOptions),{},{delegatesFocus:!0}),e([T({type:Number})],pd.prototype,"min",void 0),e([T({type:Number})],pd.prototype,"max",void 0),e([T({type:Number})],pd.prototype,"value",void 0),e([T({type:Number,attribute:"value-start"})],pd.prototype,"valueStart",void 0),e([T({type:Number,attribute:"value-end"})],pd.prototype,"valueEnd",void 0),e([T({attribute:"value-label"})],pd.prototype,"valueLabel",void 0),e([T({attribute:"value-label-start"})],pd.prototype,"valueLabelStart",void 0),e([T({attribute:"value-label-end"})],pd.prototype,"valueLabelEnd",void 0),e([T({attribute:"aria-label-start"})],pd.prototype,"ariaLabelStart",void 0),e([T({attribute:"aria-valuetext-start"})],pd.prototype,"ariaValueTextStart",void 0),e([T({attribute:"aria-label-end"})],pd.prototype,"ariaLabelEnd",void 0),e([T({attribute:"aria-valuetext-end"})],pd.prototype,"ariaValueTextEnd",void 0),e([T({type:Number})],pd.prototype,"step",void 0),e([T({type:Boolean})],pd.prototype,"ticks",void 0),e([T({type:Boolean})],pd.prototype,"labeled",void 0),e([T({type:Boolean})],pd.prototype,"range",void 0),e([B("input.start")],pd.prototype,"inputStart",void 0),e([B(".handle.start")],pd.prototype,"handleStart",void 0),e([N("md-ripple.start")],pd.prototype,"rippleStart",void 0),e([B("input.end")],pd.prototype,"inputEnd",void 0),e([B(".handle.end")],pd.prototype,"handleEnd",void 0),e([N("md-ripple.end")],pd.prototype,"rippleEnd",void 0),e([L()],pd.prototype,"handleStartHover",void 0),e([L()],pd.prototype,"handleEndHover",void 0),e([L()],pd.prototype,"startOnTop",void 0),e([L()],pd.prototype,"handlesOverlapping",void 0),e([L()],pd.prototype,"renderValueStart",void 0),e([L()],pd.prototype,"renderValueEnd",void 0);var ud,fd,md,bd,yd,gd,xd,_d,wd=c(cd||(cd=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{--_active-track-color: var(--md-slider-active-track-color, var(--md-sys-color-primary, #6750a4));--_active-track-height: var(--md-slider-active-track-height, 4px);--_active-track-shape: var(--md-slider-active-track-shape, 9999px);--_disabled-active-track-color: var(--md-slider-disabled-active-track-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-track-opacity: var(--md-slider-disabled-active-track-opacity, 0.38);--_disabled-handle-color: var(--md-slider-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-handle-elevation: var(--md-slider-disabled-handle-elevation, 0);--_disabled-inactive-track-color: var(--md-slider-disabled-inactive-track-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-inactive-track-opacity: var(--md-slider-disabled-inactive-track-opacity, 0.12);--_focus-handle-color: var(--md-slider-focus-handle-color, var(--md-sys-color-primary, #6750a4));--_handle-color: var(--md-slider-handle-color, var(--md-sys-color-primary, #6750a4));--_handle-elevation: var(--md-slider-handle-elevation, 1);--_handle-height: var(--md-slider-handle-height, 20px);--_handle-shadow-color: var(--md-slider-handle-shadow-color, var(--md-sys-color-shadow, #000));
2--_handle-shape: var(--md-slider-handle-shape, 9999px);--_handle-width: var(--md-slider-handle-width, 20px);--_hover-handle-color: var(--md-slider-hover-handle-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-slider-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-slider-hover-state-layer-opacity, 0.08);--_inactive-track-color: var(--md-slider-inactive-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_inactive-track-height: var(--md-slider-inactive-track-height, 4px);--_inactive-track-shape: var(--md-slider-inactive-track-shape, 9999px);--_label-container-color: var(--md-slider-label-container-color, var(--md-sys-color-primary, #6750a4));--_label-container-height: var(--md-slider-label-container-height, 28px);--_pressed-handle-color: var(--md-slider-pressed-handle-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-slider-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-slider-pressed-state-layer-opacity, 0.12);--_state-layer-size: var(--md-slider-state-layer-size, 40px);--_with-overlap-handle-outline-color: var(--md-slider-with-overlap-handle-outline-color, var(--md-sys-color-on-primary, #fff));--_with-overlap-handle-outline-width: var(--md-slider-with-overlap-handle-outline-width, 1px);--_with-tick-marks-active-container-color: var(--md-slider-with-tick-marks-active-container-color, var(--md-sys-color-on-primary, #fff));--_with-tick-marks-container-size: var(--md-slider-with-tick-marks-container-size, 2px);--_with-tick-marks-disabled-container-color: var(--md-slider-with-tick-marks-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_with-tick-marks-inactive-container-color: var(--md-slider-with-tick-marks-inactive-container-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-slider-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-slider-label-text-font, var(--md-sys-typescale-label-medium-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-slider-label-text-line-height, var(--md-sys-typescale-label-medium-line-height, 1rem));--_label-text-size: var(--md-slider-label-text-size, var(--md-sys-typescale-label-medium-size, 0.75rem));--_label-text-weight: var(--md-slider-label-text-weight, var(--md-sys-typescale-label-medium-weight, var(--md-ref-typeface-weight-medium, 500)));--_start-fraction: 0;--_end-fraction: 0;--_tick-count: 0;display:inline-flex;vertical-align:middle;min-inline-size:200px;--md-elevation-level: var(--_handle-elevation);--md-elevation-shadow-color: var(--_handle-shadow-color)}md-focus-ring{height:48px;inset:unset;width:48px}md-elevation{transition-duration:250ms}@media(prefers-reduced-motion){.label{transition-duration:0}}:host([disabled]){opacity:var(--_disabled-active-track-opacity);--md-elevation-level: var(--_disabled-handle-elevation)}.container{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_state-layer-size);pointer-events:none;touch-action:none}.track,.tickmarks{position:absolute;inset:0;display:flex;align-items:center}.track::before,.tickmarks::before,.track::after,.tickmarks::after{position:absolute;content:"";inset-inline-start:calc(var(--_state-layer-size)/2 - var(--_with-tick-marks-container-size));inset-inline-end:calc(var(--_state-layer-size)/2 - var(--_with-tick-marks-container-size));background-size:calc((100% - var(--_with-tick-marks-container-size)*2)/var(--_tick-count)) 100%}.track::before,.tickmarks::before{block-size:var(--_inactive-track-height);border-radius:var(--_inactive-track-shape)}.track::before{background-color:var(--_inactive-track-color)}.tickmarks::before{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-inactive-container-color) 0, var(--_with-tick-marks-inactive-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}:host([disabled]) .track::before{opacity:calc(1/var(--_disabled-active-track-opacity)*var(--_disabled-inactive-track-opacity));background-color:var(--_disabled-inactive-track-color)}.track::after,.tickmarks::after{block-size:var(--_active-track-height);border-radius:var(--_active-track-shape);clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))) 0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)))}.track::after{background-color:var(--_active-track-color)}.tickmarks::after{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-active-container-color) 0, var(--_with-tick-marks-active-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) .track::after,:host([dir=rtl]) .track::after{clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)) 0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))))}}.track:dir(rtl)::after{clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)) 0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))))}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) .tickmarks::after,:host([dir=rtl]) .tickmarks::after{clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)) 0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))))}}.tickmarks:dir(rtl)::after{clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)) 0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))))}:host([disabled]) .track::after{background-color:var(--_disabled-active-track-color)}:host([disabled]) .tickmarks::before{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-disabled-container-color) 0, var(--_with-tick-marks-disabled-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}.handleContainerPadded{position:relative;block-size:100%;inline-size:100%;padding-inline:calc(var(--_state-layer-size)/2)}.handleContainerBlock{position:relative;block-size:100%;inline-size:100%}.handleContainer{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100%*var(--_start-fraction));inline-size:calc(100%*(var(--_end-fraction) - var(--_start-fraction)))}.handle{position:absolute;block-size:var(--_state-layer-size);inline-size:var(--_state-layer-size);border-radius:var(--_handle-shape);display:flex;place-content:center;place-items:center}.handleNub{position:absolute;height:var(--_handle-height);width:var(--_handle-width);border-radius:var(--_handle-shape);background:var(--_handle-color)}:host([disabled]) .handleNub{background:var(--_disabled-handle-color)}input.end:focus~.handleContainerPadded .handle.end>.handleNub,input.start:focus~.handleContainerPadded .handle.start>.handleNub{background:var(--_focus-handle-color)}.container>.handleContainerPadded .handle.hover>.handleNub{background:var(--_hover-handle-color)}:host(:not([disabled])) input.end:active~.handleContainerPadded .handle.end>.handleNub,:host(:not([disabled])) input.start:active~.handleContainerPadded .handle.start>.handleNub{background:var(--_pressed-handle-color)}.onTop.isOverlapping .label,.onTop.isOverlapping .label::before{outline:var(--_with-overlap-handle-outline-color) solid var(--_with-overlap-handle-outline-width)}
2.onTop.isOverlapping .handleNub{border:var(--_with-overlap-handle-outline-color) solid var(--_with-overlap-handle-outline-width)}.handle.start{inset-inline-start:calc(0px - var(--_state-layer-size)/2)}.handle.end{inset-inline-end:calc(0px - var(--_state-layer-size)/2)}.label{position:absolute;box-sizing:border-box;display:flex;padding:4px;place-content:center;place-items:center;border-radius:9999px;color:var(--_label-text-color);font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);inset-block-end:100%;min-inline-size:var(--_label-container-height);min-block-size:var(--_label-container-height);background:var(--_label-container-color);transition:transform 100ms cubic-bezier(0.2, 0, 0, 1);transform-origin:center bottom;transform:scale(0)}:host(:focus-within) .label,.handleContainer.hover .label,:where(:has(input:active)) .label{transform:scale(1)}.label::before,.label::after{position:absolute;display:block;content:"";background:inherit}.label::before{inline-size:calc(var(--_label-container-height)/2);block-size:calc(var(--_label-container-height)/2);bottom:calc(var(--_label-container-height)/-10);transform:rotate(45deg)}.label::after{inset:0px;border-radius:inherit}.labelContent{z-index:1}input[type=range]{opacity:0;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:rgba(0,0,0,0);cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:none}::-webkit-slider-runnable-track{-webkit-appearance:none}::-moz-range-track{appearance:none}::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_handle-height);inline-size:var(--_handle-width);opacity:0;z-index:2}input.end::-webkit-slider-thumb{--_track-and-knob-padding: calc( (var(--_state-layer-size) - var(--_handle-width)) / 2 );--_x-translate: calc( var(--_track-and-knob-padding) - 2 * var(--_end-fraction) * var(--_track-and-knob-padding) );transform:translateX(var(--_x-translate))}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) input.end::-webkit-slider-thumb,:host([dir=rtl]) input.end::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--_x-translate)))}}input.end:dir(rtl)::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--_x-translate)))}input.start::-webkit-slider-thumb{--_track-and-knob-padding: calc( (var(--_state-layer-size) - var(--_handle-width)) / 2 );--_x-translate: calc( var(--_track-and-knob-padding) - 2 * var(--_start-fraction) * var(--_track-and-knob-padding) );transform:translateX(var(--_x-translate))}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) input.start::-webkit-slider-thumb,:host([dir=rtl]) input.start::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--_x-translate)))}}input.start:dir(rtl)::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--_x-translate)))}::-moz-range-thumb{appearance:none;block-size:var(--_state-layer-size);inline-size:var(--_state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.ranged input.start{clip-path:inset(0 calc(100% - (var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2))) 0 0)}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) .ranged input.start,:host([dir=rtl]) .ranged input.start{clip-path:inset(0 0 0 calc(100% - (var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2))))}}.ranged input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2))))}.ranged input.end{clip-path:inset(0 0 0 calc(var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2)))}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) .ranged input.end,:host([dir=rtl]) .ranged input.end{clip-path:inset(0 calc(var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2)) 0 0)}}.ranged input.end:dir(rtl){clip-path:inset(0 calc(var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2)) 0 0)}.onTop{z-index:1}.handle{--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-ripple{border-radius:50%;height:var(--_state-layer-size);width:var(--_state-layer-size)}/*# sourceMappingURL=slider-styles.css.map */\n']))),Od=class extends pd{};function kd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Od.styles=[wd,od],Od=e([t("md-slider")],Od);var zd,Cd=mr(xr(yt(Ie)));class Ed extends Cd{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",(e=>{Ot(e)&&this.input&&(this.focus(),wt(this.input))}))}render(){return ve(ud||(ud=kd(['\n <div class="switch ','">\n <input\n id="switch"\n class="touch"\n type="checkbox"\n role="switch"\n aria-label=',"\n ?checked=","\n ?disabled=","\n ?required=","\n @change=",' />\n\n <md-focus-ring part="focus-ring" for="switch"></md-focus-ring>
2\n <span class="track"> '," </span>\n </div>\n "])),tt(this.getRenderClasses()),this.ariaLabel||ue,this.selected,this.disabled,this.required,this.handleChange,this.renderHandle())}getRenderClasses(){return{selected:this.selected,unselected:!this.selected,disabled:this.disabled}}renderHandle(){var e={"with-icon":this.showOnlySelectedIcon?this.selected:this.icons};return ve(fd||(fd=kd(["\n ",'\n <span class="handle-container">\n <md-ripple for="switch" ?disabled="','"></md-ripple>\n <span class="handle ','">\n ',"\n </span>\n </span>\n "])),this.renderTouchTarget(),this.disabled,tt(e),this.shouldShowIcons()?this.renderIcons():ve(md||(md=kd([""]))))}renderIcons(){return ve(bd||(bd=kd(['\n <div class="icons">\n ',"\n ","\n </div>\n "])),this.renderOnIcon(),this.showOnlySelectedIcon?ve(yd||(yd=kd([""]))):this.renderOffIcon())}renderOnIcon(){return ve(gd||(gd=kd(['\n <slot class="icon icon--on" name="on-icon">\n <svg viewBox="0 0 24 24">\n <path\n d="M9.55 18.2 3.65 12.3 5.275 10.675 9.55 14.95 18.725 5.775 20.35 7.4Z" />\n </svg>\n </slot>\n '])))}renderOffIcon(){return ve(xd||(xd=kd(['\n <slot class="icon icon--off" name="off-icon">\n <svg viewBox="0 0 24 24">\n <path\n d="M6.4 19.2 4.8 17.6 10.4 12 4.8 6.4 6.4 4.8 12 10.4 17.6 4.8 19.2 6.4 13.6 12 19.2 17.6 17.6 19.2 12 13.6Z" />\n </svg>\n </slot>\n '])))}renderTouchTarget(){return ve(_d||(_d=kd(['<span class="touch"></span>'])))}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleChange(e){var t=e.target;this.selected=t.checked,sr(this,e)}[yr](){return this.selected?this.value:null}[gr](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected="true"===e}[vr](){return new wr((()=>({checked:this.selected,required:this.required})))}[pr](){return this.input}}ft(Ed),Ed.shadowRootOptions={mode:"open",delegatesFocus:!0},e([T({type:Boolean})],Ed.prototype,"selected",void 0),e([T({type:Boolean})],Ed.prototype,"icons",void 0),e([T({type:Boolean,attribute:"show-only-selected-icon"})],Ed.prototype,"showOnlySelectedIcon",void 0),e([T({type:Boolean})],Ed.prototype,"required",void 0),e([T()],Ed.prototype,"value",void 0),e([B("input")],Ed.prototype,"input",void 0);var jd,Pd,Sd,Ad=c(zd||(zd=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['@layer styles, hcm;@layer styles{:host{display:inline-flex;outline:none;vertical-align:top;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-switch-track-height, 32px))/2) 0px}md-focus-ring{--md-focus-ring-shape-start-start: var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, 9999px));--md-focus-ring-shape-start-end: var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, 9999px));--md-focus-ring-shape-end-end: var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, 9999px));--md-focus-ring-shape-end-start: var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, 9999px))}.switch{align-items:center;display:inline-flex;flex-shrink:0;position:relative;width:var(--md-switch-track-width, 52px);height:var(--md-switch-track-height, 32px);border-start-start-radius:var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, 9999px));border-start-end-radius:var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, 9999px));border-end-end-radius:var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, 9999px));border-end-start-radius:var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, 9999px))}input{appearance:none;height:48px;outline:none;margin:0;position:absolute;width:100%;z-index:1;cursor:inherit}:host([touch-target=none]) input{display:none}}@layer styles{.track{position:absolute;width:100%;height:100%;box-sizing:border-box;border-radius:inherit;display:flex;justify-content:center;align-items:center}.track::before{content:"";display:flex;position:absolute;height:100%;width:100%;border-radius:inherit;box-sizing:border-box;transition-property:opacity,background-color;transition-timing-function:linear;transition-duration:67ms}.disabled .track{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.disabled .track::before,.disabled .track::after{transition:none;opacity:var(--md-switch-disabled-track-opacity, 0.12)}.disabled .track::before{background-clip:content-box}.selected .track::before{background-color:var(--md-switch-selected-track-color, var(--md-sys-color-primary, #6750a4))}.selected:hover .track::before{background-color:var(--md-switch-selected-hover-track-color, var(--md-sys-color-primary, #6750a4))}.selected:focus-within .track::before{background-color:var(--md-switch-selected-focus-track-color, var(--md-sys-color-primary, #6750a4))}.selected:active .track::before{background-color:var(--md-switch-selected-pressed-track-color, var(--md-sys-color-primary, #6750a4))}.selected.disabled .track{background-clip:border-box}.selected.disabled .track::before{background-color:var(--md-switch-disabled-selected-track-color, var(--md-sys-color-on-surface, #1d1b20))}.unselected .track::before{background-color:var(--md-switch-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-track-outline-color, var(--md-sys-color-outline, #79747e));border-style:solid;border-width:var(--md-switch-track-outline-width, 2px)}.unselected:hover .track::before{background-color:var(--md-switch-hover-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-hover-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:focus-visible .track::before{background-color:var(--md-switch-focus-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-focus-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:active .track::before{background-color:var(--md-switch-pressed-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-pressed-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected.disabled .track::before{background-color:var(--md-switch-disabled-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-disabled-track-outline-color, var(--md-sys-color-on-surface, #1d1b20))}}@layer hcm{@media(forced-colors: active){.selected .track::before{background:ButtonText;border-color:ButtonText}.disabled .track::before{border-color:GrayText;opacity:1}.disabled.selected .track::before{background:GrayText}}}@layer styles{.handle-container{display:flex;place-content:center;place-items:center;position:relative;transition:margin 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.selected .handle-container{margin-inline-start:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.unselected .handle-container{margin-inline-end:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.disabled .handle-container{transition:none}.handle{border-start-start-radius:var(--md-switch-handle-shape-start-start, var(--md-switch-handle-shape, 9999px));border-start-end-radius:var(--md-switch-handle-shape-start-end, var(--md-switch-handle-shape, 9999px));border-end-end-radius:var(--md-switch-handle-shape-end-end, var(--md-switch-handle-shape, 9999px));border-end-start-radius:var(--md-switch-handle-shape-end-start, var(--md-switch-handle-shape, 9999px));height:var(--md-switch-handle-height, 16px);width:var(--md-switch-handle-width, 16px);transform-origin:center;transition-property:height,width;transition-duration:250ms,250ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1),cubic-bezier(0.2, 0, 0, 1);z-index:0}.handle::before{content:"";display:flex;inset:0;position:absolute;border-radius:inherit;box-sizing:border-box;transition:background-color 67ms linear}.disabled .handle,.disabled .handle::before{transition:none}.selected .handle{height:var(--md-switch-selected-handle-height, 24px);width:var(--md-switch-selected-handle-width, 24px)}.handle.with-icon{height:var(--md-switch-with-icon-handle-height, 24px);width:var(--md-switch-with-icon-handle-width, 24px)}.selected:not(.disabled):active .handle,.unselected:not(.disabled):active .handle{height:var(--md-switch-pressed-handle-height, 28px);width:var(--md-switch-pressed-handle-width, 28px);transition-timing-function:linear;transition-duration:100ms}.selected .handle::before{background-color:var(--md-switch-selected-handle-color, var(--md-sys-color-on-primary, #fff))}.selected:hover .handle::before{background-color:var(--md-switch-selected-hover-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:focus-within .handle::before{background-color:var(--md-switch-selected-focus-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:active .handle::before{background-color:var(--md-switch-selected-pressed-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected.disabled .handle::before{background-color:var(--md-switch-disabled-selected-handle-color, var(--md-sys-color-surface, #fef7ff));opacity:var(--md-switch-disabled-selected-handle-opacity, 1)}.unselected .handle::before{background-color:var(--md-switch-handle-color, var(--md-sys-color-outline, #79747e))}.unselected:hover .handle::before{background-color:var(--md-switch-hover-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:focus-within .handle::before{background-color:var(--md-switch-focus-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:active .handle::before{background-color:var(--md-switch-pressed-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected.disabled .handle::before{background-color:var(--md-switch-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-handle-opacity, 0.38)}md-ripple{border-radius:var(--md-switch-state-layer-shape, 9999px);height:var(--md-switch-state-layer-size, 40px);inset:unset;width:var(--md-switch-state-layer-size, 40px)}.selected md-ripple{--md-ripple-hover-color: var(--md-switch-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-color: var(--md-switch-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-switch-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-selected-pressed-state-layer-opacity, 0.12)}.unselected md-ripple{--md-ripple-hover-color: var(--md-switch-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-color: var(--md-switch-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-switch-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-pressed-state-layer-opacity, 0.12)}}@layer hcm{@media(forced-colors: active){.unselected .handle::before{background:ButtonText}.disabled .handle::before{opacity:1}.disabled.unselected .handle::before{background:GrayText}}}@layer styles{.icons{position:relative;height:100%;width:100%}.icon{position:absolute;inset:0;margin:auto;display:flex;align-items:center;justify-content:center;fill:currentColor;transition:fill 67ms linear,opacity 33ms linear,transform 167ms cubic-bezier(0.2, 0, 0, 1);opacity:0}
2.disabled .icon{transition:none}.selected .icon--on,.unselected .icon--off{opacity:1}.unselected .handle:not(.with-icon) .icon--on{transform:rotate(-45deg)}.icon--off{width:var(--md-switch-icon-size, 16px);height:var(--md-switch-icon-size, 16px);color:var(--md-switch-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:hover .icon--off{color:var(--md-switch-hover-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:focus-within .icon--off{color:var(--md-switch-focus-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:active .icon--off{color:var(--md-switch-pressed-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected.disabled .icon--off{color:var(--md-switch-disabled-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9));opacity:var(--md-switch-disabled-icon-opacity, 0.38)}.icon--on{width:var(--md-switch-selected-icon-size, 16px);height:var(--md-switch-selected-icon-size, 16px);color:var(--md-switch-selected-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:hover .icon--on{color:var(--md-switch-selected-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:focus-within .icon--on{color:var(--md-switch-selected-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:active .icon--on{color:var(--md-switch-selected-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected.disabled .icon--on{color:var(--md-switch-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon--off{fill:Canvas}.icon--on{fill:ButtonText}.disabled.unselected .icon--off,.disabled.selected .icon--on{opacity:1}.disabled .icon--on{fill:GrayText}}}/*# sourceMappingURL=switch-styles.css.map */\n']))),Td=class extends Ed{};function Id(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function Rd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Td.styles=[Ad],Td=e([t("md-switch")],Td);var Ld,Dd=Symbol("indicator"),$d=Symbol("animateIndicator"),Md=ql(Ie);class Bd extends Md{get selected(){return this.active}set selected(e){this.active=e}constructor(){super(),this.isTab=!0,this.active=!1,this.hasIcon=!1,this.iconOnly=!1,this.fullWidthIndicator=!1,this.internals=this.attachInternals(),this.internals.role="tab",this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){var e=ve(jd||(jd=Rd(['<div class="indicator"></div>'])));return ve(Pd||(Pd=Rd(['<div\n class="button"\n role="presentation"\n @click=','>\n <md-focus-ring part="focus-ring" inward .control=',"></md-focus-ring>\n <md-elevation></md-elevation>\n <md-ripple .control=",'></md-ripple>\n <div\n class="content ','"\n role="presentation">\n <slot name="icon" @slotchange=',"></slot>\n <slot @slotchange=","></slot>\n ","\n </div>\n ","\n </div>"])),this.handleContentClick,this,this,tt(this.getContentClasses()),this.handleIconSlotChange,this.handleSlotChange,this.fullWidthIndicator?ue:e,this.fullWidthIndicator?e:ue)}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}handleKeydown(e){var t,r=this;return(t=function*(){yield 0,e.defaultPrevented||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r.click())},function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function n(e){Id(a,o,i,n,l,"next",e)}function l(e){Id(a,o,i,n,l,"throw",e)}n(void 0)}))})()}handleContentClick(e){e.stopPropagation(),this.click()}[(Sd=Dd,$d)](e){if(this[Dd]){this[Dd].getAnimations().forEach((e=>{e.cancel()}));var t=this.getKeyframes(e);null!==t&&this[Dd].animate(t,{duration:250,easing:ot})}}getKeyframes(e){var t,r,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!this.active)return o?[{opacity:1},{transform:"none"}]:null;var i={},a=null!==(t=null===(r=e[Dd])||void 0===r?void 0:r.getBoundingClientRect())&&void 0!==t?t:{},n=a.left,l=a.width,s=this[Dd].getBoundingClientRect(),d=s.left,c=l/s.width;return o||void 0===n||void 0===d||isNaN(c)?i.opacity=0:i.transform="translateX(".concat((n-d).toFixed(4),"px) scaleX(").concat(c.toFixed(4),")"),[i,{transform:"none"}]}
2handleSlotChange(){for(var e of(this.iconOnly=!1,this.assignedDefaultNodes)){var t=e.nodeType===Node.TEXT_NODE&&!!e.wholeText.match(/\S/);if(e.nodeType===Node.ELEMENT_NODE||t)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}}function Ud(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Nd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ud(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}e([T({type:Boolean,reflect:!0,attribute:"md-tab"})],Bd.prototype,"isTab",void 0),e([T({type:Boolean,reflect:!0})],Bd.prototype,"active",void 0),e([T({type:Boolean})],Bd.prototype,"selected",null),e([T({type:Boolean,attribute:"has-icon"})],Bd.prototype,"hasIcon",void 0),e([T({type:Boolean,attribute:"icon-only"})],Bd.prototype,"iconOnly",void 0),e([B(".indicator")],Bd.prototype,Sd,void 0),e([L()],Bd.prototype,"fullWidthIndicator",void 0),e([q({flatten:!0})],Bd.prototype,"assignedDefaultNodes",void 0),e([F({slot:"icon",flatten:!0})],Bd.prototype,"assignedIcons",void 0);class Fd extends Bd{constructor(){super(...arguments),this.inlineIcon=!1}getContentClasses(){return Nd(Nd({},super.getContentClasses()),{},{stacked:!this.inlineIcon})}}e([T({type:Boolean,attribute:"inline-icon"})],Fd.prototype,"inlineIcon",void 0);var qd,Vd,Hd=c(Ld||(Ld=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_active-indicator-color: var(--md-primary-tab-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-primary-tab-active-indicator-height, 3px);--_active-indicator-shape: var(--md-primary-tab-active-indicator-shape, 3px 3px 0px 0px);--_active-hover-state-layer-color: var(--md-primary-tab-active-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_active-hover-state-layer-opacity: var(--md-primary-tab-active-hover-state-layer-opacity, 0.08);--_active-pressed-state-layer-color: var(--md-primary-tab-active-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_active-pressed-state-layer-opacity: var(--md-primary-tab-active-pressed-state-layer-opacity, 0.12);--_container-color: var(--md-primary-tab-container-color, var(--md-sys-color-surface, #fef7ff));--_container-elevation: var(--md-primary-tab-container-elevation, 0);--_container-height: var(--md-primary-tab-container-height, 48px);--_container-shape: var(--md-primary-tab-container-shape, 0px);--_with-icon-and-label-text-container-height: var(--md-primary-tab-with-icon-and-label-text-container-height, 64px);--_hover-state-layer-color: var(--md-primary-tab-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-primary-tab-hover-state-layer-opacity, 0.08);--_pressed-state-layer-color: var(--md-primary-tab-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-primary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--md-primary-tab-active-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_active-hover-icon-color: var(--md-primary-tab-active-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_active-icon-color: var(--md-primary-tab-active-icon-color, var(--md-sys-color-primary, #6750a4));--_active-pressed-icon-color: var(--md-primary-tab-active-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-primary-tab-icon-size, 24px);--_focus-icon-color: var(--md-primary-tab-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--md-primary-tab-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-color: var(--md-primary-tab-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-primary-tab-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-primary-tab-label-text-font, var(--md-sys-typescale-title-small-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-primary-tab-label-text-line-height, var(--md-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--md-primary-tab-label-text-size, var(--md-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--md-primary-tab-label-text-weight, var(--md-sys-typescale-title-small-weight, var(--md-ref-typeface-weight-medium, 500)));--_active-focus-label-text-color: var(--md-primary-tab-active-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_active-hover-label-text-color: var(--md-primary-tab-active-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_active-label-text-color: var(--md-primary-tab-active-label-text-color, var(--md-sys-color-primary, #6750a4));--_active-pressed-label-text-color: var(--md-primary-tab-active-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-label-text-color: var(--md-primary-tab-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-primary-tab-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-color: var(--md-primary-tab-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--md-primary-tab-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var( --md-primary-tab-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-primary-tab-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-primary-tab-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-primary-tab-container-shape-end-start, var(--_container-shape) )}.content.stacked{flex-direction:column;gap:2px}.content.stacked.has-icon.has-label{height:var(--_with-icon-and-label-text-container-height)}/*# sourceMappingURL=primary-tab-styles.css.map */\n"]))),Kd=c(qd||(qd=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([':host{display:inline-flex;align-items:center;justify-content:center;outline:none;padding:0 16px;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:middle;user-select:none;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);color:var(--_label-text-color);z-index:0;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);--md-elevation-level: var(--_container-elevation)}md-focus-ring{--md-focus-ring-shape: 8px}:host([active]) md-focus-ring{margin-bottom:calc(var(--_active-indicator-height) + 1px)}.button::before{background:var(--_container-color);content:"";inset:0;position:absolute;z-index:-1}.button::before,md-ripple,md-elevation{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start)}.content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;height:var(--_container-height);gap:8px}.indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_active-indicator-color);border-radius:var(--_active-indicator-shape);height:var(--_active-indicator-height);inset:auto 0 0 0;opacity:0}
2::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_icon-color);font-size:var(--_icon-size);width:var(--_icon-size);height:var(--_icon-size)}:host(:hover){color:var(--_hover-label-text-color);cursor:pointer}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus){color:var(--_focus-label-text-color)}:host(:focus) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active){color:var(--_pressed-label-text-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([active]) .indicator{opacity:1}:host([active]){color:var(--_active-label-text-color);--md-ripple-hover-color: var(--_active-hover-state-layer-color);--md-ripple-hover-opacity: var(--_active-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_active-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_active-pressed-state-layer-opacity)}:host([active]) ::slotted([slot=icon]){color:var(--_active-icon-color)}:host([active]:hover){color:var(--_active-hover-label-text-color)}:host([active]:hover) ::slotted([slot=icon]){color:var(--_active-hover-icon-color)}:host([active]:focus){color:var(--_active-focus-label-text-color)}:host([active]:focus) ::slotted([slot=icon]){color:var(--_active-focus-icon-color)}:host([active]:active){color:var(--_active-pressed-label-text-color)}:host([active]:active) ::slotted([slot=icon]){color:var(--_active-pressed-icon-color)}:host,::slotted(*){white-space:nowrap}@media(forced-colors: active){.indicator{background:CanvasText}}/*# sourceMappingURL=tab-styles.css.map */\n']))),Wd=class extends Fd{};Wd.styles=[Kd,Hd],Wd=e([t("md-primary-tab")],Wd);class Gd extends Bd{constructor(){super(...arguments),this.fullWidthIndicator=!0}}var Xd,Yd,Zd=c(Vd||(Vd=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_active-indicator-color: var(--md-secondary-tab-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-secondary-tab-active-indicator-height, 2px);--_active-label-text-color: var(--md-secondary-tab-active-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_container-color: var(--md-secondary-tab-container-color, var(--md-sys-color-surface, #fef7ff));--_container-elevation: var(--md-secondary-tab-container-elevation, 0);--_container-height: var(--md-secondary-tab-container-height, 48px);--_container-shape: var(--md-secondary-tab-container-shape, 0px);--_focus-label-text-color: var(--md-secondary-tab-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-secondary-tab-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--md-secondary-tab-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-secondary-tab-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-secondary-tab-label-text-font, var(--md-sys-typescale-title-small-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-secondary-tab-label-text-line-height, var(--md-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--md-secondary-tab-label-text-size, var(--md-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--md-secondary-tab-label-text-weight, var(--md-sys-typescale-title-small-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-secondary-tab-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-secondary-tab-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--md-secondary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--md-secondary-tab-active-focus-icon-color, );--_active-focus-label-text-color: var(--md-secondary-tab-active-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_active-hover-icon-color: var(--md-secondary-tab-active-hover-icon-color, );--_active-hover-label-text-color: var(--md-secondary-tab-active-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-color: var(--md-secondary-tab-active-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-opacity: var(--md-secondary-tab-active-hover-state-layer-opacity, 0.08);--_active-icon-color: var(--md-secondary-tab-active-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_active-indicator-shape: var(--md-secondary-tab-active-indicator-shape, 0);--_active-pressed-icon-color: var(--md-secondary-tab-active-pressed-icon-color, );--_active-pressed-label-text-color: var(--md-secondary-tab-active-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-color: var(--md-secondary-tab-active-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-opacity: var(--md-secondary-tab-active-pressed-state-layer-opacity, 0.12);--_label-text-color: var(--md-secondary-tab-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-icon-color: var(--md-secondary-tab-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--md-secondary-tab-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-secondary-tab-icon-size, 24px);--_icon-color: var(--md-secondary-tab-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-secondary-tab-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var( --md-secondary-tab-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-secondary-tab-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-secondary-tab-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-secondary-tab-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=secondary-tab-styles.css.map */\n"]))),Jd=class extends Gd{};function Qd(e,t,r,o,i,a,n){try{var l=e[a](n),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(o,i)}function ec(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);
2function n(e){Qd(a,o,i,n,l,"next",e)}function l(e){Qd(a,o,i,n,l,"throw",e)}n(void 0)}))}}Jd.styles=[Kd,Zd],Jd=e([t("md-secondary-tab")],Jd);class tc extends Ie{get activeTab(){var e;return null!==(e=this.tabs.find((e=>e.active)))&&void 0!==e?e:null}set activeTab(e){e&&this.activateTab(e)}get activeTabIndex(){return this.tabs.findIndex((e=>e.active))}set activeTabIndex(e){var t=()=>{var t=this.tabs[e];t&&this.activateTab(t)};this.slotElement?t():this.updateComplete.then(t)}get focusedTab(){return this.tabs.find((e=>e.matches(":focus-within")))}constructor(){super(),this.autoActivate=!1,this.internals=this.attachInternals(),this.internals.role="tablist",this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("keyup",this.handleKeyup.bind(this)),this.addEventListener("focusout",this.handleFocusout.bind(this))}scrollToTab(e){var t=this;return ec((function*(){var r;yield t.updateComplete;var{tabs:o}=t;if(null!==(r=e)&&void 0!==r||(e=t.activeTab),e&&o.includes(e)&&t.tabsScrollerElement){for(var i of t.tabs)yield i.updateComplete;var a=e.offsetLeft,n=e.offsetWidth,l=t.scrollLeft,s=a-48,d=a+n-t.offsetWidth+48,c=Math.min(s,Math.max(d,l)),v=t.focusedTab?"instant":"smooth";t.tabsScrollerElement.scrollTo({behavior:v,top:0,left:c})}}))()}render(){return ve(Xd||(Xd=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="tabs">\n <slot\n @slotchange=',"\n @click=",'></slot>\n </div>\n <md-divider part="divider"></md-divider>\n '])),this.handleSlotChange,this.handleTabClick)}handleTabClick(e){var t=this;return ec((function*(){var r,o=e.target;yield 0,e.defaultPrevented||!((r=o)instanceof HTMLElement&&r.hasAttribute("md-tab"))||o.active||t.activateTab(o)}))()}activateTab(e){var{tabs:t}=this,r=this.activeTab;if(t.includes(e)&&r!==e){for(var o of t)o.active=o===e;if(r){if(!this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))){for(var i of t)i.active=i===r;return}e[$d](r)}this.updateFocusableTab(e),this.scrollToTab(e)}}updateFocusableTab(e){for(var t of this.tabs)t.tabIndex=t===e?0:-1}handleKeydown(e){var t=this;return ec((function*(){yield 0;var r="ArrowLeft"===e.key,o="ArrowRight"===e.key,i="Home"===e.key,a="End"===e.key;if(!e.defaultPrevented&&(r||o||i||a)){var{tabs:n}=t;if(!(n.length<2)){var l;if(e.preventDefault(),i||a)l=i?0:n.length-1;else{var s="rtl"===getComputedStyle(t).direction?r:o,{focusedTab:d}=t;if(d){var c=t.tabs.indexOf(d);(l=s?c+1:c-1)>=n.length?l=0:l<0&&(l=n.length-1)}else l=s?0:n.length-1}var v=n[l];v.focus(),t.autoActivate?t.activateTab(v):t.updateFocusableTab(v)}}}))()}handleKeyup(){var e;this.scrollToTab(null!==(e=this.focusedTab)&&void 0!==e?e:this.activeTab)}handleFocusout(){if(!this.matches(":focus-within")){var{activeTab:e}=this;e&&this.updateFocusableTab(e)}}handleSlotChange(){var e=this.tabs[0];!this.activeTab&&e&&this.activateTab(e),this.scrollToTab(this.activeTab)}}e([F({flatten:!0,selector:"[md-tab]"})],tc.prototype,"tabs",void 0),e([T({type:Boolean,attribute:"auto-activate"})],tc.prototype,"autoActivate",void 0),e([B(".tabs")],tc.prototype,"tabsScrollerElement",void 0),e([B("slot")],tc.prototype,"slotElement",void 0);var rc,oc=c(Yd||(Yd=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;position:relative}:host([hidden]){display:none}:host::-webkit-scrollbar{display:none}.tabs{align-items:end;display:flex;height:100%;overflow:inherit;justify-content:space-between;width:100%}::slotted(*){flex:1}::slotted([active]){z-index:1}/*# sourceMappingURL=tabs-styles.css.map */\n"]))),ic=class extends tc{};ic.styles=[oc],ic=e([t("md-tabs")],ic);var ac,nc,lc,sc,dc,cc,vc,pc=c(rc||(rc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_leading-space: var(--md-filled-text-field-leading-space, 16px);--_trailing-space: var(--md-filled-text-field-trailing-space, 16px);--_top-space: var(--md-filled-text-field-top-space, 16px);
2--_bottom-space: var(--md-filled-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-filled-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-filled-text-field-input-text-suffix-leading-space, 2px);--_with-label-top-space: var(--md-filled-text-field-with-label-top-space, 8px);--_with-label-bottom-space: var(--md-filled-text-field-with-label-bottom-space, 8px);--_focus-caret-color: var(--md-filled-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-color: var(--md-filled-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-text-field-active-indicator-height, 1px);--_caret-color: var(--md-filled-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_container-color: var(--md-filled-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_container-shape-start-start: var( --md-filled-text-field-container-shape-start-start, var(--md-filled-text-field-container-shape, 4px) );--_container-shape-start-end: var( --md-filled-text-field-container-shape-start-end, var(--md-filled-text-field-container-shape, 4px) );--_container-shape-end-end: var( --md-filled-text-field-container-shape-end-end, var(--md-filled-text-field-container-shape, 0px) );--_container-shape-end-start: var( --md-filled-text-field-container-shape-end-start, var(--md-filled-text-field-container-shape, 0px) );--_disabled-active-indicator-color: var(--md-filled-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-text-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-text-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-text-field-disabled-container-opacity, 0.04);--_disabled-input-text-color: var(--md-filled-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-filled-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-filled-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-filled-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-filled-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-filled-text-field-disabled-trailing-icon-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-active-indicator-color: var(--md-filled-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-caret-color: var(--md-filled-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-filled-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-filled-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-filled-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-filled-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-input-text-color: var(--md-filled-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-filled-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-text-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-filled-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-filled-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-filled-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-filled-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-filled-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-text-field-focus-active-indicator-height, 3px);--_focus-input-text-color: var(--md-filled-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-filled-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-filled-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-text-field-hover-active-indicator-height, 1px);--_hover-input-text-color: var(--md-filled-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-text-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-icon-color: var(--md-filled-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-text-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-filled-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-filled-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-filled-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-filled-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-filled-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-filled-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-filled-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-filled-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-filled-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-filled-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-filled-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-filled-text-field-leading-icon-size, 24px);--_supporting-text-color: var(--md-filled-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-filled-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-filled-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-filled-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-filled-text-field-trailing-icon-size, 24px);--md-filled-field-active-indicator-color: var(--_active-indicator-color);--md-filled-field-active-indicator-height: var(--_active-indicator-height);
2--md-filled-field-bottom-space: var(--_bottom-space);--md-filled-field-container-color: var(--_container-color);--md-filled-field-container-shape-end-end: var(--_container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_container-shape-start-start);--md-filled-field-content-color: var(--_input-text-color);--md-filled-field-content-font: var(--_input-text-font);--md-filled-field-content-line-height: var(--_input-text-line-height);--md-filled-field-content-size: var(--_input-text-size);--md-filled-field-content-weight: var(--_input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_error-active-indicator-color);--md-filled-field-error-content-color: var(--_error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_error-label-text-color);--md-filled-field-error-leading-content-color: var(--_error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_label-text-color);--md-filled-field-label-text-font: var(--_label-text-font);--md-filled-field-label-text-line-height: var(--_label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_label-text-populated-size);--md-filled-field-label-text-size: var(--_label-text-size);--md-filled-field-label-text-weight: var(--_label-text-weight);--md-filled-field-leading-content-color: var(--_leading-icon-color);--md-filled-field-leading-space: var(--_leading-space);--md-filled-field-supporting-text-color: var(--_supporting-text-color);--md-filled-field-supporting-text-font: var(--_supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_supporting-text-size);--md-filled-field-supporting-text-weight: var(--_supporting-text-weight);--md-filled-field-top-space: var(--_top-space);--md-filled-field-trailing-content-color: var(--_trailing-icon-color);--md-filled-field-trailing-space: var(--_trailing-space);
2--md-filled-field-with-label-bottom-space: var(--_with-label-bottom-space);--md-filled-field-with-label-top-space: var(--_with-label-top-space)}/*# sourceMappingURL=filled-styles.css.map */\n"]))),{D:hc}=je,uc={},fc=Ze(class extends Je{constructor(e){if(super(e),3!==e.type&&1!==e.type&&4!==e.type)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,t){var[r]=t;if(r===he||r===ue)return r;var o=e.element,i=e.name;if(3===e.type){if(r===o[i])return he}else if(4===e.type){if(!!r===o.hasAttribute(i))return he}else if(1===e.type&&o.getAttribute(i)===r+"")return he;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uc;e._$AH=t}(e),r}});function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function bc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class yc extends _r{computeValidity(e){var t,r,{state:o,renderedControl:i}=e,a=i;gc(o)&&!a?(a=this.inputControl||document.createElement("input"),this.inputControl=a):a||(a=this.textAreaControl||document.createElement("textarea"),this.textAreaControl=a);var n=gc(o)?a:null;if(n&&(n.type=o.type),a.value!==o.value&&(a.value=o.value),a.required=o.required,n){var l=o;l.pattern?n.pattern=l.pattern:n.removeAttribute("pattern"),l.min?n.min=l.min:n.removeAttribute("min"),l.max?n.max=l.max:n.removeAttribute("max"),l.step?n.step=l.step:n.removeAttribute("step")}return(null!==(t=o.minLength)&&void 0!==t?t:-1)>-1?a.setAttribute("minlength",String(o.minLength)):a.removeAttribute("minlength"),(null!==(r=o.maxLength)&&void 0!==r?r:-1)>-1?a.setAttribute("maxlength",String(o.maxLength)):a.removeAttribute("maxlength"),{validity:a.validity,validationMessage:a.validationMessage}}equals(e,t){var{state:r}=e,{state:o}=t,i=r.type===o.type&&r.value===o.value&&r.required===o.required&&r.minLength===o.minLength&&r.maxLength===o.maxLength;return gc(r)&&gc(o)?i&&r.pattern===o.pattern&&r.min===o.min&&r.max===o.max&&r.step===o.step:i}copy(e){var{state:t}=e;return{state:gc(t)?this.copyInput(t):this.copyTextArea(t),renderedControl:null}}copyInput(e){var{type:t,pattern:r,min:o,max:i,step:a}=e;return bc(bc({},this.copySharedState(e)),{},{type:t,pattern:r,min:o,max:i,step:a})}copyTextArea(e){return bc(bc({},this.copySharedState(e)),{},{type:e.type})}copySharedState(e){var{value:t,required:r,minLength:o,maxLength:i}=e;return{value:t,required:r,minLength:o,maxLength:i}}}function gc(e){return"textarea"!==e.type}function xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(i),i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xc(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Oc,kc,zc=ns(mr(xr(yt(Ie))));class Cc extends zc{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){var e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){var t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){var e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){var t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(){this.getInputOrTextarea().setRangeText(...arguments),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,r){this.getInputOrTextarea().setSelectionRange(e,t,r)}stepDown(e){var t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){var t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){var e;this.dirty=!1,this.value=null!==(e=this.getAttribute("value"))&&void 0!==e?e:"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,t,r){"value"===e&&this.dirty||super.attributeChangedCallback(e,t,r)}render(){var e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:"textarea"===this.type,"no-spinner":this.noSpinner};return ve(ac||(ac=wc(['\n <span class="text-field ','">\n ',"\n </span>\n "])),tt(e),this.renderField())}updated(e){var t=this.getInputOrTextarea().value;this.value!==t&&(this.value=t)}renderField(){return sa(nc||(nc=wc(["<",'\n class="field"\n count=',"\n ?disabled=","\n ?error=","\n error-text=","\n ?focused=","\n ?has-end=","\n ?has-start=","\n label=","\n max=","\n ?populated=","\n ?required=","\n ?resizable=","\n supporting-text=","\n >\n ","\n ","\n ",'\n <div id="description" slot="aria-describedby"></div>\n </',">"])),this.fieldTag,this.value.length,this.disabled,this.hasError,this.getErrorText(),this.focused,this.hasTrailingIcon,this.hasLeadingIcon,this.label,this.maxLength,!!this.value,this.required,"textarea"===this.type,this.supportingText,this.renderLeadingIcon(),this.renderInputOrTextarea(),this.renderTrailingIcon(),this.fieldTag)}renderLeadingIcon(){return ve(lc||(lc=wc(['\n <span class="icon leading" slot="start">\n <slot name="leading-icon" @slotchange=',"></slot>\n </span>\n "])),this.handleIconChange)}renderTrailingIcon(){return ve(sc||(sc=wc(['\n <span class="icon trailing" slot="end">\n <slot name="trailing-icon" @slotchange=',"></slot>\n </span>\n "])),this.handleIconChange)}renderInputOrTextarea(){var e,t,r={direction:this.textDirection},o=this.ariaLabel||this.label||ue,i=this.autocomplete,a=(null!==(e=this.maxLength)&&void 0!==e?e:-1)>-1,n=(null!==(t=this.minLength)&&void 0!==t?t:-1)>-1;if("textarea"===this.type)return ve(dc||(dc=wc(['\n <textarea\n class="input"\n style=','\n aria-describedby="description"\n aria-invalid=',"\n aria-label=","\n autocomplete=","\n ?disabled=","\n maxlength=","\n minlength=","\n placeholder=","\n ?readonly=","\n ?required=","\n rows=","\n cols=","\n .value=","\n @change=","\n @focus=","\n @blur=","\n @input
2=","\n @select=","></textarea>\n "])),wn(r),this.hasError,o,i||ue,this.disabled,a?this.maxLength:ue,n?this.minLength:ue,this.placeholder||ue,this.readOnly,this.required,this.rows,this.cols,fc(this.value),this.redispatchEvent,this.handleFocusChange,this.handleFocusChange,this.handleInput,this.redispatchEvent);var l=this.renderPrefix(),s=this.renderSuffix(),d=this.inputMode;return ve(cc||(cc=wc(['\n <div class="input-wrapper">\n ','\n <input\n class="input"\n style=','\n aria-describedby="description"\n aria-invalid=',"\n aria-label=","\n autocomplete=","\n ?disabled=","\n inputmode=","\n max=","\n maxlength=","\n min=","\n minlength=","\n pattern=","\n placeholder=","\n ?readonly=","\n ?required=","\n ?multiple=","\n step=","\n type=","\n .value=","\n @change=","\n @focus=","\n @blur=","\n @input=","\n @select="," />\n ","\n </div>\n "])),l,wn(r),this.hasError,o,i||ue,this.disabled,d||ue,this.max||ue,a?this.maxLength:ue,this.min||ue,n?this.minLength:ue,this.pattern||ue,this.placeholder||ue,this.readOnly,this.required,this.multiple,this.step||ue,this.type,fc(this.value),this.redispatchEvent,this.handleFocusChange,this.handleFocusChange,this.handleInput,this.redispatchEvent,s)}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){if(!e)return ue;var r={suffix:t,prefix:!t};return ve(vc||(vc=wc(['<span class="','">',"</span>"])),tt(r),e)}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var e,t;this.focused=null!==(e=null===(t=this.inputOrTextarea)||void 0===t?void 0:t.matches(":focus"))&&void 0!==e&&e}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){sr(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return"textarea"===this.type?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[yr](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[vr](){return new yc((()=>({state:this,renderedControl:this.inputOrTextarea})))}[pr](){return this.inputOrTextarea}[ts](e){null==e||e.preventDefault();var t,r=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,r===this.getErrorText()&&(null===(t=this.field)||void 0===t||t.reannounceError())}}ft(Cc),Cc.shadowRootOptions=_c(_c({},Ie.shadowRootOptions),{},{delegatesFocus:!0}),e([T({type:Boolean,reflect:!0})],Cc.prototype,"error",void 0),e([T({attribute:"error-text"})],Cc.prototype,"errorText",void 0),e([T()],Cc.prototype,"label",void 0),e([T({type:Boolean,reflect:!0})],Cc.prototype,"required",void 0),e([T()],Cc.prototype,"value",void 0),e([T({attribute:"prefix-text"})],Cc.prototype,"prefixText",void 0),e([T({attribute:"suffix-text"})],Cc.prototype,"suffixText",void 0),e([T({type:Boolean,attribute:"has-leading-icon"})],Cc.prototype,"hasLeadingIcon",void 0),e([T({type:Boolean,attribute:"has-trailing-icon"})],Cc.prototype,"hasTrailingIcon",void 0),e([T({attribute:"supporting-text"})],Cc.prototype,"supportingText",void 0),e([T({attribute:"text-direction"})],Cc.prototype,"textDirection",void 0),e([T({type:Number})],Cc.prototype,"rows",void 0),e([T({type:Number})],Cc.prototype,"cols",void 0),e([T({reflect:!0})],Cc.prototype,"inputMode",void 0),e([T()],Cc.prototype,"max",void 0),e([T({type:Number})],Cc.prototype,"maxLength",void 0),e([T()],Cc.prototype,"min",void 0),e([T({type:Number})],Cc.prototype,"minLength",void 0),e([T({type:Boolean,attribute:"no-spinner"})],Cc.prototype,"noSpinner",void 0),e([T()],Cc.prototype,"pattern",void 0),e([T({reflect:!0,converter:{fromAttribute:e=>null!=e?e:"",toAttribute:e=>e||null}})],Cc.prototype,"placeholder",void 0),e([T({type:Boolean,reflect:!0})],Cc.prototype,"readOnly",void 0),e([T({type:Boolean,reflect:!0})],Cc.prototype,"multiple",void 0),e([T()],Cc.prototype,"step",void 0),e([T({reflect:!0})],Cc.prototype,"type",void 0),e([T({reflect:!0})],Cc.prototype,"autocomplete",void 0),e([L()],Cc.prototype,"dirty",void 0),e([L()],Cc.prototype,"focused",void 0),e([L()],Cc.prototype,"nativeError",void 0),e([L()],Cc.prototype,"nativeErrorText",void 0),e([B(".input")],Cc.prototype,"inputOrTextarea",void 0),e([B(".field")],Cc.prototype,"field",void 0),e([F({slot:"leading-icon"})],Cc.prototype,"leadingIcons",void 0),e([F({slot:"trailing-icon"})],Cc.prototype,"trailingIcons",void 0);class Ec extends Cc{constructor(){super(...arguments),this.fieldTag=aa(Oc||(Oc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["md-filled-field"])))}}var jc,Pc,Sc=c(kc||(kc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{display:inline-flex;outline:none;resize:both;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}
2.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}.icon{color:currentColor;display:flex;fill:currentColor}.icon ::slotted(*){display:flex}[hasstart] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[hasend] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background:none}}.no-spinner .input::-webkit-inner-spin-button,.no-spinner .input::-webkit-outer-spin-button{display:none}.no-spinner .input[type=number]{-moz-appearance:textfield}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}/*# sourceMappingURL=shared-styles.css.map */\n"]))),Ac=class extends Ec{constructor(){super(...arguments),this.fieldTag=aa(jc||(jc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["md-filled-field"])))}};Ac.styles=[Sc,pc],Ac=e([t("md-filled-text-field")],Ac);var Tc,Ic,Rc=c(Pc||(Pc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host{--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_container-shape: var(--md-outlined-text-field-container-shape, 4px);--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var( --md-outlined-text-field-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-text-field-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-text-field-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-text-field-container-shape-end-start, var(--_container-shape) );
2--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space)}/*# sourceMappingURL=outlined-styles.css.map */\n"])));class Lc extends Cc{constructor(){super(...arguments),this.fieldTag=aa(Tc||(Tc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["md-outlined-field"])))}}var Dc=class extends Lc{constructor(){super(...arguments),this.fieldTag=aa(Ic||(Ic=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["md-outlined-field"])))}};Dc.styles=[Sc,Rc],Dc=e([t("md-outlined-text-field")],Dc)})();"use strict";
2class OcMd3Chip extends OcUi{constructor(properties){super(properties);}defaults(){return OcMd3Chip.defaults();}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},alwaysFocusable:{get:this.__getAlwaysFocusable.bind(this),set:this.__setAlwaysFocusable.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},leadingIcon:{get:this.__getLeadingIcon.bind(this),set:this.__setLeadingIcon.bind(this)}};}__getDisabled(){return this.properties.disabled;}__setDisabled(value){if(this.properties.disabled==value){return;}this.properties.disabled=value;this.__handleBaseNode();}__getAlwaysFocusable(){return this.properties.alwaysFocusable;}__setAlwaysFocusable(value){if(this.properties.alwaysFocusable==value){return;}this.properties.alwaysFocusable=value;this.__handleBaseNode();}__getLabel(){return this.properties.label;}__setLabel(value){if(this.properties.label==value){return;}this.properties.label=value;this.__handleBaseNode();}__getLeadingIcon(){return this.properties.leadingIcon;}__setLeadingIcon(value){if(this.properties.leadingIcon!==null){const jIcon=jQuery(this.properties.leadingIcon);jIcon.removeAttr('slot');OcHtml.detachIfInside(jIcon,this.__internals.dom.base);}this.properties.leadingIcon=value;if(this.properties.leadingIcon!==null){const jIcon=jQuery(this.properties.leadingIcon);jIcon.attr('slot','icon');jIcon.appendTo(this.__internals.dom.base);}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.disabled=this.__setDisabled;this.propertyHandlers.alwaysFocusable=this.__setAlwaysFocusable;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.leadingIcon=this.__setLeadingIcon;}__initEvents__baseNodeMutationObserver(){this.__internals.baseNodeMutationObserver?.events.listen('attribute-change',this.__onBaseNodeMutationObserver__attributeChange.bind(this),this.refID);}__onBaseNodeMutationObserver__attributeChange(ev){switch(ev.attribute){case'disabled':this.__setDisabled(ev.isSet);break;case'alwaysFocusable':this.__setAlwaysFocusable(ev.isSet);break;case'label':this.__setLabel(ev.value);break;default:break;}}__initialize(properties){super.__initialize(properties);this.__internals.baseNodeMutationObserver=OLEFA.mutations.createObserver({element:this.__internals.dom.base,event:this.refID,mutations:{attributes:true,attributeOldValue:true}});this.__initEvents__baseNodeMutationObserver();this.__handleBaseNode();}__handleBaseNode(){this.__deferOnce('__handleBaseNode',()=>{const node=this.__internals.dom.base;const attributes=OcHtml.setAttributesIfTrueHelper([{type:'boolean',property:'disabled',value:this.__getDisabled()},{type:'boolean',property:'alwaysFocusable',value:this.__getAlwaysFocusable()},{type:'string',property:'label',value:this.__getLabel()}]);OcHtml.setAttributesIfTrue(node,attributes);});}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,disabled:false,alwaysFocusable:false,label:'',leadingIcon:null}};}}Oc.OcMd3Chip=OcMd3Chip;"use strict";class OcMd3ChipFilter extends OcMd3Chip{constructor(properties){super(properties);}defaults(){return OcMd3ChipFilter.defaults();}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,elevated:{get:this.__getElevated.bind(this),set:this.__setElevated.bind(this)},removable:{get:this.__getRemovable.bind(this),set:this.__setRemovable.bind(this)},selected:{get:this.__getSelected.bind(this),set:this.__setSelected.bind(this)},ariaLabelRemove:{get:this.__getAriaLabelRemove.bind(this),set:this.__setAriaLabelRemove.bind(this)},value:{get:this.__getValue.bind(this),set:this.__setValue.bind(this)}};}__getElevated(){return this.properties.elevated;}__setElevated(value){if(this.properties.elevated==value){return;}this.properties.elevated=value;this.__handleBaseNode();}__getRemovable(){return this.properties.removable;}__setRemovable(value){if(this.properties.removable==value){return;}this.properties.removable=value;this.__handleBaseNode();}__getSelected(){return this.properties.selected;}__setSelected(value){if(this.properties.selected==value){return;}this.properties.selected=value;this.__handleBaseNode();}__getAriaLabelRemove(){return this.properties.ariaLabelRemove;}__setAriaLabelRemove(value){this.properties.ariaLabelRemove=value;this.__internals.dom.base.prop('ariaLabelRemove',this.properties.ariaLabelRemove);}__getValue(){return this.properties.value;}__setValue(value){this.properties.value=value;}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.elevated=this.__setElevated;this.propertyHandlers.removable=this.__setRemovable;this.propertyHandlers.selected=this.__setSelected;this.propertyHandlers.ariaLabelRemove=this.__setAriaLabelRemove;this.propertyHandlers.value=this.__setValue;}__onBaseNodeMutationObserver__attributeChange(ev){super.__onBaseNodeMutationObserver__attributeChange(ev);switch(ev.attribute){case'elevated':this.__setElevated(ev.isSet);break;case'removable':this.__setRemovable(ev.isSet);break;case'selected':this.__setSelected(ev.isSet);break;default:break;}}__initElements(){super.__initElements();const cssBase='oc-md3-chip-filter';this.__createDOMNodes({base:{tag:'md-filter-chip',class:cssBase}});}__initialize(properties){super.__initialize(properties);this.__internals.dom.base.prop('handleTrailingActionFocus',()=>{this.__onTrailingIconFocus();});}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcMd3ChipFilter',()=>{const node=this.__internals.dom.base;const attributes=OcHtml.setAttributesIfTrueHelper([{type:'boolean',property:'elevated',value:this.__getElevated()},{type:'boolean',property:'removable',value:this.__getRemovable()},{type:'boolean',property:'selected',value:this.__getSelected()}]);OcHtml.setAttributesIfTrue(node,attributes);});}__onTrailingIconFocus(){}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,elevated:false,removable:false,selected:false,ariaLabelRemove:'',value:''}};}}Oc.OcMd3ChipFilter=OcMd3ChipFilter;"use strict";
2class OcMd3Chipset extends OcUi{constructor(properties){super(properties);}defaults(){return OcMd3Chipset.defaults();}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,chips:{get:this.__getChips.bind(this)}};}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.chips={};this.propertyHandlers.chips=this.addChip;}__initElements(){super.__initElements();const cssBase='oc-md3-chipset';this.__createDOMNodes({base:{tag:'md-chip-set',class:cssBase}});}__initialize(properties){super.__initialize(properties);}addChip(chip){if(this.__internals.chips[chip.refID]){return;};this.__internals.chips[chip.refID]=chip;chip.base.appendTo(this.__internals.dom.base);}removeChip(refId){if(!this.__internals.chips[refId]){return;};OcHtml.detachIfInside(this.__internals.chips[refId],this.__internals.dom.base);delete this.__internals.chips[refId];}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,chips:[]}};}}Oc.OcMd3Chipset=OcMd3Chipset;"use strict";class OcMd3ChipsetFilter extends OcMd3Chipset{constructor(properties){super(properties);}defaults(){return OcMd3ChipsetFilter.defaults();}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,chips:{get:this.__getChips.bind(this)},selectedValues:{get:this.__getSelectedValues.bind(this)}};}__getChips(){return Object.values(this.__internals.chips);}__getSelectedValues(){return Object.values(this.__internals.chips).filter(chip=>chip.selected).map(chip=>chip.value);}__buildInstanceStructure(){super.__buildInstanceStructure();}__initEvents__chip(chip){chip.events.listen('property-change',this.__onPropertyChange__chip.bind(this,chip),this.refID);}__onPropertyChange__chip(chip,ev){if(ev.property=='selected'){this.__trigger__selectToggle({chip:chip,selected:ev.value});}}__initialize(properties){super.__initialize(properties);}addChip(chip){super.addChip(chip);this.__initEvents__chip(chip);}__trigger__selectToggle(eventData){const event=new OcEvent({eventName:'select-toggle',data:eventData});this.__internals.events.triggerEvent(event);}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,chips:[]}};}}Oc.OcMd3ChipsetFilter=OcMd3ChipsetFilter;"use strict";const OcUiFonticon=function(icon){const iconProperties=OcUiFonticon.__parseIconString(icon);if(!iconProperties.obj){return new OcMdIcon({icon:iconProperties.icon});};return new iconProperties.obj({icon:iconProperties.icon});};OcUiFonticon.__getIconObject=function(iconType){switch(iconType){case'md':return OcMdIcon;case'oc':return OcUiFonticonOlefa;case'image':return OcUiFonticonImage;default:return OcMdIcon;};};OcUiFonticon.__parseIconString=function(iconString){const data={'iconfont':'','icon':'','obj':OcMdIcon};if(!OcDatatype.is('string',iconString)){return data;};const values=iconString.match(/^(.*?):(.*)$/u);if(!values){return data;};if(values[1]){data.iconfont=values[1];data.obj=OcUiFonticon.__getIconObject(values[1])||null;};if(values[2]){data.icon=values[2];};return data;};oc.OcUiFonticon=OcUiFonticon;"use strict";class OcUiFonticonImage extends OcUi{constructor(properties){super(properties);};defaults(){return OcUiFonticonImage.defaults();}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,icon:{get:function(){return that.__getIcon();},set:function(a){that.__setIcon(a);}}};return extendedDefinitions;};__setVisible(value){this.properties.visible=OcDatatype.toBoolean(value);this.__internals.states.set('hidden',!this.visible);}__setIcon(icon){this.properties.icon=icon;this.__internals.dom.base.css({'background-image':'url('+icon+')'});};__getIcon(){return this.properties.icon;};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.icon=this.__setIcon;};__initElements(){super.__initElements();this.__internals.dom.base=jQuery('<span></span>');this.__internals.dom.base.prop('olefa-object-reference',this).addClass('oc-ui-font-icon-image');};__initialize(properties){super.__initialize(properties);if(this.__internals.ariaHandler){this.__internals.ariaHandler.hidden=true;}}static defaults(){const inheritedDefaults=OcUi.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,icon:''}};return extendedDefaults;}}oc.OcUiFonticonImage=OcUiFonticonImage;"use strict";class OcUiFonticonOlefa extends OcMdComponent{constructor(properties){super(properties);}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,icon:{get:function(){return that.__getIcon();},set:function(a){that.__setIcon(a);}}};return extendedDefinitions;};__setVisible(value){this.properties.visible=OcDatatype.toBoolean(value);this.__internals.states.set('hidden',!this.visible);}__setIcon(icon){this.__internals.dom.base.removeClass('icon-'+this.properties.icon);this.properties.icon=icon;this.__internals.dom.base.addClass('icon-'+icon);};__getIcon(){return this.properties.icon;};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.icon=this.__setIcon;};__initElements(){this.__internals.dom.base=jQuery('<span></span>');this.__internals.dom.base.prop('olefa-object-reference',this).addClass('oc-ui-font-icon-olefa');};__initialize(properties){super.__initialize(properties);if(this.__internals.ariaHandler){this.__internals.ariaHandler.hidden=true;}}defaults(){return OcUiFonticonOlefa.defaults();}static defaults(){const inheritedData=OcMdComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,icon:''}};return extendedData;}}oc.OcUiFonticonOlefa=OcUiFonticonOlefa;"use strict";class OcSnackbars{constructor(){this.snackbarQueue=[];this.tags=new Map();this.running=undefined;}__showSnackbars(token){if(!this.running){this.running=token;};if(this.running!=token){return;};if(!this.snackbarQueue.length){this.running=undefined;return;};const that=this;const p=new Promise((resolve,reject)=>{const snackbar=that.snackbarQueue.shift();if(snackbar){snackbar.base.appendTo('body');snackbar.events.listen('closed',()=>{snackbar.base.detach();this.tags.delete(snackbar.refID);resolve();});snackbar.show();}else{resolve();};});p.then(function(){that.__showSnackbars(token);}).catch(function(){that.__showSnackbars(token);});};show(snackbarProperties,options){const normalizedOptions={tag:'',...options};if(!snackbarProperties.message){return;};if(normalizedOptions.tag&&Array.from(this.tags.values()).includes(normalizedOptions.tag)){return;}if(!("timeout"in snackbarProperties)){snackbarProperties.timeout=OcUtilities.guessReadTime(snackbarProperties.message);}const snackbar=new OcMdSnackbar(snackbarProperties);if(normalizedOptions.tag){this.tags.set(snackbar.refID,normalizedOptions.tag);};this.snackbarQueue.push(snackbar);this.__showSnackbars(OLEFA.basics.generateID());return snackbar;};}oc.OcSnackbars=OcSnackbars;"use strict";class OcLog extends OcComponent{constructor(properties){super(properties);}defaults(){return OcLog.defaults();}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,loglevel:{get:function(){return that.__getLoglevel();},set:function(a){that.__setLoglevel(a);}},showDeprecatedMessages:{get:function(){return that.__getShowDeprecatedMessages();},set:function(a){that.__setShowDeprecatedMessages(a);}}
2};return extendedDefinitions;}__setLoglevel(value){const loglevels=this.defaults().loglevels;if(!loglevels[value]){return;}this.properties.loglevel=value;this.__internals.loglevel=loglevels[value];};__getLoglevel(){return this.properties.loglevel;};__setShowDeprecatedMessages(value){this.properties.showDeprecatedMessages=value;};__getShowDeprecatedMessages(){return this.properties.showDeprecatedMessages;};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.loglevel=20;this.propertyHandlers.loglevel=this.__setLoglevel;this.propertyHandlers.showDeprecatedMessages=this.__setShowDeprecatedMessages;}__initialize(properties){this.__initProperties(properties);};debug(...data){if(this.__internals.loglevel>this.defaults().loglevels.DEBUG){return;};console.log(data);};info(...data){if(this.__internals.loglevel>this.defaults().loglevels.INFO){return;};console.info(data);};warn(...data){if(this.__internals.loglevel>this.defaults().loglevels.WARN){return;};console.warn(data);};error(...data){if(this.__internals.loglevel>this.defaults().loglevels.ERROR){return;};console.error(data);};deprecated(...message){if(!this.showDeprecatedMessages){return;};console.trace(message);};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,loglevel:'WARN',showDeprecatedMessages:true},loglevels:this.LOGLEVEL};return extendedData;}}OcLog.LOGLEVEL={DEBUG:1,INFO:10,WARN:20,ERROR:30};;Oc.OcLog=OcLog;"use strict";class OcManualpromise extends OcComponent{constructor(properties){super(properties);}defaults(){return OcManualpromise.defaults();}__interfaceDefinitions(){const definitions=super.__interfaceDefinitions();const that=this;definitions.promise={get:function(){return that.__internals.externalPromise;}};definitions.state={get:function(){return that.__internals.state;}};definitions.isResolved={get:function(){return(that.__internals.state!='pending');}};return definitions;}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.state='pending';this.__internals.promise=new Promise((resolve,reject)=>{this.__internals.resolveFunction=resolve;this.__internals.rejectFunction=reject;});this.__internals.externalPromise=new Promise((resolve,reject)=>{this.__internals.externalResolveFunction=resolve;this.__internals.externalRejectFunction=reject;});this.__internals.externalPromise.catch(OcUtilities.doNothing);this.__internals.promise.then((resolveData)=>{this.__internals.state='resolved';this.__internals.externalResolveFunction(resolveData);}).catch((errorCode)=>{OLEFA.log.debug('OcManualpromise rejected',errorCode);this.__internals.state='rejected';this.__internals.externalRejectFunction(errorCode);});}__initialize(properties){this.__initProperties(properties);};resolve(resolveData){this.__internals.resolveFunction(resolveData);};reject(rejectData){this.__internals.rejectFunction(rejectData);};await(promise){promise.then(data=>{this.resolve(data);}).catch(error=>{this.reject(error);});}destroy(){if(!this.isResolved){this.reject();};super.destroy();}static defaults(){const data=OcComponent.defaults();return data;};};Oc.OcManualpromise=OcManualpromise;"use strict";class OcUtilities{static generateID(len){const defaultLength=40;const half=2;const arr=new Uint8Array((len||defaultLength)/half);const crypto=window.crypto;crypto.getRandomValues(arr);return`id${[].map.call(arr, OcDatatype.byteToHex).join('')}`;};static addListenerToMql(mql,callbackFn){if(typeof mql.addEventListener=='function'){mql.addEventListener('change',callbackFn);}else{mql.addListener(callbackFn);}};static setTimeout(handler=()=>{},timeout=0){return new Promise((resolve,reject)=>{window.setTimeout(()=>{try{handler();resolve();}catch(e){reject(e);};},timeout);});}static copyInputContentToClipboard(input){try{input.select();const successful=document.execCommand('copy');if(successful){OLEFA.snackbar.show({message:OLEFA.i18n.get('copied_to_clipboard')});}else{OLEFA.snackbar.show({message:OLEFA.i18n.get('copy_to_clipboard__error')});};}catch(err){OLEFA.snackbar.show({message:OLEFA.i18n.get('copied_to_clipboard__error')});};}static async copyToClipboard(text){const[,error]=await Oc.flattenPromise(navigator.clipboard.writeText(text));if(error){const ocerror=new OcError({code:OcUtilities.errors.CLIPBOARD_COPY_FAIL,data:error,debugMessage:'Failed to copy text to clipboard via Clipboard API'});OLEFA.serveErrorSnack(ocerror);throw ocerror;};OLEFA.snackbar.show({message:OLEFA.i18n.get('copied_to_clipboard')});}static guessMimeByExtension(ext){var mime='';if(ext.match(/^gif$/i)){mime='image/gif';}else if(ext.match(/^(jpg|jpeg|jpe|jif|jfif|jfi)$/i)){mime='image/jpeg';}else if(ext.match(/^png$/i)){mime='image/png';}else if(ext.match(/^(tiff|tif)$/i)){mime='image/tiff';}else if(ext.match(/^svg$/i)){mime='image/svg';}else if(ext.match(/^webp/i)){mime='image/webp';}else if(ext.match(/^mp3$/i)){mime='audio/mpeg';}else if(ext.match(/^(mid|midi)$/i)){mime='audio/midi';}else if(ext.match(/^(m4a|m4b|m4p|m4r|aac)$/i)){mime='audio/mp4';}else if(ext.match(/^wma$/i)){mime='audio/x-ms-wma';}else if(ext.match(/^(oga|ogg|spx)$/i)){mime='audio/off';}else if(ext.match(/^(aiff|aif|aifc)$/i)){mime='audio/aiff';}else if(ext.match(/^(ra|ram)$/i)){mime='audio/vnd.rn-realaudio';}else if(ext.match(/^(wav|wv)$/i)){mime='audio/vnd.wave';}else if(ext.match(/^3gp$/i)){mime='video/3gpp';}else if(ext.match(/^3g2$/i)){mime='video/3gpp2';}else if(ext.match(/^asf$/i)){mime='video/x-ms-asf';}else if(ext.match(/^avi$/i)){mime='video/avi';}else if(ext.match(/^(flv|f4v)$/i)){mime='video/x-flv';}else if(ext.match(/^(mov|qt)$/i)){mime='video/quicktime';}else if(ext.match(/^(mp4|m4v)$/i)){mime='video/mp4';}else if(ext.match(/^mpg$/i)){mime='video/mpeg';}else if(ext.match(/^rm$/i)){mime='video/vnd.rn-realvideo';}else if(ext.match(/^wmv$/i)){mime='video/x-ms-wmv';}else if(ext.match(/^mts$/i)){mime='video/mts';}else if(ext.match(/^swf$/i)){mime='application/x-shockwave-flash';}else if(ext.match(/^pdf$/i)){mime='application/pdf';}else if(ext.match(/^odt$/i)){mime='application/vnd.oasis.opendocument.text';}else if(ext.match(/^ods$/i)){mime='application/vnd.oasis.opendocument.spreadsheet';}else if(ext.match(/^odp$/i)){mime='application/vnd.oasis.opendocument.presentation';}else if(ext.match(/^odb$/i)){mime='application/vnd.oasis.opendocument.databases';}else if(ext.match(/^odg$/i)){mime='application/vnd.oasis.opendocument.graphics';}else if(ext.match(/^odf$/i)){mime='application/vnd.oasis.opendocument.formulae';}else if(ext.match(/^(xls|xlw|xla|xlc|xlm|xlt|xll|xlsm)$/i)){mime='application/vnd.ms-excel';}else if(ext.match(/^xlsx$/i)){mime='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';}else if(ext.match(/^(ppt|pps|pot)$/i)){mime='application/vnd.ms-powerpoint';}else if(ext.match(/^(pptx|ppsx)$/i)){mime='application/vnd.openxmlformats-officedocument.presentationml.presentation';}
2else if(ext.match(/^(doc|wiz|rtf)$/i)){mime='application/vnd.openxmlformats-officedocument.wordprocessingml.document';}else if(ext.match(/^docx$/i)){mime='application/vnd.openxmlformats-officedocument.wordprocessingml.document';}else if(ext.match(/^dotx$/i)){mime='application/vnd.openxmlformats-officedocument.wordprocessingml.template';}else if(ext.match(/^(txt|rtf|ls)$/i)){mime='text/plain';}else if(ext.match(/^js$/i)){mime='text/javascript';}else if(ext.match(/^css$/i)){mime='text/css';}else if(ext.match(/^csv$/i)){mime='text/csv';}else if(ext.match(/^(htm|html|shtml)$/i)){mime='text/html';}else if(ext.match(/^zip$/i)){mime='application/zip';}else if(ext.match(/^x-tar$/i)){mime='application/x-tar';}else if(ext.match(/^epub$/i)){mime='application/epub+zip';}else if(ext.match(/^vtt$/i)){mime='text/vtt';}else{mime='application/'+ext;};return mime;}static getFolderFromPath(path){const parts=path.split('/');parts.pop();return parts.join('/');}static getFileNameFromPath(path){const parts=path.split('/');return parts.pop()||'';}static getFileExtension(path){const filename=this.getFileNameFromPath(path);const parts=filename.split('.');return parts.pop()||'';}static clamp(min,value,max){let clampedNumber=value;clampedNumber=Math.max(value,min);clampedNumber=Math.min(clampedNumber,max);return clampedNumber;}static isElementInElement(element,parent){const jElement=jQuery(element);const jParent=jQuery(parent);return OcDatatype.toBoolean(jElement.add(jElement.parents()).filter(jParent).length);};static doNothing(){}static openLink(url,target='_blank'){window.open(url,target);}static download(url,name){const element=document.createElement('a');element.setAttribute('href',url);element.setAttribute('download',name||'');element.style.display='none';document.body.appendChild(element);element.click();document.body.removeChild(element);}static __deferResolution(resolve,fn,cancelExecution,waitForFnBeforeResolve=false){if(!waitForFnBeforeResolve){resolve();};if((typeof(cancelExecution)=='undefined')||(typeof(cancelExecution)=='function'&&!cancelExecution())||(!OcDatatype.toBoolean(cancelExecution))){fn();};if(waitForFnBeforeResolve){resolve();};}static defer(fn,cancelExecution,waitForFnBeforeResolve=false){return new Promise(function(resolve,reject){const timeout=setTimeout(function(){OcUtilities.__deferResolution(resolve,fn,cancelExecution,waitForFnBeforeResolve);clearTimeout(timeout);},0);});};static deferUntil(fn,parameters){return new Promise((resolve,reject)=>{const normalizedParameters={...{condition:'instant',cancelExecution:false,waitForFnBeforeResolve:false},...parameters};if(normalizedParameters.condition=='instant'){setTimeout(()=>{OcUtilities.__deferResolution(resolve,fn,normalizedParameters.cancelExecution,normalizedParameters.waitForFnBeforeResolve);});}else if(normalizedParameters.condition=='repaint'){requestAnimationFrame(()=>{OcUtilities.__deferResolution(resolve,fn,normalizedParameters.cancelExecution,normalizedParameters.waitForFnBeforeResolve);});}else if(normalizedParameters.condition=='idle'){if("requestIdleCallback"in window){requestIdleCallback(()=>{OcUtilities.__deferResolution(resolve,fn,normalizedParameters.cancelExecution,normalizedParameters.waitForFnBeforeResolve);});}else{OcUtilities.__deferResolution(resolve,fn,normalizedParameters.cancelExecution,normalizedParameters.waitForFnBeforeResolve);}}});}static percentToValue(percent,min=0,max=100){return((max-min)/100*percent)+min;}static valueToPercent(value,min=0,max=100){return 100/(max-min)*(value-min);}static triggerEvent(element,eventType,eventOptions){let normalizedElement;if(OcDatatype.isJQuery(element)){normalizedElement=element.get(0);}else{normalizedElement=element;};if(!normalizedElement){return;};const normalizedEventOptions={bubbles:true,cancelable:true,...eventOptions};const ev=new Event(eventType,normalizedEventOptions);normalizedElement.dispatchEvent(ev);}static guessReadTime(text){const wpm=180;const word_length=5;const secondsInAMinute=60;const msInAMinute=secondsInAMinute*1000;const words=text.length/word_length;const words_time=(words/wpm)*msInAMinute;const delay=1500;const bonus=1000;return delay+words_time+bonus;};static async allSettled(promises){const allPromisesWrapper=[];let index=0;for(const promise of promises){let localIndex=index;const promiseWrapper=new Promise((resolve,reject)=>{promise.then(resolveData=>resolve(['fulfilled',localIndex,resolveData])).catch(rejectData=>resolve(['rejected',localIndex,rejectData]));});
2allPromisesWrapper.push(promiseWrapper);};const results=await Promise.all(allPromisesWrapper);const allSettledReturn=[];for(const result of results){const[status,index,data]=result;let settledData;if(status=='fulfilled'){settledData={status:status,value:data};}else{settledData={status:status,reason:data};}OcArray.insert(allSettledReturn,index,settledData);}return allSettledReturn;}static async login(){await OLEFA.components.require(['OcLogin']);const[,errorCode]=await Oc.flattenPromise(OcLogin.login());if(errorCode){if(errorCode.code!=OcLogin.errors.CANCELLED_BY_USER){OLEFA.serveErrorSnack(errorCode);}throw errorCode;};}static hasNoValue(value){return(typeof value=='undefined'||value===null);}static methodOf(instance,fnName){const method=instance[fnName];if(!(typeof method=='function')){return OcUtilities.doNothing.bind(instance);}return method.bind(instance);}static lowercase(value){return value.toLowerCase();}static getConditionedValue(conditionedValues,fallback){const firstMatch=conditionedValues.find(conditionedValue=>conditionedValue.c);if(firstMatch){return firstMatch.v;}return fallback;}static define(value,defaultValue){if(typeof value==='undefined'||value===null){return defaultValue;};return value;}static oneOf(value,acceptableValues,fallback){let appliedValue;if(OcArray.has(acceptableValues,value)){appliedValue=value;}else{appliedValue=fallback;}return appliedValue;}static isSameSite(url1,url2){try{const a=new URL(url1);const b=new URL(url2);return a.origin.toLowerCase()===b.origin.toLowerCase();}catch{return false;}}static async nativeShare(properties){if(!navigator.share){throw OcUtilities.errors.NATIVE_SHARE_UNSUPPORTED;};if(typeof(properties.files)!='undefined'){properties={files:properties.files};};const[resolveData,error]=await Oc.flattenPromise(navigator.share(properties));if(error||resolveData===null){if(error instanceof DOMException&&error.name=='AbortError'){throw OcUtilities.errors.NO_ERRORS;}else if(typeof(properties.files)!='undefined'&&error instanceof TypeError){throw OcUtilities.errors.NATIVE_SHARE_UNSUPPORTED;};throw error;}return;}static getUrlParameters(){const out={};const search=window.location.search;const currentValuesArray=search.split(/&(amp;|)/u);currentValuesArray[0]=currentValuesArray[0].substring(1);for(let i=0;i<currentValuesArray.length;++i){const[key,value]=currentValuesArray[i].split('=');out[key]=value;};return out;}static isAbsolutePath(url){const regexp=new RegExp('^(?:[a-z+]+:)?//','i');return regexp.test(url);};static hasSetter(obj,prop){return!!(()=>{while(obj){const d=Object.getOwnPropertyDescriptor(obj,prop);if(d)return d.set;obj=Object.getPrototypeOf(obj);}return false;})();}static __secondsToTimeUnit(seconds){const timeUnits=[{divider:1,unit:'second',numericIndex:1},{divider:60,unit:'minute',numericIndex:2},{divider:60,unit:'hour',numericIndex:3},{divider:24,unit:'day',numericIndex:4},{divider:30,unit:'month',numericIndex:5},{divider:12,unit:'year',numericIndex:6}];let time=seconds;let selectedUnit=timeUnits[0];for(const thisSelectedUnit of Object.values(timeUnits)){if(selectedUnit.unit!='second'&&Math.abs(time)<selectedUnit.divider){break;};selectedUnit=thisSelectedUnit;time/=selectedUnit.divider;};time=Math.trunc(time);return{time:time,unit:selectedUnit.unit};};static fuzzyRelativeTime(date,reference,options){const D1=new Date(date);const D2=(reference)?new Date(reference):new Date();options=OcUtilities.define(options,{});const timeData=this.__secondsToTimeUnit((D1.getTime()-D2.getTime())/1000);const rtf=new Intl.RelativeTimeFormat(OLEFA.environment.language,options);return rtf.format(timeData.time,timeData.unit);};}OcUtilities.errors={NO_ERRORS:0,CLIPBOARD_COPY_FAIL:58166,NATIVE_SHARE_UNSUPPORTED:55132};oc.OcUtilities=OcUtilities;"use strict";class OcOlefa{constructor(){this.modulesReady={};this.getRequestURLForFiles={queue:new Set(),cached:new Map(),running:false};this.fetchedFiles=new Map();jQuery(document).one('olefa-ready',()=>{this.initModules();this.refID=OLEFA.basics.generateID();if(!this.modulesReady.document){this.modulesReady.document=new OcManualpromise();}this.modulesReady.document.resolve();});}initFeatures(){this.features={localStorage:false,audio:{preferred:'audio/mp3',formats:{}},video:{preferred:'video/mp4',formats:{}},intersectionObserver:false,resizeObserver:false,wantsDarkmode:false,inputType:{color:false},nativeShare:false,supportsTouch:false,doNotTrack:false};try{localStorage.setItem('olefa-localStorage-enabled','true');localStorage.removeItem('olefa-localStorage-enabled');this.features.localStorage=true;}catch(error){};try{this.features.audio=this.checkMediaFormatCompatibility(['audio/mp3','audio/ogg']);}catch(error){};try{this.features.video=this.checkMediaFormatCompatibility(['video/mp4','video/webm']);}catch(error){};
2try{const test=new IntersectionObserver(function(){});this.features.intersectionObserver=true;}catch(error){};try{const test=new ResizeObserver(function(){});this.features.resizeObserver=true;}catch(error){};Object.defineProperty(this.features,'wantsDarkmode',{get:()=>{OLEFA.log.deprecated('Use OLEFA.environment.prefersDarkMode instead');return OLEFA.environment.prefersDarkMode;}});const testInput=document.createElement('input');testInput.setAttribute('type','color');this.features.inputType.color=(testInput.type=='color');if(navigator.share){this.features.nativeShare=true;}else{jQuery(document.body).attr('data-disable-native-share','');};if(typeof(window.ontouchstart)=='undefined'){this.features.supportsTouch=false;}else{jQuery(document.body).attr('data-supports-touch','');};if(typeof(navigator.doNotTrack)!='undefined'&&navigator.doNotTrack=='1'){this.features.doNotTrack=true;};};initModules(){this.mutations=new OcMutationobserver();this.errors=new OcOlefaErrors;this.basics=new OcBasic();this.log=new OcLog();this.css=new OcCss();this.js=new OcJs();this.storage=new OcStorage({encryptionKey:sessionid});this.i18n=new OcI18n();this.templateEngine=new OcTemplateengine();this.events=new OcEvents();this.crontab=new OcCron();this.upload=new oc.upload();this.fetch=new OcFetch();this.notifications=new OcNotifications();this.notifications.notificationsTray.appendTo(document.body);this.recaptcha=new OcRecaptcha({siteKey:Core.status.recaptchaSiteKey});this.users=new OcUsers();this.groups=new OcGroups();this.api=new OcOlefaApi();this.components=new OcComponentmanager();this.layoutWatcher=new OcMdLayout();this.snackbar=new OcSnackbars();this.touchEvents=new OcInteractivityTouchevents();this.mdParser=new OcMdParser();this.mdParser.forceCheck();this.tasks=new OcTasks();this.websocket=new OcWebsocketClient();this.initWebsocketEnvironment();this.wsConnect(sessionid);this.imageProcessing=new OcImageprocessing();this.filebucket=new OcInteractivityFilebucket('body');var CustomEvent=function(event,params){params=params||{bubbles:false,cancelable:false,detail:null};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;};CustomEvent.prototype=window.Event.prototype;this.CustomEvent=CustomEvent;this.errors.registerErrorCodes({AJAX_APILEVEL_CHECK_FAIL:1924,AJAX_SESSION_CHECK_FAIL:92856,AJAX_NO_URL:24101});this.adjustVhUnit();this.initEvents();};initEvents(){document.addEventListener('visibilitychange',this.__onVisibilityChange.bind(this),{passive:true});window.addEventListener('resize',this.__onNativeResize.bind(this),{passive:true});window.addEventListener('scroll',this.__onNativeScroll.bind(this),{passive:true});this.touchEvents.events.listen('*',this.__onTouchEvents__event.bind(this),this.refID);this.websocket.events.listen(OcWebsocketClient.events.AUTH_ERROR,this.__onWebsocket__authError.bind(this),this.refID);};__onVisibilityChange(ev){this.__trigger__visibilityChange();};__onNativeResize(e){this.adjustVhUnit();this.__trigger__resize(e);};__onNativeScroll(e){this.__trigger__scroll(e);};__onTouchEvents__event(data){if(data.data&&'touchData'in data.data){jQuery(data.data.touchData.target).trigger('oc-'+data.event,data.data);}};__onWebsocket__authError(){this.__trigger__sessionInvalid();}initWebsocketEnvironment(){if(this.environment.protocol=='https:'){this.websocket.protocol='wss';this.websocket.olefaProtocol='https';this.websocket.port=443;}else{this.websocket.protocol='ws';this.websocket.olefaProtocol='http';this.websocket.port=80;};this.websocket.host=this.environment.wshost;this.websocket.olefaHost=this.environment.hostname;this.websocket.path='/websocket/';};wsConnect(wsid){if(wsid){this.websocket.sessionId=wsid;this.websocket.connect();};};initEnvironment(options){this.environment=new OcOlefaEnvironment(options);};ajax(pOptions){return new Promise((resolve,reject)=>{const normalizedOptions={...{host:this.environment.siteURL(),url:'',mode:'',APILevel:0,data:{},onProgress:function(){},modifiers:{},returnHeaders:false},...pOptions};normalizedOptions.host=normalizedOptions.host||this.environment.siteURL();var url=normalizedOptions.host+normalizedOptions.path;const ajaxOptions={'url':url,'dataType':'json','method':'POST','data':{'mode':normalizedOptions.mode,'APILevel':normalizedOptions.APILevel,'com':com,'data':JSON.stringify(normalizedOptions.data)},'xhr':function(){var xhr=new window.XMLHttpRequest();xhr.upload.addEventListener('progress',function(){if(typeof(normalizedOptions.onProgress)=='function'){normalizedOptions.onProgress();};});return xhr;},beforeSend:(jqXHR,settings)=>{const headers=OLEFA.environment.getHeadersForRequest(normalizedOptions.host);for(const[key,value]of Object.entries(headers)){jqXHR.setRequestHeader(key,value);};},'success':(json,text,jqXHR)=>{if(json.status==0){if(normalizedOptions.returnHeaders){return resolve({data:json.data,headers:this.getResponseHeadersFromXHR(jqXHR)});}return resolve(json.data);}var errorCode=json.status;if(json.status==1){errorCode=this.errors.errorCodes.AJAX_APILEVEL_CHECK_FAIL;}else if(json.status==2){this.__trigger__sessionInvalid();errorCode=this.errors.errorCodes.AJAX_SESSION_CHECK_FAIL;}return reject(errorCode);},'error':(jqXHR,textStatus)=>{return reject(this.errors.ajaxToCode(textStatus));}};const ajaxOptionsFinal=OcObject.merge([ajaxOptions,normalizedOptions.modifiers]);jQuery.ajax(ajaxOptionsFinal);});};getResponseHeadersFromXHR(request){var headers=request.getAllResponseHeaders();var arr=headers.trim().split(/[\r\n]+/u);var headerMap={};arr.forEach(function(line){var parts=line.split(': ');var header=parts.shift();var value=parts.join(': ');if(header){headerMap[header]=value;};});return headerMap;};fetchHeaders(url){return new Promise((resolve,reject)=>{if(!url){return reject(this.errors.errorCodes.AJAX_NO_URL);};const absoluteUrl=OcDatatype.urlToAbsolute(url);const urlInstance=new URL(absoluteUrl);OLEFA.fetch.head({host:urlInstance.origin,path:urlInstance.pathname}).then(response=>{return resolve(response.headers);}).catch(error=>{return reject(error);});});};fetchJSON(url){return new Promise((resolve,reject)=>{if(!url){return reject(this.errors.errorCodes.AJAX_NO_URL);};jQuery.ajax(url,{dataType:'json',success:(data,type,response)=>{return resolve(data);},error:(xhr,textStatus)=>{return reject(this.errors.ajaxToCode(textStatus));}});});};ready(callback){this.waitForModule('document',callback);};async readyPromise(){await new Promise((resolve)=>{this.waitForModule('document',()=>{resolve();});});}waitForModule(module,onResolve,onReject){if(typeof(this.modulesReady[module])=='undefined'){this.modulesReady[module]=new OcManualpromise();};this.modulesReady[module].promise.then(()=>
2{if(typeof(onResolve)=='function'){onResolve();};}).catch((error)=>{if(typeof(onReject)=='function'){onReject();}else{setTimeout(function(){throw error;});};});};registerModule(module,init){if(typeof(module)=='undefined'){OLEFA.log.error('Modules must have an id');return;};if(typeof(this.modulesReady[module])=='undefined'){this.modulesReady[module]=new OcManualpromise();};const mp=this.modulesReady[module];this.waitForModule('document',function(){if(typeof(init)=='function'){try{init(mp.resolve.bind(mp),mp.reject.bind(mp));}catch(e){mp.reject(e);};};});};checkMediaFormatCompatibility(mimetypes){var results={preferred:'',formats:{}};const videoElement=document.createElement('video');for(var i=0;i<mimetypes.length;++i){results.formats[mimetypes[i]]={canPlay:videoElement.canPlayType(mimetypes[i])};if(!results.preferred&&results.formats[mimetypes[i]].canPlay){results.preferred=mimetypes[i];}else if(results.preferred&&results.formats[results.preferred].canPlay=='maybe'&&results.formats[mimetypes[i]].canPlay=='probably'){results.preferred=mimetypes[i];};};return results;};serveErrorSnack(error,snackbarProperties){let errorCode=0;let errorMessage='';if(error instanceof OcError){errorCode=error.code;errorMessage=OLEFA.errors.textFor(errorCode);}else if(OcDatatype.isLiteralObject(error)&&"errorCode"in error){OLEFA.serveErrorSnack(error.errorCode);}else if(error instanceof Error){errorCode=1;if("code"in error){errorCode=error.code;}errorMessage=error.message;}else if(error){const localErrorCode=OcDatatype.toInteger(error);if(Number.isFinite(localErrorCode)){errorCode=localErrorCode;errorMessage=OLEFA.errors.textFor(errorCode);}}else{errorCode=0;};if(errorCode==0||errorCode===null){return;};const normalizedProperties={...snackbarProperties,...{message:`${errorMessage} (${errorCode})`}};return OLEFA.snackbar.show(normalizedProperties,{tag:`error-${errorCode}`});};adjustVhUnit(){const viewportDimension=this.basics.viewportDimensions();const vh=viewportDimension.height*0.01;document.documentElement.style.setProperty('--vh',vh+'px');};fetchFile(path,options){const normalizedOptions={...{ignoreCache:false},...options};let promise=this.fetchedFiles.get(path);if(promise&&(promise.state=='pending'||(!normalizedOptions.ignoreCache&&promise.state=='resolved'))){return promise.promise;};promise=new OcManualpromise();this.fetchedFiles.set(path,promise);jQuery.ajax(path,{success:function(data,textStatus,jqXHR){return promise.resolve(data);},error:function(jqXHR,textStatus,errorThrown){return promise.reject(OLEFA.errors.ajaxToCode(textStatus));}});return promise.promise;};getRequestURLForFile(file,options){const normalizedOptions={...{ignoreCache:false},...options};if(!file){return Promise.reject(new OcError({code:OcOlefa.errors.MISSING_PARAMETER,data:{file:file,options:options},debugMessage:'OcOlefa.getRequestURLForFile: Missing file parameter',level:OcLog.defaults().loglevels.ERROR}));};let promise=this.getRequestURLForFiles.cached.get(file);if(promise&&(promise.state=='pending'||(!normalizedOptions.ignoreCache&&promise.state=='resolved'))){return promise.promise;};promise=new OcManualpromise();this.getRequestURLForFiles.cached.set(file,promise);this.getRequestURLForFiles.queue.add(file);this.__getRequestURLForFileLoop();return promise.promise;};__getRequestURLForFileLoop(){OLEFA.basics.deferOnce(this.refID+'id',()=>{if(this.getRequestURLForFiles.running){return;};this.getRequestURLForFiles.running=true;const files=Array.from(this.getRequestURLForFiles.queue.values());OcApiOlefa.getRequestURLForFiles(files).then((resolveData)=>{for(var file in resolveData){this.getRequestURLForFiles.queue.delete(file);const promise=this.getRequestURLForFiles.cached.get(file);if(promise){promise.resolve(resolveData[file]);};};}).catch((errorCode)=>{for(const file in files){this.getRequestURLForFiles.queue.delete(file);this.getRequestURLForFiles.cached.get(file);const promise=this.getRequestURLForFiles.cached.get(file);if(promise){promise.reject(errorCode);};this.getRequestURLForFiles.cached.delete(file);};OLEFA.serveErrorSnack(errorCode);}).finally(()=>{this.getRequestURLForFiles.running=false;if(this.getRequestURLForFiles.queue.size){this.__getRequestURLForFileLoop();};});});};__trigger__resize(data){this.events.trigger('resize',data);};__trigger__scroll(data){this.events.trigger('scroll',data);};__trigger__sessionInvalid(){this.events.trigger('session-invalid',undefined);};__trigger__visibilityChange(){this.events.trigger('visibility-change',{visible:(document.visibilityState==='visible')});};}OcOlefa.errors={MISSING_PARAMETER:30679};Oc.OcOlefa=OcOlefa;var OLEFA=new OcOlefa();OLEFA.initFeatures();"use strict";class OcOlefaApi{getNamedAccesslevels(){return OLEFA.ajax({path:'/ajax/olefa',mode:'list-named-accesslevel',APILevel:1});};getLoginImage(host){return OLEFA.ajax({host:host,path:'/ajax/olefa',mode:'get-login-image-url',APILevel:1});};getMedia(file){OLEFA.log.deprecated('Deprecated! Use OcApiOlefa.getRequestURLForFile instead');return OLEFA.ajax({path:'/ajax/olefa',mode:'get_media_2',APILevel:1,data:{file:file}});};getAppStoreVersion(os,app,version){return OLEFA.ajax({path:'/ajax/olefa',mode:'get_app_store_version',APILevel:1,data:{os:os,app:app,version:version}});};getLoginMethods(){return OLEFA.ajax({'path':'/ajax/olefa','mode':'get-login-methods','APILevel':1});};getToolLink(tool,mode,data){return OLEFA.ajax({'path':'/ajax/olefa','mode':'get-tool-link','APILevel':1,'data':{'tool':tool,'mode':mode,'data':JSON.stringify(data)}});};getOLEFAProperties(){OLEFA.log.deprecated('Use OcApiOlefa.getOLEFAProperties instead');return OLEFA.ajax({'path':'/ajax/olefa','mode':'get-olefa-properties','APILevel':1});};}oc.OcOlefaApi=OcOlefaApi;"use strict";class OcOlefaEnvironment extends OcComponent{constructor(properties){super(properties);}defaults(){return OcOlefaEnvironment.defaults();}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,protocol:{get:this.__getProtocol.bind(this),set:this.__setProtocol.bind(this)},hostname:{get:this.__getHostname.bind(this),set:this.__setHostname.bind(this)},sitename:{get:this.__getSitename.bind(this),set:this.__setSitename.bind(this)},wshost:{get:this.__getWshost.bind(this),set:this.__setWshost.bind(this)},port:{get:this.__getPort.bind(this),set:this.__setPort.bind(this)},language:{get:this.__getLanguage.bind(this),set:this.__setLanguage.bind(this)},javascript:{get:this.__getJavascript.bind(this),set:this.__setJavascript.bind(this)},stylesheets:{get:this.__getStylesheets.bind(this),set:this.__setStylesheets.bind(this)},htmlTemplates:{get:this.__getHtmlTemplates.bind(this),set:this.__setHtmlTemplates.bind(this)},langkit:{get:this.__getLangkit.bind(this),set:this.__setLangkit.bind(this)},resources:{get:this.__getResources.bind(this),set:this.__setResources.bind(this)},icons:{get:this.__getIcons.bind(this),set:this.__setIcons.bind(this)},bots:{get:this.__getBots.bind(this),set:this.__setBots.bind(this)},colorScheme:{get:this.__getColorScheme.bind(this),set:this.__setColorScheme.bind(this)},contrast:{get:this.__getContrast.bind(this),set:this.__setContrast.bind(this)},prefersDarkMode:{get:this.__getPrefersDarkMode.bind(this)},prefersContrast:{get:this.__getPrefersContrast.bind(this)},type:{get:this.__getType.bind(this)},platform:{get:this.__getPlatform.bind(this)},supportsShare:{get:this.__getSupportsShare.bind(this)},isIos:{get:this.__getIsIos.bind(this)},folders:{get:this.__getFolders.bind(this)},scrollbarWidth:{get:this.__getScrollbarWidth.bind(this)}};}__getProtocol(){return this.properties.protocol;}__setProtocol(value){this.properties.protocol=value;}__getHostname(){return this.properties.hostname;}__setHostname(value){this.properties.hostname=value;}__getSitename(){return this.properties.sitename;}__setSitename(value){this.properties.sitename=value;}__getWshost(){return this.properties.wshost;}__setWshost(value){this.properties.wshost=value;}__getPort(){return this.properties.port;}__setPort(value){this.properties.port=value;}__getLanguage(){return this.properties.language;}__setLanguage(value){this.properties.language=value;this.__handleHtmlNode();}__getJavascript(){return this.properties.javascript;}__setJavascript(value){this.properties.javascript=value;}__getStylesheets(){return this.properties.stylesheets;}__setStylesheets(value){this.properties.stylesheets=value;}__getHtmlTemplates(){return this.properties.htmlTemplates;}__setHtmlTemplates(value){this.properties.htmlTemplates=value;}__getLangkit(){return this.properties.langkit;}__setLangkit(value){this.properties.langkit=value;}__getResources(){return this.properties.resources;}__setResources(value){this.properties.resources=value;}__getIcons(){return this.properties.icons;}__setIcons(value){this.properties.icons=value;}__getBots(){return this.properties.bots;}__setBots(value){this.properties.bots=value;}__getColorScheme(){return this.properties.colorScheme;}__setColorScheme(value){this.properties.colorScheme=value;this.__handleLocalStorage();this.__updateBodyTag();this.__handleColors();}__getContrast(){return this.properties.contrast;}__setContrast(value){this.properties.contrast=value;this.__handleLocalStorage();this.__updateBodyTag();}__getPrefersDarkMode(){return this.__internals.colorSchemeMql.matches;}__getPrefersContrast(){return this.__internals.contrastMql.matches;}__getType(){let type;if(typeof cordova!='undefined'){type='cordova';}else{type='browser';const mqStandAlone='(display-mode: standalone)';if(window.matchMedia(mqStandAlone).matches){type='pwa';}};return type;}__getPlatform(){if(typeof cordova!='undefined'){return'app';}else{return'web';};}__getSupportsShare(){if(this.__getPlatform()=='app'){return typeof OcCapacitorShare!='undefined';}else{return typeof navigator.share!='undefined';}}__getIsIos(){return/iP(ad|hone|od)/.test(navigator.userAgent);}__getFolders(){return{javascript:this.__getJavascript(),stylesheets:this.__getStylesheets(),htmlTemplates:this.__getHtmlTemplates(),langkit:this.__getLangkit(),resources:this.__getResources(),icons:this.__getIcons(),bots:this.__getBots(),};}__getScrollbarWidth(){if(this.__internals.scrollbarWidth==null){const scrollbarWidth=this.__determineScrollbarWidth();this.__internals.scrollbarWidth=scrollbarWidth;}return this.__internals.scrollbarWidth;}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.colorSchemeMql=window.matchMedia('(prefers-color-scheme: dark)');this.__internals.contrastMql=window.matchMedia('(prefers-contrast: more)');this.__internals.scrollbarWidth=null;this.__internals.requestHeaders={};this.propertyHandlers.protocol=this.__setProtocol;this.propertyHandlers.hostname=this.__setHostname;this.propertyHandlers.sitename=this.__setSitename;this.propertyHandlers.wshost=this.__setWshost;this.propertyHandlers.port=this.__setPort;this.propertyHandlers.language=this.__setLanguage;this.propertyHandlers.javascript=this.__setJavascript;this.propertyHandlers.stylesheets=this.__setStylesheets;this.propertyHandlers.htmlTemplates=this.__setHtmlTemplates;this.propertyHandlers.langkit=this.__setLangkit;this.propertyHandlers.resources=this.__setResources;this.propertyHandlers.icons=this.__setIcons;this.propertyHandlers.bots=this.__setBots;this.propertyHandlers.colorScheme=this.__setColorScheme;this.propertyHandlers.contrast=this.__setContrast;}__initEvents(){super.__initEvents();OcUtilities.addListenerToMql(this.__internals.colorSchemeMql,this.__onColorSchemeMql__change.bind(this));OcUtilities.addListenerToMql(this.__internals.contrastMql,this.__onContrastMql__change.bind(this));}__onSelf__propertyChange(ev){switch(ev.property){case'protocol':case'hostname':case'port':{this.__trigger__siteUrlChange({changedPart:ev.property,siteUrl:OLEFA.environment.siteURL()});break;}default:break;}}__onColorSchemeMql__change(ev){this.__updateBodyTag();this.__handleColors();}__onContrastMql__change(ev){this.__updateBodyTag();}__initialize(properties){super.__initialize(properties);const normalizedProperties={...properties};const savedSettings=OcDatatype.fromJson(localStorage.getItem('OcEnvironment'))||{};if(savedSettings.colorScheme){normalizedProperties.colorScheme=savedSettings.colorScheme;}if(savedSettings.contrast){normalizedProperties.contrast=savedSettings.contrast;}this.__initEvents();this.__initProperties(normalizedProperties);this.__handleColors();}__determineScrollbarWidth(){var tempDiv=jQuery('<div>').css({width:'100px',height:'100px',overflow:'scroll',position:'absolute',top:'-9999px'});jQuery('body').append(tempDiv);var scrollbarWidth=tempDiv[0].offsetWidth-tempDiv[0].clientWidth;tempDiv.remove();return scrollbarWidth;}__handleColors(){OLEFA.ready(()=>{const textColor=OLEFA.css.getVar('--mdc-theme-on-surface');const surfaceColor=OLEFA.css.getVar('--mdc-theme-surface');const textLuminosity=OcColors.getRelativeLuminosity(textColor);const surfaceLuminosity=OcColors.getRelativeLuminosity(surfaceColor);const colorTransform=textLuminosity>surfaceLuminosity?OcColors.darken:OcColors.lighten;OLEFA.css.setVar('--mdc-theme-text-primary-on-light',textColor);OLEFA.css.setVar('--mdc-theme-text-primary-on-background',textColor);const secondaryColor=colorTransform(textColor,0.33).toRgbString();OLEFA.css.setVar('--mdc-theme-text-secondary-on-light',secondaryColor);OLEFA.css.setVar('--mdc-theme-text-secondary-on-background',secondaryColor);const hintColor=colorTransform(textColor,0.49).toRgbString();OLEFA.css.setVar('--mdc-theme-text-hint-on-light',hintColor);OLEFA.css.setVar('--mdc-theme-text-disabled-on-light',hintColor);OLEFA.css.setVar('--mdc-theme-text-icon-on-light',hintColor);OLEFA.css.setVar('--mdc-theme-text-hint-on-background',hintColor);OLEFA.css.setVar('--mdc-theme-text-disabled-on-background',hintColor);OLEFA.css.setVar('--mdc-theme-text-icon-on-background',hintColor);const rippleColor=OcColors.toTargetContrast('#888888',textColor,OcColors.CONTRAST_MINI
2MUMS.AA.BASE).toRgbString();OLEFA.css.setVar('--mdc-ripple-color',rippleColor);});}__handleLocalStorage(){localStorage.setItem('OcEnvironment',JSON.stringify({colorScheme:this.__getColorScheme(),contrast:this.__getContrast()}));}__handleHtmlNode(){OcUtilities.deferUntil(()=>{const node=document.documentElement;let language=this.__getLanguage();node.setAttribute("lang",language);},{condition:'repaint'});}__isSameOrigin(origin,target){const pageLocation=new URL(origin);const URL_HOST_PATTERN=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/;const isTargetAbsolutePath=OcUtilities.isAbsolutePath(target);const defaultProtocol=isTargetAbsolutePath?'':window.location.protocol;const defaultHost=isTargetAbsolutePath?'':window.location.host;const defaultPort=isTargetAbsolutePath?'':window.location.port;const urlMatch=URL_HOST_PATTERN.exec(target)||[];const urlparts={protocol:urlMatch[1]||defaultProtocol,host:urlMatch[2]||defaultHost,port:urlMatch[3]||defaultPort};function getDefaultPort(protocol){return{'http:':80,'https:':443}[protocol];}function portOf(location){return location.port||getDefaultPort(location.protocol||pageLocation.protocol);}return!!((urlparts.protocol&&(urlparts.protocol==pageLocation.protocol))&&(urlparts.host&&(urlparts.host==pageLocation.host))&&(urlparts.host&&(portOf(urlparts)==portOf(pageLocation))));}__updateBodyTag(){if(Core.status.darkmode_active||window.location.pathname.startsWith('/admin')){let scheme=this.__getColorScheme();if(scheme=='auto'){scheme=this.prefersDarkMode?'dark':'light';}else{const meta=document.querySelector('meta[name="color-scheme"]');if(meta){meta.content=scheme;}};document.body.setAttribute("data-color-scheme",scheme);}let contrast=this.__getContrast();if(contrast=='auto'){contrast=this.prefersContrast?'more':'less';};document.body.setAttribute("data-contrast",contrast);if(Core.status.devstation){document.body.setAttribute('data-devstation-active','');}}siteURL(){var url='';const protocol=this.__getProtocol();if(protocol){url+=protocol+'//';};const hostname=this.__getHostname();if(hostname){url+=hostname;};const port=this.__getPort();if(port){url+=':'+port;};return url;};setLang(langCode){this.language=langCode;};getHeadersForRequest(url){const headers={};for(const origin of Object.keys(this.__internals.requestHeaders)){if(origin!='*'&&!this.__isSameOrigin(origin,url)){continue;};for(const[header,value]of Object.entries(this.__internals.requestHeaders[origin])){headers[header]=value;};};return headers;}setRequestHeader(origin,key,value){if(origin!='*'&&!OcDatatype.isUrl(origin)){OLEFA.log.error('origin is not a URL',arguments);return;};if(!this.__internals.requestHeaders[origin]){this.__internals.requestHeaders[origin]={};};this.__internals.requestHeaders[origin][key]=value;}deleteRequestHeader(origin,key){if(!this.__internals.requestHeaders[origin]){OLEFA.log.info('No request headers found for given origin',arguments);return;};if(key=='*'){delete this.__internals.requestHeaders[origin];}else{delete this.__internals.requestHeaders[origin][key];}}__trigger__siteUrlChange(eventData){const event=new OcEvent({eventName:'site-url-change',data:eventData});this.__internals.events.triggerEvent(event);}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,protocol:'',hostname:'',sitename:'',wshost:'',port:0,language:navigator.language,javascript:'',stylesheets:'',htmlTemplates:'',langkit:'',resources:'',icons:'',bots:'',colorScheme:OcOlefaEnvironment.colorschemes.AUTO,contrast:OcOlefaEnvironment.contrasts.AUTO}};}}OcOlefaEnvironment.colorschemes={AUTO:'auto',LIGHT:'light',DARK:'dark'};OcOlefaEnvironment.contrasts={AUTO:'auto',MORE:'more',LESS:'less'};Oc.OcOlefaEnvironment=OcOlefaEnvironment;"use strict";class OcOlefaErrors{constructor(){this.errorCodes={};this.ajaxCodes={timeout:21605,error:93074,parsererror:6231};}init(){return new Promise((resolve,reject)=>{OLEFA.i18n.load('errors.json').then(()=>{this.registerErrorCodes({AJAX_TIMEOUT:this.ajaxCodes.timeout,AJAX_ERROR:this.ajaxCodes.error,AJAX_PARSEERROR:this.ajaxCodes.parsererror});return resolve();}).catch(reject);});};registerErrorCodes(errorCodes,options){const normalizedErrorCodes={...{},...errorCodes};const normalizedOptions={...{},...options};const prefix=OcUtilities.define(normalizedOptions.prefix,'');for(var key in normalizedErrorCodes){this.errorCodes[prefix+key]=normalizedErrorCodes[key];};};
2textFor(pErrorCode,data){const parsedErrorCode=Number(pErrorCode);const errorCode=(isNaN(parsedErrorCode))?this.errorCodes[pErrorCode]:parsedErrorCode;var message='';if(errorCode){message=OLEFA.i18n.get('error-message-'+errorCode);}else{message=OLEFA.i18n.get('error-message-unexpected');};if(typeof(data)=='object'){message=OLEFA.templateEngine.render(message,data);};return message;};ajaxToCode(errorString){return this.ajaxCodes[errorString];};}oc.OcOlefaErrors=OcOlefaErrors;OcOlefaErrors=OcOlefaErrors;"use strict";class OcRecaptcha{constructor(properties){this.siteKey='';this.APILoad=undefined;const normalizedProperties={siteKey:'',...properties};this.siteKey=normalizedProperties.siteKey;this.APILoad=undefined;}loadAPI(){if(!this.APILoad){this.APILoad=this.getAPIFromGoogle();}return this.APILoad;}getAPIFromGoogle(){return new Promise((resolve,reject)=>{jQuery(document).one('olefa-recaptcha-load',function(){resolve();});jQuery.getScript('https://www.google.com/recaptcha/api.js?onload=googleRecaptchaLoadedCallback&render=explicit&hl='+Core.status.sitelang);});};initInput(element){var Recaptcha=this;this.loadAPI().then(function(){var id=OLEFA.basics.generateID();jQuery('<div>').attr({id:'recaptcha-'+id,class:'olefa-input-recaptcha'}).insertAfter(element);var widgetID=grecaptcha.render('recaptcha-'+id,{sitekey:Recaptcha.siteKey,callback:function(response){Recaptcha.onRecaptchaSuccess(element,response);},"expired-callback":function(response){Recaptcha.onRecaptchaExpired(element);},theme:OLEFA.environment.colorScheme});jQuery(element).attr({'data-recaptchaID':id,'data-widgetID':widgetID});}).catch(function(reason){OLEFA.snackbar.show({"message":OLEFA.i18n.get('recaptcha_needed')+' '+reason});});};onRecaptchaSuccess(element,response){jQuery(element).val(response);};onRecaptchaExpired(element){jQuery(element).val('');};};var googleRecaptchaLoadedCallback=function(){jQuery(document).trigger('olefa-recaptcha-load');};oc.OcRecaptcha=OcRecaptcha;var grecaptcha;OLEFA.registerModule('librarys/jquery-plugins/jquery.dialog',function(resolve,reject){jQuery(document).on('closeDialog','div.headerdialog',function(){var jThis=jQuery(this);var stackOn=jThis.attr('data-stackon');if(stackOn){jQuery(stackOn).trigger('show','leftSlide');}jQuery(this).aniremove();}).on('closeAll','div.headerdialog',function(){var stackOn=jQuery(this).attr('data-stackon');jQuery(this).trigger('close');jQuery(stackOn).trigger('closeAll');}).on('hide','div.headerdialog',function(event,animation){jQuery(this).anihide(animation);}).on('show','div.headerdialog',function(event,animation){var jThis=jQuery(this);var stackOn=jThis.attr('data-stackon');if(stackOn){jQuery(stackOn).trigger('hide','leftSlide');}jQuery(this).anishow(animation);jQuery(this).focus();}).on('click','button.headerdialog-controls-close',function(){jQuery(this).trigger('close');}).on('errormessage','div.headerdialog',function(event,data){var text=data.message;if(data.errorcode){text+=' (Err-'+data.errorcode+')';};jQuery(this).find('div.headerdialog-messages').append('<div class="headerdialog-error" role="alert" aria-label="'+text+'"><p class="headerdialog-message">'+text+'</p><span class="headerdialog-error-close" role="button" aria-label="'+OLEFA.i18n.get('close')+'" tabindex="0">✖</span></div>');}).on('highlightmessage','div.headerdialog',function(event,data){jQuery(this).find('div.headerdialog-messages').append('<div class="headerdialog-highlight" role="alert" aria-label="'+text+'"><p class="headerdialog-message">'+data.message+'</p><span class="headerdialog-error-close" role="button">✖</span></div>');}).on('keypress','span.headerdialog-error-close',function(e){if(e.which==32){jQuery(this).trigger('click');jQuery(this).focus();}}).on('click','span.headerdialog-error-close',function(){jQuery(this).parent().aniremove();});return resolve();});function simple_dialog(pTitle,pMessage,pType){const dialog=new OcMdDialogAlert({title:pTitle});const jP=jQuery('<p></p>');jP.append(pMessage);dialog.content.append(jP);dialog.addButton({autoCloseDialog:true,value:'close',button:new OcMdButtonStandard({label:'Ok'})});dialog.base.on('oc-md-dialogs--close',function(e,data){dialog.base.detach().remove();});if(pType==2){dialog.base.addClass('oc-md-dialog-error');};dialog.base.appendTo('body');dialog.open();};function parse_dialog_error(pError){var message=pError.message;if(typeof(pError.code)!='undefined'&&pError.code!=''){message+=' (Errcode: '+pError.code+')';simple_dialog(pError.title,message,pError.type);}};function dialogheader(pparameters){var ariaReturnTo=undefined;return new Promise(function(resolve,reject){var parameters=(typeof(pparameters)!='undefined')?pparameters:{};var id=(typeof(parameters.id)!='undefined')?parameters.id:OLEFA.basics.generateID();var title=(typeof(parameters.title)!='undefined')?parameters.title:'';var content=(typeof(parameters.content)!='undefined')?parameters.content:'';ariaReturnTo=(typeof(parameters.ariaReturnTo)!='undefined')?parameters.ariaReturnTo:'';parameters.simpleClose=(typeof(parameters.simpleClose)!='undefined')?parameters.simpleClose:true;OLEFA.templateEngine.renderTemplate('DialogHeader.html',{'DIALOG_TITLE':title,'DIALOG_CONTENT':content}).then(function(html){var jHTML=jQuery(html);jHTML.attr('id',id);
2if(parameters.simpleClose){jHTML.find('div.headerdialog-controls').append('<button class="headerdialog-controls-close oljq-button">'+OLEFA.i18n.get('close')+'</button>');};if(parameters.videoHeader){jHTML.find('header.headerdialog-header').append('<video autoplay loop muted><source src="'+parameters.videoHeader+'"></video>');};if(parameters.customHeader){jHTML.find('header.headerdialog-header').html(parameters.customHeader);};if(parameters.buttons){var jFooter=jHTML.find('div.headerdialog-controls');for(var i=0;i<parameters.buttons.length;++i){var clickEvent=(parameters.buttons[i].classes&¶meters.buttons[i].classes.match('oljq-hold'))?'clickHold':'click';var jButton=jQuery('<button/>').attr('class',parameters.buttons[i].classes).html(parameters.buttons[i].label).on(clickEvent,{dialog:jHTML},parameters.buttons[i].onClick);if(parameters.buttons[i].defaultAction){jButton.attr('data-action-default','');};jFooter.append(jButton);};};if(ariaReturnTo){jHTML.data('ariaReturnTo',ariaReturnTo);};var onOpen=function(){return 0;};if(typeof(parameters.onOpen)=='function'){onOpen=parameters.onOpen;};var onClose=function(){return 0;};if(typeof(parameters.onClose)=='function'){onClose=parameters.onClose;};if(parameters.stackOn){jHTML.attr('data-stackon',parameters.stackOn);};jHTML.on('show',onOpen.bind(jHTML)).on('close',function(){var cancelClose=onClose.call(jHTML);if(!cancelClose){jQuery(this).trigger('closeDialog');if(ariaReturnTo){jQuery(ariaReturnTo).focus();}}else{jQuery(this).trigger('closeCancel',{result:cancelClose});}}).on('keypress',function(e){if(e.which==13){var jDefault=jQuery(this).find('[data-action-default]');if(jDefault.length){jDefault.get(0).click();};}});resolve(jHTML);});});};"use strict";class OcUiWebDialogAlertLegacy extends OcComponent{constructor(properties){super(properties);}defaults(){return OcUiWebDialogAlertLegacy.defaults();}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,dialog:{get:this.__getDialog.bind(this)}};}__getDialog(){return this.__internals.dialog;}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.stackedOn=null;this.__internals.dialog=new OcMdDialogAlert();this.propertyHandlers.id=this.setId;this.propertyHandlers.title=this.setTitle;this.propertyHandlers.content=this.setContent;this.propertyHandlers.headerImage=this.setHeaderImage;this.propertyHandlers.actions=this.addButton;this.propertyHandlers.closeOnClickScrim=this.setCloseOnClickScrim;this.propertyHandlers.onClose=this.setOnClose;this.propertyHandlers.onOpen=this.setOnOpen;}__initElements(){this.__internals.dom={base:this.__internals.dialog.base,content:this.__internals.dialog.content};this.__internals.dom.base.addClass('oc-ui-dialog oc-ui-web-dialog-alert-legacy');this.__internals.dom.content.addClass('oc-ui-dialog__content oc-ui-web-dialog-alert-legacy__content');}__initEvents(){super.__initEvents();this.__internals.dialog.events.listen('choice',this.__onDialog__choice.bind(this),this.refID).listen('close',this.__onDialog__close.bind(this),this.refID).listen('open',this.__onDialog__open.bind(this),this.refID);}__onDialog__choice(ev){this.__trigger__choice(ev);}__onDialog__close(ev){this.__internals.dialog.base.detach();this.__internals.events.triggerEvent(ev);if(this.__internals.stackedOn instanceof OcUiWebDialogAlertLegacy){this.__internals.stackedOn.open();this.__internals.stackedOn=null;};}__onDialog__open(ev){this.__trigger__open();}__initialize(properties){super.__initialize(properties);const normalizedProperties={...this.defaults().properties,...properties};if(!normalizedProperties.id){normalizedProperties.id=this.refID;};this.__initElements();this.__initEvents();if(!normalizedProperties.headerImage){normalizedProperties.headerImage=this.__getHeaderImageCSS();}this.__initProperties(normalizedProperties);this.__internals.dom.base.prop('olefa-object-reference',this);}__getHeaderImageCSS(){const jHeader=jQuery('<header></header>');jHeader.addClass('headerdialog-header').css('display','none').appendTo('body');const css=jHeader.css('background-image');jHeader.detach();return css;}__addDefaultAction(){this.__internals.dialog.addButton({autoCloseDialog:true,value:'close',button:new OcMdButtonStandard({label:'Ok',style:'containedFlush'})});}__findDialog(object){if(object instanceof OcUiWebDialogAlertLegacy){return object;}const type=Oc.getInstanceFromElement(jQuery(object));if(type&&type instanceof OcUiWebDialogAlertLegacy){return type;}return undefined;}setId(value){this.properties.id=value;this.__internals.dialog.base.attr('id',value);}setTitle(value){this.properties.title=value;this.__internals.dialog.title=value;}setContent(value){this.properties.content=value;this.__internals.dialog.content.html(value);}setHeaderImage(headerImage){this.properties.headerImage=headerImage;this.__internals.dialog.header.css({'background-image':this.properties.headerImage,'background-size':'cover','background-position':'center center','text-shadow':'0 0 5px black','color':'white'});this.__internals.dialog.content.css({'padding-top':20});}setCloseOnClickScrim(value){this.properties.closeOnClickScrim=value;}open(stackOn){const actions=this.__internals.dialog.buttons;const stack=this.__findDialog(stackOn);if(stack instanceof OcUiWebDialogAlertLegacy){this.__internals.stackedOn=stack;this.__internals.stackedOn.close('stacked');};if(!actions.length){this.__addDefaultAction();};this.__internals.dialog.open();}close(action){this.__internals.dialog.close(action);}addButton(buttonDefinition){this.__internals.dialog.addButton(buttonDefinition);}setOnOpen(fn){this.__internals.events.cancelAllFromScope([this.refID,'setOnOpen']);this.__internals.events.listen('open',fn,[this.refID,'setOnOpen']);}setOnClose(fn){this.__internals.events.cancelAllFromScope([this.refID,'setOnClose']);this.__internals.events.listen('close',fn,[this.refID,'setOnClose']);}__trigger__choice(eventData){const hackedEventData=eventData;hackedEventData.dialog=this;this.__internals.events.trigger('choice',hackedEventData);}__trigger__close(eventData){const event=new OcEvent({eventName:'close',data:eventData});this.__internals.events.triggerEvent(event);}__trigger__open(){const event=new OcEvent({eventName:'open',data:{}});this.__internals.events.triggerEvent(event);}destroy(){this.close();this.__internals.dialog.destroy();super.destroy();}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,id:'',title:'',headerImage:'',actions:[],content:'',closeOnClickScrim:false,onOpen:OcUtilities.doNothing,onClose:OcUtilities.doNothing,}};}}Oc.OcUiWebDialogAlertLegacy=OcUiWebDialogAlertLegacy;(function(){var capturedEvents=[];var capturing=false;function getEventTarget(event){return event.composedPath()[0]||event.target;}function captureEvent(e){if(capturing){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();capturedEvents.unshift(e);}}function hiddenOrInert(element){var el=element;const root=el.getRootNode();if(root instanceof ShadowRoot){return true;};while(el){if(el.style.display==='none'||el.getAttribute('inert')!==null)return true;el=el.parentElement;}return false;}function isFocusableElement(el){var tag=el.tagName;return(!hiddenOrInert(el)&&((/^a$/i.test(tag)&&el.href!=null)||(/^(button|textarea)$/i.test(tag)&&el.disabled!==true)||(/^input$/i.test(tag)&&/^(button|reset|submit|radio|checkbox)$/i.test(el.type)&&!el.disabled)||(!/^(button|input|textarea|
2select|a)$/i.test(tag)&&!Number.isNaN(Number.parseFloat(el.getAttribute('tabindex'))))||el.getAttribute('contenteditable')!=null));}function isNativeFocusable(el){var currentElement=getEventTarget(el);var tag=currentElement.tagName;return(!hiddenOrInert(currentElement)&&((/^(textarea)$/i.test(tag)&¤tElement.disabled!==true)||(/^input$/i.test(tag)&&!currentElement.disabled)||(/^select$/i.test(tag)&&!currentElement.disabled)));}function getLabelledElement(labelElement){var forId=labelElement.getAttribute('for');return forId?document.querySelector('#'+forId):labelElement.querySelector('button, input, keygen, select, textarea');}function getFocusableElement(e){var currentElement=getEventTarget(e);var focusableElement;while(!focusableElement&¤tElement!==null&¤tElement.nodeType===1){if(isFocusableElement(currentElement)){focusableElement=currentElement;}else if(/^label$/i.test(currentElement.tagName)){var labelledElement=getLabelledElement(currentElement);if(isFocusableElement(labelledElement)){focusableElement=labelledElement;}}currentElement=currentElement.parentElement||currentElement.parentNode}return focusableElement;}function handler(e){if(isNativeFocusable(e)){return;}var focusableElement=getFocusableElement(e);if(focusableElement){if(focusableElement===document.activeElement){e.preventDefault();}else{capturing=true;setTimeout(()=>{capturing=false;focusableElement.focus();while(capturedEvents.length>0){var event=capturedEvents.pop();getEventTarget(event).dispatchEvent(new MouseEvent(event.type,event));}},0);}}}if(/apple/i.test(navigator.vendor)){window.addEventListener('mousedown',handler,{capture:true});window.addEventListener('mouseup',captureEvent,{capture:true});window.addEventListener('click',captureEvent,{capture:true});}})();OLEFA.registerModule('librarys/aria',function(resolve,reject){const keyref={enter:13,escape:27,space:32,leftArrow:37,rightArrow:39,upArrow:38,downArrow:40,home:36,end:35,delete:46,tab:9};jQuery(document).on('click','button,[role="button"]',function(){var jThis=jQuery(this);if(jThis.parents('.oc-ui').length>0){return;}if(jThis.is('[aria-haspopup="true"]')&&!jThis.is('[aria-expanded="true"]')){jThis.attr('aria-expanded','true');var menuid=jThis.attr('aria-controls');var jMenu=jQuery('#'+menuid);var closeMenuWhenFocusLost=function(event){var jFocus=jQuery(document.activeElement);var parents=jFocus.parents();if(!parents.filter(jMenu).length){f.closeSubmenu.call(jMenu);jThis.attr('aria-expanded','false');jQuery(document).off('click keyup',closeMenuWhenFocusLost);};};jQuery(document).on('click keyup',closeMenuWhenFocusLost);f.openMenu.call(jMenu);};}).on('keydown','[role="button"]:not(button, a, [data-disable-auto-aria])',function(e){var jThis=jQuery(this);if(jThis.parents('.oc-ui').length>0){return;}var code=e.keyCode||e.which;if(code==keyref.space||code==keyref.enter){jQuery(this).trigger('click');e.preventDefault();}}).on('keydown','[role="tab"]:not(.ui-tabs-tab, .oc-aria-tab)',function(e){var jThis=jQuery(this);if(jThis.parents('.oc-ui').length>0){return;}var code=e.keyCode||e.which;var tabOrientation=jThis.parent().attr('aria-orientation')||'horizontal';if(code==keyref.rightArrow||(code==keyref.down&&tabOrientation=='vertical')){var nextTab=jThis.nextAll('[role="tab"]').first();if(!nextTab.length){nextTab=jThis.parent().children('[role="tab"]').first();};nextTab.trigger('focus').trigger('click');e.preventDefault();}else if(code==keyref.leftArrow||(code==keyref.up&&tabOrientation=='vertical')){var nextTab=jThis.prevAll('[role="tab"]').first();if(!nextTab.length){nextTab=jThis.parent().children('[role="tab"]').last();};nextTab.trigger('focus').trigger('click');e.preventDefault();}else if(code==keyref.home){var nextTab=jThis.parent().children('[role="tab"]').first();nextTab.trigger('focus').trigger('click');e.preventDefault();}else if(code==keyref.end){var nextTab=jThis.parent().children('[role="tab"]').last();nextTab.trigger('focus').trigger('click');e.preventDefault();};}).on('click','[role="tab"]:not(.ui-tabs-tab, .oc-aria-tab)',function(){const jThis=jQuery(this);if(jThis.parents('.oc-ui').length>0){return;}var id=jThis.siblings().attr({'aria-selected':'false','tabindex':'-1'}).end().attr({'aria-selected':'true','tabindex':'0'}).attr('aria-controls');jQuery('#'+id).siblings('[role="tabpanel"]').hide().end().show();}).on('keydown','div.headerdialog[role="dialog"]',function(e){var jThis=jQuery(this);if(jThis.parents('.oc-ui').length>0){return;}var code=e.keyCode||e.which;if(code==keyref.escape){jThis.trigger('close');e.stopPropagation();e.preventDefault();}}).on('focus','[role="menubar"]',function(){const jThis=jQuery(this);if(jThis.parents('.oc-ui').length>0){return;}jThis.find('[role="menuitem"]:first').trigger('focus');}).on('keydown','[role="menuitem"]',function(e){var jThis=jQuery(this);if(jThis.parents('.oc-ui').length>0){return;}var code=e.keyCode||e.which;var orientation=jThis.parents('[role="menu"]:first').attr('aria-orientation')||'horizontal';if(code==keyref.enter||code==keyref.space){jThis.trigger('click');}else if((code==keyref.downArrow&&orientation=='vertical')||(code==keyref.rightArrow&&orientation=='horizontal')){var nextTab=f.nextMenuItem.call(this,'forward');nextTab.children('[role="menuitem"]').trigger('focus');}else if((code==keyref.upArrow&&orientation=='vertical')||(code==keyref.leftArrow&&orientation=='horizontal')){var nextTab=f.nextMenuItem.call(this,'backward');nextTab.children('[role="menuitem"]').trigger('focus');}else if((code==keyref.rightArrow&&orientation=='vertical')||(code==keyref.downArrow&&orientation=='horizontal')){var jSubmenu=jQuery(this).siblings('[role="menu"]');if(jSubmenu.length){f.triggerMenuItemSubmenu.call(jQuery(this));}else{var jParents=jQuery(this).parents('[role="menu"]');
2if(jParents.length){var lastParent=jParents.last();var lastMenuItem=jQuery(this);jParents.each(function(){if(!jQuery(this).is(lastParent)){lastMenuItem=jQuery(this).siblings('[role="menuitem"]');lastMenuItem=f.closeSubmenu.call(jQuery(this));};});var nextTab=f.nextMenuItem.call(lastMenuItem,'forward');nextTab.children('[role="menuitem"]').trigger('focus');};};}else if((code==keyref.leftArrow&&orientation=='vertical')||(code==keyref.upArrow&&orientation=='horizontal')||(code==keyref.escape)){var jSubmenu=jQuery(this).parents('[role="menu"]:first');var jMenuItem=f.closeSubmenu.call(jSubmenu);jMenuItem.focus();};if(jQuery.inArray(code,[keyref.upArrow,keyref.downArrow,keyref.leftArrow,keyref.rightArrow])!=-1){e.preventDefault();}});var f={};f.closeMenuWhenFocusLost=function(event,jMenu){if(!jMenu.hasFocus()){f.closeSubmenu.call(jMenu);jQuery(document).off('click keypress',f.closeMenuWhenFocusLost);}};f.closeSubmenu=function(focus){var jMenuItem=this.attr('data-expanded','false').siblings('[role=menuitem]').attr('aria-expanded','false');if(!jMenuItem.length){var id=this.attr('id');if(id){jMenuItem=jQuery('[role="button"][aria-controls="'+id+'"]');};};return jMenuItem;};f.triggerMenuItemSubmenu=function(){this.attr('aria-expanded','true');var jSubmenu=this.siblings('[role="menu"]');f.openMenu.call(jSubmenu);};f.openMenu=function(){this.attr('data-expanded','true').find(':input:not(:disabled), a[href], [tabindex]').filter(':visible').first().trigger('focus');};f.nextMenuItem=function(direction){if(!this){return undefined;};var jLi=jQuery(this).parent();var nextTab=f.menuItemNext.call(jLi,direction);while(!nextTab.is(jLi)){var menuitem=nextTab.children('[role="menuitem"]');if(menuitem.length){break;};nextTab=f.menuItemNext.call(nextTab,direction);if(!nextTab.length){nextTab=f.menuItemNextReset.call(jLi,direction);};}return nextTab;};f.menuItemNext=function(direction){if(direction=='forward'){return this.next();}else{return this.prev();};};f.menuItemNextReset=function(direction){if(direction=='forward'){return this.parent().children().first();}else{return this.parent().children().last();};};return resolve();});"use strict";class OcStates extends OcComponent{constructor(properties){super(properties);}defaults(){return OcStates.defaults();}__interfaceDefinitions(){const definitions=super.__interfaceDefinitions();const that=this;definitions.activeStates={get:function(){return that.__internals.activeStates;}};definitions.definedStates={get:function(){return Object.keys(that.__internals.states);}};return definitions;}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states={};this.__internals.activeStates={};}define(parameters){const defaults={state:'',onGain:undefined,onLoss:undefined,onChange:undefined};const options=OcObject.assign(defaults,parameters);if(!options.state){OLEFA.log.warn('No state name given');return this;};if(this.__internals.states[options.state]){return this;};this.__internals.states[options.state]=options;return this;}hasState(state){if(!state){return false;}if(!this.__internals.activeStates[state]){return false;}return true;}delete(state){if(!state){return;};if(!this.__internals.states[state]){return;};if(this.__internals.activeStates[state]){delete this.__internals.activeStates[state];};delete this.__internals.states[state];}add(state,data){if(!this.__internals.states[state]){OLEFA.log.warn('Unknown state',state);return this;};if(this.__internals.activeStates[state]){return this;};this.__internals.activeStates[state]=1;const onGain=this.__internals.states[state].onGain;if(typeof onGain=='function'){onGain(data);};const onChange=this.__internals.states[state].onChange;if(typeof onChange=='function'){onChange(data);};this.__trigger__stateGain({state:state,data:data});this.__trigger__stateChange({state:state,data:data});return this;}state(state,data){if(!this.__internals.states[state]){OLEFA.log.warn('Unknown state',state);return;};this.removeAll(data);this.add(state,data);}remove(state,data){if(!this.__internals.states[state]){OLEFA.log.warn('Unknown state',state);return this;};if(!this.__internals.activeStates[state]){return this;};delete this.__internals.activeStates[state];const onLoss=this.__internals.states[state].onLoss;
2if(typeof onLoss=='function'){onLoss(data);};const onChange=this.__internals.states[state].onChange;if(typeof onChange=='function'){onChange(data);};this.__trigger__stateLoss({state:state,data:data});this.__trigger__stateChange({state:state,data:data});return this;}removeAll(data){for(var key in this.__internals.activeStates){this.remove(key,data);};}clear(state){if(!this.__internals.states[state]){OLEFA.log.warn('Unknown state',state);return;};delete this.__internals.activeStates[state];}clearAll(){for(var key in this.__internals.activeStates){this.clear(key);};}set(stateName,state){if(!stateName){return;};if(state){this.add(stateName);}else{this.remove(stateName);};}__trigger__stateGain(data){const normalizedData={...{state:'',data:null},...data};this.events.trigger('stateGain',normalizedData);}__trigger__stateChange(data){const normalizedData={...{state:'',data:null},...data};this.events.trigger('stateChange',normalizedData);}__trigger__stateLoss(data){const normalizedData={...{state:'',data:null},...data};this.events.trigger('stateLoss',normalizedData);}destroy(){this.events.destroy();this.clearAll();super.destroy();}static defaults(){const data=OcComponent.defaults();return data;}};oc.OcStates=OcStates;"use strict";class OcHtml{static __getAllElements(root){const elements=[];if(root instanceof Element&&root.shadowRoot){elements.push(...this.__getAllElements(root.shadowRoot));}const walker=document.createTreeWalker(root,NodeFilter.SHOW_ELEMENT,null);let node=walker.nextNode();while(node){if(node instanceof HTMLElement){const element=node;elements.push(element);if(element.shadowRoot){elements.push(...this.__getAllElements(element.shadowRoot));}}node=walker.nextNode();}return elements;}static __findNextTabbableElement(parameters){const normalizedParameters={ignoreChildrenOfReference:false,restrictToContainer:undefined,...parameters};const allElements=jQuery(this.__getAllElements(document));const allFocusableElements=allElements.filter((index,element)=>OcHtml.isFocusable(element));let relevantFocusableElements=jQuery();if(normalizedParameters.reference){relevantFocusableElements=jQuery(allFocusableElements);const indexOfReference=allElements.index(normalizedParameters.reference);const relevantElements=(normalizedParameters.direction=='next')?allElements.slice(indexOfReference+1):jQuery(allElements.slice(0,indexOfReference).get());relevantFocusableElements=relevantFocusableElements.filter(relevantElements);if(normalizedParameters.direction=='previous'){relevantFocusableElements=jQuery(relevantFocusableElements.get().reverse());}if(normalizedParameters.ignoreChildrenOfReference){const referenceNode=jQuery(normalizedParameters.reference).get(0);if(referenceNode){const childrenOfReference=jQuery(this.__getAllElements(referenceNode));relevantFocusableElements=relevantFocusableElements.not(childrenOfReference);}}};let allowedFocusableElements=jQuery(allFocusableElements);if(normalizedParameters.restrictToContainer){const restrictionNode=jQuery(normalizedParameters.restrictToContainer).get(0);if(restrictionNode){const containerChildren=jQuery(this.__getAllElements(restrictionNode));
2allowedFocusableElements=allowedFocusableElements.filter(containerChildren);relevantFocusableElements=relevantFocusableElements.filter(containerChildren);}}if(relevantFocusableElements.length>0){return relevantFocusableElements.eq(0);}else{if(normalizedParameters.direction=='next'){return allowedFocusableElements.eq(0);}else{return allowedFocusableElements.slice(-1).eq(0);}};}static __referenceOrFocusedElementToJQuery(reference){const normalizedReference=reference||OcHtml.getFocusedElement();if(!normalizedReference){return;};const jReference=jQuery(normalizedReference);return jReference;}static isVisible(jElement){const element=jQuery(jElement).get(0);if(!element){return false;};return jQuery.expr.pseudos.visible(element)&&!jQuery(element).parents().addBack().filter(function(){return(jQuery(this).css("visibility")==="hidden"||jQuery(this).css("display")==="none");}).length;}static isFocusable(jElement){const element=jQuery(jElement).get(0);if(!element){return false;};if(!jQuery(jElement).is(':visible')){return false;}const nodeName=element.nodeName.toLowerCase();const isFocusViaTabIndexPossible=!isNaN(element.tabIndex)&&element.tabIndex>=0;let isFocusable;switch(nodeName){case'area':{const specificElement=element;const map=specificElement.parentNode;const mapName=map?.nodeName;if(!("href"in element)||!mapName||map.nodeName.toLowerCase()!='map'){return false;};const img=jQuery(`img[usemap=#${mapName}]`).get(0);isFocusable=!!img&&OcHtml.isVisible(img);break;}case'input':case'select':case'textarea':case'button':{const subElement=element;isFocusable=!subElement.disabled;break;}case'a':{const subElement=element;isFocusable=(subElement.href.length>0)||isFocusViaTabIndexPossible;break;}default:{isFocusable=isFocusViaTabIndexPossible&&OcHtml.isVisible(element);}}return isFocusable;}static getMediaInstance(file,files){return new Promise(function(resolve,reject){OLEFA.fetchHeaders(file).then(function(headers){let contentType='video';const Regex=new RegExp(/^(.*)\/.*$/u,'u');if(headers['content-type']&&Regex.test(headers['content-type'])){const values=headers['content-type'].match(Regex);if(values&&values[1]&&["video","audio","image"].includes(values[1])){contentType=values[1];};};if(!['video','audio','image'].includes(contentType)){return reject('1197');}const constructors={'video':OcHtmlMediaVideo,'audio':OcHtmlMediaAudio,'image':OcHtmlMediaImage};if(!constructors[contentType]){return reject('1197');};const obj=new constructors[contentType]();obj.setOriginal(file);if(files){for(var i=0;i<files.length;i++){const sourceFile=OcUtilities.define(files[i].requestFile,files[i].file);obj.addSource(files[i].mimeType,sourceFile);}}return resolve(obj);}).catch(function(reason){return reject(reason);});});};static async getMediaInstanceViaOLEFA(file){if(!file){throw new OcError({code:OcHtml.errors.MISSING_PARAMETER,data:{parameters:{...arguments},},debugMessage:'OcHtml.getMediaInstanceViaOLEFA: Missing file parameter',level:OcError.defaults().loglevels.ERROR});};const resolveData=await OLEFA.getRequestURLForFile(file);if(resolveData.conversionState==0){const constructors={'video':OcHtmlMediaVideo,'audio':OcHtmlMediaAudio,'image':OcHtmlMediaImage};if(!constructors[resolveData.type]){throw new OcError({code:OcHtml.errors.UNSUPPORTED_FILE_TYPE,data:{parameters:{...arguments},serverResponse:resolveData},debugMessage:'OcHtml.getMediaInstanceViaOLEFA: File is not of a media type',level:OcError.defaults().loglevels.ERROR});};const obj=new constructors[resolveData.type]();for(var entry of Object.entries(resolveData.sources)){if(entry[0]=='original'){obj.setOriginal(OLEFA.environment.siteURL()+entry[1].requestURL);}else{obj.addSource(entry[1].mimeType,OLEFA.environment.siteURL()+entry[1].requestURL);};};return obj;};const obj=new OcHtmlMediaConverting();obj.setFile(file);return obj;};static encodeEntities(html){html=html||'';return html.replace(/&/gu,'&').replace(/"/gu,'"').replace(/'/gu,''').replace(/</gu,'<').replace(/>/gu,'>')};static decodeEntities(html){var txt=document.createElement('textarea');txt.innerHTML=html;return txt.value};static getFocusedElement(){let focusedElement=null;if(document.hasFocus()&&document.activeElement!==document.body&&document.activeElement!==document.documentElement){focusedElement=document.activeElement};if(focusedElement?.shadowRoot){focusedElement=focusedElement.shadowRoot.activeElement}return focusedElement}static hasFocus(element){const jElement=jQuery(element);return(jElement.is(':focus')||jElement.find(':focus').length>0)};static setAttributeIfTrue(condition,element,attribute,value){if(condition){jQuery(element).attr(attribute,value)}else{jQuery(element).removeAttr(attribute)}};static setAttributesIfTrue(element,attributes){const toSet={};const toRemove=[];for(const[attributeName,attributeData]of Object.entries(attributes)){if(attributeData.condition){toSet[attributeName]=attributeData.value}else{toRemove.push(attributeName)}};jQuery(element).attr(toSet).removeAttr(toRemove.join(' '))}static setAttributesIfTrueHelper(values){const attributes={};for(const value of values){if(value.type=='boolean'){attributes[value.property]={condition:value.value,value:''}}else if(value.type=='string'){attributes[value.property]={condition:value.value.length>0,value:value.value}}};return attributes}static setClassIfTrue(condition,element,classes){if(condition){jQuery(element).addClass(classe
2s)}else{jQuery(element).removeClass(classes)}};static detachIfInside(detachee,container){if(OcUtilities.isElementInElement(detachee,container)){jQuery(detachee).detach()}}static getComputedStyles(element,properties){const node=jQuery(element).get(0);if(!node){return{}};let output={};const computedStyle=window.getComputedStyle(node);for(const property of properties){const value=computedStyle.getPropertyValue(property);output[property]=value};return output}static getRelativePositionBetweenElements(element1,element2){const fallbackOffset={left:0,top:0};const element1Offset=jQuery(element1).offset()||{...fallbackOffset};const element2Offset=jQuery(element2).offset()||{...fallbackOffset};return{left:element2Offset.left-element1Offset.left,top:element2Offset.top-element1Offset.top,}}static getRelativeBoundingRect(element,container){const jElement=jQuery(element);const elementSize={width:jElement.outerHeight()||0,height:jElement.outerWidth()||0,};const relativePosition=this.getRelativePositionBetweenElements(container,element);return{bottom:relativePosition.top+elementSize.height,height:elementSize.height,left:relativePosition.left,right:relativePosition.left+elementSize.width,top:relativePosition.top,width:elementSize.width,x:relativePosition.left,y:relativePosition.top}}static scrollIntoView(element,options){let normalizedElement;if(OcDatatype.isJQuery(element)){normalizedElement=element.get(0)}else{normalizedElement=element};if(!normalizedElement){return};normalizedElement.scrollIntoView(options)}static scrollIntoViewUntilStable(element,parameters){let normalizedElement;if(OcDatatype.isJQuery(element)){normalizedElement=element.get(0)}else{normalizedElement=element};if(!normalizedElement){return};const scrollIntoViewOptions={behavior:"instant",block:'center',inline:'center'};OcHtml.scrollIntoView(element,scrollIntoViewOptions);if(OcHtml.isInViewport(normalizedElement)){const jobId=`${OcUtilities.generateID()}--detect-stable-scrollto`;const MINIMUM_STABILITY_DURATION=1;const DEFAULT_STABILITY_DURATION=250;const stabilityDetection=Math.max(parameters?.stableAfterMs||DEFAULT_STABILITY_DURATION,MINIMUM_STABILITY_DURATION);const recreateStabilityDetection=()=>{OLEFA.crontab.removeJob(jobId);OLEFA.crontab.addJob({id:jobId,inMS:stabilityDetection,instances:1,tries:0,onTick:()=>{offViewportObserver.unobserve(normalizedElement);return true}})};const offViewportObserver=new IntersectionObserver((entries)=>{for(const entry of entries){if(!entry.isIntersecting){OcHtml.scrollIntoView(element,scrollIntoViewOptions);recreateStabilityDetection()}}},{threshold:0});offViewportObserver.observe(normalizedElement);recreateStabilityDetection()}}static focusNext(reference,ignoreChildrenOfReference=false,restrictToContainer){const jReference=OcHtml.__referenceOrFocusedElementToJQuery(reference);const jElement=OcHtml.__findNextTabbableElement({direction:'next',ignoreChildrenOfReference:ignoreChildrenOfReference,reference:jReference,restrictToContainer:restrictToContainer});jElement.trigger('focus')}static focusPrevious(reference,ignoreChildrenOfReference=false,restrictToContainer){const jReference=OcHtml.__referenceOrFocusedElementToJQuery(reference);const jElement=OcHtml.__findNextTabbableElement({direction:'previous',ignoreChildrenOfReference:ignoreChildrenOfReference,reference:jReference,restrictToContainer:restrictToContainer});jElement.trigger('focus')}static removeConsecutiveBrTags(html){const jHtml=jQuery(`<div>${html}</div>`);jHtml.find('br').each((index,element)=>{const nextSibling=element.nextSibling;if(nextSibling instanceof HTMLElement){if(nextSibling.tagName.toLowerCase()=='br'){element.remove()}}});return jHtml.html()}static clickOnElement(element,options){let normalizedElement;if(OcDatatype.isJQuery(element)){normalizedElement=element.get(0)}else{normalizedElement=element};if(!normalizedElement){return};const ev=new MouseEvent('click',options);normalizedElement.dispatchEvent(ev)}static findParent(element,findPredicate){let ancestorElement=element;while(ancestorElement!==null&&!findPredicate(ancestorElement)){ancestorElement=ancestorElement.parentElement}return ancestorElement}static isInViewport(element){let normalizedElement;if(element instanceof HTMLElement){normalizedElement=element}else if(typeof jQuery==='function'&&element instanceof jQuery){normalizedElement=element.get(0)};if(!normalizedElement){return false};const rect=normalizedElement.getBoundingClientRect();return(rect.top>=0&&rect.left>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&rect.right<=(window.innerWidth||document.documentElement.clientWidth))}}OcHtml.errors={MISSING_PARAMETER:17112,UNSUPPORTED_FILE_TYPE:77267};Oc.OcHtml=OcHtml;"use strict";class HTMLOcElement extends HTMLElement{constructor(){super();this.__initialized=false;this.__dom={};this.__elements={};this.__templates={};this.__preparedTemplates={};this.__refId=OcUtilities.generateID();this.attachShadow(this.__getShadowRootInit())}
2__getShadowRootInit(){return{mode:'open'}}__getCssFiles(){return[]}__generateCss(){return''};__generateTemplates(){}__createTemplate(html){const templateHolder=document.createElement('template');templateHolder.innerHTML=html;return templateHolder}__generateCssFileLinks(){if(!this.shadowRoot){return};for(const file of this.__getCssFiles()){let style=document.createElement('link');style.setAttribute('rel','stylesheet');style.setAttribute('href',file);this.shadowRoot.append(style)}}__generateHtmlFromTemplate(id){return this.__preparedTemplates[id]?.content.cloneNode(true).firstChild}__initialize(){this.role||(this.role='presentation');this.__generateCssFileLinks();this.__generateTemplates();OcObject.forEach(this.__templates,(key,value)=>{this.__preparedTemplates[key]=this.__createTemplate(value)});if(this.shadowRoot){};this.__initialized=true}__onObservedAttributeChange(attribute,oldValue,newValue){}__handleHtmlChanges(){}__initEvents(){}connectedCallback(){if(!this.__initialized){this.__initialize();this.__initEvents();this.__handleHtmlChanges()}}attributeChangedCallback(name,oldValue,newValue){if(oldValue!=newValue){this.__onObservedAttributeChange(name,oldValue,newValue)}}static get observedAttributes(){return[]}}oc.HTMLOcElement=HTMLOcElement;"use strict";class HTMLOcUiElement extends HTMLOcElement{constructor(){super(...arguments);this.__srLabel='';this.__labelledBy=null;this.__srDescription=null;this.__describedBy=null;this.__controls=null}__getShadowRootInit(){const inheritedInit=super.__getShadowRootInit();return{...inheritedInit,delegatesFocus:true}}get srLabel(){return this.__srLabel}set srLabel(value){this.__srLabel=value;this.__handleHtmlChanges();this.__handleUiElement()}get labelledBy(){return this.__labelledBy}set labelledBy(value){this.__labelledBy=value;this.__handleHtmlChanges();this.__handleUiElement()}get srDescription(){return this.__srDescription}set srDescription(value){this.__srDescription=value;this.__handleHtmlChanges();this.__handleUiElement()}get describedBy(){return this.__describedBy}set describedBy(value){this.__describedBy=value;this.__handleHtmlChanges();this.__handleUiElement()}get controls(){return this.__controls}set controls(value){this.__controls=value;this.__handleHtmlChanges();this.__handleUiElement()}__initialize(){super.__initialize();if(this.shadowRoot){const mainElement=this.__generateUiComponent();this.__elements.mainElement=mainElement;const mainElementNode=mainElement.base.get(0);if(mainElementNode){this.shadowRoot.appendChild(mainElementNode)}this.__handleUiElement()}}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'sr-label':this.srLabel=newValue;break;case'labelledby':this.labelledBy=newValue;break;case'sr-description':this.srDescription=newValue;break;case'describedby':this.describedBy=newValue;break;case'controls':this.controls=newValue;break}}__handleHtmlChanges(){super.__handleHtmlChanges();if(!this.__initialized){return}const ariaLabel=OcDatatype.coerceValueToType('string',this.srLabel,(value=>value?.node.textContent||''));const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'sr-label',value:ariaLabel},{type:'string',property:'labelledby',value:this.labelledBy||''},{type:'string',property:'sr-description',value:this.srDescription||''},{type:'string',property:'describedby',value:this.describedBy||''},{type:'string',property:'controls',value:this.controls||''}]);OcHtml.setAttributesIfTrue(this,hostAttributes)}__handleUiElement(){const element=this.__getUiComponent();if(!this.__initialized){return}element.ariaLabel=this.srLabel;element.ariaLabelledBy=this.labelledBy;element.ariaDescription=this.srDescription;element.ariaDescribedBy=this.describedBy;element.ariaControls=this.controls}__getUiComponent(){return this.__elements.mainElement}connectedCallback(){super.connectedCallback();this.__handleUiElement()}static get observedAttributes(){return[...HTMLOcElement.observedAttributes,'sr-label','labelledby','sr-description','describedby','controls']}}Oc.HTMLOcUiElement=HTMLOcUiElement;"use strict";class HTMLOcButtonElement extends HTMLOcUiElement{constructor(){super(...arguments);this.__label='';this.__icon='';this.__styling='flat';this.__disabled=false;this.__iconPosition='leading';this.__type='button'}__getShadowRootInit(){const inheritedInit=super.__getShadowRootInit();return{...inheritedInit,delegatesFocus:true}}get label(){return this.__label}set label(value){const callHandlers=()=>{this.__handleHtmlChanges();this.__handleUiElement()};if(this.__label instanceof OcNodeText){this.__label.events.cancelAllFromScope(this.__refId)}if(value instanceof OcNodeText){value.events.listen('render',()=>{callHandlers()},this.__refId)}this.__label=value;callHandlers()}get icon(){return this.__icon}set icon(value){this.__icon=value;this.__handleHtmlChanges();this.__handleUiElement()}get styling(){return this.__styling}set styling(value){this.__styling=value;this.__handleHtmlChanges();this.__handleUiElement()}get disabled(){return this.__disabled}set disabled(value){this.__disabled=value;this.__handleHtmlChanges();this.__handleUiElement()}get iconPosition(){return this.__iconPosition}set iconPosition(value){this.__iconPosition=value;this.__handleHtmlChanges();this.__handleUiElement()}get type(){return this.__type}set type(value){this.__type=value;this.__handleHtmlChanges();this.__handleUiElement()}__getCssFiles(){return[...super.__getCssFiles(),`${OLEFA.environment.folders.stylesheets}/compiled/libMaterialDesign.compiled.css`]}__initialize(){super.__initialize();this.__attachedInternals=this.attachInternals()}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'label':this.label=newValue||'';break;case'icon':this.icon=newValue||'';break;case'styling':if(OcArray.has(Object.values(OcMdButtonStandard.styles),newValue)){this.styling=newValue}break;case'disabled':this.disabled=newValue!=null;break;case'icon-position':if(OcArray.has(Object.values(OcMdButtonStandard.iconPositions),newValue)){this.iconPosition=newValue}break;case'type':if(OcArray.has(Object.values(OcMdButtonStandard.types),newValue)){this.type=newValue}break}}__handleHtmlChanges(){super.__handleHtmlChanges();if(!this.__initialized){return}const normalizedLabel=this.label instanceof OcNodeText?this.label.node.textContent:this.label;const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'label',value:normalizedLabel},{type:'string',property:'icon',value:this.icon},{type:'string',property:'styling',value:this.styling},{type:'boolean',property:'disabled',value:this.disabled},{type:'string',property:'icon-position',value:this.iconPosition},{type:'string',property:'type',value:this.type}]);OcHtml.setAttributesIfTrue(this,hostAttributes)}__handleUiElement(){super.__handleUiElement();if(!this.__initialized){return}const element=this.__getUiComponent();element.label=this.label;element.icon=this.icon;element.style=this.styling;element.disabled=this.disabled;element.iconPosition=this.iconPosition;
2element.type=this.type}__initEvents(){this.__elements.mainElement.events.listen('click',()=>{this.__onMainElementClick()})}__onMainElementClick(){if(this.type!=OcMdButtonStandard.types.SUBMIT){return}const attachedForm=this.__attachedInternals?.form;if(!attachedForm){return}attachedForm.requestSubmit()}__generateUiComponent(){return new OcMdButtonStandard()}__getUiComponent(){return this.__elements.mainElement}static get observedAttributes(){return[...HTMLOcUiElement.observedAttributes,'label','icon','styling','disabled','icon-position','type']}}HTMLOcButtonElement.formAssociated=true;OLEFA.ready(()=>{customElements.define('oc-button',HTMLOcButtonElement)});Oc.HTMLOcButtonElement=HTMLOcButtonElement;"use strict";class HTMLOcButtonHoldElement extends HTMLOcButtonElement{constructor(){super(...arguments);this.__holdDelay=HTMLOcButtonHoldElement.__uiDefaults.properties.holdDelay}get holdDelay(){return this.__holdDelay}set holdDelay(value){this.__holdDelay=value;this.__handleHtmlChanges();this.__handleUiElement()}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'hold-delay':this.holdDelay=Number(newValue);break}}__handleHtmlChanges(){super.__handleHtmlChanges();if(!this.__initialized){return}const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'hold-delay',value:String(this.holdDelay)}]);OcHtml.setAttributesIfTrue(this,hostAttributes)}__handleUiElement(){super.__handleUiElement();if(!this.__initialized){return}const element=this.__getUiComponent();element.holdDelay=this.holdDelay}__generateUiComponent(){return new OcMdButtonStandardHold()}__getUiComponent(){return this.__elements.mainElement}static get observedAttributes(){return[...HTMLOcButtonElement.observedAttributes,'hold-delay']}}HTMLOcButtonHoldElement.__uiDefaults=OcMdButtonStandardHold.defaults();OLEFA.ready(()=>{customElements.define('oc-button-hold',HTMLOcButtonHoldElement)});Oc.HTMLOcButtonHoldElement=HTMLOcButtonHoldElement;"use strict";class HTMLOcButtonIconElement extends HTMLOcUiElement{constructor(){super(...arguments);this.__label='';this.__icon='';this.__size=48;this.__paddingRatio=0.5;this.__disabled=false;this.__hasPopup=null;this.__srExpanded=null}__getShadowRootInit(){const inheritedInit=super.__getShadowRootInit();return{...inheritedInit,delegatesFocus:true}}get label(){return this.__label}set label(value){this.__label=value;this.__handleHtmlChanges();this.__handleUiElement()}get icon(){return this.__icon}set icon(value){this.__icon=value;this.__handleHtmlChanges();this.__handleUiElement()}get size(){return this.__size}set size(value){this.__size=value;this.__handleHtmlChanges();this.__handleUiElement()}get paddingRatio(){return this.__paddingRatio}set paddingRatio(value){this.__paddingRatio=value;this.__handleHtmlChanges();this.__handleUiElement()}get disabled(){return this.__disabled}set disabled(value){this.__disabled=value;this.__handleHtmlChanges();this.__handleUiElement()}get hasPopup(){return this.__hasPopup}set hasPopup(value){this.__hasPopup=value;this.__handleHtmlChanges();this.__handleUiElement()}get srExpanded(){return this.__srExpanded}set srExpanded(value){this.__srExpanded=value;this.__handleHtmlChanges();this.__handleUiElement()}__getCssFiles(){return[...super.__getCssFiles(),`${OLEFA.environment.folders.stylesheets}/compiled/libMaterialDesign.compiled.css`]}__initialize(){super.__initialize()}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'label':this.label=newValue||'';break;case'icon':this.icon=newValue||'';break;case'size':this.size=Number(newValue);break;case'padding-ratio':this.paddingRatio=Number(newValue);break;case'disabled':this.disabled=newValue!=null;break;case'has-popup':if(newValue==null||OcArray.has(OcMdButtonIcon.constraints.hasPopup.values,newValue)){this.hasPopup=newValue}break;case'sr-expanded':this.srExpanded=newValue!=null;break}}__handleHtmlChanges(){super.__handleHtmlChanges();if(!this.__initialized){return}const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'label',value:this.label},{type:'string',property:'icon',value:this.icon},{type:'string',property:'size',value:String(this.size||'')},{type:'string',property:'padding-ratio',value:String(this.paddingRatio||'')},{type:'boolean',property:'disabled',value:this.disabled},{type:'string',property:'has-popup',value:String(this.hasPopup||'')},{type:'string',property:'sr-expanded',value:String(this.srExpanded||'')}]);OcHtml.setAttributesIfTrue(this,hostAttributes)}__handleUiElement(){super.__handleUiElement();if(!this.__initialized){return}const element=this.__getUiComponent();element.label=this.label;element.icon=this.icon;element.size=this.size;element.paddingRatio=this.paddingRatio;element.disabled=this.disabled;element.hasPopup=this.hasPopup;element.ariaExpanded=this.srExpanded}__generateUiComponent(){return new OcMdButtonIcon()}__getUiComponent(){return this.__elements.mainElement}static get observedAttributes(){return[...HTMLOcUiElement.observedAttributes,'label','icon','size','padding-ratio','disabled','has-popup','sr-expanded']}}OLEFA.ready(()=>{customElements.define('oc-button-icon',HTMLOcButtonIconElement)});Oc.HTMLOcButtonIconElement=HTMLOcButtonIconElement;"use strict";class HTMLOcButtonIconShareElement extends HTMLOcButtonIconElement{constructor(){super(...arguments);this.__icon='md:share';this.__hasPopup='menu';this.__shareTitle='';this.__shareLink='';this.__shareMedia='';this.__services=null}get shareTitle(){return this.__shareTitle}set shareTitle(value){this.__shareTitle=value;this.__handleHtmlChanges()}get shareLink(){return this.__shareLink}set shareLink(value){this.__shareLink=value;this.__handleHtmlChanges()}get shareMedia(){return this.__shareMedia}set shareMedia(value){this.__shareMedia=value;this.__handleHtmlChanges()}get services(){return this.__services}set services(value){this.__services=value;this.__handleHtmlChanges();this.__handleMenuListItemElements()}__getCssFiles(){return[...super.__getCssFiles(),`${OLEFA.environment.folders.stylesheets}/customElements/button/icon.css`]}__initialize(){super.__initialize();const generalLangkit=OLEFA.i18n.load('general.json');this.controls=`${this.__elements.mainElement.refID}--menu`;this.srExpanded=false;if(this.shadowRoot){const menuElement=new OcMdMenuList();this.__elements.menuElement=menuElement;const menuElementNode=menuElement.base.get(0);if(menuElementNode){this.shadowRoot.appendChild(menuElementNode)}menuElement.focusOnOpen='first-item';menuElement.anchorNode=this;menuElement.deferUntil(()=>{menuElement.base.attr('id',`${this.__elements.mainElement.refID}--menu`);menuElement.base.addClass('menu-element')},{condition:'repaint'});menuElement.events.listen('open',()=>{OcUtilities.deferUntil(()=>{menuElement.list.items.find(x=>x.visible)?.base.trigger('focus')},{condition:'repaint'})});const shareOptions=Object.entries(HTMLOcButtonIconShareElement.__services).map(([key,value])=>{return{icon:value.icon,label:value.label,value:key}});for(const shareOption of shareOptions){const shareItem=new OcMdListitemSingleline(shareOption);menuElement.list.addItem(shareItem);generalLangkit.finally(()=>{shareItem.label=OLEFA.i18n.get(shareOption.label)});shareItem.deferUntil(()=>{shareItem.base.addClass(`share-item-element share-item-element-${shareOption.value.toLowerCase()}`)},{condition:'repaint'})}this.__handleMenuListItemElements()}}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'share-title':this.shareTitle=newValue||'';break;case'share-link':this.shareLink=newValue||'';break;case'share-media':this.shareMedia=newValue||'';break;case'services':this.services=newValue;break}}__handleHtmlChanges(){super.__handleHtmlChanges();if(!this.__initialized){return}const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'share-title',value:this.shareTitle},{type:'string',property:'share-link',value:this.shareLink},{type:'string',property:'share-media',value:this.shareMedia}
2,{type:'string',property:'services',value:this.services||''}]);OcHtml.setAttributesIfTrue(this,hostAttributes)}__handleUiElement(){super.__handleUiElement();if(!this.__initialized){return}const element=this.__getUiComponent()}__handleMenuListItemElements(){if(!this.__elements.menuElement){return}const servicesToBeEnabled=this.services;if(servicesToBeEnabled===null||servicesToBeEnabled==''){const forcedEnabled=servicesToBeEnabled===null;for(const item of this.__elements.menuElement.list.items){if("value"in item){if(item.value=='NATIVE_SHARE'){item.visible=forcedEnabled&&OLEFA.features.nativeShare}else{item.visible=forcedEnabled}}}}else{const servicesToBeEnabledArray=servicesToBeEnabled.split(' ').map(service=>service.toLowerCase());for(const item of this.__elements.menuElement.list.items){if("value"in item){if(item.value=='NATIVE_SHARE'){item.visible=OLEFA.features.nativeShare&&servicesToBeEnabledArray.includes(item.value.toLowerCase())}else{item.visible=servicesToBeEnabledArray.includes(item.value.toLowerCase())}}}}}__initEvents(){super.__initEvents();this.__elements.mainElement.events.listen('click',this.__onMainElement__click.bind(this));this.__elements.menuElement.events.listen('close',this.__onMenuElement__close.bind(this)).listen('open',this.__onMenuElement__open.bind(this)).listen('select',this.__onMenuElement__select.bind(this))}__onMainElement__click(ev){const adjustedX=OcUtilities.define(ev.nativeEvent.clientX,this.offsetLeft);const adjustedY=OcUtilities.define(ev.nativeEvent.clientY,this.offsetTop);this.__elements.menuElement.openAbsolute(adjustedX,adjustedY)}__onMenuElement__close(ev){this.srExpanded=false}__onMenuElement__open(ev){this.srExpanded=true}__onMenuElement__select(ev){const service=ev.data.value;const services=HTMLOcButtonIconShareElement.__services;if(!OcArray.has(OcObject.keys(services),service)){return}const serviceData=services[service];switch(service){case'NATIVE_SHARE':OcUtilities.nativeShare({title:this.shareTitle,url:this.shareLink}).catch(e=>{OLEFA.serveErrorSnack(e)});break;case'CLIPBOARD':OcUtilities.copyToClipboard(this.shareLink);break;default:if(!("link"in serviceData)){return}const link=OLEFA.templateEngine.render(serviceData.link,{LINK:encodeURIComponent(this.shareLink),TITLE:encodeURIComponent(this.shareTitle),MEDIA:encodeURIComponent(this.shareMedia)});OcUtilities.openLink(link);break}}__generateUiComponent(){return new OcMdButtonIcon()}__getUiComponent(){return this.__elements.mainElement}static get observedAttributes(){return[...HTMLOcButtonIconElement.observedAttributes,'share-title','share-link','share-media','services']}}HTMLOcButtonIconShareElement.__services={NATIVE_SHARE:{icon:'md:share',label:'share'},CLIPBOARD:{icon:'md:content_copy',label:'clipboard'},FACEBOOK:{icon:'image:/osr/icons/share-icons/facebook.png',label:'Facebook',link:'https://www.facebook.com/sharer/sharer.php?u=#!TPL_LINK:"e=#!TPL_TITLE:'},LINKEDIN:{icon:'image:/osr/icons/share-icons/linkedin.png',label:'Linkedin',link:'https://www.linkedin.com/shareArticle?mini=true&title=#!TPL_TITLE:&url=#!TPL_LINK:'},MAIL:{icon:'md:mail',label:'Mail',link:'mailto:?subject=#!TPL_TITLE:&body=#!TPL_LINK:'},PINTEREST:{icon:'image:/osr/icons/share-icons/pinterest.png',label:'Pinterest',link:'https://www.pinterest.com/pin/create/button/?url=#!TPL_LINK:&media=#!TPL_MEDIA:'},REDDIT:{icon:'image:/osr/icons/share-icons/reddit.png',label:'Reddit',link:'https://reddit.com/submit?url=#!TPL_LINK:&title=#!TPL_TITLE:'},X:{icon:'image:/osr/icons/share-icons/x.png',label:'X_twitter',link:'https://x.com/intent/tweet?text=#!TPL_TITLE: #!TPL_LINK:'},WHATSAPP:{icon:'image:/osr/icons/share-icons/whatsapp.png',label:'Whatsapp',link:'whatsapp://send?text=#!TPL_TITLE: #!TPL_LINK:'},SMS:{icon:'md:sms',label:'Sms',link:'sms:?body=#!TPL_TITLE: #!TPL_LINK:'}};OLEFA.ready(()=>{customElements.define('oc-button-icon-share',HTMLOcButtonIconShareElement)});Oc.HTMLOcButtonIconShareElement=HTMLOcButtonIconShareElement;"use strict";class HTMLOcHeadingElement extends HTMLOcElement{constructor(){super();this.__level=1;this.__nativeHeadingTags=['h1','h2','h3','h4','h5','h6']}get level(){return this.__level}__initialize(){super.__initialize();this.__level=1;this.__dom.main=this.__generateHtmlFromTemplate('main');if(this.__dom.main){this.shadowRoot?.appendChild(this.__dom.main)}this.__initialized=true}__handleHtmlChanges(){super.__handleHtmlChanges();if(this.shadowRoot){const hostAttributes=OcHtml.setAttributesIfTrueHelper([]);OcHtml.setAttributesIfTrue(this,hostAttributes)}}__getHeadingLevel(el){const tag=el.tagName.toLocaleLowerCase();const foundIndex=this.__nativeHeadingTags.findIndex(nativeTag=>nativeTag==tag);if(OcArray.has(this.__nativeHeadingTags,tag)){return foundIndex+1}if(el.getAttribute('role')=='heading'){const level=el.getAttribute('aria-level');if(level){const parsed=Number(level);if(!isNaN(parsed)){return parsed}return null}}if(el instanceof HTMLOcHeadingElement){return el.level}return null}__determineNearestParentLevel2(el){let current=el.parentElement;while(current){const level=this.__getHeadingLevel(current);if(level!==null){return level}current=current.parentElement}return null}__determineNearestParentLevel(el){let node=el;while(node){while(node.previousSibling){node=node.previousSibling;if(node instanceof HTMLElement){const level=this.__getHeadingLevel(node);if(level!==null)return level;const deep=this.__findLastHeading(node);if(deep!==null)return deep}}node=node.parentNode}return null}__findLastHeading(root){const walker=document.createTreeWalker(root,NodeFilter.SHOW_ELEMENT);let last=null;while(walker.nextNode()){const level=this.__getHeadingLevel(walker.currentNode);
2if(level!==null)last=level}return last}__adjustDomHeading(){if(this.shadowRoot){const tag=`h${this.__level}`;this.shadowRoot.innerHTML=`<${tag}></${tag}>`}}__informChildren(){const children=this.querySelectorAll("oc-heading");children.forEach(child=>{if(child instanceof HTMLOcHeadingElement){child.setLevel(this.__level)}})}setLevel(level){let effectiveLevel=level;if(!level){const nearestParentLevel=this.__determineNearestParentLevel(this);if(nearestParentLevel!==null){effectiveLevel=nearestParentLevel}}const ownLevel=effectiveLevel?effectiveLevel:1;this.__level=Math.min(ownLevel,6);this.__adjustDomHeading()}connectedCallback(){const initialized=this.__initialized;super.connectedCallback();if(!initialized){this.setLevel()}}}customElements.define('oc-heading',HTMLOcHeadingElement);"use strict";class HTMLOcQrcodeElement extends HTMLOcElement{constructor(){super();this.__value='';this.__size=200}get value(){return this.__value}set value(value){this.__value=value;this.__handleHtmlChanges()}get size(){return this.__size}set size(value){this.__size=value;this.__handleHtmlChanges()}__initialize(){super.__initialize();this.__dom.main=this.__generateHtmlFromTemplate('main');if(this.__dom.main){this.shadowRoot?.appendChild(this.__dom.main)}this.__initialized=true}__generateTemplates(){super.__generateTemplates();this.__templates.main=`<div id="main"></div>`}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);if(newValue==oldValue){return};switch(attribute){case'value':{this.value=newValue||'';this.__createQrCode();break}case'size':{this.size=Number(newValue);this.__createQrCode();break}}}__createQrCode(){OcUtilities.deferUntil(()=>{if(this.__dom.main){this.__dom.main.replaceChildren();const qrcode=new QRCode(this.__dom.main,{width:this.size,height:this.size,correctLevel:QRCode.CorrectLevel.L});qrcode.makeCode(this.value||'')}},{condition:'repaint'})}__handleHtmlChanges(){super.__handleHtmlChanges();if(this.shadowRoot){const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'value',value:String(this.value)},{type:'string',property:'size',value:String(this.size)}]);OcHtml.setAttributesIfTrue(this,hostAttributes)}}connectedCallback(){const initialized=this.__initialized;super.connectedCallback();if(!initialized){this.__createQrCode()}}static get observedAttributes(){return['value','size']}}customElements.define('oc-qrcode',HTMLOcQrcodeElement);"use strict";class HTMLOcImgElement extends HTMLOcElement{get alt(){return this.__alt};set alt(value){this.__alt=value}get fallBackImage(){return this.__fallBackImage};set fallBackImage(value){this.__fallBackImage=value}get loading(){return this.__loading};set loading(value){this.__loading=value}get src(){return this.__src};set src(value){this.__src=value}constructor(){super()}__initialize(){super.__initialize();OLEFA.ready(()=>{this.__elements.img=new OcHtmlImg({alt:this.alt,fallBackImage:this.fallBackImage,loading:this.loading,src:this.src});const node=this.__elements.img.base.get(0);if(node){this.shadowRoot?.append(node)}})}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'alt':{this.alt=newValue||'';break}case'fall-back-image':{this.fallBackImage=newValue||'';break}case'loading':{const allowedValues=['eager','lazy'];if(OcArray.has(allowedValues,newValue)){this.loading=newValue};break}case'src':{this.src=newValue||'';break}default:}}__handleHtmlChanges(){super.__handleHtmlChanges();const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'alt',value:this.alt||''},{type:'string',property:'fall-back-image',value:this.fallBackImage||''},{type:'string',property:'loading',value:this.loading||''},{type:'string',property:'src',value:this.src||''}]);OcHtml.setAttributesIfTrue(this,hostAttributes)}static get observedAttributes(){return['alt','fall-back-image','loading','src']}}customElements.define('oc-img',HTMLOcImgElement);"use strict";class HTMLOcMenubarElement extends HTMLOcElement{constructor(){super();this.__label=null}__getShadowRootInit(){const inheritedInit=super.__getShadowRootInit();return{...inheritedInit,delegatesFocus:true}}get label(){return this.__label}set label(value){this.__label=value;this.__handleHtmlChanges()}get compact(){return false}get type(){return''};__getCssFiles(){return[...super.__getCssFiles(),`${OLEFA.environment.folders.stylesheets}/customElements/menubar.css?v=${Core.status.version}`]}__generateTemplates(){super.__generateTemplates();this.__templates.menubar=`<div id="menubar" role="menubar"><slot></slot></div>`}__initialize(){super.__initialize();this.__dom.menubar=this.__generateHtmlFromTemplate('menubar');if(this.__dom.menubar){this.shadowRoot?.appendChild(this.__dom.menubar)}this.__rovingTabindex=new OcInteractivityTabindexRoving(this.__dom.menubar,{fetchChildren:(element)=>{const menubarItems=Object.values(this.children).filter(element=>element instanceof HTMLElement&&element.tagName=='OC-MENUBAR-ITEM'&&OcHtml.isVisible(element));return menubarItems.map(item=>item.menuitem).filter(item=>item!=null)},itemStartsWithCharacterPredicate:(element,character)=>{const relevantMenubarItem=Object.values(this.children).filter(child=>child instanceof HTMLOcMenubarItemElement).find(item=>item.menuitem?.isSameNode(element));return typeof relevantMenubarItem!='undefined'&&typeof relevantMenubarItem.labelText!='undefined'&&relevantMenubarItem.labelText.toLocaleLowerCase().startsWith(character.toLocaleLowerCase())}})}__initEvents(){super.__initEvents();this.addEventListener('mouseover',this.__onMouseover.bind(this));this.__dom.menubar.addEventListener('keydown',this.__onMenubar__keydown.bind(this));this.__dom.menubar.addEventListener('click',this.__onMenubar__click.bind(this))}__onMouseover(ev){const menubarItems=this.__getMenubarItems();if(!menubarItems.some(element=>element.expanded)){return};if(ev.target instanceof HTMLElement){const menuItem=OcHtml.findParent(ev.target,element=>element instanceof HTMLOcMenubarItemElement);if(menuItem){if(menuItem.submenu){this.__openChildNode(menuItem)}else{menuItem.menuitem?.focus()}this.__collapseAllMenuItemsExcept(menuItem)}}}__onMenubar__keydown(ev){switch(ev.key){case OcAria.keys.ARROW_DOWN:case OcAria.keys.ARROW_UP:{if(ev.target instanceof HTMLElement&&this.__rovingTabindex?.orientation==OcInteractivityTabindexRoving.orientations.HORIZONTAL){this.__openChildNode(ev.target);ev.preventDefault()}break}case OcAria.keys.ARROW_LEFT:case OcAria.keys.ARROW_RIGHT:{if(ev.target instanceof HTMLElement&&this.__rovingTabindex?.orientation==OcInteractivityTabindexRoving.orientations.VERTICAL){this.__openChildNode(ev.target);ev.preventDefault()}break}case OcAria.keys.SPACEBAR:case OcAria.keys.ENTER:{if(ev.target instanceof HTMLOcMenubarItemElement){if(ev.target.submenu){this.__openChildNode(ev.target)}else{ev.target.click()}};break}case OcAria.keys.TAB:{if(ev.shiftKey){OcHtml.focusPrevious(this,true)}else{OcHtml.focusNext(this,true)}ev.preventDefault()}}}__onMenubar__click(ev){if(!(ev.target instanceof HTMLElement)){return};const menubarItem=OcHtml.findParent(ev.target,element=>{return element instanceof HTMLOcMenubarItemElement});if(!menubarItem){return}this.__openChildNode(menubarItem)}
2__onMenu__closed(ev){const menuId=ev.detail.element.id;const menubarItems=this.__getMenubarItems();const relevantMenubar=menubarItems.find(item=>item.submenu==menuId);if(relevantMenubar){relevantMenubar.expanded=false};ev.detail.element.removeEventListener('closed',this.__onMenu__closed.bind(this));ev.detail.element.removeEventListener('closing',this.__onMenu__closing.bind(this));delete this.__lastOpener}__onMenu__closing(ev){if(ev.detail.reason=='key-pressed'){this.__lastOpener?.focus()}}__onObservedAttributeChange(attribute,oldValue,newValue){switch(attribute){case'label':this.label=newValue;break}}__handleHtmlChanges(){super.__handleHtmlChanges();const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'label',value:this.label||''}]);OcHtml.setAttributesIfTrue(this,hostAttributes);const menubarAttributes=OcHtml.setAttributesIfTrueHelper([{type:'string',property:'aria-label',value:this.label||''}]);OcHtml.setAttributesIfTrue(this.__dom.menubar,menubarAttributes)}__getMenubarItems(){const menubarItems=Object.values(this.children).filter(element=>element.tagName=='OC-MENUBAR-ITEM');return menubarItems}__collapseAllMenuItemsExcept(menubarItem){const menubarItems=this.__getMenubarItems();menubarItems.filter(item=>!item.isSameNode(menubarItem)&&item instanceof HTMLOcMenubarItemElement&&item.expanded).forEac
2h((item)=>{item.expanded=false})}__openChildNode(element){const menubarItems=this.__getMenubarItems();const currentIndex=menubarItems.findIndex(thisElement=>thisElement.isSameNode(element));if(currentIndex!=-1){const menubarItem=menubarItems[currentIndex];if(menubarItem instanceof HTMLOcMenubarItemElement){menubarItem.expanded=true;const menuId=menubarItem.submenu||'';const menu=document.getElementById(menuId);if(menu){this.__lastOpener=element;menu.addEventListener('closed',this.__onMenu__closed.bind(this),{once:true});menu.addEventListener('closing',this.__onMenu__closing.bind(this),{once:true});OcHtml.focusNext(menu,false,menu)};this.__collapseAllMenuItemsExcept(menubarItem)}}}__closeChildNode(element){const menubarItems=this.__getMenubarItems();const currentIndex=menubarItems.findIndex(thisElement=>thisElement.isSameNode(element));if(currentIndex!=-1){const menubarItem=menubarItems[currentIndex];if(menubarItem instanceof HTMLOcMenubarItemElement){menubarItem.expanded=false;menubarItem.menuitem?.focus()}}}static get observedAttributes(){return[...HTMLOcElement.observedAttributes,'label']}}customElements.define('oc-menubar',HTMLOcMenubarElement);Oc.HTMLOcMenubarElement=HTMLOcMenubarElement;"use strict";class HTMLOcMenubarItemElement extends HTMLOcElement{constructor(){super();this.__expanded=false;this.__target=null;this.__event=null}__getShadowRootInit(){const inheritedInit=super.__getShadowRootInit();return{...inheritedInit,delegatesFocus:true}}get value(){return 0}get type(){return''};get submenu(){return this.__submenu}set submenu(value){this.__submenu=value;this.__handleHtmlChanges()}get expanded(){return this.__expanded}set expanded(value){this.__expanded=typeof this.submenu!='undefined'&&value;this.__handleHtmlChanges();this.__handleSubmenu()}get href(){return this.__href}set href(value){this.__href=value;this.__handleHtmlChanges()}get target(){return this.__target}set target(value){this.__target=value;this.__handleHtmlChanges()}get event(){return this.__event}set event(value){this.__event=value;this.__handleHtmlChanges()}get menuitem(){return this.shadowRoot?.getElementById('menuitem')}get labelText(){const labelNode=this.shadowRoot?.getElementById('label');if(!(labelNode instanceof HTMLSlotElement)){return''};const assignedNode=labelNode.assignedElements()[0];return assignedNode.textContent||''}__getCssFiles(){return[...super.__getCssFiles(),`${OLEFA.environment.folders.stylesheets}/compiled/libMaterialDesignList.compiled.css`,`${OLEFA.environment.folders.stylesheets}/customElements/menubar/item.css`]}__generateTemplates(){super.__generateTemplates();this.__templates.menuitem=`<a id="menuitem" role="menuitem" tabindex="-1"> 3 <slot id="leading-icon" name="leading-icon"></slot> 4 <slot id="label" name="label"></slot> 5 <slot id="expand-icon" name="expand-icon" aria-hidden="true"> 6 <span class="material-icons">arrow_drop_down</span> 7 </slot> 8 <slot id="menu" name="menu"></slot> 9 </a>`}__initEvents(){this.addEventListener('click',this.__onClick.bind(this))}__onClick(ev){if(!this.href){ev.preventDefault()}if(this.event){this.__trigger__select({element:this,event:this.event})}}__initialize(){super.__initialize();this.__dom.menuitem=this.__generateHtmlFromTemplate('menuitem');if(this.__dom.menuitem){this.shadowRoot?.appendChild(this.__dom.menuitem)}}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'submenu':{this.submenu=newValue||'';break}case'expanded':{this.expanded=newValue!=null;break}case'href':{this.href=newValue;break}case'target':{if(typeof newValue=='undefined'||OcArray.has(Object.values(HTMLOcMenubarItemElement.targets),newValue)){this.target=newValue}break}case'event':{this.event=newValue;break}}}__handleHtmlChanges(){super.__handleHtmlChanges();if(this.shadowRoot){const submenu=this.__submenu||'';const hasMenu=submenu.length>0;const hostNode=this;const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'boolean',property:'expanded',value:this.expanded},{type:'string',property:'submenu',value:this.submenu||''},{type:'string',property:'href',value:this.href||''},{type:'string',property:'event',value:this.event||''}]);OcHtml.setAttributesIfTrue(hostNode,hostAttributes);const menuItemNode=this.shadowRoot.getElementById('menuitem');
9if(menuItemNode){const menuItemAttributes={};menuItemAttributes['aria-haspopup']={condition:hasMenu,value:'menu'};menuItemAttributes['aria-expanded']={condition:hasMenu,value:OcDatatype.toBooleanString(this.expanded)};menuItemAttributes['aria-controls']={condition:hasMenu,value:submenu};menuItemAttributes['href']={condition:(!OcUtilities.hasNoValue(this.href)&&OcUtilities.hasNoValue(this.submenu)),value:this.href||''};menuItemAttributes['target']={condition:!OcUtilities.hasNoValue(this.target),value:this.target||''};menuItemAttributes['event']={condition:!OcUtilities.hasNoValue(this.event),value:this.event||''};OcHtml.setAttributesIfTrue(menuItemNode,menuItemAttributes)}}}__handleSubmenu(){const submenuId=this.submenu;if(!submenuId){return};const submenu=document.getElementById(submenuId);if(!submenu){return};if(submenu.open==this.expanded){return};submenu.open=this.expanded;if(this.expanded){const menubarItemPosition=this.getBoundingClientRect();submenu.style.position='fixed';submenu.style.left=`${menubarItemPosition.left}px`;submenu.style.top=`${menubarItemPosition.top + menubarItemPosition.height}px`;submenu.style.right='';const submenuPosition=submenu.getBoundingClientRect();if(submenuPosition.right>window.innerWidth){submenu.style.left='';submenu.style.right=`${window.innerWidth - menubarItemPosition.right}px`}}}__trigger__select(eventData){const event=new CustomEvent('menubaritem-select',{bubbles:true,cancelable:false,detail:eventData});this.dispatchEvent(event)}static get observedAttributes(){return[...HTMLOcElement.observedAttributes,'submenu','expanded','href','target','event']}static get targets(){return{BLANK:'_blank',PARENT:'_parent',SELF:'_self',TOP:'_top'}}}customElements.define('oc-menubar-item',HTMLOcMenubarItemElement);Oc.HTMLOcMenubarItemElement=HTMLOcMenubarItemElement;"use strict";class HTMLOcMenuElement extends HTMLOcElement{constructor(){super(...arguments);this.__open=false;this.__closeReason='focus-lost';this.__mutationObserver=new OcMutationobserver()}addEventListener(type,listener,options){return super.addEventListener(type,listener,options)};removeEventListener(type,listener,options){return super.removeEventListener(type,listener,options)}__getShadowRootInit(){const inheritedInit=super.__getShadowRootInit();return{...inheritedInit,delegatesFocus:true}}get open(){return this.__open}set open(value){this.__open=value;if(!this.__open){this.__dispatchEvent__closing({element:this,reason:this.__closeReason});this.__closeReason='focus-lost'}this.__handleHtmlChanges();if(!this.__open){this.__dispatchEvent__closed({element:this})}};__getCssFiles(){return[...super.__getCssFiles(),`${OLEFA.environment.folders.stylesheets}/compiled/libMaterialDesignList.compiled.css`]}__generateTemplates(){this.__templates.menu=`<div id="menu" role="menu" class="mdc-deprecated-list"> 10 <slot></slot> 11 </div>`}__initEvents(){super.__initEvents();this.addEventListener('focusout',this.__onFocusout.bind(this));this.addEventListener('mouseover',this.__onMouseover.bind(this));this.__dom.menu.addEventListener('keydown',this.__onMenu__keydown.bind(this));this.__dom.menu.addEventListener('click',this.__onMenu__click.bind(this))}__onFocusout(ev){if(ev.relatedTarget instanceof HTMLElement){if(this.contains(ev.relatedTarget)){return};if(ev.target instanceof HTMLOcMenuItemElement&&ev.target.submenu==ev.relatedTarget.id){return}const menuItems=this.__getMenuItems();if(menuItems.some(element=>element.expanded)){return}}this.open=false}__onMouseover(ev){if(ev.target instanceof HTMLElement){const menuItem=OcHtml.findParent(ev.target,element=>element instanceof HTMLOcMenuItemElement);if(menuItem){if(menuItem.submenu){this.__openChildNode(menuItem)}else{menuItem.menuitem?.focus()}this.__collapseAllMenuItemsExcept(menuItem)}}}__onMenu__keydown(ev){switch(ev.key){case OcAria.keys.ARROW_DOWN:case OcAria.keys.ARROW_UP:{if(ev.target instanceof HTMLElement&&this.__rovingTabindex?.orientation==OcInteractivityTabindexRoving.orientations.HORIZONTAL){this.__openChildNode(ev.target);ev.preventDefault()}break}case OcAria.keys.ARROW_LEFT:case OcAria.keys.ARROW_RIGHT:{if(ev.target instanceof HTMLElement&&this.__rovingTabindex?.orientation==OcInteractivityTabindexRoving.orientations.VERTICAL){this.__openChildNode(ev.target);ev.preventDefault()}break}case OcAria.keys.SPACEBAR:case OcAria.keys.ENTER:{if(ev.target instanceof HTMLOcMenuItemElement){if(ev.target.submenu){this.__openChildNode(ev.target)}else{ev.target.click()}};break}case OcAria.keys.ESCAPE:{if(ev.target instanceof HTMLElement){const menu=OcHtml.findParent(ev.target,element=>element instanceof HTMLOcMenuElement);if(menu){this.__dispatchEvent__closing({element:menu,reason:'key-pressed'});this.open=false}};break}case OcAria.keys.TAB:{if(ev.shiftKey){OcHtml.focusPrevious(this,true)}else{OcHtml.focusNext(this,true)}ev.preventDefault()}}}__onMenu__click(ev){if(!(ev.target instanceof HTMLElement)){return};const menuItem=OcHtml.findParent(ev.target,element=>{return element instanceof HTMLOcMenuItemElement});if(!menuItem){return}this.__openChildNode(menuItem)}__initEvents__menu(menu){menu.addEventListener('closed',this.__onMenu__closed.bind(this));menu.addEventListener('closing',this.__onMenu__closing.bind(this))}
11__onMenu__closed(ev){const menuId=ev.detail.element.id;const menuItems=this.__getMenuItems();const relevantmenu=menuItems.find(item=>item.submenu==menuId);if(relevantmenu){relevantmenu.expanded=false};this.__cancelEvents__menu(ev.detail.element);delete this.__lastOpener;OcUtilities.deferUntil(()=>{if(!this.contains(document.activeElement)&&!menuItems.some(element=>element.expanded)){this.open=false}},{condition:'instant'})}__onMenu__closing(ev){if(ev.detail.reason=='key-pressed'){this.__lastOpener?.focus()}}__cancelEvents__menu(menu){menu.removeEventListener('closed',this.__onMenu__closed.bind(this));menu.removeEventListener('closing',this.__onMenu__closing.bind(this))}__initEvents__mutationObserver(observer){observer.events.listen('childlist-added',this.__onMutationObserver__childlistAdded.bind(this))}__onMutationObserver__childlistAdded(ev){if(ev.node instanceof HTMLOcMenuItemElement){ev.node.tabIndex=-1}}__initialize(){super.__initialize();this.classList.add('mdc-menu','mdc-menu-surface');if(this.shadowRoot){this.__dom.menu=this.__generateHtmlFromTemplate('menu');if(this.__dom.menu){this.shadowRoot.appendChild(this.__dom.menu)}this.__rovingTabindex=new OcInteractivityTabindexRoving(this.__dom.menu,{orientation:OcInteractivityTabindexRoving.orientations.VERTICAL,fetchChildren:(element)=>{const menuItems=Object.values(this.children).filter(element=>element instanceof HTMLElement&&element.tagName=='OC-MENU-ITEM'&&OcHtml.isVisible(element));return menuItems.map(item=>item.menuitem).filter(item=>item!=null)},itemStartsWithCharacterPredicate:(element,character)=>{const relevantMenubarItem=Object.values(this.children).filter(child=>child instanceof HTMLOcMenuItemElement).find(item=>item.menuitem?.isSameNode(element));return typeof relevantMenubarItem!='undefined'&&typeof relevantMenubarItem.labelText!='undefined'&&relevantMenubarItem.labelText.toLocaleLowerCase().startsWith(character.toLocaleLowerCase())}})}const observer=this.__mutationObserver.createObserver({element:this,event:'childList',mutations:{childList:true}});if(observer){this.__initEvents__mutationObserver(observer)};this.childNodes.forEach(element=>{if(element instanceof HTMLOcMenuItemElement){element.tabIndex=-1}})}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'open':this.open=newValue!=null;break}}__handleHtmlChanges(){super.__handleHtmlChanges();const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'boolean',property:'open',value:this.__open}]);OcHtml.setAttributesIfTrue(this,hostAttributes);OcHtml.setClassIfTrue(this.__open,this,HTMLOcMenuElement.__classes.MENU_OPEN)}__getMenuItems(){const menuItems=Object.values(this.children).filter(element=>element.tagName=='OC-MENU-ITEM');return menuItems}__collapseAllMenuItemsExcept(menuItem){const menuItems=this.__getMenuItems();menuItems.filter(item=>!item.isSameNode(menuItem)&&item instanceof HTMLOcMenuItemElement&&item.expanded).forEac
11h((item)=>{item.expanded=false})}__openChildNode(element){const menuItems=this.__getMenuItems();const currentIndex=menuItems.findIndex(thisElement=>thisElement.isSameNode(element));if(currentIndex!=-1){const menuItem=menuItems[currentIndex];if(menuItem instanceof HTMLOcMenuItemElement){menuItem.expanded=true;const menuId=menuItem.submenu||'';const menu=document.getElementById(menuId);if(menu){this.__lastOpener=element;this.__initEvents__menu(menu);OcHtml.focusNext(menu,false,menu)};this.__collapseAllMenuItemsExcept(menuItem)}}}__dispatchEvent__closed(eventData){const event=new CustomEvent('closed',{bubbles:true,cancelable:false,detail:eventData});this.dispatchEvent(event)}__dispatchEvent__closing(eventData){const event=new CustomEvent('closing',{bubbles:true,cancelable:false,detail:eventData});this.dispatchEvent(event)}static get observedAttributes(){return[...HTMLOcElement.observedAttributes,'open']}}HTMLOcMenuElement.__classes={MENU_OPEN:'mdc-menu-surface--open'};customElements.define('oc-menu',HTMLOcMenuElement);Oc.HTMLOcMenuElement=HTMLOcMenuElement;"use strict";class HTMLOcMenuItemElement extends HTMLOcElement{constructor(){super(...arguments);this.__ripple=null;this.__expanded=false;this.__href=null;this.__target=null;this.__event=null}__getShadowRootInit(){const inheritedInit=super.__getShadowRootInit();return{...inheritedInit,delegatesFocus:true}}get value(){return 0}get type(){return''};get submenu(){return this.__submenu}set submenu(value){this.__submenu=value;this.__handleHtmlChanges()}get expanded(){return this.__expanded}set expanded(value){this.__expanded=typeof this.submenu!='undefined'&&value;this.__handleHtmlChanges();this.__handleSubmenu()}get href(){return this.__href}set href(value){this.__href=value;this.__handleHtmlChanges()}get target(){return this.__target}set target(value){this.__target=value;this.__handleHtmlChanges()}get event(){return this.__event}set event(value){this.__event=value;this.__handleHtmlChanges()}get menuitem(){return this.shadowRoot?.getElementById('menuitem')}get labelText(){const labelNode=this.shadowRoot?.getElementById('label');if(!(labelNode instanceof HTMLSlotElement)){return''};const assignedNode=labelNode.assignedElements()[0];return assignedNode.textContent||''}__getCssFiles(){return[...super.__getCssFiles(),`${OLEFA.environment.folders.stylesheets}/compiled/libMaterialDesignList.compiled.css?v=${Core.status.version}`,`${OLEFA.environment.folders.stylesheets}/customElements/menu/item.css?v=${Core.status.version}`]}__generateTemplates(){super.__generateTemplates();this.__templates.listitem=`<div id="listitem" class="mdc-deprecated-list-item mdc-ripple-surface" role="presentation"> 12 <a id="menuitem" role="menuitem" tabindex="-1"> 13 <slot id="leading-icon" name="leading-icon" class="mdc-deprecated-list-item__graphic"></slot> 14 <slot id="label" name="label" class="mdc-deprecated-list-item__text"></slot> 15 <slot id="expand-icon" name="expand-icon" class="mdc-deprecated-list-item__meta"> 16 <span class="material-icons">arrow_right</span> 17 </slot> 18 </a> 19 </div>`}__onObservedAttributeChange(attribute,oldValue,newValue){super.__onObservedAttributeChange(attribute,oldValue,newValue);switch(attribute){case'submenu':{this.submenu=newValue||'';break}case'expanded':{this.expanded=newValue!=null;break}case'href':{this.href=newValue;break}case'target':{if(typeof newValue=='undefined'||OcArray.has(Object.values(HTMLOcMenuItemElement.targets),newValue)){this.target=newValue}break}case'event':{this.event=newValue;break}}}__initEvents(){super.__initEvents();this.addEventListener('click',this.__onClick.bind(this))}__onClick(ev){if(!this.href){ev.preventDefault()}if(this.event){this.__trigger__select({element:this,event:this.event})}}__initialize(){super.__initialize();if(this.shadowRoot){this.__dom.listitem=this.__generateHtmlFromTemplate('listitem');if(this.__dom.listitem){this.shadowRoot.appendChild(this.__dom.listitem)}const rippleNode=this.shadowRoot.getElementById('listitem');if(rippleNode){this.__ripple=new mdc.ripple.MDCRipple(rippleNode)}}}__handleHtmlChanges(){super.__handleHtmlChanges();if(this.shadowRoot){const submenu=this.__submenu||'';const hasMenu=submenu.length>0;const hostNode=this;const hostAttributes=OcHtml.setAttributesIfTrueHelper([{type:'boolean',property:'expanded',value:this.expanded},{type:'string',property:'submenu',value:this.submenu||''},{type:'string',property:'href',value:this.href||''},{type:'string',property:'event',value:this.event||''}]);OcHtml.setAttributesIfTrue(hostNode,hostAttributes);const menuItemNode=this.shadowRoot.getElementById('menuitem');
19if(menuItemNode){const menuItemAttributes={};menuItemAttributes['aria-haspopup']={condition:hasMenu,value:'menu'};menuItemAttributes['aria-expanded']={condition:hasMenu,value:OcDatatype.toBooleanString(this.expanded)};menuItemAttributes['aria-controls']={condition:hasMenu,value:submenu};menuItemAttributes['href']={condition:(!OcUtilities.hasNoValue(this.href)&&OcUtilities.hasNoValue(this.submenu)),value:this.href||''};menuItemAttributes['target']={condition:!OcUtilities.hasNoValue(this.target),value:this.target||''};menuItemAttributes['event']={condition:!OcUtilities.hasNoValue(this.event),value:this.event||''};OcHtml.setAttributesIfTrue(menuItemNode,menuItemAttributes)}}}__discoverZIndex(){const parentNode=this.parentElement;if(!parentNode){return 0};const computedStyle=window.getComputedStyle(parentNode);const zIndex=Number(computedStyle.getPropertyValue('z-index'));if(!OcDatatype.isNumeric(zIndex)){return 0};return zIndex}__handleSubmenu(){const submenuId=this.submenu;if(!submenuId){return};const submenu=document.getElementById(submenuId);if(!submenu){return};if(submenu.open==this.expanded){return};submenu.open=this.expanded;if(this.expanded){const menubarItemPosition=this.getBoundingClientRect();submenu.style.position='fixed';submenu.style.maxWidth='';submenu.style.left=`${menubarItemPosition.right}px`;submenu.style.top=`${menubarItemPosition.top}px`;submenu.style.zIndex=String(this.__discoverZIndex()+1);const submenuPosition=submenu.getBoundingClientRect();if(submenuPosition.right>window.innerWidth){const spaceLeft=menubarItemPosition.left;const spaceRight=window.innerWidth-menubarItemPosition.right;const preferredSide=spaceRight>=spaceLeft?'right':'left';if(preferredSide=='left'){submenu.style.left=`${menubarItemPosition.left - Math.min(spaceLeft, submenuPosition.width)}px`;submenu.style.maxWidth=`${spaceLeft}px`}else{submenu.style.maxWidth=`${spaceRight}px`}}if(submenuPosition.bottom>window.innerHeight){submenu.style.top=`${menubarItemPosition.bottom - submenuPosition.height}px`}}}__trigger__select(eventData){const event=new CustomEvent('menuitem-select',{bubbles:true,cancelable:false,detail:eventData});this.dispatchEvent(event)}static get observedAttributes(){return[...HTMLOcElement.observedAttributes,'submenu','expanded','href','target','event']}static get targets(){return{BLANK:'_blank',PARENT:'_parent',SELF:'_self',TOP:'_top'}}}customElements.define('oc-menu-item',HTMLOcMenuItemElement);Oc.HTMLOcMenuItemElement=HTMLOcMenuItemElement;"use strict";class HTMLOcMenuItemSeparatorElement extends HTMLOcElement{__getCssFiles(){return[...super.__getCssFiles(),`${OLEFA.environment.folders.stylesheets}/customElements/menu/item/separator.css`]}__generateTemplates(){super.__generateTemplates();this.__templates.separator=`<li id="separator" role="separator"></li>`}__initialize(){super.__initialize();this.__dom.separator=this.__generateHtmlFromTemplate('separator');if(this.__dom.separator){this.shadowRoot?.appendChild(this.__dom.separator)}}}customElements.define('oc-menu-item-separator',HTMLOcMenuItemSeparatorElement);Oc.HTMLOcMenuItemSeparatorElement=HTMLOcMenuItemSeparatorElement;"use strict";class OcHtmlElement extends OcUi{constructor(properties){super(properties)}defaults(){return OcHtmlElement.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssDefaultLibhtml:OLEFA.css.getIfNotLoaded('default/libHTML.css','--loaded--default-libhtml')}}__initialize(properties){super.__initialize(properties)}__setHTMLAttribute(attribute,value,options){value=OcUtilities.define(value,'');const normalizedOptions={...{allowEmptyAttribute:false},...options};if(value||((typeof(value)=='undefined'||!value)&&normalizedOptions.allowEmptyAttribute)){this.__internals.dom.base.attr(attribute,value)}else{this.__internals.dom.base.removeAttr(attribute)}}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcHtmlElement=OcHtmlElement;"use strict";class OcHtmlImg extends OcHtmlElement{constructor(properties){super(properties)}defaults(){return OcHtmlImg.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,src:{get:this.__getSrc.bind(this),set:this.__setSrc.bind(this)}
19,loading:{get:this.__getLoading.bind(this),set:this.__setLoading.bind(this)},fallBackImage:{get:this.__getFallBackImage.bind(this),set:this.__setFallBackImage.bind(this)},alt:{get:this.__getAlt.bind(this),set:this.__setAlt.bind(this)}}};__setSrc(value){this.properties.src=value;if(!this.properties.src){this.__internals.states.add('fallback-active')}else{this.__internals.states.remove('fallback-active')};this.__handleImageSrc()};__getSrc(){return this.properties.src};__setLoading(value){if(value in this.defaults().options.loading){return};this.properties.loading=value;this.__setHTMLAttribute('loading',value)};__getLoading(){return this.properties.loading};__setFallBackImage(value){this.properties.fallBackImage=value};__getFallBackImage(){return this.properties.fallBackImage};__setAlt(value){this.properties.alt=value;this.__setHTMLAttribute('alt',value,{allowEmptyAttribute:true})};__getAlt(){return this.properties.alt};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.src=this.__setSrc;this.propertyHandlers.loading=this.__setLoading;this.propertyHandlers.fallBackImage=this.__setFallBackImage;this.propertyHandlers.alt=this.__setAlt};__initialize(parameters){super.__initialize(parameters);this.__internals.intersectionObserver=new IntersectionObserver((entries)=>{for(var entry of entries){if(entry.isIntersecting){this.__internals.states.add('visible');this.__handleImageSrc()}else{this.__internals.states.remove('visible')}}},{root:null});const node=this.__internals.dom.base.get(0);if(node){this.__internals.intersectionObserver.observe(node)}};__initElements(){super.__initElements();this.__createDOMNodes({base:{tag:'img',class:'oc-html-img',attributes:{part:'image'}}})};__initStates(){super.__initStates();this.__internals.states.define({state:'fallback-active',onChange:this.__onStateChange__fallbackActive.bind(this)});this.__internals.states.define({state:'has-image'});this.__internals.states.define({state:'loading'});this.__internals.states.define({state:'visible',onChange:this.__onStateChange__visible.bind(this)})};__onStateChange__fallbackActive(){this.__handleImageSrc()};__onStateChange__visible(){this.__handleImageSrc()}__initEvents(){super.__initEvents();this.__internals.dom.base.on('error',this.__onBase__error.bind(this)).on('load',this.__onBase__load.bind(this));this.__internals.states.events.listen('stateChange',this.__onStates__change.bind(this),this.refID)};__onBase__error(){this.__internals.states.add('fallback-active');this.__internals.states.remove('loading')};__onBase__load(){this.__internals.states.add('has-image');this.__internals.states.remove('loading')};__onStates__change(){this.__internals.dom.base.attr('data-states',Object.keys(this.__internals.states.activeStates).join(' '))};__handleImageSrc(){this.__deferOnce('__handleImageSrc',()=>{if(!this.__internals.states.hasState('visible')){return}var src=this.src;if(this.__internals.states.hasState('fallback-active')&&this.fallBackImage){src=this.fallBackImage};if(this.__internals.dom.base.attr('src')!=src){this.__internals.states.remove('has-image');if(src){this.__internals.states.add('loading')};this.__setHTMLAttribute('src',src)}})};destroy(){this.__internals.intersectionObserver.disconnect();super.destroy()};static defaults(){const data=OcHtmlElement.defaults();data.options={loading:{eager:'eager',lazy:'lazy'}};data.properties.src='';data.properties.loading=data.options.loading.lazy;data.properties.fallBackImage='';data.properties.alt='';return data}}Oc.OcHtmlImg=OcHtmlImg;"use strict";class OcHtmlUser extends OcHtmlElement{constructor(properties){super(properties)}defaults(){return OcHtmlUser.defaults()}__interfaceDefinitions(){const definitions=super.__interfaceDefinitions();const that=this;definitions.user={get:function(){return that.__getUser()},set:function(a){that.__setUser(a)}};definitions.parseText={get:function(){return that.__getParseText()},set:function(a){that.__setParseText(a)}};return definitions}__setUser(value){if(!(value instanceof OcUser)){return};if(this.properties.user){this.properties.user.events.cancelAllFromScope(this.refID)};this.properties.user=value;this.__initEvents__user();this.__parse()};__getUser(){return this.properties.user};__setParseText(value){this.properties.parseText=value;this.__parse()};__getParseText(){return this.properties.parseText};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.user=this.__setUser;this.propertyHandlers.parseText=this.__setParseText}__initialize(properties){super.__initialize(properties)};__initElements(){super.__initElements();this.__internals.dom.base=jQuery('<span></span>
19').addClass('oc-html-user')}__initEvents__user(){if(this.user){this.user.events.listen('property-change',this.__onUser__propertyChange.bind(this),this.refID)}};__onUser__propertyChange(){this.__parse()};__parse(){let html='';if(this.user){html=OLEFA.templateEngine.render(this.parseText,{USERMODE:this.user.usermode,FIRSTNAME:this.user.firstname,LASTNAME:this.user.lastname,USERID:this.user.userid,USERNAME:this.user.username,EMAIL:this.user.email,NICK:this.user.nick,ACCESSLEVEL:String(this.user.accesslevel),NAME:this.user.name,PHOTO:this.user.photo,FULLNAME:this.user.fullname})};this.__internals.dom.base.html(html)};parse(){OLEFA.log.deprecated('DEPRECATED! Use this.__parse() instead');return this.__parse()}destroy(){super.destroy()}static defaults(){const inheritedData=OcHtmlElement.defaults();const expandedData={...inheritedData,properties:{...inheritedData.properties,user:null,parseText:'#!TPL_FULLNAME:'}};return expandedData}}OcHtmlUser.superClass=OcHtmlElement;oc.OcHtmlUser=OcHtmlUser;"use strict";class OcHtmlTime extends OcHtmlElement{constructor(properties){super(properties)}defaults(){return OcHtmlTime.defaults()}__interfaceDefinitions(){const definitions=super.__interfaceDefinitions();const that=this;definitions.type={get:function(){return that.__getType()},set:function(a){that.__setType(a)}};definitions.label={get:function(){return that.__getLabel()},set:function(a){that.__setLabel(a)}};definitions.date={get:function(){return that.__getDate()},set:function(a){that.__setDate(a)}};definitions.autoLabel={get:function(){return that.__getAutoLabel()},set:function(a){that.__setAutoLabel(a)}};definitions.appendTimeLabel={get:function(){return that.__getAppendTimeLabel()},set:function(a){that.__setAppendTimeLabel(a)}};return definitions}__setType(value){if(!this.defaults().types[value]){return};this.properties.type=value;this.__handleDateTime()};__getType(){return this.properties.type};__setLabel(value){this.properties.label=value;this.__handleDateTime();this.__handleLabel()};__getLabel(){return this.properties.label};__setDate(value){if(!OcDatatype.is('date',value)){return};this.properties.date=value;this.__internals.date=OcDatatype.toDate(value);this.__handleDateTime();this.__handleLabel()};__getDate(){return this.properties.date};__setAutoLabel(value){this.properties.autoLabel=OcDatatype.toBoolean(value);this.__handleDateTime();this.__handleLabel()};__getAutoLabel(){return this.properties.autoLabel};__setAppendTimeLabel(value){this.properties.appendTimeLabel=OcDatatype.toBoolean(value);this.__handleDateTime();this.__handleLabel()};__getAppendTimeLabel(){return this.properties.appendTimeLabel};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.date=new Date();this.propertyHandlers.type=this.__setType;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.date=this.__setDate;this.propertyHandlers.autoLabel=this.__setAutoLabel;this.propertyHandlers.appendTimeLabel=this.__setAppendTimeLabel}__initElements(){this.__createDOMNodes({base:{tag:'time',class:'oc-html-time'}})}__handleDateTime(){this.__deferOnce('__handleDateTime',()=>{const defaultData=this.defaults();const type=this.__getType();const autoLabel=this.__getAutoLabel();const label=this.__getLabel();const appendTime=this.__getAppendTimeLabel();let value='';if(type==defaultData.types.date){value=this.__internals.date.toISOString()}else if(type==defaultData.types.duration){value=OLEFA.basics.toISODuration(Math.trunc(this.__internals.date.getTime()/1000)).isoString};let titleString=label;if(autoLabel){const dateTimeFormat={dateStyle:'full'};if(appendTime){dateTimeFormat.timeStyle='medium'};titleString=this.__internals.date.toLocaleString(`${OLEFA.environment.language}`,dateTimeFormat)};this.__setHTMLAttribute('title',titleString);this.__setHTMLAttribute('datetime',value)})};__handleLabel(){if(this.autoLabel){this.__internals.dom.base.text(OLEFA.basics.smartTimeStamp(this.__internals.date,{appendTime:this.appendTimeLabel}))}else{this.__internals.dom.base.text(this.label)}};destroy(){super.destroy()}static defaults(){const inheritedData=OcHtmlElement.defaults();const expandedData={...inheritedData,properties:{...inheritedData.properties,type:'date',label:'',date:'',autoLabel:true,appendTimeLabel:false},types:{date:'date',duration:'duration'}};return expandedData}
19};Oc.OcHtmlTime=OcHtmlTime;"use strict";var OcHtmlMedia=function(jExisting){this.dom={wrapper:jQuery('<div></div>'),media:null};const jTest=jQuery(jExisting);if(jTest.length){this.dom.media=jTest};this.sources={};this.original=null;this.defaults={property:{autoplay:false,loop:false,controls:true,mediagroup:''}};this.type='media';OLEFA.css.getIfNotLoaded('default/libHTML.css','--loaded--default-libhtml')};OcHtmlMedia.prototype.mediaElement=function(){return this.dom.media};OcHtmlMedia.prototype.element=function(){return this.dom.media};OcHtmlMedia.prototype.addSource=function(mimeType,source){if(this.sources[mimeType]){return undefined};this.sources[mimeType]=source;const jSource=jQuery('<source>');jSource.attr('type',mimeType);jSource.attr('src',source);const mediaElement=this.mediaElement();if(mediaElement){const jOriginal=mediaElement.find('source[data-original]');if(jOriginal.length){jSource.insertBefore(jOriginal)}else{jSource.appendTo(mediaElement)}};return jSource};OcHtmlMedia.prototype.setOriginal=function(source){this.original=source;const mediaElement=this.mediaElement();if(mediaElement){const jOriginal=mediaElement.find('source[data-original]');if(jOriginal.length){jOriginal.attr('src',source)}else{const jSource=jQuery('<source>');jSource.attr('src',source).attr('data-original','');mediaElement.append(jSource)}}};OcHtmlMedia.prototype.mediaProperty=function(property,state){const mediaElement=this.mediaElement();if(!mediaElement){return};if(typeof(state)!='undefined'){if(state){mediaElement.attr(property,'')}else{mediaElement.removeAttr(property)}};return mediaElement.attr(property)};OcHtmlMedia.prototype.autoplay=function(state){return this.mediaProperty('autoplay',state)};OcHtmlMedia.prototype.loop=function(state){return this.mediaProperty('loop',state)};OcHtmlMedia.prototype.controls=function(state){return this.mediaProperty('controls',state)};OcHtmlMedia.prototype.playbackRate=function(rate){const mediaElement=this.mediaElement();if(mediaElement){const media=mediaElement.get(0);if(media instanceof HTMLMediaElement){media.playbackRate=rate}}};OcHtmlMedia.prototype.mediagroup=function(group){const mediaElement=this.mediaElement();if(mediaElement){return mediaElement.attr('mediagroup',group)};return};OcHtmlMedia.prototype.draw=function(){if(this.dom.media){const node=this.dom.media.get(0);if(node){return node.outerHTML}};return};OcHtmlMedia.prototype.destroy=function(){this.dom.wrapper.remove()};Oc.OcHtmlMedia=OcHtmlMedia;"use strict";class OcHtmlMediaAudio extends OcHtmlMedia{constructor(jExisting){super(jExisting);this.type='audio';this.dom.media=jQuery('<audio></audio>');this.dom.media.prop('olefa-object-reference',this).attr({'data-initialized':''}).addClass('oc-html-media oc-html-media-audio').appendTo(this.dom.wrapper);for(const[prop,value]of Object.entries(this.defaults.property)){this.mediaProperty(prop,value)}};destroy(){this.dom.media.remove();super.destroy()}};Oc.OcHtmlMediaAudio=OcHtmlMediaAudio;"use strict";class OcHtmlMediaVideo extends OcHtmlMedia{constructor(jExisting){super(jExisting);this.type='video';if(!this.dom.media){this.dom.media=jQuery('<video></video>');this.dom.media.addClass('oc-html-media oc-html-media-video');for(const[prop,value]of Object.entries(this.defaults.property)){this.mediaProperty(prop,value)}};this.dom.wrapper.addClass('olefa-video-wrapper');const jParent=this.dom.media.parent();if(jParent.length){this.dom.wrapper.insertAfter(this.dom.media);this.dom.media.detach()};this.dom.media.addClass('olefa-video-video').appendTo(this.dom.wrapper);this.states=new OcStates();OLEFA.i18n.load('general.json').then(()=>{this.initVideoUI();this.initStates();this.initEvents()});this.dom.media.prop('olefa-object-reference',this).attr('data-initialized','')}initVideoUI(){const dom={controls:{wrapper:jQuery('<div></div>'),base:{wrapper:jQuery('<div></div>'),header:jQuery('<span></span>'),expandButton:new OcMdButtonIcontoggle({iconSet:'md:expand_less',icon:'md:expand_more',label:OLEFA.i18n.get('show_more'),labelSet:OLEFA.i18n.get('show_less')})},list:{wrapper:jQuery('<div></div>'),playbackRate:{wrapper:jQuery('<div></div>'),header:jQuery('<span></span>'),selection:new OcMdInputSelectFilled({label:OLEFA.i18n.get('playback_rate')}
19)}}},};this.dom={...this.dom,...dom};this.dom.controls.wrapper.addClass(`olefa-video-controls ${OcMdMenu.cssClasses.fixedAnchor}`).appendTo(this.dom.wrapper);this.dom.controls.base.wrapper.addClass('olefa-video-controls-base').appendTo(this.dom.controls.wrapper);this.dom.controls.base.header.addClass('olefa-video-controls-base-header').html(OLEFA.i18n.get('controls')).appendTo(this.dom.controls.base.wrapper);this.dom.controls.base.expandButton.base.appendTo(this.dom.controls.base.wrapper);this.dom.controls.list.wrapper.addClass('olefa-video-controls-list').appendTo(this.dom.controls.wrapper);this.dom.controls.list.playbackRate.wrapper.addClass('olefa-video-controls-list-playbackrate').appendTo(this.dom.controls.list.wrapper);this.dom.controls.list.playbackRate.selection.base.addClass('olefa-video-controls-list-playbackrate-selection').appendTo(this.dom.controls.list.playbackRate.wrapper);const playbackOptions=[{label:'0.5x',value:'0.5'},{label:'0.75x',value:'0.75'},{label:OLEFA.i18n.get('normal'),value:'1'},{label:'1.5x',value:'1.5'},{label:'2x',value:'2'}];for(var i=0;i<playbackOptions.length;++i){const option=new OcMdListitemSinglelineSelectableSelect(playbackOptions[i]);this.dom.controls.list.playbackRate.selection.addOption(option)};this.dom.controls.list.playbackRate.selection.value='1'};initEvents(){this.dom.controls.base.expandButton.events.listen('toggle',this.onControlsExpandButtonToggle.bind(this));this.dom.controls.list.playbackRate.selection.events.listen('change',this.__onPlaybackrate__change.bind(this))};initStates(){this.states.define({state:'controls-expanded',onGain:this.onStateGain__controls_expanded.bind(this),onLoss:this.onStateLoss__controls_expanded.bind(this)})};onStateGain__controls_expanded(){this.dom.wrapper.attr('data-controls-expanded','')};onStateLoss__controls_expanded(){this.dom.wrapper.removeAttr('data-controls-expanded')};onControlsExpandButtonToggle(data){if(data.isOn){this.states.add('controls-expanded')}else{this.states.remove('controls-expanded')}};__onPlaybackrate__change(playbackRate){this.playbackRate(Number(playbackRate.data.value))}};Oc.OcHtmlMediaVideo=OcHtmlMediaVideo;"use strict";class OcHtmlMediaImage extends OcHtmlMedia{constructor(jExisting){super(jExisting);this.type='image';this.img=new OcHtmlImg();this.dom.media=this.img.base;this.dom.media.prop('olefa-object-reference',this).attr('data-initialized','').addClass('oc-html-media oc-html-media-image').appendTo(this.dom.wrapper)}addSource(mimeType,source){return undefined};setOriginal(source){this.original=source;this.img.src=source};playbackRate(){}}"use strict";class OcHtmlMediaConverting extends OcHtmlMedia{constructor(){super();this.elements={};this.events=new OcEvents();this.states=new OcStates();this.file=null;this.refID=OLEFA.basics.generateID();this.initStates();this.initElement();this.initEvents()}initStates(){this.states.define({state:'undefined'});this.states.define({state:'loading'});this.states.define({state:'pending'});this.states.define({state:'running'});this.states.define({state:'broken'});this.states.define({state:'ready'});this.states.events.listen('stateGain',(data)=>{this.__onStateChange(data.state)})};initElement(){this.dom.base=jQuery('<div></div>');this.dom.base.addClass('oc-html-media-converting');this.dom.contentWrapper=jQuery('<div></div>').addClass('oc-html-media-converting__content-wrapper').appendTo(this.dom.base);this.dom.message=jQuery('<a></a>');this.dom.message.addClass('oc-html-media-converting__message').attr({'href':'https://www.olefaschool.lu/project/81'}).appendTo(this.dom.contentWrapper);this.elements.progressBar=new OcMdProgressbarCircular({determinate:false});this.elements.progressBar.base.addClass('oc-html-media-converting__progeress').appendTo(this.dom.contentWrapper);this.dom.media=this.dom.base};initEvents(){const that=this;OLEFA.websocket.events.cancelAllFromScope(this.refID);OLEFA.websocket.events.listen(OcWebsocketClient.events.VIDEO_ENCODE_STATE_CHANGE,(ev)=>{const data=ev.data;if(data.file==that.file){that.states.state(data.state)}},this.refID);this.states.state('undefined')};__onStateChange(state){switch(state){case'undefined':this.elements.progressBar.base.detach();this.dom.message.text(OLEFA.i18n.get('video_notaccessible'));break;case'loading':this.elements.progressBar.base.appendTo(this.dom.contentWrapper);this.dom.message.text(OLEFA.i18n.get('video_pending'));break;case'pending':this.dom.message.text(OLEFA.i18n.get('video_pending'));break;case'running':this.dom.message.text(OLEFA.i18n.get('video_running'));break;case'broken':this.elements.progressBar.base.detach();this.dom.message.text(OLEFA.i18n.get('video_broken'));if(this.file){this.unsubscribeFromChanges(this.file)};break;case'ready':this.elements.progressBar.base.detach();this.dom.message.text('');this.events.trigger('file-ready',undefined);if(this.file){this.unsubscribeFromChanges(this.file)};break;default:}};setFile(file){this.file=file;this.states.state('loading');this.subscribeToChanges(this.file)};subscribeToChanges(file){OLEFA.websocket.subscribeToService(OcWebsocketClient.availableSubscriptions.VIDEOENCODESTATE,{file:file})};unsubscribeFromChanges(file){OLEFA.websocket.unsubscribeFromService(OcWebsocketClient.availableSubscriptions.VIDEOENCODESTATE,{file:file})}}Oc.OcHtmlMediaConverting=OcHtmlMediaConverting;"use strict";class OcHtmlMenu extends OcUi{constructor(properties){super(properties)}defaults(){return OcHtmlMenu.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,id:{get:this.__getId.bind(this),set:this.__setId.bind(this)},open:{get:this.__getOpen.bind(this),set:this.__setOpen.bind(this)},menuItems:{get:this.__getMenuItems.bind(this)}}}__getId(){return this.properties.id}__setId(value){this.properties.id=value;this.__handleBaseNode()}__getOpen(){return this.properties.open}__setOpen(value){this.properties.open=value;this.__handleBaseNode()}__getMenuItems(){return Object.values(this.__internals.menuItems)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.menuItems={};this.propertyHandlers.id=this.__setId;this.propertyHandlers.open=this.__setOpen};__initElements(){super.__initElements();const cssBase='oc-html-menu';this.__createDOMNodes({base:{tag:'oc-menu',class:cssBase}})}__initialize(properties){super.__initialize(properties)}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcHtmlMenu',()=>{const node=this.__internals.dom.base.get(0);if(!node){return};node.id=this.__getId();node.open=this.__getOpen()})}__initEvents__menuItem(menuItem){menuItem.events.listen('select',this.__onMenuItem__select.bind(this,menuItem),this.refID)}__onMenuItem__select(menuItem,ev){this.__trigger__select({instance:menuItem,event:ev.data});this.__forwardEventToMenuOwner(menuItem,ev)}__forwardEventToMenuOwner(menuItem,ev){const baseNode=this.__internals.dom.base.get(0);
19if(!baseNode){return}const rootNode=baseNode.getRootNode();if(!rootNode){return}const id=this.__getId();if(!id){return};rootNode.querySelectorAll(`oc-menubar-item[submenu="${id}"], oc-menu-item[submenu="${id}"]`).forEach(element=>{if(!('olefa-object-reference'in element)){return};const ocInstance=element['olefa-object-reference'];if(!(ocInstance instanceof OcHtmlMenuItem)&&!(ocInstance instanceof OcHtmlMenubarItem)){return};ocInstance.adoptSubmenuSelectEvent(ev.data)})}addMenuItem(menuItem){if(this.__internals.menuItems[menuItem.refID]){return};this.__internals.menuItems[menuItem.refID]=menuItem;menuItem.base.appendTo(this.__internals.dom.base);if(menuItem instanceof OcHtmlMenuItem){this.__initEvents__menuItem(menuItem)};this.properties.menuItems=Object.values(this.__internals.menuItems)}getMenuItem(refId){if(!this.__internals.menuItems[refId]){return undefined};return this.__internals.menuItems[refId]}removeMenuItem(refId){if(!this.__internals.menuItems[refId]){return};if(this.__internals.menuItems[refId]instanceof OcHtmlMenuItem){this.__internals.menuItems[refId].events.cancelAllFromScope(this.refID)};OcHtml.detachIfInside(this.__internals.menuItems[refId],this.__internals.dom.base);delete this.__internals.menuItems[refId];this.properties.menuItems=Object.values(this.__internals.menuItems)}getMenubarItemById(id){const menuItems=Object.values(this.__internals.menuItems);const validMenuItems=menuItems.filter(menuItem=>menuItem instanceof OcHtmlMenuItem);return validMenuItems.find(menuItem=>menuItem.id==id)}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,id:'',open:false,menuItems:[]}}}}Oc.OcHtmlMenu=OcHtmlMenu;"use strict";class OcHtmlMenuItem extends OcUi{constructor(properties){super(properties)}defaults(){return OcHtmlMenuItem.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,id:{get:this.__getId.bind(this),set:this.__setId.bind(this)},submenu:{get:this.__getSubmenu.bind(this),set:this.__setSubmenu.bind(this)},expanded:{get:this.__getExpanded.bind(this),set:this.__setExpanded.bind(this)},href:{get:this.__getHref.bind(this),set:this.__setHref.bind(this)},target:{get:this.__getTarget.bind(this),set:this.__setTarget.bind(this)},event:{get:this.__getEvent.bind(this),set:this.__setEvent.bind(this)},data:{get:this.__getData.bind(this),set:this.__setData.bind(this)},leadingIcon:{get:this.__getLeadingIcon.bind(this),set:this.__setLeadingIcon.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},expandIcon:{get:this.__getExpandIcon.bind(this),set:this.__setExpandIcon.bind(this)}}}__getId(){return this.properties.id}__setId(value){this.properties.id=value}__getSubmenu(){return this.properties.submenu}__setSubmenu(value){this.properties.submenu=value;this.__handleBaseNode()}__getExpanded(){return this.properties.expanded}__setExpanded(value){this.properties.expanded=value;this.__handleBaseNode()}__getHref(){return this.properties.href}__setHref(value){this.properties.href=value;this.__handleBaseNode()}__getTarget(){return this.properties.target}__setTarget(value){this.properties.target=value;this.__handleBaseNode()}__getEvent(){return this.properties.event}__setEvent(value){this.properties.event=value;this.__handleBaseNode()}__getData(){return this.properties.data}__setData(value){this.properties.data=value}__getLeadingIcon(){return this.properties.leadingIcon}__setLeadingIcon(value){if(this.properties.leadingIcon!==null){const jIcon=jQuery(this.properties.leadingIcon);jIcon.removeAttr('slot');OcHtml.detachIfInside(jIcon,this.__internals.dom.base)}this.properties.leadingIcon=value;if(this.properties.leadingIcon!==null){const jIcon=jQuery(this.properties.leadingIcon);jIcon.attr('slot','leading-icon');jIcon.appendTo(this.__internals.dom.base)}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__handleLabelNode()}__getExpandIcon(){return this.properties.expandIcon}__setExpandIcon(value){if(this.properties.expandIcon!==null){const jIcon=jQuery(this.properties.expandIcon);jIcon.removeAttr('slot');OcHtml.detachIfInside(jIcon,this.__internals.dom.base)}this.properties.expandIcon=value;if(this.properties.expandIcon!==null){const jIcon=jQuery(this.properties.expandIcon);jIcon.attr('slot','expand-icon');jIcon.appendTo(this.__internals.dom.base)}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.id=this.__setId;this.propertyHandlers.submenu=this.__setSubmenu;this.propertyHandlers.expanded=this.__setExpanded;this.propertyHandlers.href=this.__setHref;this.propertyHandlers.target=this.__setTarget;this.propertyHandlers.event=this.__setEvent;this.propertyHandlers.data=this.__setData;this.propertyHandlers.leadingIcon=this.__setLeadingIcon;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.expandIcon=this.__setExpandIcon}__initElements(){super.__initElements();const cssBase='oc-html-menu-item';this.__createDOMNodes({base:{tag:'oc-menu-item',class:cssBase,children:{label:{tag:'span',class:`${cssBase}__label`,attributes:{slot:'label'}}}}})}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`menuitem-select.${this.refID}`,this.__onBase__menuitemSelect.bind(this))}__onBase__menuitemSelect(ev){this.__trigger__select({listItem:ev.detail,instance:this,additional:this.__getData()})}__initialize(properties){super.__initialize(properties)}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcHtmlMenuItem',()=>{const node=this.__internals.dom.base.get(0);if(!node){return};node.submenu=this.__getSubmenu()||undefined;node.expanded=this.__getExpanded();node.href=this.__getHref();node.target=this.__getTarget();node.event=this.__getEvent()})}__handleLabelNode(){this.__deferOnce('__handleLabelNode',()=>{const node=this.__internals.dom.label;const label=this.__getLabel();node.html(label)})}adoptSubmenuSelectEvent(eventData){this.__trigger__select(eventData)}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,id:'',submenu:null,expanded:false,href:null,target:null,event:null,data:{},label:'',leadingIcon:null,expandIcon:null}}}}OcHtmlMenuItem.targets=HTMLOcMenuItemElement.targets;Oc.OcHtmlMenuItem=OcHtmlMenuItem;"use strict";class OcHtmlMenubar extends OcUi{constructor(properties){super(properties)}defaults(){return OcHtmlMenubar.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},menuItems:{get:this.__getMenuItems.bind(this)}}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__handleBaseNode()}__getMenuItems(){return Object.values(this.__internals.menuItems)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.menuItems={};this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.menuItems=this.addMenuItem};__initElements(){super.__initElements();const cssBase='oc-html-menubar';this.__createDOMNodes({base:{tag:'oc-menubar',class:cssBase}})}__initialize(properties){super.__initialize(properties)}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcHtmlMenubar',()=>{const node=this.__internals.dom.base.get(0);if(!node){return};node.label=this.__getLabel()})}__initEvents__menuItem(menuItem){menuItem.events.listen('select',this.__onMenuItem__select.bind(this,menuItem))}__onMenuItem__select(menuItem,ev){this.__trigger__select(ev.data)}addMenuItem(menuItem){if(this.__internals.menuItems[menuItem.refID]){return};this.__internals.menuItems[menuItem.refID]=menuItem;menuItem.base.appendTo(this.__internals.dom.base);this.__initEvents__menuItem(menuItem);this.properties.menuItems=Object.values(this.__internals.menuItems)}getMenuItem(refId){if(!this.__internals.menuItems[refId]){return undefined};return this.__internals.menuItems[refId]}removeMenuItem(refId){if(!this.__internals.menuItems[refId]){return};this.__internals.menuItems[refId].events.cancelAllFromScope(this.refID);OcHtml.detachIfInside(this.__internals.menuItems[refId],this.__internals.dom.base);delete this.__internals.menuItems[refId];this.properties.menuItems=Object.values(this.__internals.menuItems)}getMenuItemById(id){const menuItems=Object.values(this.__internals.menuItems);const validMenuItems=menuItems.filter(menuItem=>menuItem instanceof OcHtmlMenubarItem);return validMenuItems.find(menuItem=>menuItem.id==id)}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,label:'',menuItems:[]}}}}Oc.OcHtmlMenubar=OcHtmlMenubar;"use strict";class OcHtmlMenubarItem extends OcUi{constructor(properties){super(properties)}defaults(){return OcHtmlMenubarItem.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,id:{get:this.__getId.bind(this),set:this.__setId.bind(this)},submenu:{get:this.__getSubmenu.bind(this),set:this.__setSubmenu.bind(this)},expanded:{get:this.__getExpanded.bind(this),set:this.__setExpanded.bind(this)},href:{get:this.__getHref.bind(this),set:this.__setHref.bind(this)},target:{get:this.__getTarget.bind(this),set:this.__setTarget.bind(this)},event:{get:this.__getEvent.bind(this),set:this.__setEvent.bind(this)},data:{get:this.__getData.bind(this),set:this.__setData.bind(this)},leadingIcon:{get:this.__getLeadingIcon.bind(this),set:this.__setLeadingIcon.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},expandIcon:{get:this.__getExpandIcon.bind(this),set:this.__setExpandIcon.bind(this)}}}__getId(){return this.properties.id}__setId(value){this.properties.id=value}__getSubmenu(){return this.properties.submenu}__setSubmenu(value){this.properties.submenu=value;this.__handleBaseNode()}__getExpanded(){return this.properties.expanded}__setExpanded(value){this.properties.expanded=value;this.__handleBaseNode()}__getHref(){return this.properties.href}__setHref(value){this.properties.href=value;this.__handleBaseNode()}__getTarget(){return this.properties.target}__setTarget(value){this.properties.target=value;this.__handleBaseNode()}__getEvent(){return this.properties.event}__setEvent(value){this.properties.event=value;this.__handleBaseNode()}__getData(){return this.properties.data}__setData(value){this.properties.data=value}__getLeadingIcon(){return this.properties.leadingIcon}__setLeadingIcon(value){if(this.properties.leadingIcon!==null){const jIcon=jQuery(this.properties.leadingIcon);jIcon.removeAttr('slot');OcHtml.detachIfInside(jIcon,this.__internals.dom.base)}this.properties.leadingIcon=value;if(this.properties.leadingIcon!==null){const jIcon=jQuery(this.properties.leadingIcon);jIcon.attr('slot','leading-icon');jIcon.appendTo(this.__internals.dom.base)}}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__handleLabelNode()}__getExpandIcon(){return this.properties.expandIcon}__setExpandIcon(value){if(this.properties.expandIcon!==null){const jIcon=jQuery(this.properties.expandIcon);jIcon.removeAttr('slot');OcHtml.detachIfInside(jIcon,this.__internals.dom.base)}this.properties.expandIcon=value;if(this.properties.expandIcon!==null){const jIcon=jQuery(this.properties.expandIcon);jIcon.attr('slot','expand-icon');jIcon.appendTo(this.__internals.dom.base)}}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.id=this.__setId;this.propertyHandlers.submenu=this.__setSubmenu;this.propertyHandlers.expanded=this.__setExpanded;this.propertyHandlers.href=this.__setHref;this.propertyHandlers.target=this.__setTarget;this.propertyHandlers.event=this.__setEvent;this.propertyHandlers.data=this.__setData;this.propertyHandlers.leadingIcon=this.__setLeadingIcon;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.expandIcon=this.__setExpandIcon}__initElements(){super.__initElements();const cssBase='oc-html-menubar-item';this.__createDOMNodes({base:{tag:'oc-menubar-item',class:cssBase,children:{label:{tag:'span',class:`${cssBase}__label`,attributes:{slot:'label'}}}}})}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`menubaritem-select.${this.refID}`,this.__onMenubaritem__select.bind(this))}__onMenubaritem__select(ev){this.__trigger__select({listItem:ev.detail,instance:this,additional:this.__getData()})}__initialize(properties){super.__initialize(properties)}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcHtmlMenubarItem',()=>{const node=this.__internals.dom.base.get(0);if(!node){return};node.submenu=this.__getSubmenu()||undefined;node.expanded=this.__getExpanded();node.href=this.__getHref();node.target=this.__getTarget();node.event=this.__getEvent()})}__handleLabelNode(){this.__deferOnce('__handleLabelNode',()=>{const node=this.__internals.dom.label;const label=this.__getLabel();node.html(label)})}adoptSubmenuSelectEvent(eventData){this.__trigger__select(eventData)}__trigger__select(eventData){const event=new OcEvent({eventName:'select',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,id:'',submenu:null,expanded:false,href:null,target:null,event:null,data:{},label:'',leadingIcon:null,expandIcon:null}}}}OcHtmlMenubarItem.targets=HTMLOcMenubarItemElement.targets;Oc.OcHtmlMenubarItem=OcHtmlMenubarItem;"use strict";class OcHtmlMenuItemSeparator extends OcUi{constructor(properties){super(properties)}defaults(){return OcHtmlMenuItemSeparator.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initElements(){super.__initElements();const cssBase='oc-html-menu-item-separator';this.__createDOMNodes({base:{tag:'oc-menu-item-separator',class:cssBase}})}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcHtmlMenuItemSeparator=OcHtmlMenuItemSeparator;"use strict";class OcInteractivity{static preventDefault(e){e.preventDefault()}}OcInteractivity.key={LEFT_MOUSEDOWN:1,MIDDLE_MOUSEDOWN:2,RIGHT_MOUSEDOWN:3,MOUSE_BUTTON_MAIN:0,MOUSE_BUTTON_AUX:1,MOUSE_BUTTON_SECONDARY:2,MOUSE_BUTTON_FOURTH:3,MOUSE_BUTTON_FIFTH:4};oc.OcInteractivity=OcInteractivity;"use strict";class OcInteractivityAutonavFloating extends OcComponent{constructor(element,properties){if(!OcDatatype.is('object',properties)){properties={}};properties.element=element;super(properties)}defaults(){return OcInteractivityAutonavFloating.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.root=null;this.__internals.currentContainer=null;this.__internals.promises={cssDefaultLibOLEFAUI:OLEFA.css.getIfNotLoaded('default/libOLEFAUI.css','--loaded--default-libolefaui')}}__initialize(properties){this.__internals.root=jQuery(properties.element);this.__initElements();this.__initEvents();this.__initProperties(properties);this.__internals.currentContainer=this.__internals.root};__initElements(){if(this.__internals.root){this.__internals.root.addClass('oc-interactivity-auto-nav-floating').attr('data-auto-nav-active','');this.__internals.root.find('ul').each(function(){jQuery(this).addClass('oc-interactivity-auto-nav-floating__container')})}};__initEvents(){super.__initEvents();if(this.__internals.root){this.__internals.root.on('focusin',(ev)=>{ev.preventDefault();ev.stopPropagation()}).on('click.'+this.refID,this.__onClick.bind(this)).on('keydown.'+this.refID,this.__onKeydown.bind(this))}};__onClick(e){const target=e.originalEvent.target;if(!target){return};if(!this.__hasChild
19ren(target)){return};e.preventDefault();if(jQuery(target).is('[data-auto-nav-force-show]>a')){this.back()}else{this.__selectMenuItem(target)}};__onKeydown(e){const target=e.originalEvent.target;if(!target){return};if(jQuery(target).is('a[role="menuitem"]')){let jLi=jQuery(target).parent();switch(e.key){case'ArrowDown':{e.stopPropagation();e.preventDefault();if(jLi.index()==jLi.siblings().length){jLi=jLi.siblings(':first')}else{jLi=jLi.next()};const li=jLi.children('a[role="menuitem"]').get(0);if(li){li.focus({preventScroll:true})}break}case'ArrowUp':{e.stopPropagation();e.preventDefault();if(jLi.index()==0){jLi=jLi.siblings(':last')}else{jLi=jLi.prev()};const li=jLi.children('a[role="menuitem"]').get(0);if(li){li.focus({preventScroll:true})}break}case'ArrowRight':{e.stopPropagation();e.preventDefault();const link=jLi.children('a[role="menuitem"]').get(0);if(!link){return};if(!this.__hasChildren(link)){return};this.__selectMenuItem(link);break}case'ArrowLeft':{e.stopPropagation();e.preventDefault();this.back();break}case'Enter':{e.stopPropagation();e.preventDefault();const link=jLi.children('a[role="menuitem"]').get(0);link?.click();break}case' ':{e.stopPropagation();e.preventDefault();const link=jLi.children('a[role="menuitem"]').get(0);link?.click();break}default:{}}}};__getLinkFromContainer(container){return jQuery(container).siblings('a')};__getContainerFromLink(link){return jQuery(link).siblings('.oc-interactivity-auto-nav-floating__container')};__getParentContainer(container){return jQuery(container).parent().parent()};__hasChildren(link){return OcDatatype.toBoolean(this.__getContainerFromLink(link).length)};__makeContainerOfLinkActive(target){if(!this.__internals.root){return};jQuery(target).css({transform:'translateY(-'+target.offsetTop+'px)'});this.__internals.root.find('[data-auto-nav-force-show]').removeAttr('data-auto-nav-force-show');jQuery(target).parent().attr('data-auto-nav-force-show','');const newContainer=this.__getContainerFromLink(target);newContainer.attr('data-auto-nav-active','').css({transform:'translateY('+target.offsetHeight+'px)'});this.__internals.currentContainer=newContainer;this.__internals.root.css({'height':(newContainer.height()||0)+target.offsetHeight});const containerNode=newContainer.children('li:first').children('a[role="menuitem"]').get(0);if(containerNode){containerNode.focus({preventScroll:true})}};__selectMenuItem(target){if(!this.__internals.currentContainer){return};this.__internals.currentContainer.attr('data-auto-nav-child-active','').css({transform:'translateY(0)'});const oldTarget=this.__getLinkFromContainer(this.__internals.currentContainer);oldTarget.css({transform:''});this.__makeContainerOfLinkActive(target)};reset(){while(this.__internals.currentContainer&&this.__internals.currentContainer.length>0&&!this.__internals.currentContainer.is('.oc-interactivity-auto-nav-floating')){this.back()};if(this.__internals.root){const firstMenuItem=this.__internals.root.find('a[role="menuitem"]').first();const node=firstMenuItem.get(0);node?.focus({preventScroll:true})}};back(){if(!this.__internals.currentContainer||this.__internals.currentContainer.length==0||this.__internals.currentContainer.is('.oc-interactivity-auto-nav-floating')){return};const parentContainer=this.__getParentContainer(this.__internals.currentContainer);this.__internals.currentContainer.removeAttr('data-auto-nav-active').css({transform:''});const thisTarget=this.__getLinkFromContainer(this.__internals.currentContainer);thisTarget.css({transform:''});if(this.__internals.root&&parentContainer.is('.oc-interactivity-auto-nav-floating')){this.__internals.root.css('height','').find('[data-auto-nav-force-show]').removeAttr('data-auto-nav-force-show')}else{const newTarget=this.__getLinkFromContainer(parentContainer);const node=newTarget.get(0);if(node){this.__makeContainerOfLinkActive(node)}};parentContainer.removeAttr('data-auto-nav-child-active');const node=thisTarget.get(0);node?.focus({preventScroll:true});this.__internals.currentContainer=parentContainer};destroy(){if(this.__internals.root){this.__internals.root.removeClass('oc-interactivity-auto-nav-floating').removeAttr('data-auto-nav-active');this.__internals.root.off('.'+this.refID);this.__internals.root.find('.oc-interactivity-auto-nav-floating__container').removeClass('oc-interactivity-auto-nav-floating__container');this.__internals.root.find('[data-auto-nav-active]').removeAttr('data-auto-nav-active').css({transform:''});this.__internals.root.find('[data-auto-nav-force-show]').removeAttr('data-auto-nav-force-show').children('a').css({transform:''});this.__internals.root.find('[data-auto-nav-child-active]').removeAttr('data-auto-nav-child-active').css({transform:''})}super.destroy()}static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{element:undefined}};return extendedData}};oc.OcInteractivityAutonavFloating=OcInteractivityAutonavFloating;"use strict";class OcInteractivityAutoSort extends OcComponent{constructor(element,properties){const normalizedProperties={...properties,...{element:element}};super(normalizedProperties)};defaults(){return OcInteractivityAutoSort.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,sortDirection:{get:this.__getSortDirection.bind(this),set:this.__setSortDirection.bind(this)}
19,sortKey:{get:this.__getSortKey.bind(this),set:this.__setSortKey.bind(this)}}};__setSortKey(value){this.properties.sortKey=value;this.__sortAll();this.__recreateMutationObserversForAllChildren()};__getSortKey(){return this.properties.sortKey};__setSortDirection(value){const defaults=this.defaults();if(!defaults.sortDirections[value]){return};this.properties.sortDirection=defaults.sortDirections[value];this.__sortAll()};__getSortDirection(){return this.properties.sortDirection};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.sortKey=this.__setSortKey;this.propertyHandlers.sortDirection=this.__setSortDirection};__initialize(properties){let element=(properties&&properties.element)?jQuery(properties.element):jQuery();this.__internals.root=element;const observer=OLEFA.mutations.createObserver({event:this.refID,element:this.__internals.root,mutations:{childList:true}});if(observer){this.__internals.observers={childAdd:observer,children:{}}}this.__initElements();this.__initEvents();this.__initProperties(properties)};__initElements(){this.__internals.root.addClass('oc-interactivity-auto-sort')};__initEvents(){super.__initEvents();this.__internals.observers.childAdd.events.listen('childlist-added',this.__onObserverChildAdd__childlistAdded.bind(this),this.refID).listen('childlist-removed',this.__onObserverChildAdd__childlistRemoved.bind(this),this.refID)};__onObserverChildAdd__childlistAdded(data){if(!jQuery(data.node).is('[data-auto-sort-processing]')){this.__createMutationObserverForChildElement(data.node);this.__repositionChild(data.node)}else{jQuery(data.node).removeAttr('data-auto-sort-processing')}};__onObserverChildAdd__childlistRemoved(data){if(!jQuery(data.node).is('[data-auto-sort-processing]')){this.__destroyMutationObserverOfChildElement(data.node)}};__initEvents__childrenObserver(observer){observer.events.listen('attribute-change',this.__onChildObserver__attributeChange.bind(this),this.refID)};__onChildObserver__attributeChange(data){if(data.attribute!=this.sortKey){return};this.__repositionChild(data.element)};__recreateMutationObserversForAllChildren(){for(var id in this.__internals.observers.children){OLEFA.mutations.destroyObserver(id)};const jChildren=this.__internals.root.children();const that=this;jChildren.each(function(){that.__createMutationObserverForChildElement(this)})};__sortAll(){if(!this.sortKey){return};const jChildren=this.__internals.root.children('['+this.sortKey+']').attr('data-auto-sort-processing','').detach();const elementArray=[];const that=this;jChildren.each(function(){const jThis=jQuery(this);elementArray.push({element:jThis,value:jThis.attr(that.sortKey)||''})});var sorted=elementArray.sort(function(a,b){const compA=typeof(a.value.toLowerCase)=='function'?a.value.toLowerCase():a.value;const compB=typeof(b.value.toLowerCase)=='function'?b.value.toLowerCase():b.value;if(compA<compB){return-1};if(compA>compB){return 1};return 0});if(this.sortDirection==this.defaults().sortDirections.asc){sorted=sorted.reverse()};for(var index in sorted){this.__internals.root.prepend(sorted[index].element)}};__repositionChild(element){const jElement=jQuery(element);jElement.attr('data-auto-sort-processing','').detach();const jChildren=this.__internals.root.children('['+this.sortKey+']');const initialPosition=jElement.parent().is(this.__internals.root)?jElement.index():-1;
19if(!jChildren.length){this.__internals.root.prepend(jElement);return};var found=false;const that=this;jChildren.each(function(){const jThis=jQuery(this);if(that.__doesAComeBeforeB(jThis,jElement)){jThis.before(jElement);found=true;return false};return});if(!found){jChildren.last().after(jElement)};const finalPosition=jElement.parent().is(this.__internals.root)?jElement.index():-1;this.__trigger__sort({element:jElement,from:initialPosition,to:finalPosition})};__doesAComeBeforeB(a,b){const isAscending=OcDatatype.toBoolean(this.sortDirection==this.defaults().sortDirections.asc);const aValue=a.attr(this.sortKey)||'';const bValue=b.attr(this.sortKey)||'';if(aValue>bValue){return isAscending};return!isAscending};__createMutationObserverForChildElement(element){const id=OLEFA.basics.generateID();const observer=OLEFA.mutations.createObserver({event:id,element:element,mutations:{attributes:true,attributeFilter:[this.properties.sortKey],attributeOldValue:true}});if(observer){jQuery(element).attr('data-auto-sort-id',id);this.__internals.observers.children[id]=observer;this.__initEvents__childrenObserver(this.__internals.observers.children[id])}};__destroyMutationObserverOfChildElement(element){const id=jQuery(element).attr('data-auto-sort-id');if(!id){return}OLEFA.mutations.destroyObserver(id);jQuery(element).removeAttr('data-auto-sort-id')};__trigger__sort(eventData){const event=new OcEvent({eventName:'sort',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){for(var id in this.__internals.observers.children){OLEFA.mutations.destroyObserver(id)};OLEFA.mutations.destroyObserver(this.refID);this.__internals.root.removeClass('oc-interactivity-auto-sort');super.destroy()};static defaults(){const inheritedDefaults=super.defaults();const sortDirections={asc:'asc',desc:'desc'};return{...inheritedDefaults,properties:{...inheritedDefaults.properties,sortDirection:sortDirections.asc,sortKey:''},sortDirections:sortDirections}}}Oc.OcInteractivityAutoSort=OcInteractivityAutoSort;"use strict";class OcInteractivityDraggableContainer extends OcComponent{constructor(properties){const normalizedProperties={...properties};if(!normalizedProperties){return};const jContainer=jQuery(normalizedProperties.container);if(!jContainer.length){OLEFA.log.warn('Container expected');return};if(jContainer.length>1){OLEFA.log.warn('Container ambiguous');return};super(normalizedProperties)}defaults(){return OcInteractivityDraggableContainer.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,cancelDrag:{get:function(){return that.__getCancelDrag()},set:function(a){that.__setCancelDrag(a)}},freeze:{get:function(){return that.__getFreeze()},set:function(a){that.__setFreeze(a)}},helperType:{get:function(){return that.__getHelperType()},set:function(a){that.__setHelperType(a)}},isDragging:{get:function(){return that.__internals.states.hasState('dragging')}},itemDragStates:{get:function(){OLEFA.log.deprecated('DEPRECATED! Use this.__internals.itemDragStates instead!');return that.__internals.itemDragStates}},itemSelector:{get:function(){return that.__getItemSelector()},set:function(a){that.__setItemSelector(a)}},items:{get:function(){OLEFA.log.deprecated('DEPRECATED! Use this.__internals.items instead!');return that.__internals.items}},pressDelay:{get:function(){return that.__getPressDelay()},set:function(a){that.__setPressDelay(a)}},scrollTrigger:{get:function(){return that.__getScrollTrigger()},set:function(a){that.__setScrollTrigger(a)}},states:{get:function(){OLEFA.log.deprecated('DEPRECATED! Use this.__internals.states instead!');return that.__internals.states}}};return extendedDefinitions};__setPressDelay(value){this.properties.pressDelay=value};__getPressDelay(){return this.properties.pressDelay};__setScrollTrigger(value){this.properties.scrollTrigger=value};__getScrollTrigger(){return this.properties.scrollTrigger};__setItemSelector(value){if(!value){value=this.defaults().properties.itemSelector};this.properties.itemSelector=value;this.refreshItems()};__getItemSelector(){return this.properties.itemSelector};__setFreeze(value){this.properties.freeze=OcDatatype.toBoolean(value);this.__deferOnce('__setter__freeze',()=>{for(var item of Object.values(this.__internals.items)){item.freeze=this.properties.freeze}})};__getFreeze(){return this.properties.freeze};__setHelperType(value){const defaults=this.defaults();if(!defaults.helperTypes.has(value)){return};this.properties.helperType=value;this.__deferOnce('__setter__helperType',()=>{for(var item of Object.values(this.__internals.items)){item.helperType=this.properties.helperType}})};__getHelperType(){return this.properties.helperType};__setCancelDrag(value){this.properties.cancelDrag=value;this.__deferOnce('__setter__cancelDrag',()=>{for(var item of Object.values(this.__internals.items)){item.cancelDrag=this.properties.cancelDrag}})};__getCancelDrag(){return this.properties.cancelDrag};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMain:OLEFA.css.getIfNotLoaded('default/libOLEFAUI.css','--loaded--default-libolefaui')};this.__internals.items={};this.__internals.itemDragStates={};this.__internals.states=new OcStates();this.propertyHandlers.pressDelay=this.__setPressDelay;this.propertyHandlers.scrollTrigger=this.__setScrollTrigger;this.propertyHandlers.itemSelector=this.__setItemSelector;this.propertyHandlers.freeze=this.__setFreeze;this.propertyHandlers.helperType=this.__setHelperType;this.propertyHandlers.cancelDrag=this.__setCancelDrag};__initialize(properties){const normalizedProperties={...properties};const jContainer=jQuery(normalizedProperties.container);this.__internals.container=jContainer;this.__initElements();this.__initStates();this.__initEvents();this.__initProperties(normalizedProperties);this.refreshItems()};__initElements(){this.__internals.container.addClass('oc-interactivity-draggable-container');this.__internals.mutationObserver=OLEFA.mutations.createObserver({event:this.refID,element:this.__internals.container,mutations:{childList:true}})};__initStates(){this.__internals.states.define({'state':'dragging','onGain':this.__onStateGain__dragging.bind(this),'onLoss':this.__onStateLoss__dragging.bind(this)})};__onStateGain__dragging(data){this.__trigger__start(data)};__onStateLoss__dragging(data){this.__trigger__stop(data)};__initEvents(){super.__initEvents();this.__internals.mutationObserver?.events.listen('childlist-added',this.__onChildListAdded.bind(this),this.refID)};__onChildListAdded(data){if(jQuery(data.node).is(this.properties.itemSelector)){this.addItem(data.node)}};__initEvents__item(item){item.events.listen('drop',this.__onItemDrop.bind(this,item),this.refID).listen('start',this.__onItemDragStart.bind(this,item),this.refID).listen('stop',this.__onItemDragStop.bind(this,item),this.refID)};__onItemDrop(Item,data){this.__trigger__drop({draggable:Item,data:data})};__onItemDragStart(Item,data){this.__internals.itemDragStates[Item.refID]=1;this.__handleDragStateChange(Item,data)};__onItemDragStop(Item,data){if(this.__internals.itemDragStates[Item.refID]){delete this.__internals.itemDragStates[Item.refID];this.__handleDragStateChange(Item,data)}};setItemSelector(selector){OLEFA.log.deprecated('DEPRECATED! Set the itemSelector property instead!');return this.__setItemSelector(selector)};
19setFreeze(value){OLEFA.log.deprecated('DEPRECATED! Set the freeze property instead!');return this.__setFreeze(value)};setHelperType(type){OLEFA.log.deprecated('DEPRECATED! Set the helperType property instead!');return this.__setHelperType(type)};setCancelDrag(value){OLEFA.log.deprecated('DEPRECATED! Set the cancelDrag property instead!');return this.__setCancelDrag(value)};refreshItems(){this.__deferOnce('__refreshItems',()=>{this.removeAllItems();const that=this;this.__internals.container.children(this.properties.itemSelector).each(function(){that.addItem(this)})})};addItem(item){const jItem=jQuery(item);if(!jItem.length){OLEFA.log.warn('Item does not exist');return};if(!item.id){item.id=OLEFA.basics.generateID()};const properties={...this.properties,...{item:jItem,container:this.__internals.container}};const Item=new OcInteractivityDraggableItem(properties);this.__internals.items[item.id]=Item;this.__initEvents__item(Item)};__handleDragStateChange(Item,data){if(Object.keys(this.__internals.itemDragStates).length){this.__internals.states.add('dragging',{draggable:Item,data:data})}else{this.__internals.states.remove('dragging',{draggable:Item,data:data})}};removeItem(id){if(!this.__internals.items[id]){return};this.__internals.items[id].destroy();delete this.__internals.items[id]};removeAllItems(){for(var key in this.__internals.items){this.removeItem(key)}};__trigger__start(data){this.__internals.events.trigger('start',data)};__trigger__stop(data){this.__internals.events.trigger('stop',data)};__trigger__drop(data){const normalizedData={...{draggable:null,data:null},...data};this.__internals.events.trigger('drop',normalizedData)};destroy(){this.removeAllItems();this.__internals.states.removeAll();OLEFA.mutations.destroyObserver(this.refID);delete this.__internals.mutationObserver;this.__internals.container.removeClass('oc-interactivity-draggable-container');super.destroy()};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,container:'',pressDelay:200,scrollTrigger:40,itemSelector:'*',freeze:false,helperType:'clone',cancelDrag:''},helperTypes:new Set(['clone','outline'])};return extendedData}}oc.OcInteractivityDraggableContainer=OcInteractivityDraggableContainer;"use strict";class OcInteractivityDraggableItem extends OcComponent{constructor(properties){const normalizedProperties={...properties};const jItem=jQuery(normalizedProperties.item);if(!jItem.length){OLEFA.log.error('Item expected');return};if(jItem.length>1){OLEFA.log.error('Item ambiguous');return};super(normalizedProperties)}defaults(){return OcInteractivityDraggableItem.defaults()};__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,pressDelay:{get:function(){return that.__getPressDelay()},set:function(a){that.__setPressDelay(a)}},scrollTrigger:{get:function(){return that.__getScrollTrigger()},set:function(a){that.__setScrollTrigger(a)}},dragTrigger:{get:function(){return that.__getDragTrigger()},set:function(a){that.__setDragTrigger(a)}},freeze:{get:function(){return that.__getFreeze()},set:function(a){that.__setFreeze(a)}},helperType:{get:function(){return that.__getHelperType()},set:function(a){that.__setHelperType(a)}},cancelDrag:{get:function(){return that.__getCancelDrag()},set:function(a){that.__setCancelDrag(a)}},dragTriggerEvent:{get:function(){return that.__internals.data.e}},data:{get:function(){OLEFA.log.deprecated('DEPRECATED! Use this.__internals.data instead!');return that.__internals.data}},states:{get:function(){OLEFA.log.deprecated('DEPRECATED! Use this.__internals.states instead!');return that.__internals.states}},container:{get:function(){OLEFA.log.deprecated('DEPRECATED! Use this.__internals.container instead!');return that.__internals.container}},item:{get:function(){return that.__internals.item}}};return extendedDefinitions};__setPressDelay(value){this.properties.pressDelay=OcDatatype.toInteger(value)};__getPressDelay(){return this.properties.pressDelay};__setScrollTrigger(value){this.properties.scrollTrigger=OcDatatype.toInteger(value)};__getScrollTrigger(){return this.properties.scrollTrigger};__setDragTrigger(value){this.properties.dragTrigger=OcDatatype.toInteger(value)};__getDragTrigger(){return this.properties.dragTrigger};__setFreeze(value){this.properties.freeze=OcDatatype.toBoolean(value);if(this.properties.freeze){this.__internals.states.add('freeze')}else{this.__internals.states.remove('freeze')}};__getFreeze(){return this.properties.freeze};__setHelperType(value){const defaults=this.defaults();if(!defaults.helperTypes.has(value)){return};this.properties.helperType=value};__getHelperType(){return this.properties.helperType};__setCancelDrag(value){this.properties.cancelDrag=value};__getCancelDrag(){return this.properties.cancelDrag};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.data={};this.__internals.states=new OcStates();this.propertyHandlers.pressDelay=this.__setPressDelay;this.propertyHandlers.scrollTrigger=this.__setScrollTrigger;this.propertyHandlers.dragTrigger=this.__setDragTrigger;this.propertyHandlers.freeze=this.__setFreeze;this.propertyHandlers.helperType=this.__setHelperType;this.propertyHandlers.cancelDrag=this.__setCancelDrag};__initialize(properties){const normalizedProperties={...properties};this.__internals.container=(normalizedProperties.container)?jQuery(normalizedProperties.container):jQuery();this.__internals.item=jQuery(normalizedProperties.item);this.__initElements();this.__initStates();this.__initEvents();this.__initProperties(properties)};__initElements(){this.__internals.item.addClass('oc-interactivity-draggable-item')};__initStates(){this.__internals.states.define({state:'pressed',onGain:this.__onStateGain__pressed.bind(this),onLoss:this.__onStateLoss__pressed.bind(this)});this.__internals.states.define({state:'draggable',onGain:this.__onStateGain__draggable.bind(this),onLoss:this.__onStateLoss__draggable.bind(this)});this.__internals.states.define({state:'freeze',onGain:this.__onStateGain__freeze.bind(this),onLoss:this.__onStateLoss__freeze.bind(this)})};__onStateGain__pressed(){this.__internals.data.pressedTimeout=setTimeout(this.__onPressDelayPassed.bind(this),this.properties.pressDelay)};__onStateLoss__pressed(){clearTimeout(this.__internals.data.pressedTimeout)};__onStateGain__draggable(){this.__initDrag();jQuery(document.body).trigger('oc-interactivity-draggable-item--drag-start',{item:this})};
19__onStateLoss__draggable(){this.__stopDrag();jQuery(document.body).trigger('oc-interactivity-draggable-item--drag-stop',{item:this})};__onStateGain__freeze(){this.__internals.item.attr('data-draggable-freeze','')};__onStateLoss__freeze(){this.__internals.item.removeAttr('data-draggable-freeze')};__initEvents(){super.__initEvents();this.__internals.item.on('selectstart.'+this.refID,this.__onSelectStart.bind(this)).on('mousedown.'+this.refID+' touchstart.'+this.refID,this.__onMouseDown.bind(this)).on('mouseup.'+this.refID+' touchend.'+this.refID,this.__onMouseUp.bind(this)).on('mousemove.'+this.refID+' touchmove.'+this.refID,this.__onMouseMove.bind(this))};__onSelectStart(e){e.preventDefault()}__onMouseDown(e){const nativeEvent=e.originalEvent;if(!nativeEvent){return};if(nativeEvent instanceof MouseEvent&&nativeEvent.button!=OcInteractivity.key.MOUSE_BUTTON_MAIN){return};if(this.__internals.states.hasState('freeze')){return};if(this.properties.cancelDrag){if(this.__isInsideOf(nativeEvent.target,this.properties.cancelDrag)){return}};nativeEvent.stopPropagation();this.__internals.data.e=e;this.__internals.states.add('pressed')};__onMouseMove(e){if(this.__internals.states.hasState('pressed')){const{originalX,originalY,clientX,clientY}={originalX:(this.__internals.data.e&&this.__internals.data.e.clientX)?this.__internals.data.e.clientX:0,originalY:(this.__internals.data.e&&this.__internals.data.e.clientY)?this.__internals.data.e.clientY:0,clientX:e.clientX||0,clientY:e.clientY||0};if(Math.abs(clientX-originalX)>this.properties.dragTrigger||Math.abs(clientY-originalY)>this.properties.dragTrigger){e.stopPropagation();this.__internals.states.remove('pressed');this.__internals.states.add('draggable')}};if(this.__internals.states.hasState('draggable')){e.preventDefault()}};__onMouseUp(e){const nativeEvent=e.originalEvent;if(!nativeEvent){return};if(this.properties.cancelDrag){if(this.__isInsideOf(nativeEvent.target,this.properties.cancelDrag)){return}};this.__internals.states.remove('pressed');this.__internals.states.remove('draggable');nativeEvent.stopPropagation();if(nativeEvent.cancelable){}};initStates(){OLEFA.log.deprecated('DEPRECATED! Use this.__initStates() instead!');return this.__initStates()};initEvents(){OLEFA.log.deprecated('DEPRECATED! Use this.__initEvents() instead!');return this.__initEvents()};initElement(){OLEFA.log.deprecated('DEPRECATED! Use this.__initElements() instead!');return this.__initElements()};__onPressDelayPassed(){this.__internals.states.remove('pressed');this.__internals.states.add('draggable')};__isInsideOf(item,selector){const jItem=jQuery(item);if(jItem.is(selector)||OcUtilities.isElementInElement(jItem,selector)){return true};return false};__onMouseMoveWhileDraggable(e){let[clientX,clientY]=[0,0];if(e.clientX){clientX=e.clientX}else if(e.changedTouches&&e.changedTouches[0]){clientX=e.changedTouches[0].clientX};if(e.clientY){clientY=e.clientY}else if(e.changedTouches&&e.changedTouches[0]){clientY=e.changedTouches[0].clientY};if(this.__internals.container.length){const helperWidth=this.__internals.helper.width()||0;const helperHeight=this.__internals.helper.height()||0;const helperPosition={left:clientX-(helperWidth/2),top:clientY-(helperHeight/2)};const containerPosition=this.__internals.container.offset();if(containerPosition){const containerWidth=this.__internals.container.width()||0;const containerHeight=this.__internals.container.height()||0;if(helperPosition.left<containerPosition.left){clientX=containerPosition.left+(helperWidth/2)}else if(helperPosition.left+helperWidth>containerPosition.left+containerWidth){clientX=containerPosition.left+containerWidth-(helperWidth/2)};if(helperPosition.top<containerPosition.top){clientY=containerPosition.top+(helperHeight/2)}else if(helperPosition.top+helperHeight>containerPosition.top+containerHeight){clientY=containerPosition.top+containerHeight-(helperHeight/2)}}};this.__internals.helper.css({'position':'fixed','top':clientY,'left':clientX,'transform':'translateX(-50%) translateY(-50%)'});const requiredScrolling={x:0,y:0};const viewportDimensions=OLEFA.basics.viewportDimensions();if(clientY<0+this.properties.scrollTrigger){requiredScrolling.y=-40}else if(clientY>viewportDimensions.height-this.properties.scrollTrigger){requiredScrolling.y=40};if(clientX<0+this.properties.scrollTrigger){requiredScrolling.x=-40}else if(clientX>viewportDimensions.width-this.properties.scrollTrigger){requiredScrolling.x=40};this.adjustScrolling(requiredScrolling);const offset=this.__internals.helper.offset();const position=this.__internals.helper.offset();if(this.__internals.container.length){const containerOffset=this.__internals.container.offset();if(containerOffset&&position){position.top-=containerOffset.top;position.left-=containerOffset.left}};const{originalX,originalY}={originalX:(this.__internals.data.e&&this.__internals.data.e.clientX)?this.__internals.data.e.clientX:0,originalY:(this.__internals.data.e&&this.__internals.data.e.clientY)?this.__internals.data.e.clientY:0};this.__trigger__drag({offset:offset,position:position,delta:{top:originalY-clientY,left:originalX-clientX}})};__createHelper(){if(this.properties.helperType=='outline'){return this.__createHelper__outline()}else{return this.__createHelper__clone()}};__createHelper__clone(){const helper=this.__internals.item.clone();const node=this.__internals.item.get(0);if(node){const styles=window.getComputedStyle(node);for(var i=0;i<styles.length;++i){helper.css(styles[i],styles.getPropertyValue(styles[i]))}};helper.addClass('oc-interactivity-draggable-item__helper oc-interactivity-draggable-item__helper-clone');return helper};__createHelper__outline(){const helper=jQuery('<div></div>');helper.addClass('oc-interactivity-draggable-item__helper oc-interactivity-draggable-item__helper-outline');return helper};__initDrag(){const e=this.__internals.data.e;if(!e){return};e.preventDefault();jQuery(document).on('mouseup.'+this.refID,this.__onMouseUp.bind(this)).on('touchend.'+this.refID,this.__onMouseUp.bind(this)).on('mousemove.'+this.refID,this.__onMouseMoveWhileDraggable.bind(this)).on('touchmove.'+this.refID,this.__onMouseMoveWhileDraggable.bind(this));this.__internals.helper=this.__createHelper();const offsetPosition=jQuery(e.currentTarget).offset();let clientX=null;if(e.clientX){clientX=e.clientX}else if(e.changedTouches&&e.changedTouches[0]){clientX=e.changedTouches[0].clientX}else if(offsetPosition){clientX=offsetPosition.left+(e.currentTarget.offsetWidth/2)};let clientY=null;if(e.clientY){clientY=e.clientY}else if(e.changedTouches&&e.changedTouches[0]){clientY=e.changedTouches[0].clientY}else if(offsetPosition){clientY=offsetPosition.top+(e.currentTarget.offsetHeight/2)};this.__internals.helper.css({'position':'fixed','top':clientY,'left':clientX,'transform':'translateX(-50%) translateY(-50%)','width':this.__internals.item.width(),'height':this.__internals.item.height()});this.__internals.item.attr('data-dragging','');this.__internals.helper.appendTo('body');this.__trigger__start();this.__onMouseMoveWhileDraggable(e)};
19__stopDrag(){jQuery(document).off('.'+this.refID);const offset=this.__internals.helper.offset();const position=this.__internals.helper.offset();if(this.__internals.container.length){const containerOffset=this.__internals.container.offset();if(position&&containerOffset){position.top-=containerOffset.top;position.left-=containerOffset.left}}this.__trigger__drop({offset:offset,position:position});this.__internals.item.removeAttr('data-dragging');this.__internals.helper.remove();this.__trigger__stop()};adjustScrolling(adjustment){if(adjustment.y){let jElement=jQuery(this.__internals.item);let keepGoing=true;while(keepGoing){const el=jElement.get(0);if(el){const isScrollable=OLEFA.basics.isScrollable(el);if(isScrollable.y){const currentScrollTop=el.scrollTop;el.scrollTop+=adjustment.y;if(el.scrollTop!=currentScrollTop){break}}};if(jElement.is('html')||jElement.length==0){keepGoing=false}else{jElement=jElement.parent()}}};if(adjustment.x){let jElement=jQuery(this.__internals.item);let keepGoing=true;while(keepGoing){const el=jElement.get(0);if(el){const isScrollable=OLEFA.basics.isScrollable(el);if(isScrollable.x){const currentScrollLeft=el.scrollLeft;el.scrollLeft+=adjustment.x;if(el.scrollLeft!=currentScrollLeft){break}}};if(jElement.is('html')||jElement.length==0){keepGoing=false}else{jElement=jElement.parent()}}}};__trigger__start(data){const normalizedData={...{draggedElement:this.__internals.item},...data};this.events.trigger('start',normalizedData)};__trigger__drag(data){const normalizedData={...{item:this.__internals.item,helper:this.__internals.helper,offset:{top:0,left:0},position:{top:0,left:0},delta:{top:0,left:0}},...data};this.events.trigger('drag',normalizedData)};__trigger__drop(data){const normalizedData={...{draggedElement:this.__internals.item,offset:{top:0,left:0},position:{top:0,left:0}},...data};this.events.trigger('drop',normalizedData)};__trigger__stop(data){const normalizedData={...{draggedElement:this.__internals.item},...data};this.events.trigger('stop',normalizedData)};destroy(){this.__internals.states.removeAll();this.__internals.item.off('.'+this.refID);this.__internals.item.removeClass('oc-interactivity-draggable-item');super.destroy()};static defaults(){const inheritedData=super.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,item:'',container:'',pressDelay:200,scrollTrigger:40,dragTrigger:8,freeze:false,helperType:'clone',cancelDrag:''},helperTypes:new Set(['clone','outline'])};return extendedData}}oc.OcInteractivityDraggableItem=OcInteractivityDraggableItem;"use strict";class OcInteractivityDroppable extends OcComponent{constructor(properties){const normalizedProperties={...properties};const jItem=jQuery(normalizedProperties.item);if(!jItem.length){OLEFA.log.warn('Item expected');return};if(jItem.length>1){OLEFA.log.warn('Item ambiguous');return};super(normalizedProperties)}defaults(){return OcInteractivityDroppable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,accepts:{get:function(){return that.__getAccepts()},set:function(a){that.__setAccepts(a)}}};return extendedDefinitions};__setAccepts(value){this.properties.accepts=value};__getAccepts(){return this.properties.accepts};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates();this.__internals.acceptableDraggables=new Map();this.__internals.promises={cssOLEFAUI:OLEFA.css.getIfNotLoaded('default/libOLEFAUI.css','--loaded--default-libolefaui')};this.propertyHandlers.accepts=this.__setAccepts};__initialize(properties){const normalizedProperties={...properties};this.__internals.item=jQuery(normalizedProperties.item);this.__initElements();this.__initStates();this.__initEvents();this.__initProperties(normalizedProperties)};__initElements(){this.__internals.item.addClass('oc-interactivity-droppable');this.__internals.scrim=jQuery('<div></div>');this.__internals.scrimColor=jQuery('<div></div>');this.__internals.icon=new OcMdIcon({icon:'arrow_circle_down'});this.defer(()=>{this.__internals.scrimColor.addClass('oc-interactivity-droppable__scrim-color').appendTo(this.__internals.scrim);this.__internals.icon.base.addClass('oc-interactivity-droppable__icon').appendTo(this.__internals.scrim);this.__internals.scrim.addClass('oc-interactivity-droppable__scrim').appendTo(this.__internals.item)})};__initStates(){this.__internals.states.define({state:'active'});this.__internals.states.define({state:'accepts-item'})};__initEvents(){super.__initEvents();jQuery(document.body).on('oc-interactivity-draggable-item--drag-start.'+this.refID,this.__onDraggable__dragStart.bind(this)).on('oc-interactivity-draggable-item--drag-stop.'+this.refID,this.__onDraggable__dragStop.bind(this));this.__internals.states.events.listen('stateChange',this.__onStateChange.bind(this),this.refID)};__onStateChange(){this.__internals.item.attr('data-oc-interactivity-droppable--states',Object.keys(this.__internals.states.activeStates).join(' '))};__onDraggable__dragStart(e,data){this.__registerDraggable(data.item)};__onDraggable__dragStop(e,data){this.__unregisterDraggable(data.item)};__initEvents__pointerFence(pointerFence){pointerFence.events.listen('enter',this.__onPointerFence__enter.bind(this),this.refID).listen('leave',this.__onPointerFence__leave.bind(this),this.refID)};__onPointerFence__enter(){this.__internals.states.add('accepts-item')};__onPointerFence__leave(){this.__internals.states.remove('accepts-item')};__initEvents__draggable(draggable){draggable.events.listen('drop',this.__onDraggable__drop.bind(this),this.refID)};__onDraggable__drop(eventData){if(this.__internals.states.hasState('accepts-item')){this.__trigger__drop({draggable:eventData.draggedElement})}};__registerDraggable(element){if(!OcDatatype.is('OcComponent',element)||!(element instanceof OcInteractivityDraggableItem)){return};if(!jQuery(element.item).is(this.accepts)){return};const pointer=(window.TouchEvent&&element.dragTriggerEvent&&element.dragTriggerEvent.originalEvent instanceof TouchEvent)?element.dragTriggerEvent.originalEvent.changedTouches[0].identifier:'mou
19se';const fence=new OcInteractivityPointerfence(this.__internals.item,{pointer:pointer});this.__initEvents__pointerFence(fence);this.__initEvents__draggable(element);this.__internals.acceptableDraggables.set(element.refID,{element:element,fence:fence});this.__internals.states.add('active')};__unregisterDraggable(element){if(!OcDatatype.is('OcComponent',element)||!(element instanceof OcInteractivityDraggableItem)){return};const data=this.__internals.acceptableDraggables.get(element.refID);if(data){data.fence.destroy();data.element.events.cancelAllFromScope(this.refID)};this.__internals.acceptableDraggables.delete(element.refID);this.__internals.scrim.off('mouseenter');this.__internals.scrim.off('mouseleave');if(this.__internals.acceptableDraggables.size==0){this.__internals.states.remove('active')}};__trigger__drop(data){const normalizedData={...{droppable:this,draggable:null},...data};this.__internals.events.trigger('drop',normalizedData)};destroy(){jQuery(document.body).off('.'+this.refID);this.__internals.states.removeAll();this.__internals.item.removeClass('oc-interactivity-droppable');this.__internals.scrim.remove();this.__internals.scrimColor.remove();super.destroy()};static defaults(){const inheritedData=super.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,accepts:''}};return extendedData}}oc.OcInteractivityDroppable=OcInteractivityDroppable;"use strict";class OcInteractivityFlexiblegrid extends OcComponent{constructor(element,properties){const mergedProperties={...properties,...{element:element}};super(mergedProperties)};defaults(){return OcInteractivityFlexiblegrid.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,targetSize:{get:function(){return that.__getTargetSize()},set:function(a){that.__setTargetSize(a)}},margin:{get:function(){return that.__getMargin()},set:function(a){that.__setMargin(a)}},excludeChildren:{get:function(){return that.__getExcludeChildren()},set:function(a){that.__setExcludeChildren(a)}},ratioSync:{get:function(){return that.__getRatioSync()},set:function(a){that.__setRatioSync(a)}}};return extendedDefinitions};__setTargetSize(value){this.properties.targetSize=value;this.resize()};__getTargetSize(){return this.properties.targetSize};__setMargin(value){this.properties.margin=value;this.resize()};__getMargin(){return this.properties.margin};__setExcludeChildren(value){this.properties.excludeChildren=value;this.resize()};__getExcludeChildren(){return this.properties.excludeChildren};__setRatioSync(value){this.properties.ratioSync=OcDatatype.toBoolean(value);this.resize()};__getRatioSync(){return this.properties.ratioSync};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.initialized=false;this.propertyHandlers.targetSize=this.__setTargetSize;this.propertyHandlers.margin=this.__setMargin;this.propertyHandlers.excludeChildren=this.__setExcludeChildren;this.propertyHandlers.ratioSync=this.__setRatioSync};__initialize(properties){this.__internals.root=jQuery(properties.element);this.__initElements();this.__initEvents();this.__initProperties(properties);this.__internals.initialized=true;this.resize()};__initElements(){const observer=this.__internals.observer=OLEFA.mutations.createObserver({event:this.refID,element:this.__internals.root,mutations:{childList:true}});this.__internals.resizeObserver=new OcResizeobserver();this.__internals.resizeObserver.observe(this.__internals.root)};__initEvents(){super.__initEvents();this.__internals.resizeObserver.events.listen('resize',this.resize.bind(this),this.refID);if(this.__internals.observer){this.__internals.observer.events.listen('childlist-change',this.resize.bind(this),this.refID)}};setTargetSize(targetSize){OLEFA.log.deprecated('Deprecated! Use "this.targetSize = x" instead');this.__setTargetSize(targetSize)};getTargetSize(){OLEFA.log.deprecated('Deprecated! Use "this.targetSize" instead');return this.__getTargetSize()};setMargin(margin){OLEFA.log.deprecated('Deprecated! Use "this.margin = x" instead');this.__setMargin(margin)};getMargin(){OLEFA.log.deprecated('Deprecated! Use "this.margin" instead');return this.__getMargin()};setExcludeChildren(excludeChildren){OLEFA.log.deprecated('Deprecated! Use "this.excludeChildren = x" instead');this.__setExcludeChildren(excludeChildren)};getExcludeChildren(){OLEFA.log.deprecated('Deprecated! Use "this.excludeChildren" instead');return this.__getExcludeChildren()};setRatioSync(ratioSync){OLEFA.log.deprecated('Deprecated! Use "this.ratioSync = x" instead');this.__setRatioSync(ratioSync)};getRatioSync(){OLEFA.log.deprecated('Deprecated! Use "this.ratioSync" instead');return this.__getRatioSync()};resize(){if(!this.__internals.initialized){return};this.__deferOnce('__resize',()=>{var targetSize=Math.floor(this.targetSize);const marginValue=Math.floor(this.margin);var adjustedWidth=targetSize+marginValue;const width=this.__internals.root.outerWidth()||0;let clientWidth=0;const node=this.__internals.root.get(0);if(node){clientWidth=node.clientWidth}let maxWidth=Math.min(clientWidth,width);if(width==clientWidth){maxWidth-=OLEFA.environment.scrollbarWidth}var jItems=jQuery();const items=this.__internals.root.children().not(this.excludeChildren);for(var i=0;i<items.length;i++){jItems=jItems.add(items[i])};if(maxWidth<(jItems.length*adjustedWidth)){var fillAmount=Math.floor(maxWidth/adjustedWidth);var freeSpace=OLEFA.basics.modulo(maxWidth,adjustedWidth);var deltaSize=0;if(freeSpace>targetSize/2){fillAmount+=1;deltaSize=((adjustedWidth-freeSpace)/fillAmount)*-1}else{deltaSize=freeSpace/fillAmount};adjustedWidth+=deltaSize};adjustedWidth=Math.floor(adjustedWidth-marginValue);const data={'width':adjustedWidth+'px','margin':(marginValue/2)+'px','box-sizing':'border-box'};if(this.ratioSync){data.height=data.width};const itemsPerRow=Math.round(maxWidth/adjustedWidth);jItems.each((index,element)=>{});jItems.css(data)},'repaint')};destroy(){OLEFA.mutations.destroyObserver(this.refID);super.destroy()};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,targetSize:100,margin:16,excludeChildren:'',ratioSync:false}};return extendedData}}(function(OcInteractivityFlexiblegrid){})(OcInteractivityFlexiblegrid||(OcInteractivityFlexiblegrid={}));oc.OcInteractivityFlexiblegrid=OcInteractivityFlexiblegrid;"use strict";class OcInteractivityFormcontrols extends OcComponent{constructor(element){const normalizedProperties={element:element};super(normalizedProperties)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates();this.__internals.root=jQuery();this.__internals.promises={css:OLEFA.css.getIfNotLoaded('default/libOLEFAUI.css','--loaded--default-libolefaui')}}__initialize(properties){const normalizedProperties={...properties};this.__internals.root=jQuery(normalizedProperties.element);this.__initElements();this.__initStates();this.__initEvents();this.__initProperties({});this.__onMutation()}__initElements(){this.__internals.root.addClass('oc-interactivity-form-control
19s').prop('olefa-object-reference',this);this.__internals.mutationObserver=OLEFA.mutations.createObserver({event:this.refID,element:this.__internals.root,mutations:{childList:true,subtree:true}})};__initEvents(){super.__initEvents();if(this.__internals.mutationObserver){this.__internals.mutationObserver.events.listen('childlist-change',this.__onMutation.bind(this),this.refID)};this.__internals.states.events.listen('stateChange',this.__onStateChange.bind(this),this.refID);if(OLEFA.features.resizeObserver){this.__internals.resizeObserver=new ResizeObserver(this.__onResize.bind(this));const node=this.__internals.root.get(0);if(node){this.__internals.resizeObserver.observe(node)}}};__onMutation(){this.__internals.states.remove('stacked');var width=0;this.__internals.root.children().each(function(){width+=jQuery(this).outerWidth(true)||0});this.__updateTrigger(width)};__onStateChange(data){if(data.state=='stacked'&&!OLEFA.features.resizeObserver){return};this.__internals.root.attr('data-states',Object.keys(this.__internals.states.activeStates).join(' '))};__onResize(entries){for(var key in entries){const entry=entries[key];if(this.__internals.root.is(entry.target)){this.__handleStacked(entry.contentRect.width)}}};__initStates(){this.__internals.states.define({state:'stacked'})};__handleStacked(width){if(width<=this.__internals.triggerWidth){this.__internals.states.add('stacked')}else{this.__internals.states.remove('stacked')}};__updateTrigger(width){this.__internals.triggerWidth=width;this.__handleStacked(this.__internals.root.innerWidth()||0)};destroy(){if(this.__internals.resizeObserver){this.__internals.resizeObserver.disconnect()};OLEFA.mutations.destroyObserver(this.refID);delete this.__internals.mutationObserver;this.__internals.root.removeClass('oc-interactivity-form-controls').removeProp('olefa-object-reference');this.__internals.states.destroy();super.destroy()}}oc.OcInteractivityFormcontrols=OcInteractivityFormcontrols;"use strict";class OcInteractivityInfinitescroll extends OcComponent{constructor(element,properties){const normalizedProperties={...properties,...{element:element}};super(normalizedProperties)}defaults(){return OcInteractivityInfinitescroll.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,html:{get:()=>this.__internals.dom.base},content:{get:()=>this.__internals.dom.list},autoLoad:{get:this.__getAutoLoad.bind(this),set:this.__setAutoLoad.bind(this)},margin:{get:this.__getMargin.bind(this),set:this.__setMargin.bind(this)},loadMoreButtonLabel:{get:this.__getLoadMoreButtonLabel.bind(this),set:this.__setLoadMoreButtonLabel.bind(this)},endReachedText:{get:this.__getEndReachedText.bind(this),set:this.__setEndReachedText.bind(this)},frontLoadingText:{get:this.__getFrontLoadingText.bind(this),set:this.__setFrontLoadingText.bind(this)},endLoadingText:{get:this.__getEndLoadingText.bind(this),set:this.__setEndLoadingText.bind(this)},disablePullToRefresh:{get:this.__getDisablePullToRefresh.bind(this),set:this.__setDisablePullToRefresh.bind(this)},autoScrollMargin:{get:this.__getAutoScrollMargin.bind(this),set:this.__setAutoScrollMargin.bind(this)},autoScrollNewContent:{get:this.__getAutoScrollNewContent.bind(this),set:this.__setAutoScrollNewContent.bind(this)},loadTokenFront:{get:this.__getLoadTokenFront.bind(this)},loadTokenEnd:{get:this.__getLoadTokenEnd.bind(this)},hasReachedEnd:{get:this.__getHasReachedEnd.bind(this)}}};__setAutoLoad(value){this.properties.autoLoad=OcDatatype.toBoolean(value);this.__internals.states.set(OcInteractivityInfinitescroll.__states.AUTO_LOAD,this.properties.autoLoad)};__getAutoLoad(){return this.properties.autoLoad};__setMargin(value){if(!OcDatatype.isNumeric(value)){return};this.properties.margin=value;this.__createEndListObserver()};__getMargin(){return this.properties.margin};__setLoadMoreButtonLabel(value){this.properties.loadMoreButtonLabel=value;this.__internals.elements.afterListLoadTriggerManualButton.label=value};__getLoadMoreButtonLabel(){return this.properties.loadMoreButtonLabel};__setEndReachedText(value){this.properties.endReachedText=value;this.__deferOnce('setter__endReachedText',()=>{this.__internals.dom.afterListEndReachedText.html(this.properties.endReachedText)})};__getEndReachedText(){return this.properties.endReachedText};
19__setFrontLoadingText(value){this.properties.frontLoadingText=value;this.__deferOnce('setter__frontLoadingText',()=>{this.__internals.elements.beforeListLoadingProgressbar.label=this.properties.frontLoadingText;this.__internals.dom.beforeListLoadingText.text(this.properties.frontLoadingText)})};__getFrontLoadingText(){return this.properties.frontLoadingText};__setEndLoadingText(value){this.properties.endLoadingText=value;this.__deferOnce('setter__endLoadingText',()=>{this.__internals.elements.afterListLoadingProgressbar.label=this.properties.frontLoadingText;this.__internals.dom.afterListLoadingText.text(this.properties.endLoadingText)})};__getEndLoadingText(){return this.properties.endLoadingText};__setDisablePullToRefresh(value){this.properties.disablePullToRefresh=value;this.__handlePullToRefreshPossible()};__getDisablePullToRefresh(){return this.properties.disablePullToRefresh};__setAutoScrollMargin(value){this.properties.autoScrollMargin=value;if(OLEFA.features.intersectionObserver){if(this.__internals.autoScroll.intersectionObserver instanceof IntersectionObserver){this.__internals.autoScroll.intersectionObserver.disconnect();this.__internals.autoScroll.intersectionObserver=null};this.__internals.autoScroll.intersectionObserver=new IntersectionObserver(this.__onAutoScrollIntersectonObserver__intersection.bind(this),{rootMargin:this.autoScrollMargin+'px',threshold:[0]});const beforeListNode=this.__internals.dom.beforeList.get(0);if(beforeListNode){this.__internals.autoScroll.intersectionObserver.observe(beforeListNode)}const afterListNode=this.__internals.dom.afterList.get(0);if(afterListNode){this.__internals.autoScroll.intersectionObserver.observe(afterListNode)}}};__getAutoScrollMargin(){return this.properties.autoScrollMargin};__setAutoScrollNewContent(value){this.properties.autoScrollNewContent=value};__getAutoScrollNewContent(){return this.properties.autoScrollNewContent};__getLoadTokenFront(){return this.__internals.loadingTokens.front}__getLoadTokenEnd(){return this.__internals.loadingTokens.end}__getHasReachedEnd(){return this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.END_REACHED)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates();this.__internals.promises={cssDefaultLibOLEFAUI:OLEFA.css.getIfNotLoaded('default/libOLEFAUI.css','--loaded--default-libolefaui')};this.__internals.pullToRefreshData={refreshOnRelease:false,originalFinger:null};this.__internals.endListObserver=null;this.__internals.loadingTokens={front:null,end:null};this.propertyHandlers.autoLoad=this.__setAutoLoad;this.propertyHandlers.margin=this.__setMargin;this.propertyHandlers.loadMoreButtonLabel=this.__setLoadMoreButtonLabel;this.propertyHandlers.endReachedText=this.__setEndReachedText;this.propertyHandlers.frontLoadingText=this.__setFrontLoadingText;this.propertyHandlers.endLoadingText=this.__setEndLoadingText;this.propertyHandlers.disablePullToRefresh=this.__setDisablePullToRefresh;this.propertyHandlers.autoScrollMargin=this.__setAutoScrollMargin;this.propertyHandlers.autoScrollNewContent=this.__setAutoScrollNewContent};__initialize(properties){if(!properties||!properties.element){return}this.__internals.originalElement=jQuery(properties.element);this.__internals.originalContent=this.__internals.originalElement.children();this.__initElements();this.__initStates();this.__internals.autoScroll={mutationObserver:OLEFA.mutations.createObserver({event:this.refID,element:this.__internals.dom.list,mutations:{childList:true}}),intersectionObserver:null};this.__initEvents();this.__initProperties(properties);this.__handlePullToRefreshPossible()};__initElements(){this.__internals.dom={base:this.__internals.originalElement,pullToRefreshWrapper:jQuery('<div></div>'),pullToRefreshProgressWrapper:jQuery('<div></div>'),beforeList:jQuery('<div></div>'),beforeListLoading:jQuery('<div></div>'),beforeListLoadingText:jQuery('<span></span>'),list:jQuery('<div></div>'),afterList:jQuery('<div></div>'),afterListLoading:jQuery('<div></div>'),afterListLoadingText:jQuery('<span></span>'),afterListLoadTrigger:jQuery('<div></div>'),afterListLoadTriggerManual:jQuery('<div></div>'),afterListLoadTriggerAuto:jQuery('<div></div>'),afterListEndReachedText:jQuery('<span></span>'),afterListEndReached:jQuery('<div></div>')};this.__internals.elements={afterListLoadTriggerManualButton:new OcMdButtonStandard({style:'containedFlush'}),afterListLoadingProgressbar:new OcMdProgressbarCircular({determinate:false,visible:false}),beforeListLoadingProgressbar:new OcMdProgressbarCircular({determinate:false,visible:false}),pullToRefreshProgress:new OcMdProgressbarCircular({progress:0,label:OLEFA.i18n.get('loading')})};this.__internals.dom.base.addClass('oc-interactivity-infinite-scroll').prop('olefa-object-reference',this).appendTo(this.__internals.originalElement);this.__internals.dom.pullToRefreshWrapper.addClass('oc-interactivity-infinite-scroll__pull-to-refresh-wrapper').attr('aria-hidden','true').appendTo(this.__internals.dom.base);this.__internals.dom.pullToRefreshProgressWrapper.addClass('oc-interactivity-infinite-scroll__pull-to-refresh-progress-wrapper').appendTo(this.__internals.dom.pullToRefreshWrapper);this.__internals.elements.pullToRefreshProgress.base.addClass('oc-interactivity-infinite-scroll__pull-to-refresh-progress').appendTo(this.__internals.dom.pullToRefreshProgressWrapper);this.__internals.dom.beforeList.addClass('oc-interactivity-infinite-scroll__before-list').appendTo(this.__internals.dom.base);this.__internals.dom.beforeListLoading.addClass('oc-interactivity-infinite-scroll__before-list-loading').appendTo(this.__internals.dom.beforeList);this.__internals.elements.beforeListLoadingProgressbar.base.addClass('oc-interactivity-infinite-scroll__before-list-loading-progess-bar').appendTo(this.__internals.dom.beforeListLoading);this.__internals.dom.beforeListLoadingText.addClass('oc-interactivity-infinite-scroll__before-list-loading-text').appendTo(this.__internals.dom.beforeListLoading);this.__internals.dom.list.addClass('oc-interactivity-infinite-scroll__list').appendTo(this.__internals.dom.base).append(this.__internals.originalContent);this.__internals.dom.afterList.addClass('oc-interactivity-infinite-scroll__after-list').appendTo(this.__internals.dom.base);this.__internals.dom.afterListLoading.addClass('oc-interactivity-infinite-scroll__after-list-loading').appendTo(this.__internals.dom.afterList);this.__internals.elements.afterListLoadingProgressbar.base.addClass('oc-interactivity-infinite-scroll__after-list-loading-progress-bar').appendTo(this.__internals.dom.afterListLoading);this.__internals.dom.afterListLoadingText.addClass('oc-interactivity-infinite-scroll__after-list-loading-text').appendTo(this.__internals.dom.afterListLoading);this.__internals.dom.afterListLoadTrigger.addClass('oc-interactivity-infinite-scroll__after-list-load-trigger').appendTo(this.__internals.dom.afterList);this.__internals.dom.afterListLoadTriggerManual.addClass('oc-interactivity-infinite-scroll__after-list-load-trigger-manual').appendTo(this.__internals.dom.afterListLoadTrigger);this.__internals.elements.afterListLoadTriggerManualButton.base.addClass('oc-interactivity-infinite-scroll__after-list-load-trigger-manual-button').appendTo(this.__internals.dom.afterListLoadTriggerManual);this.__internals.dom.afterListLoadTriggerAuto.addClass('oc-interactivity-infinite-scroll__after-list-load-trigger-auto').appendTo(this.__internals.dom.afterListLoadTrigger);this.__internals.dom.afterListEndReached.addClass('oc-interactivity-infinite-scroll__after-list-end-reached').appendTo(this.__internals.dom.afterList);this.__internals.dom.afterListEndReachedText.addClass('oc-interactivity-infinite-scroll__after-list-end-reached-text').appendTo(this.__internals.dom.afterListEndReached)};__initStates(){this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.AUTO_LOAD,onGain:this.__onStateGain__autoLoad.bind(this),onLoss:this.__onStateLoss__autoLoad.bind(this)});this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.END_LIST_TRIGGER_VISIBLE,onGain:this.__onStateGain__endListTriggerVisible.bind(this)});this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.LOADING_FRONT,onGain:this.__onStateGain__loadingFront.bind(this),onLoss:this.__onStateLoss__loadingFront.bind(this)});this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.LOADING_END,onGain:this.__onStateGain__loadingEnd.bind(this),onLoss:this.__onStateLoss__loadingEnd.bind(this)});this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.END_REACHED});this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_POSSIBLE});this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_ACTIVE});this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.AUTO_SCROLL_ON_NEW_CONTENT_FRONT});this.__internals.states.define({state:OcInteractivityInfinitescroll.__states.AUTO_SCROLL_ON_NEW_CONTENT_END})};__onStateGain__autoLoad(){this.__enableAutoLoad()};__onStateLoss__autoLoad(){this.__disableAutoLoad();this.__internals.states.remove(OcInteractivityInfinitescroll.__states.END_LIST_TRIGGER_VISIBLE)};__onStateGain__endListTriggerVisible(){this.__startLoadEndProcess()};__onStateGain__loadingFront(){this.__internals.elements.beforeListLoadingProgressbar.visible=true;this.__internals.states.remove(OcInteractivityInfinitescroll.__states.LOADING_END);const token=OLEFA.basics.generateID();this.__internals.loadingTokens.front=token;this.__trigger__loadFront({token:token})};__onStateLoss__loadingFront(){this.__internals.loadingTokens.front=null;this.__internals.elements.beforeListLoadingProgressbar.visible=false;if(this.scrollTop()==0){this.scrollTop(1)};if(this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.END_LIST_TRIGGER_VISIBLE)){this.__startLoadEndProcess()}};__onStateGain__loadingEnd(){this.__internals.elements.afterListLoadingProgressbar.visible=true;const token=OLEFA.basics.generateID();this.__internals.loadingTokens.end=token;this.__trigger__loadEnd({token:token})};__onStateLoss__loadingEnd(){this.__internals.loadingTokens.end=null;this.__internals.elements.afterListLoadingProgressbar.visible=false;if(this.scrollTop()==0){this.scrollTop(1)};this.deferUntil(()=>{if(!OLEFA.features.intersectionObserver){this.__onScroll__afterLoad()};if(this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.END_LIST_TRIGGER_VISIBLE)){this.__startLoadEndProcess()}},{condition:'repaint'})};__initEvents(){super.__initEvents();this.__internals.dom.base.on('scroll.'+this.refID,this.__onScroll__pullToRefresh.bind(this)).on('touchend.'+this.refID,this.__onTouchEnd.bind(this)).on('touchmove.'+this.refID,this.__onTouchMove.bind(this));if(this.__internals.autoScroll.mutationObserver){this.__internals.autoScroll.mutationObserver.events.listen('childlist-added',this.__onMutationObserver__childlistAdded.bind(this),this.refID)};this.__internals.elements.afterListLoadTriggerManualButton.events.listen('click',this.__onAfterListLoadTriggerManualButton__click.bind(this),this.refID);this.__internals.states.events.listen('stateChange',this.__onStateChange.bind(this),this.refID)};__onScroll__pullToRefresh(e){this.__handlePullToRefreshPossible()};__onTouchEnd(e){if(this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_ACTIVE)){for(const thisFinger of Object.values(e.originalEvent.changedTouches)){if(this.__internals.pullToRefreshData.originalFinger&&thisFinger.identifier==this.__internals.pullToRefreshData.originalFinger.identifier){this.__internals.states.remove(OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_ACTIVE);this.__internals.elements.pullToRefreshProgress.progress=0;if(this.__internals.pullToRefreshData.refreshOnRelease){this.__internals.elements.pullToRefreshProgress.determinate=false;
19this.triggerLoadFront()}}}};if(this.scrollTop()==0){this.scrollTop(1)}};__onTouchMove(e){this.__handlePullToRefreshPossible();if(this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_POSSIBLE)&&!this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_ACTIVE)){this.__internals.states.add(OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_ACTIVE);this.__internals.pullToRefreshData.originalFinger=e.originalEvent.changedTouches[0];this.__internals.elements.pullToRefreshProgress.determinate=true};if(this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_ACTIVE)){let relevantFinger=null;for(const thisFinger of Object.values(e.originalEvent.changedTouches)){if(this.__internals.pullToRefreshData.originalFinger&&thisFinger.identifier==this.__internals.pullToRefreshData.originalFinger.identifier){relevantFinger=thisFinger;break}};if(relevantFinger){this.__onPullToRefreshDrag(relevantFinger)}}};__onMutationObserver__childlistAdded(data){const node=data.node;if(this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.AUTO_SCROLL_ON_NEW_CONTENT_FRONT)&&!this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.LOADING_FRONT)&&this.autoScrollNewContent){const firstNode=this.__internals.dom.list.children().first();if(firstNode.is(node)){node.scrollIntoView({behavior:'smooth',block:'start',inline:'start'})}};if(this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.AUTO_SCROLL_ON_NEW_CONTENT_END)&&!this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.LOADING_END)&&this.autoScrollNewContent){const lastNode=this.__internals.dom.list.children().last();if(lastNode.is(node)){node.scrollIntoView({behavior:'smooth',block:'end',inline:'end'})}}};__onAfterListLoadTriggerManualButton__click(){this.__startLoadEndProcess()};__onStateChange(){const states=Object.keys(this.__internals.states.activeStates);this.__internals.dom.base.attr('data-states',states.join(' '))};__onAutoScrollIntersectonObserver__intersection(entries){for(const entry of Object.values(entries)){if(this.__internals.dom.beforeList.is(entry.target)){this.__internals.states.set(OcInteractivityInfinitescroll.__states.AUTO_SCROLL_ON_NEW_CONTENT_FRONT,entry.isIntersecting)}else if(this.__internals.dom.afterList.is(entry.target)){this.__internals.states.set(OcInteractivityInfinitescroll.__states.AUTO_SCROLL_ON_NEW_CONTENT_END,entry.isIntersecting)}}};__onEndListObserverIntersection(entries,observer){for(const entry of Object.values(entries)){this.__internals.states.set(OcInteractivityInfinitescroll.__states.END_LIST_TRIGGER_VISIBLE,entry.isIntersecting)}};__onScroll__afterLoad(){const node=this.__internals.dom.afterListLoadTriggerAuto.get(0);const isAutoLoadTriggerInViewport=typeof node!='undefined'&&OLEFA.basics.isElementInViewport(node);this.__internals.states.set(OcInteractivityInfinitescroll.__states.END_LIST_TRIGGER_VISIBLE,isAutoLoadTriggerInViewport)};__handlePullToRefreshPossible(){const condition_listScrolledToTop=this.scrollTop()==0;const condition_pullToRefreshEnabled=!this.__getDisablePullToRefresh();const condition_pullToRefreshPossible=condition_listScrolledToTop&&condition_pullToRefreshEnabled;this.__internals.states.set(OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_POSSIBLE,condition_pullToRefreshPossible)};__onPullToRefreshDrag(finger){if(!this.__internals.pullToRefreshData.originalFinger){return};const delta=finger.screenY-this.__internals.pullToRefreshData.originalFinger.screenY;const dragFactor=0.5;const targetDelta=100;const adjustedDelta=delta*dragFactor;let pullProgress=1/targetDelta*adjustedDelta;if(pullProgress<0){this.__internals.states.remove(OcInteractivityInfinitescroll.__states.PULL_TO_REFRESH_ACTIVE);return};this.__internals.pullToRefreshData.refreshOnRelease=false;if(pullProgress>1){pullProgress=1;this.__internals.pullToRefreshData.refreshOnRelease=true}else if(pullProgress<0){pullProgress=0};const hundredPercent=100;const toPercent=100;const translateProgress=hundredPercent-(pullProgress*toPercent);this.__internals.elements.pullToRefreshProgress.progress=pullProgress;this.__internals.dom.pullToRefreshWrapper.css({transform:'translateY(-'+translateProgress+'%)'})};__enableAutoLoad(){this.__disableAutoLoad();if(OLEFA.features.intersectionObserver){if(this.__internals.endListObserver){const node=this.__internals.dom.afterListLoadTriggerAuto.get(0);if(node){this.__internals.endListObserver.observe(node)}}else{this.__createEndListObserver()}}else{OLEFA.events.listen('scroll',this.__onScroll__afterLoad.bind(this),[this.refID,'autoload'])}};__disableAutoLoad(){if(OLEFA.features.intersectionObserver){if(this.__internals.endListObserver){const node=this.__internals.dom.afterListLoadTriggerAuto.get(0);if(node){this.__internals.endListObserver.unobserve(node)}}}else{OLEFA.events.cancel('scroll',[this.refID,'autoload'])}};__createEndListObserver(){if(OLEFA.features.intersectionObserver){if(this.__internals.endListObserver){this.__internals.endListObserver.disconnect()}this.__internals.endListObserver=new IntersectionObserver(this.__onEndListObserverIntersection.bind(this),{rootMargin:this.__getMargin()+'px',threshold:[0]});if(this.__getAutoLoad()){this.__enableAutoLoad()}}};__startLoadEndProcess(){const isLoadingFront=this.__internals.states.hasState(OcInteractivityInfinitescroll.__states.LOADING_FRONT);if(!isLoadingFront){this.__internals.states.add(OcInteractivityInfinitescroll.__states.LOADING_END)}}
19resetLoadFront(){this.__internals.states.remove(OcInteractivityInfinitescroll.__states.LOADING_FRONT)};resetLoadEnd(){this.__internals.states.remove(OcInteractivityInfinitescroll.__states.LOADING_END)};endReached(){this.__setAutoLoad(false);this.__internals.states.add(OcInteractivityInfinitescroll.__states.END_REACHED)};triggerLoadFront(){this.__internals.states.add(OcInteractivityInfinitescroll.__states.LOADING_FRONT)};triggerLoadEnd(){this.__startLoadEndProcess()};reset(){this.__internals.states.remove(OcInteractivityInfinitescroll.__states.END_REACHED);this.autoLoad=true};scrollTop(value){const normalizedValue=Number(value);if(Number.isFinite(normalizedValue)){return this.__internals.dom.base.scrollTop(normalizedValue)}return this.__internals.dom.base.scrollTop()};__trigger__loadFront(eventData){const event=new OcEvent({eventName:'load-front',data:eventData});this.__internals.events.triggerEvent(event)};__trigger__loadEnd(eventData){const event=new OcEvent({eventName:'load-end',data:eventData});this.__internals.events.triggerEvent(event)};destroy(){this.__internals.originalElement.removeClass('oc-interactivity-infinite-scroll').removeProp('olefa-object-reference').append(this.__internals.originalContent);OLEFA.events.cancelAllFromScope(this.refID);OLEFA.mutations.destroyObserver(this.refID);if(OLEFA.features.intersectionObserver){if(this.__internals.autoScroll.intersectionObserver instanceof IntersectionObserver){this.__internals.autoScroll.intersectionObserver.disconnect();this.__internals.autoScroll.intersectionObserver=null};if(this.__internals.endListObserver){this.__internals.endListObserver.disconnect();this.__internals.endListObserver=null}};for(const element of Object.values(this.__internals.elements)){element.destroy()};for(const[nodeName,node]of Object.entries(this.__internals.dom)){if(nodeName=='base'){continue};node.remove()};super.destroy()}static defaults(){const data=OcComponent.defaults();data.properties.elements=null;data.properties.autoLoad=false;data.properties.margin=0;data.properties.loadMoreButtonLabel=OLEFA.i18n.get('more');data.properties.endReachedText='';data.properties.frontLoadingText='';data.properties.endLoadingText='';data.properties.disablePullToRefresh=false;data.properties.autoScrollMargin=8;data.properties.autoScrollNewContent=true;return data}}OcInteractivityInfinitescroll.__states={AUTO_LOAD:'auto-load',END_LIST_TRIGGER_VISIBLE:'endListTrigger-visible',LOADING_FRONT:'loading-front',LOADING_END:'loading-end',END_REACHED:'end-reached',PULL_TO_REFRESH_POSSIBLE:'pull-to-refresh-possible',PULL_TO_REFRESH_ACTIVE:'pull-to-refresh-active',AUTO_SCROLL_ON_NEW_CONTENT_FRONT:'auto-scroll-on-new-content-front',AUTO_SCROLL_ON_NEW_CONTENT_END:'auto-scroll-on-new-content-end'};oc.OcInteractivityInfinitescroll=OcInteractivityInfinitescroll;"use strict";class OcInteractivityPasswordcheck extends OcComponent{constructor(properties){super(properties)}defaults(){return OcInteractivityPasswordcheck.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,firstInput:{get:function(){return that.__getFirstInput()},set:function(a){that.__setFirstInput(a)}},secondInput:{get:function(){return that.__getSecondInput()},set:function(a){that.__setSecondInput(a)}}};return extendedDefinitions};__setFirstInput(firstInput){if(!firstInput||firstInput.type!=='password'){OLEFA.log.warn('__setFirstInput: This input cannot be set empty and the input type has to be password');return};this.properties.firstInput=firstInput;this.__internals.firstInput=firstInput;this.__initEvents_firstInput()};__getFirstInput(){return this.properties.firstInput};__setSecondInput(secondInput){if(secondInput&&secondInput.type!=='password'){OLEFA.log.warn('__setSecondInput: The input type has to be password');return};this.properties.secondInput=secondInput;if(secondInput){this.__internals.secondInput=secondInput;this.__initEvents_secondInput()}else{if(typeof(this.__internals.secondInput)!=='undefined'&&this.__internals.secondInput){this.__internals.secondInput.events.cancel('input',this.refID);delete this.__internals.secondInput}}};__getSecondInput(){return this.properties.secondInput};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={langkit:OLEFA.i18n.load('libOLEFAUI.json')};this.__internals.states=new OcStates();this.propertyHandlers.firstInput=this.__setFirstInput;this.propertyHandlers.secondInput=this.__setSecondInput}__initStates(){this.__internals.states.define({state:OcInteractivityPasswordcheck.__states.INPUT_VALUES_DIFFERENT}).define({state:OcInteractivityPasswordcheck.__states.PASSWORD_STRENGTH_FAIL})}__initEvents(){super.__initEvents();this.__internals.states.events.listen('stateChange',this.__onStates__stateChange.bind(this),this.refID)}__onStates__stateChange(){this.__handleInputErrors()}__initialize(properties){this.__initStates();this.__initEvents();this.__initProperties(properties);OLEFA.i18n.load('libOLEFAUI.json')};__initEvents_firstInput(){this.__internals.firstInput?.events.listen('change',this.__onFirstInput__change.bind(this),this.refID)};__onFirstInput__change(){this.__checkPasswordMatch();this.__checkPasswordStrength();this.__handleInputErrors();this.__internals.firstInput?.input.get(0)?.reportValidity()}__initEvents_secondInput(){this.__internals.secondInput?.events.listen('change',this.__onSecondInput__change.bind(this),this.refID)};__onSecondInput__change(){this.__checkPasswordMatch();this.__handleInputErrors();this.__internals.secondInput?.input.get(0)?.reportValidity()}__checkPasswordMatch(jPwd,jRetype){if(!this.__internals.firstInput||!this.__internals.secondInput){this.__internals.states.remove(OcInteractivityPasswordcheck.__states.INPUT_VALUES_DIFFERENT);return}this.__internals.states.set(OcInteractivityPasswordcheck.__states.INPUT_VALUES_DIFFERENT,this.__internals.firstInput.value!=this.__internals.secondInput.value)};__checkPasswordStrength(){if(!this.__internals.firstInput){return};const password=this.__internals.firstInput.value;var number=/([0-9])/u;var uppercaseLetters=/([A-Z])/u;var lowercaseLetters=/([a-z])/u;this.__internals.states.set(OcInteractivityPasswordcheck.__states.PASSWORD_STRENGTH_FAIL,(password.length<5||!password.match(number)||!password.match(uppercaseLetters)||!password.match(lowercaseLetters)))};__handleInputErrors(){this.__deferOnce('__handleInputErrors',()=>{const masterInput=this.__internals.firstInput?.input.get(0);const controlInput=this.__internals.firstInput?.input.get(0);if(!masterInput||!controlInput){return}masterInput.setCustomValidity('');controlInput.setCustomValidity('');const isMasterInputInvalid=!masterInput.checkValidity();if(isMasterInputInvalid){return};const hasPasswordConstraintFailed=this.__internals.states.hasState(OcInteractivityPasswordcheck.__states.PASSWORD_STRENGTH_FAIL);if(hasPasswordConstraintFailed){masterInput.setCustomValidity(OLEFA.i18n.get('password_pattern_mismatch'));return}const isControlInputInvalid=!masterInput.checkValidity();if(isControlInputInvalid){return};const areInputValuesDifferent=this.__internals.states.hasState(OcInteractivityPasswordcheck.__states.INPUT_VALUES_DIFFERENT);if(areInputValuesDifferent){masterInput.setCustomValidity(OLEFA.i18n.get('passwords_no_match'));return}})}destroy(){this.__internals.firstInput?.events.cancelAllFromScope(this.refID);this.__internals.secondInput?.events.cancelAllFromScope(this.refID);super.destroy()};static defaults(){const inheritedData=super.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,firstInput:null,secondInput:null}};return extendedData}}OcInteractivityPasswordcheck.__states={INPUT_VALUES_DIFFERENT:'input-values-different',PASSWORD_STRENGTH_FAIL:'password-strength-fail'};oc.OcInteractivityPasswordcheck=OcInteractivityPasswordcheck;"use strict";class OcInteractivityPointerfence extends OcComponent{constructor(element,properties){const normalizedProperties={...properties,element:element};super(normalizedProperties)}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,element:{get:function(){return that.__getElement()}},pointer:{get:function(){return that.__getPointer()}
19,set:function(a){that.__setPointer(a)}},isInside:{get:function(){return that.__internals.states.hasState('inside')}}};return extendedDefinitions};__setElement(value){this.properties.element=value;const jValue=jQuery(value);this.__internals.element=jValue.eq(0);if(jValue.length==0){this.__internals.boundaries=undefined}else{const node=this.__internals.element.get(0);if(node){this.__internals.boundaries=node.getBoundingClientRect()}}};__getElement(){return this.properties.element};__setPointer(value){this.properties.pointer=value};__getPointer(){return this.properties.pointer};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates();this.__internals.element=jQuery();this.propertyHandlers.element=this.__setElement;this.propertyHandlers.pointer=this.__setPointer};__initialize(properties){this.__initStates();this.__initEvents();this.__initProperties(properties);this.__detectScrollableParent()};__initStates(){this.__internals.states.define({state:'inside',onGain:this.__onStateGain__inside.bind(this),onLoss:this.__onStateLoss__inside.bind(this),})};__onStateGain__inside(){this.__trigger__enter()};__onStateLoss__inside(){this.__trigger__leave()};__initEvents(){super.__initEvents();const that=this;const onMouseMove=function(e){that.__onMouseMove(e)};const onTouchMove=function(e){that.__onTouchMove(e)};const eventListenerOptions={passive:true};this.__internals.destroyEventListeners=function(){document.body.removeEventListener('mousemove',onMouseMove,eventListenerOptions);document.body.removeEventListener('touchmove',onTouchMove,eventListenerOptions)};document.body.addEventListener('mousemove',onMouseMove,eventListenerOptions);document.body.addEventListener('touchmove',onTouchMove,eventListenerOptions);OLEFA.events.listen('resize',this.__onResize.bind(this),this.refID)};__onResize(eventData){this.__detectScrollableParent()};__onMouseMove(eventData){if(this.pointer!='mouse'){return};if(!this.__internals.element.length){return};const isInside=(this.__check(eventData.clientX,eventData.clientY)&&(!this.__internals.container||this.__internals.container.isInside));this.__internals.states.set('inside',isInside)};__onTouchMove(eventData){if(this.pointer=='mouse'){return};let relevantTouch=undefined;for(var thisTouch of eventData.changedTouches){if(thisTouch.identifier==this.pointer){relevantTouch=thisTouch;break}};if(!relevantTouch){return};const isInside=(this.__check(relevantTouch.clientX,relevantTouch.clientY)&&(!this.__internals.container||this.__internals.container.isInside));this.__internals.states.set('inside',isInside)};__detectScrollableParent(){let container=null;this.__internals.element.parents().each((index,element)=>{const isScrollable=OLEFA.basics.isScrollable(element);if(isScrollable.x||isScrollable.y){container=element;return false}return undefined});if(this.__internals.container){this.__internals.container.destroy()};if(container){this.__internals.container=new OcInteractivityPointerfence(container,{pointer:this.pointer})}};__check(x,y){if(!this.__internals.boundaries){return false};const conditionsMet_horizontal=(x>this.__internals.boundaries.left&&x<this.__internals.boundaries.right);const conditionsMet_vertical=(y>this.__internals.boundaries.top&&y<this.__internals.boundaries.bottom);return conditionsMet_horizontal&&conditionsMet_vertical};__trigger__enter(){this.__internals.events.trigger('enter',undefined)};__trigger__leave(){this.__internals.events.trigger('leave',undefined)};destroy(){this.__internals.destroyEventListeners();this.__internals.states.remove('inside');super.destroy()};defaults(){return OcInteractivityPointerfence.defaults()}static defaults(){const inheritedData=super.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,element:null,pointer:'mouse'}};return extendedData}}oc.OcInteractivityPointerfence=OcInteractivityPointerfence;"use strict";class OcInteractivityResizableItem extends OcComponent{constructor(properties){const normalizedData={...properties};const jItem=jQuery(normalizedData.item);if(!jItem.length){console.warn('Item expected');return};if(jItem.length>1){console.warn('Item ambiguous');return};super(normalizedData)}defaults(){return OcInteractivityResizableItem.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,minWidth:{get:function(){return that.__getMinWidth()},set:function(a){that.__setMinWidth(a)}},minHeight:{get:function(){return that.__getMinHeight()}
19,set:function(a){that.__setMinHeight(a)}},maxWidth:{get:function(){return that.__getMaxWidth()},set:function(a){that.__setMaxWidth(a)}},maxHeight:{get:function(){return that.__getMaxHeight()},set:function(a){that.__setMaxHeight(a)}}};return extendedDefinitions};__setMinWidth(value){this.properties.minWidth=value};__getMinWidth(){return this.properties.minWidth};__setMinHeight(value){this.properties.minHeight=value};__getMinHeight(){return this.properties.minHeight};__setMaxWidth(value){this.properties.maxWidth=value};__getMaxWidth(){return this.properties.maxWidth};__setMaxHeight(value){this.properties.maxHeight=value};__getMaxHeight(){return this.properties.maxHeight};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates();this.propertyHandlers.minWidth=this.__setMinWidth;this.propertyHandlers.minHeight=this.__setMinHeight;this.propertyHandlers.maxWidth=this.__setMaxWidth;this.propertyHandlers.maxHeight=this.__setMaxHeight};__initialize(properties){const normalizedProperties={...properties};this.__internals.container=jQuery(normalizedProperties.container);this.__internals.item=jQuery(normalizedProperties.item);this.__initElement();this.__initStates();this.__initEvents();this.__initProperties(normalizedProperties)};__initElement(){this.__internals.item.addClass('oc-interactivity-resizable-item');this.__internals.dom={helper:jQuery('<div></div>'),dragPointContainer:jQuery('<div></div>')};const dragPointerProperties={container:this.__internals.container};this.__internals.elements={dragPoints:{nw:new OcInteractivityResizableItemDragpoint(dragPointerProperties),n:new OcInteractivityResizableItemDragpoint(dragPointerProperties),ne:new OcInteractivityResizableItemDragpoint(dragPointerProperties),w:new OcInteractivityResizableItemDragpoint(dragPointerProperties),e:new OcInteractivityResizableItemDragpoint(dragPointerProperties),sw:new OcInteractivityResizableItemDragpoint(dragPointerProperties),s:new OcInteractivityResizableItemDragpoint(dragPointerProperties),se:new OcInteractivityResizableItemDragpoint(dragPointerProperties)}};this.__internals.dom.helper.addClass('oc-interactivity-resizable-item__helper');this.__internals.dom.dragPointContainer.addClass('oc-interactivity-resizable-item__drag-point-container').appendTo(this.__internals.item);this.__internals.elements.dragPoints.nw.base.addClass('oc-interactivity-resizable-item__drag-point-nw').appendTo(this.__internals.dom.dragPointContainer);this.__internals.elements.dragPoints.n.base.addClass('oc-interactivity-resizable-item__drag-point-n').appendTo(this.__internals.dom.dragPointContainer);this.__internals.elements.dragPoints.ne.base.addClass('oc-interactivity-resizable-item__drag-point-ne').appendTo(this.__internals.dom.dragPointContainer);this.__internals.elements.dragPoints.w.base.addClass('oc-interactivity-resizable-item__drag-point-w').appendTo(this.__internals.dom.dragPointContainer);this.__internals.elements.dragPoints.e.base.addClass('oc-interactivity-resizable-item__drag-point-e').appendTo(this.__internals.dom.dragPointContainer);this.__internals.elements.dragPoints.sw.base.addClass('oc-interactivity-resizable-item__drag-point-sw').appendTo(this.__internals.dom.dragPointContainer);this.__internals.elements.dragPoints.s.base.addClass('oc-interactivity-resizable-item__drag-point-s').appendTo(this.__internals.dom.dragPointContainer);this.__internals.elements.dragPoints.se.base.addClass('oc-interactivity-resizable-item__drag-point-se').appendTo(this.__internals.dom.dragPointContainer);var correctScale=1;correctScale=Math.sqrt(window.devicePixelRatio);Object.values(this.__internals.elements.dragPoints).forEach(dragPoint=>{dragPoint.base.css('transform','scale('+correctScale+')')})};__initStates(){this.__internals.states.define({state:'resizing',onGain:this.__onStateGain__resizing.bind(this),onLoss:this.__onStateLoss__resizing.bind(this)})};__onStateGain__resizing(){this.__internals.item.attr('data-resizing','');this.__internals.dom.helper.appendTo(this.__internals.item)};__onStateLoss__resizing(){this.__internals.item.removeAttr('data-resizing');this.__internals.dom.helper.detach();this.__trigger__resize()};__initEvents(){super.__initEvents();this.__internals.elements.dragPoints.ne.events.listen('drag',this.__adjustHorizontalSize.bind(this),this.refID);this.__internals.elements.dragPoints.e.events.listen('drag',this.__adjustHorizontalSize.bind(this),this.refID);this.__internals.elements.dragPoints.se.events.listen('drag',this.__adjustHorizontalSize.bind(this),this.refID);this.__internals.elements.dragPoints.sw.events.listen('drag',this.__adjustVerticalSize.bind(this),this.refID);this.__internals.elements.dragPoints.s.events.listen('drag',this.__adjustVerticalSize.bind(this),this.refID);this.__internals.elements.dragPoints.se.events.listen('drag',this.__adjustVerticalSize.bind(this),this.refID);this.__internals.elements.dragPoints.nw.events.listen('drag',this.__adjustHorizontalPosition.bind(this),this.refID);this.__internals.elements.dragPoints.w.events.listen('drag',this.__adjustHorizontalPosition.bind(this),this.refID);this.__internals.elements.dragPoints.sw.events.listen('drag',this.__adjustHorizontalPosition.bind(this),this.refID);this.__internals.elements.dragPoints.nw.events.listen('drag',this.__adjustVerticalPosition.bind(this),this.refID);this.__internals.elements.dragPoints.n.events.listen('drag',this.__adjustVerticalPosition.bind(this),this.refID);this.__internals.elements.dragPoints.ne.events.listen('drag',this.__adjustVerticalPosition.bind(this),this.refID);
19Object.values(this.__internals.elements.dragPoints).forEach(dragPoint=>{dragPoint.events.listen('start',this.__onDragPointStart.bind(this));dragPoint.events.listen('stop',this.__onDragPointStop.bind(this))})};__adjustHorizontalPosition(data){const originalPosition=this.__internals.item.position();const originalWidth=this.__internals.item.width()||0;const deltaLeft=originalPosition.left-data.position.left;const helperOffset=this.defaults().dragPointOffset;const newWidth=originalWidth+deltaLeft-helperOffset;if(!this.__isWidthValid(newWidth)){return};this.__internals.item.css({left:data.position.left+helperOffset,width:newWidth});this.__trigger__drag()};__adjustVerticalPosition(data){const originalPosition=this.__internals.item.position();const originalHeight=this.__internals.item.height()||0;const deltaTop=originalPosition.top-data.position.top;const helperOffset=this.defaults().dragPointOffset;const newHeight=originalHeight+deltaTop-helperOffset;if(!this.__isHeightValid(newHeight)){return};this.__internals.item.css({top:data.position.top+helperOffset,height:newHeight});this.__trigger__drag()};__adjustHorizontalSize(data){const offset=this.__internals.item.offset();if(!offset){return};const helperOffset=this.defaults().dragPointOffset;const helperWidth=data.helper.width()||0;const newWidth=data.offset.left-offset.left+helperWidth-helperOffset;if(!this.__isWidthValid(newWidth)){return};this.__internals.item.css({width:data.offset.left-offset.left+helperWidth-helperOffset});this.__trigger__drag()};__adjustVerticalSize(data){const offset=this.__internals.item.offset();if(!offset){return};const helperOffset=this.defaults().dragPointOffset;const helperWidth=data.helper.width()||0;const newHeight=data.offset.top-offset.top+helperWidth-helperOffset;if(!this.__isHeightValid(newHeight)){return}this.__internals.item.css({height:data.offset.top-offset.top+helperWidth-helperOffset});this.__trigger__drag()};__onDragPointStart(){this.__internals.states.add('resizing')};__onDragPointStop(){var resizing=false;for(const element of Object.values(this.__internals.elements.dragPoints)){if(element.isDragging){resizing=true;break}};if(!resizing){this.__internals.states.remove('resizing')}};__isWidthValid(width){if((this.properties.minWidth<0||width>this.properties.minWidth)&&(this.properties.maxWidth<0||width<this.properties.maxWidth)){return true}else{return false}};__isHeightValid(height){if((this.properties.minHeight<0||height>this.properties.minHeight)&&(this.properties.maxHeight<0||height<this.properties.maxHeight)){return true}else{return false}};__trigger__resize(data){const normalizedData={...{resizedElement:this.__internals.item,position:this.__internals.item.position(),offset:{...{top:0,left:0},...this.__internals.item.offset()},dimension:{width:this.__internals.item.width()||0,height:this.__internals.item.height()||0}},...data};this.events.trigger('resize',normalizedData)};__trigger__drag(){this.events.trigger('drag',undefined)};destroy(){this.__internals.item.removeClass('oc-interactivity-resizable-item');this.events.cancelAll();Object.values(this.__internals.elements.dragPoints).forEach(dragPoint=>{dragPoint.destroy()});Object.values(this.__internals.dom).forEach(node=>{node.off().detach().remove()});super.destroy()};static defaults(){const inheritedData=super.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,item:'',minWidth:0,minHeight:0,maxWidth:-1,maxHeight:-1},dragPointOffset:4};return extendedData}}(function(OcInteractivityResizableItem){let DragPointKeys;(function(DragPointKeys){DragPointKeys["nw"]="nw";DragPointKeys["n"]="n";DragPointKeys["ne"]="ne";DragPointKeys["w"]="w";DragPointKeys["e"]="e";DragPointKeys["sw"]="sw";DragPointKeys["s"]="s";DragPointKeys["se"]="se"})(DragPointKeys||(DragPointKeys={}))})(OcInteractivityResizableItem||(OcInteractivityResizableItem={}));oc.OcInteractivityResizableItem=OcInteractivityResizableItem;"use strict";class OcInteractivityResizableItemDragpoint extends OcComponent{constructor(properties){super(properties)}defaults(){return OcInteractivityResizableItemDragpoint.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,base:{get:()=>{return this.__internals.dom.base}},isDragging:{get:()=>{return this.__internals.states.hasState('dragging')}}};return extendedDefinitions}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={css:OLEFA.css.getIfNotLoaded('default/libOLEFAUI.css','--loaded--default-libolefaui')}}__initialize(properties){const normalizedProperties={...properties};this.__internals.container=(normalizedProperties.container)?jQuery(normalizedProperties.container):jQuery();this.__internals.states=new OcStates();this.refID=OLEFA.basics.generateID();this.__initStates();this.__initElement();this.__initEvents()}__initStates(){this.__internals.states.define({state:'dragging'})};__initElement(){this.__internals.dom={base:jQuery('<div></div>')};this.__internals.elements={base:new OcInteractivityDraggableItem({item:this.__internals.dom.base,container:this.__internals.container})};this.__internals.dom.base.prop('olefa-object-reference',this).addClass('oc-interactivity-resizable-item-drag-point')};__initEvents(){super.__initEvents();this.__internals.elements.base.events.listen('start',(data)=>{this.__proxyEvent('start',data)});this.__internals.elements.base.events.listen('drag',(data)=>{this.__proxyEvent('drag',data)});this.__internals.elements.base.events.listen('drop',(data)=>{this.__proxyEvent('drop',data)});this.__internals.elements.base.events.listen('stop',(data)=>{this.__proxyEvent('stop',data)})};__proxyEvent(event,data){if(event=='start'){this.__internals.states.add('dragging')}else if(event=='stop'){this.__internals.states.remove('dragging')};this.events.trigger(event,data)};static defaults(){const inheritedData=super.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,pressDelay:200,scrollTrigger:40,dragTrigger:8,freeze:false},size:16};return extendedData}}oc.OcInteractivityResizableItemDragpoint=OcInteractivityResizableItemDragpoint;"use strict";class OcInteractivityResponsivetable extends OcComponent{constructor(element,properties){const normalizedProperties={...{},...properties,...{element:element}};super(normalizedProperties)}defaults(){return OcInteractivityResponsivetable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.ocInstances.OcInteractivityResponsivetable=this;this.__internals.thead=null;this.__internals.tbody=null;this.__internals.tfoot=null;this.__internals.root=null}__initialize(properties){if(properties&&properties.element){this.__internals.root=jQuery(properties.element)};this.__initElements();this.__initEvents();this.__initProperties(properties);this.__internals.thead=this.__internals.root?.children('thead')||null;this.__internals.tbody=this.__internals.root?.children('tbody')||null;this.__internals.tfoot=this.__internals.root?.children('tfoot')||null;const labels=[];const jTHeadRow=this.__internals.thead?.children('tr:first');jTHeadRow?.children().each((index,element)=>{labels.push(element.innerHTML)});const jRows=this.__internals.tbody?.children('tr');jRows?.each((index,element)=>{const jCells=jQuery(element).children('td');const minimumColumns=Math.min(labels.length,jCells.length);for(let i=0;i<minimumColumns;++i){jCells.eq(i).prepend(`<span class="oc-interactivity-responsivetable__responsive-label">${labels[i]}</span>`)}})}__initElements(){this.defer(()=>{if(this.__internals.root){this.__internals.root.addClass('oc-interactivity-responsivetable')}})}destroy(){if(this.__internals.root){this.__internals.root.removeClass('oc-interactivity-responsivetable').off(`.${this.refID}`)}delete this.__internals.ocInstances.OcInteractivityResponsivetable;super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}
19Oc.OcInteractivityResponsivetable=OcInteractivityResponsivetable;"use strict";class OcInteractivitySortable extends OcComponent{constructor(element,options){const normalizedProperties={...options,element:element};super(normalizedProperties)}defaults(){return OcInteractivitySortable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,pressDelay:{get:function(){return that.__getPressDelay()},set:function(a){that.__setPressDelay(a)}},scrollTrigger:{get:function(){return that.__getScrollTrigger()},set:function(a){that.__setScrollTrigger(a)}},dragTrigger:{get:function(){return that.__getDragTrigger()},set:function(a){that.__setDragTrigger(a)}},freeze:{get:function(){return that.__getFreeze()},set:function(a){that.__setFreeze(a)}},group:{get:function(){return that.__getGroup()},set:function(a){that.__setGroup(a)}},cancelSort:{get:function(){return that.__getCancelSort()},set:function(a){that.__setCancelSort(a)}},helperType:{get:function(){return that.__getHelperType()},set:function(a){that.__setHelperType(a)}},dom:{get:()=>{OLEFA.log.deprecated('DEPRECATED! Use this.__internals.dom instead');return that.__internals.dom}}};return extendedDefinitions};__setPressDelay(value){if(!OcDatatype.is('number',value)){OLEFA.log.info('__setPressDelay',arguments,'Not a number');return};this.properties.pressDelay=value};__getPressDelay(){return this.properties.pressDelay};__setDragTrigger(value){if(!OcDatatype.is('number',value)){OLEFA.log.info('__setDragTrigger',arguments,'Not a number');return};this.properties.dragTrigger=value};__getDragTrigger(){return this.properties.dragTrigger};__setFreeze(value){this.properties.freeze=OcDatatype.toBoolean(value);if(this.properties.freeze){this.__internals.states.add('freeze')}else{this.__internals.states.remove('freeze')}};__getFreeze(){return this.properties.freeze};__setGroup(value){this.properties.group=value;this.__deferOnce('setGroup',()=>{if(this.properties.group){this.__internals.dom.base.attr('data-group',this.properties.group)}else{this.__internals.dom.base.removeAttr('data-group')}})};__getGroup(){return this.properties.group};__setCancelSort(value){this.properties.cancelSort=value};__getCancelSort(){return this.properties.cancelSort};__setHelperType(value){const defaults=this.defaults();if(!defaults.helperTypes[value]){OLEFA.log.info('__setHelperType',arguments,'Invalid helper type');return};this.properties.helperType=value};__getHelperType(){return this.properties.helperType};__setScrollTrigger(value){if(!OcDatatype.is('number',value)){OLEFA.log.info('__setScrollTrigger',arguments,'Expected a number');return};this.properties.scrollTrigger=value};__getScrollTrigger(){return this.properties.scrollTrigger};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.sortable=null;this.__internals.helper=null;this.__internals.triggers=[];this.__internals.sortablePositionOnSortStart=null;this.__internals.states=new OcStates();this.__internals.initiator=null;this.__internals.promises={'cssDefaultlibOLEFAUI':OLEFA.css.getIfNotLoaded('default/libOLEFAUI.css','--loaded--default-libolefaui')};this.propertyHandlers.pressDelay=this.__setPressDelay;this.propertyHandlers.scrollTrigger=this.__setScrollTrigger;this.propertyHandlers.dragTrigger=this.__setDragTrigger;this.propertyHandlers.freeze=this.__setFreeze;this.propertyHandlers.group=this.__setGroup;this.propertyHandlers.cancelSort=this.__setCancelSort;this.propertyHandlers.helperType=this.__setHelperType};__initialize(properties){this.__internals.element=properties.element;this.__initElements();this.__initStates();this.__initEvents();this.__initProperties(properties)};__initElements(){this.__internals.dom={base:jQuery(this.__internals.element),terminator:jQuery('<li></li>')};this.__internals.dom.base.addClass('oc-interactivity-sortable').attr('data-olefa-object','sortable-list').attr('role','list');this.__internals.dom.terminator.addClass('oc-interactivity-sortable__terminator').attr('data-olefa-object','sortable-list-terminator').appendTo(this.__internals.dom.base);this.__internals.observer=OLEFA.mutations.createObserver({event:this.refID,element:this.__internals.dom.base,mutations:{childList:true}})};__initEvents(){super.__initEvents();this.__internals.observer?.events.listen('childlist-added',this.__onMutation__childListAdded.bind(this),this.refID);this.__internals.dom.base.on('selectstart.'+this.refID,this.__onSelectStart.bind(this)).on('mousedown.'+this.refID+' touchstart.'+this.refID,'>*',this.__onMouseDown.bind(this)).on('mouseup.'+this.refID+' touchend.'+this.refID,'>*',this.__onMouseUp.bind(this)).on('group-mouseup.'+this.refID,this.__onMouseUp.bind(this)).on('mousemove.'+this.refID+' touchmove.'+this.refID,'>*',this.__onMouseMove.bind(this)).on('olefa-sortable-onnewelement',(e,data)=>{e.stopPropagation();data.transaction.position=this.getIndexInList(data.sortedElement);this.__internals.events.trigger('sort',data)})};__onSelectStart(e){e.preventDefault()}__onMouseMove(e){if(this.__internals.states.hasState('pressed')&&this.properties.dragTrigger>=0){const initialPosition={clientX:this.__internals.initiator?.clientX||0,clientY:this.__internals.initiator?.clientY||0};
19if(Math.abs(e.clientX-initialPosition.clientX)>this.properties.dragTrigger||Math.abs(e.clientY-initialPosition.clientY)>this.properties.dragTrigger){this.__internals.states.remove('pressed');this.__internals.states.add('sortable')}};if(this.__internals.states.hasState('sortable')){e.preventDefault()}};__onMouseDown(e){if(e.type=='mousedown'&&e.button!=OcInteractivity.key.MOUSE_BUTTON_MAIN){return};if(this.__internals.states.hasState('freeze')){return};if(this.properties.cancelSort){if(this.__isInsideOf(e.target,this.properties.cancelSort)){return}};if(this.__internals.dom.terminator.is(e.target)){return};e.stopPropagation();this.__internals.initiator=e;this.__internals.states.add('pressed')};__onMouseUp(e){if(this.properties.cancelSort){if(this.__isInsideOf(e.target,this.properties.cancelSort)){return}};this.__internals.states.remove('pressed');this.__internals.states.remove('sortable');e.stopPropagation();if(e.cancelable){};if(e.type!='group-mouseup'){const customEvent=new Event('group-mouseup');jQuery('[data-olefa-object="sortable-list"][data-group="'+this.properties.group+'"]').not(this.__internals.dom.base).each(function(index,element){element.dispatchEvent(customEvent)})}};__onMutation__childListAdded(data){this.__deferOnce('__onMutation__childListAdded',()=>{if(!this.__internals.dom.terminator.is(data.node)){this.__internals.dom.terminator.appendTo(this.__internals.dom.base)};this.updateTriggers()})};__initStates(){this.__internals.states.define({state:'pressed',onGain:this.__onStateGain__pressed.bind(this),onLoss:this.__onStateLoss__pressed.bind(this)});this.__internals.states.define({state:'sortable',onGain:this.__onStateGain__sortable.bind(this),onLoss:this.__onStateLoss__sortable.bind(this)});this.__internals.states.define({state:'freeze',onGain:this.onStateGain_freeze.bind(this),onLoss:this.onStateLoss_freeze.bind(this)})};__onStateGain__pressed(){this.__internals.pressedTimeout=setTimeout(this.__onPressDelayPassed.bind(this),this.properties.pressDelay)};__onStateLoss__pressed(){clearTimeout(this.__internals.pressedTimeout)};__onStateGain__sortable(){this.__initSort()};__onStateLoss__sortable(){this.__stopSort()};onStateGain_freeze(){this.__internals.dom.base.attr('data-freeze','')};onStateLoss_freeze(){this.__internals.dom.base.removeAttr('data-freeze')};__isInsideOf(item,selector){const jItem=jQuery(item);if(jItem.is(selector)||OcUtilities.isElementInElement(jItem,selector)){return true}return false};__onPressDelayPassed(){this.__internals.states.remove('pressed');this.__internals.states.add('sortable')};__initSort(){jQuery(document).on('mouseup.'+this.refID,this.__onMouseUp.bind(this)).on('touchend.'+this.refID,this.__onMouseUp.bind(this)).on('mousemove.'+this.refID,this.__onMouseMoveWhileSortable.bind(this)).on('touchmove.'+this.refID,this.__onMouseMoveWhileSortable.bind(this));const e=this.__internals.initiator;if(!e){return};this.__internals.sortable=jQuery(e.currentTarget);this.__internals.helper=this.__createHelper(this.__internals.sortable);this.__internals.sortablePositionOnSortStart=this.getIndexInList(this.__internals.sortable);this.updateTriggers();const offsetPosition=jQuery(e.currentTarget).offset();let clientX=0;if(e.clientX){clientX=e.clientX}else if(e.changedTouches){clientX=e.changedTouches[0].clientX}else{clientX=offsetPosition?.left||0+(e.currentTarget.offsetWidth/2)};let clientY=0;if(e.clientY){clientY=e.clientY}else if(e.changedTouches){clientY=e.changedTouches[0].clientY}else{clientY=offsetPosition?.top||0+(e.currentTarget.offsetHeight/2)};this.__internals.helper?.addClass('oc-interactivity-sortable__helper').css({'position':'fixed','top':clientY,'left':clientX,'transform':'translateX(-50%) translateY(-50%)','width':this.__internals.sortable.width(),'height':this.__internals.sortable.height()});this.__internals.sortable.css({'visibility':'hidden','opacity':'0'}).attr('data-sorting','');this.__internals.helper?.appendTo('body');this.__trigger__start();this.__onMouseMoveWhileSortable(e)};__stopSort(){jQuery(document).off('.'+this.refID);if(!this.__internals.sortable){return};this.__internals.sortable.css({'visibility':'visible','opacity':'1'}).removeAttr('data-sorting');const currentPosition=this.getIndexInList(this.__internals.sortable);if(currentPosition!=this.__internals.sortablePositionOnSortStart){if(!this.__internals.sortable.parent().is(this.__internals.dom.base)){this.__internals.sortable.parent().trigger('olefa-sortable-onnewelement',{sortedElement:this.__internals.sortable,transaction:{from:this.__internals.dom.base,to:this.__internals.sortable.parent(),originalPosition:this.__internals.sortablePositionOnSortStart}})};this.__internals.events.trigger('sort',{sortedElement:this.__internals.sortable,transaction:{from:this.__internals.dom.base,to:this.__internals.sortable.parent(),position:currentPosition,originalPosition:this.__internals.sortablePositionOnSortStart}})};this.__internals.events.trigger('drop',{sortedElement:this.__internals.sortable});this.__internals.helper?.remove()};setGroup(group){OLEFA.log.deprecated('DEPRECATED! Use the group property instead');this.__setGroup(group)};getGroup(){OLEFA.log.deprecated('DEPRECATED! Use the group property instead');return this.__getGroup()};setCancelSort(cancelSort){OLEFA.log.deprecated('DEPRECATED! Use the cancelSort property instead');this.__setCancelSort(cancelSort)};getCancelSort(){OLEFA.log.deprecated('DEPRECATED! Use the cancelSort property instead');return this.__getCancelSort()};
19setHelperType(value){OLEFA.log.deprecated('DEPRECATED! Use the helperType property instead');this.__setHelperType(value)};getHelperType(){OLEFA.log.deprecated('DEPRECATED! Use the helperType property instead');return this.__getHelperType()};setScrollTrigger(scrollTrigger){OLEFA.log.deprecated('DEPRECATED! Use the scrollTrigger property instead');this.__setScrollTrigger(scrollTrigger)};updateTriggers(){const that=this;this.__internals.triggers=[];let groupSortables=this.getGroupSortables();if(this.__internals.sortable){groupSortables=groupSortables.not(this.__internals.sortable)}groupSortables.each(function(){const boundaries=this.getBoundingClientRect();const trigger=new OcInteractivitySortableTrigger(this,boundaries);that.__internals.triggers.push(trigger)})};getGroupSortables(){var jList=this.__internals.dom.base.children();if(this.properties.group){const jGroupList=jQuery('[data-olefa-object="sortable-list"][data-group="'+this.properties.group+'"]').not('[data-freeze]').children();jList=jList.add(jGroupList)};return jList};getItems(){var Items=this.__internals.dom.base.children();if(this.properties.cancelSort){Items=Items.not(this.properties.cancelSort)};return Items.not('[data-freeze]').not(this.__internals.dom.terminator)};getIndexInList(jElement){return this.getItems().index(jElement)};__createHelper(item){const defaults=this.defaults();if(this.properties.helperType==defaults.helperTypes.outline){return this.__createHelper__outline()}else{return this.__createHelper__clone(item)}};__createHelper__clone(item){const helper=item.clone();const node=item.get(0);if(node){const styles=window.getComputedStyle(node);for(var i=0;i<styles.length;++i){helper.css(styles[i],styles.getPropertyValue(styles[i]))}}helper.addClass('oc-interactivity-sortable__helper oc-interactivity-sortable__helper-clone');return helper};__createHelper__outline(){const helper=jQuery('<div></div>');helper.addClass('oc-interactivity-sortable__helper oc-interactivity-sortable__helper-outline');return helper};__onMouseMoveWhileSortable(e){const clientX=(e.clientX)?e.clientX:(e.changedTouches)?e.changedTouches[0].clientX:0;const clientY=(e.clientY)?e.clientY:(e.changedTouches)?e.changedTouches[0].clientY:0;this.__internals.helper?.css({'position':'fixed','top':OcDatatype.toInteger(clientY),'left':OcDatatype.toInteger(clientX),'transform':'translateX(-50%) translateY(-50%)'});var requiredScrolling={x:0,y:0};const viewportDimensions=OLEFA.basics.viewportDimensions();if(clientY<0+this.properties.scrollTrigger){requiredScrolling.y=-40}else if(clientY>viewportDimensions.height-this.properties.scrollTrigger){requiredScrolling.y=40};if(clientX<0+this.properties.scrollTrigger){requiredScrolling.x=-40}else if(clientX>viewportDimensions.width-this.properties.scrollTrigger){requiredScrolling.x=40};this.adjustScrolling(requiredScrolling);if(this.__internals.sortable){for(var i=0;i<this.__internals.triggers.length;++i){const trigger=this.__internals.triggers[i];if(trigger.check(clientX,clientY)){const children=this.getGroupSortables();if(jQuery(trigger.dom).is('[data-olefa-object="sortable-list-terminator"]')){this.__internals.sortable.insertBefore(trigger.dom)}else if(children.index(trigger.dom)>children.index(this.__internals.sortable)){this.__internals.sortable.insertAfter(trigger.dom)}else{this.__internals.sortable.insertBefore(trigger.dom)};this.updateTriggers();break}}}};adjustScrolling(adjustment){if(adjustment.y){let jElement=jQuery(this.__internals.dom.base);while(1==1){const el=jElement.get(0);if(el){const isScrollable=OLEFA.basics.isScrollable(el);if(isScrollable.y){const currentScrollTop=el.scrollTop;el.scrollTop+=adjustment.y;if(el.scrollTop!=currentScrollTop){break}}}if(jElement.is('html')){break};jElement=jElement.parent()}};if(adjustment.x){var jElement=jQuery(this.__internals.dom.base);while(1==1){const el=jElement.get(0);if(el){const isScrollable=OLEFA.basics.isScrollable(el);if(isScrollable.x){const currentScrollLeft=el.scrollLeft;el.scrollLeft+=adjustment.x;if(el.scrollLeft!=currentScrollLeft){break}}}if(jElement.is('html')){break};jElement=jElement.parent()}}};__trigger__start(data){const normalizedData={...{sortedElement:this.__internals.sortable},...data};this.__internals.events.trigger('start',normalizedData)};destroy(){document.removeEventListener('touchmove',OcInteractivity.preventDefault,{passive:false});OLEFA.mutations.destroyObserver(this.refID);jQuery(window).off('contextmenu.'+this.refID);jQuery(document).off('.'+this.refID);super.destroy()};static defaults(){const inheritedData=super.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,element:'',pressDelay:200,scrollTrigger:40,dragTrigger:8,freeze:false,helperType:'clone',cancelSort:'',group:''},helperTypes:{clone:'clone',outline:'outline'}};return extendedData}}OcInteractivitySortable.classes={TERMINATOR:'oc-interactivity-sortable__terminator'};oc.OcInteractivitySortable=OcInteractivitySortable;"use strict";class OcInteractivitySortableTrigger{constructor(element,boundaries){this.dom=element;this.boundaries={top:boundaries.top,bottom:boundaries.bottom,left:boundaries.left,right:boundaries.right}}check(x,y){const conditionsMet_horizontal=(x>this.boundaries.left&&x<this.boundaries.right);const conditionsMet_vertical=(y>this.boundaries.top&&y<this.boundaries.bottom);return conditionsMet_horizontal&&conditionsMet_vertical}}oc.OcInteractivitySortableTrigger=OcInteractivitySortableTrigger;"use strict";class OcInteractivityTabindexRoving extends OcComponent{constructor(element,properties){const normalizedProperties={...properties,...{element:element}};super(normalizedProperties)}defaults(){return OcInteractivityTabindexRoving.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,orientation:{get:this.__getOrientation.bind(this),set:this.__setOrientation.bind(this)},fetchChildren:{get:this.__getFetchChildren.bind(this),set:this.__setFetchChildren.bind(this)},itemStartsWithCharacterPredicate:{get:this.__getItemStartsWithCharacterPredicate.bind(this),set:this.__setItemStartsWithCharacterPredicate.bind(this)}}}__getOrientation(){return this.properties.orientation}__setOrientation(value){this.properties.orientation=value}__getFetchChildren(){return this.properties.fetchChildren}__setFetchChildren(value){this.properties.fetchChildren=value}__getItemStartsWithCharacterPredicate(){return this.properties.itemStartsWithCharacterPredicate}__setItemStartsWithCharacterPredicate(value){this.properties.itemStartsWithCharacterPredicate=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.orientation=this.__setOrientation;this.propertyHandlers.fetchChildren=this.__setFetchChildren;this.propertyHandlers.itemStartsWithCharacterPredicate=this.__setItemStartsWithCharacterPredicate}__initEvents(){super.__initEvents();this.__internals.root.addEventListener('focus',this.__onRoot__focus.bind(this));this.__internals.root.addEventListener('focusout',this.__onRoot__focusOut.bind(this));this.__internals.root.addEventListener('keydown',this.__onRoot__keydown.bind(this))}__onRoot__focus(ev){this.__internals.root.tabIndex=-1;const children=this.fetchChildren(this.__internals.root);this.focusFirst()}__onRoot__focusOut(ev){if(!(ev.relatedTarget instanceof Node)||(!this.__internals.root.isSameNode(ev.relatedTarget)&&!this.__internals.root.contains(ev.relatedTarget))){this.__internals.root.tabIndex=0}}__onRoot__keydown(ev){switch(ev.key){case OcAria.keys.ARROW_LEFT:{if
19(this.__getOrientation()==OcInteractivityTabindexRoving.orientations.HORIZONTAL){this.focusPrevious();ev.preventDefault()}break}case OcAria.keys.ARROW_RIGHT:{if(this.__getOrientation()==OcInteractivityTabindexRoving.orientations.HORIZONTAL){this.focusNext();ev.preventDefault()}break}case OcAria.keys.ARROW_UP:{if(this.__getOrientation()==OcInteractivityTabindexRoving.orientations.VERTICAL){this.focusPrevious();ev.preventDefault()}break}case OcAria.keys.ARROW_DOWN:{if(this.__getOrientation()==OcInteractivityTabindexRoving.orientations.VERTICAL){this.focusNext();ev.preventDefault()}break}case OcAria.keys.HOME:{this.focusFirst();ev.preventDefault();break}case OcAria.keys.END:{this.focusLast();ev.preventDefault();break}default:{this.focusStartingWith(ev.key,this.__getItemStartsWithCharacterPredicate())}}}__initialize(properties){super.__initialize(properties);let element=(properties&&properties.element)?properties.element:null;this.__internals.root=element;this.__internals.root.tabIndex=0;this.__initEvents();this.__initProperties(properties)}__getCurrentSituation(){const children=this.fetchChildren(this.__internals.root);const focusedElement=OcHtml.getFocusedElement();const currentIndex=children.findIndex(element=>element.isSameNode(focusedElement));return{children:children,index:currentIndex}}__defaultFocusStartingWithPredicate(element,character){const elementText=element.textContent?.trim().toLocaleLowerCase()||'';const lowercaseCharacter=character.toLocaleLowerCase();return elementText.startsWith(lowercaseCharacter)}__forceFocus(el){if(!el){return};el.tabIndex=-1;el.focus();this.__trigger__itemFocus({menubar:this.__internals.root,item:el})}focusNext(){const currentSituation=this.__getCurrentSituation();const newIndex=(currentSituation.index+1>=currentSituation.children.length)?0:currentSituation.index+1;this.__forceFocus(currentSituation.children[newIndex])}focusPrevious(){const currentSituation=this.__getCurrentSituation();const newIndex=(currentSituation.index<=0)?currentSituation.children.length-1:currentSituation.index-1;this.__forceFocus(currentSituation.children[newIndex])}focusFirst(){const currentSituation=this.__getCurrentSituation();this.__forceFocus(currentSituation.children[0])}focusLast(){const currentSituation=this.__getCurrentSituation();this.__forceFocus(currentSituation.children.pop())}focusStartingWith(character,predicate){const currentSituation=this.__getCurrentSituation();if(currentSituation.index==-1){return};for(let i=0;i<currentSituation.index;++i){currentSituation.children.push(currentSituation.children.shift())};currentSituation.children.shift();const predicateToUse=predicate||this.__defaultFocusStartingWithPredicate;const childStartingWithKey=currentSituation.children.find((value,index,obj)=>{return predicateToUse(value,character)});this.__forceFocus(childStartingWithKey)}__trigger__itemFocus(eventData){const event=new OcEvent({eventName:'item-focus',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.__internals.root.removeEventListener('focus',this.__onRoot__focus.bind(this));this.__internals.root.removeEventListener('focusout',this.__onRoot__focusOut.bind(this));super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,orientation:OcInteractivityTabindexRoving.orientations.HORIZONTAL,fetchChildren:element=>{return Array.from(element.children)},itemStartsWithCharacterPredicate:undefined}}}}OcInteractivityTabindexRoving.orientations={HORIZONTAL:'horizontal',VERTICAL:'vertical'};(function(OcInteractivityTabindexRoving){})(OcInteractivityTabindexRoving||(OcInteractivityTabindexRoving={}));Oc.OcInteractivityTabindexRoving=OcInteractivityTabindexRoving;"use strict";class OcInteractivityTouchevents extends OcComponent{constructor(properties){super(properties)}defaults(){return OcInteractivityTouchevents.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,flickMs:{get:function(){return that.__getFlickMs()},set:function(a){that.__setFlickMs(a)}},swipePx:{get:function(){return that.__getSwipePx()},set:function(a){that.__setSwipePx(a)}},holdDelay:{get:function(){return that.__getHoldDelay()},set:function(a){that.__setHoldDelay(a)}},fingers:{get:function(){OLEFA.log.deprecated('DEPRECATED! Use this.__internals.fingers instead!');return that.__internals.fingers}}};return extendedDefinitions}__setFlickMs(value){if(!OcDatatype.is('number',value)){OLEFA.log.warn('OcInteractivityTouchevents.__setFlickMs: Not a number.');return};this.properties.flickMs=value};__getFlickMs(){return this.properties.flickMs};__setSwipePx(value){if(!OcDatatype.is('number',value)){OLEFA.log.warn('OcInteractivityTouchevents.__setSwipePx: Not a number.');return};this.properties.swipePx=value};__getSwipePx(){return this.properties.swipePx};__setHoldDelay(value){if(!OcDatatype.is('number',value)){OLEFA.log.warn('OcInteractivityTouchevents.__setHoldDelay: Not a number.');return};this.properties.holdDelay=value};__getHoldDelay(){return this.properties.holdDelay};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.fingers={};this.propertyHandlers.flickMs=this.__setFlickMs;this.propertyHandlers.swipePx=this.__setSwipePx;this.propertyHandlers.holdDelay=this.__setHoldDelay}__initialize(properties){this.__initEvents();this.__initProperties(properties)};__initEvents(){super.__initEvents();document.addEventListener('touchstart',OcInteractivityTouchevents.__touchStart.bind(this),{passive:true});document.addEventListener('touchend',OcInteractivityTouchevents.__touchEnd.bind(this),{passive:true})}__touchStart(e){const currentFingers=this.__internals.fingers;for(const thisTouch of e.changedTouches){Object.values(currentFingers).forEac
19h(finger=>{finger.concurrentFingers.add(thisTouch.identifier.toString())});this.__internals.fingers[thisTouch.identifier]={left:thisTouch.screenX,top:thisTouch.screenY,target:thisTouch.target,identifier:thisTouch.identifier,time:performance.now(),holdTimer:undefined,concurrentFingers:new Set(Object.keys(currentFingers)),onMove:OcInteractivityTouchevents.__touchMove.bind(this)};thisTouch.target.addEventListener('touchmove',this.__internals.fingers[thisTouch.identifier].onMove,{passive:true});this.__internals.fingers[thisTouch.identifier].holdTimer=setTimeout(()=>{this.__touchHold(e,thisTouch)},this.properties.holdDelay)}}__touchMove(e){const t=performance.now();for(let i=0;i<e.changedTouches.length;++i){const thisTouch=e.changedTouches[i];if(!this.__internals.fingers[thisTouch.identifier]){continue};const refTouch=this.__internals.fingers[thisTouch.identifier];if(t-refTouch.time<this.properties.flickMs){return};const delta={x:refTouch.left-thisTouch.screenX,y:refTouch.top-thisTouch.screenY};let eventName='';if(Math.abs(delta.x)>Math.abs(delta.y)){if(Math.abs(delta.x)>this.properties.swipePx){eventName=(delta.x<0)?'swipe-right':'swipe-left';clearTimeout(refTouch.holdTimer)}}else{if(Math.abs(delta.y)>this.properties.swipePx){eventName=(delta.y<0)?'swipe-down':'swipe-up';clearTimeout(refTouch.holdTimer)}};if(eventName){refTouch.target.removeEventListener('touchmove',this.__internals.fingers[thisTouch.identifier].onMove);if(refTouch.concurrentFingers.size==0){const eventData={event:e,touchData:refTouch};switch(eventName){case'swipe-right':{this.__trigger__swipeRight(eventData);break}case'swipe-left':{this.__trigger__swipeLeft(eventData);break}case'swipe-down':{this.__trigger__swipeDown(eventData);break}case'swipe-up':{this.__trigger__swipeUp(eventData);break}default:}}}}};__touchHold(e,thisTouch){const refTouch=this.__internals.fingers[thisTouch.identifier];if(refTouch.concurrentFingers.size==0){refTouch.target.removeEventListener('touchmove',this.__internals.fingers[thisTouch.identifier].onMove);this.__trigger__touchHold({event:e,touchData:refTouch})}};__touchEnd(e){const t=performance.now();for(let i=0;i<e.changedTouches.length;++i){const thisTouch=e.changedTouches[i];if(!this.__internals.fingers[thisTouch.identifier]){continue};const refTouch=this.__internals.fingers[thisTouch.identifier];refTouch.target.removeEventListener('touchmove',this.__internals.fingers[thisTouch.identifier].onMove);clearTimeout(refTouch.holdTimer);delete this.__internals.fingers[thisTouch.identifier];const delta={x:refTouch.left-thisTouch.screenX,y:refTouch.top-thisTouch.screenY};let eventName='';if(Math.abs(delta.x)>Math.abs(delta.y)){if(t-refTouch.time<this.properties.flickMs&&Math.abs(delta.x)>this.properties.swipePx){eventName=(delta.x<0)?'flick-right':'flick-left'}}else{if(t-refTouch.time<this.properties.flickMs&&Math.abs(delta.y)>this.properties.swipePx){eventName=(delta.y<0)?'flick-down':'flick-up'}};if(eventName){if(refTouch.concurrentFingers.size==0){const eventData={event:e,touchData:refTouch};switch(eventName){case'flick-right':{this.__trigger__flickRight(eventData);break}case'flick-left':{this.__trigger__flickLeft(eventData);break}case'flick-down':{this.__trigger__flickDown(eventData);break}case'flick-up':{this.__trigger__flickUp(eventData);break}default:}}}}}__getGenericEventData(eventData){const normalizedData={...{event:null,touchData:null,},...eventData};return normalizedData}__trigger__swipeRight(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('swipe-right',data)};__trigger__swipeLeft(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('swipe-left',data)};__trigger__swipeDown(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('swipe-down',data)};__trigger__swipeUp(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('swipe-up',data)};__trigger__touchHold(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('touch-hold',data)};__trigger__flickRight(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('flick-right',data)};__trigger__flickLeft(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('flick-left',data)};__trigger__flickDown(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('flick-down',data)};__trigger__flickUp(data){data=this.__getGenericEventData(data);this.__internals.events.trigger('flick-up',data)};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,flickMs:200,swipePx:16,holdDelay:500}};return extendedData}static __touchStart(e){this.__touchStart(e)}}OcInteractivityTouchevents.__touchMove=function(e){this.__touchMove(e)};OcInteractivityTouchevents.__touchEnd=function(e){this.__touchEnd(e)};oc.OcInteractivityTouchevents=OcInteractivityTouchevents;"use strict";class OcMutationobserver extends OcComponent{constructor(properties){super(properties)}defaults(){return OcMutationobserver.defaults()}__interfaceDefinitions(){const definitions=super.__interfaceDefinitions();const that=this;definitions.observers={get:function(){return that.__internals.observers}};return definitions}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.observers={}};__initialize(properties){this.__initProperties(properties)};__onMutation(event,mutations){for(var i=0;i<mutations.length;++i){const mutation=mutations[i];const filter=this.__internals.observers[event].filter;if(filter&&!jQuery(mutation.target).is(filter)){continue};this.events.trigger(event,mutation);switch(mutation.type){case'attributes':this.__processAttributeMutation(event,mutation);break;case'characterData':this.__processCharacterDataMutation(event,mutation);break;case'childList':this.__processChildListMutation(event,mutation);break;default:}}};__processAttributeMutation(event,mutation){if(mutation.target instanceof Element){const attributeName=mutation.attributeName||'';const value=mutation.target.getAttribute(attributeName);const oldValueAvailable=this.__internals.observers[event].mutations.attributeOldValue;if(oldValueAvailable&&mutation.oldValue==value){return};this.__trigger__attributeChange(this.__internals.observers[event].events,{element:mutation.target,attribute:attributeName,value:value||'',oldValue:mutation.oldValue,isSet:mutation.target.hasAttribute(attributeName)})}};__processCharacterDataMutation(event,mutation){const value=mutation.target.textContent;if(mutation.oldValue&&mutation.oldValue==value){return};this.__trigger__characterdataChange(this.__internals.observers[event].events,{element:mutation.target,value:value,oldValue:mutation.oldValue})};__processChildListMutation(event,mutation){this.__trigger__childlistChange(this.__internals.observers[event].events,{element:mutation.target,addedNodes:mutation.addedNodes,removedNodes:mutation.removedNodes});let i=null;for(i=0;i<mutation.addedNodes.length;++i){this.__trigger__childlistAdded(this.__internals.observers[event].events,{element:mutation.target,node:mutation.addedNodes[i]})};for(i=0;i<mutation.removedNodes.length;++i){this.__trigger__childlistRemoved(this.__internals.observers[event].events,{element:mutation.target,node:mutation.removedNodes[i]})}};createObserver(parameters){const normalizedParameters={...{event:'',element:'',mutations:{},filter:''},...parameters};if(!normalizedParameters.event||!normalizedParameters.element){OLEFA.log.error('Missing mandatory parameter');return};if(this.__internals.observers[normalizedParameters.event]){OLEFA.log.error('Duplicate event');return};this.__internals.observers[normalizedParameters.event]={filter:normalizedParameters.filter,mutations:normalizedParameters.mutations,events:new OcEvents(),observer:new MutationObserver((mutations)=>{this.__onMutation(normalizedParameters.event,mutations)})};const node=jQuery(normalizedParameters.element).get(0);this.__internals.observers[normalizedParameters.event].observer.observe(node,normalizedParameters.mutations);return this.__internals.observers[normalizedParameters.event]};destroyObserver(event){if(!this.__internals.observers[event]){OLEFA.log.info('Observer with given event does not exist');return};const observer=this.__internals.observers[event];const mutations=observer.observer.takeRecords();observer.observer.disconnect();if(mutations){this.__onMutation(event,mutations)};observer.events.destroy();delete this.__internals.observers[event]};__trigger__attributeChange(eventEmitter,data){const normalizedData={...{element:null,attribute:null,value:null,oldValue:null},...data};eventEmitter.trigger('attribute-change',normalizedData)};__trigger__characterdataChange(eventEmitter,data){const normalizedData={...{element:null,value:null,oldValue:null},...data};eventEmitter.trigger('characterdata-change',normalizedData)};__trigger__childlistChange(eventEmitter,data){const normalizedData={...{element:null,addedNodes:[],removedNodes:[]},...data};eventEmitter.trigger('childlist-change',normalizedData)};__trigger__childlistAdded(eventEmitter,data){const normalizedData={...{element:null,node:null},...data};eventEmitter.trigger('childlist-added',normalizedData)};__trigger__childlistRemoved(eventEmitter,data){const normalizedData={...{element:null,node:null},...data};eventEmitter.trigger('childlist-removed',normalizedData)};destroy(){for(var event in this.__internals.observers){this.destroyObserver(event)};super.destroy()};static defaults(){const inheritedDefaults=super.defaults();return inheritedDefaults}};Oc.OcMutationobserver=OcMutationobserver;var QRCode;(function(){function QR8bitByte(data){this.mode=QRMode.MODE_8BIT_BYTE;this.data=data;this.parsedData=[];for(var i=0,l=this.data.length;i<l;i++){var byteArray=[];var code=this.data.charCodeAt(i);if(code>0x10000){byteArray[0]=0xF0|((code&0x1C0000)>>>18);byteArray[1]=0x80|((code&0x3F000)>>>12);byteArray[2]=0x80|((code&0xFC0)>>>6);byteArray[3]=0x80|(code&0x3F)}else if(code>0x800){byteArray[0]=0xE0|((code&0xF000)>>>12);byteArray[1]=0x80|((code&0xFC0)>>>6);byteArray[2]=0x80|(code&0x3F)}else if(code>0x80){byteArray[0]=0xC0|((code&0x7C0)>>>6);byteArray[1]=0x80|(code&0x3F)}else{byteArray[0]=code}this.parsedData.push(byteArray)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);if(this.parsedData.length!=this.data.length){this.parsedData.unshift(191);this.parsedData.unshift(187);this.parsedData.unshift(239)}}QR8bitByte.prototype={getLength:function(buffer){return this.parsedData.length},write:function(buffer){for(var i=0,l=this.parsedData.length;i<l;i++){buffer.put(this.parsedData[i],8)}}};function QRCodeModel(typeNumber,errorCorrectLevel){this.typeNumber=typeNumber;this.errorCorrectLevel=errorCorrectLevel;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}QRCodeModel.prototype={addData:function(data){var newData=new QR8bitByte(data);this.dataList.push(newData);this.dataCache=null},isDark:function(row,col){if(row<0||this.moduleCount<=row||col<0||this.moduleCount<=col){throw new Error(row+","+col);}return this.modules[row][col]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(false,this.getBestMaskPattern())},makeImpl:function(test,maskPattern){this.moduleCount=this.typeNumber*4+17;this.modules=new Array(this.moduleCount);for(var row=0;row<this.moduleCount;row++){this.modules[row]=new Array(this.moduleCount);for(var col=0;col<this.moduleCount;col++){this.modules[row][col]=null}}this.setupPositionProbePattern(0,0);this.setupPositionProbePattern(this.moduleCount-7,0);this.setupPositionProbePattern(0,this.moduleCount-7);this.setupPositionAdjustPattern();this.setupTimingPattern();this.setupTypeInfo(test,maskPattern);
19if(this.typeNumber>=7){this.setupTypeNumber(test)}if(this.dataCache==null){this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)}this.mapData(this.dataCache,maskPattern)},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r)continue;for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c)continue;if((0<=r&&r<=6&&(c==0||c==6))||(0<=c&&c<=6&&(r==0||r==6))||(2<=r&&r<=4&&2<=c&&c<=4)){this.modules[row+r][col+c]=true}else{this.modules[row+r][col+c]=false}}}},getBestMaskPattern:function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=QRUtil.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i}}return pattern},createMovieClip:function(target_mc,instance_name,depth){var qr_mc=target_mc.createEmptyMovieClip(instance_name,depth);var cs=1;this.make();for(var row=0;row<this.modules.length;row++){var y=row*cs;for(var col=0;col<this.modules[row].length;col++){var x=col*cs;var dark=this.modules[row][col];if(dark){qr_mc.beginFill(0,100);qr_mc.moveTo(x,y);qr_mc.lineTo(x+cs,y);qr_mc.lineTo(x+cs,y+cs);qr_mc.lineTo(x,y+cs);qr_mc.endFill()}}}return qr_mc},setupTimingPattern:function(){for(var r=8;r<this.moduleCount-8;r++){if(this.modules[r][6]!=null){continue}this.modules[r][6]=(r%2==0)}for(var c=8;c<this.moduleCount-8;c++){if(this.modules[6][c]!=null){continue}this.modules[6][c]=(c%2==0)}},setupPositionAdjustPattern:function(){var pos=QRUtil.getPatternPosition(this.typeNumber);for(var i=0;i<pos.length;i++){for(var j=0;j<pos.length;j++){var row=pos[i];var col=pos[j];if(this.modules[row][col]!=null){continue}for(var r=-2;r<=2;r++){for(var c=-2;c<=2;c++){if(r==-2||r==2||c==-2||c==2||(r==0&&c==0)){this.modules[row+r][col+c]=true}else{this.modules[row+r][col+c]=false}}}}}},setupTypeNumber:function(test){var bits=QRUtil.getBCHTypeNumber(this.typeNumber);for(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=mod}for(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=mod}},setupTypeInfo:function(test,maskPattern){var data=(this.errorCorrectLevel<<3)|maskPattern;var bits=QRUtil.getBCHTypeInfo(data);for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<6){this.modules[i][8]=mod}else if(i<8){this.modules[i+1][8]=mod}else{this.modules[this.moduleCount-15+i][8]=mod}}for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<8){this.modules[8][this.moduleCount-i-1]=mod}else if(i<9){this.modules[8][15-i-1+1]=mod}else{this.modules[8][15-i-1]=mod}}this.modules[this.moduleCount-8][8]=(!test)},mapData:function(data,maskPattern){var inc=-1;var row=this.moduleCount-1;var bitIndex=7;var byteIndex=0;for(var col=this.moduleCount-1;col>0;col-=2){if(col==6)col--;while(true){for(var c=0;c<2;c++){if(this.modules[row][col-c]==null){var dark=false;if(byteIndex<data.length){dark=(((data[byteIndex]>>>bitIndex)&1)==1)}var mask=QRUtil.getMask(maskPattern,row,col-c);if(mask){dark=!dark}this.modules[row][col-c]=dark;bitIndex--;if(bitIndex==-1){byteIndex++;bitIndex=7}}}row+=inc;if(row<0||this.moduleCount<=row){row-=inc;inc=-inc;break}}}}};QRCodeModel.PAD0=0xEC;QRCodeModel.PAD1=0x11;QRCodeModel.createData=function(typeNumber,errorCorrectLevel,dataList){var rsBlocks=QRRSBlock.getRSBlocks(typeNumber,errorCorrectLevel);var buffer=new QRBitBuffer();for(var i=0;i<dataList.length;i++){var data=dataList[i];buffer.put(data.mode,4);buffer.put(data.getLength(),QRUtil.getLengthInBits(data.mode,typeNumber));data.write(buffer)}var totalDataCount=0;for(var i=0;i<rsBlocks.length;i++){totalDataCount+=rsBlocks[i].dataCount}if(buffer.getLengthInBits()>totalDataCount*8){throw new Error("code length overflow. ("+buffer.getLengthInBits()+">"+totalDataCount*8+")");}if(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4)}while(buffer.getLengthInBits()%8!=0){buffer.putBit(false)}while(true){if(buffer.getLengthInBits()>=totalDataCount*8){break}buffer.put(QRCodeModel.PAD0,8);if(buffer.getLengthInBits()>=totalDataCount*8){break}buffer.put(QRCodeModel.PAD1,8)}return QRCodeModel.createBytes(buffer,rsBlocks)};QRCodeModel.createBytes=function(buffer,rsBlocks){var offset=0;var maxDcCount=0;var maxEcCount=0;var dcdata=new Array(rsBlocks.length);var ecdata=new Array(rsBlocks.length);for(var r=0;r<rsBlocks.length;r++){var dcCount=rsBlocks[r].dataCount;var ecCount=rsBlocks[r].totalCount-dcCount;maxDcCount=Math.max(maxDcCount,dcCount);maxEcCount=Math.max(maxEcCount,ecCount);dcdata[r]=new Array(dcCount);for(var i=0;i<dcdata[r].length;i++){dcdata[r][i]=0xff&buffer.buffer[i+offset]}offset+=dcCount;var rsPoly=QRUtil.getErrorCorrectPolynomial(ecCount);var rawPoly=new QRPolynomial(dcdata[r],rsPoly.getLength()-1);var modPoly=rawPoly.mod(rsPoly);ecdata[r]=new Array(rsPoly.getLength()-1);for(var i=0;i<ecdata[r].length;i++){var modIndex=i+modPoly.getLength()-ecdata[r].length;ecdata[r][i]=(modIndex>=0)?modPoly.get(modIndex):0}}var totalCodeCount=0;for(var i=0;i<rsBlocks.length;i++){totalCodeCount+=rsBlocks[i].totalCount}var data=new Array(totalCodeCount);var index=0;for(var i=0;i<maxDcCount;i++){for(var r=0;r<rsBlocks.length;r++){if(i<dcdata[r].length){data[index++]=dcdata[r][i]}}}for(var i=0;i<maxEcCount;i++){for(var r=0;r<rsBlocks.length;r++){if(i<ecdata[r].length){data[index++]=ecdata[r][i]}}}return data};var QRMode={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3};var QRErrorCorrectLevel={L:1,M:0,Q:3,H:2};var QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:(1<<10)|(1<<8)|(1<<5)|(1<<4)|(1<<2)|(1<<1)|(1<<0),G18:(1<<12)|(1<<11)|(1<<10)|(1<<9)|(1<<8)|(1<<5)|(1<<2)|(1<<0),G15_MASK:(1<<14)|(1<<12)|(1<<10)|(1<<4)|(1<<1),getBCHTypeInfo:function(data){var d=data<<10;
19while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)>=0){d^=(QRUtil.G15<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)))}return((data<<10)|d)^QRUtil.G15_MASK},getBCHTypeNumber:function(data){var d=data<<12;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)>=0){d^=(QRUtil.G18<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)))}return(data<<12)|d},getBCHDigit:function(data){var digit=0;while(data!=0){digit++;data>>>=1}return digit},getPatternPosition:function(typeNumber){return QRUtil.PATTERN_POSITION_TABLE[typeNumber-1]},getMask:function(maskPattern,i,j){switch(maskPattern){case QRMaskPattern.PATTERN000:return(i+j)%2==0;case QRMaskPattern.PATTERN001:return i%2==0;case QRMaskPattern.PATTERN010:return j%3==0;case QRMaskPattern.PATTERN011:return(i+j)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(j/3))%2==0;case QRMaskPattern.PATTERN101:return(i*j)%2+(i*j)%3==0;case QRMaskPattern.PATTERN110:return((i*j)%2+(i*j)%3)%2==0;case QRMaskPattern.PATTERN111:return((i*j)%3+(i+j)%2)%2==0;default:throw new Error("bad maskPattern:"+maskPattern);}},getErrorCorrectPolynomial:function(errorCorrectLength){var a=new QRPolynomial([1],0);for(var i=0;i<errorCorrectLength;i++){a=a.multiply(new QRPolynomial([1,QRMath.gexp(i)],0))}return a},getLengthInBits:function(mode,type){if(1<=type&&type<10){switch(mode){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;case QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+mode);}}else if(type<27){switch(mode){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw new Error("mode:"+mode);}}else if(type<41){switch(mode){case QRMode.MODE_NUMBER:return 14;case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw new Error("mode:"+mode);}}else{throw new Error("type:"+type);}},getLostPoint:function(qrCode){var moduleCount=qrCode.getModuleCount();var lostPoint=0;for(var row=0;row<moduleCount;row++){for(var col=0;col<moduleCount;col++){var sameCount=0;var dark=qrCode.isDark(row,col);for(var r=-1;r<=1;r++){if(row+r<0||moduleCount<=row+r){continue}for(var c=-1;c<=1;c++){if(col+c<0||moduleCount<=col+c){continue}if(r==0&&c==0){continue}if(dark==qrCode.isDark(row+r,col+c)){sameCount++}}}if(sameCount>5){lostPoint+=(3+sameCount-5)}}}for(var row=0;row<moduleCount-1;row++){for(var col=0;col<moduleCount-1;col++){var count=0;if(qrCode.isDark(row,col))count++;if(qrCode.isDark(row+1,col))count++;if(qrCode.isDark(row,col+1))count++;if(qrCode.isDark(row+1,col+1))count++;if(count==0||count==4){lostPoint+=3}}}for(var row=0;row<moduleCount;row++){for(var col=0;col<moduleCount-6;col++){if(qrCode.isDark(row,col)&&!qrCode.isDark(row,col+1)&&qrCode.isDark(row,col+2)&&qrCode.isDark(row,col+3)&&qrCode.isDark(row,col+4)&&!qrCode.isDark(row,col+5)&&qrCode.isDark(row,col+6)){lostPoint+=40}}}for(var col=0;col<moduleCount;col++){for(var row=0;row<moduleCount-6;row++){if(qrCode.isDark(row,col)&&!qrCode.isDark(row+1,col)&&qrCode.isDark(row+2,col)&&qrCode.isDark(row+3,col)&&qrCode.isDark(row+4,col)&&!qrCode.isDark(row+5,col)&&qrCode.isDark(row+6,col)){lostPoint+=40}}}var darkCount=0;for(var col=0;col<moduleCount;col++){for(var row=0;row<moduleCount;row++){if(qrCode.isDark(row,col)){darkCount++}}}var ratio=Math.abs(100*darkCount/moduleCount/moduleCount-50)/5;lostPoint+=ratio*10;return lostPoint}};var QRMath={glog:function(n){if(n<1){throw new Error("glog("+n+")");}return QRMath.LOG_TABLE[n]},gexp:function(n){while(n<0){n+=255}while(n>=256){n-=255}return QRMath.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++){QRMath.EXP_TABLE[i]=1<<i}for(var i=8;i<256;i++){QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8]}for(var i=0;i<255;i++){QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i}function QRPolynomial(num,shift){if(num.length==undefined){throw new Error(num.length+"/"+shift);}var offset=0;while(offset<num.length&&num[offset]==0){offset++}this.num=new Array(num.length-offset+shift);for(var i=0;i<num.length-offset;i++){this.num[i]=num[i+offset]}}QRPolynomial.prototype={get:function(index){return this.num[index]},getLength:function(){return this.num.length},multiply:function(e){var num=new Array(this.getLength()+e.getLength()-1);for(var i=0;i<this.getLength();i++){for(var j=0;j<e.getLength();j++){num[i+j]^=QRMath.gexp(QRMath.glog(this.get(i))+QRMath.glog(e.get(j)))}}return new QRPolynomial(num,0)},mod:function(e){if(this.getLength()-e.getLength()<0){return this}var ratio=QRMath.glog(this.get(0))-QRMath.glog(e.get(0));var num=new Array(this.getLength());for(var i=0;i<this.getLength();i++){num[i]=this.get(i)}for(var i=0;i<e.getLength();i++){num[i]^=QRMath.gexp(QRMath.glog(e.get(i))+ratio)}return new QRPolynomial(num,0).mod(e)}};function QRRSBlock(totalCount,dataCount){this.totalCount=totalCount;this.dataCount=dataCount}QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37
19],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];QRRSBlock.getRSBlocks=function(typeNumber,errorCorrectLevel){var rsBlock=QRRSBlock.getRsBlockTable(typeNumber,errorCorrectLevel);if(rsBlock==undefined){throw new Error("bad rs block @ typeNumber:"+typeNumber+"/errorCorrectLevel:"+errorCorrectLevel);}var length=rsBlock.length/3;var list=[];for(var i=0;i<length;i++){var count=rsBlock[i*3+0];var totalCount=rsBlock[i*3+1];var dataCount=rsBlock[i*3+2];for(var j=0;j<count;j++){list.push(new QRRSBlock(totalCount,dataCount))}}return list};QRRSBlock.getRsBlockTable=function(typeNumber,errorCorrectLevel){switch(errorCorrectLevel){case QRErrorCorrectLevel.L:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+0];case QRErrorCorrectLevel.M:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+1];case QRErrorCorrectLevel.Q:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+2];case QRErrorCorrectLevel.H:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+3];default:return undefined}};function QRBitBuffer(){this.buffer=[];this.length=0}QRBitBuffer.prototype={get:function(index){var bufIndex=Math.floor(index/8);return((this.buffer[bufIndex]>>>(7-index%8))&1)==1},put:function(num,length){for(var i=0;i<length;i++){this.putBit(((num>>>(length-i-1))&1)==1)}},getLengthInBits:function(){return this.length},putBit:function(bit){var bufIndex=Math.floor(this.length/8);if(this.buffer.length<=bufIndex){this.buffer.push(0)}if(bit){this.buffer[bufIndex]|=(0x80>>>(this.length%8))}this.length++}};var QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,71
195,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function _isSupportCanvas(){return typeof CanvasRenderingContext2D!="undefined"}function _getAndroid(){var android=false;var sAgent=navigator.userAgent;if(/android/i.test(sAgent)){android=true;var aMat=sAgent.toString().match(/android ([0-9]\.[0-9])/i);if(aMat&&aMat[1]){android=parseFloat(aMat[1])}}return android}var svgDrawer=(function(){var Drawing=function(el,htOption){this._el=el;this._htOption=htOption};Drawing.prototype.draw=function(oQRCode){var _htOption=this._htOption;var _el=this._el;var nCount=oQRCode.getModuleCount();var nWidth=Math.floor(_htOption.width/nCount);var nHeight=Math.floor(_htOption.height/nCount);this.clear();function makeSVG(tag,attrs){var el=document.createElementNS('http://www.w3.org/2000/svg',tag);for(var k in attrs)if(attrs.hasOwnProperty(k))el.setAttribute(k,attrs[k]);return el}var svg=makeSVG("svg",{'viewBox':'0 0 '+String(nCount)+" "+String(nCount),'width':'100%','height':'100%','fill':_htOption.colorLight});svg.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");_el.appendChild(svg);svg.appendChild(makeSVG("rect",{"fill":_htOption.colorLight,"width":"100%","height":"100%"}));svg.appendChild(makeSVG("rect",{"fill":_htOption.colorDark,"width":"1","height":"1","id":"template"}));for(var row=0;row<nCount;row++){for(var col=0;col<nCount;col++){if(oQRCode.isDark(row,col)){var child=makeSVG("use",{"x":String(col),"y":String(row)});child.setAttributeNS("http://www.w3.org/1999/xlink","href","#template");svg.appendChild(child)}}}};Drawing.prototype.clear=function(){while(this._el.hasChildNodes())this._el.removeChild(this._el.lastChild)};return Drawing})();var useSVG=document.documentElement.tagName.toLowerCase()==="svg";var Drawing=useSVG?svgDrawer:!_isSupportCanvas()?(function(){var Drawing=function(el,htOption){this._el=el;this._htOption=htOption};Drawing.prototype.draw=function(oQRCode){var _htOption=this._htOption;var _el=this._el;var nCount=oQRCode.getModuleCount();var nWidth=Math.floor(_htOption.width/nCount);var nHeight=Math.floor(_htOption.height/nCount);var aHTML=['<table style="border:0;border-collapse:collapse;">'];for(var row=0;row<nCount;row++){aHTML.push('<tr>');for(var col=0;col<nCount;col++){aHTML.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+nWidth+'px;height:'+nHeight+'px;background-color:'+(oQRCode.isDark(row,col)?_htOption.colorDark:_htOption.colorLight)+';"></td>')}aHTML.push('</tr>')}aHTML.push('</table>');_el.innerHTML=aHTML.join('');var elTable=_el.childNodes[0];var nLeftMarginTable=(_htOption.width-elTable.offsetWidth)/2;var nTopMarginTable=(_htOption.height-elTable.offsetHeight)/2;if(nLeftMarginTable>0&&nTopMarginTable>0){elTable.style.margin=nTopMarginTable+"px "+nLeftMarginTable+"px"}};Drawing.prototype.clear=function(){this._el.innerHTML=''};return Drawing})():(function(){function _onMakeImage(){this._elImage.src=this._elCanvas.toDataURL("image/png");this._elImage.style.display="block";this._elCanvas.style.display="none"}if(this._android&&this._android<=2.1){var factor=1/window.devicePixelRatio;var drawImage=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(image,sx,sy,sw,sh,dx,dy,dw,dh){if(("nodeName"in image)&&/img/i.test(image.nodeName)){for(var i=arguments.length-1;i>=1;i--){arguments[i]=arguments[i]*factor}}else if(typeof dw=="undefined"){arguments[1]*=factor;arguments[2]*=factor;arguments[3]*=factor;arguments[4]*=factor}drawImage.apply(this,arguments)}}function _safeSetDataURI(fSuccess,fFail){var self=this;self._fFail=fFail;self._fSuccess=fSuccess;if(self._bSupportDataURI===null){var el=document.createElement("img");var fOnError=function(){self._bSupportDataURI=false;if(self._fFail){self._fFail.call(self)}};var fOnSuccess=function(){self._bSupportDataURI=true;if(self._fSuccess){self._fSuccess.call(self)}};el.onabort=fOnError;el.onerror=fOnError;el.onload=fOnSuccess;el.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else if(self._bSupportDataURI===true&&self._fSuccess){self._fSuccess.call(self)}else if(self._bSupportDataURI===false&&self._fFail){self._fFail.call(self)}};var Drawing=function(el,htOption){this._bIsPainted=false;this._android=_getAndroid();this._htOption=htOption;this._elCanvas=document.createElement("canvas");this._elCanvas.width=htOption.width;this._elCanvas.height=htOption.height;el.appendChild(this._elCanvas);this._el=el;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=false;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this._el.appendChild(this._elImage);
19this._bSupportDataURI=null};Drawing.prototype.draw=function(oQRCode){var _elImage=this._elImage;var _oContext=this._oContext;var _htOption=this._htOption;var nCount=oQRCode.getModuleCount();var nWidth=_htOption.width/nCount;var nHeight=_htOption.height/nCount;var nRoundedWidth=Math.round(nWidth);var nRoundedHeight=Math.round(nHeight);_elImage.style.display="none";this.clear();for(var row=0;row<nCount;row++){for(var col=0;col<nCount;col++){var bIsDark=oQRCode.isDark(row,col);var nLeft=col*nWidth;var nTop=row*nHeight;_oContext.strokeStyle=bIsDark?_htOption.colorDark:_htOption.colorLight;_oContext.lineWidth=1;_oContext.fillStyle=bIsDark?_htOption.colorDark:_htOption.colorLight;_oContext.fillRect(nLeft,nTop,nWidth,nHeight);_oContext.strokeRect(Math.floor(nLeft)+0.5,Math.floor(nTop)+0.5,nRoundedWidth,nRoundedHeight);_oContext.strokeRect(Math.ceil(nLeft)-0.5,Math.ceil(nTop)-0.5,nRoundedWidth,nRoundedHeight)}}this._bIsPainted=true};Drawing.prototype.makeImage=function(){if(this._bIsPainted){_safeSetDataURI.call(this,_onMakeImage)}};Drawing.prototype.isPainted=function(){return this._bIsPainted};Drawing.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=false};Drawing.prototype.round=function(nNumber){if(!nNumber){return nNumber}return Math.floor(nNumber*1000)/1000};return Drawing})();function _getTypeNumber(sText,nCorrectLevel){var nType=1;var length=_getUTF8Length(sText);for(var i=0,len=QRCodeLimitLength.length;i<=len;i++){var nLimit=0;switch(nCorrectLevel){case QRErrorCorrectLevel.L:nLimit=QRCodeLimitLength[i][0];break;case QRErrorCorrectLevel.M:nLimit=QRCodeLimitLength[i][1];break;case QRErrorCorrectLevel.Q:nLimit=QRCodeLimitLength[i][2];break;case QRErrorCorrectLevel.H:nLimit=QRCodeLimitLength[i][3];break}if(length<=nLimit){break}else{nType++}}if(nType>QRCodeLimitLength.length){throw new Error("Too long data");}return nType}function _getUTF8Length(sText){var replacedText=encodeURI(sText).toString().replace(/\%[0-9a-fA-F]{2}/g,'a');return replacedText.length+(replacedText.length!=sText?3:0)}QRCode=function(el,vOption){this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:QRErrorCorrectLevel.H};if(typeof vOption==='string'){vOption={text:vOption}}if(vOption){for(var i in vOption){this._htOption[i]=vOption[i]}}if(typeof el=="string"){el=document.getElementById(el)}if(this._htOption.useSVG){Drawing=svgDrawer}this._android=_getAndroid();this._el=el;this._oQRCode=null;this._oDrawing=new Drawing(this._el,this._htOption);if(this._htOption.text){this.makeCode(this._htOption.text)}};QRCode.prototype.makeCode=function(sText){this._oQRCode=new QRCodeModel(_getTypeNumber(sText,this._htOption.correctLevel),this._htOption.correctLevel);this._oQRCode.addData(sText);this._oQRCode.make();this._el.title=sText;this._oDrawing.draw(this._oQRCode);this.makeImage()};QRCode.prototype.makeImage=function(){if(typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)){this._oDrawing.makeImage()}};QRCode.prototype.clear=function(){this._oDrawing.clear()};QRCode.CorrectLevel=QRErrorCorrectLevel})();"use strict";class OcTasks extends OcComponent{defaults(){return OcTasks.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.tasks={}};__initialize(){this.__initProperties()};new(taskProperties){const normalizedProperties={...{id:OLEFA.basics.generateID()},...taskProperties};if(this.__internals.tasks[normalizedProperties.id]){this.__internals.tasks[normalizedProperties.id]=new OcTask(normalizedProperties)}else{OLEFA.log.warn('Task with given ID already exists',normalizedProperties)};return this.__internals.tasks[normalizedProperties.id]};get(taskID){return this.__internals.tasks[taskID]};delete(taskID){if(!this.__internals.tasks[taskID]){return};this.__internals.tasks[taskID].destroy();delete this.__internals.tasks[taskID]};static defaults(){const inheritedData=OcComponent.defaults();return inheritedData}}oc.OcTasks=OcTasks;"use strict";class OcTask extends OcComponent{constructor(properties){super(properties)}defaults(){return OcTask.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,id:{get:function(){return that.__getID()},set:function(a){that.__setID(a)}},task:{get:function(){return that.__getTask()},set:function(a){that.__setTask(a)}},onComplete:{get:function(){return that.__getOnComplete()},set:function(a){that.__setOnComplete(a)}},onError:{get:function(){return that.__getOnError()},set:function(a){that.__setOnError(a)}},done:{get:function(){return that.__internals.done}},running:{get:function(){return that.__internals.running}}};return extendedDefinitions};__setID(value){this.properties.id=value};__getID(){return this.properties.id};__setTask(value){if(!OcDatatype.is('function',value)){return};this.properties.task=value};__getTask(){return this.properties.task};__setOnComplete(value){if(!OcDatatype.is('function',value)){return}this.properties.onComplete=value};__getOnComplete(){return this.properties.onComplete};__setOnError(value){if(!OcDatatype.is('function',value)){return};this.properties.onError=value};__getOnError(){return this.properties.onError};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.taskData={};this.__internals.promise=new Promise((resolve,reject)=>{this.__internals.promiseResolve=resolve;
19this.__internals.promiseReject=reject}).catch((errorCode)=>{});this.__internals.done=false;this.__internals.running=false;this.propertyHandlers.id=this.__setID;this.propertyHandlers.task=this.__setTask;this.propertyHandlers.onComplete=this.__setOnComplete;this.propertyHandlers.onError=this.__setOnError};__initialize(properties){this.__initProperties(properties)};setData(data){this.__internals.taskData={...this.__internals.taskData,...data}};execute(taskData){if(this.done||this.running){return};const resolve=(x)=>{this.markAsDone(x)};const reject=(x)=>{this.__onError(x)};try{this.__internals.running=true;if(taskData){this.setData(taskData)};this.task(this.__internals.taskData,resolve,reject);this.__internals.running=false}catch(e){this.__internals.running=false}};__onError(x){if(this.done){return};this.onError(this.__internals.taskData,x)};markAsDone(x){if(this.done){return};this.__internals.done=true;this.onComplete(this.__internals.taskData,x);this.__internals.promiseResolve()};cancel(){if(this.done){return};this.__internals.done=true;this.__internals.promiseReject()};waitForCompletion(){return this.__internals.promise};destroy(){this.cancel();super.destroy()};static defaults(){const inheritedData=OcComponent.defaults();const extendedData={...inheritedData,properties:{...inheritedData.properties,id:'',task:(taskData,resolve,reject)=>{reject(taskData)},onComplete:()=>{},onError:()=>{}}};return extendedData}}Oc.OcTask=OcTask;(function($){ $.fn.ihavecookies=function(options,event){var $element=$(this);var settings=$.extend({cookieTypes:[],title:OLEFA.i18n.get('cookies_privacy'),message:OLEFA.i18n.get('cookies_desc_simple'),message_more:OLEFA.i18n.get('cookies_desc_more'),link:'',delay:1000,moreInfoLabel:OLEFA.i18n.get('more_info'),acceptBtnLabel:OLEFA.i18n.get('accept'),acceptAllBtnLabel:OLEFA.i18n.get('accept_all'),advancedBtnLabel:OLEFA.i18n.get('customize'),rejectBtnLabel:OLEFA.i18n.get('reject'),advancedSaveBtnLabel:OLEFA.i18n.get('save'),cookieTypesTitle:OLEFA.i18n.get('select_cookies'),fixedCookieTypeLabel:OLEFA.i18n.get('necessary'),fixedCookieTypeDesc:OLEFA.i18n.get('necessary_desc'),onAccept:function(){},uncheckBoxes:false},options);var myCookie=$.fn.ihavecookies.getCookie('cookieControl');var myCookiePrefs=$.fn.ihavecookies.getCookie('cookieControlPrefs');if(!myCookie||!myCookiePrefs||event=='reinit'){ $('#gdpr-cookie-message').remove();var cookieTypes='<li><input type="checkbox" id="gdpr-cookietype-necessary" name="gdpr[]" value="necessary" checked="checked" disabled="disabled"> <label for="gdpr-cookietype-necessary" title="'+settings.fixedCookieTypeDesc+'">'+settings.fixedCookieTypeLabel+'</label></li>';var customCookies=false;preferences=JSON.parse(myCookiePrefs); $.each(settings.cookieTypes,function(index,field){if(field.type!==''&&field.value!==''){var cookieTypeDescription='';if(field.description!==false){cookieTypeDescription=' title="'+field.description+'"'}cookieTypes+='<li><input type="checkbox" id="gdpr-cookietype-'+field.value+'" name="gdpr[]" value="'+field.value+'" data-auto="on"> <label for="gdpr-cookietype-'+field.value+'"'+cookieTypeDescription+'>'+field.type+'</label></li>';customCookies=true}});var cookieMessage='<div id="gdpr-cookie-message" tabindex="0" role="region" aria-labelledby="gdpr-cookie-title" aria-describedby="gdpr-cookie-description">'+'<h1 id="gdpr-cookie-title">'+settings.title+'</h1><p id="gdpr-cookie-description">'+(customCookies?settings.message_more:settings.message)+(settings.link?' <a href="'+settings.link+'" rel="noopener" target="_blank">'+settings.moreInfoLabel+'</a>':'')+'</p>'+'<div id="gdpr-cookie-types" tabindex="-1" style="display:none;" aria-labelledby="gdpr-cookie-types-title"><h2 id="gdpr-cookie-types-title">'+settings.cookieTypesTitle+'</h2>'+'<ul>'+cookieTypes+'</ul></div><p id="gdpr-cookie-buttons"><button id="gdpr-cookie-accept" type="button">'+(customCookies?settings.acceptAllBtnLabel:settings.acceptBtnLabel)+'</button>'+'<button id="gdpr-cookie-reject" type="button">'+settings.rejectBtnLabel+'</button><button id="gdpr-cookie-advanced" aria-label="'+settings.advancedBtnLabel+'"class="material-icons" type="button">settings</button></p></div>';setTimeout(function(){ $($element).prepend(cookieMessage); $('#gdpr-cookie-message').hide().fadeIn('slow',function(){if(event=='reinit'){ $('#gdpr-cookie-advanced').trigger('click'); $.each(preferences,function(index,field){ $('input#gdpr-cookietype-'+field).prop('checked',true)})}})},settings.delay);var body=$('body');body.off('.gdpr-cookie');body.on('click.gdpr-cookie','#gdpr-cookie-accept',function(){ $.fn.ihavecookies.dropCookie(true); $('input[name="gdpr[]"]').prop('checked',true);var prefs=[]; $.each($('input[name="gdpr[]"]').serializeArray(),function(i,field){prefs.push(field.value)});
19 $.fn.ihavecookies.setCookie('cookieControlPrefs',encodeURIComponent(JSON.stringify(prefs)));settings.onAccept.call(this)});body.on('click.gdpr-cookie','#gdpr-cookie-advanced',function(e){e.preventDefault(); $('input[name="gdpr[]"]:not(:disabled)').attr('data-auto','off').prop('checked',false); $('#gdpr-cookie-types').slideDown('fast',function(){ $('#gdpr-cookie-reject').hide();const advancedButton=$('#gdpr-cookie-advanced');advancedButton.text(settings.advancedSaveBtnLabel).attr("id","gdpr-cookie-advanced-save").attr("aria-label",settings.advancedSaveBtnLabel); $('#gdpr-cookie-types').focus()})});body.on('click.gdpr-cookie','#gdpr-cookie-advanced-save',function(){ $.fn.ihavecookies.dropCookie(true); $('input[name="gdpr[]"][data-auto="on"]').prop('checked',true);var prefs=[]; $.each($('input[name="gdpr[]"]').serializeArray(),function(i,field){prefs.push(field.value)}); $.fn.ihavecookies.setCookie('cookieControlPrefs',encodeURIComponent(JSON.stringify(prefs)));settings.onAccept.call(this)});body.on('click.gdpr-cookie','#gdpr-cookie-reject',function(){ $.fn.ihavecookies.dropCookie(true); $.fn.ihavecookies.setNessCookie()})}else{var cookieVal=true;if(myCookie=='false'){cookieVal=false} $.fn.ihavecookies.dropCookie(cookieVal)}if(settings.uncheckBoxes===true){ $('input[type="checkbox"].ihavecookies').prop('checked',false)}}; $.fn.ihavecookies.cookie=function(){var preferences=$.fn.ihavecookies.getCookie('cookieControlPrefs');return JSON.parse(preferences)}; $.fn.ihavecookies.preference=function(cookieTypeValue){var control=$.fn.ihavecookies.getCookie('cookieControl');var preferences=$.fn.ihavecookies.getCookie('cookieControlPrefs');preferences=JSON.parse(preferences);if(control===false){return false}return!(preferences===false||preferences.indexOf(cookieTypeValue)===-1)}; $.fn.ihavecookies.addCookie=function(cookieTypeValue){var control=$.fn.ihavecookies.getCookie('cookieControl');var preferences=$.fn.ihavecookies.getCookie('cookieControlPrefs');preferences=JSON.parse(preferences);if(control===false){ $.fn.ihavecookies.setCookie('cookieControl',true)}if(preferences===false||preferences.indexOf(cookieTypeValue)===-1){if(preferences===false){preferences=[];preferences[0]=cookieTypeValue}else{preferences.push(cookieTypeValue)} $.fn.ihavecookies.setCookie('cookieControlPrefs',encodeURIComponent(JSON.stringify(preferences)))}}; $.fn.ihavecookies.dropCookie=function(value){ $.fn.ihavecookies.setCookie('cookieControl',value); $('#gdpr-cookie-message').fadeOut('fast',function(){ $(this).remove()})}; $.fn.ihavecookies.setCookie=function(name,value){var d=new Date();d.setTime(d.getTime()+(365*24*60*60*1000));var expires="expires="+d.toUTCString();if(OLEFA.environment.platform=='web'){document.cookie=name+"="+value+";"+expires+";path=/;samesite=strict;Secure"}else{var coo={};coo[name]=value;OLEFA.storage.store('lsCookie-'+name,coo)}return $.fn.ihavecookies.getCookie(name)}; $.fn.ihavecookies.getCookie=function(name){if(OLEFA.environment.platform=='web'){var cookie_name=name+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1)}if(c.indexOf(cookie_name)===0){return c.substring(cookie_name.length,c.length)}}}else{var lsCookie=OLEFA.storage.get('lsCookie-'+name);if(typeof(lsCookie)!='undefined'&&lsCookie[name]){var decodedCookie=decodeURIComponent(lsCookie[name]);return decodedCookie}}return false}; $.fn.ihavecookies.setNessCookie=function(name){ $.fn.ihavecookies.setCookie('cookieControl',true); $.fn.ihavecookies.setCookie('cookieControlPrefs',encodeURIComponent(JSON.stringify([])))}}(jQuery));"use strict";class OcResizeobserver extends OcComponent{defaults(){return OcResizeobserver.defaults()};__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const that=this;const extendedDefinitions={...inheritedDefinitions,elements:{get:function(){return that.__getElements()}},mode:{get:this.__getMode.bind(this)}};return extendedDefinitions};__getElements(){const result=jQuery();this.__internals.elements.each(function(index,element){result.add(element)});return result};__getMode(){return this.__internals.mode}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.elements=jQuery();const defaultData=this.defaults();this.__internals.mode=(OLEFA.features.resizeObserver)?defaultData.modes.NATIVE:defaultData.modes.POLYFILL;
19if(this.__internals.mode==defaultData.modes.NATIVE){this.__internals.resizeObserver=new OcResizeobserverNative()}else{this.__internals.resizeObserver=new OcResizeobserverPolyfill()}};__initialize(properties){this.__initEvents();this.__initProperties(properties)};__initEvents(){super.__initEvents();this.__internals.resizeObserver.events.listen('resize',this.__onResizeObserver__resize.bind(this),this.refID)};__onResizeObserver__resize(data){this.__trigger__resize(data)};observe(element){const jElement=jQuery(element);const that=this;jElement.each(function(index,thisElement){if(that.__internals.elements.filter(thisElement).length==0){that.__internals.elements=that.__internals.elements.add(thisElement);that.__internals.resizeObserver.add(thisElement)}})};unobserve(element){const jElement=jQuery(element);const that=this;jElement.each(function(index,thisElement){if(that.__internals.elements.filter(thisElement).length!=0){that.__internals.elements=that.__internals.elements.not(thisElement);that.__internals.resizeObserver.remove(thisElement)}})};__trigger__resize(data){this.events.trigger('resize',data)};destroy(){super.destroy()}static defaults(){const inheritedData=OcComponent.defaults();const expandedData={...inheritedData,modes:{NATIVE:1,POLYFILL:2}};return expandedData}}OcResizeobserver.superClass=OcComponent;(function(OcResizeobserver){})(OcResizeobserver||(OcResizeobserver={}));oc.OcResizeobserver=OcResizeobserver;"use strict";class OcResizeobserverBase extends OcComponent{defaults(){return OcResizeobserverBase.defaults()}add(element){};remove(element){};__trigger__resize(data){const normalizedData={...{element:null},...data};this.events.trigger('resize',normalizedData)};static defaults(){const data=OcComponent.defaults();return data}};oc.OcResizeobserverBase=OcResizeobserverBase;"use strict";class OcResizeobserverNative extends OcResizeobserverBase{defaults(){return OcResizeobserverNative.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.resizeObserver=new ResizeObserver(this.__onResize.bind(this))};__initialize(properties){this.__initProperties(properties)};add(element){this.__internals.resizeObserver.observe(element)};remove(element){this.__internals.resizeObserver.unobserve(element)};__onResize(entries){for(var index in entries){const entry=entries[index];this.__trigger__resize({element:entry.target})}};destroy(){this.__internals.resizeObserver.disconnect();super.destroy()};static defaults(){const data=OcResizeobserverBase.defaults();return data}}(function(OcResizeobserverNative){})(OcResizeobserverNative||(OcResizeobserverNative={}));oc.OcResizeobserverNative=OcResizeobserverNative;"use strict";class OcResizeobserverPolyfill extends OcResizeobserverBase{defaults(){return OcResizeobserverPolyfill.defaults()};__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={cssMain:OLEFA.css.getIfNotLoaded('default/libResizeObserver.css','--loaded--default-libResizeObserver')};this.__internals.elements=[]};__initialize(properties){this.__initEvents();this.__initProperties(properties)};__initEvents(){OLEFA.events.listen('resize',this.__onResize.bind(this),this.refID)};__onResize(){for(var i in this.__internals.elements){const element=this.__internals.elements[i];var dimensionChanged=false;if(element.target.clientWidth!=element.dimensions.width){element.dimensions.width=element.target.clientWidth,dimensionChanged=true};if(element.target.clientHeight!=element.dimensions.height){element.dimensions.height=element.target.clientHeight,dimensionChanged=true};if(dimensionChanged){this.__trigger__resize({element:element.target})}}};__initEvents__element(element){jQuery(element).on('transitionend.'+this.refID,this.__onElement__transitionEnd.bind(this))};__onElement__transitionEnd(event){const property=event.originalEvent.propertyName;if(property=='width'||property=='height'){this.__onResize()}};add(element){const elementData={target:element,dimensions:{width:element.clientWidth,height:element.clientHeight}};this.__internals.elements.push(elementData);jQuery(element).addClass('oc-resize-observer-polyfill');
19this.__initEvents__element(element)};remove(element){for(let i=0;i<this.__internals.elements.length;++i){if(this.__internals.elements[i].target.isSameNode(element)){jQuery(element).off('transitionend.'+this.refID);OcArray.remove(this.__internals.elements,i);return}}};destroy(){OLEFA.events.cancelAllFromScope(this.refID);super.destroy()};static defaults(){const data=OcResizeobserverBase.defaults();return data}};oc.OcResizeobserverPolyfill=OcResizeobserverPolyfill;"use strict";class OcFetch extends OcComponent{constructor(properties){super(properties)}defaults(){return OcFetch.defaults()}__interfaceDefinitions(){const definitions=super.__interfaceDefinitions();return definitions}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.promises={langkitFetch:new Promise(async(resolve,reject)=>{await OLEFA.readyPromise();await OLEFA.i18n.load('fetch.json');resolve()})}}__initialize(properties){this.__initProperties(properties)};__getResponseHeaders(request){const headers=request.getAllResponseHeaders();const arr=headers.trim().split(/[\r\n]+/u);const headerMap={};arr.forEach(function(line){const parts=line.split(': ');const header=parts.shift();const value=parts.join(': ');if(header&&value){headerMap[header]=value}});return headerMap}__putInCache(parameters){const defaultParameters={cacheName:'OLEFA',request:null,response:null};const options={...defaultParameters,...parameters};if(!(options.request instanceof Request)||!(options.response instanceof Response)){OLEFA.log.warn('OcFetch.__putInCache(): Missing request or response',parameters);return}const cacheName=options.cacheName;if('caches'in window){caches.open(cacheName).then((cache)=>{cache.put(options.request,options.response)})}}__getFromCache(parameters){return new Promise(function(resolve,reject){const defaultParameters={cacheName:'OLEFA',request:null};const options={...defaultParameters,...parameters};if(!(options.request instanceof Request)){OLEFA.log.warn('OcFetch.__getFromCache(): Missing request',parameters);return};const cacheName=options.cacheName;if(cacheName){if('caches'in window){caches.open(cacheName).then(function(cache){return cache.match(options.request)}).then(function(response){if(!response){reject(0);return}resolve(response)}).catch(function(error){reject(error)})}else{reject(0)}}else{reject(0)}})};__httpCodeToErrorCode(httpcode){const defaultData=this.defaults();let errorCode=defaultData.errorCodes.REQUEST_FAILED;const fetchErrors={401:{errorCode:defaultData.errorCodes.UNAUTHORIZED},404:{errorCode:defaultData.errorCodes.NOT_FOUND},503:{errorCode:defaultData.errorCodes.SERVICE_UNAVAILABLE}};if(fetchErrors[httpcode]){errorCode=fetchErrors[httpcode].errorCode};return errorCode}__triggerAppropriateEvents(request,response){switch(response.status){case OcFetch.httpCodes.UNAUTHORIZED:this.__trigger__responseUnauthorized({request:request,response:response});break;case OcFetch.httpCodes.FORBIDDEN:this.__trigger__responseForbidden({request:request,response:response});default:break}}async __bodyBasedRequest(method,parameters){const defaultParameters={host:OLEFA.environment.siteURL(),path:'',headers:{},credentials:'same-origin',autoHeaders:true,body:null};const options={...defaultParameters,...parameters};let autoHeaders={};if(options.autoHeaders){autoHeaders=OLEFA.environment.getHeadersForRequest(options.host)}options.headers={...autoHeaders,...options.headers};let corsMode='same-origin';if(options.host!=window.location.origin){corsMode='cors'};if(OcDatatype.is('object',options.body)){options.body=OcDatatype.toFormData(options.body)};const path=options.host+options.path;const requestParameters={method:method,headers:options.headers,credentials:options.credentials,mode:corsMode,body:options.body};const request=new Request(path,requestParameters);const[response,error]=await Oc.flattenPromise(fetch(request));if(error||response===null){OLEFA.log.error('OcFetch.get(): Fetch failed',error);throw{headers:{},data:null,httpCode:null,errorCode:this.__httpCodeToErrorCode(error)}};this.__triggerAppropriateEvents(request,response);if(!response.ok){const defaultErrorCode=String(this.__httpCodeToErrorCode(response.status).toString());const errorCode=OcUtilities.define(response.headers.get('OLEFA-Error'),defaultErrorCode);
19if(defaultErrorCode==errorCode){OLEFA.serveErrorSnack(errorCode)}throw({headers:Object.fromEntries(response.headers.entries()),data:response.clone(),httpCode:response.status,errorCode:Number(errorCode)})};return{headers:Object.fromEntries(response.headers.entries()),data:response.clone(),httpCode:response.status,errorCode:null}};__buildGetRequestQueryString(parameters){let queryString='';const tempQuery=[];for(const[key,value]of Object.entries(parameters)){if(Array.isArray(value)){value.forEach((x)=>{if(x!==null){tempQuery.push(`${key}%5B%5D=${encodeURIComponent(x)}`)}})}else if(typeof value=='boolean'){tempQuery.push(`${key}=${value ? 1 : 0}`)}else{if(value!==null){tempQuery.push(`${key}=${encodeURIComponent(value)}`)}}};if(tempQuery.length){queryString='?'+tempQuery.join('&')};return queryString}async head(parameters){const defaultOptions={host:OLEFA.environment.siteURL(),path:'',headers:{},credentials:'same-origin',cache:'default',cacheName:'',autoHeaders:true,parameters:{}};const options={...defaultOptions,...parameters};let autoHeaders={};if(options.autoHeaders){autoHeaders=OLEFA.environment.getHeadersForRequest(options.host)}options.headers={...autoHeaders,...options.headers};let corsMode='same-origin';if(options.host!=window.location.origin){corsMode='cors'};let queryString='';if(OcDatatype.is('object',parameters.parameters)&&Object.keys(options.parameters)){queryString=this.__buildGetRequestQueryString(parameters.parameters)};const path=options.host+options.path+queryString;const requestParameters={method:'HEAD',headers:options.headers,credentials:options.credentials,mode:corsMode,cache:options.cache};const request=new Request(path,requestParameters);const[response,error]=await Oc.flattenPromise(fetch(request));if(error||response===null){let[cachedResponse,error2]=await Oc.flattenPromise(this.__getFromCache({cacheName:options.cacheName,request:request}));if(error2||cachedResponse===null){if(error2 instanceof Error){error2=this.defaults().errorCodes.REQUEST_FAILED};OLEFA.log.error('OcFetch.get(): Fetch failed',error);throw({headers:{},data:null,httpCode:null,errorCode:error})};OLEFA.snackbar.show({message:OLEFA.i18n.get('result-from-cache')},{tag:'OcFetch:result-from-cache'});return{headers:Object.fromEntries(cachedResponse.headers.entries()),data:null,httpCode:cachedResponse.status,errorCode:null}}this.__triggerAppropriateEvents(request,response);if(!response.ok){const errorCode=OcUtilities.define(response.headers.get('OLEFA-Error'),this.__httpCodeToErrorCode(response.status).toString());if([500,503].includes(response.status)){return Promise.reject(errorCode)};throw{headers:{},data:null,httpCode:null,errorCode:errorCode}}if(options.cacheName){this.__putInCache({cacheName:options.cacheName,request:request,response:response})};return{headers:Object.fromEntries(response.headers.entries()),data:null,httpCode:response.status,errorCode:null}}async __responseToJson(response){const[responseJSON,error2]=await Oc.flattenPromise(response.data.json());if(error2||responseJSON===null){throw{headers:{},data:null,httpCode:null,errorCode:error2}};return{headers:response.headers,data:responseJSON,httpCode:response.httpCode,errorCode:response.errorCode}}async get(parameters){const defaultOptions={host:OLEFA.environment.siteURL(),path:'',headers:{},credentials:'same-origin',cache:'default',cacheName:'',autoHeaders:true,parameters:{}};const options={...defaultOptions,...parameters};let autoHeaders={};if(options.autoHeaders){autoHeaders=OLEFA.environment.getHeadersForRequest(options.host)}options.headers={...autoHeaders,...options.headers};let corsMode='same-origin';if(options.host!=window.location.origin){corsMode='cors'};let queryString='';if(OcDatatype.is('object',parameters.parameters)&&Object.keys(options.parameters)){queryString=this.__buildGetRequestQueryString(parameters.parameters)};const path=options.host+options.path+queryString;const requestParameters={method:'GET',headers:options.headers,credentials:options.credentials,mode:corsMode,cache:options.cache};const request=new Request(path,requestParameters);const[response,error]=await Oc.flattenPromise(fetch(request));if(error||response===null){let[cachedResponse,error2]=await Oc.flattenPromise(this.__getFromCache({cacheName:options.cacheName,request:request}));
19if(error2||cachedResponse===null){OLEFA.log.error('OcFetch.get(): Fetch failed',error2);throw({headers:{},data:null,httpCode:null,errorCode:this.defaults().errorCodes.REQUEST_FAILED})};OLEFA.snackbar.show({message:OLEFA.i18n.get('result-from-cache')},{tag:'OcFetch:result-from-cache'});return{headers:Object.fromEntries(cachedResponse.headers.entries()),data:cachedResponse.clone(),httpCode:cachedResponse.status,errorCode:null}}this.__triggerAppropriateEvents(request,response);if(!response.ok){const defaultErrorCode=String(this.__httpCodeToErrorCode(response.status).toString());const errorCode=OcUtilities.define(response.headers.get('OLEFA-Error'),defaultErrorCode);if(defaultErrorCode==errorCode){OLEFA.serveErrorSnack(errorCode)}if([500,503].includes(response.status)){return Promise.reject(errorCode)};throw{headers:{},data:null,httpCode:null,errorCode:errorCode}}if(options.cacheName){this.__putInCache({cacheName:options.cacheName,request:request,response:response})};return{headers:Object.fromEntries(response.headers.entries()),data:response.clone(),httpCode:response.status,errorCode:null}};async getJson(parameters){const response=await this.get(parameters);return this.__responseToJson(response)}async getJsonViaPost(parameters){const response=await this.post(parameters);return this.__responseToJson(response)}post(parameters){return this.__bodyBasedRequest('POST',parameters)};async postJson(parameters){const response=await this.post(parameters);return this.__responseToJson(response)}put(parameters){return this.__bodyBasedRequest('PUT',parameters)};patch(parameters){return this.__bodyBasedRequest('PATCH',parameters)};del(parameters){return this.__bodyBasedRequest('DELETE',parameters)};__trigger__responseUnauthorized(eventData){const event=new OcEvent({eventName:'response-unauthorized',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__responseForbidden(eventData){const event=new OcEvent({eventName:'response-forbid
19den',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){super.destroy()}static defaults(){const data=OcComponent.defaults();data.errorCodes={AJAX_STATUS_APILEVEL_NOT_SUPPORTED:1,AJAX_STATUS_SESSION_INVALID:2,UNSUPPORTED_APILEVEL:1924,SESSION_INVALID:92856,REQUEST_FAILED:20666,NOT_FOUND:15751,UNAUTHORIZED:40585,SERVICE_UNAVAILABLE:2947};return data}static reportFetchError(error){OLEFA.log.deprecated('OcFetch.reportErrorFetch: Use OLEFA.serveErrorSnack instead!');return OLEFA.serveErrorSnack(error)}}OcFetch.httpCodes={UNAUTHORIZED:401,FORBIDDEN:403};Oc.OcFetch=OcFetch;"use strict";class OcApiOlefa{static defaults(){return{path:'/ajax/olefa',errors:{UPLOAD_FAIL:80413,UPLOAD_REQUEST_FAIL:50957}}};static getLoginImageURL(host){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:host,mode:'get-login-image-url',APILevel:1}))};static async login(data,host){if(typeof OcCapacitorDevice!='undefined'){const deviceInfo=await OcCapacitorDevice.getInfo();const deviceId=await OcCapacitorDevice.getId();data.device=[deviceInfo.manufacturer,deviceInfo.model].join(' ');data.os=[deviceInfo.platform,deviceInfo.osVersion].join(' ');data.uuid=deviceId.identifier}return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:host,mode:'login',APILevel:1,data:data}))};static async logout(host){let data={device:'',os:'',uuid:''};if(typeof OcCapacitorDevice!='undefined'){const deviceInfo=await OcCapacitorDevice.getInfo();const deviceId=await OcCapacitorDevice.getId();data.device=[deviceInfo.manufacturer,deviceInfo.model].join(' ');data.os=[deviceInfo.platform,deviceInfo.osVersion].join(' ');data.uuid=deviceId.identifier}return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:host,mode:'logout',APILevel:1,data:data}))};static checkSession(){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:OLEFA.environment.siteURL(),mode:'check-session',APILevel:1}))};static getOLEFAProperties(){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:OLEFA.environment.siteURL(),mode:'get-olefa-properties',APILevel:1}))};static getNamedAccesslevels(){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:OLEFA.environment.siteURL(),mode:'list-named-accesslevel',APILevel:1}))};static getACLOptions(){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:OLEFA.environment.siteURL(),mode:'list-options-for-projectCreation',APILevel:1}))};static getNotifications(count,read_status){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:OLEFA.environment.siteURL(),mode:'get-notifications',APILevel:1,data:{count:count,read_status:read_status}}))};static getRequestURLForFile(file){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:OLEFA.environment.siteURL(),mode:'get-request-url-for-file',APILevel:1,data:{file:file}}))};static getRequestURLForFiles(files){if(!Array.isArray(files)){files=[files]};return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:OLEFA.environment.siteURL(),mode:'get-request-url-for-files',APILevel:1,data:{files:files}}))};static async getLoginMethods(host){const normalizedHost=host||OLEFA.environment.siteURL();const[json,error]=await Oc.flattenPromise(OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{host:normalizedHost,mode:'get-login-methods',APILevel:1})));if(error||json===null){throw new OcError({code:error,debugMessage:'Unable to get login methods'})};return json}static uploadFile(file,target,options={}){return new Promise((resolve,reject)=>{const normalizedOptions={...{body:{},headers:{}},...options};const xhr=new XMLHttpRequest();const data=new FormData();data.append('mode','autodetect-upload');data.append('target',target);data.append('responseType','json');Object.entries(normalizedOptions.body).forEach(entry=>{const[key,value]=entry;data.append(key,value)});if(file instanceof Oc.File){data.append('file',file,file.name)}else{data.append('file',file)};xhr.addEventListener('load',(ev)=>{const errorProperties={code:OcApiOlefa.defaults().errors.UPLOAD_FAIL,level:OcLog.defaults().loglevels.ERROR};const response=OcDatatype.fromJson(xhr.response);const headers=OLEFA.getResponseHeadersFromXHR(xhr);
19if(!response){const error=new OcError({...errorProperties,debugMessage:'Upload failed. Invalid response from server',data:{response:null,headers:null}});return reject(error)};switch(Number(response.result)){case 0:{resolve({response:response,headers:headers});break}case 1:{const error=new OcError({...errorProperties,debugMessage:'Upload failed due to ACL constraints on target folder',data:{response:response,headers:headers}});reject(error);break}case 2:{const error=new OcError({...errorProperties,debugMessage:'Upload failed because no valid name could be generated for file in target directory',data:{response:response,headers:headers}});reject(error);break}case 3:{const error=new OcError({...errorProperties,debugMessage:'Upload failed due to file type constraints on target folder',data:{response:response,headers:headers}});reject(error);break}case 4:{const error=new OcError({...errorProperties,debugMessage:'Upload failed because file could not be stored on file system',data:{response:response,headers:headers}});reject(error);break}default:{const error=new OcError({...errorProperties,debugMessage:'Upload failed due to unknown error',data:{response:response,headers:headers}});reject(error);break}}});if(typeof normalizedOptions.onProgress=='function'){xhr.upload.addEventListener('progress',normalizedOptions.onProgress)};xhr.upload.addEventListener('error',(ev)=>{const error=new OcError({code:OcApiOlefa.defaults().errors.UPLOAD_REQUEST_FAIL,data:ev,debugMessage:'Upload failed',level:OcLog.defaults().loglevels.ERROR});reject(error)});xhr.open('POST',`${OLEFA.environment.siteURL()}/upload`);Object.entries(normalizedOptions.headers).forEach(entry=>{const[key,value]=entry;xhr.setRequestHeader(key,value)});xhr.setRequestHeader('Accept','application/json');xhr.send(data)})}static async getAppStoreVersion(parameters,requestParameters){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiOlefa.defaults().path,{...requestParameters,mode:'get_app_store_version',returnHeaders:true,APILevel:1,data:{os:parameters.os,app:parameters.app,version:parameters.version}}))}}OcApiOlefa.errorCodes={LOGIN_FAIL:94578,LOGIN_BAD_USER_PASSWD:51959,LOGIN_NOT_ACTIVE:55024,LOGIN_EXPIRED:32988,LOGIN_DENIED:92553,LOGIN_INVALID_TOKEN:48024,APP_UPDATE_AVAILABLE:76048};Oc.OcApiOlefa=OcApiOlefa;"use strict";class OcSet extends OcComponent{constructor(properties){super(properties)}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,size:{get:()=>{return this.__internals.set.size}}};return extendedDefinitions;}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.set=new Set()}add(value){if(this.__internals.set.has(value)){return this};this.__internals.set.add(value);this.__trigger__valueAdded({value:value});this.__trigger__sizeChanged();return this};clear(){const values=this.__internals.set.values();for(const value of values){this.delete(value)};return this};delete(value){if(!this.__internals.set.has(value)){return this};this.__internals.set.delete(value);this.__trigger__valueDeleted({value:value});this.__trigger__sizeChanged();return this}has(value){return this.__internals.set.has(value)}values(){return this.__internals.set.values()}keys(){return this.__internals.set.keys()}entries(){return this.__internals.set.entries()}forEach(callbackFn,thisArg){return this.__internals.set.forEach(callbackFn,thisArg)}toArray(){return Array.from(this.__internals.set)}__trigger__valueAdded(eventData){const event=new OcEvent({eventName:OcSet.events.VALUE_ADDED,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__valueDeleted(eventData){const event=new OcEvent({eventName:OcSet.events.VALUE_DELETED,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__sizeChanged(){const event=new OcEvent({eventName:OcSet.events.SIZE_CHANGED});this.__internals.events.triggerEvent(event)}}OcSet.events={...OcComponent.events,SIZE_CHANGED:'size-changed',VALUE_ADDED:'value-added',VALUE_DELETED:'value-deleted'};oc.OcSet=OcSet;"use strict";class OcInteractivityFilebucket extends OcComponent{constructor(element,properties){const normalizedProperties={...{},...properties,...{element:element}};super(normalizedProperties)}defaults(){return OcInteractivityFilebucket.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.root=null;this.__internals.dragState=false;this.__internals.dropzones={}}__initialize(properties){if(properties&&properties.element){this.__internals.root=jQuery(properties.element)};this.__initElements();this.__initEvents();this.__initProperties(properties)}__initElements(){this.defer(()=>{if(this.__internals.root){this.__internals.root.addClass('oc-interactivity-upload')}})}__initEvents(){super.__initEvents();if(this.__internals.root){jQuery(document).on(`mouseleave.${this.refID}`,this.__onDocument__mouseleave.bind(this));this.__internals.root.on(`dragenter.${this.refID}`,this.__onRoot__dragenter.bind(this)).on(`dragleave.${this.refID}`,this.__onRoot__dragleave.bind(this)).on(`dragover.${this.refID}
19`,this.__onRoot__dragover.bind(this)).on(`dragend.${this.refID}`,this.__onRoot__dragend.bind(this)).on(`drop.${this.refID}`,this.__onRoot__drop.bind(this)).on(`paste.${this.refID}`,this.__onRoot__paste.bind(this))}}__onDocument__mouseleave(){this.__dragState(false)}__onRoot__dragenter(e){this.__dragState(true);const dataTransfer=e.originalEvent.dataTransfer;if(dataTransfer){dataTransfer.dropEffect='copy'};e.originalEvent.preventDefault()}__onRoot__dragleave(e){}__onRoot__dragover(e){this.__dragState(true);if(e.originalEvent.dataTransfer){e.originalEvent.dataTransfer.dropEffect='copy'};e.originalEvent.preventDefault();const dropzone=this.__getFirstDropzoneFromEventTarget(e.originalEvent);if(dropzone){dropzone.hovering=true;e.originalEvent.stopPropagation()}Object.values(this.__internals.dropzones).forEach(thisDropzone=>{if(!dropzone||dropzone.refID!=thisDropzone.refID){thisDropzone.hovering=false}})}__onRoot__dragend(e){this.__dragState(false)}__onRoot__drop(e){e.originalEvent.preventDefault();this.__dragState(false);const dropzone=this.__getFirstDropzoneFromEventTarget(e.originalEvent);if(dropzone){const dataTransfer=e.originalEvent.dataTransfer;if(dataTransfer&&dataTransfer.files.length>0){this.__handleReceivedFilesForDropzone(dropzone,Object.values(dataTransfer.files))}}}__onRoot__paste(e){const dropzone=this.__getFirstDropzoneFromEventTarget(e.originalEvent);if(dropzone){const clipboardData=e.originalEvent.clipboardData;if(clipboardData&&clipboardData.items.length>0){const files=Object.values(clipboardData.items).filter(item=>{return item.kind=='file'});if(files.length>0){e.originalEvent.preventDefault();const validFiles=[];files.forEach((item)=>{const file=item.getAsFile();if(file){validFiles.push(file)}});this.__handleReceivedFilesForDropzone(dropzone,validFiles)}}}}__initEvents__dropzone(dropzone){dropzone.events.listen('destroy',this.__onDropzone__destroy.bind(this,dropzone),this.refID)};__onDropzone__destroy(dropzone){delete this.__internals.dropzones[dropzone.refID]}__initEvents__olefaDropzonePropertyChange(dropzone){dropzone.events.listen('property-change',this.__onDropzone__propertyChange.bind(this,dropzone),this.refID)}__onDropzone__propertyChange(dropzone,eventData){switch(eventData.property){case'targetResolution':case'processImages':this.__applyUploadPropertyChangesToBodyForOlefaRequest(dropzone);break;default:break}}__applyUploadPropertyChangesToBodyForOlefaRequest(dropzone){if(!dropzone){return this};const bodyProperties={maxwidth:undefined,maxheight:undefined};if(dropzone.processImages){const splitResolution=dropzone.targetResolution.split('x');if(splitResolution){const[width,height]=splitResolution.map(dimension=>{return Number(dimension)});if(width){bodyProperties.maxwidth=width}if(height){bodyProperties.maxheight=height}}};dropzone.setBodyProperties(bodyProperties);return this};__handleReceivedFilesForDropzone(dropzone,files){if(files.length>1&&!dropzone.multiUpload){OLEFA.serveErrorSnack(this.defaults().errors.SINGLE_FILE_ONLY);return};for(const file of files){dropzone.addFile(file).catch(OLEFA.basics.doNothing)}};__dragState(value){if(this.__internals.dragState==value){return};this.__internals.dragState=value;this.__deferOnce('__dragState',()=>{Object.values(this.__internals.dropzones).filter(dropzone=>!dropzone.disabled).forEach(dropzone=>{dropzone.receptible=this.__internals.dragState})})}__getFirstDropzoneFromEventTarget(ev){let found=null;if(typeof ev.composedPath!='function'){return found};const path=ev.composedPath();const dropzones=Object.values(this.__internals.dropzones);let element=path.shift();while(element&&!found){const dropzone=dropzones.find(dropzone=>!dropzone.disabled&&dropzone.node?.is(element));if(dropzone){found=dropzone}else{element=path.shift()}}return found}getDropzone(refId){const dropzone=this.__internals.dropzones[refId];if(!dropzone){return undefined}return dropzone}registerDropzone(element,uploadProperties){const jElement=jQuery(element);if(jElement.length==0){OLEFA.log.error('Element does not exist',arguments);return}else if(jElement.length>1){OLEFA.log.error('Element ambiguous',arguments);return};const dropzone=new OcInteractivityFilebucketDropzone(jElement,uploadProperties);this.__initEvents__dropzone(dropzone);this.__internals.dropzones[dropzone.refID]=dropzone;return dropzone}registerOlefaDropzone(element,uploadProperties){const normalizedUploadProperties={...uploadProperties,...{body:{...{mode:'autodetect-upload',target:'resources/_tmp/'+Core.status.userid,responseType:'json',},...uploadProperties?.body}}};const dropzone=this.registerDropzone(element,normalizedUploadProperties);if(!dropzone){return};this.__initEvents__olefaDropzonePropertyChange(dropzone);this.__applyUploadPropertyChangesToBodyForOlefaRequest(dropzone);return dropzone}destroy(){if(this.__internals.root){this.__internals.root.removeClass('oc-interactivity-upload').off(`.${this.refID}`)}jQuery(document).off(`.${this.refID}`);super.destroy()}static defaults(){const defaultData=OcComponent.defaults();defaultData.errors={SINGLE_FILE_ONLY:73021,UPLOAD_FAIL_TYPE_CONSTRAINT_SINGLE:525,UPLOAD_FAIL_SIZE_CONSTRAINT_SINGLE:35920,UPLOAD_FAIL_TYPE_CONSTRAINT_MULTI:55041,UPLOAD_FAIL_SIZE_CONSTRAINT_MULTI:35928};return defaultData}static olefaUploadHandlerErrorToErrorMessage(error){let message='';error=String(error);switch(error){case'1':message=OLEFA.i18n.get('noUploadRights');break;case'2':message=OLEFA.i18n.get('noFilename');break;case'3':message=OLEFA.i18n.get('notTheRightFormat');break;case'4':message=OLEFA.i18n.get('noUniqueFile');break;case'5':message=OLEFA.i18n.get('filetoolarge');break;case'6':message=OLEFA.i18n.get('error');break;case'7':message=OLEFA.i18n.get('sizeLimitReached');break};return message}}oc.OcInteractivityFilebucket=OcInteractivityFilebucket;"use strict";class OcInteractivityFilebucketDropzone extends OcComponent{constructor(element,properties){const normalizedProperties={...{},...properties,...{element:element}};super(normalizedProperties)}defaults(){return OcInteractivityFilebucketDropzone.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,dragText:{get:()=>{return this.__getDragText()},set:(x)=>{return this.__setDragText(x)}},multiUpload:{get:()=>{return this.__getMultiUpload()},set:(x)=>{return this.__setMultiUpload(x)}},accept:{get:()=>{return this.__getAccept()}},maxSize:{get:()=>{return this.__getMaxSize()},set:(x)=>
19{return this.__setMaxSize(x)}},processImages:{get:()=>{return this.__getProcessImages()},set:(x)=>{return this.__setProcessImages(x)}},targetResolution:{get:()=>{return this.__getTargetResolution()},set:(x)=>{return this.__setTargetResolution(x)}},excludeServices:{get:this.__getExcludeServices.bind(this)},olefaBrowserRootDir:{get:this.__getOlefaBrowserRootDir,set:this.__setOlefaBrowserRootDir},olefaCustomNodes:{get:this.__getOlefaCustomNodes},remoteUploadHandler:{get:()=>{return this.__getRemoteUploadHandler()},set:(x)=>{return this.__setRemoteUploadHandler(x)}},headers:{get:()=>{return this.__getHeaders()},},body:{get:()=>{return this.__getBody()},},fileKey:{get:()=>{return this.__getFileKey()},set:(x)=>{return this.__setFileKey(x)}},required:{get:this.__getRequired.bind(this),set:this.__setRequired.bind(this)},disabled:{get:this.__getDisabled.bind(this),set:this.__setDisabled.bind(this)},receptible:{get:()=>{return this.__getReceptible()},set:(x)=>{return this.__setReceptible(x)}},hovering:{get:()=>{return this.__getHovering()},set:(x)=>{return this.__setHovering(x)}},node:{get:()=>{return this.__getNode()}}};return extendedDefinitions}__getDragText(){return this.properties.dragText}__setDragText(value){this.properties.dragText=String(value);this.__internals.states.set('upload-has-text',Boolean(this.properties.dragText.length>0));this.__deferOnce('__setDragText',()=>{this.__internals.dom.receptibleOverlayText.text(this.properties.dragText)})}__getMultiUpload(){return this.properties.multiUpload}__setMultiUpload(value){this.properties.multiUpload=Boolean(value)}__getAccept(){return this.properties.accept}__setAccept(value){this.properties.accept=value;this.__updateAcceptRegex()}__getMaxSize(){return this.properties.maxSize}__setMaxSize(value){const normalizedValue=Number(value);if(!Number.isFinite(normalizedValue)){return};this.properties.maxSize=Number(value)}__getProcessImages(){return this.properties.processImages}__setProcessImages(value){this.properties.processImages=Boolean(value)}__getTargetResolution(){return this.properties.targetResolution}__setTargetResolution(value){if(!(/\d+x\d/).test(value)){return}this.properties.targetResolution=value}__getExcludeServices(){return this.properties.excludeServices};__getOlefaBrowserRootDir(){return this.properties.olefaBrowserRootDir}__setOlefaBrowserRootDir(value){this.properties.olefaBrowserRootDir=value}__getOlefaCustomNodes(){return this.properties.olefaCustomNodes};__getRemoteUploadHandler(){return this.properties.remoteUploadHandler}__setRemoteUploadHandler(value){this.properties.remoteUploadHandler=String(value)}__getHeaders(){return this.properties.headers}__setHeaders(value){const normalizedProperties={...{},...value};this.properties.headers=normalizedProperties}__getBody(){return this.properties.body}__setBody(value){const normalizedProperties={...{},...value};this.properties.body=normalizedProperties}__getFileKey(){return this.properties.fileKey}__setFileKey(value){this.properties.fileKey=value}__getRequired(){return this.properties.required}__setRequired(value){this.properties.required=value;this.__internals.states.set('required',this.properties.required)}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value}__getReceptible(){return this.__internals.states.hasState('upload-receptible')}__setReceptible(value){this.__internals.states.set('upload-receptible',value)}__getHovering(){return this.__internals.states.hasState('upload-hovering')}__setHovering(value){this.__internals.states.set('upload-hovering',value)}__getNode(){return this.__internals.root}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.root=null;this.__internals.states=new OcStates();this.__internals.promises={cssMain:OLEFA.css.getIfNotLoaded('interactivity/filebucket/dropzone.css','--oc-interactivity-filebucket-dropzone')};this.__internals.acceptRegex=new RegExp(/.*/,'g');this.__internals.processingQueue=new OcSet();this.__internals.uploadQueue=[];this.__internals.olefaCustomNodes={};this.__internals.acceptList=new Set();this.__internals.excludedServices=new Set();this.__internals.forcefullyExcludedServices=new Set();this.propertyHandlers.dragText=this.__setDragText;this.propertyHandlers.multiUpload=this.__setMultiUpload;this.propertyHandlers.accept=this.addAccept;
19this.propertyHandlers.maxSize=this.__setMaxSize;this.propertyHandlers.processImages=this.__setProcessImages;this.propertyHandlers.targetResolution=this.__setTargetResolution;this.propertyHandlers.excludeServices=this.addExcludeService;this.propertyHandlers.olefaBrowserRootDir=this.__setOlefaBrowserRootDir;this.propertyHandlers.olefaCustomNodes=this.addOlefaCustomNode;this.propertyHandlers.remoteUploadHandler=this.__setRemoteUploadHandler;this.propertyHandlers.headers=this.setHeaderProperties;this.propertyHandlers.body=this.setBodyProperties;this.propertyHandlers.fileKey=this.__setFileKey;this.propertyHandlers.required=this.__setRequired;this.propertyHandlers.disabled=this.__setDisabled}__initialize(properties){if(properties&&properties.element){this.__internals.root=jQuery(properties.element)};this.__initElements();this.__initStates();this.__initEvents();this.__initProperties(properties);const availableServices=OcUiWebDialogStandardUploadserviceselect.defaults().availableServices;availableServices.forEach(service=>{const isEnableableService=['local-olefa','dropbox','onedrive','googledrive','pixabay'].includes(service);const definitionExists=OcObject.hasProperty(Core.status.uploadServices,service);const isEnabled=definitionExists&&Core.status.uploadServices[service].enabled;if(isEnableableService&&(!definitionExists||!isEnabled)){this.__internals.forcefullyExcludedServices.add(service);this.addExcludeService(service)}})}__initElements(){this.__internals.dom={receptibleOverlay:jQuery('<div class="oc-interactivity-filebucket-dropzone__receptible-overlay"></div>'),receptibleOverlayBackground:jQuery('<div></div>'),receptibleOverlayText:jQuery('<span></span>')};this.defer(()=>{if(this.__internals.root){this.__internals.root.addClass('oc-interactivity-filebucket-dropzone');this.__internals.root.append(this.__internals.dom.receptibleOverlay)};this.__internals.dom.receptibleOverlay.addClass('oc-interactivity-filebucket-dropzone__receptible-overlay');this.__internals.dom.receptibleOverlayBackground.addClass('oc-interactivity-filebucket-dropzone__receptible-overlay-background').appendTo(this.__internals.dom.receptibleOverlay);this.__internals.dom.receptibleOverlayText.addClass('oc-interactivity-filebucket-dropzone__receptible-overlay-text').appendTo(this.__internals.dom.receptibleOverlay)})}__initStates(){this.__internals.states.define({state:'upload-receptible',onLoss:this.__onStateLoss__uploadReceptible.bind(this)}).define({state:'upload-receptible-error'}).define({state:'upload-hovering'}).define({state:'upload-has-text'}).define({state:'required'}).define({state:'uploading',onGain:this.__onStateGain__uploading.bind(this),onLoss:this.__onStateLoss__uploading.bind(this)})}__onStateLoss__uploadReceptible(){const statesToRemove=['upload-hovering'];statesToRemove.forEach(state=>{this.__internals.states.remove(state)})}__onStateGain__uploading(){this.__trigger__uploadBegin()}__onStateLoss__uploading(){this.__trigger__uploadDone()}__initEvents(){super.__initEvents();this.__internals.states.events.listen('stateChange',this.__onStates__stateChange.bind(this));this.__internals.processingQueue.events.listen('value-added',this.__onProcessingQueue__valueAdded.bind(this),this.refID).listen('value-deleted',this.__onProcessingQueue__valueDeleted.bind(this),this.refID)};__onProcessingQueue__valueAdded(_eventData){this.__internals.states.add('uploading')}__onProcessingQueue__valueDeleted(_eventData){if(this.__internals.processingQueue.size==0){this.__internals.states.remove('uploading')}}__onStates__stateChange(eventData){const node=this.__internals.root;if(!node){return};this.__deferOnce('__onStates__stateChange__'+eventData.state,()=>{if(this.__internals.states.hasState(eventData.state)){node.attr('data-state-'+eventData.state,'')}else{node.removeAttr('data-state-'+eventData.state)}})};__initEvents__serviceSelectDialog(dialog){dialog.events.listen('property-change',this.__onServiceSelectDialog__propertyChange.bind(this,dialog),this.refID).listen('local-file-select',this.__onServiceSelectDialog__localFileSelect.bind(this,dialog),this.refID).listen('olefa-select',this.__onServiceSelectDialog__olefaSelect.bind(this,dialog),this.refID).listen('soundrecorder-select',this.__onServiceSelectDialog__soundrecorderSelect.bind(this,dialog),this.refID).listen('dropbox-select',this.__onServiceSelectDialog__dropboxSelect.bind(this,dialog),this.refID).listen('onedrive-select',this.__onServiceSelectDialog__onedriveSelect.bind(this,dialog),this.refID).listen('googledrive-select',this.__onServiceSelectDialog__googledriveSelect.bind(this,dialog),this.refID).listen('pixabay-select',this.__onServiceSelectDialog__pixabaySelect.bind(this,dialog),this.refID)}__onServiceSelectDialog__propertyChange(dialog,eventData){switch(eventData.property){case'processImages':this.__setProcessImages(eventData.value);break;default:break}}__onServiceSelectDialog__localFileSelect(dialog,eventData){dialog.close();for(const file of eventData.files){this.addFile(file,{source:'local'}).catch(OLEFA.basics.doNothing)}}async __onServiceSelectDialog__olefaSelect(dialog){const dialogParent=dialog.base.parent();dialog.close();
19await OLEFA.components.require(['OcUiWebDialogAlertFsbrowserOlefa']);const olefaDialog=new OcUiWebDialogAlertFsbrowserOlefa({homeNode:this.properties.olefaBrowserRootDir,customNodes:this.properties.olefaCustomNodes,multiSelect:this.properties.multiUpload,mimeTypeRegex:this.__internals.acceptRegex});this.__initEvents__dialogOlefa(olefaDialog);olefaDialog.events.listen('close',(ev)=>{if(ev.data.reason!='select'){dialogParent.append(dialog.base);dialog.open()}});dialogParent.append(olefaDialog.base);olefaDialog.open()}async __onServiceSelectDialog__soundrecorderSelect(dialog){const dialogParent=dialog.base.parent();dialog.close();await OLEFA.components.require(['OcUiWebDialogStandardAudiorecorder']);const audioRecorderDialog=new OcUiWebDialogStandardAudiorecorder();this.__initEvents__dialogAudioRecorder(audioRecorderDialog);audioRecorderDialog.events.listen('close',(ev)=>{if(ev.data.reason!='export'){dialogParent.append(dialog.base);dialog.open()}});dialogParent.append(audioRecorderDialog.base);audioRecorderDialog.open()}async __onServiceSelectDialog__dropboxSelect(dialog){const dialogParent=dialog.base.parent();dialog.close();await OLEFA.components.require(['OcUiWebDialogAlertFsbrowserAuthenticatedDropox']);const dropboxDialog=new OcUiWebDialogAlertFsbrowserAuthenticatedDropox({multiSelect:this.properties.multiUpload,mimeTypeRegex:this.__internals.acceptRegex});this.__initEvents__dialogDropbox(dropboxDialog);dropboxDialog.events.listen('close',(ev)=>{if(ev.data.reason!='select'){dialogParent.append(dialog.base);dialog.open()}});dialogParent.append(dropboxDialog.base);dropboxDialog.open()}async __onServiceSelectDialog__onedriveSelect(dialog){const dialogParent=dialog.base.parent();dialog.close();await OLEFA.components.require(['OcUiWebDialogAlertFsbrowserAuthenticatedOnedrive']);const onedriveDialog=new OcUiWebDialogAlertFsbrowserAuthenticatedOnedrive({multiSelect:this.properties.multiUpload,mimeTypeRegex:this.__internals.acceptRegex});this.__initEvents__dialogOnedrive(onedriveDialog);onedriveDialog.events.listen('close',(ev)=>{if(ev.data.reason!='select'){dialogParent.append(dialog.base);dialog.open()}});dialogParent.append(onedriveDialog.base);onedriveDialog.open()}async __onServiceSelectDialog__googledriveSelect(dialog){const dialogParent=dialog.base.parent();dialog.close();await OLEFA.components.require(['OcUiWebDialogAlertFsbrowserAuthenticatedGoogledrive']);const googleDriveDialog=new OcUiWebDialogAlertFsbrowserAuthenticatedGoogledrive({multiSelect:this.properties.multiUpload,mimeTypeRegex:this.__internals.acceptRegex});this.__initEvents__dialogGoogleDrive(googleDriveDialog);googleDriveDialog.events.listen('close',(ev)=>{if(ev.data.reason!='select'){dialogParent.append(dialog.base);dialog.open()}});dialogParent.append(googleDriveDialog.base);googleDriveDialog.open()}async __onServiceSelectDialog__pixabaySelect(dialog){const dialogParent=dialog.base.parent();dialog.close();await OLEFA.components.require(['OcUiWebDialogAlertFsbrowserPixabay']);const pixabayDialog=new OcUiWebDialogAlertFsbrowserPixabay({multiSelect:this.properties.multiUpload,mimeTypeRegex:this.__internals.acceptRegex});this.__initEvents__dialogPixabay(pixabayDialog);pixabayDialog.events.listen('close',(ev)=>{if(ev.data.reason!='select'){dialogParent.append(dialog.base);dialog.open()}});dialogParent.append(pixabayDialog.base);pixabayDialog.open()}__initEvents__dialogOlefa(dialog){dialog.events.listen('choice',this.__onDialogOlefa__choice.bind(this,dialog),this.refID).listen('close',this.__onDialogOlefa__close.bind(this,dialog),this.refID)}__onDialogOlefa__choice(dialog,ev){switch(ev.data.value){case'cancel':dialog.close();break;case'select':const files=dialog.selectedFiles;const processID=OLEFA.basics.generateID();this.__internals.processingQueue.add(processID);for(const file of files){this.addFile({file:file.id,requestUrl:file.preview},{source:'local-olefa'}).catch(OLEFA.basics.doNothing)};this.__internals.processingQueue.delete(processID);dialog.close('select');break;default:break}}__onDialogOlefa__close(dialog){dialog.destroy()}__initEvents__dialogAudioRecorder(dialog){dialog.events.listen('export',this.__onDialogAudioRecorder__export.bind(this,dialog),this.refID).listen('choice',this.__onDialogAudioRecorder__choice.bind(this,dialog),this.refID).listen('close',this.__onDialogAudioRecorder__close.bind(this,dialog),this.refID)}__onDialogAudioRecorder__export(dialog,eventData){this.adoptFromSoundrecorder(eventData.file);dialog.close('export')}__onDialogAudioRecorder__choice(dialog,ev){switch(ev.data.value){case'cancel':dialog.close();break;default:break}}__onDialogAudioRecorder__close(dialog){dialog.destroy()}__initEvents__dialogDropbox(dialog){dialog.events.listen('choice',this.__onDialogDropbox__choice.bind(this,dialog),this.refID).listen('close',this.__onDialogDropbox__close.bind(this,dialog),this.refID)}__onDialogDropbox__choice(dialog,ev){switch(ev.data.value){case'cancel':dialog.close();break;case'select':const files=dialog.selectedFiles;for(const file of files){this.addFile({file:file.file,requestUrl:file.file,},{name:file.name,source:'dropbox'}).catch(OLEFA.basics.doNothing)};dialog.close('select');break;default:break}}__onDialogDropbox__close(dialog){dialog.destroy()}__initEvents__dialogOnedrive(dialog){dialog.events.listen('choice',this.__onDialogO
19nedrive__choice.bind(this,dialog),this.refID).listen('close',this.__onDialogOnedrive__close.bind(this,dialog),this.refID)}__onDialogOnedrive__choice(dialog,ev){switch(ev.data.value){case'cancel':dialog.close();break;case'select':const files=dialog.selectedFiles;for(const file of files){this.addFile({file:file.file,requestUrl:file.file,},{name:file.name,source:'onedrive'}).catch(OLEFA.basics.doNothing)};dialog.close('select');break;default:break}}__onDialogOnedrive__close(dialog){dialog.destroy()}__initEvents__dialogGoogleDrive(dialog){dialog.events.listen('choice',this.__onDialogGoogleDrive__choice.bind(this,dialog),this.refID).listen('close',this.__onDialogGoogleDrive__close.bind(this,dialog),this.refID)}__onDialogGoogleDrive__choice(dialog,ev){switch(ev.data.value){case'cancel':dialog.close();break;case'select':const files=dialog.selectedFiles;for(const file of files){this.addFile({file:file.file,requestUrl:file.file,},{name:file.name,source:'googledrive'}).catch(OLEFA.basics.doNothing)};dialog.close('select');break;default:break}}__onDialogGoogleDrive__close(dialog){dialog.destroy()}__initEvents__dialogPixabay(dialog){dialog.events.listen('choice',this.__onDialogPixabay__choice.bind(this,dialog),this.refID).listen('close',this.__onDialogPixabay__close.bind(this,dialog),this.refID)}__onDialogPixabay__choice(dialog,ev){switch(ev.data.value){case'cancel':dialog.close();break;case'select':const files=dialog.selectedFiles;for(const file of files){this.addFile({file:file.file,requestUrl:file.file,},{name:file.name,source:'pixabay'}).catch(OLEFA.basics.doNothing)};dialog.close('select');break;default:break}}__onDialogPixabay__close(dialog){dialog.destroy()}__onFileAddError(error){OLEFA.log.info(error.debugMessage);const errors=this.defaults().errors;let errorString=OLEFA.errors.textFor(error.code);switch(error.code){case errors.UPLOAD_FAIL_TYPE_CONSTRAINT:errorString=OLEFA.templateEngine.render(errorString,{ACCEPT:(Array.isArray(this.accept))?this.accept.join(', '):this.accept});break;case errors.UPLOAD_FAIL_SIZE_CONSTRAINT:errorString=OLEFA.templateEngine.render(errorString,{MAXSIZE:OcDatatype.toFuzzyFileSize(this.maxSize)});break;default:break}OLEFA.snackbar.show({message:`${errorString} (${error.code})`},{tag:`error-${error.code}`})};__updateAcceptRegex(){let type='';const accept=this.properties.accept;if(typeof(accept)=='string'){type=accept.replace(/\*/gu,'.*')}else{const types=[];accept.forEach(rule=>{const adjustedRule=rule.replace(/\*/gu,'.*');types.push(adjustedRule)});type='('+types.join('|')+')'};this.__internals.acceptRegex=new RegExp(`^${type}$`)}async __resize(file){if(!(/^image\/.*/).test(file.type)){return file};if(!this.properties.processImages){return file};const[resizedFile,error]=await Oc.flattenPromise(OLEFA.imageProcessing.process(file,{resolution:this.properties.targetResolution}));if(resizedFile){return resizedFile}return file}async __processFileHandle(file){const eventEmitter=new OcEvents();const nativeFile=file.file;const checks=this.fileChecks(nativeFile);if(!checks.typeCheck){this.__internals.processingQueue.delete(file.refID);throw new OcError({debugMessage:'File does not match the accepted file types',code:this.defaults().errors.UPLOAD_FAIL_TYPE_CONSTRAINT,data:{file:file,accepts:this.properties.accept}})}else if(!checks.sizeCheck){this.__internals.processingQueue.delete(file.refID);throw new OcError({debugMessage:'File is too large',code:this.defaults().errors.UPLOAD_FAIL_SIZE_CONSTRAINT,data:{file:file,maxSize:this.properties.maxSize}})};this.__trigger__fileAdd({file:file,events:eventEmitter});const resizedFile=await this.__resize(nativeFile);eventEmitter.trigger('processed',{file:resizedFile});if(!this.properties.remoteUploadHandler){this.__internals.processingQueue.delete(file.refID);return};this.__internals.uploadQueue.push({file:resizedFile,name:file.filename,eventEmitter:eventEmitter,fileData:file});this.__startUploadQueue()}__onXhr__load(xhr,eventEmitter,ev){const response=OcDatatype.fromJson(xhr.response);const headers=OLEFA.getResponseHeadersFromXHR(xhr);eventEmitter.trigger('upload-complete',{response:response,headers:headers})}__onXhr__progress(xhr,eventEmitter,ev){eventEmitter.trigger('upload-progress',ev)}__onXhr__error(xhr,eventEmitter,ev){eventEmitter.trigger('upload-error',ev)}async __startUploadQueue(){if(this.__internals.uploading){return};if(this.__internals.uploadQueue.length==0){return};this.__internals.uploading=true;const data=this.__internals.uploadQueue.shift();if(!data){this.__internals.uploading=false;return}const[,error]=await Oc.flattenPromise(this.__uploadFile(data));this.__internals.uploading=false;this.__internals.processingQueue.delete(data.fileData.refID);this.__startUploadQueue()}__uploadFile(parameters){return new Promise((resolve)=>{const xhr=new XMLHttpRequest();const data=new FormData();
19Object.entries(this.properties.body).forEach(entry=>{const[key,value]=entry;data.append(key,value)});if(parameters.file instanceof Oc.File){data.append(this.properties.fileKey,parameters.file,parameters.file.name)}else{data.append(this.properties.fileKey,parameters.file)};if(parameters.name&&!data.has('filename')){data.append('filename',parameters.name)};xhr.addEventListener('loadend',()=>{resolve()});xhr.addEventListener('load',this.__onXhr__load.bind(this,xhr,parameters.eventEmitter));xhr.upload.addEventListener('progress',this.__onXhr__progress.bind(this,xhr,parameters.eventEmitter));xhr.upload.addEventListener('error',this.__onXhr__error.bind(this,xhr,parameters.eventEmitter));xhr.open('POST',this.properties.remoteUploadHandler);const headers={...OLEFA.environment.getHeadersForRequest(this.properties.remoteUploadHandler),...this.properties.headers};Object.entries(headers).forEach(entry=>{const[key,value]=entry;xhr.setRequestHeader(key,value)});xhr.setRequestHeader('Accept','application/json');xhr.send(data);parameters.eventEmitter.trigger('upload-start',undefined)})}async __processFileReference(file){const eventEmitter=new OcEvents();this.__trigger__fileAdd({file:file,events:eventEmitter});const fileReference=file.file;if(!this.properties.remoteUploadHandler||!OcDatatype.isUrl(fileReference.file)){eventEmitter.trigger('file-select',{file:fileReference});this.__internals.processingQueue.delete(file.refID);return};this.__internals.uploadQueue.push({file:fileReference.file,name:file.filename,eventEmitter:eventEmitter,fileData:file});this.__startUploadQueue()}__updateOlefaCustomNodesProperty(){this.properties.olefaCustomNodes=Object.values(this.__internals.olefaCustomNodes)}__onAcceptChange(){this.properties.accept=Array.from(this.__internals.acceptList);this.__updateAcceptRegex()}__onExcludeServiceChange(){this.properties.excludeServices=Array.from(this.__internals.excludedServices);return this}__getDynamicExcludedServices(){const result=this.__getExcludeServices();if(!this.__internals.acceptRegex.test('audio/ogg')&&!this.__internals.acceptRegex.test('audio/mp4')){result.push('soundrecorder')};if(!this.__internals.acceptRegex.test('image/png')&&!this.__internals.acceptRegex.test('image/jpeg')){result.push('pixabay')};return result}fileChecks(file){const fileChecks={file:file,typeCheck:Boolean(this.__internals.acceptRegex.test(file.type)),sizeCheck:Boolean(this.properties.maxSize>file.size)};return fileChecks}async addFile(file,parameters){const disabled=this.__getDisabled();if(disabled){return}const fileInstance=new OcInteractivityFilebucketFile({file:file,...parameters});this.__internals.processingQueue.add(fileInstance.refID);let error;if(fileInstance.type=='filehandle'){[,error]=await Oc.flattenPromise(this.__processFileHandle(fileInstance))}else{[,error]=await Oc.flattenPromise(this.__processFileReference(fileInstance))}if(error){this.__onFileAddError(error);throw error;};return}async adoptFromSoundrecorder(file){const guessedExtension=/audio\/mp4/.test(file.type)?'m4a':'ogg';const filename=`recording-${Math.round(Date.now() / 1000)}-${OLEFA.basics.randomNumber(0, 9999)}.${guessedExtension}`;const ocFile=new Oc.File([file],filename,{type:file.type});await this.addFile(ocFile,{source:'soundrecorder'}).catch(OLEFA.basics.doNothing)}addAccept(mimeType){this.__internals.acceptList.add(mimeType);this.__onAcceptChange();return this}removeAccept(mimeType){this.__internals.acceptList.delete(mimeType);this.__onAcceptChange();return this}openDialog(parent){const disabled=this.__getDisabled();if(disabled){return}const dialog=new OcUiWebDialogStandardUploadserviceselect({processImages:this.__getProcessImages(),resizeTargetResolution:this.__getTargetResolution(),allowMultipleFiles:this.__getMultiUpload(),accept:Array.isArray(this.properties.accept)?this.properties.accept:[this.properties.accept],excludeServices:this.__getDynamicExcludedServices()});if(parent){dialog.base.appendTo(parent)}this.__initEvents__serviceSelectDialog(dialog);dialog.open()}addOlefaCustomNode(nodeData){this.__internals.olefaCustomNodes[nodeData.id]=nodeData;this.__updateOlefaCustomNodesProperty();return this}getOlefaCustomNode(nodeID){return this.__internals.olefaCustomNodes[nodeID]}
19removeOlefaCustomNode(nodeID){if(!this.__internals.olefaCustomNodes[nodeID]){return this};delete this.__internals.olefaCustomNodes[nodeID];this.__updateOlefaCustomNodesProperty();return this}setBodyProperties(properties){Object.entries(properties).forEach(entry=>{const[key,value]=entry;if(value===undefined){delete this.properties.body[key]}else{this.properties.body[key]=value}})};setHeaderProperties(properties){Object.entries(properties).forEach(entry=>{const[key,value]=entry;if(value===undefined){delete this.properties.headers[key]}else{this.properties.headers[key]=value}})};addExcludeService(service){this.__internals.excludedServices.add(service);this.__onExcludeServiceChange();return this}removeExcludeService(service){if(this.__internals.forcefullyExcludedServices.has(service)){OLEFA.log.info('Service is forcefully excluded. Will not remove from exclude list');return this}this.__internals.excludedServices.delete(service);this.__onExcludeServiceChange();return this}__trigger__fileAdd(eventData){this.__internals.events.trigger('file-add',eventData)};__trigger__uploadBegin(){this.__internals.events.trigger('upload-begin',undefined)}__trigger__uploadDone(){this.__internals.events.trigger('upload-done',undefined)}destroy(){this.__internals.states.removeAll();for(const node of Object.values(this.__internals.dom)){node.remove()};if(this.__internals.root){this.__internals.root.removeClass('oc-interactivity-filebucket-dropzone')};super.destroy()}static defaults(){const inheritedDefaults=super.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,element:null,dragText:'',multiUpload:true,accept:'*',maxSize:70000000,processImages:true,targetResolution:'1280x1280',excludeServices:[],olefaBrowserRootDir:'resources',olefaCustomNodes:[],remoteUploadHandler:`${OLEFA.environment.siteURL()}/upload`,headers:{},body:{},fileKey:'file',required:false,disabled:false},errors:{UPLOAD_FAIL_TYPE_CONSTRAINT:55041,UPLOAD_FAIL_SIZE_CONSTRAINT:35928}};return extendedDefaults}}(function(OcInteractivityFilebucketDropzone){;})(OcInteractivityFilebucketDropzone||(OcInteractivityFilebucketDropzone={}));oc.OcInteractivityFilebucketDropzone=OcInteractivityFilebucketDropzone;"use strict";class OcUiWebDialogStandardUploadserviceselect extends OcMdDialogAlert{constructor(properties){super(properties)};defaults(){return OcUiWebDialogStandardUploadserviceselect.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,processImages:{get:this.__getProcessImages.bind(this),set:this.__setProcessImages.bind(this)},resizeTargetResolution:{get:this.__getResizeTargetResolution.bind(this),set:this.__setResizeTargetResolution.bind(this)},allowMultipleFiles:{get:this.__getAllowMultipleFiles.bind(this),set:this.__setAllowMultipleFiles.bind(this)},accept:{get:this.__getAccept.bind(this)},excludeServices:{get:this.__getExcludeServices.bind(this)}};return extendedDefinitions}__getProcessImages(){return this.properties.processImages}__setProcessImages(value){this.properties.processImages=Boolean(value);this.__internals.elements.optionsImageProcessingInput.checked=this.properties.processImages}__getResizeTargetResolution(){return this.properties.resizeTargetResolution}__setResizeTargetResolution(value){this.properties.resizeTargetResolution=value;this.__updateProcessImagesExplanation()}__getAllowMultipleFiles(){return this.properties.allowMultipleFiles}__setAllowMultipleFiles(value){this.properties.allowMultipleFiles=value;this.__deferOnce('__setAllowMultipleFiles',()=>{const input=this.__internals.dom.nativeUploadInput;if(this.properties.allowMultipleFiles){input.attr('multiple','')}else{input.removeAttr('multiple')}})}__getAccept(){return this.properties.accept}__getExcludeServices(){return this.properties.excludeServices}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.accept=new Set();this.__internals.excludedServices=new Set();this.propertyHandlers.processImages=this.__setProcessImages;this.propertyHandlers.resizeTargetResolution=this.__setResizeTargetResolution;this.propertyHandlers.allowMultipleFiles=this.__setAllowMultipleFiles;this.propertyHandlers.accept=this.addAcceptableFiletype;this.propertyHandlers.excludeServices=this.addExcludeService}__initialize(properties){super.__initialize(properties);this.__internals.flexibleGrid=new OcInteractivityFlexiblegrid(this.__internals.dom.serviceList,{targetSize:140});this.__allLangkitsSettled().finally(()=>{this.__setTitle(OLEFA.i18n.get('select_file'));this.__internals.dom.explanation.text(OLEFA.i18n.get('upload_text'));this.__internals.elements.serviceItemLocal.content.text(OLEFA.i18n.get('upload_this_device'));this.__internals.elements.serviceItemOLEFA.content.text(OLEFA.i18n.get('upload_this_website'));this.__internals.elements.serviceItemSoundrecorder.content.text(OLEFA.i18n.get('upload_microphone'));this.__internals.elements.serviceItemDropbox.content.text(OLEFA.i18n.get('upload_dropbox'));this.__internals.elements.serviceItemOnedrive.content.text(OLEFA.i18n.get('upload_onedrive'));this.__internals.elements.serviceItemGoogleDrive.content.text(OLEFA.i18n.get('upload_googledrive'));this.__internals.elements.serviceItemPixabay.content.text(OLEFA.i18n.get('upload_pixabay'));this.__internals.dom.optionsHeader.text(OLEFA.i18n.get('options'));this.__internals.elements.buttonClose.label=OLEFA.i18n.get('cancel');this.__internals.elements.optionsImageProcessing.label=OLEFA.i18n.get('upload_process_images');this.__updateProcessImagesExplanation()});this.__handleUI();this.__handleServiceExcludedChange()}__initElements(){super.__initElements();const cssBase='oc-ui-web-dialog-standard-upload-service-select';const cardProperties={primaryAction:true,mediaStyle:"square"};this.__createDOMNodes({optionsImageProcessingInput:{component:OcMdInputCheckbox,class:`${cssBase}__options-image-processing-input ${cssBase}__options-item-input`},});this.__createDOMNodes({explanation:{tag:'span',class:`${cssBase}__explanation`},serviceList:{tag:'div',class:`${cssBase}__service-list`,children:{serviceItemLocal:{component:OcMdCard,class:`${cssBase}__service-item-local ${cssBase}__service-item`,properties:cardProperties},serviceItemOLEFA:{component:OcMdCard,class:`${cssBase}__service-item-olefa ${cssBase}__service-item`,properties:cardProperties},serviceItemSoundrecorder:{component:OcMdCard,class:`${cssBase}__service-item-soundrecorder ${cssBase}__service-item`,properties:cardProperties},serviceItemDropbox:{component:OcMdCard,class:`${cssBase}__service-item-dropbox ${cssBase}__service-item`,properties:cardProperties},serviceItemOnedrive:{component:OcMdCard,class:`${cssBase}__service-item-onedrive ${cssBase}__service-item`,properties:cardProperties},serviceItemGoogleDrive:{component:OcMdCard,class:`${cssBase}__service-item-google-drive ${cssBase}__service-item`,properties:cardProperties},serviceItemPixabay:{component:OcMdCard,class:`${cssBase}__service-item-pixabay ${cssBase}__service-item`,properties:cardProperties}}},options:{tag:'div',class:`${cssBase}__options`,children:{optionsHeader:{tag:'span',class:`${cssBase}__options-header`,attributes:{id:`${this.refID}--options--header`}},optionsList:{tag:'ul',class:`${cssBase}__options-list`,attributes:{'aria-labelledby':`${this.refID}--options--header`},children:{optionsImageProcessing:{tag:'li',class:`${cssBase}__options-image-processing ${cssBase}__options-item`,children:{optionsImageProcessing:{component:OcMdFormfield,class:`${cssBase}__options-image-processing`,properties:{input:this.__internals.elements.optionsImageProcessingInput,labelPosition:'trailing'}},optionsImageProcessingText:{tag:'span',class:`${cssBase}__options-image-processing-text ${cssBase}__options-item-text`,attributes:{id:`${this.refID}--processing-description`}}}}}}}}},this.__internals.dom.content);const serviceItemLocal=this.__internals.elements.serviceItemLocal.base.get(0);const serviceItemOLEFA=this.__internals.elements.serviceItemOLEFA.base.get(0);const serviceItemSoundrecorder=this.__internals.elements.serviceItemSoundrecorder.base.get(0);const serviceItemDropbox=this.__internals.elements.serviceItemDropbox.base.get(0);const serviceItemOnedrive=this.__internals.elements.serviceItemOnedrive.base.get(0);const serviceItemGoogleDrive=this.__internals.elements.serviceItemGoogleDrive.base.get(0);const serviceItemPixabay=this.__internals.elements.serviceItemPixabay.base.get(0);if(serviceItemLocal){new OcAriaButton(serviceItemLocal)};if(serviceItemOLEFA){new OcAriaButton(serviceItemOLEFA)};if(serviceItemSoundrecorder){new OcAriaButton(serviceItemSoundrecorder)};if(serviceItemDropbox){new OcAriaButton(serviceItemDropbox)};if(serviceItemOnedrive){new OcAriaButton(serviceItemOnedrive)};if(serviceItemGoogleDrive){new OcAriaButton(serviceItemGoogleDrive)};if(serviceItemPixabay){new OcAriaButton(serviceItemPixabay)};this.__createDOMNodes({serviceItemLocalIcon:{component:OcMdIcon,class:`${cssBase}__service-item-local-icon ${cssBase}__service-item-icon`,properties:{icon:'devices'}},serviceItemOLEFAIcon:{component:OcMdIcon,class:`${cssBase}__service-item-olefa-icon ${cssBase}__service-item-icon`,properties:{icon:'language'}},serviceItemSoundrecorderIcon:{component:OcMdIcon,class:`${cssBase}__service-item-soundrecorder-icon ${cssBase}__service-item-icon`,properties:{icon:'mic'}}
19,serviceItemDropboxIcon:{component:OcHtmlImg,class:`${cssBase}__service-item-dropbox-icon ${cssBase}__service-item-icon`,properties:{src:`${OLEFA.environment.folders.icons}/dropbox.png`}},serviceItemOneDriveIcon:{component:OcHtmlImg,class:`${cssBase}__service-item-onedrive-icon ${cssBase}__service-item-icon`,properties:{src:`${OLEFA.environment.folders.icons}/onedrive-cloud.png`}},serviceItemGoogleDriveIcon:{component:OcHtmlImg,class:`${cssBase}__service-item-google-drive-icon ${cssBase}__service-item-icon`,properties:{src:`${OLEFA.environment.folders.icons}/googledrive.png`}},serviceItemPixabayIcon:{component:OcHtmlImg,class:`${cssBase}__service-item-pixabay-icon ${cssBase}__service-item-icon`,properties:{src:`${OLEFA.environment.folders.icons}/pixabay_logo_selection.png`}},nativeUploadInput:{tag:'input',class:`${cssBase}__native-upload-input`}});this.__internals.elements.serviceItemLocal.mediaText=this.__internals.elements.serviceItemLocalIcon.base;this.__internals.elements.serviceItemOLEFA.mediaText=this.__internals.elements.serviceItemOLEFAIcon.base;this.__internals.elements.serviceItemSoundrecorder.mediaText=this.__internals.elements.serviceItemSoundrecorderIcon.base;this.__internals.elements.serviceItemDropbox.mediaText=this.__internals.elements.serviceItemDropboxIcon.base;this.__internals.elements.serviceItemOnedrive.mediaText=this.__internals.elements.serviceItemOneDriveIcon.base;this.__internals.elements.serviceItemGoogleDrive.mediaText=this.__internals.elements.serviceItemGoogleDriveIcon.base;this.__internals.elements.serviceItemPixabay.mediaText=this.__internals.elements.serviceItemPixabayIcon.base;this.__internals.elements.buttonClose=new OcMdButtonStandard({icon:'md:cancel',style:'containedFlush'});this.addButton({button:this.__internals.elements.buttonClose,value:'close',autoCloseDialog:true});this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.nativeUploadInput.attr({type:'file'});this.__internals.elements.optionsImageProcessingInput.input.attr({'aria-describedby':`${this.refID}--processing-description`})})}__initStates(){super.__initStates();this.__internals.states.define({state:OcUiWebDialogStandardUploadserviceselect.__states.ACCEPTS_IMAGES}).define({state:OcUiWebDialogStandardUploadserviceselect.__states.NO_OPTIONS}).define({state:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_DROPBOX,onChange:this.__onServiceExcludedDropbox__change.bind(this)}).define({state:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_GOOGLEDRIVE,onChange:this.__onServiceExcludedGoogledrive__change.bind(this)}).define({state:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_LOCAL_OLEFA,onChange:this.__onServiceExcludedLocalOlefa__change.bind(this)}).define({state:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_LOCAL,onChange:this.__onServiceExcludedLocal__change.bind(this)}).define({state:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_ONEDRIVE,onChange:this.__onServiceExcludedOnedrive__change.bind(this)}).define({state:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_PIXABAY,onChange:this.__onServiceExcludedPixabay__change.bind(this)}).define({state:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_SOUNDRECORDER,onChange:this.__onServiceExcludedSoundrecorder__change.bind(this)})}__onServiceExcludedDropbox__change(){this.__handleServiceExcludedChange()}__onServiceExcludedGoogledrive__change(){this.__handleServiceExcludedChange()}__onServiceExcludedLocalOlefa__change(){this.__handleServiceExcludedChange()}__onServiceExcludedLocal__change(){this.__handleServiceExcludedChange()}__onServiceExcludedOnedrive__change(){this.__handleServiceExcludedChange()}__onServiceExcludedPixabay__change(){this.__handleServiceExcludedChange()}__onServiceExcludedSoundrecorder__change(){this.__handleServiceExcludedChange()}__initEvents(){super.__initEvents();this.__internals.dom.nativeUploadInput.on(`change.${this.refID}`,this.__onNativeUploadInput__change.bind(this));this.__internals.elements.serviceItemLocal.events.listen('primary-action',this.__onServiceItemLocal__primaryAction.bind(this),this.refID);this.__internals.elements.serviceItemOLEFA.events.listen('primary-action',this.__onServiceItemOlefa__primaryAction.bind(this),this.refID);this.__internals.elements.serviceItemSoundrecorder.events.listen('primary-action',this.__onServiceItemSoundrecorder__primaryAction.bind(this),this.refID);this.__internals.elements.serviceItemDropbox.events.listen('primary-action',this.__onServiceItemDropbox__primaryAction.bind(this),this.refID);this.__internals.elements.serviceItemOnedrive.events.listen('primary-action',this.__onServiceItemOnedrive__primaryAction.bind(this),this.refID);this.__internals.elements.serviceItemGoogleDrive.events.listen('primary-action',this.__onServiceItemGoogleDrive__primaryAction.bind(this),this.refID);this.__internals.elements.serviceItemPixabay.events.listen('primary-action',this.__onServiceItemPixabay__primaryAction.bind(this),this.refID);this.__internals.elements.optionsImageProcessingInput.events.listen('property-change',this.__onOptionsImageProcessingInput__propertyChange.bind(this),this.refID)}__onNativeUploadInput__change(eventData){const files=this.__internals.dom.nativeUploadInput.get(0)?.files;if(!files){return};this.__trigger__localFileSelect({files:files})}__onServiceItemLocal__primaryAction(eventData){this.__internals.dom.nativeUploadInput.trigger('click')}__onServiceItemOlefa__primaryAction(eventData){this.__trigger__OlefaSelect()}__onServiceItemSoundrecorder__primaryAction(eventData){this.__trigger__soundrecorderSelect()}__onServiceItemDropbox__primaryAction(eventData){this.__trigger__dropboxSelect()}__onServiceItemOnedrive__primaryAction(eventData){this.__trigger__onedriveSelect()}__onServiceItemGoogleDrive__primaryAction(eventData){this.__trigger__googledriveSelect()}__onServiceItemPixabay__primaryAction(eventData){this.__trigger__pixabaySelect()}__updateProcessImagesExplanation(){this.__internals.dom.optionsImageProcessingText.html(OLEFA.i18n.get('upload_process_images_desc',{'RESOLUTION':this.properties.resizeTargetResolution}))}__onPropertyChange__accept(){this.__handleUI();this.properties.accept=Array.from(this.__internals.accept)}__onExcludeServiceUpdate(){OcArray.forEachChange(this.properties.excludeServices,Array.from(this.__internals.excludedServices.values()),{onAddition:(value)=>{this.__internals.states.add(`service-excluded--${value}`)},onRemoval:(value)=>{this.__internals.states.remove(`service-excluded--${value}`)}});this.properties.excludeServices=Array.from(this.__internals.excludedServices);return this}__handleUI(){const acceptableMimeTypes=Array.from(this.__internals.accept);if(acceptableMimeTypes.length){this.__internals.dom.nativeUploadInput.attr('accept',acceptableMimeTypes.join(','))}else{this.__internals.dom.nativeUploadInput.removeAttr('accept')}const imageRegex=new RegExp(/^(image|\*)(\/.*)?$/);const acceptsImages=acceptableMimeTypes.length==0||acceptableMimeTypes.some(mimeType=>{return imageRegex.test(mimeType)});this.__internals.states.set('accepts-images',acceptsImages);this.__internals.states.set('no-options',!acceptsImages)}__handleServiceExcludedChange(){this.__deferOnce('__handleServiceExcludedChange',()=>{const services={"local-olefa":{stateName:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_LOCAL_OLEFA,button:this.__internals.elements.serviceItemOLEFA},dropbox:{stateName:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_DROPBOX,button:this.__internals.elements.serviceItemDropbox},googledrive:{stateName:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_GOOGLEDRIVE,button:this.__internals.elements.serviceItemGoogleDrive},local:{stateName:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_LOCAL,button:this.__internals.elements.serviceItemLocal},onedrive:{stateName:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_ONEDRIVE,button:this.__internals.elements.serviceItemOnedrive},pixabay:{stateName:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_PIXABAY,button:this.__internals.elements.serviceItemPixabay},soundrecorder:{stateName:OcUiWebDialogStandardUploadserviceselect.__states.SERVICE_EXCLUDED_SOUNDRECORDER,button:this.__internals.elements.serviceItemSoundrecorder}};let serviceButtons=[];for(const service of OcUiWebDialogStandardUploadserviceselect.availableServices){const serviceData=services[service];const serviceDisabled=this.__internals.states.hasState(serviceData.stateName);if(!serviceDisabled){serviceButtons.push(serviceData.button.base)}else{}serviceData.button.base.detach()};this.__internals.dom.serviceList.append(serviceButtons)})}__onOptionsImageProcessingInput__propertyChange(eventData){switch(eventData.property){case'checked':this.__setProcessImages(eventData.value);break;default:break}}addAcceptableFiletype(filetype){this.__internals.accept.add(filetype);this.__onPropertyChange__accept()}removeAcceptableFiletype(filetype){this.__internals.accept.delete(filet
19ype);this.__onPropertyChange__accept()}addExcludeService(service){this.__internals.excludedServices.add(service);this.__onExcludeServiceUpdate();return this};removeExcludeService(service){this.__internals.excludedServices.delete(service);this.__onExcludeServiceUpdate();return this};__trigger__localFileSelect(eventData){this.__internals.events.trigger('local-file-select',eventData)}__trigger__OlefaSelect(){this.__internals.events.trigger('olefa-select',undefined)}__trigger__soundrecorderSelect(){this.__internals.events.trigger('soundrecorder-select',undefined)}__trigger__dropboxSelect(){this.__internals.events.trigger('dropbox-select',undefined)}__trigger__onedriveSelect(){this.__internals.events.trigger('onedrive-select',undefined)}__trigger__googledriveSelect(){this.__internals.events.trigger('googledrive-select',undefined)}__trigger__pixabaySelect(){this.__internals.events.trigger('pixabay-select',undefined)}static defaults(){const inheritedDefaults=super.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,processImages:false,resizeTargetResolution:'',allowMultipleFiles:false,accept:[],excludeServices:[]},cssFiles:{...inheritedDefaults.cssFiles,uiWebDialogAlertUploadserviceselect:{file:'ui/web/dialog/alert/uploadServiceSelect.css',key:'--loaded--ui-web-dialog-alert-uploadserviceselect'}},langkitFiles:{...inheritedDefaults.langkitFiles,upload:"upload.json"},availableServices:new Set(['local','local-olefa','soundrecorder','dropbox','onedrive','googledrive','pixabay'])};return extendedDefaults}}OcUiWebDialogStandardUploadserviceselect.__states={...OcMdDialogAlert.__states,ACCEPTS_IMAGES:'accepts-images',NO_OPTIONS:'no-options',SERVICE_EXCLUDED_DROPBOX:'service-excluded--dropbox',SERVICE_EXCLUDED_GOOGLEDRIVE:'service-excluded--googledrive',SERVICE_EXCLUDED_LOCAL_OLEFA:'service-excluded--local-olefa',SERVICE_EXCLUDED_LOCAL:'service-excluded--local',SERVICE_EXCLUDED_ONEDRIVE:'service-excluded--onedrive',SERVICE_EXCLUDED_PIXABAY:'service-excluded--pixabay',SERVICE_EXCLUDED_SOUNDRECORDER:'service-excluded--soundrecorder'};OcUiWebDialogStandardUploadserviceselect.availableServices=['local','local-olefa','soundrecorder','dropbox','onedrive','googledrive','pixabay'];(function(OcUiWebDialogStandardUploadserviceselect){})(OcUiWebDialogStandardUploadserviceselect||(OcUiWebDialogStandardUploadserviceselect={}));"use strict";class OcUiWebDialogAlertFsbrowser extends OcMdDialogAlert{constructor(properties){super(properties)}defaults(){return OcUiWebDialogAlertFsbrowser.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,homeNode:{get:this.__getHomeNode,set:this.__setHomeNode},customNodes:{get:this.__getCustomNodes},multiSelect:{get:this.__getMultiSelect,set:this.__setMultiSelect},mimeTypeRegex:{get:this.__getMimeTypeRegex,set:this.__setMimeTypeRegex},selectedFiles:{get:this.__getSelectedFiles}};return extendedDefinitions}__getHomeNode(){return this.properties.homeNode}__setHomeNode(value){this.properties.homeNode=value}__getCustomNodes(){return this.properties.customNodes}__getMultiSelect(){return this.properties.multiSelect}__setMultiSelect(value){this.properties.multiSelect=value;const selectedItems=Object.values(this.__internals.nodeItems).filter((nodeItem)=>{return nodeItem.selected});if(!this.properties.multiSelect&&selectedItems.length>1){Object.values(this.__internals.nodeItems).forEach((nodeItem)=>{nodeItem.selected=false})}}__getMimeTypeRegex(){return this.properties.mimeTypeRegex}__setMimeTypeRegex(value){this.properties.mimeTypeRegex=value;
19Object.values(this.__internals.nodeItems).filter(nodeItem=>{return nodeItem.nodeType=='item'}).forEach(nodeItem=>{const isValidType=this.properties.mimeTypeRegex.test(nodeItem.type);if(!isValidType){nodeItem.selected=false};nodeItem.disabled=!isValidType})}__getSelectedFiles(){const IdsOfSelectedNodes=Object.values(this.__internals.nodeItems).filter((nodeItem)=>{return nodeItem.selected}).map((nodeItem)=>{return nodeItem.nodeID});const returnData=[];IdsOfSelectedNodes.forEach(id=>{const nodeData=this.__internals.nodes[id];if(nodeData&&nodeData.type=='file'){returnData.push(nodeData)}});return returnData}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.nodes={};this.__internals.customNodes={};this.__internals.childNodes={};this.__internals.currentNode='';this.__internals.nodeItems={};this.propertyHandlers.homeNode=this.__setHomeNode;this.propertyHandlers.customNodes=this.addCustomNode;this.propertyHandlers.multiSelect=this.__setMultiSelect;this.propertyHandlers.mimeTypeRegex=this.__setMimeTypeRegex;this.__allLangkitsSettled().finally(()=>{this.__internals.dom.loadingText.text(OLEFA.i18n.get('loading'))})}__initialize(properties){super.__initialize(properties);this.addButton({value:'select',button:this.__internals.elements.buttonSelect,order:'00'});this.addButton({value:'cancel',button:this.__internals.elements.buttonCancel,order:'01'});if(this.properties.homeNode){this.__internals.nodes[this.properties.homeNode]={type:'folder',id:this.properties.homeNode,name:'home',parent:'',};this.setActiveNode(this.properties.homeNode)};const flexibleGridProperties={margin:8,targetSize:120};this.__internals.flexibleGrid=new OcInteractivityFlexiblegrid(this.__internals.dom.fileList,flexibleGridProperties);this.__internals.customNodesFlexibleGrid=new OcInteractivityFlexiblegrid(this.__internals.dom.customNodeList,flexibleGridProperties)}__initElements(){super.__initElements();this.__createDOMNodes({buttonCancel:{component:OcMdButtonStandard,class:'oc-ui-web-dialog-alert-fsbrowser__button-cancel',properties:{label:OLEFA.i18n.get('cancel'),}},buttonSelect:{component:OcMdButtonStandard,class:'oc-ui-web-dialog-standard-button-select',properties:{label:OLEFA.i18n.get('select'),style:'containedFlush',disabled:true}}});this.__createDOMNodes({topBar:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser__top-bar',children:{topBarHomeButton:{component:OcMdButtonIcon,class:'oc-ui-web-dialog-alert-fsbrowser__top-bar-home-button',properties:{icon:'md:home'}},topBarBackButton:{component:OcMdButtonIcon,class:'oc-ui-web-dialog-alert-fsbrowser__top-bar-back-button',properties:{icon:'md:arrow_upward'}}}},currentPath:{tag:'span',class:'oc-ui-web-dialog-alert-fsbrowser__current-path'},filePanel:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser__file-panel',children:{customNodesWrapper:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser__custom-nodes-wrapper',children:{filePanelCustomHeader:{tag:'span',class:'oc-ui-web-dialog-alert-fsbrowser__file-panel-custom-header',attributes:{role:'heading','aria-level':'2'}},customNodeList:{tag:'ol',class:'oc-ui-web-dialog-alert-fsbrowser__custom-node-list'}}},fileListWrapper:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser__file-list-wrapper',children:{filePanelHeader:{tag:'span',class:'oc-ui-web-dialog-alert-fsbrowser__file-panel-header',attributes:{role:'heading','aria-level':'2'}},fileList:{tag:'ol',class:'oc-ui-web-dialog-alert-fsbrowser__file-list'}}}}},loading:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser__loading',children:{loadingProgress:{component:OcMdProgressbarCircular,class:'oc-ui-web-dialog-alert-fsbrowser__loading-progress',properties:{determinate:false}},loadingText:{tag:'span',class:'oc-ui-web-dialog-alert-fsbrowser__loading-text'}}}},this.__internals.dom.content);this.defer(()=>{this.__internals.dom.base.addClass('oc-ui-web-dialog-alert-fsbrowser');this.__internals.dom.surface.addClass('oc-ui-web-dialog-alert-fsbrowser__surface-wrapper');this.__internals.dom.content.addClass('oc-ui-web-dialog-alert-fsbrowser__surface-content');this.__internals.dom.fileList.attr({'role':'listbox','tabindex':0,});this.__internals.dom.customNodeList.attr({'role':'listbox','tabindex':0,})})}__initStates(){super.__initStates();this.__internals.states.define({state:'loading-node'}).define({state:'has-custom-nodes'}).define({state:'is-on-home-node'}).define({state:'loading'})}__initEvents(){super.__initEvents();this.__internals.dom.fileList.on(`focus.${this.refID}`,this.__onFileList__focus.bind(this));this.__internals.dom.customNodeList.on(`focus.${this.refID}`,this.__onCustomNodeList__focus.bind(this));this.__internals.elements.topBarHomeButton.events.listen('click',this.__onTopBarHomeButton__click.bind(this),this.refID);this.__internals.elements.topBarBackButton.events.listen('click',this.__onTopBarBackButton__click.bind(this),this.refID)}__onFileList__focus(){this.__focusFirstChild(this.__internals.dom.fileList)}__onCustomNodeList__focus(){this.__focusFirstChild(this.__internals.dom.customNodeList)}
19__onTopBarHomeButton__click(e){this.setActiveNode(this.properties.homeNode)}__onTopBarBackButton__click(e){const currentNode=this.__internals.nodes[this.__internals.currentNode];const parentNode=(currentNode&¤tNode.parent)?currentNode.parent:this.properties.homeNode;if(parentNode!=this.__internals.currentNode){this.setActiveNode(parentNode)}};__initEvents__nodeItem(nodeItem){nodeItem.base.on(`contextmenu.${this.refID}`,this.__onNodeItem__contextmenu.bind(this,nodeItem)).on(`keydown.${this.refID}`,this.__onNodeItem__keypress.bind(this,nodeItem));nodeItem.events.listen('click',this.__onNodeItem__click.bind(this,nodeItem),this.refID).listen('property-change',this.__onNodeItem__propertyChange.bind(this,nodeItem))}__onNodeItem__contextmenu(nodeItem,ev){ev.preventDefault();const asyncMethod=async()=>{if(nodeItem.type=='special/folder'){return};const[nodeData,error]=await Oc.flattenPromise(this.__getNodeData(nodeItem.nodeID));const contextMenu=new OcMdMenuList();if(nodeData&&nodeData.type=='file'){const openInNewTabItem=new OcMdListitemSinglelineLink({icon:'md:open_in_new',value:'open-in-tab',link:nodeData.file,target:'_blank'});contextMenu.list.addItem(openInNewTabItem);this.__allLangkitsSettled().finally(()=>{openInNewTabItem.label=OLEFA.i18n.get('open-in-new-tab')})};contextMenu.base.on('focusout',()=>{contextMenu.close();contextMenu.base.detach();contextMenu.destroy()});contextMenu.base.appendTo(this.__internals.dom.base);contextMenu.openAbsolute(ev.clientX+8,ev.clientY+8)};asyncMethod()}__onNodeItem__keypress(nodeItem,ev){switch(ev.key){case'ArrowRight':{nodeItem.base.nextAll(':not([aria-disabled="true"])').first().trigger('focus');break}case'ArrowLeft':{nodeItem.base.prev(':not([aria-disabled="true"])').trigger('focus');break}case' ':case'Enter':{if(nodeItem.nodeType=='navigation'){this.setActiveNode(nodeItem.nodeID).then(()=>{this.__internals.dom.fileList.children(':not([aria-disabled="true"])').first().trigger('focus')})}else{nodeItem.base.trigger('contextmenu')}}default:{break}}return this}__onNodeItem__click(nodeItem,e){if(nodeItem.type=='special/folder'){this.setActiveNode(nodeItem.nodeID)}else{nodeItem.selected=!nodeItem.selected}}__onNodeItem__propertyChange(nodeItem,e){if(e.property=='selected'){if(e.value&&!this.properties.multiSelect){Object.values(this.__internals.nodeItems).forEach(thisNodeItem=>{if(nodeItem.refID!=thisNodeItem.refID){thisNodeItem.selected=false}})};this.__handleItemSelection()};return this};__handleItemSelection(){const isAtLeastOnItemSelected=Object.values(this.__internals.nodeItems).some(nodeItem=>{return nodeItem.selected});this.__internals.elements.buttonSelect.disabled=!isAtLeastOnItemSelected;return this}__focusFirstChild(node){node.children(':not([aria-disabled="true"])').first().trigger('focus')}async __getNodeData(nodeID){const node=this.__internals.nodes[nodeID];if(node){return node}return this.__getNodeDataRemote(nodeID)}async __getNodeDataRemote(nodeID){return}async __getNodeChildren(nodeID){let children=[];if(!this.__internals.childNodes[nodeID]){const remoteChildren=await this.__getNodeChildrenRemote(nodeID);if(remoteChildren){remoteChildren.forEach((remoteChild)=>{this.__addNode(remoteChild,nodeID)})}}const nodeChildren=Array.from(this.__internals.childNodes[nodeID]||[]);nodeChildren.forEach((nodeChildID)=>{const nodeChild=this.__internals.nodes[nodeChildID];if(nodeChild){children.push(nodeChild)}});return children}async __getNodeChildrenRemote(nodeID){return}__addNode(nodeDefinition,parent){this.__internals.nodes[nodeDefinition.id]=nodeDefinition;if(typeof parent!='undefined'){if(!this.__internals.childNodes[parent]){this.__internals.childNodes[parent]=new Set()};this.__internals.childNodes[parent].add(nodeDefinition.id)}}async __addNodeToFilePanel(nodeData,target='regular'){const nodeItemProperties={name:nodeData.name,nodeID:nodeData.id};if(nodeData.type=='folder'){nodeItemProperties.type='special/folder';nodeItemProperties.nodeType='navigation'}else{nodeItemProperties.type=nodeData.mimeType;nodeItemProperties.nodeType='item';nodeItemProperties.disabled=!this.properties.mimeTypeRegex.test(nodeData.mimeType)}const nodeItem=new OcUiWebDialogAlertFsbrowserNodeitem(nodeItemProperties);nodeItem.base.attr('tabindex','-1');if(nodeData.type=='folder'){nodeItem.base.attr('role','link');const icon=new OcMdIcon({icon:'folder'});icon.base.appendTo(nodeItem.preview)}else{nodeItem.base.attr('role','option');let preview;if((/^video\/.*$/).test(nodeData.mimeType)&&!nodeData.preview){preview=document.createElement('video');preview.preload='metadata';preview.src=nodeData.file}else{const extension=OcUtilities.getFileExtension(nodeData.name).toLowerCase();const img=new OcHtmlImg({src:nodeData.preview||nodeData.file,fallBackImage:`${OLEFA.environment.folders.icons}/mime/${extension}.png`});preview=img.base};nodeItem.preview.append(preview)};this.__initEvents__nodeItem(nodeItem);this.__internals.nodeItems[nodeItem.refID]=nodeItem;const targets={'regular':this.__internals.dom.fileList,'custom':this.__internals.dom.customNodeList};nodeItem.base.appendTo(targets[target])}__onCustomNodesChange(){if(this.__internals.currentNode==this.properties.homeNode){this.setActiveNode(this.properties.homeNode)}this.properties.customNodes=Array.from(Object.values(this.__internals.customNodes))};__buildPath(nodeID){const node=this.__internals.nodes[nodeID];if(!node){return[]};if(node.id==this.__getHomeNode()){return['/']};let path=[];if(node.parent){path=this.__buildPath(node.parent)};path.push(node.name);return path}async setActiveNode(nodeID){this.__internals.currentNode=nodeID;this.__internals.states.add('loading');this.__internals.dom.filePanel.attr('aria-busy','true');
19Object.values(this.__internals.nodeItems).forEach((nodeItem)=>{nodeItem.destroy()});this.__internals.nodeItems={};this.__handleItemSelection();this.__internals.states.set('is-on-home-node',(this.__internals.currentNode==this.properties.homeNode));Object.values(this.__internals.customNodes).forEach(customNode=>{this.__addNodeToFilePanel(customNode,'custom')});const children=await this.__getNodeChildren(nodeID);if(children){children.forEach((child)=>{this.__addNodeToFilePanel(child)})};this.__internals.states.remove('loading');this.__internals.dom.filePanel.attr('aria-busy','false');const path=this.__buildPath(this.__internals.currentNode);this.__internals.dom.currentPath.text(`${OLEFA.i18n.get('path')}: ${path.join(' > ')}`)};addCustomNode(nodeData){this.__internals.customNodes[nodeData.id]=nodeData;this.__internals.nodes[nodeData.id]=nodeData;this.__internals.childNodes[this.properties.homeNode]?.add(nodeData.id);this.__internals.states.set('has-custom-nodes',true);this.__onCustomNodesChange()}getCustomNode(nodeID){return this.__internals.customNodes[nodeID]}removeCustomNode(nodeID){if(!this.__internals.customNodes[nodeID]){return};this.__internals.childNodes[this.properties.homeNode]?.delete(nodeID);delete this.__internals.customNodes[nodeID];this.__internals.states.set('has-custom-nodes',Object.keys(this.__internals.customNodes).length>0);this.__onCustomNodesChange()}static defaults(){const inheritedDefaults=super.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,homeNode:'',customNodes:[],multiSelect:false,mimeTypeRegex:/.*/},cssFiles:{...inheritedDefaults.cssFiles,uiWebDialogAlertFsbrowser:{file:"ui/web/dialog/alert/fsBrowser.css",key:"--loaded--ui-web-dialog-alert-fsbrowser"}},langkitFiles:{...inheritedDefaults.langkitFiles,upload:"upload.json"}};return extendedDefaults}static guessMimeByExtension(ext){OLEFA.log.deprecated('DEPRECATED! Use OcUtilities.guessMimeByExtension() instead');return OcUtilities.guessMimeByExtension(ext)}}(function(OcUiWebDialogAlertFsbrowser){})(OcUiWebDialogAlertFsbrowser||(OcUiWebDialogAlertFsbrowser={}));Oc.OcUiWebDialogAlertFsbrowser=OcUiWebDialogAlertFsbrowser;"use strict";class OcUiWebDialogAlertFsbrowserNodeitem extends OcUi{constructor(properties){super(properties)};defaults(){return OcUiWebDialogAlertFsbrowserNodeitem.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,name:{get:this.__getName,set:this.__setName},type:{get:this.__getType,set:this.__setType},nodeID:{get:this.__getNodeId,set:this.__setNodeId},nodeType:{get:this.__getNodeType,set:this.__setNodeType},selected:{get:this.__getSelected,set:this.__setSelected},disabled:{get:this.__getDisabled,set:this.__setDisabled},preview:{get:()=>{return this.__internals.dom.preview}}};return extendedDefinitions}__getName(){return this.properties.name}__setName(value){this.properties.name=value;this.__deferOnce('__setName',()=>{this.__internals.dom.label.text(this.properties.name);this.__internals.dom.base.attr('title',this.properties.name)})}__getType(){return this.properties.type}__setType(value){this.properties.type=value}__getNodeId(){return this.properties.nodeID}__setNodeId(value){this.properties.nodeID=value}__getNodeType(){return this.properties.nodeType}__setNodeType(value){this.properties.nodeType=value;this.__handleAriaAttributes()}__getSelected(){return this.properties.selected}__setSelected(value){this.properties.selected=value;this.__handleAriaAttributes()}__getDisabled(){return this.properties.disabled}__setDisabled(value){this.properties.disabled=value;this.__handleAriaAttributes()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.name=this.__setName;this.propertyHandlers.type=this.__setType;this.propertyHandlers.nodeID=this.__setNodeId;this.propertyHandlers.nodeType=this.__setNodeType;this.propertyHandlers.selected=this.__setSelected;this.propertyHandlers.disabled=this.__setDisabled}__initialize(properties){super.__initialize(properties);const baseNode=this.__internals.dom.base.get(0);
19if(baseNode){this.__internals.ripple=new mdc.ripple.MDCRipple(baseNode)}}__initElements(){super.__initElements();this.__createDOMNodes({base:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser-nodeitem',children:{preview:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser-nodeitem__preview'},label:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser-nodeitem__label'}}}})}__handleAriaAttributes(){if(this.properties.nodeType=='navigation'){this.__internals.dom.base.attr('role','link').removeAttr('aria-selected')}else{const ariaSelectedValue=(this.properties.selected)?'true':'false';const ariaDisabledValue=(this.properties.disabled)?'true':'false';this.__internals.dom.base.attr({'role':'option','aria-selected':ariaSelectedValue,'aria-disabled':ariaDisabledValue,'aria-haspopup':'menu'})};return this}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,name:'',type:'',image:'',nodeID:'',nodeType:'item',selected:false,disabled:false},cssFiles:{...inheritedDefaults.cssFiles,uiWebDialogAlertFsbrowserNodeitem:{file:"ui/web/dialog/alert/fsBrowser/nodeItem.css",key:"--loaded--ui-web-dialog-alert-fsbrowser-nodeitem"}}}}}Oc.OcUiWebDialogAlertFsbrowserNodeitem=OcUiWebDialogAlertFsbrowserNodeitem;"use strict";class OcUiWebDialogAlertFsbrowserOlefa extends OcUiWebDialogAlertFsbrowser{__initialize(properties){super.__initialize(properties);this.__allLangkitsSettled().finally(()=>{this.title=OLEFA.i18n.get('upload_this_website')})}async __getNodeChildrenRemote(nodeID){let r=[];const data=await OcApiResourcebrowser.getFolder({folder:nodeID});r=data.content.map((childNode)=>{return{id:childNode.fullpath,name:childNode.name,parent:nodeID,type:childNode.type,mimeType:childNode.mimetype,preview:(childNode.type=='file')?(`${OLEFA.environment.siteURL()}/${childNode.thumb}`):'',file:(childNode.type=='file')?(childNode.requestURL):''}});return r}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}Oc.OcUiWebDialogAlertFsbrowserOlefa=OcUiWebDialogAlertFsbrowserOlefa;"use strict";class OcApiResourcebrowser{static defaults(){return{path:'/ajax/resourcebrowser'}};static getFolder(data,host){return OLEFA.ajax(OcApi.generateAJAXParameters(OcApiResourcebrowser.defaults().path,{host:host,mode:'getFolder',APILevel:2,data:data}))}}Oc.OcApiResourcebrowser=OcApiResourcebrowser;"use strict";class OcUiWebDialogStandardAudiorecorder extends OcMdDialogAlert{__initialize(properties){super.__initialize();this.title='Soundrecorder';this.addButton({value:'cancel',button:this.__internals.elements.buttonCancel,order:'00'})}__initElements(){super.__initElements();this.__createDOMNodes({buttonCancel:{component:OcMdButtonStandard,class:'oc-ui-web-dialog-standard-audiorecorder__button-cancel',properties:{label:OLEFA.i18n.get('cancel'),style:'containedFlush',icon:'md:cancel'}}});this.__createDOMNodes({recorder:{component:OcUiWebSoundrecorder,class:'oc-ui-web-dialog-standard-audiorecorder__recorder'}},this.__internals.dom.content);this.defer(()=>{this.__internals.dom.base.addClass('oc-ui-web-dialog-standard-audiorecorder')})}__initEvents(){super.__initEvents();this.__internals.elements.recorder.events.listen('export',this.__onRecorder__export.bind(this),this.refID)}__onRecorder__export(ev){this.__internals.events.trigger('export',ev)}}oc.OcUiWebDialogStandardAudiorecorder=OcUiWebDialogStandardAudiorecorder;"use strict";class OcUiWebSoundrecorder extends OcUi{constructor(properties){super(properties)};defaults(){return OcUiWebSoundrecorder.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.recordState=OcUiWebSoundrecorder.recordStates.IDLE;this.__internals.recorder=OcMedia.createRecorder();this.__internals.player=OcMedia.createPlayer();this.__internals.recording=undefined;this.__internals.recordingStart=undefined;this.__internals.recordingInterval=undefined}__initialize(properties){super.__initialize();this.__allLangkitsSettled().finally(()=>{this.__internals.dom.readyMessage.text(OLEFA.i18n.get('ready'));this.__internals.dom.processing.text(OLEFA.i18n.get('processing'));this.__internals.elements.buttonConnectMic.label=OLEFA.i18n.get('connect_mic');this.__internals.elements.buttonRecord.label=OLEFA.i18n.get('start_recording');this.__internals.elements.buttonRecord.labelSet=OLEFA.i18n.get('stop_recording');this.__internals.elements.buttonPlayPause.label=OLEFA.i18n.get('play_recording');this.__internals.elements.buttonPlayPause.labelSet=OLEFA.i18n.get('stop_playback');this.__internals.elements.buttonExport.label=OLEFA.i18n.get('submit')})}__initElements(){super.__initElements();const mdUnit=Number(OLEFA.css.getMDUnit());const iconSize=7*mdUnit;this.__createDOMNodes({base:{tag:'div',class:'oc-ui-web-soundrecorder',children:{audio:{tag:'audio',class:'oc-ui-web-soundrecorder__audio',attributes:{preload:'auto'}},audioHack:{tag:'audio',class:'oc-ui-web-soundrecorder__audio-hack',attributes:{muted:''}},info:{tag:'div',class:'oc-ui-web-soundrecorder__info',children:{player:{tag:'div',class:'oc-ui-web-soundrecorder__player',children:{playerCurrent:{tag:'span',class:'oc-ui-web-soundrecorder__player-current'},playerProgress:{component:OcMdInputSliderStandard,class:'oc-ui-web-soundrecorder__player-progress',properties:{dense:true}},playerMax:{tag:'span',class:'oc-ui-web-soundrecorder__player-max'}}},message:{tag:'div',class:'oc-ui-web-soundrecorder__message',children:{buttonConnectMic:{component:OcMdButtonStandard,class:'oc-ui-web-soundrecorder__button-connect-mic',properties:{icon:'md:mic',style:'contained'}},readyMessage:{tag:'span',class:'oc-ui-web-soundrecorder__ready-message'},timerWrapper:{tag:'div',class:'oc-ui-web-soundrecorder__timer-wrapper',children:{recordingStateIndicator:{component:OcMdIcon,class:'oc-ui-web-soundrecorder__recording-state-indicator',properties:{icon:'fiber_manual_record'}},timer:{tag:'span',class:'oc-ui-web-soundrecorder__timer'}}},processing:{tag:'span',class:'oc-ui-web-soundrecorder__processing'}}}}},controls:{tag:'div',class:'oc-ui-web-soundrecorder__controls',children:{buttonRecord:{component:OcMdButtonIcontoggle,class:'oc-ui-web-soundrecorder__button-record',properties:{icon:'md:fiber_manual_record',iconSet:'md:stop',size:iconSize,paddingRatio:0.3,disabled:true}},buttonPlayPause:{component:OcMdButtonIcontoggle,class:'oc-ui-web-soundrecorder__button-play-pause',properties:{icon:'md:play_arrow',iconSet:'md:pause',size:iconSize,paddingRatio:0.3,disabled:true}},buttonExport:{component:OcMdButtonIcon,class:'oc-ui-web-soundrecorder__button-export',properties:{icon:'md:file_upload',size:iconSize,paddingRatio:0.3,disabled:true}}}}}}})}__initEvents(){super.__initEvents();this.__internals.recorder.events.listen('new-recording',this.__onRecorder__newRecording.bind(this),this.refID).listen('stop',this.__onRecorder__stop.bind(this),this.refID);this.__internals.player.events.listen('duration-change',this.__onPlayer__durationChange.bind(this),this.refID).listen('ended',this.__onPlayer__ended.bind(this),this.refID).listen('time-update',this.__onPlayer__timeUpdate.bind(this),this.refID).listen('stop',this.__onPlayer__stop.bind(this),this.refID);this.__internals.elements.buttonConnectMic.events.listen('click',this.__onButtonConnectMic__click.bind(this),this.refID);this.__internals.elements.playerProgress.events.listen('input',this.__onPlayerProgress__input.bind(this),this.refID);this.__internals.elements.buttonRecord.events.listen('toggle',this.__onButtonRecord__toggle.bind(this),this.refID);this.__internals.elements.buttonPlayPause.events.listen('toggle',this.__onButtonPlayPause__toggle.bind(this),this.refID);this.__internals.elements.buttonExport.events.listen('click',this.__onButtonExport__click.bind(this),this.refID)}
19__onRecorder__newRecording(ev){const recordStates=OcUiWebSoundrecorder.recordStates;this.__internals.recordState=recordStates.PROCESSING;this.__internals.recording=ev.data.recording;this.__handleUi();const audio=this.__internals.dom.audio.get(0);if(audio){if("fileEntry"in ev.data){this.__internals.player.file=ev.data.fileEntry}else{this.__internals.player.file=this.__internals.recording};this.__internals.recordState=recordStates.READYTOPLAY};this.__onPlayer__ended();this.__onPlayer__timeUpdate();this.__onPlayer__durationChange()}__onRecorder__stop(){this.__internals.states.remove('recording')}__onPlayer__durationChange(){const audio=this.__internals.player;if(!audio){return};this.__internals.dom.playerMax.text(this.__toTimerFormat(audio.duration));this.__internals.elements.playerProgress.max=audio.duration||1};__onPlayer__ended(){this.__internals.player.currentTime=0}__onPlayer__timeUpdate(){const audio=this.__internals.player;if(!audio){return};this.__internals.dom.playerCurrent.text(this.__toTimerFormat(audio.currentTime));this.__internals.elements.playerProgress.value=audio.currentTime};__onPlayer__stop(){const audio=this.__internals.player;if(!audio){return};this.__internals.elements.buttonPlayPause.state=false};__onStates__stateChange(eventData){super.__onStates__stateChange(eventData);this.__handleButtons();this.__handleUi()}__onButtonConnectMic__click(){this.connectMic()};__onPlayerProgress__input(eventData){const audioNode=this.__internals.player;if(audioNode){audioNode.currentTime=Number(eventData.data.value)}};__onButtonRecord__toggle(eventData){if(eventData.isOn){this.__startRecording()}else{this.__stopRecording()}};__onButtonPlayPause__toggle(ev){const audio=this.__internals.player;if(!audio){return};if(ev.isOn){audio.play()}else{audio.pause()}};__onButtonExport__click(){if(!this.__internals.recording){return};this.__trigger__export({file:this.__internals.recording})};__initEvents__recorder(){};__initStates(){super.__initStates();this.__internals.states.define({state:'initialized',});this.__internals.states.define({state:'countdown',});this.__internals.states.define({state:'recording'});this.__internals.states.define({state:'show-timer',});this.__internals.states.define({state:'show-player',});this.__internals.states.define({state:'playing'});this.__internals.states.define({state:'upload',})}__startRecording(countdown=2){this.__internals.states.add('show-timer').add('countdown');this.__internals.recordState=OcUiWebSoundrecorder.recordStates.COUNTDOWN;let recordingStart=new Date();recordingStart.setTime(recordingStart.getTime()+(countdown*1000));this.__internals.recordingStart=recordingStart;this.__recordingTick();this.__internals.recordingInterval=setInterval(()=>{this.__recordingTick()},1000)}__recordingTick(){if(!this.__internals.recordingStart){return new OcError({code:OcUiWebSoundrecorder.errors.MISSING_START_TIME,debugMessage:"Cannot update timer because it's unknown when the recording was started"})};let now=new Date();const time=(now.getTime()-this.__internals.recordingStart.getTime())/1000;const recordStates=OcUiWebSoundrecorder.recordStates;if(this.__internals.recordState==recordStates.COUNTDOWN&&time>0){this.__internals.recordState=recordStates.RECORDING;this.__internals.recorder.record();this.__internals.states.remove('countdown').add('recording')};this.__internals.dom.timer.text(this.__toTimerFormat(time))}__toTimerFormat(seconds){const minusSign=(seconds<0)?'-':'';const minutesString=String(Math.floor(Math.abs(seconds)/60)).padStart(2,'0');const secondsString=String(Math.round(OLEFA.basics.modulo(Math.abs(seconds),60))).padStart(2,'0');return`${minusSign}${minutesString}:${secondsString}`}__stopRecording(){clearInterval(this.__internals.recordingInterval);this.__internals.recordState=(this.__internals.recording)?OcUiWebSoundrecorder.recordStates.READYTOPLAY:OcUiWebSoundrecorder.recordStates.IDLE;if(this.__internals.recorder&&this.__internals.recorder.isRecording){this.__internals.recorder.stop()};this.__internals.states.remove('countdown')}__handleUi(){const states=this.__internals.states;const showTimer=states.hasState('countdown')||states.hasState('recording');const showPlayer=Boolean(this.__internals.recording&&!states.hasState('countdown')&&!states.hasState('recording'));this.__internals.states.set('show-timer',showTimer);this.__internals.states.set('show-player',showPlayer)}__handleButtons(){this.__deferOnce('__handleButtons',()=>{const states=this.__internals.states;
19const recordStates=OcUiWebSoundrecorder.recordStates;const connectMicButtonState=!states.hasState('initialized');const recordButtonState=states.hasState('initialized');const playPausButtonState=states.hasState('initialized')&&this.__internals.recordState==recordStates.READYTOPLAY;const exportButtonState=states.hasState('initialized')&&typeof this.__internals.recording!='undefined';this.__internals.elements.buttonConnectMic.disabled=!connectMicButtonState;this.__internals.elements.buttonRecord.disabled=!recordButtonState;this.__internals.elements.buttonPlayPause.disabled=!playPausButtonState;this.__internals.elements.buttonExport.disabled=!exportButtonState})}isSupported(){if(!navigator.mediaDevices){return false};if(!navigator.mediaDevices.getUserMedia){return false};if(!MediaRecorder){return false};return true};async connectMic(){const[,permissionError]=await Oc.flattenPromise(this.__internals.recorder.requestPermission());if(permissionError){const errorCodes=this.__internals.recorder.defaults().errors;if(permissionError instanceof OcError){let message;switch(permissionError.code){case errorCodes.STREAM_INIT_ERROR_NO_MIC_FOUND:{message=OLEFA.i18n.get('soundrecorder_mic_not_found');break}case errorCodes.STREAM_INIT_ERROR_ACCESS_DENIED:{message=OLEFA.i18n.get('soundrecorder_mic_permission_denied');break}default:{message=permissionError.data.error;break}}OLEFA.snackbar.show({message:message});throw permissionError;}else{OLEFA.snackbar.show({message:permissionError});throw new OcError({code:errorCodes.STREAM_INIT_ERROR,data:{error:permissionError},debugMessage:'Unexpected error'})}}this.__internals.states.add('initialized')}__trigger__export(eventData){const normalizedProperties={...{file:undefined},...eventData};this.__internals.events.trigger('export',eventData)}static defaults(){const inheritedDefaults=super.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties},cssFiles:{...inheritedDefaults.cssFiles,uiWebSoundrecorder:{file:'ui/web/soundrecorder.css'}},langkitFiles:{...inheritedDefaults.langkitFiles,soundrecorder:'soundrecorder.json'}};return extendedDefaults}destroy(){clearInterval(this.__internals.recordingInterval);this.__internals.recorder.destroy();super.destroy()}}OcUiWebSoundrecorder.recordStates={IDLE:0,COUNTDOWN:1,RECORDING:2,PROCESSING:3,READYTOPLAY:4};OcUiWebSoundrecorder.errors={...OcUi.errors,NOT_SUPPORTED:61176,NO_MEDIA_STREAM:1829,NO_RECORDER:67103,MISSING_START_TIME:98955};oc.OcUiWebSoundrecorder=OcUiWebSoundrecorder;"use strict";class OcMedia{static createRecorder(){if(OLEFA.environment.type=='cordova'){return new OcMediaRecorderCordova()}else{return new OcMediaRecorderNative()}}static createPlayer(){if(OLEFA.environment.type=='cordova'){return new OcMediaPlayerCordova()}else{return new OcMediaPlayerNative()}}}Oc.OcMedia=OcMedia;"use strict";class OcMediaPlayer extends OcComponent{constructor(properties){super(properties)}defaults(){return OcMediaPlayer.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,file:{get:this.__getFile.bind(this),set:this.__setFile.bind(this)},duration:{get:this.__getDuration.bind(this)},currentTime:{get:this.__getCurrentTime.bind(this),set:this.__setCurrentTime.bind(this)}}}__getFile(){return this.properties.file}__setFile(value){this.properties.file=value}__getDuration(){OLEFA.log.error('Missing method override');return 0}__getCurrentTime(){OLEFA.log.error('Missing method override');return 0}__setCurrentTime(value){OLEFA.log.error('Missing method override')}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}async play(){OLEFA.log.error('Missing method override');throw new OcError({debugMessage:'Not implemented'})}pause(){OLEFA.log.error('Missing method override')}stop(){OLEFA.log.error('Missing method override')}__trigger__durationChange(){const event=new OcEvent({eventName:'duration-change',data:{duration:this.duration}});this.__internals.events.triggerEvent(event)};__trigger__timeUpdate(data){const event=new OcEvent({eventName:'time-update',data:data});this.__internals.events.triggerEvent(event)}__trigger__stop(){const event=new OcEvent({eventName:'stop'});this.__internals.events.triggerEvent(event)}__trigger__ended(){const event=new OcEvent({eventName:'ended'});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{file:undefined}}}}Oc.OcMediaPlayer=OcMediaPlayer;"use strict";class OcMediaPlayerCordova extends OcMediaPlayer{constructor(properties){super(properties)}defaults(){return OcMediaPlayerCordova.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,currentTime:{get:this.__getCurrentTime.bind(this),set:this.__setCurrentTime.bind(this)},platform:{get:this.__getPlatform.bind(this)},file:{get:this.__getFile.bind(this),set:this.__setFile.bind(this)}}}__getPlatform(){return this.properties.platform}__setPlatform(value){this.properties.platform=value;this.__handleMediaProperty()}__setFile(value){super.__setFile(value);this.__handleMediaProperty()}__getDuration(){return this.__internals.duration}__getCurrentTime(){return this.__internals.currentTime}__setCurrentTime(value){}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.currentTime=0;this.__internals.duration=0}__initialize(properties){super.__initialize(properties)}__initEvents__media(media){media.events.listen('progress',this.__onMedia__progress.bind(this),this.refID).listen('stop',this.__onMedia__stop.bind(this),this.refID)}__onMedia__progress(ev){this.__internals.duration=ev.duration;this.__internals.currentTime=ev.current;this.__trigger__durationChange();this.__trigger__timeUpdate({currentTime:ev.current})}__onMedia__stop(){this.__trigger__stop();this.__trigger__ended()}__handleMediaProperty(){this.__internals.media?.destroy();delete this.__internals.media;this.__internals.currentTime=0;this.__internals.duration=0;const file=this.__getFile();const platform=this.__getPlatform();if(!file){return};this.__internals.media=new OcAppMedia(file,platform);this.__initEvents__media(this.__internals.media);this.__trigger__timeUpdate({currentTime:0});this.__trigger__durationChange()}async play(){this.__internals.media?.play()}pause(){this.__internals.media?.pause()};stop(){this.__internals.media?.stop()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,platform:'android',file:null}}}}Oc.OcMediaPlayerCordova=OcMediaPlayerCordova;"use strict";class OcAppMedia{constructor(fileEntry,platform){this.__internals={events:new OcEvents(),released:true,playing:false,fileEntry:fileEntry,timers:{},platform:platform};Object.defineProperty(this,'events',{get:()=>{return this.__internals.events}});this.reloadMedia()}__onMediaSuccess(){this.release()}__onMediaError(error){switch(error.code){case MediaError.MEDIA_ERR_ABORTED:this.__internals.events.trigger('error-aborted',{});break;case MediaError.MEDIA_ERR_NETWORK:this.__internals.events.trigger('error-network',{});break;case MediaError.MEDIA_ERR_DECODE:this.__internals.events.trigger('error-decode',{});break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:this.__internals.events.trigger('error-none-supported',{});break};this.release()}__onMediaStateChange(status){switch(status){case Media.MEDIA_STARTING:this.__internals.events.trigger('start',{});break;case Media.MEDIA_RUNNING:this.__internals.playing=true;this.__internals.events.trigger('running',{});this.__onMediaRunning();break;case Media.MEDIA_PAUSED:this.__internals.playing=false;this.__internals.events.trigger('pause',{});this.__onMediaStop();break;case Media.MEDIA_STOPPED:this.__internals.playing=false;this.__internals.events.trigger('stop',{});this.__onMediaStop();break}}__onMediaRunning(){this.__internals.timers.progress=window.setInterval(()=>{this.getCurrentPosition().then((seconds)=>{var duration=this.getDuration();this.__internals.events.trigger('progress',{current:seconds,duration:duration})}).catch(()=>
19{if(!this.isMediaReady()||this.__internals.released){clearInterval(this.__internals.timers.progress)}})})}__onMediaStop(){clearInterval(this.__internals.timers.progress)}reloadMedia(){delete this.__internals.media;const url=(this.__internals.platform=='ios')?this.__internals.fileEntry.toInternalURL():this.__internals.fileEntry.nativeURL;this.__internals.media=new Media(url,this.__onMediaSuccess.bind(this),this.__onMediaError.bind(this),this.__onMediaStateChange.bind(this));this.__internals.released=false}async getCurrentPosition(){if(!this.isMediaReady()||!this.__internals.media){throw new OcError({code:OcAppMedia.errors.GET_POSITION_FAIL,debugMessage:'Media is not currently playing',level:OcLog.defaults().loglevels.INFO})};const media=this.__internals.media;const[seconds,error]=await Oc.flatPromise((resolve,reject)=>{media.getCurrentPosition(seconds=>{resolve(seconds)},error=>{reject()})});if(error||seconds==null){throw new OcError({code:OcAppMedia.errors.GET_POSITION_FAIL,debugMessage:'Failed to get position',level:OcLog.defaults().loglevels.WARN})};return seconds}getDuration(){return this.__internals.media?.getDuration()||0}pause(){if(this.isMediaReady()){this.__internals.media?.pause()}}play(){if(!this.isMediaReady()){this.reloadMedia()};this.__internals.media?.play()}stop(){if(this.isMediaReady()){this.__internals.media?.stop()}}release(){if(this.__internals.media){if(this.__internals.playing){this.__internals.media.stop()};this.__internals.media.release();delete this.__internals.media}this.__internals.released=true}isMediaReady(){if(!this.__internals.media||this.__internals.released){return false};return true}destroy(){clearInterval(this.__internals.timers.progress);if(this.__internals.media){this.__internals.media.play();this.__internals.media.release()}}}oc.OcAppMedia=OcAppMedia;"use strict";class OcMediaPlayerNative extends OcMediaPlayer{constructor(properties){super(properties)}defaults(){return OcMediaPlayerNative.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,audioContextUnlocked:{get:this.__getAudioContextUnlocked.bind(this)},context:{get:this.__getContext.bind(this)}}}__setFile(value){super.__setFile(value);if(!this.__internals.audioReady.isResolved){this.__internals.audioReady.reject(new OcError({code:OcMediaPlayerNative.errors.AUDIO_SOURCE_CHANGED,debugMessage:'Audio source changed',level:OcLog.defaults().loglevels.INFO}));this.__recreateAudioReady()};this.__internals.audioBuffer?.destroy();delete this.__internals.audioBuffer;if(!this.properties.file){return};let arrayBufferPromise;if(this.properties.file instanceof Blob){arrayBufferPromise=this.__getBufferFromFile(this.properties.file)}else{arrayBufferPromise=this.__getBufferFromRemoteServer(this.properties.file)};const file=this.properties.file;arrayBufferPromise.then(arrayBuffer=>{return this.__arrayBufferToAudioBuffer(arrayBuffer)}).then(audioBuffer=>{if(file!=this.properties.file){return};this.__internals.audioBuffer=new OcMediaPlayerNativeBuffer({audio:this,buffer:audioBuffer});this.__initEvents__audioBuffer(this.__internals.audioBuffer);this.__trigger__timeUpdate({currentTime:this.currentTime});this.__trigger__durationChange();this.__internals.audioReady.resolve()}).catch(e=>{this.__internals.audioReady.reject(new OcError({code:OcMediaPlayerNative.errors.AUDIO_DECODE_ERROR,data:e,debugMessage:'Error occured while decoding file',level:OcLog.defaults().loglevels.ERROR}))})}__getDuration(){return this.__internals.audioBuffer?.buffer?.duration||0}__setCurrentTime(value){if(this.__internals.audioBuffer){this.__internals.audioBuffer.currentTime=value}}__getCurrentTime(){return this.__internals.audioBuffer?.currentTime||0}__getAudioContextUnlocked(){return this.__internals.promises.audioContextUnlocked}__getContext(){return this.__internals.context}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.context=new AudioContext();this.__internals.promises={};this.__recreateAudioReady()}__initialize(properties){super.__initialize(properties);this.__unlockAudioContext()}__initEvents__audioBuffer(audioBuffer){audioBuffer.events.listen('time-update',this.__onAudioBuffer__timeUpdate.bind(this),this.refID).listen('stop',this.__onAudioBuffer__stop.bind(this),this.refID).listen('ended',this.__onAudioBuffer__ended.bind(this),this.refID)};__onAudioBuffer__timeUpdate(){this.__trigger__timeUpdate({currentTime:this.currentTime})}__onAudioBuffer__stop(){this.__trigger__stop()}__onAudioBuffer__ended(){this.__trigger__ended()}__recreateAudioReady(){this.__internals.audioReady?.destroy();this.__internals.audioReady=new OcManualpromise();this.__internals.audioReady.promise.catch(OcUtilities.doNothing)}__unlockAudioContext(){if(!this.__internals.promises.audioContextUnlocked){this.__internals.promises.audioContextUnlocked=new Promise((resolve,reject)=>{if(!window.AudioContext){reject(new OcError({code:0,debugMessage:'AudioContext not supported',level:OcLog.defaults().loglevels.ERROR}))};const context=new window.AudioContext();function unlockWebAudio(){const buffer=context.createBuffer(1,1,22050);const source=context.createBufferSource();source.buffer=buffer;source.connect(context.destination);source.addEventListener('ended',()=>{window.removeEventListener('touchend',unlockWebAudio);window.removeEventListener('click',unlockWebAudio);source.disconnect();resolve()});source.start(0)};window.addEventListener('touchend',unlockWebAudio,false);window.addEventListener('click',unlockWebAudio,false);unlockWebAudio()})}return this.__internals.promises.audioContextUnlocked}async __arrayBufferToAudioBuffer(buffer){const[audioBuffer,error]=await Oc.flattenPromise(this.__internals.context.decodeAudioData(buffer));if(error||audioBuffer===null){throw new OcError({code:OcMediaPlayerNative.errors.AUDIO_DECODE_ERROR,data:error,debugMessage:'Unable to decode audio file',level:OcLog.defaults().loglevels.ERROR})};return audioBuffer}async __getBufferFromRemoteServer(path){const absoluteUrl=OcDatatype.urlToAbsolute(path);const url=new URL(absoluteUrl);const[response,fetchError]=await Oc.flattenPromise(OLEFA.fetch.get({host:url.hostname,path:url.pathname}));if(fetchError||response===null){throw fetchError;};return await response.data.arrayBuffer()}async __getBufferFromFile(blob){const reader=new FileReader();const readerPromise=new Promise((resolve,reject)=>{reader.onload=ev=>{if(!ev.target){return reject()};resolve(ev.target.result)};reader.onerror=e=>{reject(e)}});reader.readAsArrayBuffer(blob);return await readerPromise};async play(){await this.__internals.audioReady.promise;await this.__internals.audioBuffer?.play()}pause(){this.__internals.audioBuffer?.stop()}stop(){this.__internals.audioBuffer?.stop()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults}}}OcMediaPlayerNative.errors={...OcMediaPlayer.errors,AUDIO_DECODE_ERROR:32597,AUDIO_SOURCE_CHANGED:24042};
19Oc.OcMediaPlayerNative=OcMediaPlayerNative;"use strict";class OcMediaPlayerNativeBuffer extends OcComponent{constructor(properties){super(properties)}defaults(){return OcMediaPlayerNativeBuffer.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,audio:{get:this.__getAudio.bind(this)},buffer:{get:this.__getBuffer.bind(this)},isPlaying:{get:this.__getIsPlaying.bind(this)},currentTime:{get:this.__getCurrentTime.bind(this),set:this.__setCurrentTime.bind(this)}}}__getAudio(){return this.properties.audio}__setAudio(value){this.properties.audio=value}__getBuffer(){return this.properties.buffer}__setBuffer(value){this.properties.buffer=value}__getIsPlaying(){return this.__internals.isPlaying}__getCurrentTime(){return this.__internals.currentTime}__setCurrentTime(value){const duration=this.properties.audio?.duration||0;const normalizedTime=OcUtilities.clamp(0,value,duration);const wasPlaying=this.isPlaying;this.__internals.currentTime=normalizedTime;this.__trigger__timeUpdate();if(wasPlaying){this.stop();this.play()}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.isPlaying=false;this.__internals.playback={start:0,stop:0};this.__internals.currentTime=0;this.propertyHandlers.audio=this.__setAudio;this.propertyHandlers.buffer=this.__setBuffer}__initialize(properties){super.__initialize(properties);this.__initProperties(properties)}__initEvents__source(source){source.addEventListener('ended',()=>{})}__initAudioNode(){const audio=this.__getAudio();const buffer=this.__getBuffer();if(audio&&buffer){this.__internals.gainNode=audio.context.createGain();this.__internals.source=audio.context.createBufferSource();this.__internals.source.buffer=buffer;this.__internals.source.connect(this.__internals.gainNode);this.__internals.gainNode.connect(audio.context.destination);this.__internals.source.addEventListener('ended',e=>{this.__internals.isPlaying=false;clearInterval(this.__internals.playProgressInterval);if(this.__internals.playback.stop==0){this.__trigger__ended()}this.__trigger__stop()})}}async play(){const audio=this.__getAudio();if(!audio){return};if(!audio.audioContextUnlocked){return};await Oc.flattenPromise(audio.audioContextUnlocked);if(this.__internals.isPlaying){return};this.__initAudioNode();this.__internals.source?.start(0,this.__internals.currentTime);this.__internals.playback.start=Date.now()-(this.__internals.currentTime*1000);this.__internals.playback.stop=0;this.__internals.isPlaying=true;this.__internals.playProgressInterval=window.setInterval(()=>{const playbackEnd=this.isPlaying?Date.now():this.__internals.playback.stop;this.__internals.currentTime=(playbackEnd-this.__internals.playback.start)/1000;this.__trigger__timeUpdate()});this.__trigger__play()}stop(){this.__internals.playback.stop=Date.now();this.__internals.source?.stop(0);clearInterval(this.__internals.playProgressInterval);this.__trigger__stop()}__trigger__play(){const event=new OcEvent({eventName:'play'});this.__internals.events.triggerEvent(event)}__trigger__timeUpdate(){const event=new OcEvent({eventName:'time-update',data:{currentTime:this.__internals.currentTime}});this.__internals.events.triggerEvent(event)}__trigger__stop(){const event=new OcEvent({eventName:'stop'});this.__internals.events.triggerEvent(event)}__trigger__ended(){const event=new OcEvent({eventName:'ended'});this.__internals.events.triggerEvent(event)}destroy(){clearInterval(this.__internals.playProgressInterval);this.properties.audio=null;this.properties.buffer=null;super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,audio:null,buffer:null,url:''}}}}Oc.OcMediaPlayerNativeBuffer=OcMediaPlayerNativeBuffer;"use strict";class OcMediaRecorder extends OcComponent{constructor(properties){super(properties)}defaults(){return OcMediaRecorder.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,isRecording:{get:this.__getIsRecording.bind(this)}}}__getIsRecording(){return this.__internals.states.hasState('recording')}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates()}__initialize(properties){super.__initialize(properties);this.__initStates()}__initStates(){this.__internals.states.define({state:'recording',onGain:this.__onStateGain__recording.bind(this),onLoss:this.__onStateLoss__recording.bind(this)})}__onStateGain__recording(){this.__trigger__record()}__onStateLoss__recording(){this.__trigger__stop()}async requestPermission(){OLEFA.log.error('Missing method override');throw new OcError({code:this.defaults().errors.STREAM_INIT_ERROR,debugMessage:'Not implemented'})}async record(){OLEFA.log.error('Missing method override');return Promise.reject()}stop(){OLEFA.log.error('Missing method override')}__trigger__record(){const event=new OcEvent({eventName:'record'});this.__internals.events.triggerEvent(event)}__trigger__stop(){const event=new OcEvent({eventName:'stop'});this.__internals.events.triggerEvent(event)}destroy(){this.stop();super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,errors:{STREAM_INIT_ERROR_NO_MIC_FOUND:74025,STREAM_INIT_ERROR_ACCESS_DENIED:72087,STREAM_INIT_ERROR:85079}}}}Oc.OcMediaRecorder=OcMediaRecorder;"use strict";class OcMediaRecorderCordova extends OcMediaRecorder{constructor(properties){super(properties)}defaults(){return OcMediaRecorderCordova.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties)}__initEvents__recorder(){if(!this.__internals.recorder){return};this.__internals.recorder.events.listen('dataready',this.__onRecorder__dataready.bind(this),this.refID)}__onRecorder__dataready(){const path=this.__filePath();OLEFAApp.fsCache.getFile(path).then(fileEntry=>{fileEntry.file((file)=>{const reader=new FileReader();reader.onloadend=event=>{const arraybuffer=event.target?.result;const format=this.__requiredFormat();const blob=new Oc.File([arraybuffer],`soundrecorder.${format}`,{type:`audio/${format}`});this.__internals.recordingPromise.resolve({recording:blob,fileEntry:fileEntry});
19this.__trigger__newRecording({recording:blob,fileEntry:fileEntry})};reader.onerror=e=>{return Promise.reject()};reader.readAsArrayBuffer(file)})})}__isMicrophoneAuthorized(){return new Promise((resolve,reject)=>{if(!cordova.plugins.diagnostic){return resolve(false)};if(typeof cordova.plugins.diagnostic.isMicrophoneAuthorized!='function'){return resolve(false)};cordova.plugins.diagnostic.isMicrophoneAuthorized((authorized)=>{resolve(authorized)},(error)=>{resolve(false)})})}__requestMicrophoneAuthorization(){return new Promise((resolve,reject)=>{if(!cordova.plugins.diagnostic){return reject(new OcError({code:this.defaults().errors.STREAM_INIT_ERROR,debugMessage:'Missing Cordova plugin: cordova-plugins-diagnostic',level:OcLog.defaults().loglevels.ERROR}))};const diagnostic=cordova.plugins.diagnostic;if(typeof diagnostic.requestMicrophoneAuthorization!='function'){return reject(new OcError({code:this.defaults().errors.STREAM_INIT_ERROR,debugMessage:'Missing method: requestMicrophoneAuthorization',level:OcLog.defaults().loglevels.ERROR}))};diagnostic.requestMicrophoneAuthorization((status)=>{if(status==diagnostic.permissionStatus.GRANTED){resolve()}else{reject(new OcError({code:this.defaults().errors.STREAM_INIT_ERROR_ACCESS_DENIED,data:{status:status},debugMessage:'Access to microphone denied',level:OcLog.defaults().loglevels.WARN}))}},(error)=>{reject(new OcError({code:this.defaults().errors.STREAM_INIT_ERROR,data:{error:error},debugMessage:'Unexpected error while requesting microphone access',level:OcLog.defaults().loglevels.ERROR}))})})}__requiredFormat(){const defaults=this.defaults();switch(cordova.platformId){case'android':return defaults.deviceFormat.ANDROID;case'ios':return defaults.deviceFormat.IOS;default:return defaults.deviceFormat.DEFAULT}};__filePath(){const localPath=OLEFAApp.refID+'/soundrecorder.'+this.__requiredFormat();return localPath}async requestPermission(){const[isAuthorized,authorizationError]=await Oc.flattenPromise(this.__isMicrophoneAuthorized());if(authorizationError==null&&isAuthorized){return};await this.__requestMicrophoneAuthorization()}async record(){if(this.__internals.recordingPromise&&!this.__internals.recordingPromise.isResolved){throw new OcError({code:0,debugMessage:'Already running',level:OcLog.defaults().loglevels.WARN})};this.__internals.recordingPromise=new OcManualpromise();const localPath=this.__filePath();const fileEntry=await OLEFAApp.fsCache.createFile(localPath);if(this.__internals.recorder){this.__internals.recorder.destroy()};this.__internals.recorder=new OcAppRecorder(fileEntry);this.__initEvents__recorder();this.__internals.recorder.record();this.__internals.states.add('recording');return await this.__internals.recordingPromise.promise}stop(){if(this.__internals.recorder){this.__internals.recorder.stop()};this.__internals.states.remove('recording')}__trigger__newRecording(eventData){const event=new OcEvent({eventName:'new-recording',data:eventData,});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,errors:{...inheritedDefaults.errors,MISSING_CORDOVA_MODULE:81573},deviceFormat:{ANDROID:'aac',IOS:'m4a',DEFAULT:'mp3'}}}}Oc.OcMediaRecorderCordova=OcMediaRecorderCordova;"use strict";class OcAppRecorder{constructor(fileEntry){this.__internals={events:new OcEvents(),released:true,fileEntry:fileEntry,refId:OLEFA.basics.generateID(),recordDirectories:{ANDROID:cordova.file.externalCacheDirectory,IOS:cordova.file.tempDirectory,DEFAULT:cordova.file.cacheDirectory}};this.__reloadMedia();Object.defineProperty(this,'events',{get:()=>{return this.__internals.events}})}__getRecordFile(){switch(cordova.platformId){case'android':return`${this.__internals.recordDirectories.ANDROID}${this.__internals.fileEntry.name}`;case'ios':return this.__internals.fileEntry.toInternalURL();default:return`${this.__internals.recordDirectories.DEFAULT}${this.__internals.fileEntry.name}`}}__reloadMedia(){delete this.__internals.media;this.__internals.media=new Media(this.__getRecordFile(),this.__onMediaSuccess.bind(this),this.__onMediaError.bind(this),this.__onMediaStateChange.bind(this));this.__internals.released=true}__onMediaSuccess(){if(!this.__internals.released){this.release()};if(cordova.platformId=='ios'){this.__internals.events.trigger('dataready',{});return};const folders=this.__internals.fileEntry.fullPath.split('/');folders.shift();folders.pop();const folder=folders.join('/');Promise.all([OcAppFs.getFileEntryFor(this.__getRecordFile()),OLEFAApp.fsCache.checkDirectory(folder)]).then(values=>{const[fileEntry,pResolve]=values;if(pResolve.status){fileEntry.moveTo(pResolve.dirEntry,this.__internals.fileEntry.name,()=>{this.__internals.events.trigger('dataready',{})})}})}__onMediaError(error){switch(error.code){case MediaError.MEDIA_ERR_ABORTED:this.__internals.events.trigger('error-aborted',{});break;case MediaError.MEDIA_ERR_NETWORK:this.__internals.events.trigger('error-network',{});break;case MediaError.MEDIA_ERR_DECODE:this.__internals.events.trigger('error-decode',{});break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:this.__internals.events.trigger('error-none-supported',{});break;default:}this.release()}__onMediaStateChange(status){switch(status){case Media.MEDIA_STARTING:{this.__internals.events.trigger('start',{});break}case Media.MEDIA_RUNNING:{this.__internals.events.trigger('running',{});break}case Media.MEDIA_PAUSED:{this.__internals.events.trigger('pause',{});break}case Media.MEDIA_STOPPED:{this.__internals.events.trigger('stop',{});break}}}__getDuration(){return this.__internals.media?.getDuration()||0}__play(){if(this.__internals.media){this.__internals.media.play();this.__internals.media.stop()}}__fullRelease(){return new Promise((resolve,reject)=>{this.__internals.released=true;if(!this.__internals.media){return resolve()};const media=this.__internals.media;this.__play();setTimeout(()=>{media.release();delete this.__internals.media;return resolve()},1)})}record(){this.__internals.media?.startRecord()};start(){this.record()}stop(){this.__internals.media?.stopRecord()}release(){if(!this.__internals.released){this.__fullRelease()}}destroy(){this.__internals.events.destroy();this.release()}}oc.OcAppRecorder=OcAppRecorder;"use strict";class OcMediaRecorderNative extends OcMediaRecorder{constructor(properties){super(properties)}defaults(){return OcMediaRecorderNative.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.chunks=[]}__initialize(properties){super.__initialize(properties)}__initEvents__recorder(){if(!this.__internals.recorder){return};this.__internals.recorder.addEventListener('dataavailable',this.__onRecorder__dataavailable.bind(this));this.__internals.recorder.addEventListener('stop',this.__onRecorder__stop.bind(this))}__onRecorder__dataavailable(ev){this.__internals.chunks.push(ev.data)}__onRecorder__stop(ev){const blobProperties={};let extension='ogg';if(this.__internals.recorder){blobProperties.type=this.__internals.recorder.mimeType||'audio/opus';extension=(/audio\/mp4/).test(this.__internals.recorder.mimeType)?'m4a':'ogg'};const filename=`soundrecorder-${Math.round(Date.now() / 1000)}-${OLEFA.basics.randomNumber(1, 9999)}.${extension}`;const recording=new Oc.File(this.__internals.chunks,filename,blobProperties);this.__internals.chunks=[];this.__internals.recordingPromise?.resolve({recording:recording});
19this.__trigger__newRecording({recording:recording})}async __getMediaStream(){if(!this.isSupported()){throw new OcError({code:this.defaults().errors.NOT_SUPPORTED,debugMessage:'Recording audio not supported by this browser'})};const[localMediaStream,error]=await Oc.flattenPromise(navigator.mediaDevices.getUserMedia({video:false,audio:true}));if(error||localMediaStream==null){throw new OcError({code:this.defaults().errors.INIT_FAIL,data:{error:error},debugMessage:'getUserMedia failed'})};return localMediaStream}isSupported(){if(!navigator.mediaDevices){return false};if(!navigator.mediaDevices.getUserMedia){return false};if(!MediaRecorder){return false};return true}async requestPermission(){const[localMediaStream,error]=await Oc.flattenPromise(this.__getMediaStream());if(error||localMediaStream==null){if(error instanceof OcError){let errorCode;let debugMessage;switch(error.data.error.name){case'NotFoundError':{errorCode=this.defaults().errors.STREAM_INIT_ERROR_NO_MIC_FOUND;debugMessage='No microphones found';break}case'NotAllowedError':{errorCode=this.defaults().errors.STREAM_INIT_ERROR_ACCESS_DENIED;debugMessage='Not allowed to access media stream';break}case'OverconstrainedError':{errorCode=this.defaults().errors.STREAM_INIT_ERROR;debugMessage='Exact reason unknown, but most likely an issue where the current environment does not support all the features that are requested by getMediaStream';break}default:{errorCode=this.defaults().errors.STREAM_INIT_ERROR;debugMessage='Unhandled issue'}}throw new OcError({code:errorCode,data:error.data,debugMessage:debugMessage})}else{throw new OcError({code:this.defaults().errors.STREAM_INIT_ERROR,data:{error:error},debugMessage:'Unexpected error'})}};this.__internals.mediaStream=localMediaStream}async record(){if(this.__internals.recordingPromise&&!this.__internals.recordingPromise.isResolved){throw new OcError({code:0,debugMessage:'Already running',level:OcLog.defaults().loglevels.WARN})};this.__internals.recordingPromise=new OcManualpromise();if(!this.__internals.mediaStream){const[,error]=await Oc.flattenPromise(this.requestPermission());if(error){this.__internals.recordingPromise.reject(error);return await this.__internals.recordingPromise.promise}};const mediaStream=this.__internals.mediaStream;if(!this.__internals.recorder){this.__internals.recorder=new MediaRecorder(mediaStream);this.__initEvents__recorder()}this.__internals.recorder.start(100);this.__internals.states.add('recording');return await this.__internals.recordingPromise.promise}stop(){if(this.__internals.recorder&&this.__internals.recorder.state=='recording'){this.__internals.recorder.stop()};this.__internals.states.remove('recording')}__trigger__newRecording(eventData){const event=new OcEvent({eventName:'new-recording',data:eventData,});this.__internals.events.triggerEvent(event)}destroy(){if(this.__internals.recorder){this.__internals.recorder.removeEventListener('dataavailable',this.__onRecorder__dataavailable.bind(this));this.__internals.recorder.removeEventListener('stop',this.__onRecorder__stop.bind(this))}if(this.__internals.mediaStream){this.__internals.mediaStream.getTracks().forEach(track=>{track.stop()})};super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,errors:{...inheritedDefaults.errors,INIT_FAIL:71989,NOT_SUPPORTED:61176}}}}Oc.OcMediaRecorderNative=OcMediaRecorderNative;"use strict";class OcUiWebDialogAlertFsbrowserAuthenticated extends OcUiWebDialogAlertFsbrowser{__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.__allLangkitsSettled().finally(()=>{this.__internals.dom.authenticatingText.text(OLEFA.i18n.get('loading'));this.__internals.dom.authenticateText.text(OLEFA.i18n.get('unauthenticated_label'));this.__internals.elements.authenticateButton.label=OLEFA.i18n.get('authenticate')})}__initElements(){super.__initElements();this.__createDOMNodes({authenticating:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser-authenticated__authenticating',children:{authenticatingProgress:{component:OcMdProgressbarCircular,class:'oc-ui-web-dialog-alert-fsbrowser-authenticated__authenticating-progress',properties:{determinate:false}},authenticatingText:{tag:'span',class:'oc-ui-web-dialog-alert-fsbrowser-authenticated__authenticating-text'}}},authenticate:{tag:'div',class:'oc-ui-web-dialog-alert-fsbrowser-authenticated__authenticate',children:{authenticateText:{tag:'span',class:'oc-ui-web-dialog-alert-fsbrowser-authenticated__authenticate-text'},authenticateButton:{component:OcMdButtonStandard,class:'oc-ui-web-dialog-alert-fsbrowser-authenticated__authenticate-button',properties:{icon:'md:login',style:'contained'}}}}},this.__internals.dom.content);this.defer(()=>{this.__internals.dom.base.addClass('oc-ui-web-dialog-alert-fsbrowser-authenticated')})}__initStates(){super.__initStates();this.__internals.states.define({state:'must-authenticate'}).define({state:'authenticated'})}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,cssFiles:{...inheritedDefaults.cssFiles,uiWebDialogAlertFsbrowserAuthenticated:{file:"ui/web/dialog/alert/fsBrowser/authenticated.css",key:"--loaded--ui-web-dialog-alert-fsbrowser-authenticated"}},langkitFiles:{...inheritedDefaults.langkitFiles,login:"login.json"}}}}Oc.OcUiWebDialogAlertFsbrowserAuthenticated=OcUiWebDialogAlertFsbrowserAuthenticated;"use strict";class OcUiWebDialogAlertFsbrowserAuthenticatedDropox extends OcUiWebDialogAlertFsbrowserAuthenticated{defaults(){return OcUiWebDialogAlertFsbrowserAuthenticatedDropox.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.dropboxApi=new OcApiDropbox()}__initialize(properties){super.__initialize(properties);this.__allLangkitsSettled().finally(()=>{this.title='Dropbox'});'';this.__authenticate()}__initEvents(){super.__initEvents();this.__internals.elements.authenticateButton.events.listen('click',this.__onAuthenticateButton__click.bind(this),this.refID)}__onAuthenticateButton__click(){const link=this.__internals.elements.authenticateButton.base.attr('data-link');const consentWindow=window.open(link,'needConsent','height=500,width=500,dependent');if(consentWindow){jQuery(window).on(`message.${this.refID}.consent`,(event)=>{jQuery(window).off(`message.${this.refID}.consent`);if(event.originalEvent.data.status==1){this.__authenticate()}})}}__authenticate(){this.__internals.states.remove('must-authenticate');OcApiUserhome.oAuthAuthorization({service:'dropbox'}).then((response)=>{if(response.status=='needConsent'){this.__internals.elements.authenticateButton.base.attr('data-link',OcApiDropbox.getAuthorizeLink({clientId:response.client_id,redirectUrl:response.redirect_uri,state:response.hid}));this.__internals.states.add('must-authenticate')}else{this.__internals.dropboxApi.authorization=response.token;this.__internals.states.add('authenticated');this.setActiveNode(this.__getHomeNode())}})};async __getNodeChildrenRemote(nodeID){let r=[];const data=await this.__internals.dropboxApi.listFolder({path:nodeID});const fileLinks=[];r=data.entries.reduce((result,entry)=>{if(entry['.tag']!=''&&entry.path_display){const entryData={id:entry.path_display,name:entry.name,parent:nodeID,type:entry['.tag'],mimeType:(entry['.tag']=='file')?OcUtilities.guessMimeByExtension(O
19cUtilities.getFileExtension(entry.path_display)):'',preview:'',file:''};if(entry['.tag']=='file'){const fileData=new Promise((resolve)=>{this.__internals.dropboxApi.getTemporaryLink({path:entry.path_display||''}).then((data)=>{entryData.file=data.link}).finally(()=>{resolve()})});fileLinks.push(fileData)};result.push(entryData)}return result},[]);await Promise.all(fileLinks);return r}__addNode(nodeDefinition,parent){super.__addNode(nodeDefinition,parent)}async setActiveNode(nodeID){if(!this.__internals.states.hasState('authenticated')){return};return super.setActiveNode(nodeID)}static defaults(){const inheritedDefaults=super.defaults();inheritedDefaults.properties.homeNode='';return inheritedDefaults}}Oc.OcUiWebDialogAlertFsbrowserAuthenticatedDropox=OcUiWebDialogAlertFsbrowserAuthenticatedDropox;"use strict";class OcApiOlefaendpoint{static __getJson(mode,parameters){return OLEFA.fetch.getJson({...parameters,path:this.endpoint,parameters:{...parameters?.parameters,mode:mode},})}static __postJson(mode,parameters){return OLEFA.fetch.postJson({...parameters,path:this.endpoint,body:{...parameters?.body,mode:mode},})}static __get(mode,parameters){return OLEFA.fetch.get({...parameters,path:this.endpoint,parameters:{...parameters?.parameters,mode:mode},})}static __post(mode,parameters){return OLEFA.fetch.post({...parameters,path:this.endpoint,body:{...parameters?.body,mode:mode},})}}OcApiOlefaendpoint.endpoint='';"use strict";class OcApiUserhome extends OcApiOlefaendpoint{static async oAuthAuthorization(properties){const normalizedProperties={...{service:''},...properties,mode:this.__modes.OAUTH_AUTHORIZATION};const response=await this.__getJson(this.__modes.OAUTH_AUTHORIZATION,{path:OcApiUserhome.endpoint,headers:{'Content-Type':'application/json'},parameters:normalizedProperties});return response.data};static async getApiToken(parameters){const response=await this.__getJson(this.__modes.GET_API_TOKEN,{parameters:parameters});return response.data};static async sharePost(parameters){const normalizedProperties={...{text:'',shareWith:{global:true,groups:[]}},...parameters};const response=await this.__postJson(this.__modes.SHARE_POST,{body:{com:com,mode:'share-post',settings:JSON.stringify(normalizedProperties.shareWith),text:normalizedProperties.text}});if(response.data.status!=0){throw new OcError({code:response.data.status,debugMessage:'Failed to share post'})}}static async getProjectSharePanel(parameters){const normalizedParameters={...{module:'',projectId:'',pageId:''},...parameters};const response=await this.__getJson(this.__modes.GET_PROJECT_SHARE_PANEL,{parameters:{com:com,module:normalizedParameters.module,projectid:normalizedParameters.projectId,pageid:normalizedParameters.pageId}});return response.data}static async getBaseSharePanel(parameters){const normalizedParameters={...{projectId:'',pageId:''},...parameters};const response=await this.__getJson(this.__modes.GET_BASE_SHARE_PANEL,{parameters:{com:com,projectid:normalizedParameters.projectId,pageid:normalizedParameters.pageId}});return response.data}static async getShareLinks(parameters){const normalizedParameters={...{projectId:'',pageId:''},...parameters};const response=await this.__getJson(this.__modes.GET_SHARE_LINKS,{parameters:{com:com,projectid:normalizedParameters.projectId,pageid:normalizedParameters.pageId}});return response.data}static async ssoLogin(parameters){const normalizedParameters={...{id:'',type:'',linkback:OcDatatype.stringToBase64([window.location.pathname,window.location.search].join(''))},...parameters};const response=await this.__getJson(this.__modes.SSO_LOGIN,{parameters:{linkback:normalizedParameters.linkback,type:normalizedParameters.type,id:normalizedParameters.id}});jQuery('body').append(response.data.html);jQuery('form#SAMLAuthN').trigger('submit')}static async getProjects(parameters={},getParameters={}){return await this.__getJson(this.__modes.GET_PROJECTS,{...getParameters,parameters:{com:com,...parameters}})}}OcApiUserhome.__modes={OAUTH_AUTHORIZATION:'oauth_authorization',GET_API_TOKEN:'get_api_token',SHARE_POST:'share-post',GET_PROJECT_SHARE_PANEL:'getProjectSharePanel',GET_BASE_SHARE_PANEL:'getBaseSharePanel',GET_SHARE_LINKS:'getShareLinks',SSO_LOGIN:'SSOLogin',GET_PROJECTS:'get_projects'};OcApiUserhome.endpoint='/ajax/userhome';oc.OcApiUserhome=OcApiUserhome;"use strict";class OcApiDropbox{constructor(){this.urlBase='https://api.dropbox.com/2';this.authorization=''}__generateHeaders(){const headers={'Content-Type':'application/json; charset=utf-8'};if(this.authorization){headers.Authorization=`Bearer ${this.authorization}`};return headers}async listFolder(properties){const response=await OLEFA.fetch.post({host:this.urlBase,path:'/files/list_folder',headers:this.__generateHeaders(),body:JSON.stringify(properties)});const json=await response.data.json();return json}async getTemporaryLink(properties){const normalizedProperties={...{path:''},...properties};const response=await OLEFA.fetch.post({host:this.urlBase,path:'/files/get_temporary_link',headers:this.__generateHeaders(),body:JSON.stringify({path:normalizedProperties.path})});const json=await response.data.json();return json}async getPreview(properties){const normalizedProperties={...{path:''},...properties};const response=await OLEFA.fetch.post({host:"https://content.dropboxapi.com/2",path:'/files/get_preview',headers:{...this.__generateHeaders(),"Dropbox-API-Arg":JSON.stringify({path:normalizedProperties.path}),"Content-Type":"application/octet-stream"}});const json=await response.data.json();return json}async getMetadata(properties){const response=await OLEFA.fetch.post({host:this.urlBase,path:'/files/get_metadata',headers:this.__generateHeaders(),body:JSON.stringify(properties)});const json=await response.data.json();return json}static getAuthorizeLink(properties){const normalizedProperties={...{clientId:'',redirectUrl:'',state:''},...properties};return'https://www.dropbox.com/oauth2/authorize?client_id='+normalizedProperties.clientId+'&redirect_uri='+normalizedProperties.redirectUrl+'&response_type=code&state='+normalizedProperties.state+'&token_access_type=offline'}}oc.OcApiDropbox=OcApiDropbox;"use strict";class OcUiWebDialogAlertFsbrowserAuthenticatedOnedrive extends OcUiWebDialogAlertFsbrowserAuthenticated{defaults(){return OcUiWebDialogAlertFsbrowserAuthenticatedOnedrive.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.oneDriveApi=new OneDriveApi()}__initialize(properties){super.__initialize(properties);this.__allLangkitsSettled().finally(()=>{this.title='Onedrive'});this.__authenticate()}__initEvents(){super.__initEvents();this.__internals.elements.authenticateButton.events.listen('click',this.__onAuthenticateButton__click.bind(this),this.refID)}__onAuthenticateButton__click(){const link=this.__internals.elements.authenticateButton.base.attr('data-link');const consentWindow=window.open(link,'needConsent','height=500,width=500,dependent');if(consentWindow){jQuery(window).on(`message.${this.refID}.consent`,(event)=>{jQuery(window).off(`message.${this.refID}.consent`);if(event.originalEvent.data.status==1){this.__authenticate()}})}}__authenticate(){this.__internals.states.remove('must-authenticate');OcApiUserhome.oAuthAuthorization({service:'microsoft'}).then((response)=>{if(response.status=='needConsent'){this.__internals.elements.authenticateButton.base.attr('data-link',OneDriveApi.getAuthorizeLink({clientId:response.client_id,redirectUrl:response.redirect_uri,state:response.hid}));this.__internals.states.add('must-authenticate')}else{this.__internals.oneDriveApi.authorization=response.token;this.__internals.states.add('authenticated');this.__internals.oneDriveApi.getRootFolder().then(response=>{this.__setHomeNode(response.id);this.setActiveNode(this.__getHomeNode())})}})}async __getNodeChildrenRemote(nodeID){let r=[];const data=await this.__internals.oneDriveApi.getFolderContent(nodeID);r=data.value.reduce((result,entry)=>{const type=(entry.folder)?'folder':'file';const entryData={id:entry.id,name:entry.name,parent:nodeID,type:type,mimeType:'',preview:'',file:''};if(entryData.type=='file'){entryData.mimeType=this.__guessMime(entry);entryData.file=entry['@microsoft.graph.downloadUrl'];if(entry.thumbnails&&entry.thumbnails.length>
190){const thumbnailSet=entry.thumbnails[0];const thumbnail=thumbnailSet.medium||thumbnailSet.large||thumbnailSet.small;entryData.preview=thumbnail.url||entry['@microsoft.graph.downloadUrl']}else{entryData.preview=entry['@microsoft.graph.downloadUrl']}};result.push(entryData);return result},[]);return r}__guessMime(driveItem){if(driveItem.file&&driveItem.file.mimeType){return driveItem.file.mimeType}else if(driveItem.photo){return`image/${OcUtilities.getFileExtension(driveItem.name)}`}else if(driveItem.video){return`video/${OcUtilities.getFileExtension(driveItem.name)}`}else if(driveItem.audio){return`audio/${OcUtilities.getFileExtension(driveItem.name)}`}else{return OcUtilities.guessMimeByExtension(OcUtilities.getFileExtension(driveItem.name))}};async setActiveNode(nodeID){if(!this.__internals.states.hasState('authenticated')){return};return super.setActiveNode(nodeID)}static defaults(){const inheritedDefaults=super.defaults();inheritedDefaults.properties.homeNode='';return{...inheritedDefaults,properties:{...inheritedDefaults.properties,homeNode:''}}}}Oc.OcUiWebDialogAlertFsbrowserAuthenticatedOnedrive=OcUiWebDialogAlertFsbrowserAuthenticatedOnedrive;"use strict";class OneDriveApi{constructor(){this.urlBase='https://graph.microsoft.com/v1.0/me/drive';this.authorization=''}__generateHeaders(){const headers={'Content-Type':'application/json; charset=utf-8'};if(this.authorization){headers.Authorization=`Bearer ${this.authorization}`};return headers};async getRootFolder(){const response=await OLEFA.fetch.get({host:this.urlBase,path:'/root',headers:this.__generateHeaders()});const json=await response.data.json();return json}async getFolderContent(folderID){const response=await OLEFA.fetch.get({host:this.urlBase,path:`/items/${folderID}/children?selectid,@content.downloadUrl&expand=thumbnails(select=small)`,headers:this.__generateHeaders()});const json=await response.data.json();return json}static getAuthorizeLink(properties){const normalizedProperties={...{clientId:'',redirectUrl:'',state:''},...properties};return'https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id='+normalizedProperties.clientId+'&redirect_uri='+normalizedProperties.redirectUrl+'&scope=offline_access%20Files.ReadWrite%20User.Read&response_type=code&display=popup&state='+normalizedProperties.state}static isEnterpriseAccount(token){const encodedData=token.split('.');return encodedData.length>1}}oc.OneDriveApi=OneDriveApi;"use strict";class OcUiWebDialogAlertFsbrowserAuthenticatedGoogledrive extends OcUiWebDialogAlertFsbrowserAuthenticated{defaults(){return OcUiWebDialogAlertFsbrowserAuthenticatedGoogledrive.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.googleDriveApi=new GoogleDriveApi()}__initialize(properties){super.__initialize(properties);this.__allLangkitsSettled().finally(()=>{this.title='Google Drive'});'';this.__authenticate()}__initEvents(){super.__initEvents();this.__internals.elements.authenticateButton.events.listen('click',this.__onAuthenticateButton__click.bind(this),this.refID)}__onAuthenticateButton__click(){const link=this.__internals.elements.authenticateButton.base.attr('data-link');const consentWindow=window.open(link,'needConsent','height=500,width=500,dependent');if(consentWindow){jQuery(window).on(`message.${this.refID}.consent`,(event)=>{jQuery(window).off(`message.${this.refID}.consent`);if(event.originalEvent.data.status==1){this.__authenticate()}})}}__authenticate(){this.__internals.states.remove('must-authenticate');OcApiUserhome.oAuthAuthorization({service:'google'}).then((response)=>{if(response.status=='needConsent'){this.__internals.elements.authenticateButton.base.attr('data-link',GoogleDriveApi.getAuthorizeLink({clientId:response.client_id,redirectUrl:response.redirect_uri,state:response.hid}));this.__internals.states.add('must-authenticate')}else{this.__internals.googleDriveApi.authorization=response.token;this.__internals.states.add('authenticated');this.__internals.googleDriveApi.getRootFolder().then(response=>{this.__setHomeNode(response.rootFolderId);this.setActiveNode(this.__getHomeNode())})}})}async __getNodeChildrenRemote(nodeID){let r=[];const data=await this.__internals.googleDriveApi.getFolderContent(nodeID);r=data.files.reduce((result,entry)=>{const type=(entry.mimeType=='application/vnd.google-apps.folder')?'folder':'file';const entryData={id:entry.id,name:entry.name,parent:nodeID,type:type,mimeType:entry.mimeType,preview:entry.thumbnailLink||entry.iconLink||entry.contentHints.thumbnail?.image||'',file:this.__internals.googleDriveApi.getDownloadLink(entry.id)};result.push(entryData);return result},[]);return r}
19async setActiveNode(nodeID){if(!this.__internals.states.hasState('authenticated')){return};return super.setActiveNode(nodeID)}static defaults(){const inheritedDefaults=super.defaults();inheritedDefaults.properties.homeNode='';return inheritedDefaults}}Oc.OcUiWebDialogAlertFsbrowserAuthenticatedGoogledrive=OcUiWebDialogAlertFsbrowserAuthenticatedGoogledrive;"use strict";class GoogleDriveApi{constructor(){this.urlBase='https://www.googleapis.com/drive/v3';this.authorization=''}async getRootFolder(){const response=await OLEFA.fetch.get({host:'https://www.googleapis.com/drive/v2',path:'/about',parameters:{access_token:this.authorization,fields:'rootFolderId'}});const json=await response.data.json();return json}async getFolderContent(folderID){const response=await OLEFA.fetch.get({host:this.urlBase,path:'/files',parameters:{access_token:this.authorization,fields:'files(contentHints/thumbnail,fullFileExtension,iconLink,id,mimeType,name,thumbnailLink)',orderBy:'folder,name',q:"'"+folderID+"' in parents and trashed = false"}});const json=await response.data.json();return json}getDownloadLink(nodeID){return`${this.urlBase}/files/${nodeID}?alt=media`}static getAuthorizeLink(properties){const normalizedProperties={...{clientId:'',redirectUrl:'',state:''},...properties};return'https://accounts.google.com/o/oauth2/v2/auth?scope='+encodeURI("https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/userinfo.profile")+'&state='+normalizedProperties.state+'&redirect_uri='+normalizedProperties.redirectUrl+'&response_type=code&client_id='+normalizedProperties.clientId+'&access_type=offline&prompt=consent'}}oc.GoogleDriveApi=GoogleDriveApi;"use strict";class OcUiWebDialogAlertFsbrowserPixabay extends OcMdDialogAlert{defaults(){return OcUiWebDialogAlertFsbrowserPixabay.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,multiSelect:{get:this.__getMultiSelect.bind(this),set:this.__setMultiSelect.bind(this)},selectedFiles:{get:this.__getSelectedFiles.bind(this)}};return extendedDefinitions}__getMultiSelect(){return this.properties.multiSelect}__setMultiSelect(value){this.properties.multiSelect=value}__getSelectedFiles(){const IdsOfSelectedNodes=Object.values(this.__internals.nodeItems).filter((nodeItem)=>{return nodeItem.selected}).map((nodeItem)=>{return nodeItem.nodeID});const returnData=[];IdsOfSelectedNodes.forEach(id=>{const nodeData=this.__internals.nodes[id];if(nodeData&&nodeData.type=='file'){returnData.push(nodeData)}});return returnData}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.pixabayApi=new OcApiPixabay();this.__internals.nodeItems={};this.__internals.nodes={};this.__internals.currentPage=1;this.propertyHandlers.multiSelect=this.__setMultiSelect}__initialize(properties){super.__initialize(properties);this.title='Pixabay';this.addButton({button:this.__internals.elements.buttonSelect,value:'select',order:'00'});this.addButton({button:this.__internals.elements.buttonCancel,value:'cancel',order:'01'});this.__internals.flexibleGrid=new OcInteractivityFlexiblegrid(this.__internals.dom.filePanel,{margin:8,targetSize:120});this.__handleUIDisabledStates();this.__authenticate();this.__allLangkitsSettled().finally(()=>{this.__internals.elements.searchInput.label=OLEFA.i18n.get('category');this.__internals.dom.searchSuggestionAnimals.text(OLEFA.i18n.get('pixabay-animals'));this.__internals.dom.searchSuggestionBackground.text(OLEFA.i18n.get('pixabay-backgrounds'));this.__internals.dom.searchSuggestionBuildings.text(OLEFA.i18n.get('pixabay-buildings'));this.__internals.dom.searchSuggestionComputer.text(OLEFA.i18n.get('pixabay-computer'));this.__internals.dom.searchSuggestionEducation.text(OLEFA.i18n.get('pixabay-education'));this.__internals.dom.searchSuggestionFeelings.text(OLEFA.i18n.get('pixabay-feelings'));this.__internals.dom.searchSuggestionFood.text(OLEFA.i18n.get('pixabay-food'));this.__internals.dom.searchSuggestionHealth.text(OLEFA.i18n.get('pixabay-health'));this.__internals.dom.searchSuggestionMusic.text(OLEFA.i18n.get('pixabay-music'));this.__internals.dom.searchSuggestionNature.text(OLEFA.i18n.get('pixabay-nature'));this.__internals.dom.searchSuggestionPeople.text(OLEFA.i18n.get('pixabay-people'));this.__internals.dom.searchSuggestionPlaces.text(OLEFA.i18n.get('pixabay-places'));this.__internals.dom.searchSuggestionReligion.text(OLEFA.i18n.get('pixabay-religion'));this.__internals.dom.searchSuggestionScience.text(OLEFA.i18n.get('pixabay-science'));this.__internals.dom.searchSuggestionSports.text(OLEFA.i18n.get('pixabay-sports'));this.__internals.dom.searchSuggestionTransport.text(OLEFA.i18n.get('pixabay-transport'));this.__internals.dom.searchSuggestionTravel.text(OLEFA.i18n.get('pixabay-travel'))})}__initElements(){super.__initElements();const cssBase=`oc-ui-web-dialog-alert-fsbrowser-pixabay`;this.__createDOMNodes({buttonCancel:{component:OcMdButtonStandard,class:`${cssBase}__button-cancel`,properties:{label:OLEFA.i18n.get('cancel'),}},buttonSelect:{component:OcMdButtonStandard,class:`${cssBase}__button-select`,properties:{label:OLEFA.i18n.get('select'),style:'containedFlush',disabled:true}}});this.__createDOMNodes({authenticating:{tag:'div',class:`${cssBase}__authenticating`,children:{authenticatingProgress:{component:OcMdProgressbarCircular,class:`${cssBase}__authenticating-progress`,properties:{determinate:false}},authenticatingText:{tag:'span',class:`${cssBase}__authenticating-text`}}},searchSuggestions:{tag:'datalist',class:`${cssBase}__search-suggestions`,attributes:{id:`${this.refID}-search-suggestions`},children:{searchSuggestionAnimals:{tag:'option',attributes:{value:'animals'}}
19,searchSuggestionBackground:{tag:'option',attributes:{value:'background'}},searchSuggestionBuildings:{tag:'option',attributes:{value:'buildings'}},searchSuggestionComputer:{tag:'option',attributes:{value:'computer'}},searchSuggestionEducation:{tag:'option',attributes:{value:'education'}},searchSuggestionFeelings:{tag:'option',attributes:{value:'feelings'}},searchSuggestionFood:{tag:'option',attributes:{value:'food'}},searchSuggestionHealth:{tag:'option',attributes:{value:'health'}},searchSuggestionMusic:{tag:'option',attributes:{value:'music'}},searchSuggestionNature:{tag:'option',attributes:{value:'nature'}},searchSuggestionPeople:{tag:'option',attributes:{value:'people'}},searchSuggestionPlaces:{tag:'option',attributes:{value:'places'}},searchSuggestionReligion:{tag:'option',attributes:{value:'religion'}},searchSuggestionScience:{tag:'option',attributes:{value:'science'}},searchSuggestionSports:{tag:'option',attributes:{value:'sports'}},searchSuggestionTransport:{tag:'option',attributes:{value:'transport'}},searchSuggestionTravel:{tag:'option',attributes:{value:'travel'}}}},contentHeader:{tag:'header',class:`${cssBase}__content-header`,children:{pixabayMention:{tag:'span',class:`${cssBase}__pixabay-mention`},searchForm:{tag:'form',class:`${cssBase}__search-form`,children:{searchInput:{component:OcMdInputTextOutlined,class:`${cssBase}__search-input`,properties:{type:'search',list:`${this.refID}-search-suggestions`}}}}}},pixabayContent:{tag:'section',class:`${cssBase}__pixabay-content`,children:{spinnerWrapper:{tag:'div',class:`${cssBase}__spinner-wrapper`,children:{spinner:{component:OcMdProgressbarCircular,class:`${cssBase}__spinner`,properties:{determinate:false,visible:false}}}},mediaWrapper:{tag:'div',class:`${cssBase}__media-wrapper`,children:{filePanel:{tag:'ol',class:`${cssBase}__file-panel`},}}}},footer:{tag:'footer',class:`${cssBase}__footer`,children:{prevPageButton:{component:OcMdButtonIcon,class:`${cssBase}__prev-page-button`,properties:{icon:'md:navigate_before'}},pageStatus:{tag:'span',class:`${cssBase}__page-status`},nextPageButton:{component:OcMdButtonIcon,class:`${cssBase}__next-page-button`,properties:{icon:'md:navigate_next'}}}},},this.__internals.dom.content);this.defer(()=>{this.__internals.dom.base.addClass(cssBase);this.__internals.dom.pixabayMention.html('<a href="https://www.pixabay.com" target="_blank">www.pixabay.com</a>')})}__initStates(){super.__initStates();this.__internals.states.define({state:OcUiWebDialogAlertFsbrowserPixabay.__states.AUTHENTICATED}).define({state:OcUiWebDialogAlertFsbrowserPixabay.__states.FIRST_PAGE,onChange:this.__onStateChange__firstPage.bind(this)}).define({state:OcUiWebDialogAlertFsbrowserPixabay.__states.LAST_PAGE,onChange:this.__onStateChange__lastPage.bind(this)}).define({state:OcUiWebDialogAlertFsbrowserPixabay.__states.ACTIVE_REQUEST,onChange:this.__onStateChange__activeRequest.bind(this)}).define({state:OcUiWebDialogAlertFsbrowserPixabay.__states.HAS_IMAGES,onChange:this.__onStateChange__hasImages.bind(this)})}__onStateChange__firstPage(){this.__handleUIDisabledStates()}__onStateChange__lastPage(){this.__handleUIDisabledStates()}__onStateChange__activeRequest(){this.__handleUIDisabledStates()}__onStateChange__hasImages(){this.__handleUIDisabledStates()}__initEvents(){super.__initEvents();this.__internals.elements.searchInput.input.on(`change.${this.refID}`,this.__onSearchInput__change.bind(this));this.__internals.dom.searchForm.on(`submit.${this.refID}`,this.__onSearchForm__submit.bind(this));this.__internals.elements.prevPageButton.events.listen('click',this.__onPrevPageButton__click.bind(this),this.refID);this.__internals.elements.nextPageButton.events.listen('click',this.__onNextPageButton__click.bind(this),this.refID)}__onSearchInput__change(){this.__getImages(String(this.__internals.elements.searchInput.value))}__onSearchForm__submit(ev){ev.preventDefault();this.__getImages(String(this.__internals.elements.searchInput.value)).catch((error)=>{})}__onPrevPageButton__click(){this.__getImages(String(this.__internals.elements.searchInput.value),--this.__internals.currentPage)}__onNextPageButton__click(){this.__getImages(String(this.__internals.elements.searchInput.value),++this.__internals.currentPage)}__initEvents__nodeItem(nodeItem){nodeItem.events.listen('click',this.__onNodeItem__click.bind(this,nodeItem),this.refID).listen('property-change',this.__onNodeItem__propertyChange.bind(this,nodeItem))}__onNodeItem__click(nodeItem,e){nodeItem.selected=!nodeItem.selected}__onNodeItem__propertyChange(nodeItem,e){if(e.property=='selected'){if(e.value&&!this.properties.multiSelect){Object.values(this.__internals.nodeItems).forEac
19h(thisNodeItem=>{if(nodeItem.refID!=thisNodeItem.refID){thisNodeItem.selected=false}})};this.__handleItemSelection()};return this};__handleUIDisabledStates(){const isOnFirstPage=this.__internals.states.hasState(OcUiWebDialogAlertFsbrowserPixabay.__states.FIRST_PAGE);const isOnLastPage=this.__internals.states.hasState(OcUiWebDialogAlertFsbrowserPixabay.__states.LAST_PAGE);const doesActiveRequestExist=this.__internals.states.hasState(OcUiWebDialogAlertFsbrowserPixabay.__states.ACTIVE_REQUEST);const hasImages=this.__internals.states.hasState(OcUiWebDialogAlertFsbrowserPixabay.__states.HAS_IMAGES);this.__internals.elements.prevPageButton.disabled=isOnFirstPage||doesActiveRequestExist||!hasImages;this.__internals.elements.nextPageButton.disabled=isOnLastPage||doesActiveRequestExist||!hasImages;this.__internals.elements.searchInput.disabled=doesActiveRequestExist;this.__internals.elements.spinner.visible=doesActiveRequestExist}__handleItemSelection(){const isAtLeastOnItemSelected=Object.values(this.__internals.nodeItems).some(nodeItem=>{return nodeItem.selected});this.__internals.elements.buttonSelect.disabled=!isAtLeastOnItemSelected;return this}async __getImages(q,page=1){if(this.__internals.states.hasState(OcUiWebDialogAlertFsbrowserPixabay.__states.ACTIVE_REQUEST)){return};if(page<1){page=1};this.__internals.states.add(OcUiWebDialogAlertFsbrowserPixabay.__states.ACTIVE_REQUEST);const[response,error]=await Oc.flattenPromise(this.__internals.pixabayApi.getList({q:this.__internals.elements.searchInput.value,page:page}));if(error||response===null){throw error;};this.__internals.dom.filePanel.empty();this.__internals.nodeItems={};const pages=Math.ceil(response.totalHits/OcApiPixabay.hitsPerPage);this.__internals.states.set(OcUiWebDialogAlertFsbrowserPixabay.__states.FIRST_PAGE,page==1);this.__internals.states.set(OcUiWebDialogAlertFsbrowserPixabay.__states.LAST_PAGE,page==pages);this.__internals.dom.pageStatus.text(`${page}/${pages}`);this.__internals.states.remove(OcUiWebDialogAlertFsbrowserPixabay.__states.ACTIVE_REQUEST);response.hits.forEach(hit=>{const nodeItemProperties={name:OcUtilities.getFileNameFromPath(hit.previewURL),nodeID:String(hit.id),type:`image/${OcUtilities.getFileExtension(hit.imageURL)}`,nodeType:'item'};const nodeItem=new OcUiWebDialogAlertFsbrowserNodeitem(nodeItemProperties);nodeItem.base.attr('tabindex','-1');const extension=OcUtilities.getFileExtension(nodeItem.name).toLowerCase();const img=new OcHtmlImg({src:hit.previewURL,fallBackImage:`${OLEFA.environment.folders.icons}/mime/${extension}.png`});nodeItem.preview.append(img.base);this.__internals.nodeItems[nodeItem.refID]=nodeItem;this.__initEvents__nodeItem(nodeItem);nodeItem.base.appendTo(this.__internals.dom.filePanel);this.__internals.nodes[hit.id]={file:hit.imageURL,id:String(hit.id),mimeType:`image/${OcUtilities.getFileExtension(hit.imageURL)}`,name:OcUtilities.getFileNameFromPath(hit.previewURL),preview:hit.previewURL,type:"file"}});this.__internals.states.add(OcUiWebDialogAlertFsbrowserPixabay.__states.HAS_IMAGES)};async __authenticate(){const[response,error]=await Oc.flattenPromise(OcApiUserhome.getApiToken({service:'pixabay'}));if(error||response===null){throw new OcError({code:error,debugMessage:"Unable to get API key"})};this.__internals.pixabayApi.authorization=response.api_key;this.__internals.states.add(OcUiWebDialogAlertFsbrowserPixabay.__states.AUTHENTICATED)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,multiSelect:false},cssFiles:{...inheritedDefaults.cssFiles,uiWebDialogAlertFsbrowserPixabay:{file:"ui/web/dialog/alert/fsBrowser/pixabay.css",key:"--loaded--ui-web-dialog-alert-fsbrowser-pixabay"}},langkitFiles:{...inheritedDefaults.langkitFiles,upload:"upload.json"}}}}OcUiWebDialogAlertFsbrowserPixabay.__states={...OcMdDialogAlert.__states,AUTHENTICATED:'authenticated',FIRST_PAGE:'first-page',LAST_PAGE:'last-page',ACTIVE_REQUEST:'active-request',HAS_IMAGES:'has-images'};oc.OcUiWebDialogAlertFsbrowserPixabay=OcUiWebDialogAlertFsbrowserPixabay;"use strict";class OcApiPixabay{constructor(){this.urlBase='https://pixabay.com/api/';this.authorization=''}async getList(parameters){const normalizedParameters={...{q:'',lang:OLEFA.environment.language,page:1},...parameters};normalizedParameters.q=encodeURIComponent(normalizedParameters.q);normalizedParameters.q=normalizedParameters.q.replace('%20',);const[response,error]=await Oc.flattenPromise(OLEFA.fetch.get({host:this.urlBase,cac
19heName:'Pixabay',autoHeaders:false,parameters:{...normalizedParameters,key:this.authorization,safesearch:'true',per_page:OcApiPixabay.hitsPerPage}}));if(error||response===null){throw new OcError({code:("errorCode"in error)?error.errorCode:error,data:error,debugMessage:"Request to Pixabay failed"})};const[json,error2]=await Oc.flattenPromise(response.data.json());if(error2||json===null){throw new OcError({code:("errorCode"in error2)?error2.errorCode:error2,data:error2,debugMessage:"Response is not JSON"})}return json}}OcApiPixabay.hitsPerPage=100;Oc.OcApiPixabay=OcApiPixabay;"use strict";class OcInteractivityFilebucketFile extends OcComponent{constructor(properties){super(properties)};defaults(){return OcInteractivityFilebucketFile.defaults()};__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,file:{get:()=>{return this.__getFile()}},name:{get:()=>{return this.__getName()}},source:{get:this.__getSource.bind(this)},type:{get:()=>{return this.__internals.type}},filename:{get:()=>{return this.__getName()||this.__internals.filename}},extension:{get:()=>{return this.__internals.extension}}};return extendedDefinitions}__getFile(){return this.properties.file};__setFile(value){this.properties.file=value;this.__analyzeFile()};__getName(){return this.properties.name};__setName(value){this.properties.name=value;this.__analyzeFile()};__getSource(){return this.properties.source};__setSource(value){this.properties.source=value};__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.file=this.__setFile;this.propertyHandlers.name=this.__setName;this.propertyHandlers.source=this.__setSource}__initialize(properties){this.__initProperties(properties)}__analyzeFile(){if(this.properties.file instanceof Oc.File){this.__internals.type='filehandle';this.__analyzeFileHandle(this.properties.file)}else{this.__internals.type='reference';this.__analyzeFileReference(this.properties.file)}}__analyzeFileHandle(file){this.__internals.filename=file.name;this.__internals.extension=this.__getFileExtension(file.name)}__analyzeFileReference(file){this.__internals.filename=this.__getFileNameFromPath(file.file);this.__internals.extension=this.__getFileExtension(this.filename)}__getFileExtension(filename){const parts=filename.split('.');return parts.pop()||''}__getFileNameFromPath(path){const parts=path.split('/');return parts.pop()||''}static defaults(){const inheritedDefaults=super.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,file:new Oc.File([],'foo.bar'),name:'',source:''}};return extendedDefaults}}oc.OcInteractivityFilebucketFile=OcInteractivityFilebucketFile;"use strict";class OcImageprocessing extends OcComponent{defaults(){return OcImageprocessing.defaults()}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.queue=[];this.__internals.processing=false;this.__internals.canvas=null;this.__internals.ocvs=null}async __startProcessing(){if(this.__internals.processing||this.__internals.queue.length==0){return};this.__internals.processing=true;try{await this.__processNextItem();this.__internals.processing=false}catch(e){this.__internals.processing=false};this.__startProcessing()}__processNextItem(){return Oc.flatPromise(async(resolve,reject)=>{const job=this.__internals.queue.shift();if(!job){return}const[resizedFile,error]=await this.__resize(job.file,{resolution:job.resolution,rotate:job.rotate});if(resizedFile){job.promise.resolve(resizedFile)}else{job.promise.reject(error)};resolve()})}__isRotationNecessary(){const u=navigator.userAgent;const b=this.__getVendorFromUseragent(u);let matches;let isRotationNecessary=false;switch(b){case'chrome':matches=u.match(/(Chrome|CriOS)\/(\d{2,3})\./u);isRotationNecessary=Boolean(matches!==null&&typeof(matches[2])!='undefined'&&Number(matches[2])<81);break;case'firefox':matches=u.match(/Firefox\/(\d{1,3}\.\d{1,2})/u);isRotationNecessary=Boolean(matches!==null&&typeof(matches[1])!='undefined'&&typeof(matches)!='undefined'&&Number(matches[1])<77);case'explorer':isRotationNecessary=true;case'safari':matches=u.match(/Version\/(\d{2,3}(\..*?|)) ((Mobile(\/.*|) )|)Safari/u);isRotationNecessary=Boolean(matches!==null&&typeof(matches[1])!='undefined'&&this.__isRotationNecessaryBySafariVersion(matches[1],'web'));break;case'iOS':{matches=u.match(/OS (\d{1,2}_\d{1,2}(_\d{1,2})?)/u);isRotationNecessary=Boolean(matches!==null&&typeof(matches[1])!='undefined'&&this.__isRotationNecessaryBySafariVersion(matches[1],'mobile'));break}default:}return isRotationNecessary}__isRotationNecessaryBySafariVersion(version,webOrMobile){if(typeof(version)!='undefined'&&version!=''){const versions=(webOrMobile=='mobile')?version.match(/(\d{1,2})_((\d{1,2}))(_(\d{1,2}))?/u):version.match(/(\d{2,3})(\.(\d{1,2})|)(\.(\d{1,2})|)/u);
19if(versions!==null){var maj=typeof(versions[1])!='undefined'?versions[1]:'0';var min=typeof(versions[3])!='undefined'?versions[3].padStart(2,'0'):'00';var suf=typeof(versions[5])!='undefined'?versions[5].padStart(2,'0'):'00';var versionStringResult=parseInt(maj+min+suf,10);var compareVersion=(webOrMobile=='mobile')?130401:130100;return Boolean(versionStringResult<compareVersion)}};return false}__getVendorFromUseragent(useragent){if((/(iPad|iPhone|iPod)/).test(useragent)){return'iOS'}else if((/(Chrome|CriOS)/).test(useragent)){return'chrome'}else if((/(Safari)/).test(useragent)){return'safari'}else if((/Firefox/).test(useragent)){return'firefox'}else if((/Trident/).test(useragent)){return'explorer'};return''}__getImageOrientation(dataURL){const blobbed=atob(dataURL.replace(/^.*?,/u,''));let orientation=1;if(!JpegMeta){return orientation};try{const jpeg=new JpegMeta.JpegFile(blobbed,'foo');orientation=jpeg.tiff.Orientation.value}catch(e){};return orientation};__isCanvasSizeUsable(width,height){let cropCanvas;let testCanvas;const fill=[width-1,height-1,1,1];cropCanvas=document.createElement('canvas');cropCanvas.width=1;cropCanvas.height=1;testCanvas=document.createElement('canvas');testCanvas.width=width;testCanvas.height=height;const cropCanvasContext=cropCanvas.getContext('2d');const testCanvasContext=testCanvas.getContext('2d');if(testCanvasContext&&cropCanvasContext){testCanvasContext.fillRect.apply(testCanvasContext,fill);cropCanvasContext.drawImage(testCanvas,width-1,height-1,1,1,0,0,1,1)}const isCanvasSizeUsable=cropCanvasContext!=null&&cropCanvasContext.getImageData(0,0,1,1).data[3]!==0;return isCanvasSizeUsable}__resize(file,properties){return Oc.flatPromise(async(resolve,reject)=>{const defaults=this.defaults();const dataURL=await OcImageprocessing.fileToData(file);if(!this.__internals.canvas){this.__internals.canvas=document.createElement('canvas')};if(!this.__internals.ocvs){this.__internals.ocvs=document.createElement('canvas')};const canvas=this.__internals.canvas;const ctx=canvas.getContext('2d',{alpha:true});if(!ctx){return reject(defaults.errors.LOAD_ERROR)}const ocvs=this.__internals.ocvs;const octx=ocvs.getContext('2d',{alpha:true});if(!octx){return reject(defaults.errors.LOAD_ERROR)};const img=new Image();img.onerror=function(){reject(defaults.errors.LOAD_ERROR)};img.onload=()=>{let orientation=1;if(this.__isRotationNecessary()){orientation=this.__getImageOrientation(dataURL)};const originalImageSize={width:img.width,height:img.height};const canvasLimits={width:img.width,height:img.height};const iosMaxCanvasSize=4096;if((originalImageSize.width>iosMaxCanvasSize||originalImageSize.height>iosMaxCanvasSize)&&!this.__isCanvasSizeUsable(originalImageSize.width,originalImageSize.height)){const scaledownRatio=Math.max(img.width,img.height)/iosMaxCanvasSize;const scaledDownWidth=img.width/scaledownRatio;const scaledDownHeight=img.height/scaledownRatio;canvasLimits.width=scaledDownWidth;canvasLimits.height=scaledDownHeight;originalImageSize.width=scaledDownWidth;originalImageSize.height=scaledDownHeight};
19ocvs.width=canvasLimits.width;ocvs.height=canvasLimits.height;octx.clearRect(0,0,canvasLimits.width,canvasLimits.height);octx.drawImage(img,0,0,canvasLimits.width,canvasLimits.height);if(orientation==8||orientation==6){originalImageSize.width=canvasLimits.height;originalImageSize.height=canvasLimits.width};const targetSize={width:originalImageSize.width,height:originalImageSize.height};if(properties&&properties.resolution){const matches=properties.resolution.match(/^(.*)x(.*)$/);if(matches){const[,width,height]=matches;const numericWidth=Number(width);const numericHeight=Number(height);if(Number.isFinite(numericWidth)&&Number.isFinite(numericHeight)){targetSize.width=Math.min(originalImageSize.width,numericWidth);targetSize.height=Math.min(originalImageSize.height,numericHeight)}}}if(originalImageSize.width>originalImageSize.height){if(originalImageSize.width>targetSize.width){targetSize.height=originalImageSize.height*targetSize.width/originalImageSize.width}}else{if(originalImageSize.height>targetSize.height){targetSize.width=originalImageSize.width*targetSize.height/originalImageSize.height}};canvas.width=originalImageSize.width;canvas.height=originalImageSize.height;ctx.translate(originalImageSize.width/2,originalImageSize.height/2);let radiants=0;if([3,8,6].includes(orientation)){switch(orientation){case 3:radiants=Math.PI;break;case 8:radiants=-Math.PI/2;break;case 6:radiants=Math.PI/2;break;default:}}ctx.rotate(radiants);ctx.clearRect(0,0,originalImageSize.width,originalImageSize.height);ctx.drawImage(ocvs,-canvasLimits.width/2,-canvasLimits.height/2,canvasLimits.width,canvasLimits.height);ctx.rotate(-radiants);ctx.translate(-originalImageSize.width/2,-originalImageSize.height/2);const intermittentTargetSize={...canvasLimits};ocvs.width=intermittentTargetSize.width;ocvs.height=intermittentTargetSize.height;octx.clearRect(0,0,intermittentTargetSize.width,intermittentTargetSize.height);octx.drawImage(canvas,0,0,intermittentTargetSize.width,intermittentTargetSize.height);const stepDownOnce=async()=>{intermittentTargetSize.width=Math.round(intermittentTargetSize.width/2);intermittentTargetSize.height=Math.round(intermittentTargetSize.height/2);ocvs.width=intermittentTargetSize.width;ocvs.height=intermittentTargetSize.height;octx.clearRect(0,0,intermittentTargetSize.width,intermittentTargetSize.height);octx.drawImage(canvas,0,0,intermittentTargetSize.width,intermittentTargetSize.height);canvas.width=intermittentTargetSize.width;canvas.height=intermittentTargetSize.height;ctx.clearRect(0,0,intermittentTargetSize.width,intermittentTargetSize.height);ctx.drawImage(ocvs,0,0,intermittentTargetSize.width,intermittentTargetSize.height,0,0,intermittentTargetSize.width,intermittentTargetSize.height)};const stepDown=async()=>{while(intermittentTargetSize.width/2>targetSize.width||intermittentTargetSize.height/2>targetSize.height){await stepDownOnce()};canvas.width=targetSize.width;canvas.height=targetSize.height;ctx.clearRect(0,0,targetSize.width,targetSize.height);ctx.drawImage(ocvs,0,0,targetSize.width,targetSize.height);canvas.toBlob((blob)=>{if(!blob){return reject(defaults.errors.LOAD_ERROR)};const resizedFile=new Oc.File([blob],file.name,{type:'image/jpeg'});canvas.width=0;canvas.height=0;ctx.clearRect(0,0,0,0);ocvs.width=0;ocvs.height=0;octx.clearRect(0,0,0,0);img.remove();resolve(resizedFile)},'image/jpeg',0.6)};stepDown()};img.src=dataURL})}process(file,parameters){const normalizedParameters={...{resolution:'1280x1280',rotate:true},...parameters};if(!(/^image\/.*$/).test(file.type)){return Promise.reject(this.defaults().errors.NOT_AN_IMAGE)}const job={file:file,resolution:normalizedParameters.resolution,rotate:normalizedParameters.rotate,promise:new OcManualpromise()};this.__internals.queue.push(job);this.defer(()=>{this.__startProcessing()});return job.promise.promise}static defaults(){const defaultData=OcComponent.defaults();defaultData.errors={NOT_AN_IMAGE:57804,LOAD_ERROR:78292};defaultData.iosMaxCanvasSize=5000000;return defaultData}static async fileToData(file){return new Promise((resolve,reject)=>{const fileReader=new FileReader();fileReader.onerror=function(ev){reject(ev)};fileReader.onload=function(e){if(e.target&&typeof e.target.result=='string'){resolve(e.target.result)}else{reject()}};
19fileReader.readAsDataURL(file)})}}oc.OcImageprocessing=OcImageprocessing;"use strict";class OcError extends OcComponent{constructor(properties){super(properties)};defaults(){return OcError.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,code:{get:()=>{return this.__getCode()}},data:{get:()=>{return this.__getData()}},debugMessage:{get:()=>{return this.__getDebugMessage()}},level:{get:this.__getLevel.bind(this)}};return extendedDefinitions}__getCode(){return this.properties.code}__setCode(value){this.properties.code=value}__getData(){return this.properties.data}__setData(value){this.properties.data=value};__getDebugMessage(){return this.properties.debugMessage}__setDebugMessage(value){this.properties.debugMessage=value}__getLevel(){return this.properties.level}__setLevel(value){this.properties.level=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.code=this.__setCode;this.propertyHandlers.data=this.__setData;this.propertyHandlers.debugMessage=this.__setDebugMessage;this.propertyHandlers.level=this.__setLevel}__initialize(properties){this.__initProperties(properties);this.__toConsole()};__toConsole(){const loglevels=OLEFA.log.defaults().loglevels;if(this.properties.level>=loglevels.ERROR){OLEFA.log.error(this.exportProperties())}else if(this.properties.level>=loglevels.WARN){OLEFA.log.warn(this.exportProperties())}else if(this.properties.level>
19=loglevels.INFO){OLEFA.log.info(this.exportProperties())}else if(this.properties.level>=loglevels.DEBUG){OLEFA.log.debug(this.exportProperties())}}static defaults(){const inheritedDefaults=super.defaults();const logDefaults=OcLog.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,code:0,data:{},debugMessage:'',level:logDefaults.loglevels.DEBUG},loglevels:logDefaults.loglevels};return extendedDefaults}static generatePromiseReject(properties){const error=new OcError(properties);let rejection=new OcManualpromise();rejection.reject(error);return rejection.promise};static generateInvisibleError(debugMessage){return new OcError({code:0,debugMessage:debugMessage,level:OcLog.LOGLEVEL.DEBUG})}}(function(OcError){})(OcError||(OcError={}));Oc.OcError=OcError;"use strict";class OcRgb extends OcComponent{constructor(properties){super(properties)}defaults(){return OcRgb.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,red:{get:this.__getRed.bind(this),set:this.__setRed.bind(this)},green:{get:this.__getGreen.bind(this),set:this.__setGreen.bind(this)},blue:{get:this.__getBlue.bind(this),set:this.__setBlue.bind(this)},}}__getRed(){return this.properties.red}__setRed(value){const limits=OcRgb.__colorLimits;const colorValue=this.__toAcceptableValue(value,limits.min,limits.max);if(colorValue===null){return};this.properties.red=colorValue}__getGreen(){return this.properties.green}__setGreen(value){const limits=OcRgb.__colorLimits;const colorValue=this.__toAcceptableValue(value,limits.min,limits.max);if(colorValue===null){return};this.properties.green=colorValue}__getBlue(){return this.properties.blue}__setBlue(value){const limits=OcRgb.__colorLimits;const colorValue=this.__toAcceptableValue(value,limits.min,limits.max);if(colorValue===null){return};this.properties.blue=colorValue}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.red=this.__setRed;this.propertyHandlers.green=this.__setGreen;this.propertyHandlers.blue=this.__setBlue}__initialize(properties){super.__initialize(properties);this.__initProperties(properties)}__toAcceptableValue(value,min,max){let number=Number(value);if(Number.isNaN(number)){return null};return OcUtilities.clamp(min,number,max)}toRgbString(){return OcRgb.objectToRgbString(this.exportProperties())}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,red:0,green:0,blue:0,}}}static objectToRgbString(properties){const normalizedProperties={...this.defaults().properties,...properties};return`rgb(${normalizedProperties.red}, ${normalizedProperties.green}, ${normalizedProperties.blue})`}}OcRgb.__colorLimits={min:0,max:255};Oc.OcRgb=OcRgb;"use strict";class OcRgba extends OcRgb{constructor(properties){super(properties)}defaults(){return OcRgba.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();const extendedDefinitions={...inheritedDefinitions,opacity:{get:this.__getOpacity.bind(this),set:this.__setOpacity.bind(this)}};return extendedDefinitions}__getOpacity(){return this.properties.opacity}__setOpacity(value){const limits=OcRgba.__opacityLimits;const opacity=this.__toAcceptableValue(value,limits.min,limits.max);if(opacity===null){return};this.properties.opacity=opacity}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.opacity=this.__setOpacity}__initialize(properties){super.__initialize(properties)}toRgbaString(){return OcRgba.objectToRgbaString(this.exportProperties())}static defaults(){const inheritedDefaults=super.defaults();const extendedDefaults={...inheritedDefaults,properties:{...inheritedDefaults.properties,opacity:1}};return extendedDefaults}static objectToRgbaString(properties){const normalizedProperties={...this.defaults().properties,...properties};return`rgba(${normalizedProperties.red}, ${normalizedProperties.green}, ${normalizedProperties.blue}, ${normalizedProperties.opacity})`}}OcRgba.__opacityLimits={min:0,max:1};(function(OcRgba){})(OcRgba||(OcRgba={}));oc.OcRgba=OcRgba;"use strict";class OcColors{static __colorToRelativeLuminosity(colorValue){const normalizedColorValue=OcUtilities.clamp(0,colorValue,255);const percentage=normalizedColorValue/255;const luminosity=(percentage<=0.03928)?percentage/12.92:((percentage+0.055)/1.055)**2.4;return luminosity}static __darkenAlgorithm(value,factor){return value*(1-factor)}static __lightenAlgorithm(value,factor){return value+(255-value)*factor}static __getContrastFromLuminosity(luminosity1,luminosity2){const lighterColor=Math.max(luminosity1,luminosity2);const darkerColor=Math.min(luminosity1,luminosity2);const contrast=(lighterColor+0.05)/(darkerColor+0.05);return contrast}static toRgb(value){if(value instanceof OcRgb){return value};const rgb=new OcRgb();let matches;const regexpHexadecimal=new RegExp(/^#([0-9a-f][0-9a-f]?[0-9a-f][0-9a-f]?[0-9a-f][0-9a-f]?)$/,'gi');matches=regexpHexadecimal.exec(value);if(matches){const[,rgbString]=matches;const rgbObject=OcDatatype.hexToRGB(rgbString);if(rgbObject){rgb.red=rgbObject.red;rgb.green=rgbObject.green;rgb.blue=rgbObject.blue}return rgb};const regexRgb=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(0|1|0?\.\d+))?\s*\)$/i;matches=regexRgb.exec(value);if(matches){const[,red,green,blue]=matches;rgb.red=Number(red);rgb.green=Number(green);rgb.blue=Number(blue);return rgb}return rgb}static darken(color,factor){const rgb=OcColors.toRgb(color);const normalizedFactor=OcUtilities.clamp(0,factor,1);const newRgb=new OcRgb({red:OcColors.__darkenAlgorithm(rgb.red,normalizedFactor),green:OcColors.__darkenAlgorithm(rgb.green,normalizedFactor),blue:OcColors.__darkenAlgorithm(rgb.blue,normalizedFactor)});return newRgb}static lighten(color,factor){const rgb=OcColors.toRgb(color);const normalizedFactor=OcUtilities.clamp(0,factor,1);const newRgb=new OcRgb({red:OcColors.__lightenAlgorithm(rgb.red,normalizedFactor),green:OcColors.__lightenAlgorithm(rgb.green,normalizedFactor),blue:OcColors.__lightenAlgorithm(rgb.blue,normalizedFactor)});return newRgb}static getContrast(color1,color2){const relativeLuminosity1=OcColors.getRelativeLuminosity(color1);const relativeLuminosity2=OcColors.getRelativeLuminosity(color2);return this.__getContrastFromLuminosity(relativeLuminosity1,relativeLuminosity2)}static getRelativeLuminosity(color){const rgb=OcColors.toRgb(color);const R=OcColors.__colorToRelativeLuminosity(rgb.red);const G=OcColors.__colorToRelativeLuminosity(rgb.green);const B=OcColors.__colorToRelativeLuminosity(rgb.blue);const L=0.2126*R+0.7152*G+0.0722*B;return L}static toTargetContrast(colorToAdjust,referenceColor,targetMinimumContrast){const originalRgb=this.toRgb(colorToAdjust);const referenceRgb=this.toRgb(referenceColor);const targetRgb=new OcRgb();const originalContrast=OcColors.getContrast(originalRgb,referenceRgb);if(originalContrast>targetMinimumContrast){targetRgb.importProperties(originalRgb);return targetRgb};const originalLuminosity=OcColors.getRelativeLuminosity(originalRgb);const referenceLuminosity=OcColors.getRelativeLuminosity(referenceRgb);let contrastAfterLightening=1,contrastAfterDarkening=1;const colorAfterLightening=new OcRgb();const colorAfterDarkening=new OcRgb();for(const shouldBecomeLighter of[true,false]){let targetLuminosity;if(shouldBecomeLighter){targetLuminosity=0.05*(20*targetMinimumContrast*referenceLuminosity+targetMinimumContrast-1)}else{targetLuminosity=(-0.05*targetMinimumContrast+referenceLuminosity+0.05)/targetMinimumContrast};targetRgb.importProperties(originalRgb);const colorCalculations={red:OcColors.__colorToRelativeLuminosity(originalRgb.red)||0.000000005,green:OcColors.__colorToRelativeLuminosity(originalRgb.green)||0.000000005,blue:OcColors.__colorToRelativeLuminosity(originalRgb.blue)||0.000000005};const requiredLuminosityAdjustment=targetLuminosity/(originalLuminosity||0.000000005);const rgbKeys=['red','green','blue'];for(const color of rgbKeys){colorCalculations[color]=colorCalculations[color]*requiredLuminosityAdjustment};for(const color of rgbKeys){colorCalculations[color]=Math.pow(colorCalculations[color],1/2.4)};for(const color of rgbKeys){colorCalculations[color]=colorCalculations[color]*1.055};for(const color of rgbKeys){colorCalculations[color]=colorCalculations[color]-0.055,0};for(const color of rgbKeys){colorCalculations[color]=colorCalculations[color]*255};
19const receiverRgb=(shouldBecomeLighter)?colorAfterLightening:colorAfterDarkening;receiverRgb.red=colorCalculations.red;receiverRgb.green=colorCalculations.green;receiverRgb.blue=colorCalculations.blue;if(shouldBecomeLighter){contrastAfterLightening=this.getContrast(receiverRgb,referenceRgb)}else{contrastAfterDarkening=this.getContrast(receiverRgb,referenceRgb)}}if(contrastAfterDarkening<targetMinimumContrast&&contrastAfterLightening<targetMinimumContrast){if(contrastAfterDarkening>contrastAfterLightening){return colorAfterDarkening}else{return colorAfterLightening}}else if(contrastAfterDarkening>=targetMinimumContrast&&contrastAfterLightening>=targetMinimumContrast){if(contrastAfterDarkening>contrastAfterLightening){return colorAfterLightening}else{return colorAfterDarkening}}else{if(contrastAfterDarkening>=targetMinimumContrast){return colorAfterDarkening}else{return colorAfterLightening}}return targetRgb}}OcColors.CONTRAST_MINIMUMS={AA:{BASE:4.5,LARGE_TEXT:3},AAA:{BASE:7,LARGE_TEXT:4.5}};Oc.OcColors=OcColors;"use strict";class OcUiWebListTree extends OcUi{constructor(properties){super(properties)}defaults(){return OcUiWebListTree.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,items:{get:this.__getItems.bind(this)},extraCells:{get:this.__getExtraCells.bind(this),set:this.__setExtraCells.bind(this)},header:{get:this.__getHeader.bind(this)}}}__getItems(){const data={'-1':{id:'-1',parent:null,children:[]}};for(const item of Object.values(this.__internals.treeItems)){data[item.itemId]={id:item.itemId,parent:item.parentItemId,children:[]}};for(const item of Object.values(this.__internals.treeItems)){const parentItemId=item.parentItemId||'-1';OcArray.forcedInsert(data[parentItemId].children,item.index,item.itemId)}for(const dataRow of Object.values(data)){dataRow.children=dataRow.children.filter(child=>child)}return data}__getExtraCells(){return this.properties.extraCells}__setExtraCells(value){this.properties.extraCells=value;this.__handleHeaderElement();this.__handleItems()}__getHeader(){return this.__internals.elements.header}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.treeItems={};this.__internals.domCreationPromises={};this.propertyHandlers.items=this.addItem;this.propertyHandlers.extraCells=this.__setExtraCells}__initElements(){super.__initElements();const cssBase='oc-ui-web-list-tree';this.__internals.domCreationPromises.tree=this.__createDOMNodes({base:{tag:'table',class:cssBase},header:{component:OcUiWebListTreeItemHeader,class:`${cssBase}__header`},footer:{component:OcUiWebListTreeItemTerminator,class:`${cssBase}__footer`}});this.__internals.domCreationPromises.tree.then(()=>{this.__internals.elements.header.base.prependTo(this.__internals.dom.base);this.__internals.elements.footer.base.appendTo(this.__internals.dom.base)})}__initEvents(){super.__initEvents();this.__internals.elements.footer.events.listen('request-create-item',this.__onFooter__requestCreateItem.bind(this),this.refID)}__onFooter__requestCreateItem(ev){this.__trigger__requestCreateItem({itemId:'-1'})}__initialize(properties){super.__initialize(properties)}__initEvents__item(item){item.terminator.events.listen('request-create-item',this.__onItemTerminator__requestCreateItem.bind(this),this.refID)}__onItemTerminator__requestCreateItem(ev){this.__internals.events.triggerEvent(ev)}__handleHeaderElement(){const element=this.__internals.elements.header;const extraCells=this.__getExtraCells();element.extraCells=extraCells}__recursiveGetLastItemOfParent(parentId,excludeId,previousLastItem){const sortedItemsWithSameParent=Object.values(this.__internals.treeItems).filter(item=>item.parentItemId==parentId&&item.itemId!=excludeId&&OcUtilities.isElementInElement(item.base,this.__internals.dom.base)).sort((a,b)=>a.index-b.index);const lastItem=OcArray.getLastItem(sortedItemsWithSameParent);if(lastItem){return this.__recursiveGetLastItemOfParent(lastItem.itemId,excludeId,lastItem)}else{return previousLastItem}}__insertItemToDom(itemId){const instance=this.__internals.treeItems[itemId];if(!instance){return};const sortedItemsWithSameParent=Object.values(this.__internals.treeItems).filter(item=>item.parentItemId==instance.parentItemId&&item.itemId!=instance.itemId&&OcUtilities.isElementInElement(item.base,this.__internals.dom.base)).sort((a,b)=>a.index-b.index);const foundItem=sortedItemsWithSameParent.find(item=>item.index>instance.index);if(foundItem){instance.indentation=foundItem.indentation;instance.base.insertBefore(foundItem.base);instance.terminator.base.insertAfter(instance.base)}else{const lastItem=OcArray.getLastItem(sortedItemsWithSameParent);if(lastItem){instance.indentation=lastItem.indentation;instance.base.insertAfter(lastItem.terminator.base);instance.terminator.base.insertAfter(instance.base)}else{if(instance.parentItemId==null){instance.base.appendTo(this.__internals.dom.base);instance.terminator.base.insertAfter(instance.base)}else{const parentItem=this.__internals.treeItems[instance.parentItemId];if(parentItem){instance.indentation=parentItem.indentation+1;instance.base.insertAfter(parentItem.base);instance.terminator.base.insertAfter(instance.base)}}}}const children=Object.values(this.__internals.treeItems).filter(item=>item.parentItemId==instance.itemId).sort((a,b)=>a.index-b.index);for(const child of children){child.indentation=instance.indentation+1;this.__insertItemToDom(child.itemId)}}__addItem__postProcessing(item){const extraCells=this.__getExtraCells();item.extraCells=extraCells;item.terminator.extraCells=extraCells;this.__insertItemToDom(item.itemId);this.__processItems()}__handleItems(){const extraCells=this.__getExtraCells();for(const item of Object.values(this.__internals.treeItems)){item.extraCells=extraCells;item.terminator.extraCells=extraCells}}__getFlattenedStructure(){const items=this.__getItems();const elementMap=new Map();
19Object.values(items).forEach(element=>{elementMap.set(element.id,element)});const result=[];function processElement(id){result.push(id);const element=elementMap.get(id);if(element&&element.children.length>0){element.children.forEach(childId=>{processElement(childId)})}}processElement("-1");result.shift();return result}__getTerminatorVisibility(itemData){const hasChildren=itemData.children.length>0;return hasChildren}__processItems(){this.__deferOnce('__processItems',()=>{const flattenedItemIds=this.__getFlattenedStructure();let i=0;for(const itemId of flattenedItemIds){const itemToProcess=this.__internals.treeItems[itemId];if(itemToProcess){itemToProcess.alternatingColor=i%2!=0}++i}const items=this.__getItems();for(const item of Object.values(items)){const instance=this.__internals.treeItems[item.id];if(instance){instance.terminator.visible=this.__getTerminatorVisibility(item)}}})}addItem(itemDefinition){if(this.__internals.treeItems[itemDefinition.itemId]){OLEFA.log.info('OcUiWebListTree','addItem','Item already exists',arguments);return};const instance=new OcUiWebListTreeItemContent(itemDefinition);this.__internals.treeItems[itemDefinition.itemId]=instance;this.__initEvents__item(instance);this.__addItem__postProcessing(instance);return instance}getItem(itemId){if(!this.__internals.treeItems[itemId]){return undefined};return this.__internals.treeItems[itemId]}removeItem(itemId){if(!this.__internals.treeItems[itemId]){OLEFA.log.info('OcUiWebListTree','removeItem','Item does not exist',arguments);return};const instance=this.__internals.treeItems[itemId];delete this.__internals.treeItems[itemId];Oc.destroyEventually(instance)}__trigger__requestCreateItem(eventData){const event=new OcEvent({eventName:'request-create-item',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,items:[],extraCells:0},cssFiles:{...inheritedDefaults.cssFiles,uiWebListTree:{file:"ui/web/list/tree.css",key:"--loaded--ui-web-list-tree"}}}}}Oc.OcUiWebListTree=OcUiWebListTree;"use strict";class OcUiWebListTreeSortable extends OcUiWebListTree{constructor(properties){super(properties)}defaults(){return OcUiWebListTreeSortable.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,sortingActive:{get:this.__getSortingActive.bind(this),set:this.__setSortingActive.bind(this)}}}__getSortingActive(){return this.properties.sortingActive}__setSortingActive(value){this.properties.sortingActive=value;this.__internals.states.set(OcUiWebListTreeSortable.__states.SORTABLE,this.properties.sortingActive)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.currentlySorting=null}__initStates(){super.__initStates();this.__internals.states.define({state:OcUiWebListTreeSortable.__states.SORTABLE,onChange:this.__onStateChange__sortable.bind(this)}).define({state:OcUiWebListTreeSortable.__states.SORTING})}__onStateChange__sortable(){const sortable=this.__internals.states.hasState(OcUiWebListTreeSortable.__states.SORTABLE);const desiredPriorityConnector=sortable?'T':null;for(const item of Object.values(this.__internals.treeItems)){item.priorityConnector=desiredPriorityConnector}this.__processItems()}__initElements(){super.__initElements();const cssBase='oc-ui-web-list-tree-sortable';this.deferUntil(()=>{this.__internals.dom.base.addClass(cssBase)},{condition:"repaint"})}__initEvents(){super.__initEvents();this.__internals.dom.base.on(`mouseup.${this.refID}`,this.__onDom__mouseup.bind(this)).on(`mousemove.${this.refID}`,'.oc-ui-web-list-tree-item-content, .oc-ui-web-list-tree-item-terminator',this.__onDom__item__mousemove.bind(this)).on('mousedown','a',this.__onDom__a__mousedown.bind(this)).on('click','a',this.__onDom__a__click.bind(this))}__onDom__mouseup(ev){const sorting=this.__internals.states.hasState(OcUiWebListTreeSortable.__states.SORTING);if(!sorting){return};this.__stopSorting()}__onDom__item__mousemove(ev){const sorting=this.__internals.states.hasState(OcUiWebListTreeSortable.__states.SORTING);if(!sorting){return};this.__internals.currentlySorting?.detach();this.__internals.dom.base.children().removeAttr(OcUiWebListTreeSortable.__cssClasse
19s.REFERENCE).removeAttr(OcUiWebListTreeSortable.__cssClasses.REFERENCE_ABOVE).removeAttr(OcUiWebListTreeSortable.__cssClasses.REFERENCE_BELOW);const className=(ev.offsetY<ev.currentTarget.clientHeight/2)?OcUiWebListTreeSortable.__cssClasses.REFERENCE_ABOVE:OcUiWebListTreeSortable.__cssClasses.REFERENCE_BELOW;jQuery(ev.currentTarget).attr(OcUiWebListTreeSortable.__cssClasses.REFERENCE,'').attr(className,'')}__onDom__a__mousedown(e){const sortingActive=this.__getSortingActive();if(sortingActive){e.preventDefault()}}__onDom__a__click(e){const sortingActive=this.__getSortingActive();if(sortingActive){e.preventDefault()}}__initialize(properties){super.__initialize(properties)}__initEvents__item(item){super.__initEvents__item(item);item.events.listen('drag-start',this.__onItem__dragStart.bind(this),this.refID)}__onItem__dragStart(ev){const sortingActive=this.__getSortingActive();if(!sortingActive){return};const item=ev.data.instance;this.__startSorting(ev.data.instance)}__addItem__postProcessing(item){super.__addItem__postProcessing(item)}__getTerminatorVisibility(itemData){const hasChildren=itemData.children.length>0;const isSortable=this.__getSortingActive();return isSortable||hasChildren}__startSorting(item){const sorting=this.__internals.states.hasState(OcUiWebListTreeSortable.__states.SORTING);if(sorting){OLEFA.log.warn('OcUiWebListTreeSortable','__startSorting','Already sorting an element');return}this.__internals.states.add(OcUiWebListTreeSortable.__states.SORTING);const nodes=[];let nextNode=item.base;while(nextNode&&!nextNode.is(item.terminator.base)){nodes.push(nextNode);nextNode=nextNode.next()};nodes.push(item.terminator.base);for(const node of nodes){if(!OcDatatype.isJQuery(this.__internals.currentlySorting)){this.__internals.currentlySorting=jQuery(node)}else{this.__internals.currentlySorting=this.__internals.currentlySorting.add(node)}}}__stopSorting(){this.__internals.states.remove(OcUiWebListTreeSortable.__states.SORTING);const reference=this.__internals.dom.base.find(`[${OcUiWebListTreeSortable.__cssClasse
19s.REFERENCE}]`);if(!reference||!this.__internals.currentlySorting){return};if(reference.is(`[${OcUiWebListTreeSortable.__cssClasses.REFERENCE_ABOVE}]`)){reference.before(this.__internals.currentlySorting)}else{reference.after(this.__internals.currentlySorting)}let found=false;const sortedElement=this.__internals.currentlySorting.eq(0);let indentationReference=sortedElement.prev();let pp=0;while(indentationReference&&!found){if(indentationReference.is('.oc-ui-web-list-tree-item-terminator')){pp-=1}else{pp+=1};if(pp>0){found=true}else{indentationReference=indentationReference.prev()}};let sortedInstanceItemId;let parentInstanceItemId=null;const sortedInstance=sortedElement.prop('olefa-object-reference');const instance=indentationReference.prop('olefa-object-reference');if(sortedInstance instanceof OcUiWebListTreeItemContent){sortedInstanceItemId=sortedInstance.itemId}if(instance instanceof OcUiWebListTreeItemContent){parentInstanceItemId=instance.itemId}if(sortedInstanceItemId){this.__internals.treeItems[sortedInstanceItemId].parentItemId=parentInstanceItemId}Object.values(this.__internals.treeItems).filter(item=>item.parentItemId==parentInstanceItemId).map(item=>{return{itemId:item.itemId,index:this.__internals.dom.base.children().index(item.base)}}).sort((a,b)=>a.index-b.index).map(item=>item.itemId).forEach((value,index,array)=>{const instance=this.__internals.treeItems[value];if(instance){instance.index=index}});if(indentationReference){const originalSortedelement=this.__internals.currentlySorting.eq(0)?.prop('olefa-object-reference');const instance=indentationReference.prop('olefa-object-reference');const newIndentation=(instance instanceof OcUiWebListTreeItemContent)?instance.indentation+1:0;if(originalSortedelement instanceof OcUiWebListTreeItemContent){const deltaIndentation=newIndentation-originalSortedelement.indentation;this.__internals.currentlySorting.each((index,element)=>{const instance='olefa-object-reference'in element?element['olefa-object-reference']:null;if(instance instanceof OcUiWebListTreeItemContent){instance.indentation+=deltaIndentation}})}}this.__internals.currentlySorting=null;[null,...Object.keys(this.__internals.treeItems)].forEach(itemId=>{const sortedItems=Object.values(this.__internals.treeItems).filter(item=>item.parentItemId==itemId).map(item=>{return{instance:item,index:this.__internals.dom.base.children().index(item.base)}}).sort((a,b)=>a.index-b.index);if(sortedItems.length>0){sortedItems.forEach(item=>{item.instance.connector='T'});OcArray.getLastItem(sortedItems).instance.connector='L'}});this.__internals.dom.base.children().removeAttr(OcUiWebListTreeSortable.__cssClasse
19s.REFERENCE).removeAttr(OcUiWebListTreeSortable.__cssClasses.REFERENCE_ABOVE).removeAttr(OcUiWebListTreeSortable.__cssClasses.REFERENCE_BELOW)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,sortingActive:false},cssFiles:{...inheritedDefaults.cssFiles,uiWebListTreeSortable:{file:'ui/web/list/tree/sortable.css',key:'--loaded--ui-web-list-tree-sortable'}}}}}OcUiWebListTreeSortable.__cssClasses={REFERENCE:'data-list-tree-sortable-reference',REFERENCE_ABOVE:'data-list-tree-sortable-reference-above',REFERENCE_BELOW:'data-list-tree-sortable-reference-below',};OcUiWebListTreeSortable.__states={...OcUiWebListTree.__states,SORTABLE:'sortable',SORTING:'sorting'};Oc.OcUiWebListTreeSortable=OcUiWebListTreeSortable;"use strict";class OcUiWebListTreeItem extends OcUi{constructor(properties){super(properties)}defaults(){return OcUiWebListTreeItem.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,extraCells:{get:this.__getExtraCells.bind(this),set:this.__setExtraCells.bind(this)},}}__getExtraCells(){return this.properties.extraCells}__setExtraCells(value){this.properties.extraCells=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.extraCells=[];this.__internals.domCreationPromises={};this.propertyHandlers.extraCells=this.__setExtraCells}__initElements(){super.__initElements();const cssBase='oc-ui-web-list-tree-item';this.__internals.domCreationPromises.item=this.__createDOMNodes({base:{tag:'tr',class:cssBase,children:{itemData:{tag:this.__getTableCellTag(),class:`${cssBase}__item-data`,},separator:{tag:this.__getTableCellTag(),class:`${cssBase}__separator`}}}})}__initialize(properties){super.__initialize(properties)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,extraCells:0},cssFiles:{...inheritedDefaults.cssFiles,uiWebListTreeItem:{file:'ui/web/list/tree/item.css',key:'--loaded--ui-web-list-tree-item'}}}}}Oc.OcUiWebListTreeItem=OcUiWebListTreeItem;"use strict";class OcUiWebListTreeItemContent extends OcUiWebListTreeItem{constructor(properties){super(properties)}defaults(){return OcUiWebListTreeItemContent.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,itemId:{get:this.__getItemId.bind(this),set:this.__setItemId.bind(this)},icon:{get:this.__getIcon.bind(this),set:this.__setIcon.bind(this)},label:{get:this.__getLabel.bind(this),set:this.__setLabel.bind(this)},indentation:{get:this.__getIndentation.bind(this),set:this.__setIndentation.bind(this)},index:{get:this.__getIndex.bind(this),set:this.__setIndex.bind(this)},parentItemId:{get:this.__getParentItemId.bind(this),set:this.__setParentItemId.bind(this)},connector:{get:this.__getConnector.bind(this),set:this.__setConnector.bind(this)},priorityConnector:{get:this.__getPriorityConnector.bind(this),set:this.__setPriorityConnector.bind(this)},alternatingColor:{get:this.__getAlternatingColor.bind(this),set:this.__setAlternatingColor.bind(this)},link:{get:this.__getLink.bind(this),set:this.__setLink.bind(this)},terminator:{get:this.__getTerminator.bind(this)}}}__getItemId(){return this.properties.itemId}__setItemId(value){this.properties.itemId=value;this.__handleBaseNode();this.__handleTerminatorElement()}__getIcon(){return this.properties.icon}__setIcon(value){if(this.properties.icon){if(value&&this.properties.icon.refID==value.refID){return}OcHtml.detachIfInside(this.properties.icon,this.__internals.dom.base)}this.properties.icon=value;this.__handleIconSlotNode()}__getLabel(){return this.properties.label}__setLabel(value){this.properties.label=value;this.__handleLinkNode()}__getIndentation(){return this.properties.indentation}__setIndentation(value){this.properties.indentation=value;this.__handleBaseNode();this.__handleIndentationNode();this.__handleTerminatorElement()}__getIndex(){return this.properties.index}__setIndex(value){this.properties.index=value;this.__handleBaseNode()}__getParentItemId(){return this.properties.parentItemId}__setParentItemId(value){this.properties.parentItemId=value;this.__handleBaseNode()}__getConnector(){return this.properties.connector}__setConnector(value){this.properties.connector=value;this.__handleConnectorIconNode()}
19__getPriorityConnector(){return this.properties.priorityConnector}__setPriorityConnector(value){this.properties.priorityConnector=value;this.__handleConnectorIconNode()}__getAlternatingColor(){return this.properties.alternatingColor}__setAlternatingColor(value){this.properties.alternatingColor=value;this.__internals.states.set(OcUiWebListTreeItemContent.__states.ALTERNATE_COLOR,value)}__getLink(){return this.properties.link}__setLink(value){this.properties.link=value;this.__handleLinkNode()}__setExtraCells(value){super.__setExtraCells(value);this.__handleExtraCells()}__getTerminator(){return this.__internals.elements.terminator}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.itemId=this.__setItemId;this.propertyHandlers.icon=this.__setIcon;this.propertyHandlers.label=this.__setLabel;this.propertyHandlers.indentation=this.__setIndentation;this.propertyHandlers.index=this.__setIndex;this.propertyHandlers.parentItemId=this.__setParentItemId;this.propertyHandlers.connector=this.__setConnector;this.propertyHandlers.priorityConnector=this.__setPriorityConnector;this.propertyHandlers.alternatingColor=this.__setAlternatingColor;this.propertyHandlers.link=this.__setLink}__initElements(){super.__initElements();const cssBase='oc-ui-web-list-tree-item-content';this.__createDOMNodes({terminator:{component:OcUiWebListTreeItemTerminator,class:`${cssBase}__terminator`}});const domCreationPromise=this.__createDOMNodes({itemDataWrapper:{tag:'div',class:`${cssBase}__item-data-wrapper`,children:{indentation:{tag:'span',class:`${cssBase}__indentation`},connectorIcon:{tag:'span',class:`${cssBase}__connector-icon`},iconSlot:{tag:'span',class:`${cssBase}__icon-slot`},label:{tag:'span',class:`${cssBase}__label`,children:{link:{tag:'a',class:`${cssBase}__link`}}}}}},this.__internals.dom.itemData);this.__createDOMNodes({indentationIcon:{tag:'span',class:`icon-line_vert`}});domCreationPromise.finally(()=>{this.__handleExtraCells()});this.defer(()=>{this.__internals.dom.base.addClass(cssBase)})}__initStates(){super.__initStates();this.__internals.states.define({state:OcUiWebListTreeItemContent.__states.ALTERNATE_COLOR})}__initEvents(){super.__initEvents();this.__internals.dom.itemData.on('mousedown',this.__onLabel__mousedown.bind(this))}__onLabel__mousedown(ev){this.__trigger__dragStart({instance:this})}__initialize(properties){super.__initialize(properties)}__getTableCellTag(){return'td'}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcUiWebListTreeItem',()=>{const node=this.__internals.dom.base;const itemId=this.__getItemId();const indentation=this.__getIndentation();const index=this.__getIndex();const parentItemid=this.__getParentItemId();node.attr({'data-item-id':itemId,'data-indentation':indentation,'data-index':index,'data-parent-item-id':parentItemid})},'repaint')}__handleIndentationNode(){this.__deferOnce('__handleIndentationNode',()=>{const node=this.__internals.dom.indentation;const indentation=this.__getIndentation();node.empty();if(indentation>0){for(let i=0;i<indentation;i++){const icon=this.__generateIndentationIcon();icon.base.appendTo(node)}}},'repaint')}__handleConnectorIconNode(){this.__deferOnce('__handleConnectorIconNode',()=>{const node=this.__internals.dom.connectorIcon;const connector=this.__getConnector();const priorityConnector=this.__getPriorityConnector();const normalizedConnector=priorityConnector||connector;node.addClass(OcUiWebListTreeItemContent.__connectorPaths[normalizedConnector])},'repaint')}__handleIconSlotNode(){this.__deferOnce('__handleIconSlotNode',()=>{const node=this.__internals.dom.iconSlot;const icon=this.__getIcon();if(!icon){return};icon.base.appendTo(node)},'repaint')}__handleLinkNode(){this.__deferOnce('__handleLinkNode',()=>{const node=this.__internals.dom.link;const label=this.__getLabel();node.text(label);const link=this.__getLink();OcHtml.setAttributeIfTrue(link.length>0,node,'href',link)},'repaint')}__handleTerminatorElement(){const element=this.__internals.elements.terminator;const itemId=this.__getItemId();element.forItemId=itemId;const indentation=this.__getIndentation();element.indentation=indentation+1}__handleExtraCells(){const numberOfCells=this.__getExtraCells();this.__internals.dom.separator.nextAll().detach();for(let i=0;i<numberOfCells;i++){if(!this.__internals.extraCells[i]){this.__internals.extraCells[i]=jQuery('<td></td>')}this.__internals.extraCells[i].appendTo(this.__internals.dom.base)}}__generateIndentationIcon(){return new OcUiFonticonOlefa({icon:'line_vert'})}getExtraCell(index){if(!this.__internals.extraCells[index]){return undefined};return this.__internals.extraCells[index]}__trigger__dragStart(eventData){const event=new OcEvent({eventName:'drag-start',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,itemId:'',icon:null,label:'',indentation:0,index:0,parentItemId:null,connector:'T',priorityConnector:null,alternatingColor:false,link:''},cssFiles:{...inheritedDefaults.cssFiles,uiWebListTreeItemContent:{file:'ui/web/list/tree/item/content.css',key:'--loaded--ui-web-list-tree-item-content'}}}}}OcUiWebListTreeItemContent.__states={...OcUiWebListTreeItem.__states,ALTERNATE_COLOR:'alternate-color'};OcUiWebListTreeItemContent.__connectorPaths={T:'icon-line_inter',L:'icon-line_corner'};Oc.OcUiWebListTreeItemContent=OcUiWebListTreeItemContent;"use strict";class OcUiWebListTreeItemHeader extends OcUiWebListTreeItem{constructor(properties){super(properties)}defaults(){return OcUiWebListTreeItemHeader.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,labelNode:{get:this.__getLabelNode.bind(this)}}}__setExtraCells(value){super.__setExtraCells(value);this.__handleExtraCells()}__getLabelNode(){return this.__internals.dom.itemData}__buildInstanceStructure(){super.__buildInstanceStructure()}__initialize(properties){super.__initialize(properties);this.__internals.domCreationPromises.item?.then(()=>{this.__handleExtraCells()})}__getTableCellTag(){return'th'}__handleExtraCells(){const numberOfCells=this.__getExtraCells();this.__internals.dom.separator.nextAll().detach();for(let i=0;i<numberOfCells;i++){if(!this.__internals.extraCells[i]){this.__internals.extraCells[i]=jQuery('<th></th>')}this.__internals.extraCells[i].appendTo(this.__internals.dom.base)}}getExtraCell(index){if(!this.__internals.extraCells[index]){return undefined};return this.__internals.extraCells[index]}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcUiWebListTreeItemHeader=OcUiWebListTreeItemHeader;"use strict";class OcUiWebListTreeItemTerminator extends OcUi{constructor(properties){super(properties)}defaults(){return OcUiWebListTreeItemTerminator.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,forItemId:{get:this.__getForItemId.bind(this),set:this.__setForItemId.bind(this)},indentation:{get:this.__getIndentation.bind(this),set:this.__setIndentation.bind(this)},extraCells:{get:this.__getExtraCells.bind(this),set:this.__setExtraCells.bind(this)}}}__getForItemId(){return this.properties.forItemId}__setForItemId(value){this.properties.forItemId=value;this.__handleBaseNode()}__getIndentation(){return this.properties.indentation}__setIndentation(value){this.properties.indentation=value;this.__handleIndentationNode()}__getExtraCells(){return this.properties.extraCells}__setExtraCells(value){this.properties.extraCells=value;this.__handleExtraCellsNode()}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.forItemId=this.__setForItemId;this.propertyHandlers.indentation=this.__setIndentation;this.propertyHandlers.extraCells=this.__setExtraCells}__initElements(){super.__initElements();const cssBase='oc-ui-web-list-tree-item-terminator';const domCreationPromise=this.__createDOMNodes({base:{tag:'tr',class:cssBase,children:{itemData:{tag:'td',class:`${cssBase}__item-data`,children:{itemDataWrapper:{tag:'div',class:`${cssBase}__item-data-wrapper`,children:{indentation:{tag:'span',class:`${cssBase}__indentation`},connectorIcon:{tag:'span',class:`${cssBase}__connector-icon icon-line_corner`,},addItemIcon:{component:OcMdIcon,class:`${cssBase}__add-item-icon`,properties:{icon:'add'}}}}}},separator:{tag:'td',class:`${cssBase}__separator`},extraCells:{tag:'td',class:`${cssBase}__extra-cells`}}},indentationIcon:{tag:'span',class:`icon-line_vert`}})}__initEvents(){super.__initEvents();this.__internals.elements.addItemIcon.events.listen('click',this.__onAddItemIcon__click.bind(this),this.refID)}__onAddItemIcon__click(ev){const forItemId=this.__getForItemId();this.__trigger__requestCreateItem({itemId:forItemId})}__initialize(properties){super.__initialize(properties);const node=this.__internals.elements.addItemIcon.base.get(0);if(node){this.__internals.ariaAddItemIcon=new OcAriaButton(node)}}__handleBaseNode(){super.__handleBaseNode();this.__deferOnce('__handleBaseNode__OcUiWebListTreeItemTerminator',()=>{const node=this.__internals.dom.base;const forItemid=this.__getForItemId();node.attr({'data-for-item-id':forItemid})},'repaint')}__handleIndentationNode(){this.__deferOnce('__handleIndentationNode',()=>{const node=this.__internals.dom.indentation;const indentation=this.__getIndentation();node.empty();if(indentation>0){for(let i=0;i<indentation;i++){const icon=this.__generateIndentationIcon();icon.base.appendTo(node)}}},'repaint')}__handleExtraCellsNode(){this.__deferOnce('__handleExtraCellsNode',()=>{const node=this.__internals.dom.extraCells;const numberOfCells=this.__getExtraCells();node.attr('colspan',numberOfCells)},'repaint')}__generateIndentationIcon(){return new OcUiFonticonOlefa({icon:'line_vert'})}__trigger__requestCreateItem(eventData){const event=new OcEvent({eventName:'request-create-item',data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,forItemId:'',indentation:0,extraCells:0},cssFiles:{...inheritedDefaults.cssFiles,uiWebListTreeItemTerminator:{file:'ui/web/list/tree/item/terminator.css',key:'--loaded--ui-web-list-tree-item-terminator'}}}}}Oc.OcUiWebListTreeItemTerminator=OcUiWebListTreeItemTerminator;"use strict";class OcWebsocketClient extends OcComponent{constructor(properties){super(properties)}defaults(){return OcWebsocketClient.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,protocol:{get:this.__getProtocol.bind(this),set:this.__setProtocol.bind(this)},host:{get:this.__getHost.bind(this),set:this.__setHost.bind(this)},port:{get:this.__getPort.bind(this),set:this.__setPort.bind(this)},path:{get:this.__getPath.bind(this),set:this.__setPath.bind(this)},sessionId:{get:this.__getSessionId.bind(this),set:this.__setSessionId.bind(this)},olefaProtocol:{get:this.__getOlefaProtocol.bind(this),set:this.__setOlefaProtocol.bind(this)},olefaHost:{get:this.__getOlefaHost.bind(this),set:this.__setOlefaHost.bind(this)},reconnectDelay:{get:this.__getReconnectDelay.bind(this),set:this.__setReconnectDelay.bind(this)},authenticated:{get:this.__getAuthenticated.bind(this)}}}__getProtocol(){return this.properties.protocol}__setProtocol(value){this.properties.protocol=value}__getHost(){return this.properties.host}__setHost(value){this.properties.host=value}__getPort(){return this.properties.port}__setPort(value){this.properties.port=value}__getPath(){return this.properties.path}__setPath(value){this.properties.path=value}__getSessionId(){return this.properties.sessionId}__setSessionId(value){this.properties.sessionId=value}__getOlefaProtocol(){return this.properties.olefaProtocol}__setOlefaProtocol(value){this.properties.olefaProtocol=value}__getOlefaHost(){return this.properties.olefaHost}__setOlefaHost(value){this.properties.olefaHost=value}__getReconnectDelay(){return this.properties.reconnectDelay}__setReconnectDelay(value){this.properties.reconnectDelay=value}__getAuthenticated(){return this.__internals.states.hasState(OcWebsocketClient.__states.AUTHENTICATED)}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.states=new OcStates();this.__internals.connection=null;this.__internals.reconnectTries=0;this.__internals.connectedServerId=null;this.__internals.queued=[];this.__internals.subscriptions={};this.propertyHandlers.protocol=this.__setProtocol;this.propertyHandlers.host=this.__setHost;this.propertyHandlers.port=this.__setPort;this.propertyHandlers.path=this.__setPath;this.propertyHandlers.sessionId=this.__setSessionId;this.propertyHandlers.olefaProtocol=this.__setOlefaProtocol;this.propertyHandlers.olefaHost=this.__setOlefaHost;this.propertyHandlers.reconnectDelay=this.__setReconnectDelay}__initStates(){this.__internals.states.define({state:OcWebsocketClient.__states.AUTHENTICATED,onChange:this.__onStateChange__authenticated.bind(this)})}__onStateChange__authenticated(){const isAuthenticated=this.__internals.states.hasState(OcWebsocketClient.__states.AUTHENTICATED);if(isAuthenticated){this.__reinitializeServices()}else{this.__disableServices();this.__trigger__connectionLost({})}}__initEvents__connection(){this.__internals.connection?.events.listen('open',this.__onConnection__open.bind(this),this.refID).listen('close',this.__onConnection__close.bind(this),this.refID).listen('message',this.__onConnection__message.bind(this),this.refID)}__onConnection__open(ev){this.__auth()}__onConnection__close(ev){this.__destroyWsConnection();this.__internals.states.remove(OcWebsocketClient.__states.AUTHENTICATED);this.__autoReconnect(ev.data)}__onConnection__message(ev){let payload;
19try{payload=OcDatatype.fromJson(ev.data.message)}catch(e){OLEFA.log.error('Invalid answer from Websocket',e)}if(!payload){return};if(!('type'in payload)){OLEFA.log.error('Invalid answer from Websocket',payload);return};switch(payload.type){case OcWebsocketClient.payloadTypes.AUTH:{this.__interpretAuthMessage(payload.data);break}case OcWebsocketClient.payloadTypes.MESSAGE:{this.__interpretMessageMessage(payload.data);break}case OcWebsocketClient.payloadTypes.CHAT_TYPING:this.__interpretMessageMessage({type:'CHATTYPING',data:payload.data});break;default:break}}__initialize(properties){super.__initialize(properties);this.__initProperties(properties);this.__initStates()}__generateHost(){const protocol=this.__getProtocol();const host=this.__getHost();const port=this.__getPort();const path=this.__getPath();let generatedHost=`${protocol}://${host}:${port}`;if(path){generatedHost=`${generatedHost}${path}`}return generatedHost}__toAuthPayload(data){if(!OcDatatype.isLiteralObject(data)){return null};if(!OcDatatype.isString(data.status)){return null}const validStatus=['confirm','reject'];if(!OcArray.includes(validStatus,data.status)){return null}let serverId;if(data.serverId&&OcDatatype.isString(data.serverId)){serverId=data.serverId};return{status:data.status,serverid:serverId}}__toMessagePayload(data){if(!OcDatatype.isLiteralObject(data)){return null};if(!OcDatatype.isString(data.type)){return null}return{type:data.type,data:data.data}}__autoReconnect(e){const dontRetryReasons=['Session was killed by OLEFA','Authentication failed!'];if(dontRetryReasons.includes(e.reason)){this.__trigger__authError({reason:e.reason});return}++this.__internals.reconnectTries;if(this.__internals.reconnectTries==OcWebsocketClient.NOTIFY_CONNECTION_ISSUE_AT_RETRY_NUMBER){this.__trigger__connectionIssue({})}this.__delayedReconnect()}__delayedReconnect(){const reconnectDelay=this.__getReconnectDelay();OLEFA.crontab.addJob({id:`${this.refID}.ws-reconnect`,inMS:reconnectDelay,instances:1,onTick:()=>{this.connect();return true}})}__auth(){const olefaHost=this.__getOlefaHost();const olefaProtocol=this.__getOlefaProtocol();const sessionId=this.__getSessionId();if(olefaHost==null){return}if(olefaProtocol==null){return}if(sessionId==null){return}this.sendMessage(OcWebsocketClient.payloadTypes.AUTH,{host:olefaHost,protocol:olefaProtocol,serverid:"0",wsid:sessionId})}__interpretAuthMessage(payloadData){if(payloadData.status=='confirm'){this.__internals.states.add(OcWebsocketClient.__states.AUTHENTICATED);this.__internals.connectedServerId=payloadData.serverid||null;this.__internals.reconnectTries=0;this.__trigger__authSuccess({})}else{this.__trigger__authError({reason:'Authentication failed!'})}}__interpretMessageMessage(payloadData){if(typeof payloadData.type!=undefined){switch(payloadData.type){case'NOTIFICATION':this.__trigger__notification(payloadData.data);break;case'CHATMESSAGE':this.__trigger__conversationMessage(payloadData.data);break;case'CHATMESSAGESEEN':this.__trigger__conversationSeen(payloadData.data);break;case'CHATMEMBERSHIP':this.__trigger__conversationMembershipChange(payloadData.data);break;case'CHATTYPING':this.__trigger__conversationTypingChange(payloadData.data);break;case'VIDEOENCODESTATE':this.__trigger__videoEncodeStateChange(payloadData.data);break;case'ASSIGNMENTCREATE':this.__trigger__assignmentCreate(payloadData.data);break;case'ASSIGNMENTUPDATE':this.__trigger__assignmentUpdate(payloadData.data);break;case'ASSIGNMENTDELETE':this.__trigger__assignmentDelete(payloadData.data);break;case'ASSIGNMENTINTERACTION':this.__trigger__assignmentInteraction(payloadData.data);break;case'CALUPDATES':this.__trigger__calUpdate(payloadData.data);break;case'DMEUPDATES':this.__trigger__dmeUpdate(payloadData.data);break;case'TIPARLOUPDATES_API_1':this.__trigger__tiparloUpdateV1(payloadData.data);break;case'STORYBOARDUPDATES_API_1':this.__trigger__storyboardUpdateV1(payloadData.data);break;default:break}this.__trigger__message(payloadData)}}__disableServices(){for(const subscription of Object.values(this.__internals.subscriptions)){subscription.status=false}}__reinitializeServices(){for(const queuedItem of this.__internals.queued){this.sendMessage(queuedItem.type,queuedItem.data)};OcObject.forEach(this.__internals.subscriptions,(service,subscription)=>
19{if(!subscription.status){this.subscribeToService(service,subscription.data)}})}__destroyWsConnection(){if(!this.__internals.connection){return}const connection=this.__internals.connection;this.__internals.connection=null;connection.events.cancelAllFromScope(this.refID);connection.closeConnection();Oc.destroyEventually(connection)}connect(){this.__destroyWsConnection();this.__internals.reconnectTries=0;const generatedHost=this.__generateHost();if(OcWebsocketConnectionSharedworker.isSupported()){this.__internals.connection=new OcWebsocketConnectionSharedworker({host:generatedHost})}else{this.__internals.connection=new OcWebsocketConnectionDirect({host:generatedHost})}this.__initEvents__connection()}sendMessage(payloadType,data){const isAuthenticated=this.__internals.states.hasState(OcWebsocketClient.__states.AUTHENTICATED);if(isAuthenticated||payloadType==OcWebsocketClient.payloadTypes.AUTH){const message={type:payloadType,data:data};if(payloadType==OcWebsocketClient.payloadTypes.SUBSCRIBE){const typedData=data;const subscription=this.__internals.subscriptions[typedData.service];if(subscription){subscription.status=true}};const messageString=JSON.stringify(message);this.__internals.connection?.send(messageString);OLEFA.log.info('OcWebsocketClient: Sent message',message)}else{this.__internals.queued.push({type:payloadType,data:data})}}subscribeToService(service,data){let subscription=this.__internals.subscriptions[service];if(subscription&&subscription.status&&service!=OcWebsocketClient.availableSubscriptions.VIDEOENCODESTATE){return}if(!subscription){subscription={status:false,data:data};this.__internals.subscriptions[service]=subscription}this.sendMessage(OcWebsocketClient.payloadTypes.SUBSCRIBE,{service:service,data:data})}unsubscribeFromService(service,data){this.sendMessage(OcWebsocketClient.payloadTypes.UNSUBSCRIBE,{data:data,service:service});delete this.__internals.subscriptions[service]}setChatTypingState(room,users,state){this.sendMessage(OcWebsocketClient.payloadTypes.CHAT_TYPING,{participants:users,room:room,typing:state})}__trigger__authError(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.AUTH_ERROR,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__authSuccess(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.AUTH_SUCCESS,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__connectionLost(eventData){const event=new OcEvent({eventName:'connection-lost',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__connectionIssue(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.CONNECTION_ISSUE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__message(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.MESSAGE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__notification(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.NOTIFICATION,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__conversationMessage(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.CONVERSATION_MESSAGE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__conversationSeen(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.CONVERSATION_SEEN,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__conversationMembershipChange(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.CONVERSATION_MEMBERSHIP_CHANGE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__conversationTypingChange(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.CONVERSATION_TYPING_CHANGE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__videoEncodeStateChange(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.VIDEO_ENCODE_STATE_CHANGE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__assignmentCreate(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.ASSIGNMENT_CREATE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__assignmentUpdate(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.ASSIGNMENT_UPDATE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__assignmentDelete(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.ASSIGNMENT_DELETE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__assignmentInteraction(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.ASSIGNMENT_INTERACTION,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__calUpdate(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.CAL_UPDATE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__dmeUpdate(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.DME_UPDATE,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__tiparloUpdateV1(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.TIPARLO_UPDATE_V1,data:eventData});this.__internals.events.triggerEvent(event)}__trigger__storyboardUpdateV1(eventData){const event=new OcEvent({eventName:OcWebsocketClient.events.STORYBOARD_UPDATE_V1,data:eventData});this.__internals.events.triggerEvent(event)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,protocol:null,host:null,port:null,path:null,sessionId:null,olefaProtocol:null,olefaHost:null,reconnectDelay:this.DEFAULT_RECONNECT_DELAY}}}}OcWebsocketClient.__states={AUTHENTICATED:'authenticated'};OcWebsocketClient.events={...OcComponent.events,AUTH_ERROR:'auth-error',AUTH_SUCCESS:'auth-success',CONNECTION_LOST:'
19connection-lost',CONNECTION_ISSUE:'connection-issue',MESSAGE:'message',NOTIFICATION:'notification',CONVERSATION_MESSAGE:'conversation-message',CONVERSATION_SEEN:'conversation-seen',CONVERSATION_MEMBERSHIP_CHANGE:'conversation-membership-change',CONVERSATION_TYPING_CHANGE:'conversation-typing-change',VIDEO_ENCODE_STATE_CHANGE:'video-encode-state-change',ASSIGNMENT_CREATE:'assignment-create',ASSIGNMENT_UPDATE:'assignment-update',ASSIGNMENT_DELETE:'assignment-delete',ASSIGNMENT_INTERACTION:'assignment-interaction',CAL_UPDATE:'cal-update',DME_UPDATE:'dme-update',TIPARLO_UPDATE_V1:'tiparlo-update-v1',STORYBOARD_UPDATE_V1:'storyboard-update-v1'};OcWebsocketClient.payloadTypes={AUTH:1,MESSAGE:2,SUBSCRIBE:3,UNSUBSCRIBE:4,CHAT_TYPING:5,SESSIONKILL:6,BROADCAST:7};OcWebsocketClient.availableSubscriptions={CHATTYPING:'CHATTYPING',VIDEOENCODESTATE:'VIDEOENCODESTATE',ASSIGNMENTINTERACTION:'ASSIGNMENTINTERACTION',DMEUPDATES:'DMEUPDATES',CALUPDATES:'CALUPDATES',TIPARLOUPDATES_API_1:'TIPARLOUPDATES_API_1',STORYBOARDUPDATES_API_1:'STORYBOARDUPDATES_API_1',};OcWebsocketClient.DEFAULT_PROTOCOL=3000;OcWebsocketClient.DEFAULT_PORT=3000;OcWebsocketClient.DEFAULT_RECONNECT_DELAY=3000;OcWebsocketClient.NOTIFY_CONNECTION_ISSUE_AT_RETRY_NUMBER=3;Oc.OcWebsocketClient=OcWebsocketClient;"use strict";class OcWebsocketConnection extends OcComponent{constructor(properties){super(properties)}defaults(){return OcWebsocketConnection.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions,host:{get:this.__getHost.bind(this)}}}__getHost(){return this.properties.host}__setHost(value){this.properties.host=value}__buildInstanceStructure(){super.__buildInstanceStructure();this.propertyHandlers.host=this.__setHost}__initialize(properties){super.__initialize(properties);this.__initProperties(properties)}__trigger__close(eventData){const event=new OcEvent({eventName:'close',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__message(eventData){const event=new OcEvent({eventName:'message',data:eventData});this.__internals.events.triggerEvent(event)}__trigger__open(eventData){const event=new OcEvent({eventName:'open',data:eventData});this.__internals.events.triggerEvent(event)}destroy(){this.closeConnection();super.destroy()}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties,host:''}}}}Oc.OcWebsocketConnection=OcWebsocketConnection;"use strict";class OcWebsocketConnectionDirect extends OcWebsocketConnection{constructor(properties){super(properties)}defaults(){return OcWebsocketConnectionDirect.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__initEvents__websocket(){this.__internals.websocket?.addEventListener('open',this.__onWebsocket__open.bind(this));this.__internals.websocket?.addEventListener('close',this.__onWebsocket__close.bind(this));this.__internals.websocket?.addEventListener('message',this.__onWebsocket__message.bind(this))}__onWebsocket__open(ev){this.__trigger__open({})}__onWebsocket__close(ev){this.__trigger__close(ev)}__onWebsocket__message(ev){this.__trigger__message({message:ev.data})}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.websocket=null;this.propertyHandlers.host=this.__setHost}__initialize(properties){super.__initialize(properties);const host=this.__getHost();this.__internals.websocket=new WebSocket(host);this.__initEvents__websocket()}closeConnection(){this.__internals.websocket?.close(1000,'Closed intentionally by client')}send(message){this.__internals.websocket?.send(message)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}}Oc.OcWebsocketConnectionDirect=OcWebsocketConnectionDirect;"use strict";class OcWebsocketConnectionSharedworker extends OcWebsocketConnection{constructor(properties){super(properties)}defaults(){return OcWebsocketConnectionSharedworker.defaults()}__interfaceDefinitions(){const inheritedDefinitions=super.__interfaceDefinitions();return{...inheritedDefinitions}}__buildInstanceStructure(){super.__buildInstanceStructure();this.__internals.worker=null;this.propertyHandlers.host=this.__setHost}__initEvents__sharedWorker(){this.__internals.worker?.port.addEventListener('message',(ev)=>{this.__onWorker__message(ev)})}__onWorker__message(messageEvent){this.__interpretMessage(messageEvent.data)}__initialize(properties){super.__initialize(properties);if(!OcWebsocketConnectionSharedworker.isSupported()){return}if(this.__internals.worker){this.__disconnectSharedWorker()}this.__internals.worker=new SharedWorker(`${OLEFA.environment.folders.javascript}${OcWebsocketConnectionSharedworker.__WORKER_FILE}?v=${Core.status.version}`);this.__initEvents__sharedWorker();this.__internals.worker.port.start();const host=this.__getHost();this.__postMessage(OcWebsocketConnectionSharedworker.__commands.CONNECT,host);this.__detectDisconnectedSharedWorker()}__generateKeepAliveJobId(){return`${this.refID}--keepalive-check`}__detectDisconnectedSharedWorker(){const jobId=this.__generateKeepAliveJobId();OLEFA.crontab.removeJob(jobId);
19OLEFA.crontab.addJob({id:jobId,inMS:OcWebsocketConnectionSharedworker.__PING_OVERDUE_LIMIT,instances:1,tries:1,onTick:()=>{this.__disconnectSharedWorker();const event=new CloseEvent('close',{code:1006,reason:"Shared Worker disconnected",wasClean:false});this.__trigger__close(event);return true}})}__interpretMessage(data){if(!OcDatatype.isArray(data)){return};const[type,content]=data;if(!OcDatatype.isString(type)){return};switch(type){case OcWebsocketConnectionSharedworker.__messageTypes.ON_OPEN:this.__trigger__open({});break;case OcWebsocketConnectionSharedworker.__messageTypes.ON_CLOSE:const fromJson=OcDatatype.fromJson(content);let reason='';let code=1006;if(OcDatatype.isLiteralObject(fromJson)){if("reason"in fromJson&&OcDatatype.isString(fromJson.reason)){reason=fromJson.reason};if("code"in fromJson&&OcDatatype.isNumeric(fromJson.code)){code=fromJson.code}}const closeEvent=new CloseEvent('close',{code:code,reason:reason,wasClean:false});this.__trigger__close(closeEvent);break;case OcWebsocketConnectionSharedworker.__messageTypes.ON_MESSAGE:this.__trigger__message({message:content});break;case OcWebsocketConnectionSharedworker.__messageTypes.PING:this.__sendPingToWorker();this.__detectDisconnectedSharedWorker();break;default:break}}__sendPingToWorker(){this.__postMessage(OcWebsocketConnectionSharedworker.__commands.PING)}__postMessage(command,data){this.__internals.worker?.port.postMessage([command,data])}__disconnectSharedWorker(){const jobId=this.__generateKeepAliveJobId();OLEFA.crontab.removeJob(jobId);this.__internals.worker?.port.close();this.__internals.worker=null}closeConnection(){this.__disconnectSharedWorker()}send(message){this.__postMessage(OcWebsocketConnectionSharedworker.__commands.SEND,message)}static defaults(){const inheritedDefaults=super.defaults();return{...inheritedDefaults,properties:{...inheritedDefaults.properties}}}static isSupported(){return typeof SharedWorker!=='undefined'}}OcWebsocketConnectionSharedworker.__WORKER_FILE='/librarys/fromTS/workers/shared/websocketClient.js';OcWebsocketConnectionSharedworker.__commands={PING:'ping',CONNECT:'connect',SEND:'send'};OcWebsocketConnectionSharedworker.__messageTypes={ON_OPEN:'onopen',ON_CLOSE:'onclose',ON_MESSAGE:'onmessage',PING:'ping'};OcWebsocketConnectionSharedworker.__EXPECTED_PING_INTERVAL=30000;OcWebsocketConnectionSharedworker.__EXPECTED_PING_GRACE=10000;OcWebsocketConnectionSharedworker.__PING_OVERDUE_LIMIT=OcWebsocketConnectionSharedworker.__EXPECTED_PING_INTERVAL+OcWebsocketConnectionSharedworker.__EXPECTED_PING_GRACE;Oc.OcWebsocketConnectionSharedworker=OcWebsocketConnectionSharedworker;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.