Files
kapp/6741.bcd909fe210fb68e.js
2026-05-21 11:19:10 -03:00

1 line
2.9 MiB
Plaintext

(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6741],{28461:(Ge,$,f)=>{f.d($,{Hw:()=>a,bw:()=>h,EE:()=>g});var o=f(47423),a=(()=>{return(m=a||(a={}))[m.Min=1]="Min",m[m.Low=2]="Low",m[m.Default=3]="Default",m[m.High=4]="High",m[m.Max=5]="Max",a;var m})(),g=(()=>{return(m=g||(g={}))[m.Secret=-1]="Secret",m[m.Private=0]="Private",m[m.Public=1]="Public",g;var m})();const h=(0,o.fo)("NotifyPersistent")},47394:(Ge,$,f)=>{f.d($,{AB:()=>h,Ds:()=>g,bO:()=>a,dz:()=>o});var o=(()=>{return(m=o||(o={}))[m.none=0]="none",m[m.touchId=1]="touchId",m[m.faceId=2]="faceId",m[m.fingerprintAuthentication=3]="fingerprintAuthentication",m[m.faceAuthentication=4]="faceAuthentication",m[m.irisAuthentication=5]="irisAuthentication",o;var m})(),a=(()=>{return(m=a||(a={}))[m.weak=0]="weak",m[m.strong=1]="strong",a;var m})(),g=(()=>{return(m=g||(g={})).none="",m.appCancel="appCancel",m.authenticationFailed="authenticationFailed",m.invalidContext="invalidContext",m.notInteractive="notInteractive",m.passcodeNotSet="passcodeNotSet",m.systemCancel="systemCancel",m.userCancel="userCancel",m.userFallback="userFallback",m.biometryLockout="biometryLockout",m.biometryNotAvailable="biometryNotAvailable",m.biometryNotEnrolled="biometryNotEnrolled",m.noDeviceCredential="noDeviceCredential",g;var m})();class h{constructor(L,v){this.message=L,this.code=v}}},69107:(Ge,$,f)=>{f.d($,{Gw:()=>m,bO:()=>g.bO,dz:()=>g.dz});var o=f(15861),a=f(2461),g=f(47394);f(6371);const m=(0,a.fo)("BiometricAuthNative",{web:(L=(0,o.Z)(function*(){return f.e(9064).then(f.bind(f,29064)).then(v=>new v.BiometricAuthWeb)}),function(){return L.apply(this,arguments)}),ios:function(){var L=(0,o.Z)(function*(){return f.e(2505).then(f.bind(f,52505)).then(v=>new v.BiometricAuthNative(m))});return function(){return L.apply(this,arguments)}}(),android:function(){var L=(0,o.Z)(function*(){return f.e(2505).then(f.bind(f,52505)).then(v=>new v.BiometricAuthNative(m))});return function(){return L.apply(this,arguments)}}()});var L},6371:(Ge,$,f)=>{f.d($,{S:()=>g});var o=f(47394);const a={[o.dz.none]:"",[o.dz.touchId]:"Touch ID",[o.dz.faceId]:"Face ID",[o.dz.fingerprintAuthentication]:"Fingerprint Authentication",[o.dz.faceAuthentication]:"Face Authentication",[o.dz.irisAuthentication]:"Iris Authentication"};function g(h){return a[h]||""}},2461:(Ge,$,f)=>{f.d($,{Uw:()=>K,fo:()=>j,xz:()=>k});var o=f(15861);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var b=(()=>{return(ie=b||(b={})).Unimplemented="UNIMPLEMENTED",ie.Unavailable="UNAVAILABLE",b;var ie})();class k extends Error{constructor(se,me,Ne){super(se),this.message=se,this.code=me,this.data=Ne}}const Y=ie=>{var se,me,Ne,_e,we;const Ee=ie.CapacitorCustomPlatform||null,le=ie.Capacitor||{},Ue=le.Plugins=le.Plugins||{},ke=ie.CapacitorPlatforms,ye=(null===(se=ke?.currentPlatform)||void 0===se?void 0:se.getPlatform)||(()=>null!==Ee?Ee.name:(ie=>{var se,me;return ie?.androidBridge?"android":null!==(me=null===(se=ie?.webkit)||void 0===se?void 0:se.messageHandlers)&&void 0!==me&&me.bridge?"ios":"web"})(ie)),Ze=(null===(me=ke?.currentPlatform)||void 0===me?void 0:me.isNativePlatform)||(()=>"web"!==ye()),At=(null===(Ne=ke?.currentPlatform)||void 0===Ne?void 0:Ne.isPluginAvailable)||(ft=>!(!gn.get(ft)?.platforms.has(ye())&&!fn(ft))),fn=(null===(_e=ke?.currentPlatform)||void 0===_e?void 0:_e.getPluginHeader)||(ft=>{var Tt;return null===(Tt=le.PluginHeaders)||void 0===Tt?void 0:Tt.find(en=>en.name===ft)}),gn=new Map,cn=(null===(we=ke?.currentPlatform)||void 0===we?void 0:we.registerPlugin)||((ft,Tt={})=>{const en=gn.get(ft);if(en)return console.warn(`Capacitor plugin "${ft}" already registered. Cannot register plugins twice.`),en.proxy;const Gt=ye(),or=fn(ft);let Cr;const wr=function(){var Qn=(0,o.Z)(function*(){return!Cr&&Gt in Tt?Cr=Cr="function"==typeof Tt[Gt]?yield Tt[Gt]():Tt[Gt]:null!==Ee&&!Cr&&"web"in Tt&&(Cr=Cr="function"==typeof Tt.web?yield Tt.web():Tt.web),Cr});return function(){return Qn.apply(this,arguments)}}(),er=Qn=>{let Pr;const jr=(...Nr)=>{const go=wr().then(Zr=>{const ro=((Qn,Pr)=>{var jr,Nr;if(!or){if(Qn)return null===(Nr=Qn[Pr])||void 0===Nr?void 0:Nr.bind(Qn);throw new k(`"${ft}" plugin is not implemented on ${Gt}`,b.Unimplemented)}{const go=or?.methods.find(Zr=>Pr===Zr.name);if(go)return"promise"===go.rtype?Zr=>le.nativePromise(ft,Pr.toString(),Zr):(Zr,ro)=>le.nativeCallback(ft,Pr.toString(),Zr,ro);if(Qn)return null===(jr=Qn[Pr])||void 0===jr?void 0:jr.bind(Qn)}})(Zr,Qn);if(ro){const mo=ro(...Nr);return Pr=mo?.remove,mo}throw new k(`"${ft}.${Qn}()" is not implemented on ${Gt}`,b.Unimplemented)});return"addListener"===Qn&&(go.remove=(0,o.Z)(function*(){return Pr()})),go};return jr.toString=()=>`${Qn.toString()}() { [capacitor code] }`,Object.defineProperty(jr,"name",{value:Qn,writable:!1,configurable:!1}),jr},Jn=er("addListener"),Er=er("removeListener"),lo=(Qn,Pr)=>{const jr=Jn({eventName:Qn},Pr),Nr=function(){var Zr=(0,o.Z)(function*(){const ro=yield jr;Er({eventName:Qn,callbackId:ro},Pr)});return function(){return Zr.apply(this,arguments)}}(),go=new Promise(Zr=>jr.then(()=>Zr({remove:Nr})));return go.remove=(0,o.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Nr()}),go},Gr=new Proxy({},{get(Qn,Pr){switch(Pr){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return or?lo:Jn;case"removeListener":return Er;default:return er(Pr)}}});return Ue[ft]=Gr,gn.set(ft,{name:ft,proxy:Gr,platforms:new Set([...Object.keys(Tt),...or?[Gt]:[]])}),Gr});return le.convertFileSrc||(le.convertFileSrc=ft=>ft),le.getPlatform=ye,le.handleError=ft=>ie.console.error(ft),le.isNativePlatform=Ze,le.isPluginAvailable=At,le.pluginMethodNoop=(ft,Tt,en)=>Promise.reject(`${en} does not have an implementation of "${Tt}".`),le.registerPlugin=cn,le.Exception=k,le.DEBUG=!!le.DEBUG,le.isLoggingEnabled=!!le.isLoggingEnabled,le.platform=le.getPlatform(),le.isNative=le.isNativePlatform(),le},D=(ie=>ie.Capacitor=Y(ie))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),j=D.registerPlugin;class K{constructor(se){this.listeners={},this.retainedEventArguments={},this.windowListeners={},se&&(console.warn(`Capacitor WebPlugin "${se.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=se)}addListener(se,me){var Ne=this;let _e=!1;this.listeners[se]||(this.listeners[se]=[],_e=!0),this.listeners[se].push(me);const Ee=this.windowListeners[se];Ee&&!Ee.registered&&this.addWindowListener(Ee),_e&&this.sendRetainedArgumentsForEvent(se);const le=function(){var ke=(0,o.Z)(function*(){return Ne.removeListener(se,me)});return function(){return ke.apply(this,arguments)}}();return Promise.resolve({remove:le})}removeAllListeners(){var se=this;return(0,o.Z)(function*(){se.listeners={};for(const me in se.windowListeners)se.removeWindowListener(se.windowListeners[me]);se.windowListeners={}})()}notifyListeners(se,me,Ne){const _e=this.listeners[se];if(_e)_e.forEach(we=>we(me));else if(Ne){let we=this.retainedEventArguments[se];we||(we=[]),we.push(me),this.retainedEventArguments[se]=we}}hasListeners(se){return!!this.listeners[se].length}registerWindowListener(se,me){this.windowListeners[me]={registered:!1,windowEventName:se,pluginEventName:me,handler:Ne=>{this.notifyListeners(me,Ne)}}}unimplemented(se="not implemented"){return new D.Exception(se,b.Unimplemented)}unavailable(se="not available"){return new D.Exception(se,b.Unavailable)}removeListener(se,me){var Ne=this;return(0,o.Z)(function*(){const _e=Ne.listeners[se];if(!_e)return;const we=_e.indexOf(me);Ne.listeners[se].splice(we,1),Ne.listeners[se].length||Ne.removeWindowListener(Ne.windowListeners[se])})()}addWindowListener(se){window.addEventListener(se.windowEventName,se.handler),se.registered=!0}removeWindowListener(se){!se||(window.removeEventListener(se.windowEventName,se.handler),se.registered=!1)}sendRetainedArgumentsForEvent(se){const me=this.retainedEventArguments[se];!me||(delete this.retainedEventArguments[se],me.forEach(Ne=>{this.notifyListeners(se,Ne)}))}}const De=ie=>encodeURIComponent(ie).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Te=ie=>ie.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class ce extends K{getCookies(){return(0,o.Z)(function*(){const se=document.cookie,me={};return se.split(";").forEach(Ne=>{if(Ne.length<=0)return;let[_e,we]=Ne.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");_e=Te(_e).trim(),we=Te(we).trim(),me[_e]=we}),me})()}setCookie(se){return(0,o.Z)(function*(){try{const me=De(se.key),Ne=De(se.value),_e=`; expires=${(se.expires||"").replace("expires=","")}`,we=(se.path||"/").replace("path=",""),Ee=null!=se.url&&se.url.length>0?`domain=${se.url}`:"";document.cookie=`${me}=${Ne||""}${_e}; path=${we}; ${Ee};`}catch(me){return Promise.reject(me)}})()}deleteCookie(se){return(0,o.Z)(function*(){try{document.cookie=`${se.key}=; Max-Age=0`}catch(me){return Promise.reject(me)}})()}clearCookies(){return(0,o.Z)(function*(){try{const se=document.cookie.split(";")||[];for(const me of se)document.cookie=me.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(se){return Promise.reject(se)}})()}clearAllCookies(){var se=this;return(0,o.Z)(function*(){try{yield se.clearCookies()}catch(me){return Promise.reject(me)}})()}}j("CapacitorCookies",{web:()=>new ce});const te=function(){var ie=(0,o.Z)(function*(se){return new Promise((me,Ne)=>{const _e=new FileReader;_e.onload=()=>{const we=_e.result;me(we.indexOf(",")>=0?we.split(",")[1]:we)},_e.onerror=we=>Ne(we),_e.readAsDataURL(se)})});return function(me){return ie.apply(this,arguments)}}();class Le extends K{request(se){return(0,o.Z)(function*(){const me=((ie,se={})=>{const me=Object.assign({method:ie.method||"GET",headers:ie.headers},se),_e=((ie={})=>{const se=Object.keys(ie);return Object.keys(ie).map(_e=>_e.toLocaleLowerCase()).reduce((_e,we,Ee)=>(_e[we]=ie[se[Ee]],_e),{})})(ie.headers)["content-type"]||"";if("string"==typeof ie.data)me.body=ie.data;else if(_e.includes("application/x-www-form-urlencoded")){const we=new URLSearchParams;for(const[Ee,le]of Object.entries(ie.data||{}))we.set(Ee,le);me.body=we.toString()}else if(_e.includes("multipart/form-data")||ie.data instanceof FormData){const we=new FormData;if(ie.data instanceof FormData)ie.data.forEach((le,Ue)=>{we.append(Ue,le)});else for(const le of Object.keys(ie.data))we.append(le,ie.data[le]);me.body=we;const Ee=new Headers(me.headers);Ee.delete("content-type"),me.headers=Ee}else(_e.includes("application/json")||"object"==typeof ie.data)&&(me.body=JSON.stringify(ie.data));return me})(se,se.webFetchExtra),Ne=((ie,se=!0)=>ie?Object.entries(ie).reduce((Ne,_e)=>{const[we,Ee]=_e;let le,Ue;return Array.isArray(Ee)?(Ue="",Ee.forEach(ke=>{le=se?encodeURIComponent(ke):ke,Ue+=`${we}=${le}&`}),Ue.slice(0,-1)):(le=se?encodeURIComponent(Ee):Ee,Ue=`${we}=${le}`),`${Ne}&${Ue}`},"").substr(1):null)(se.params,se.shouldEncodeUrlParams),_e=Ne?`${se.url}?${Ne}`:se.url,we=yield fetch(_e,me),Ee=we.headers.get("content-type")||"";let Ue,ke,{responseType:le="text"}=we.ok?se:{};switch(Ee.includes("application/json")&&(le="json"),le){case"arraybuffer":case"blob":ke=yield we.blob(),Ue=yield te(ke);break;case"json":Ue=yield we.json();break;default:Ue=yield we.text()}const ze={};return we.headers.forEach((ye,je)=>{ze[je]=ye}),{data:Ue,headers:ze,status:we.status,url:we.url}})()}get(se){var me=this;return(0,o.Z)(function*(){return me.request(Object.assign(Object.assign({},se),{method:"GET"}))})()}post(se){var me=this;return(0,o.Z)(function*(){return me.request(Object.assign(Object.assign({},se),{method:"POST"}))})()}put(se){var me=this;return(0,o.Z)(function*(){return me.request(Object.assign(Object.assign({},se),{method:"PUT"}))})()}patch(se){var me=this;return(0,o.Z)(function*(){return me.request(Object.assign(Object.assign({},se),{method:"PATCH"}))})()}delete(se){var me=this;return(0,o.Z)(function*(){return me.request(Object.assign(Object.assign({},se),{method:"DELETE"}))})()}}j("CapacitorHttp",{web:()=>new Le})},14690:(Ge,$,f)=>{f.d($,{r:()=>m});var o=f(97582),a=f(45449),h=f(17598),m=function(L){function v(){var b=null!==L&&L.apply(this,arguments)||this;return b.PERMISSION={ACCESS_CHECKIN_PROPERTIES:"android.permission.ACCESS_CHECKIN_PROPERTIES",ACCESS_COARSE_LOCATION:"android.permission.ACCESS_COARSE_LOCATION",ACCESS_FINE_LOCATION:"android.permission.ACCESS_FINE_LOCATION",ACCESS_LOCATION_EXTRA_COMMANDS:"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS",ACCESS_MOCK_LOCATION:"android.permission.ACCESS_MOCK_LOCATION",ACCESS_NETWORK_STATE:"android.permission.ACCESS_NETWORK_STATE",ACCESS_SURFACE_FLINGER:"android.permission.ACCESS_SURFACE_FLINGER",ACCESS_WIFI_STATE:"android.permission.ACCESS_WIFI_STATE",ACCOUNT_MANAGER:"android.permission.ACCOUNT_MANAGER",ADD_VOICEMAIL:"com.android.voicemail.permission.ADD_VOICEMAIL",AUTHENTICATE_ACCOUNTS:"android.permission.AUTHENTICATE_ACCOUNTS",BATTERY_STATS:"android.permission.BATTERY_STATS",BIND_ACCESSIBILITY_SERVICE:"android.permission.BIND_ACCESSIBILITY_SERVICE",BIND_APPWIDGET:"android.permission.BIND_APPWIDGET",BIND_CARRIER_MESSAGING_SERVICE:"android.permission.BIND_CARRIER_MESSAGING_SERVICE",BIND_DEVICE_ADMIN:"android.permission.BIND_DEVICE_ADMIN",BIND_DREAM_SERVICE:"android.permission.BIND_DREAM_SERVICE",BIND_INPUT_METHOD:"android.permission.BIND_INPUT_METHOD",BIND_NFC_SERVICE:"android.permission.BIND_NFC_SERVICE",BIND_NOTIFICATION_LISTENER_SERVICE:"android.permission.BIND_NOTIFICATION_LISTENER_SERVICE",BIND_PRINT_SERVICE:"android.permission.BIND_PRINT_SERVICE",BIND_REMOTEVIEWS:"android.permission.BIND_REMOTEVIEWS",BIND_TEXT_SERVICE:"android.permission.BIND_TEXT_SERVICE",BIND_TV_INPUT:"android.permission.BIND_TV_INPUT",BIND_VOICE_INTERACTION:"android.permission.BIND_VOICE_INTERACTION",BIND_VPN_SERVICE:"android.permission.BIND_VPN_SERVICE",BIND_WALLPAPER:"android.permission.BIND_WALLPAPER",BLUETOOTH:"android.permission.BLUETOOTH",BLUETOOTH_ADMIN:"android.permission.BLUETOOTH_ADMIN",BLUETOOTH_ADVERTISE:"android.permission.BLUETOOTH_ADVERTISE",BLUETOOTH_CONNECT:"android.permission.BLUETOOTH_CONNECT",BLUETOOTH_PRIVILEGED:"android.permission.BLUETOOTH_PRIVILEGED",BLUETOOTH_SCAN:"android.permission.BLUETOOTH_SCAN",BODY_SENSORS:"android.permission.BODY_SENSORS",BRICK:"android.permission.BRICK",BROADCAST_PACKAGE_REMOVED:"android.permission.BROADCAST_PACKAGE_REMOVED",BROADCAST_SMS:"android.permission.BROADCAST_SMS",BROADCAST_STICKY:"android.permission.BROADCAST_STICKY",BROADCAST_WAP_PUSH:"android.permission.BROADCAST_WAP_PUSH",CALL_PHONE:"android.permission.CALL_PHONE",CALL_PRIVILEGED:"android.permission.CALL_PRIVILEGED",CAMERA:"android.permission.CAMERA",CAPTURE_AUDIO_OUTPUT:"android.permission.CAPTURE_AUDIO_OUTPUT",CAPTURE_SECURE_VIDEO_OUTPUT:"android.permission.CAPTURE_SECURE_VIDEO_OUTPUT",CAPTURE_VIDEO_OUTPUT:"android.permission.CAPTURE_VIDEO_OUTPUT",CHANGE_COMPONENT_ENABLED_STATE:"android.permission.CHANGE_COMPONENT_ENABLED_STATE",CHANGE_CONFIGURATION:"android.permission.CHANGE_CONFIGURATION",CHANGE_NETWORK_STATE:"android.permission.CHANGE_NETWORK_STATE",CHANGE_WIFI_MULTICAST_STATE:"android.permission.CHANGE_WIFI_MULTICAST_STATE",CHANGE_WIFI_STATE:"android.permission.CHANGE_WIFI_STATE",CLEAR_APP_CACHE:"android.permission.CLEAR_APP_CACHE",CLEAR_APP_USER_DATA:"android.permission.CLEAR_APP_USER_DATA",CONTROL_LOCATION_UPDATES:"android.permission.CONTROL_LOCATION_UPDATES",DELETE_CACHE_FILES:"android.permission.DELETE_CACHE_FILES",DELETE_PACKAGES:"android.permission.DELETE_PACKAGES",DEVICE_POWER:"android.permission.DEVICE_POWER",DIAGNOSTIC:"android.permission.DIAGNOSTIC",DISABLE_KEYGUARD:"android.permission.DISABLE_KEYGUARD",DUMP:"android.permission.DUMP",EXPAND_STATUS_BAR:"android.permission.EXPAND_STATUS_BAR",FACTORY_TEST:"android.permission.FACTORY_TEST",FLASHLIGHT:"android.permission.FLASHLIGHT",FORCE_BACK:"android.permission.FORCE_BACK",GET_ACCOUNTS:"android.permission.GET_ACCOUNTS",GET_PACKAGE_SIZE:"android.permission.GET_PACKAGE_SIZE",GET_TASKS:"android.permission.GET_TASKS",GET_TOP_ACTIVITY_INFO:"android.permission.GET_TOP_ACTIVITY_INFO",GLOBAL_SEARCH:"android.permission.GLOBAL_SEARCH",HARDWARE_TEST:"android.permission.HARDWARE_TEST",INJECT_EVENTS:"android.permission.INJECT_EVENTS",INSTALL_LOCATION_PROVIDER:"android.permission.INSTALL_LOCATION_PROVIDER",INSTALL_PACKAGES:"android.permission.INSTALL_PACKAGES",INSTALL_SHORTCUT:"com.android.launcher.permission.INSTALL_SHORTCUT",INTERNAL_SYSTEM_WINDOW:"android.permission.INTERNAL_SYSTEM_WINDOW",INTERNET:"android.permission.INTERNET",KILL_BACKGROUND_PROCESSES:"android.permission.KILL_BACKGROUND_PROCESSES",LOCATION_HARDWARE:"android.permission.LOCATION_HARDWARE",MANAGE_ACCOUNTS:"android.permission.MANAGE_ACCOUNTS",MANAGE_APP_TOKENS:"android.permission.MANAGE_APP_TOKENS",MANAGE_DOCUMENTS:"android.permission.MANAGE_DOCUMENTS",MASTER_CLEAR:"android.permission.MASTER_CLEAR",MEDIA_CONTENT_CONTROL:"android.permission.MEDIA_CONTENT_CONTROL",MODIFY_AUDIO_SETTINGS:"android.permission.MODIFY_AUDIO_SETTINGS",MODIFY_PHONE_STATE:"android.permission.MODIFY_PHONE_STATE",MOUNT_FORMAT_FILESYSTEMS:"android.permission.MOUNT_FORMAT_FILESYSTEMS",MOUNT_UNMOUNT_FILESYSTEMS:"android.permission.MOUNT_UNMOUNT_FILESYSTEMS",NFC:"android.permission.NFC",PERSISTENT_ACTIVITY:"android.permission.PERSISTENT_ACTIVITY",POST_NOTIFICATIONS:"android.permission.POST_NOTIFICATIONS",PROCESS_OUTGOING_CALLS:"android.permission.PROCESS_OUTGOING_CALLS",READ_CALENDAR:"android.permission.READ_CALENDAR",READ_CALL_LOG:"android.permission.READ_CALL_LOG",READ_CONTACTS:"android.permission.READ_CONTACTS",READ_EXTERNAL_STORAGE:"android.permission.READ_EXTERNAL_STORAGE",READ_FRAME_BUFFER:"android.permission.READ_FRAME_BUFFER",READ_HISTORY_BOOKMARKS:"com.android.browser.permission.READ_HISTORY_BOOKMARKS",READ_INPUT_STATE:"android.permission.READ_INPUT_STATE",READ_LOGS:"android.permission.READ_LOGS",READ_MEDIA_AUDIO:"android.permission.READ_MEDIA_AUDIO",READ_MEDIA_IMAGES:"android.permission.READ_MEDIA_IMAGES",READ_MEDIA_VIDEO:"android.permission.READ_MEDIA_VIDEO",READ_PHONE_STATE:"android.permission.READ_PHONE_STATE",READ_PROFILE:"android.permission.READ_PROFILE",READ_SMS:"android.permission.READ_SMS",READ_SOCIAL_STREAM:"android.permission.READ_SOCIAL_STREAM",READ_SYNC_SETTINGS:"android.permission.READ_SYNC_SETTINGS",READ_SYNC_STATS:"android.permission.READ_SYNC_STATS",READ_USER_DICTIONARY:"android.permission.READ_USER_DICTIONARY",READ_VOICEMAIL:"com.android.voicemail.permission.READ_VOICEMAIL",REBOOT:"android.permission.REBOOT",RECEIVE_BOOT_COMPLETED:"android.permission.RECEIVE_BOOT_COMPLETED",RECEIVE_MMS:"android.permission.RECEIVE_MMS",RECEIVE_SMS:"android.permission.RECEIVE_SMS",RECEIVE_WAP_PUSH:"android.permission.RECEIVE_WAP_PUSH",RECORD_AUDIO:"android.permission.RECORD_AUDIO",REORDER_TASKS:"android.permission.REORDER_TASKS",RESTART_PACKAGES:"android.permission.RESTART_PACKAGES",SEND_RESPOND_VIA_MESSAGE:"android.permission.SEND_RESPOND_VIA_MESSAGE",SEND_SMS:"android.permission.SEND_SMS",SET_ACTIVITY_WATCHER:"android.permission.SET_ACTIVITY_WATCHER",SET_ALARM:"com.android.alarm.permission.SET_ALARM",SET_ALWAYS_FINISH:"android.permission.SET_ALWAYS_FINISH",SET_ANIMATION_SCALE:"android.permission.SET_ANIMATION_SCALE",SET_DEBUG_APP:"android.permission.SET_DEBUG_APP",SET_ORIENTATION:"android.permission.SET_ORIENTATION",SET_POINTER_SPEED:"android.permission.SET_POINTER_SPEED",SET_PREFERRED_APPLICATIONS:"android.permission.SET_PREFERRED_APPLICATIONS",SET_PROCESS_LIMIT:"android.permission.SET_PROCESS_LIMIT",SET_TIME:"android.permission.SET_TIME",SET_TIME_ZONE:"android.permission.SET_TIME_ZONE",SET_WALLPAPER:"android.permission.SET_WALLPAPER",SET_WALLPAPER_HINTS:"android.permission.SET_WALLPAPER_HINTS",SIGNAL_PERSISTENT_PROCESSES:"android.permission.SIGNAL_PERSISTENT_PROCESSES",STATUS_BAR:"android.permission.STATUS_BAR",SUBSCRIBED_FEEDS_READ:"android.permission.SUBSCRIBED_FEEDS_READ",SUBSCRIBED_FEEDS_WRITE:"android.permission.SUBSCRIBED_FEEDS_WRITE",SYSTEM_ALERT_WINDOW:"android.permission.SYSTEM_ALERT_WINDOW",TRANSMIT_IR:"android.permission.TRANSMIT_IR",UNINSTALL_SHORTCUT:"com.android.launcher.permission.UNINSTALL_SHORTCUT",UPDATE_DEVICE_STATS:"android.permission.UPDATE_DEVICE_STATS",USE_CREDENTIALS:"android.permission.USE_CREDENTIALS",USE_SIP:"android.permission.USE_SIP",VIBRATE:"android.permission.VIBRATE",WAKE_LOCK:"android.permission.WAKE_LOCK",WRITE_APN_SETTINGS:"android.permission.WRITE_APN_SETTINGS",WRITE_CALENDAR:"android.permission.WRITE_CALENDAR",WRITE_CALL_LOG:"android.permission.WRITE_CALL_LOG",WRITE_CONTACTS:"android.permission.WRITE_CONTACTS",WRITE_EXTERNAL_STORAGE:"android.permission.WRITE_EXTERNAL_STORAGE",WRITE_GSERVICES:"android.permission.WRITE_GSERVICES",WRITE_HISTORY_BOOKMARKS:"com.android.browser.permission.WRITE_HISTORY_BOOKMARKS",WRITE_PROFILE:"android.permission.WRITE_PROFILE",WRITE_SECURE_SETTINGS:"android.permission.WRITE_SECURE_SETTINGS",WRITE_SETTINGS:"android.permission.WRITE_SETTINGS",WRITE_SMS:"android.permission.WRITE_SMS",WRITE_SOCIAL_STREAM:"android.permission.WRITE_SOCIAL_STREAM",WRITE_SYNC_SETTINGS:"android.permission.WRITE_SYNC_SETTINGS",WRITE_USER_DICTIONARY:"android.permission.WRITE_USER_DICTIONARY",WRITE_VOICEMAIL:"com.android.voicemail.permission.WRITE_VOICEMAIL"},b}return(0,o.ZT)(v,L),v.prototype.checkPermission=function(b){return(0,h.DM)(this,"checkPermission",{},arguments)},v.prototype.requestPermission=function(b){return(0,h.DM)(this,"requestPermission",{},arguments)},v.prototype.requestPermissions=function(b){return(0,h.DM)(this,"requestPermissions",{},arguments)},v.prototype.hasPermission=function(b){return(0,h.DM)(this,"hasPermission",{},arguments)},v.\u0275fac=function(){let b;return function(F){return(b||(b=a.\u0275\u0275getInheritedFactory(v)))(F||v)}}(),v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac}),v.pluginName="AndroidPermissions",v.plugin="cordova-plugin-android-permissions",v.pluginRef="cordova.plugins.permissions",v.repo="https://github.com/NeoLSN/cordova-plugin-android-permissions",v.platforms=["Android"],v=(0,o.gn)([],v)}(h.On)},27317:(Ge,$,f)=>{f.d($,{f:()=>m});var o=f(97582),a=f(45449),h=f(17598),m=function(L){function v(){return null!==L&&L.apply(this,arguments)||this}return(0,o.ZT)(v,L),v.prototype.hasReadWritePermission=function(){return(0,h.DM)(this,"hasReadWritePermission",{},arguments)},v.prototype.hasReadPermission=function(){return(0,h.DM)(this,"hasReadPermission",{},arguments)},v.prototype.hasWritePermission=function(){return(0,h.DM)(this,"hasWritePermission",{},arguments)},v.prototype.requestWritePermission=function(){return(0,h.DM)(this,"requestWritePermission",{},arguments)},v.prototype.requestReadPermission=function(){return(0,h.DM)(this,"requestReadPermission",{},arguments)},v.prototype.requestReadWritePermission=function(){return(0,h.DM)(this,"requestReadWritePermission",{},arguments)},v.prototype.createCalendar=function(b){return(0,h.DM)(this,"createCalendar",{},arguments)},v.prototype.deleteCalendar=function(b){return(0,h.DM)(this,"deleteCalendar",{},arguments)},v.prototype.getCalendarOptions=function(){return(0,h.DM)(this,"getCalendarOptions",{sync:!0},arguments)},v.prototype.getCreateCalendarOptions=function(){return(0,h.DM)(this,"getCreateCalendarOptions",{sync:!0},arguments)},v.prototype.createEvent=function(b,k,F,Y,I){return(0,h.DM)(this,"createEvent",{},arguments)},v.prototype.createEventWithOptions=function(b,k,F,Y,I,D){return(0,h.DM)(this,"createEventWithOptions",{},arguments)},v.prototype.createEventInteractively=function(b,k,F,Y,I){return(0,h.DM)(this,"createEventInteractively",{},arguments)},v.prototype.createEventInteractivelyWithOptions=function(b,k,F,Y,I,D){return(0,h.DM)(this,"createEventInteractivelyWithOptions",{},arguments)},v.prototype.findEvent=function(b,k,F,Y,I){return(0,h.DM)(this,"findEvent",{},arguments)},v.prototype.findEventWithOptions=function(b,k,F,Y,I,D){return(0,h.DM)(this,"findEventWithOptions",{},arguments)},v.prototype.listEventsInRange=function(b,k){return(0,h.DM)(this,"listEventsInRange",{platforms:["Android"]},arguments)},v.prototype.listCalendars=function(){return(0,h.DM)(this,"listCalendars",{},arguments)},v.prototype.findAllEventsInNamedCalendar=function(b){return(0,h.DM)(this,"findAllEventsInNamedCalendar",{platforms:["iOS"]},arguments)},v.prototype.modifyEvent=function(b,k,F,Y,I,D,j,W,de,K){return(0,h.DM)(this,"modifyEvent",{platforms:["iOS"]},arguments)},v.prototype.modifyEventWithOptions=function(b,k,F,Y,I,D,j,W,de,K,ee,De){return(0,h.DM)(this,"modifyEventWithOptions",{platforms:["iOS"]},arguments)},v.prototype.deleteEvent=function(b,k,F,Y,I){return(0,h.DM)(this,"deleteEvent",{},arguments)},v.prototype.deleteEventFromNamedCalendar=function(b,k,F,Y,I,D){return(0,h.DM)(this,"deleteEventFromNamedCalendar",{platforms:["iOS"]},arguments)},v.prototype.deleteEventById=function(b,k){return(0,h.DM)(this,"deleteEventById",{},arguments)},v.prototype.openCalendar=function(b){return(0,h.DM)(this,"openCalendar",{},arguments)},v.\u0275fac=function(){let b;return function(F){return(b||(b=a.\u0275\u0275getInheritedFactory(v)))(F||v)}}(),v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac}),v.pluginName="Calendar",v.plugin="cordova-plugin-calendar",v.pluginRef="plugins.calendar",v.repo="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin",v.platforms=["Android","iOS"],v=(0,o.gn)([],v)}(h.On)},17598:(Ge,$,f)=>{f.d($,{On:()=>ge,DM:()=>xe});var a=f(56498),g=f(23753),h={error:"cordova_not_available"},m={error:"plugin_not_installed"};function L(me){if(typeof window<"u"&&window.angular){var _e=window.document,we=window.angular.element(_e.querySelector("[ng-app]")||_e.body).injector();if(we)return we.get("$q")(function(le,Ue){me(le,Ue)});console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise(function(le,Ue){me(le,Ue)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function v(me,Ne,_e,we){void 0===we&&(we={});var Ee,le,Ue=L(function(ke,ze){Ee=we.destruct?j(me,Ne,_e,we,function(){for(var ye=[],je=0;je<arguments.length;je++)ye[je]=arguments[je];return ke(ye)},function(){for(var ye=[],je=0;je<arguments.length;je++)ye[je]=arguments[je];return ze(ye)}):j(me,Ne,_e,we,ke,ze),le=ze});return Ee&&Ee.error&&(Ue.catch(function(){}),"function"==typeof le&&le(Ee.error)),Ue}function b(me,Ne,_e,we){return void 0===we&&(we={}),L(function(Ee,le){var Ue=j(me,Ne,_e,we);Ue?Ue.error?le(Ue.error):Ue.then&&Ue.then(Ee).catch(le):le({error:"unexpected_error"})})}function k(me,Ne,_e,we){return void 0===we&&(we={}),new a.y(function(Ee){var le;return le=we.destruct?j(me,Ne,_e,we,function(){for(var Ue=[],ke=0;ke<arguments.length;ke++)Ue[ke]=arguments[ke];return Ee.next(Ue)},function(){for(var Ue=[],ke=0;ke<arguments.length;ke++)Ue[ke]=arguments[ke];return Ee.error(Ue)}):j(me,Ne,_e,we,Ee.next.bind(Ee),Ee.error.bind(Ee)),le&&le.error&&(Ee.error(le.error),Ee.complete()),function(){try{if(we.clearFunction)return we.clearWithArgs?j(me,we.clearFunction,_e,we,Ee.next.bind(Ee),Ee.error.bind(Ee)):j(me,we.clearFunction,[])}catch(Ue){console.warn("Unable to clear the previous observable watch for",me.constructor.getPluginName(),Ne),console.warn(Ue)}}})}function F(me,Ne){return Ne=typeof window<"u"&&Ne?K(window,Ne):Ne||(typeof window<"u"?window:{}),(0,g.R)(Ne,me)}function Y(me,Ne,_e){var we,Ee;"string"==typeof me?we=me:(we=me.constructor.getPluginRef(),_e=me.constructor.getPluginName(),Ee=me.constructor.getPluginInstallName());var le=de(we);return!(!le||Ne&&typeof le[Ne]>"u")||(typeof window>"u"||!window.cordova?(function De(me,Ne){typeof process>"u"&&console.warn(Ne?"Native: tried calling "+me+"."+Ne+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator":"Native: tried accessing the "+me+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator")}(_e,Ne),h):(function ee(me,Ne,_e){console.warn(_e?"Native: tried calling "+me+"."+_e+", but the "+me+" plugin is not installed.":"Native: tried accessing the "+me+" plugin but it's not installed."),Ne&&console.warn("Install the "+me+" plugin: 'ionic cordova plugin add "+Ne+"'")}(_e,Ee,Ne),m))}function j(me,Ne,_e,we,Ee,le){void 0===we&&(we={}),_e=function D(me,Ne,_e,we){if(void 0===Ne&&(Ne={}),Ne.sync)return me;if("reverse"===Ne.callbackOrder)me.unshift(we),me.unshift(_e);else if("node"===Ne.callbackStyle)me.push(function(ke,ze){ke?we(ke):_e(ze)});else if("object"===Ne.callbackStyle&&Ne.successName&&Ne.errorName){var Ee={};Ee[Ne.successName]=_e,Ee[Ne.errorName]=we,me.push(Ee)}else if(typeof Ne.successIndex<"u"||typeof Ne.errorIndex<"u"){var le=function(){Ne.successIndex>me.length?me[Ne.successIndex]=_e:me.splice(Ne.successIndex,0,_e)},Ue=function(){Ne.errorIndex>me.length?me[Ne.errorIndex]=we:me.splice(Ne.errorIndex,0,we)};Ne.successIndex>Ne.errorIndex?(Ue(),le()):(le(),Ue())}else me.push(_e),me.push(we);return me}(_e,we,Ee,le);var Ue=Y(me,Ne);if(!0===Ue){var ke=de(me.constructor.getPluginRef());return ke[Ne].apply(ke,_e)}return Ue}function de(me){return typeof window<"u"?K(window,me):null}function K(me,Ne){for(var _e=Ne.split("."),we=me,Ee=0;Ee<_e.length;Ee++){if(!we)return null;we=we[_e[Ee]]}return we}var ge=function(){function me(){}return me.installed=function(){return!0===Y(this.pluginRef)},me.getPlugin=function(){return typeof window<"u"?function oe(me,Ne){for(var _e=Ne.split("."),we=me,Ee=0;Ee<_e.length;Ee++){if(!we)return null;we=we[_e[Ee]]}return we}(window,this.pluginRef):null},me.getPluginName=function(){return this.pluginName},me.getPluginRef=function(){return this.pluginRef},me.getPluginInstallName=function(){return this.plugin},me.getSupportedPlatforms=function(){return this.platforms},me.pluginName="",me.pluginRef="",me.plugin="",me.repo="",me.platforms=[],me.install="",me}();function xe(me,Ne,_e,we){return function(me,Ne,_e){return void 0===_e&&(_e={}),function(){for(var we=[],Ee=0;Ee<arguments.length;Ee++)we[Ee]=arguments[Ee];return _e.sync?j(me,Ne,we,_e):_e.observable?k(me,Ne,we,_e):_e.eventObservable&&_e.event?F(_e.event,_e.element):_e.otherPromise?b(me,Ne,we,_e):v(me,Ne,we,_e)}}(me,Ne,_e).apply(this,we)}!function o(){if(typeof process>"u"){var me=typeof window<"u"?window:{},_e=Date.now(),we=!1;me.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-_e)+" ms"),we=!0}),setTimeout(function(){!we&&me.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},5e3)}}()},68867:(Ge,$,f)=>{f.d($,{E:()=>m});var o=f(97582),a=f(45449),h=f(17598),m=function(L){function v(){var b=null!==L&&L.apply(this,arguments)||this;return b.REQUEST_PRIORITY_NO_POWER=0,b.REQUEST_PRIORITY_LOW_POWER=1,b.REQUEST_PRIORITY_BALANCED_POWER_ACCURACY=2,b.REQUEST_PRIORITY_HIGH_ACCURACY=3,b.SUCCESS_SETTINGS_SATISFIED=0,b.SUCCESS_USER_AGREED=1,b.ERROR_ALREADY_REQUESTING=-1,b.ERROR_INVALID_ACTION=0,b.ERROR_INVALID_ACCURACY=1,b.ERROR_EXCEPTION=1,b.ERROR_CANNOT_CHANGE_ACCURACY=3,b.ERROR_USER_DISAGREED=4,b.ERROR_GOOGLE_API_CONNECTION_FAILED=4,b}return(0,o.ZT)(v,L),v.prototype.canRequest=function(){return(0,h.DM)(this,"canRequest",{},arguments)},v.prototype.isRequesting=function(){return(0,h.DM)(this,"isRequesting",{},arguments)},v.prototype.request=function(b){return(0,h.DM)(this,"request",{callbackOrder:"reverse"},arguments)},v.\u0275fac=function(){let b;return function(F){return(b||(b=a.\u0275\u0275getInheritedFactory(v)))(F||v)}}(),v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac}),v.pluginName="LocationAccuracy",v.plugin="cordova-plugin-request-location-accuracy",v.pluginRef="cordova.plugins.locationAccuracy",v.repo="https://github.com/dpa99c/cordova-plugin-request-location-accuracy",v.platforms=["Android","iOS"],v=(0,o.gn)([],v)}(h.On)},89102:(Ge,$,f)=>{f.d($,{e:()=>m});var o=f(97582),a=f(45449),h=f(17598),m=function(L){function v(){return null!==L&&L.apply(this,arguments)||this}return(0,o.ZT)(v,L),v.prototype.share=function(b,k,F,Y){return(0,h.DM)(this,"share",{successIndex:4,errorIndex:5},arguments)},v.prototype.shareWithOptions=function(b){return(0,h.DM)(this,"shareWithOptions",{platforms:["iOS","Android"]},arguments)},v.prototype.canShareVia=function(b,k,F,Y,I){return(0,h.DM)(this,"canShareVia",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},v.prototype.shareViaTwitter=function(b,k,F){return(0,h.DM)(this,"shareViaTwitter",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},v.prototype.shareViaFacebook=function(b,k,F){return(0,h.DM)(this,"shareViaFacebook",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},v.prototype.shareViaFacebookWithPasteMessageHint=function(b,k,F,Y){return(0,h.DM)(this,"shareViaFacebookWithPasteMessageHint",{successIndex:4,errorIndex:5,platforms:["iOS","Android"]},arguments)},v.prototype.shareViaInstagram=function(b,k){return(0,h.DM)(this,"shareViaInstagram",{platforms:["iOS","Android"]},arguments)},v.prototype.shareViaWhatsApp=function(b,k,F){return(0,h.DM)(this,"shareViaWhatsApp",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},v.prototype.shareViaWhatsAppToReceiver=function(b,k,F,Y){return(0,h.DM)(this,"shareViaWhatsAppToReceiver",{successIndex:4,errorIndex:5,platforms:["iOS","Android"]},arguments)},v.prototype.shareViaSMS=function(b,k){return(0,h.DM)(this,"shareViaSMS",{platforms:["iOS","Android"]},arguments)},v.prototype.canShareViaEmail=function(){return(0,h.DM)(this,"canShareViaEmail",{platforms:["iOS","Android"]},arguments)},v.prototype.shareViaEmail=function(b,k,F,Y,I,D){return(0,h.DM)(this,"shareViaEmail",{platforms:["iOS","Android"],successIndex:6,errorIndex:7},arguments)},v.prototype.shareVia=function(b,k,F,Y,I){return(0,h.DM)(this,"shareVia",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},v.prototype.setIPadPopupCoordinates=function(b){return(0,h.DM)(this,"setIPadPopupCoordinates",{sync:!0,platforms:["iOS"]},arguments)},v.prototype.saveToPhotoAlbum=function(b){return(0,h.DM)(this,"saveToPhotoAlbum",{platforms:["iOS"]},arguments)},v.prototype.shareViaWhatsAppToPhone=function(b,k,F,Y){return(0,h.DM)(this,"shareViaWhatsAppToPhone",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},v.\u0275fac=function(){let b;return function(F){return(b||(b=a.\u0275\u0275getInheritedFactory(v)))(F||v)}}(),v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac}),v.pluginName="SocialSharing",v.plugin="cordova-plugin-x-socialsharing",v.pluginRef="plugins.socialsharing",v.repo="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin",v.platforms=["Android","Browser","iOS","Windows","Windows Phone"],v=(0,o.gn)([],v)}(h.On)},53695:(Ge,$,f)=>{f.d($,{J:()=>a});const a=(0,f(47423).fo)("PrivacyScreen",{web:()=>f.e(5397).then(f.bind(f,35397)).then(g=>new g.PrivacyScreenWeb)})},35548:(Ge,$,f)=>{f.d($,{g:()=>a});const a=(0,f(47423).fo)("App",{web:()=>f.e(4477).then(f.bind(f,94477)).then(g=>new g.AppWeb)})},89191:(Ge,$,f)=>{f.d($,{V1:()=>b,GW:()=>h,dk:()=>m,oK:()=>g});var o=f(47423),a=f(15861),g=(()=>{return(k=g||(g={})).Prompt="PROMPT",k.Camera="CAMERA",k.Photos="PHOTOS",g;var k})(),h=(()=>{return(k=h||(h={})).Rear="REAR",k.Front="FRONT",h;var k})(),m=(()=>{return(k=m||(m={})).Uri="uri",k.Base64="base64",k.DataUrl="dataUrl",m;var k})();class L extends o.Uw{getPhoto(F){var Y=this;return(0,a.Z)(function*(){return new Promise(function(){var I=(0,a.Z)(function*(D,j){if(F.webUseInput||F.source===g.Photos)Y.fileInputExperience(F,D,j);else if(F.source===g.Prompt){let W=document.querySelector("pwa-action-sheet");W||(W=document.createElement("pwa-action-sheet"),document.body.appendChild(W)),W.header=F.promptLabelHeader||"Photo",W.cancelable=!1,W.options=[{title:F.promptLabelPhoto||"From Photos"},{title:F.promptLabelPicture||"Take Picture"}],W.addEventListener("onSelection",function(){var de=(0,a.Z)(function*(K){0===K.detail?Y.fileInputExperience(F,D,j):Y.cameraExperience(F,D,j)});return function(K){return de.apply(this,arguments)}}())}else Y.cameraExperience(F,D,j)});return function(D,j){return I.apply(this,arguments)}}())})()}pickImages(F){var Y=this;return(0,a.Z)(function*(){return new Promise(function(){var I=(0,a.Z)(function*(D,j){Y.multipleFileInputExperience(D,j)});return function(D,j){return I.apply(this,arguments)}}())})()}cameraExperience(F,Y,I){var D=this;return(0,a.Z)(function*(){if(customElements.get("pwa-camera-modal")){const j=document.createElement("pwa-camera-modal");j.facingMode=F.direction===h.Front?"user":"environment",document.body.appendChild(j);try{yield j.componentOnReady(),j.addEventListener("onPhoto",function(){var W=(0,a.Z)(function*(de){const K=de.detail;null===K?I(new o.xz("User cancelled photos app")):K instanceof Error?I(K):Y(yield D._getCameraPhoto(K,F)),j.dismiss(),document.body.removeChild(j)});return function(de){return W.apply(this,arguments)}}()),j.present()}catch{D.fileInputExperience(F,Y,I)}}else console.error("Unable to load PWA Element 'pwa-camera-modal'. See the docs: https://capacitorjs.com/docs/web/pwa-elements."),D.fileInputExperience(F,Y,I)})()}fileInputExperience(F,Y,I){let D=document.querySelector("#_capacitor-camera-input");const j=()=>{var W;null===(W=D.parentNode)||void 0===W||W.removeChild(D)};D||(D=document.createElement("input"),D.id="_capacitor-camera-input",D.type="file",D.hidden=!0,document.body.appendChild(D),D.addEventListener("change",W=>{const de=D.files[0];let K="jpeg";if("image/png"===de.type?K="png":"image/gif"===de.type&&(K="gif"),"dataUrl"===F.resultType||"base64"===F.resultType){const ee=new FileReader;ee.addEventListener("load",()=>{if("dataUrl"===F.resultType)Y({dataUrl:ee.result,format:K});else if("base64"===F.resultType){const De=ee.result.split(",")[1];Y({base64String:De,format:K})}j()}),ee.readAsDataURL(de)}else Y({webPath:URL.createObjectURL(de),format:K}),j()}),D.addEventListener("cancel",W=>{I(new o.xz("User cancelled photos app")),j()})),D.accept="image/*",D.capture=!0,F.source===g.Photos||F.source===g.Prompt?D.removeAttribute("capture"):F.direction===h.Front?D.capture="user":F.direction===h.Rear&&(D.capture="environment"),D.click()}multipleFileInputExperience(F,Y){let I=document.querySelector("#_capacitor-camera-input-multiple");const D=()=>{var j;null===(j=I.parentNode)||void 0===j||j.removeChild(I)};I||(I=document.createElement("input"),I.id="_capacitor-camera-input-multiple",I.type="file",I.hidden=!0,I.multiple=!0,document.body.appendChild(I),I.addEventListener("change",j=>{const W=[];for(let de=0;de<I.files.length;de++){const K=I.files[de];let ee="jpeg";"image/png"===K.type?ee="png":"image/gif"===K.type&&(ee="gif"),W.push({webPath:URL.createObjectURL(K),format:ee})}F({photos:W}),D()}),I.addEventListener("cancel",j=>{Y(new o.xz("User cancelled photos app")),D()})),I.accept="image/*",I.click()}_getCameraPhoto(F,Y){return new Promise((I,D)=>{const j=new FileReader,W=F.type.split("/")[1];"uri"===Y.resultType?I({webPath:URL.createObjectURL(F),format:W,saved:!1}):(j.readAsDataURL(F),j.onloadend=()=>{const de=j.result;I("dataUrl"===Y.resultType?{dataUrl:de,format:W,saved:!1}:{base64String:de.split(",")[1],format:W,saved:!1})},j.onerror=de=>{D(de)})})}checkPermissions(){var F=this;return(0,a.Z)(function*(){if(typeof navigator>"u"||!navigator.permissions)throw F.unavailable("Permissions API not available in this browser");try{return{camera:(yield window.navigator.permissions.query({name:"camera"})).state,photos:"granted"}}catch{throw F.unavailable("Camera permissions are not available in this browser")}})()}requestPermissions(){var F=this;return(0,a.Z)(function*(){throw F.unimplemented("Not implemented on web.")})()}pickLimitedLibraryPhotos(){var F=this;return(0,a.Z)(function*(){throw F.unavailable("Not implemented on web.")})()}getLimitedLibraryPhotos(){var F=this;return(0,a.Z)(function*(){throw F.unavailable("Not implemented on web.")})()}}new L;const b=(0,o.fo)("Camera",{web:()=>new L})},47423:(Ge,$,f)=>{f.d($,{Uw:()=>k,dV:()=>v,fo:()=>b,kv:()=>Te,xz:()=>g});var o=f(15861),a=(()=>{return(ce=a||(a={})).Unimplemented="UNIMPLEMENTED",ce.Unavailable="UNAVAILABLE",a;var ce})();class g extends Error{constructor(oe,te,ge){super(oe),this.message=oe,this.code=te,this.data=ge}}const m=ce=>{const oe=ce.CapacitorCustomPlatform||null,te=ce.Capacitor||{},ge=te.Plugins=te.Plugins||{},xe=()=>null!==oe?oe.name:(ce=>{var oe,te;return ce?.androidBridge?"android":null!==(te=null===(oe=ce?.webkit)||void 0===oe?void 0:oe.messageHandlers)&&void 0!==te&&te.bridge?"ios":"web"})(ce),Ce=Ne=>{var _e;return null===(_e=te.PluginHeaders)||void 0===_e?void 0:_e.find(we=>we.name===Ne)},se=new Map;return te.convertFileSrc||(te.convertFileSrc=Ne=>Ne),te.getPlatform=xe,te.handleError=Ne=>ce.console.error(Ne),te.isNativePlatform=()=>"web"!==xe(),te.isPluginAvailable=Ne=>!(!se.get(Ne)?.platforms.has(xe())&&!Ce(Ne)),te.registerPlugin=(Ne,_e={})=>{const we=se.get(Ne);if(we)return console.warn(`Capacitor plugin "${Ne}" already registered. Cannot register plugins twice.`),we.proxy;const Ee=xe(),le=Ce(Ne);let Ue;const ke=function(){var Vt=(0,o.Z)(function*(){return!Ue&&Ee in _e?Ue=Ue="function"==typeof _e[Ee]?yield _e[Ee]():_e[Ee]:null!==oe&&!Ue&&"web"in _e&&(Ue=Ue="function"==typeof _e.web?yield _e.web():_e.web),Ue});return function(){return Vt.apply(this,arguments)}}(),ye=Vt=>{let fn;const mn=(...xn)=>{const gn=ke().then(Et=>{const cn=((Vt,fn)=>{var mn,xn;if(!le){if(Vt)return null===(xn=Vt[fn])||void 0===xn?void 0:xn.bind(Vt);throw new g(`"${Ne}" plugin is not implemented on ${Ee}`,a.Unimplemented)}{const gn=le?.methods.find(Et=>fn===Et.name);if(gn)return"promise"===gn.rtype?Et=>te.nativePromise(Ne,fn.toString(),Et):(Et,cn)=>te.nativeCallback(Ne,fn.toString(),Et,cn);if(Vt)return null===(mn=Vt[fn])||void 0===mn?void 0:mn.bind(Vt)}})(Et,Vt);if(cn){const ft=cn(...xn);return fn=ft?.remove,ft}throw new g(`"${Ne}.${Vt}()" is not implemented on ${Ee}`,a.Unimplemented)});return"addListener"===Vt&&(gn.remove=(0,o.Z)(function*(){return fn()})),gn};return mn.toString=()=>`${Vt.toString()}() { [capacitor code] }`,Object.defineProperty(mn,"name",{value:Vt,writable:!1,configurable:!1}),mn},je=ye("addListener"),Ze=ye("removeListener"),_t=(Vt,fn)=>{const mn=je({eventName:Vt},fn),xn=function(){var Et=(0,o.Z)(function*(){const cn=yield mn;Ze({eventName:Vt,callbackId:cn},fn)});return function(){return Et.apply(this,arguments)}}(),gn=new Promise(Et=>mn.then(()=>Et({remove:xn})));return gn.remove=(0,o.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield xn()}),gn},At=new Proxy({},{get(Vt,fn){switch(fn){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return le?_t:je;case"removeListener":return Ze;default:return ye(fn)}}});return ge[Ne]=At,se.set(Ne,{name:Ne,proxy:At,platforms:new Set([...Object.keys(_e),...le?[Ee]:[]])}),At},te.Exception=g,te.DEBUG=!!te.DEBUG,te.isLoggingEnabled=!!te.isLoggingEnabled,te},v=(ce=>ce.Capacitor=m(ce))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),b=v.registerPlugin;class k{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(oe,te){var ge=this;let xe=!1;this.listeners[oe]||(this.listeners[oe]=[],xe=!0),this.listeners[oe].push(te);const Le=this.windowListeners[oe];Le&&!Le.registered&&this.addWindowListener(Le),xe&&this.sendRetainedArgumentsForEvent(oe);const Ce=function(){var se=(0,o.Z)(function*(){return ge.removeListener(oe,te)});return function(){return se.apply(this,arguments)}}();return Promise.resolve({remove:Ce})}removeAllListeners(){var oe=this;return(0,o.Z)(function*(){oe.listeners={};for(const te in oe.windowListeners)oe.removeWindowListener(oe.windowListeners[te]);oe.windowListeners={}})()}notifyListeners(oe,te,ge){const xe=this.listeners[oe];if(xe)xe.forEach(he=>he(te));else if(ge){let he=this.retainedEventArguments[oe];he||(he=[]),he.push(te),this.retainedEventArguments[oe]=he}}hasListeners(oe){var te;return!(null===(te=this.listeners[oe])||void 0===te||!te.length)}registerWindowListener(oe,te){this.windowListeners[te]={registered:!1,windowEventName:oe,pluginEventName:te,handler:ge=>{this.notifyListeners(te,ge)}}}unimplemented(oe="not implemented"){return new v.Exception(oe,a.Unimplemented)}unavailable(oe="not available"){return new v.Exception(oe,a.Unavailable)}removeListener(oe,te){var ge=this;return(0,o.Z)(function*(){const xe=ge.listeners[oe];if(!xe)return;const he=xe.indexOf(te);ge.listeners[oe].splice(he,1),ge.listeners[oe].length||ge.removeWindowListener(ge.windowListeners[oe])})()}addWindowListener(oe){window.addEventListener(oe.windowEventName,oe.handler),oe.registered=!0}removeWindowListener(oe){!oe||(window.removeEventListener(oe.windowEventName,oe.handler),oe.registered=!1)}sendRetainedArgumentsForEvent(oe){const te=this.retainedEventArguments[oe];!te||(delete this.retainedEventArguments[oe],te.forEach(ge=>{this.notifyListeners(oe,ge)}))}}const Y=ce=>encodeURIComponent(ce).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),I=ce=>ce.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class D extends k{getCookies(){return(0,o.Z)(function*(){const oe=document.cookie,te={};return oe.split(";").forEach(ge=>{if(ge.length<=0)return;let[xe,he]=ge.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");xe=I(xe).trim(),he=I(he).trim(),te[xe]=he}),te})()}setCookie(oe){return(0,o.Z)(function*(){try{const te=Y(oe.key),ge=Y(oe.value),xe=`; expires=${(oe.expires||"").replace("expires=","")}`,he=(oe.path||"/").replace("path=",""),Le=null!=oe.url&&oe.url.length>0?`domain=${oe.url}`:"";document.cookie=`${te}=${ge||""}${xe}; path=${he}; ${Le};`}catch(te){return Promise.reject(te)}})()}deleteCookie(oe){return(0,o.Z)(function*(){try{document.cookie=`${oe.key}=; Max-Age=0`}catch(te){return Promise.reject(te)}})()}clearCookies(){return(0,o.Z)(function*(){try{const oe=document.cookie.split(";")||[];for(const te of oe)document.cookie=te.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(oe){return Promise.reject(oe)}})()}clearAllCookies(){var oe=this;return(0,o.Z)(function*(){try{yield oe.clearCookies()}catch(te){return Promise.reject(te)}})()}}b("CapacitorCookies",{web:()=>new D});const W=function(){var ce=(0,o.Z)(function*(oe){return new Promise((te,ge)=>{const xe=new FileReader;xe.onload=()=>{const he=xe.result;te(he.indexOf(",")>=0?he.split(",")[1]:he)},xe.onerror=he=>ge(he),xe.readAsDataURL(oe)})});return function(te){return ce.apply(this,arguments)}}();class De extends k{request(oe){return(0,o.Z)(function*(){const te=((ce,oe={})=>{const te=Object.assign({method:ce.method||"GET",headers:ce.headers},oe),xe=((ce={})=>{const oe=Object.keys(ce);return Object.keys(ce).map(xe=>xe.toLocaleLowerCase()).reduce((xe,he,Le)=>(xe[he]=ce[oe[Le]],xe),{})})(ce.headers)["content-type"]||"";if("string"==typeof ce.data)te.body=ce.data;else if(xe.includes("application/x-www-form-urlencoded")){const he=new URLSearchParams;for(const[Le,Ce]of Object.entries(ce.data||{}))he.set(Le,Ce);te.body=he.toString()}else if(xe.includes("multipart/form-data")||ce.data instanceof FormData){const he=new FormData;if(ce.data instanceof FormData)ce.data.forEach((Ce,ie)=>{he.append(ie,Ce)});else for(const Ce of Object.keys(ce.data))he.append(Ce,ce.data[Ce]);te.body=he;const Le=new Headers(te.headers);Le.delete("content-type"),te.headers=Le}else(xe.includes("application/json")||"object"==typeof ce.data)&&(te.body=JSON.stringify(ce.data));return te})(oe,oe.webFetchExtra),ge=((ce,oe=!0)=>ce?Object.entries(ce).reduce((ge,xe)=>{const[he,Le]=xe;let Ce,ie;return Array.isArray(Le)?(ie="",Le.forEach(se=>{Ce=oe?encodeURIComponent(se):se,ie+=`${he}=${Ce}&`}),ie.slice(0,-1)):(Ce=oe?encodeURIComponent(Le):Le,ie=`${he}=${Ce}`),`${ge}&${ie}`},"").substr(1):null)(oe.params,oe.shouldEncodeUrlParams),xe=ge?`${oe.url}?${ge}`:oe.url,he=yield fetch(xe,te),Le=he.headers.get("content-type")||"";let ie,se,{responseType:Ce="text"}=he.ok?oe:{};switch(Le.includes("application/json")&&(Ce="json"),Ce){case"arraybuffer":case"blob":se=yield he.blob(),ie=yield W(se);break;case"json":ie=yield he.json();break;default:ie=yield he.text()}const me={};return he.headers.forEach((Ne,_e)=>{me[_e]=Ne}),{data:ie,headers:me,status:he.status,url:he.url}})()}get(oe){var te=this;return(0,o.Z)(function*(){return te.request(Object.assign(Object.assign({},oe),{method:"GET"}))})()}post(oe){var te=this;return(0,o.Z)(function*(){return te.request(Object.assign(Object.assign({},oe),{method:"POST"}))})()}put(oe){var te=this;return(0,o.Z)(function*(){return te.request(Object.assign(Object.assign({},oe),{method:"PUT"}))})()}patch(oe){var te=this;return(0,o.Z)(function*(){return te.request(Object.assign(Object.assign({},oe),{method:"PATCH"}))})()}delete(oe){var te=this;return(0,o.Z)(function*(){return te.request(Object.assign(Object.assign({},oe),{method:"DELETE"}))})()}}const Te=b("CapacitorHttp",{web:()=>new De})},45670:(Ge,$,f)=>{f.d($,{Z:()=>a});const a=(0,f(47423).fo)("Network",{web:()=>f.e(4203).then(f.bind(f,54203)).then(g=>new g.NetworkWeb)})},53509:(Ge,$,f)=>{f.d($,{M:()=>a});const a=(0,f(47423).fo)("EdgeToEdge",{})},52671:(Ge,$,f)=>{f.d($,{F:()=>o});var o=(()=>{return(a=o||(o={})).LANDSCAPE="landscape",a.LANDSCAPE_PRIMARY="landscape-primary",a.LANDSCAPE_SECONDARY="landscape-secondary",a.PORTRAIT="portrait",a.PORTRAIT_PRIMARY="portrait-primary",a.PORTRAIT_SECONDARY="portrait-secondary",o;var a})()},90603:(Ge,$,f)=>{f.r($),f.d($,{ActionSheetController:()=>Xt,AlertController:()=>qt,AngularDelegate:()=>Sr,AnimationController:()=>y,BooleanValueAccessor:()=>fn,Config:()=>va,DomController:()=>fo,GestureController:()=>G,IonAccordion:()=>or,IonAccordionGroup:()=>Cr,IonApp:()=>wr,IonAvatar:()=>dr,IonBackButton:()=>er,IonBackButtonDelegate:()=>lt,IonBackdrop:()=>Jn,IonBadge:()=>Er,IonBreadcrumb:()=>lo,IonBreadcrumbs:()=>Gr,IonButton:()=>Qn,IonButtons:()=>Pr,IonCard:()=>jr,IonCardContent:()=>Nr,IonCardHeader:()=>go,IonCardSubtitle:()=>Zr,IonCardTitle:()=>ro,IonCheckbox:()=>mo,IonChip:()=>ki,IonCol:()=>Yo,IonContent:()=>Ko,IonDatetime:()=>wo,IonDatetimeButton:()=>$r,IonFab:()=>hi,IonFabButton:()=>mi,IonFabList:()=>vn,IonFooter:()=>Eo,IonGrid:()=>Ur,IonHeader:()=>vo,IonIcon:()=>br,IonImg:()=>Zn,IonInfiniteScroll:()=>uo,IonInfiniteScrollContent:()=>fr,IonInput:()=>Vo,IonItem:()=>Fo,IonItemDivider:()=>_i,IonItemGroup:()=>xr,IonItemOption:()=>It,IonItemOptions:()=>ut,IonItemSliding:()=>nt,IonLabel:()=>Ot,IonList:()=>Zt,IonListHeader:()=>jn,IonMenu:()=>ct,IonMenuButton:()=>xt,IonMenuToggle:()=>rt,IonModal:()=>bt,IonNav:()=>Yt,IonNavLink:()=>$t,IonNote:()=>Wt,IonPopover:()=>mt,IonProgressBar:()=>dn,IonRadio:()=>un,IonRadioGroup:()=>Pn,IonRange:()=>On,IonRefresher:()=>In,IonRefresherContent:()=>Fn,IonReorder:()=>Hr,IonReorderGroup:()=>xo,IonRippleEffect:()=>yo,IonRouterOutlet:()=>Wi,IonRow:()=>Ho,IonSearchbar:()=>io,IonSegment:()=>Mo,IonSegmentButton:()=>bi,IonSelect:()=>Zi,IonSelectOption:()=>tr,IonSkeletonText:()=>Po,IonSlide:()=>We,IonSlides:()=>ot,IonSpinner:()=>Pt,IonSplitPane:()=>zt,IonTabBar:()=>Qt,IonTabButton:()=>qe,IonTabs:()=>fe,IonText:()=>wt,IonTextarea:()=>Ht,IonThumbnail:()=>Kt,IonTitle:()=>on,IonToggle:()=>Mn,IonToolbar:()=>Yn,IonVirtualScroll:()=>Xe,IonicModule:()=>Rr,IonicRouteStrategy:()=>Je,IonicSafeString:()=>W.I,IonicSlides:()=>ge,IonicSwiper:()=>te,LoadingController:()=>Sn,MenuController:()=>Wn,ModalController:()=>hr,NavController:()=>Xo,NavDelegate:()=>P,NavParams:()=>Hn,NumericValueAccessor:()=>mn,PickerController:()=>Un,Platform:()=>ii,PopoverController:()=>Ar,RadioValueAccessor:()=>xn,RouterLinkDelegate:()=>Q,RouterLinkWithHrefDelegate:()=>Pe,SelectValueAccessor:()=>gn,TextValueAccessor:()=>Et,ToastController:()=>eo,VirtualFooter:()=>Ve,VirtualHeader:()=>Z,VirtualItem:()=>re,createAnimation:()=>b.c,createGesture:()=>I.createGesture,getPlatforms:()=>D.g,getTimeGivenProgression:()=>Y.g,iosTransitionAnimation:()=>k.iosTransitionAnimation,isPlatform:()=>D.a,mdTransitionAnimation:()=>F.mdTransitionAnimation});var o=f(45449),a=f(24006),g=f(97582),h=f(23753),m=f(8929),L=f(591),v=f(61380),b=f(90181),k=f(66439),F=f(87838),Y=f(32225),I=f(81898),D=f(35179),j=f(35730),W=f(15820),de=f(1843),K=f(56369),ee=f(63539),ce=(f(13457),f(34349),f(71308));const oe=(A,X=!0)=>{if(typeof window>"u")return;const _=A.el,T=_.closest(".ion-page");if(!T){if(X){const Lt=_.getRootNode();if("DIV"===Lt.tagName){const an=new MutationObserver(nr=>{const Io=null===nr[0].oldValue,Lo=Lt.classList.contains("ion-page");Io&&Lo&&(an.disconnect(),oe(A,!1))});an.observe(Lt,{attributeFilter:["class"],attributeOldValue:!0})}}return}const O=_.closest("ion-modal, ion-popover");if(O){const Lt="ION-MODAL"===O.tagName?"ionModalWillPresent":"ionPopoverWillPresent",an=()=>{(0,j.r)(()=>{_.swiper.update(),(0,j.b)(O,Lt,an)})};(0,j.a)(O,Lt,an)}else new MutationObserver(an=>{var nr;const Io=null===(nr=an[0].oldValue)||void 0===nr?void 0:nr.includes("ion-page-invisible"),Lo=T.classList.contains("ion-page-invisible");!Lo&&Lo!==Io&&_.swiper.update()}).observe(T,{attributeFilter:["class"],attributeOldValue:!0});const ve=()=>{_.swiper.update(),(0,j.b)(window,"appload",ve)};(0,j.a)(window,"appload",ve)},te={name:"ionic",on:{afterInit(A){console.warn("[Deprecation Warning]: The IonicSwiper module has been deprecated in favor of the IonSlides module. This change was made to better support the Swiper 7 release. The IonicSwiper module will be removed in Ionic 7.0. See https://ionicframework.com/docs/api/slides#migration for revised migration steps."),oe(A)}}},ge=A=>{const{swiper:X,extendParams:_}=A,T={effect:void 0,direction:"horizontal",initialSlide:0,loop:!1,parallax:!1,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,zoom:{maxRatio:3,minRatio:1,toggle:!1},touchRatio:1,touchAngle:45,simulateTouch:!0,touchStartPreventDefault:!1,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loopAdditionalSlides:0,noSwiping:!0,runCallbacksOnInit:!0,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flipEffect:{slideShadows:!0,limitRotation:!0},cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:!1},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};X.pagination&&(T.pagination={type:"bullets",clickable:!1,hideOnClick:!1}),X.scrollbar&&(T.scrollbar={hide:!0}),_(T)};var xe=f(92198),he=f(87545),Le=f(75778),Ce=f(90944);const se=D.i,_e=["*"],we=["outlet"],Ee=[[["","slot","top"]],"*"],le=["[slot=top]","*"];function Ue(A,X){if(1&A&&(o.\u0275\u0275elementStart(0,"div",1),o.\u0275\u0275elementContainer(1,2),o.\u0275\u0275elementEnd()),2&A){const _=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngTemplateOutlet",_.template)}}function ke(A,X){if(1&A&&o.\u0275\u0275elementContainer(0,1),2&A){const _=o.\u0275\u0275nextContext();o.\u0275\u0275property("ngTemplateOutlet",_.template)}}const ze=A=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(A):"function"==typeof requestAnimationFrame?requestAnimationFrame(A):setTimeout(A),ye=A=>!!A.resolveComponentFactory;let je=(()=>{class A{constructor(_,T){this.injector=_,this.el=T,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(_){this.el.nativeElement.value=this.lastValue=_??"",Ze(this.el)}handleChangeEvent(_,T){_===this.el.nativeElement&&(T!==this.lastValue&&(this.lastValue=T,this.onChange(T)),Ze(this.el))}_handleBlurEvent(_){_===this.el.nativeElement&&(this.onTouched(),Ze(this.el))}registerOnChange(_){this.onChange=_}registerOnTouched(_){this.onTouched=_}setDisabledState(_){this.el.nativeElement.disabled=_}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let _;try{_=this.injector.get(a.NgControl)}catch{}if(!_)return;_.statusChanges&&(this.statusChanges=_.statusChanges.subscribe(()=>Ze(this.el)));const T=_.control;T&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(ve=>{if(typeof T[ve]<"u"){const Lt=T[ve].bind(T);T[ve]=(...an)=>{Lt(...an),Ze(this.el)}}})}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(o.ElementRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("ionBlur",function(ve){return T._handleBlurEvent(ve.target)})}}),A})();const Ze=A=>{ze(()=>{const X=A.nativeElement,_=null!=X.value&&X.value.toString().length>0,T=_t(X);At(X,T);const O=X.closest("ion-item");O&&At(O,_?[...T,"item-has-value"]:T)})},_t=A=>{const X=A.classList,_=[];for(let T=0;T<X.length;T++){const O=X.item(T);null!==O&&Vt(O,"ng-")&&_.push(`ion-${O.substring(3)}`)}return _},At=(A,X)=>{const _=A.classList;_.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),_.add(...X)},Vt=(A,X)=>A.substring(0,X.length)===X;let fn=(()=>{class A extends je{constructor(_,T){super(_,T)}writeValue(_){this.el.nativeElement.checked=this.lastValue=_??!1,Ze(this.el)}_handleIonChange(_){this.handleChangeEvent(_,_.checked)}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(o.ElementRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("ionChange",function(ve){return T._handleIonChange(ve.target)})},features:[o.\u0275\u0275ProvidersFeature([{provide:a.NG_VALUE_ACCESSOR,useExisting:A,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),A})(),mn=(()=>{class A extends je{constructor(_,T){super(_,T)}_handleIonChange(_){this.handleChangeEvent(_,_.value)}registerOnChange(_){super.registerOnChange(T=>{_(""===T?null:parseFloat(T))})}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(o.ElementRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["ion-input","type","number"]],hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("ionChange",function(ve){return T._handleIonChange(ve.target)})},features:[o.\u0275\u0275ProvidersFeature([{provide:a.NG_VALUE_ACCESSOR,useExisting:A,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),A})(),xn=(()=>{class A extends je{constructor(_,T){super(_,T)}_handleIonSelect(_){this.handleChangeEvent(_,_.checked)}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(o.ElementRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["ion-radio"]],hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("ionSelect",function(ve){return T._handleIonSelect(ve.target)})},features:[o.\u0275\u0275ProvidersFeature([{provide:a.NG_VALUE_ACCESSOR,useExisting:A,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),A})(),gn=(()=>{class A extends je{constructor(_,T){super(_,T)}_handleChangeEvent(_){this.handleChangeEvent(_,_.value)}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(o.ElementRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("ionChange",function(ve){return T._handleChangeEvent(ve.target)})},features:[o.\u0275\u0275ProvidersFeature([{provide:a.NG_VALUE_ACCESSOR,useExisting:A,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),A})(),Et=(()=>{class A extends je{constructor(_,T){super(_,T)}_handleInputEvent(_){this.handleChangeEvent(_,_.value)}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(o.ElementRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("ionChange",function(ve){return T._handleInputEvent(ve.target)})},features:[o.\u0275\u0275ProvidersFeature([{provide:a.NG_VALUE_ACCESSOR,useExisting:A,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),A})();const cn=(A,X)=>{const _=A.prototype;X.forEach(T=>{Object.defineProperty(_,T,{get(){return this.el[T]},set(O){this.z.runOutsideAngular(()=>this.el[T]=O)}})})},ft=(A,X)=>{const _=A.prototype;X.forEach(T=>{_[T]=function(){const O=arguments;return this.z.runOutsideAngular(()=>this.el[T].apply(this.el,O))}})},Tt=(A,X,_)=>{_.forEach(T=>A[T]=(0,h.R)(X,T))};function Gt(A){return function(_){const{defineCustomElementFn:T,inputs:O,methods:ve}=A;return void 0!==T&&T(),O&&cn(_,O),ve&&ft(_,ve),_}}let or=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-accordion"]],inputs:{disabled:"disabled",mode:"mode",readonly:"readonly",toggleIcon:"toggleIcon",toggleIconSlot:"toggleIconSlot",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["disabled","mode","readonly","toggleIcon","toggleIconSlot","value"]})],A),A})(),Cr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionChange"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-accordion-group"]],inputs:{animated:"animated",disabled:"disabled",expand:"expand",mode:"mode",multiple:"multiple",readonly:"readonly",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["animated","disabled","expand","mode","multiple","readonly","value"]})],A),A})(),wr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-app"]],ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0})],A),A})(),dr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-avatar"]],ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0})],A),A})(),er=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],A),A})(),Jn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionBackdropTap"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-backdrop"]],inputs:{stopPropagation:"stopPropagation",tappable:"tappable",visible:"visible"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["stopPropagation","tappable","visible"]})],A),A})(),Er=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode"]})],A),A})(),lo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionFocus","ionBlur"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-breadcrumb"]],inputs:{active:"active",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",separator:"separator",target:"target"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["active","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","separator","target"]})],A),A})(),Gr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionCollapsedClick"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-breadcrumbs"]],inputs:{color:"color",itemsAfterCollapse:"itemsAfterCollapse",itemsBeforeCollapse:"itemsBeforeCollapse",maxItems:"maxItems",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","itemsAfterCollapse","itemsBeforeCollapse","maxItems","mode"]})],A),A})(),Qn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionFocus","ionBlur"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],A),A})(),Pr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["collapse"]})],A),A})(),jr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],A),A})(),Nr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["mode"]})],A),A})(),go=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode","translucent"]})],A),A})(),Zr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode"]})],A),A})(),ro=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode"]})],A),A})(),mo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionChange","ionFocus","ionBlur"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],A),A})(),ki=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","disabled","mode","outline"]})],A),A})(),Yo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],A),A})(),Ko=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],A),A})(),wo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",clearText:"clearText",color:"color",dayValues:"dayValues",disabled:"disabled",doneText:"doneText",firstDayOfWeek:"firstDayOfWeek",highlightedDates:"highlightedDates",hourCycle:"hourCycle",hourValues:"hourValues",isDateEnabled:"isDateEnabled",locale:"locale",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthValues:"monthValues",multiple:"multiple",name:"name",preferWheel:"preferWheel",presentation:"presentation",readonly:"readonly",showClearButton:"showClearButton",showDefaultButtons:"showDefaultButtons",showDefaultTimeLabel:"showDefaultTimeLabel",showDefaultTitle:"showDefaultTitle",size:"size",titleSelectedDatesFormatter:"titleSelectedDatesFormatter",value:"value",yearValues:"yearValues"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["cancelText","clearText","color","dayValues","disabled","doneText","firstDayOfWeek","highlightedDates","hourCycle","hourValues","isDateEnabled","locale","max","min","minuteValues","mode","monthValues","multiple","name","preferWheel","presentation","readonly","showClearButton","showDefaultButtons","showDefaultTimeLabel","showDefaultTitle","size","titleSelectedDatesFormatter","value","yearValues"],methods:["confirm","reset","cancel"]})],A),A})(),$r=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-datetime-button"]],inputs:{color:"color",datetime:"datetime",disabled:"disabled",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","datetime","disabled","mode"]})],A),A})(),hi=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],A),A})(),mi=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionFocus","ionBlur"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],A),A})(),vn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["activated","side"]})],A),A})(),Eo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["collapse","mode","translucent"]})],A),A})(),Ur=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["fixed"]})],A),A})(),vo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["collapse","mode","translucent"]})],A),A})(),br=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],A),A})(),Zn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["alt","src"]})],A),A})(),uo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionInfinite"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["disabled","position","threshold"],methods:["complete"]})],A),A})(),fr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["loadingSpinner","loadingText"]})],A),A})(),Vo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],A),A})(),Fo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-item"]],inputs:{button:"button",color:"color",counter:"counter",counterFormatter:"counterFormatter",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",fill:"fill",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",target:"target",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["button","color","counter","counterFormatter","detail","detailIcon","disabled","download","fill","href","lines","mode","rel","routerAnimation","routerDirection","shape","target","type"]})],A),A})(),_i=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode","sticky"]})],A),A})(),xr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-item-group"]],ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0})],A),A})(),It=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],A),A})(),ut=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionSwipe"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["side"]})],A),A})(),nt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionDrag"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],A),A})(),Ot=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode","position"]})],A),A})(),Zt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],A),A})(),jn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","lines","mode"]})],A),A})(),ct=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],A),A})(),xt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["autoHide","color","disabled","menu","mode","type"]})],A),A})(),rt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["autoHide","menu"]})],A),A})(),Yt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionNavWillChange","ionNavDidChange"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-nav"]],inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["animated","animation","root","rootParams","swipeGesture"],methods:["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]})],A),A})(),$t=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-nav-link"]],inputs:{component:"component",componentProps:"componentProps",routerAnimation:"routerAnimation",routerDirection:"routerDirection"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["component","componentProps","routerAnimation","routerDirection"]})],A),A})(),Wt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode"]})],A),A})(),dn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-progress-bar"]],inputs:{buffer:"buffer",color:"color",mode:"mode",reversed:"reversed",type:"type",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["buffer","color","mode","reversed","type","value"]})],A),A})(),un=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionFocus","ionBlur"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","disabled","mode","name","value"]})],A),A})(),Pn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionChange"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["allowEmptySelection","name","value"]})],A),A})(),On=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionChange","ionFocus","ionBlur","ionKnobMoveStart","ionKnobMoveEnd"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-range"]],inputs:{activeBarStart:"activeBarStart",color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",pinFormatter:"pinFormatter",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["activeBarStart","color","debounce","disabled","dualKnobs","max","min","mode","name","pin","pinFormatter","snaps","step","ticks","value"]})],A),A})(),In=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionRefresh","ionPull","ionStart"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],A),A})(),Fn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],A),A})(),Hr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-reorder"]],ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0})],A),A})(),xo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionItemReorder"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["disabled"],methods:["complete"]})],A),A})(),yo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-ripple-effect"]],inputs:{type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["type"],methods:["addRipple"]})],A),A})(),Ho=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-row"]],ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0})],A),A})(),io=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],A),A})(),Mo=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionChange"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],A),A})(),bi=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["disabled","layout","mode","type","value"]})],A),A})(),Zi=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],A),A})(),tr=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["disabled","value"]})],A),A})(),Po=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-skeleton-text"]],inputs:{animated:"animated"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["animated"]})],A),A})(),We=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-slide"]],ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0})],A),A})(),ot=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],A),A})(),Pt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","duration","name","paused"]})],A),A})(),zt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionSplitPaneVisible"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["contentId","disabled","when"]})],A),A})(),Qt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-tab-bar"]],inputs:{color:"color",mode:"mode",selectedTab:"selectedTab",translucent:"translucent"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode","selectedTab","translucent"]})],A),A})(),qe=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-tab-button"]],inputs:{disabled:"disabled",download:"download",href:"href",layout:"layout",mode:"mode",rel:"rel",selected:"selected",tab:"tab",target:"target"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],A),A})(),wt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-text"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode"]})],A),A})(),Ht=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","enterkeyhint","inputmode","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],A),A})(),Kt=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-thumbnail"]],ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0})],A),A})(),on=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","size"]})],A),A})(),Mn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement,Tt(this,this.el,["ionChange","ionFocus","ionBlur"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",enableOnOffLabels:"enableOnOffLabels",mode:"mode",name:"name",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["checked","color","disabled","enableOnOffLabels","mode","name","value"]})],A),A})(),Yn=(()=>{let A=class{constructor(_,T,O){this.z=O,_.detach(),this.el=T.nativeElement}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({defineCustomElementFn:void 0,inputs:["color","mode"]})],A),A})();class Hn{constructor(X={}){this.data=X}get(X){return this.data[X]}}let Sr=(()=>{class A{constructor(_,T){this.zone=_,this.appRef=T}create(_,T,O,ve){return new Co(_,T,O,this.appRef,this.zone,ve)}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275inject(o.NgZone),o.\u0275\u0275inject(o.ApplicationRef))},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac}),A})();class Co{constructor(X,_,T,O,ve,Lt){this.resolverOrInjector=X,this.injector=_,this.location=T,this.appRef=O,this.zone=ve,this.elementReferenceKey=Lt,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(X,_,T,O){return this.zone.run(()=>new Promise(ve=>{const Lt=Object.assign({},T);void 0!==this.elementReferenceKey&&(Lt[this.elementReferenceKey]=X),ve(bo(this.zone,this.resolverOrInjector,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,X,_,Lt,O))}))}removeViewFromDom(X,_){return this.zone.run(()=>new Promise(T=>{const O=this.elRefMap.get(_);if(O){O.destroy(),this.elRefMap.delete(_);const ve=this.elEventsMap.get(_);ve&&(ve(),this.elEventsMap.delete(_))}T()}))}}const bo=(A,X,_,T,O,ve,Lt,an,nr,Kr,Io)=>{let Lo;const Ui=o.Injector.create({providers:Qr(Kr),parent:_});if(X&&ye(X)){const bs=X.resolveComponentFactory(nr);Lo=T?T.createComponent(bs,T.length,Ui):bs.create(Ui)}else{if(!T)return null;Lo=T.createComponent(nr,{index:T.indexOf,injector:Ui,environmentInjector:X})}const Ma=Lo.instance,oo=Lo.location.nativeElement;if(Kr&&Object.assign(Ma,Kr),Io)for(const bs of Io)oo.classList.add(bs);const As=gi(A,Ma,oo);return an.appendChild(oo),T||O.attachView(Lo.hostView),Lo.changeDetectorRef.reattach(),ve.set(oo,Lo),Lt.set(oo,As),oo},Jr=[de.L,de.a,de.b,de.c,de.d],gi=(A,X,_)=>A.run(()=>{const T=Jr.filter(O=>"function"==typeof X[O]).map(O=>{const ve=Lt=>X[O](Lt.detail);return _.addEventListener(O,ve),()=>_.removeEventListener(O,ve)});return()=>T.forEach(O=>O())}),Ri=new o.InjectionToken("NavParamsToken"),Qr=A=>[{provide:Ri,useValue:A},{provide:Hn,useFactory:Bo,deps:[Ri]}],Bo=A=>new Hn(A),Di=(A,X)=>((A=A.filter(_=>_.stackId!==X.stackId)).push(X),A),ci=(A,X)=>{const _=A.createUrlTree(["."],{relativeTo:X});return A.serializeUrl(_)},sa=(A,X)=>{if(!A)return;const _=qo(X);for(let T=0;T<_.length;T++){if(T>=A.length)return _[T];if(_[T]!==A[T])return}},qo=A=>A.split("/").map(X=>X.trim()).filter(X=>""!==X),Li=A=>{A&&(A.ref.destroy(),A.unlistenEvents())};class qr{constructor(X,_,T,O,ve,Lt){this.containerEl=_,this.router=T,this.navCtrl=O,this.zone=ve,this.location=Lt,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==X?qo(X):void 0}createView(X,_){var T;const O=ci(this.router,_),ve=null===(T=X?.location)||void 0===T?void 0:T.nativeElement,Lt=gi(this.zone,X.instance,ve);return{id:this.nextId++,stackId:sa(this.tabsPrefix,O),unlistenEvents:Lt,element:ve,ref:X,url:O}}getExistingView(X){const _=ci(this.router,X),T=this.views.find(O=>O.url===_);return T&&T.ref.changeDetectorRef.reattach(),T}setActive(X){var _,T;const O=this.navCtrl.consumeTransition();let{direction:ve,animation:Lt,animationBuilder:an}=O;const nr=this.activeView,Kr=((A,X)=>!X||A.stackId!==X.stackId)(X,nr);Kr&&(ve="back",Lt=void 0);const Io=this.views.slice();let Lo;const Ui=this.router;Ui.getCurrentNavigation?Lo=Ui.getCurrentNavigation():!(null===(_=Ui.navigations)||void 0===_)&&_.value&&(Lo=Ui.navigations.value),null!==(T=Lo?.extras)&&void 0!==T&&T.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Ma=this.views.includes(X),oo=this.insertView(X,ve);Ma||X.ref.changeDetectorRef.detectChanges();const As=X.animationBuilder;return void 0===an&&"back"===ve&&!Kr&&void 0!==As&&(an=As),nr&&(nr.animationBuilder=an),this.zone.runOutsideAngular(()=>this.wait(()=>(nr&&nr.ref.changeDetectorRef.detach(),X.ref.changeDetectorRef.reattach(),this.transition(X,nr,Lt,this.canGoBack(1),!1,an).then(()=>ga(X,oo,Io,this.location,this.zone)).then(()=>({enteringView:X,direction:ve,animation:Lt,tabSwitch:Kr})))))}canGoBack(X,_=this.getActiveStackId()){return this.getStack(_).length>X}pop(X,_=this.getActiveStackId()){return this.zone.run(()=>{var T,O;const ve=this.getStack(_);if(ve.length<=X)return Promise.resolve(!1);const Lt=ve[ve.length-X-1];let an=Lt.url;const nr=Lt.savedData;if(nr){const Io=nr.get("primary");null!==(O=null===(T=Io?.route)||void 0===T?void 0:T._routerState)&&void 0!==O&&O.snapshot.url&&(an=Io.route._routerState.snapshot.url)}const{animationBuilder:Kr}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(an,Object.assign(Object.assign({},Lt.savedExtras),{animation:Kr})).then(()=>!0)})}startBackTransition(){const X=this.activeView;if(X){const _=this.getStack(X.stackId),T=_[_.length-2],O=T.animationBuilder;return this.wait(()=>this.transition(T,X,"back",this.canGoBack(2),!0,O))}return Promise.resolve()}endBackTransition(X){X?(this.skipTransition=!0,this.pop(1)):this.activeView&&Fa(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(X){const _=this.getStack(X);return _.length>0?_[_.length-1]:void 0}getRootUrl(X){const _=this.getStack(X);return _.length>0?_[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(Li),this.activeView=void 0,this.views=[]}getStack(X){return this.views.filter(_=>_.stackId===X)}insertView(X,_){return this.activeView=X,this.views=((A,X,_)=>"root"===_?Di(A,X):"forward"===_?((A,X)=>(A.indexOf(X)>=0?A=A.filter(T=>T.stackId!==X.stackId||T.id<=X.id):A.push(X),A))(A,X):((A,X)=>A.indexOf(X)>=0?A.filter(T=>T.stackId!==X.stackId||T.id<=X.id):Di(A,X))(A,X))(this.views,X,_),this.views.slice()}transition(X,_,T,O,ve,Lt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(_===X)return Promise.resolve(!1);const an=X?X.element:void 0,nr=_?_.element:void 0,Kr=this.containerEl;return an&&an!==nr&&(an.classList.add("ion-page"),an.classList.add("ion-page-invisible"),an.parentElement!==Kr&&Kr.appendChild(an),Kr.commit)?Kr.commit(an,nr,{deepWait:!0,duration:void 0===T?0:void 0,direction:T,showGoBack:O,progressAnimation:ve,animationBuilder:Lt}):Promise.resolve(!1)}wait(X){return(0,g.mG)(this,void 0,void 0,function*(){void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0);const _=this.runningTask=X();return _.finally(()=>this.runningTask=void 0),_})}}const ga=(A,X,_,T,O)=>"function"==typeof requestAnimationFrame?new Promise(ve=>{requestAnimationFrame(()=>{Fa(A,X,_,T,O),ve()})}):Promise.resolve(),Fa=(A,X,_,T,O)=>{O.run(()=>_.filter(ve=>!X.includes(ve)).forEach(Li)),X.forEach(ve=>{const an=T.path().split("?")[0].split("#")[0];if(ve!==A&&ve.url!==an){const nr=ve.element;nr.setAttribute("aria-hidden","true"),nr.classList.add("ion-page-hidden"),ve.ref.changeDetectorRef.detach()}})};let va=(()=>{class A{get(_,T){const O=Ha();return O?O.get(_,T):null}getBoolean(_,T){const O=Ha();return!!O&&O.getBoolean(_,T)}getNumber(_,T){const O=Ha();return O?O.getNumber(_,T):0}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const ya=new o.InjectionToken("USERCONFIG"),Ha=()=>{if(typeof window<"u"){const A=window.Ionic;if(A?.config)return A.config}return null};let ii=(()=>{class A{constructor(_,T){this.doc=_,this.backButton=new m.xQ,this.keyboardDidShow=new m.xQ,this.keyboardDidHide=new m.xQ,this.pause=new m.xQ,this.resume=new m.xQ,this.resize=new m.xQ,T.run(()=>{var O;let ve;this.win=_.defaultView,this.backButton.subscribeWithPriority=function(Lt,an){return this.subscribe(nr=>nr.register(Lt,Kr=>T.run(()=>an(Kr))))},Go(this.pause,_,"pause"),Go(this.resume,_,"resume"),Go(this.backButton,_,"ionBackButton"),Go(this.resize,this.win,"resize"),Go(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),Go(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(Lt=>{ve=Lt}),null!==(O=this.win)&&void 0!==O&&O.cordova?_.addEventListener("deviceready",()=>{ve("cordova")},{once:!0}):ve("dom")})}is(_){return(0,D.a)(this.win,_)}platforms(){return(0,D.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(_){return Fi(this.win.location.href,_)}isLandscape(){return!this.isPortrait()}isPortrait(){var _,T;return null===(T=(_=this.win).matchMedia)||void 0===T?void 0:T.call(_,"(orientation: portrait)").matches}testUserAgent(_){const T=this.win.navigator;return!!(T?.userAgent&&T.userAgent.indexOf(_)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275inject(Ce.DOCUMENT),o.\u0275\u0275inject(o.NgZone))},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const Fi=(A,X)=>{X=X.replace(/[[\]\\]/g,"\\$&");const T=new RegExp("[\\?&]"+X+"=([^&#]*)").exec(A);return T?decodeURIComponent(T[1].replace(/\+/g," ")):null},Go=(A,X,_)=>{X&&X.addEventListener(_,T=>{A.next(T?.detail)})};let Xo=(()=>{class A{constructor(_,T,O,ve){this.location=T,this.serializer=O,this.router=ve,this.direction=Si,this.animated=Ji,this.guessDirection="forward",this.lastNavId=-1,ve&&ve.events.subscribe(Lt=>{if(Lt instanceof v.NavigationStart){const an=Lt.restoredState?Lt.restoredState.navigationId:Lt.id;this.guessDirection=an<this.lastNavId?"back":"forward",this.guessAnimation=Lt.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?Lt.id:an}}),_.backButton.subscribeWithPriority(0,Lt=>{this.pop(),Lt()})}navigateForward(_,T={}){return this.setDirection("forward",T.animated,T.animationDirection,T.animation),this.navigate(_,T)}navigateBack(_,T={}){return this.setDirection("back",T.animated,T.animationDirection,T.animation),this.navigate(_,T)}navigateRoot(_,T={}){return this.setDirection("root",T.animated,T.animationDirection,T.animation),this.navigate(_,T)}back(_={animated:!0,animationDirection:"back"}){return this.setDirection("back",_.animated,_.animationDirection,_.animation),this.location.back()}pop(){return(0,g.mG)(this,void 0,void 0,function*(){let _=this.topOutlet;for(;_&&!(yield _.pop());)_=_.parentOutlet})}setDirection(_,T,O,ve){this.direction=_,this.animated=Xa(_,T,O),this.animationBuilder=ve}setTopOutlet(_){this.topOutlet=_}consumeTransition(){let T,_="root";const O=this.animationBuilder;return"auto"===this.direction?(_=this.guessDirection,T=this.guessAnimation):(T=this.animated,_=this.direction),this.direction=Si,this.animated=Ji,this.animationBuilder=void 0,{direction:_,animation:T,animationBuilder:O}}navigate(_,T){if(Array.isArray(_))return this.router.navigate(_,T);{const O=this.serializer.parse(_.toString());return void 0!==T.queryParams&&(O.queryParams=Object.assign({},T.queryParams)),void 0!==T.fragment&&(O.fragment=T.fragment),this.router.navigateByUrl(O,T)}}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275inject(ii),o.\u0275\u0275inject(Ce.Location),o.\u0275\u0275inject(v.UrlSerializer),o.\u0275\u0275inject(v.Router,8))},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const Xa=(A,X,_)=>{if(!1!==X){if(void 0!==_)return _;if("forward"===A||"back"===A)return A;if("root"===A&&!0===X)return"forward"}},Si="auto",Ji=void 0;let Wi=(()=>{class A{constructor(_,T,O,ve,Lt,an,nr,Kr,Io,Lo,Ui,Ma,oo){this.parentContexts=_,this.location=T,this.config=Lt,this.navCtrl=an,this.componentFactoryResolver=nr,this.parentOutlet=oo,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new L.X(null),this.stackEvents=new o.EventEmitter,this.activateEvents=new o.EventEmitter,this.deactivateEvents=new o.EventEmitter,this.nativeEl=Io.nativeElement,this.name=O||v.PRIMARY_OUTLET,this.tabsPrefix="true"===ve?ci(Lo,Ma):void 0,this.stackCtrl=new qr(this.tabsPrefix,this.nativeEl,Lo,an,Ui,Kr),_.onChildOutletCreated(this.name,this)}set animation(_){this.nativeEl.animation=_}set animated(_){this.nativeEl.animated=_}set swipeGesture(_){this._swipeGesture=_,this.nativeEl.swipeHandler=_?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:T=>this.stackCtrl.endBackTransition(T)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const _=this.getContext();_?.route&&this.activateWith(_.route,_.resolver||null)}new Promise(_=>(0,j.c)(this.nativeEl,_)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(_,T){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const T=this.getContext();this.activatedView.savedData=new Map(T.children.contexts);const O=this.activatedView.savedData.get("primary");if(O&&T.route&&(O.route=Object.assign({},T.route)),this.activatedView.savedExtras={},T.route){const ve=T.route.snapshot;this.activatedView.savedExtras.queryParams=ve.queryParams,this.activatedView.savedExtras.fragment=ve.fragment}}const _=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(_)}}activateWith(_,T){var O;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=_;let ve,Lt=this.stackCtrl.getExistingView(_);if(Lt){ve=this.activated=Lt.ref;const an=Lt.savedData;an&&(this.getContext().children.contexts=an),this.updateActivatedRouteProxy(ve.instance,_)}else{const an=_._futureSnapshot;if(null==an.routeConfig.component&&null==this.environmentInjector)return void console.warn('[Ionic Warning]: You must supply an environmentInjector to use standalone components with routing:\n\nIn your component class, add:\n\n import { EnvironmentInjector } from \'@angular/core\';\n constructor(public environmentInjector: EnvironmentInjector) {}\n\nIn your router outlet template, add:\n\n <ion-router-outlet [environmentInjector]="environmentInjector"></ion-router-outlet>\n\nAlternatively, if you are routing within ion-tabs:\n\n <ion-tabs [environmentInjector]="environmentInjector"></ion-tabs>');const nr=this.parentContexts.getOrCreateContext(this.name).children,Kr=new L.X(null),Io=this.createActivatedRouteProxy(Kr,_),Lo=new Za(Io,nr,this.location.injector),Ui=null!==(O=an.routeConfig.component)&&void 0!==O?O:an.component;if((T=T||this.componentFactoryResolver)&&ye(T)){const Ma=T.resolveComponentFactory(Ui);ve=this.activated=this.location.createComponent(Ma,this.location.length,Lo)}else ve=this.activated=this.location.createComponent(Ui,{index:this.location.length,injector:Lo,environmentInjector:T??this.environmentInjector});Kr.next(ve.instance),Lt=this.stackCtrl.createView(this.activated,_),this.proxyMap.set(ve.instance,Io),this.currentActivatedRoute$.next({component:ve.instance,activatedRoute:_})}this.activatedView=Lt,this.navCtrl.setTopOutlet(this),this.stackCtrl.setActive(Lt).then(an=>{this.activateEvents.emit(ve.instance),this.stackEvents.emit(an)})}canGoBack(_=1,T){return this.stackCtrl.canGoBack(_,T)}pop(_=1,T){return this.stackCtrl.pop(_,T)}getLastUrl(_){const T=this.stackCtrl.getLastUrl(_);return T?T.url:void 0}getLastRouteView(_){return this.stackCtrl.getLastUrl(_)}getRootView(_){return this.stackCtrl.getRootUrl(_)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(_,T){const O=new v.ActivatedRoute;return O._futureSnapshot=T._futureSnapshot,O._routerState=T._routerState,O.snapshot=T.snapshot,O.outlet=T.outlet,O.component=T.component,O._paramMap=this.proxyObservable(_,"paramMap"),O._queryParamMap=this.proxyObservable(_,"queryParamMap"),O.url=this.proxyObservable(_,"url"),O.params=this.proxyObservable(_,"params"),O.queryParams=this.proxyObservable(_,"queryParams"),O.fragment=this.proxyObservable(_,"fragment"),O.data=this.proxyObservable(_,"data"),O}proxyObservable(_,T){return _.pipe((0,xe.h)(O=>!!O),(0,he.w)(O=>this.currentActivatedRoute$.pipe((0,xe.h)(ve=>null!==ve&&ve.component===O),(0,he.w)(ve=>ve&&ve.activatedRoute[T]),(0,Le.x)())))}updateActivatedRouteProxy(_,T){const O=this.proxyMap.get(_);if(!O)throw new Error("Could not find activated route proxy for view");O._futureSnapshot=T._futureSnapshot,O._routerState=T._routerState,O.snapshot=T.snapshot,O.outlet=T.outlet,O.component=T.component,this.currentActivatedRoute$.next({component:_,activatedRoute:T})}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(v.ChildrenOutletContexts),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275injectAttribute("name"),o.\u0275\u0275injectAttribute("tabs"),o.\u0275\u0275directiveInject(va),o.\u0275\u0275directiveInject(Xo),o.\u0275\u0275directiveInject(o.ComponentFactoryResolver,8),o.\u0275\u0275directiveInject(Ce.Location),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(v.Router),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(v.ActivatedRoute),o.\u0275\u0275directiveInject(A,12))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",environmentInjector:"environmentInjector"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),A})();class Za{constructor(X,_,T){this.route=X,this.childContexts=_,this.parent=T}get(X,_){return X===v.ActivatedRoute?this.route:X===v.ChildrenOutletContexts?this.childContexts:this.parent.get(X,_)}}let fe=(()=>{class A{constructor(_){this.navCtrl=_,this.ionTabsWillChange=new o.EventEmitter,this.ionTabsDidChange=new o.EventEmitter}onPageSelected(_){const T=_.enteringView.stackId;_.tabSwitch&&void 0!==T&&(this.ionTabsWillChange.emit({tab:T}),this.tabBar&&(this.tabBar.selectedTab=T),this.ionTabsDidChange.emit({tab:T}))}select(_){const T="string"==typeof _,O=T?_:_.detail.tab,ve=this.outlet.getActiveStackId()===O,Lt=`${this.outlet.tabsPrefix}/${O}`;if(T||_.stopPropagation(),ve){const an=this.outlet.getActiveStackId();if(this.outlet.getLastRouteView(an)?.url===Lt)return;const Kr=this.outlet.getRootView(O);return this.navCtrl.navigateRoot(Lt,Object.assign(Object.assign({},Kr&&Lt===Kr.url&&Kr.savedExtras),{animated:!0,animationDirection:"back"}))}{const an=this.outlet.getLastRouteView(O),Kr=an?.savedExtras;return this.navCtrl.navigateRoot(an?.url||Lt,Object.assign(Object.assign({},Kr),{animated:!0,animationDirection:"back"}))}}getSelected(){return this.outlet.getActiveStackId()}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(Xo))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-tabs"]],contentQueries:function(_,T,O){if(1&_&&o.\u0275\u0275contentQuery(O,Qt,5),2&_){let ve;o.\u0275\u0275queryRefresh(ve=o.\u0275\u0275loadQuery())&&(T.tabBar=ve.first)}},viewQuery:function(_,T){if(1&_&&o.\u0275\u0275viewQuery(we,5,Wi),2&_){let O;o.\u0275\u0275queryRefresh(O=o.\u0275\u0275loadQuery())&&(T.outlet=O.first)}},hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("ionTabButtonClick",function(ve){return T.select(ve)})},inputs:{environmentInjector:"environmentInjector"},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"},ngContentSelectors:le,decls:5,vars:1,consts:[[1,"tabs-inner"],["tabs","true",3,"environmentInjector","stackEvents"],["outlet",""]],template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(Ee),o.\u0275\u0275projection(0),o.\u0275\u0275elementStart(1,"div",0)(2,"ion-router-outlet",1,2),o.\u0275\u0275listener("stackEvents",function(ve){return T.onPageSelected(ve)}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275projection(4,1)),2&_&&(o.\u0275\u0275advance(2),o.\u0275\u0275property("environmentInjector",T.environmentInjector))},dependencies:[Wi],styles:["[_nghost-%COMP%] {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n flex-direction: column;\n\n width: 100%;\n height: 100%;\n\n contain: layout size style;\n z-index: $z-index-page-container;\n }\n .tabs-inner[_ngcontent-%COMP%] {\n position: relative;\n\n flex: 1;\n\n contain: layout size style;\n }"]}),A})(),lt=(()=>{class A{constructor(_,T,O){this.routerOutlet=_,this.navCtrl=T,this.config=O}onClick(_){var T;const O=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(T=this.routerOutlet)&&void 0!==T&&T.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),_.preventDefault()):null!=O&&(this.navCtrl.navigateBack(O,{animation:this.routerAnimation}),_.preventDefault())}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(Wi,8),o.\u0275\u0275directiveInject(Xo),o.\u0275\u0275directiveInject(va))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["ion-back-button"]],hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("click",function(ve){return T.onClick(ve)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),A})(),P=(()=>{let A=class{constructor(_,T,O,ve,Lt){this.el=_.nativeElement,_.nativeElement.delegate=ve.create(T,O,Lt),Tt(this,this.el,["ionNavDidChange","ionNavWillChange"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ComponentFactoryResolver),o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(Sr),o.\u0275\u0275directiveInject(o.ViewContainerRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["ion-nav"]]}),A=(0,g.gn)([Gt({inputs:["animated","animation","root","rootParams","swipeGesture"],methods:["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]})],A),A})(),Q=(()=>{class A{constructor(_,T,O,ve,Lt){this.locationStrategy=_,this.navCtrl=T,this.elementRef=O,this.router=ve,this.routerLink=Lt,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var _;if(null!==(_=this.routerLink)&&void 0!==_&&_.urlTree){const T=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=T}}onClick(_){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),_.preventDefault()}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(Ce.LocationStrategy),o.\u0275\u0275directiveInject(Xo),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(v.Router),o.\u0275\u0275directiveInject(v.RouterLink,8))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("click",function(ve){return T.onClick(ve)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[o.\u0275\u0275NgOnChangesFeature]}),A})(),Pe=(()=>{class A{constructor(_,T,O,ve,Lt){this.locationStrategy=_,this.navCtrl=T,this.elementRef=O,this.router=ve,this.routerLink=Lt,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var _;if(null!==(_=this.routerLink)&&void 0!==_&&_.urlTree){const T=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=T}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(Ce.LocationStrategy),o.\u0275\u0275directiveInject(Xo),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(v.Router),o.\u0275\u0275directiveInject(v.RouterLink,8))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(_,T){1&_&&o.\u0275\u0275listener("click",function(){return T.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[o.\u0275\u0275NgOnChangesFeature]}),A})(),Ve=(()=>{class A{constructor(_){this.templateRef=_}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.TemplateRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["","virtualFooter",""]]}),A})(),Z=(()=>{class A{constructor(_){this.templateRef=_}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.TemplateRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["","virtualHeader",""]]}),A})(),re=(()=>{class A{constructor(_,T){this.templateRef=_,this.viewContainer=T}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef))},A.\u0275dir=o.\u0275\u0275defineDirective({type:A,selectors:[["","virtualItem",""]]}),A})(),Xe=(()=>{let A=class{constructor(_,T,O){this.z=_,this.iterableDiffers=T,this.refMap=new WeakMap,this.el=O.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(_){if(this.trackBy&&"items"in _){const T=_.items.currentValue;if(void 0===this.differ&&null!=T)try{this.differ=this.iterableDiffers.find(T).create(this.trackBy)}catch{throw new Error(`Cannot find a differ supporting object '${T}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(_,T,O){return this.z.run(()=>{let ve;if(_){ve=this.refMap.get(_);const Lt=ve.context;Lt.$implicit=T.value,Lt.index=T.index}else ve=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(T.type),{$implicit:T.value,index:O},O),_=it(ve),this.refMap.set(_,ve);return ve.detectChanges(),_})}getComponent(_){switch(_){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef;default:throw new Error("template for virtual item was not provided")}}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.IterableDiffers),o.\u0275\u0275directiveInject(o.ElementRef))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-virtual-scroll"]],contentQueries:function(_,T,O){if(1&_&&(o.\u0275\u0275contentQuery(O,re,5),o.\u0275\u0275contentQuery(O,Z,5),o.\u0275\u0275contentQuery(O,Ve,5)),2&_){let ve;o.\u0275\u0275queryRefresh(ve=o.\u0275\u0275loadQuery())&&(T.itmTmp=ve.first),o.\u0275\u0275queryRefresh(ve=o.\u0275\u0275loadQuery())&&(T.hdrTmp=ve.first),o.\u0275\u0275queryRefresh(ve=o.\u0275\u0275loadQuery())&&(T.ftrTmp=ve.first)}},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:_e,decls:1,vars:0,template:function(_,T){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],A),A})();const it=A=>{const X=A.rootNodes;for(let _=0;_<X.length;_++)if(1===X[_].nodeType)return X[_];throw new Error("virtual element was not created")};let bt=(()=>{let A=class{constructor(_,T,O){this.z=O,this.isCmpOpen=!1,this.el=T.nativeElement,this.el.addEventListener("willPresent",()=>{this.isCmpOpen=!0,_.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,_.detectChanges()}),Tt(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-modal"]],contentQueries:function(_,T,O){if(1&_&&o.\u0275\u0275contentQuery(O,o.TemplateRef,5),2&_){let ve;o.\u0275\u0275queryRefresh(ve=o.\u0275\u0275loadQuery())&&(T.template=ve.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",swipeToClose:"swipeToClose",translucent:"translucent",trigger:"trigger"},decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(_,T){1&_&&o.\u0275\u0275template(0,Ue,2,1,"div",0),2&_&&o.\u0275\u0275property("ngIf",T.isCmpOpen||T.keepContentsMounted)},dependencies:[Ce.NgIf,Ce.NgTemplateOutlet],encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({inputs:["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","swipeToClose","translucent","trigger"],methods:["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"]})],A),A})(),mt=(()=>{let A=class{constructor(_,T,O){this.z=O,this.isCmpOpen=!1,this.el=T.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,_.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,_.detectChanges()}),Tt(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}};return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},A.\u0275cmp=o.\u0275\u0275defineComponent({type:A,selectors:[["ion-popover"]],contentQueries:function(_,T,O){if(1&_&&o.\u0275\u0275contentQuery(O,o.TemplateRef,5),2&_){let ve;o.\u0275\u0275queryRefresh(ve=o.\u0275\u0275loadQuery())&&(T.template=ve.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"},decls:1,vars:1,consts:[[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(_,T){1&_&&o.\u0275\u0275template(0,ke,1,1,"ng-container",0),2&_&&o.\u0275\u0275property("ngIf",T.isCmpOpen||T.keepContentsMounted)},dependencies:[Ce.NgIf,Ce.NgTemplateOutlet],encapsulation:2,changeDetection:0}),A=(0,g.gn)([Gt({inputs:["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],methods:["present","dismiss","onDidDismiss","onWillDismiss"]})],A),A})();class Rt{constructor(X){this.ctrl=X}create(X){return this.ctrl.create(X||{})}dismiss(X,_,T){return this.ctrl.dismiss(X,_,T)}getTop(){return this.ctrl.getTop()}}let Xt=(()=>{class A extends Rt{constructor(){super(ee.b)}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),qt=(()=>{class A extends Rt{constructor(){super(ee.a)}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),Sn=(()=>{class A extends Rt{constructor(){super(ee.l)}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),Wn=(()=>{class A{open(_){return K.m.open(_)}close(_){return K.m.close(_)}toggle(_){return K.m.toggle(_)}enable(_,T){return K.m.enable(_,T)}swipeGesture(_,T){return K.m.swipeGesture(_,T)}isOpen(_){return K.m.isOpen(_)}isEnabled(_){return K.m.isEnabled(_)}get(_){return K.m.get(_)}getOpen(){return K.m.getOpen()}getMenus(){return K.m.getMenus()}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),Un=(()=>{class A extends Rt{constructor(){super(ee.p)}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class sr{}let hr=(()=>{class A extends Rt{constructor(_,T,O,ve){super(ee.m),this.angularDelegate=_,this.resolver=T,this.injector=O,this.environmentInjector=ve}create(_){var T;return super.create(Object.assign(Object.assign({},_),{delegate:this.angularDelegate.create(null!==(T=this.resolver)&&void 0!==T?T:this.environmentInjector,this.injector,void 0,"modal")}))}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275inject(Sr),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(sr,8))},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac}),A})(),Ar=(()=>{class A extends Rt{constructor(_,T,O,ve){super(ee.c),this.angularDelegate=_,this.resolver=T,this.injector=O,this.environmentInjector=ve}create(_){var T;return super.create(Object.assign(Object.assign({},_),{delegate:this.angularDelegate.create(null!==(T=this.resolver)&&void 0!==T?T:this.environmentInjector,this.injector,void 0,"popover")}))}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275inject(Sr),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(sr,8))},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac}),A})(),eo=(()=>{class A extends Rt{constructor(){super(ee.t)}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),fo=(()=>{class A{read(_){ko().read(_)}write(_){ko().write(_)}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const ko=()=>{const A=typeof window<"u"?window:null;if(null!=A){const X=A.Ionic;return X?.queue?X.queue:{read:_=>A.requestAnimationFrame(_),write:_=>A.requestAnimationFrame(_)}}return{read:X=>X(),write:X=>X()}};let y=(()=>{class A{create(_){return(0,b.c)(_)}easingTime(_,T,O,ve,Lt){return(0,Y.g)(_,T,O,ve,Lt)}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),G=(()=>{class A{constructor(_){this.zone=_}create(_,T=!1){return T&&Object.getOwnPropertyNames(_).forEach(O=>{if("function"==typeof _[O]){const ve=_[O];_[O]=(...Lt)=>this.zone.run(()=>ve(...Lt))}}),(0,I.createGesture)(_)}}return A.\u0275fac=function(_){return new(_||A)(o.\u0275\u0275inject(o.NgZone))},A.\u0275prov=o.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class Je{shouldDetach(X){return!1}shouldAttach(X){return!1}store(X,_){}retrieve(X){return null}shouldReuseRoute(X,_){if(X.routeConfig!==_.routeConfig)return!1;const T=X.params,O=_.params,ve=Object.keys(T),Lt=Object.keys(O);if(ve.length!==Lt.length)return!1;for(const an of ve)if(O[an]!==T[an])return!1;return!0}}const dt=(A,X,_)=>()=>{if(X.defaultView&&typeof window<"u"){(0,W.s)(Object.assign(Object.assign({},A),{_zoneGate:ve=>_.run(ve)}));const O="__zone_symbol__addEventListener"in X.body?"__zone_symbol__addEventListener":"addEventListener";return function ie(){var A=[];if(typeof window<"u"){var X=window;(!X.customElements||X.Element&&(!X.Element.prototype.closest||!X.Element.prototype.matches||!X.Element.prototype.remove||!X.Element.prototype.getRootNode))&&A.push(f.e(6748).then(f.t.bind(f,30723,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||X.NodeList&&!X.NodeList.prototype.forEach||!X.fetch||!function(){try{var T=new URL("b","http://a");return T.pathname="c%20d","http://a/c%20d"===T.href&&T.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&A.push(f.e(2214).then(f.t.bind(f,24144,23)))}return Promise.all(A)}().then(()=>((A,X)=>typeof window>"u"?Promise.resolve():(0,ce.p)().then(()=>(se(),(0,ce.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32],"setFocus":[64]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]]]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[1,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}]]],["ion-select_3",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-note",{"color":[513]}]]]]'),X))))(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:ze,jmp:ve=>_.runOutsideAngular(ve),ael(ve,Lt,an,nr){ve[O](Lt,an,nr)},rel(ve,Lt,an,nr){ve.removeEventListener(Lt,an,nr)}}))}};let Rr=(()=>{class A{static forRoot(_){return{ngModule:A,providers:[{provide:ya,useValue:_},{provide:o.APP_INITIALIZER,useFactory:dt,multi:!0,deps:[ya,Ce.DOCUMENT,o.NgZone]}]}}}return A.\u0275fac=function(_){return new(_||A)},A.\u0275mod=o.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=o.\u0275\u0275defineInjector({providers:[Sr,hr,Ar],imports:[[Ce.CommonModule]]}),A})()},90181:(Ge,$,f)=>{f.d($,{c:()=>de});var o=f(35730),a=f(13457);let g;const m=K=>K.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),L=K=>{if(void 0===g){const De=void 0!==K.style.webkitAnimationName;g=void 0===K.style.animationName&&De?"-webkit-":""}return g},v=(K,ee,De)=>{const Te=ee.startsWith("animation")?L(K):"";K.style.setProperty(Te+ee,De)},b=(K,ee)=>{const De=ee.startsWith("animation")?L(K):"";K.style.removeProperty(De+ee)},Y=[],W=(K=[],ee)=>{if(void 0!==ee){const De=Array.isArray(ee)?ee:[ee];return[...K,...De]}return K},de=K=>{let ee,De,Te,ce,oe,te,Ce,le,Ue,ke,ze,_t,At,ge=[],xe=[],he=[],Le=!1,ie={},se=[],me=[],Ne={},_e=0,we=!1,Ee=!1,ye=!0,je=!1,Ze=!0,Vt=!1;const fn=K,mn=[],xn=[],gn=[],Et=[],cn=[],ft=[],Tt=[],en=[],Gt=[],or=[],Cr="function"==typeof AnimationEffect||void 0!==a.w&&"function"==typeof a.w.AnimationEffect,wr="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Cr,er=()=>or,Qn=(qe,wt)=>((wt?.oneTimeCallback?xn:mn).push({c:qe,o:wt}),At),jr=()=>{if(wr)or.forEach(qe=>{qe.cancel()}),or.length=0;else{const qe=gn.slice();(0,o.r)(()=>{qe.forEach(wt=>{b(wt,"animation-name"),b(wt,"animation-duration"),b(wt,"animation-timing-function"),b(wt,"animation-iteration-count"),b(wt,"animation-delay"),b(wt,"animation-play-state"),b(wt,"animation-fill-mode"),b(wt,"animation-direction")})})}},Nr=()=>{cn.forEach(qe=>{qe?.parentNode&&qe.parentNode.removeChild(qe)}),cn.length=0},Eo=()=>void 0!==oe?oe:Ce?Ce.getFill():"both",Ur=()=>void 0!==Ue?Ue:void 0!==te?te:Ce?Ce.getDirection():"normal",vo=()=>we?"linear":void 0!==Te?Te:Ce?Ce.getEasing():"linear",br=()=>Ee?0:void 0!==ke?ke:void 0!==De?De:Ce?Ce.getDuration():0,Zn=()=>void 0!==ce?ce:Ce?Ce.getIterations():1,uo=()=>void 0!==ze?ze:void 0!==ee?ee:Ce?Ce.getDelay():0,Yt=()=>{0!==_e&&(_e--,0===_e&&((()=>{Mo(),en.forEach(on=>on()),Gt.forEach(on=>on());const qe=ye?1:0,wt=se,Ht=me,Kt=Ne;gn.forEach(on=>{const Mn=on.classList;wt.forEach(Yn=>Mn.add(Yn)),Ht.forEach(Yn=>Mn.remove(Yn));for(const Yn in Kt)Kt.hasOwnProperty(Yn)&&v(on,Yn,Kt[Yn])}),mn.forEach(on=>on.c(qe,At)),xn.forEach(on=>on.c(qe,At)),xn.length=0,Ze=!0,ye&&(je=!0),ye=!0})(),Ce&&Ce.animationFinish()))},$t=(qe=!0)=>{Nr();const wt=(K=>(K.forEach(ee=>{for(const De in ee)if(ee.hasOwnProperty(De)){const Te=ee[De];if("easing"===De)ee["animation-timing-function"]=Te,delete ee[De];else{const ce=m(De);ce!==De&&(ee[ce]=Te,delete ee[De])}}}),K))(ge);gn.forEach(Ht=>{if(wt.length>0){const Kt=((K=[])=>K.map(ee=>{const De=ee.offset,Te=[];for(const ce in ee)ee.hasOwnProperty(ce)&&"offset"!==ce&&Te.push(`${ce}: ${ee[ce]};`);return`${100*De}% { ${Te.join(" ")} }`}).join(" "))(wt);_t=void 0!==K?K:(K=>{let ee=Y.indexOf(K);return ee<0&&(ee=Y.push(K)-1),`ion-animation-${ee}`})(Kt);const on=((K,ee,De)=>{var Te;const ce=(K=>{const ee=void 0!==K.getRootNode?K.getRootNode():K;return ee.head||ee})(De),oe=L(De),te=ce.querySelector("#"+K);if(te)return te;const ge=(null!==(Te=De.ownerDocument)&&void 0!==Te?Te:document).createElement("style");return ge.id=K,ge.textContent=`@${oe}keyframes ${K} { ${ee} } @${oe}keyframes ${K}-alt { ${ee} }`,ce.appendChild(ge),ge})(_t,Kt,Ht);cn.push(on),v(Ht,"animation-duration",`${br()}ms`),v(Ht,"animation-timing-function",vo()),v(Ht,"animation-delay",`${uo()}ms`),v(Ht,"animation-fill-mode",Eo()),v(Ht,"animation-direction",Ur());const Mn=Zn()===1/0?"infinite":Zn().toString();v(Ht,"animation-iteration-count",Mn),v(Ht,"animation-play-state","paused"),qe&&v(Ht,"animation-name",`${on.id}-alt`),(0,o.r)(()=>{v(Ht,"animation-name",on.id||null)})}})},dn=(qe=!0)=>{(()=>{ft.forEach(Kt=>Kt()),Tt.forEach(Kt=>Kt());const qe=xe,wt=he,Ht=ie;gn.forEach(Kt=>{const on=Kt.classList;qe.forEach(Mn=>on.add(Mn)),wt.forEach(Mn=>on.remove(Mn));for(const Mn in Ht)Ht.hasOwnProperty(Mn)&&v(Kt,Mn,Ht[Mn])})})(),ge.length>0&&(wr?(gn.forEach(qe=>{const wt=qe.animate(ge,{id:fn,delay:uo(),duration:br(),easing:vo(),iterations:Zn(),fill:Eo(),direction:Ur()});wt.pause(),or.push(wt)}),or.length>0&&(or[0].onfinish=()=>{Yt()})):$t(qe)),Le=!0},un=qe=>{if(qe=Math.min(Math.max(qe,0),.9999),wr)or.forEach(wt=>{wt.currentTime=wt.effect.getComputedTiming().delay+br()*qe,wt.pause()});else{const wt=`-${br()*qe}ms`;gn.forEach(Ht=>{ge.length>0&&(v(Ht,"animation-delay",wt),v(Ht,"animation-play-state","paused"))})}},Pn=qe=>{or.forEach(wt=>{wt.effect.updateTiming({delay:uo(),duration:br(),easing:vo(),iterations:Zn(),fill:Eo(),direction:Ur()})}),void 0!==qe&&un(qe)},On=(qe=!0,wt)=>{(0,o.r)(()=>{gn.forEach(Ht=>{v(Ht,"animation-name",_t||null),v(Ht,"animation-duration",`${br()}ms`),v(Ht,"animation-timing-function",vo()),v(Ht,"animation-delay",void 0!==wt?`-${wt*br()}ms`:`${uo()}ms`),v(Ht,"animation-fill-mode",Eo()||null),v(Ht,"animation-direction",Ur()||null);const Kt=Zn()===1/0?"infinite":Zn().toString();v(Ht,"animation-iteration-count",Kt),qe&&v(Ht,"animation-name",`${_t}-alt`),(0,o.r)(()=>{v(Ht,"animation-name",_t||null)})})})},In=(qe=!1,wt=!0,Ht)=>(qe&&Et.forEach(Kt=>{Kt.update(qe,wt,Ht)}),wr?Pn(Ht):On(wt,Ht),At),yo=()=>{Le&&(wr?or.forEach(qe=>{qe.pause()}):gn.forEach(qe=>{v(qe,"animation-play-state","paused")}),Vt=!0)},io=()=>{le=void 0,Yt()},Mo=()=>{le&&clearTimeout(le)},We=qe=>new Promise(wt=>{qe?.sync&&(Ee=!0,Qn(()=>Ee=!1,{oneTimeCallback:!0})),Le||dn(),je&&(wr?(un(0),Pn()):On(),je=!1),Ze&&(_e=Et.length+1,Ze=!1),Qn(()=>wt(),{oneTimeCallback:!0}),Et.forEach(Ht=>{Ht.play()}),wr?(or.forEach(qe=>{qe.play()}),(0===ge.length||0===gn.length)&&Yt()):(()=>{if(Mo(),(0,o.r)(()=>{gn.forEach(qe=>{ge.length>0&&v(qe,"animation-play-state","running")})}),0===ge.length||0===gn.length)Yt();else{const qe=uo()||0,wt=br()||0,Ht=Zn()||1;isFinite(Ht)&&(le=setTimeout(io,qe+wt*Ht+100)),((K,ee)=>{let De;const Te={passive:!0},oe=te=>{K===te.target&&(De&&De(),Mo(),(0,o.r)(()=>{gn.forEach(qe=>{b(qe,"animation-duration"),b(qe,"animation-delay"),b(qe,"animation-play-state")}),(0,o.r)(Yt)}))};K&&(K.addEventListener("webkitAnimationEnd",oe,Te),K.addEventListener("animationend",oe,Te),De=()=>{K.removeEventListener("webkitAnimationEnd",oe,Te),K.removeEventListener("animationend",oe,Te)})})(gn[0])}})(),Vt=!1}),Pt=(qe,wt)=>{const Ht=ge[0];return void 0===Ht||void 0!==Ht.offset&&0!==Ht.offset?ge=[{offset:0,[qe]:wt},...ge]:Ht[qe]=wt,At};return At={parentAnimation:Ce,elements:gn,childAnimations:Et,id:fn,animationFinish:Yt,from:Pt,to:(qe,wt)=>{const Ht=ge[ge.length-1];return void 0===Ht||void 0!==Ht.offset&&1!==Ht.offset?ge=[...ge,{offset:1,[qe]:wt}]:Ht[qe]=wt,At},fromTo:(qe,wt,Ht)=>Pt(qe,wt).to(qe,Ht),parent:qe=>(Ce=qe,At),play:We,pause:()=>(Et.forEach(qe=>{qe.pause()}),yo(),At),stop:()=>{Et.forEach(qe=>{qe.stop()}),Le&&(jr(),Le=!1),we=!1,Ee=!1,Ze=!0,Ue=void 0,ke=void 0,ze=void 0,_e=0,je=!1,ye=!0,Vt=!1},destroy:qe=>(Et.forEach(wt=>{wt.destroy(qe)}),(qe=>{jr(),qe&&Nr()})(qe),gn.length=0,Et.length=0,ge.length=0,mn.length=0,xn.length=0,Le=!1,Ze=!0,At),keyframes:qe=>{const wt=ge!==qe;return ge=qe,wt&&(qe=>{wr?er().forEach(wt=>{if(wt.effect.setKeyframes)wt.effect.setKeyframes(qe);else{const Ht=new KeyframeEffect(wt.effect.target,qe,wt.effect.getTiming());wt.effect=Ht}}):$t()})(ge),At},addAnimation:qe=>{if(null!=qe)if(Array.isArray(qe))for(const wt of qe)wt.parent(At),Et.push(wt);else qe.parent(At),Et.push(qe);return At},addElement:qe=>{if(null!=qe)if(1===qe.nodeType)gn.push(qe);else if(qe.length>=0)for(let wt=0;wt<qe.length;wt++)gn.push(qe[wt]);else console.error("Invalid addElement value");return At},update:In,fill:qe=>(oe=qe,In(!0),At),direction:qe=>(te=qe,In(!0),At),iterations:qe=>(ce=qe,In(!0),At),duration:qe=>(!wr&&0===qe&&(qe=1),De=qe,In(!0),At),easing:qe=>(Te=qe,In(!0),At),delay:qe=>(ee=qe,In(!0),At),getWebAnimations:er,getKeyframes:()=>ge,getFill:Eo,getDirection:Ur,getDelay:uo,getIterations:Zn,getEasing:vo,getDuration:br,afterAddRead:qe=>(en.push(qe),At),afterAddWrite:qe=>(Gt.push(qe),At),afterClearStyles:(qe=[])=>{for(const wt of qe)Ne[wt]="";return At},afterStyles:(qe={})=>(Ne=qe,At),afterRemoveClass:qe=>(me=W(me,qe),At),afterAddClass:qe=>(se=W(se,qe),At),beforeAddRead:qe=>(ft.push(qe),At),beforeAddWrite:qe=>(Tt.push(qe),At),beforeClearStyles:(qe=[])=>{for(const wt of qe)ie[wt]="";return At},beforeStyles:(qe={})=>(ie=qe,At),beforeRemoveClass:qe=>(he=W(he,qe),At),beforeAddClass:qe=>(xe=W(xe,qe),At),onFinish:Qn,isRunning:()=>0!==_e&&!Vt,progressStart:(qe=!1,wt)=>(Et.forEach(Ht=>{Ht.progressStart(qe,wt)}),yo(),we=qe,Le||dn(),In(!1,!0,wt),At),progressStep:qe=>(Et.forEach(wt=>{wt.progressStep(qe)}),un(qe),At),progressEnd:(qe,wt,Ht)=>(we=!1,Et.forEach(Kt=>{Kt.progressEnd(qe,wt,Ht)}),void 0!==Ht&&(ke=Ht),je=!1,ye=!0,0===qe?(Ue="reverse"===Ur()?"normal":"reverse","reverse"===Ue&&(ye=!1),wr?(In(),un(1-wt)):(ze=(1-wt)*br()*-1,In(!1,!1))):1===qe&&(wr?(In(),un(wt)):(ze=wt*br()*-1,In(!1,!1))),void 0!==qe&&(Qn(()=>{ke=void 0,Ue=void 0,ze=void 0},{oneTimeCallback:!0}),Ce||We()),At)}}},15820:(Ge,$,f)=>{f.d($,{E:()=>F,I:()=>v,a:()=>o,s:()=>b});const o=Y=>{try{if(Y instanceof v)return Y.value;if(!h()||"string"!=typeof Y||""===Y)return Y;if(Y.includes("onload="))return"";const I=document.createDocumentFragment(),D=document.createElement("div");I.appendChild(D),D.innerHTML=Y,L.forEach(K=>{const ee=I.querySelectorAll(K);for(let De=ee.length-1;De>=0;De--){const Te=ee[De];Te.parentNode?Te.parentNode.removeChild(Te):I.removeChild(Te);const ce=g(Te);for(let oe=0;oe<ce.length;oe++)a(ce[oe])}});const j=g(I);for(let K=0;K<j.length;K++)a(j[K]);const W=document.createElement("div");W.appendChild(I);const de=W.querySelector("div");return null!==de?de.innerHTML:W.innerHTML}catch(I){return console.error(I),""}},a=Y=>{if(Y.nodeType&&1!==Y.nodeType)return;if(typeof NamedNodeMap<"u"&&!(Y.attributes instanceof NamedNodeMap))return void Y.remove();for(let D=Y.attributes.length-1;D>=0;D--){const j=Y.attributes.item(D),W=j.name;if(!m.includes(W.toLowerCase())){Y.removeAttribute(W);continue}const de=j.value,K=Y[W];(null!=de&&de.toLowerCase().includes("javascript:")||null!=K&&K.toLowerCase().includes("javascript:"))&&Y.removeAttribute(W)}const I=g(Y);for(let D=0;D<I.length;D++)a(I[D])},g=Y=>null!=Y.children?Y.children:Y.childNodes,h=()=>{var Y;const D=null===(Y=window?.Ionic)||void 0===Y?void 0:Y.config;return!D||(D.get?D.get("sanitizerEnabled",!0):!0===D.sanitizerEnabled||void 0===D.sanitizerEnabled)},m=["class","id","href","src","name","slot"],L=["script","style","iframe","meta","link","object","embed"];class v{constructor(I){this.value=I}}const b=Y=>{const I=window,D=I.Ionic;if(!D||!D.config||"Object"===D.config.constructor.name)return I.Ionic=I.Ionic||{},I.Ionic.config=Object.assign(Object.assign({},I.Ionic.config),Y),I.Ionic.config},F=!0},32225:(Ge,$,f)=>{f.d($,{g:()=>o});const o=(L,v,b,k,F)=>g(L[1],v[1],b[1],k[1],F).map(Y=>a(L[0],v[0],b[0],k[0],Y)),a=(L,v,b,k,F)=>F*(3*v*Math.pow(F-1,2)+F*(-3*b*F+3*b+k*F))-L*Math.pow(F-1,3),g=(L,v,b,k,F)=>m((k-=F)-3*(b-=F)+3*(v-=F)-(L-=F),3*b-6*v+3*L,3*v-3*L,L).filter(I=>I>=0&&I<=1),m=(L,v,b,k)=>{if(0===L)return((L,v,b)=>{const k=v*v-4*L*b;return k<0?[]:[(-v+Math.sqrt(k))/(2*L),(-v-Math.sqrt(k))/(2*L)]})(v,b,k);const F=(3*(b/=L)-(v/=L)*v)/3,Y=(2*v*v*v-9*v*b+27*(k/=L))/27;if(0===F)return[Math.pow(-Y,1/3)];if(0===Y)return[Math.sqrt(-F),-Math.sqrt(-F)];const I=Math.pow(Y/2,2)+Math.pow(F/3,3);if(0===I)return[Math.pow(Y/2,.5)-v/3];if(I>0)return[Math.pow(-Y/2+Math.sqrt(I),1/3)-Math.pow(Y/2+Math.sqrt(I),1/3)-v/3];const D=Math.sqrt(Math.pow(-F/3,3)),j=Math.acos(-Y/(2*Math.sqrt(Math.pow(-F/3,3)))),W=2*Math.pow(D,1/3);return[W*Math.cos(j/3)-v/3,W*Math.cos((j+2*Math.PI)/3)-v/3,W*Math.cos((j+4*Math.PI)/3)-v/3]}},34349:(Ge,$,f)=>{f.d($,{G:()=>m});class a{constructor(v,b,k,F,Y){this.id=b,this.name=k,this.disableScroll=Y,this.priority=1e6*F+b,this.ctrl=v}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const v=this.ctrl.capture(this.name,this.id,this.priority);return v&&this.disableScroll&&this.ctrl.disableScroll(this.id),v}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class g{constructor(v,b,k,F){this.id=b,this.disable=k,this.disableScroll=F,this.ctrl=v}block(){if(this.ctrl){if(this.disable)for(const v of this.disable)this.ctrl.disableGesture(v,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const v of this.disable)this.ctrl.enableGesture(v,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const h="backdrop-no-scroll",m=new class o{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(v){var b;return new a(this,this.newID(),v.name,null!==(b=v.priority)&&void 0!==b?b:0,!!v.disableScroll)}createBlocker(v={}){return new g(this,this.newID(),v.disable,!!v.disableScroll)}start(v,b,k){return this.canStart(v)?(this.requestedStart.set(b,k),!0):(this.requestedStart.delete(b),!1)}capture(v,b,k){if(!this.start(v,b,k))return!1;const F=this.requestedStart;let Y=-1e4;if(F.forEach(I=>{Y=Math.max(Y,I)}),Y===k){this.capturedId=b,F.clear();const I=new CustomEvent("ionGestureCaptured",{detail:{gestureName:v}});return document.dispatchEvent(I),!0}return F.delete(b),!1}release(v){this.requestedStart.delete(v),this.capturedId===v&&(this.capturedId=void 0)}disableGesture(v,b){let k=this.disabledGestures.get(v);void 0===k&&(k=new Set,this.disabledGestures.set(v,k)),k.add(b)}enableGesture(v,b){const k=this.disabledGestures.get(v);void 0!==k&&k.delete(b)}disableScroll(v){this.disabledScroll.add(v),1===this.disabledScroll.size&&document.body.classList.add(h)}enableScroll(v){this.disabledScroll.delete(v),0===this.disabledScroll.size&&document.body.classList.remove(h)}canStart(v){return!(void 0!==this.capturedId||this.isDisabled(v))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(v){const b=this.disabledGestures.get(v);return!!(b&&b.size>0)}newID(){return this.gestureId++,this.gestureId}}},47593:(Ge,$,f)=>{f.r($),f.d($,{MENU_BACK_BUTTON_PRIORITY:()=>m,OVERLAY_BACK_BUTTON_PRIORITY:()=>h,blockHardwareBackButton:()=>a,startHardwareBackButton:()=>g});var o=f(15861);const a=()=>{document.addEventListener("backbutton",()=>{})},g=()=>{const L=document;let v=!1;L.addEventListener("backbutton",()=>{if(v)return;let b=0,k=[];const F=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(D,j){k.push({priority:D,handler:j,id:b++})}}});L.dispatchEvent(F);const Y=function(){var D=(0,o.Z)(function*(j){try{if(j?.handler){const W=j.handler(I);null!=W&&(yield W)}}catch(W){console.error(W)}});return function(W){return D.apply(this,arguments)}}(),I=()=>{if(k.length>0){let D={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};k.forEach(j=>{j.priority>=D.priority&&(D=j)}),v=!0,k=k.filter(j=>j.id!==D.id),Y(D).then(()=>v=!1)}};I()})},h=100,m=99},35730:(Ge,$,f)=>{f.d($,{a:()=>v,b:()=>b,c:()=>g,d:()=>j,e:()=>W,f:()=>D,g:()=>k,h:()=>ce,i:()=>L,j:()=>h,k:()=>I,l:()=>de,m:()=>Y,n:()=>K,o:()=>Te,p:()=>De,q:()=>oe,r:()=>F,s:()=>te,t:()=>o,u:()=>ee});const o=(ge,xe=0)=>new Promise(he=>{a(ge,xe,he)}),a=(ge,xe=0,he)=>{let Le,Ce;const ie={passive:!0},me=()=>{Le&&Le()},Ne=_e=>{(void 0===_e||ge===_e.target)&&(me(),he(_e))};return ge&&(ge.addEventListener("webkitTransitionEnd",Ne,ie),ge.addEventListener("transitionend",Ne,ie),Ce=setTimeout(Ne,xe+500),Le=()=>{Ce&&(clearTimeout(Ce),Ce=void 0),ge.removeEventListener("webkitTransitionEnd",Ne,ie),ge.removeEventListener("transitionend",Ne,ie)}),me},g=(ge,xe)=>{ge.componentOnReady?ge.componentOnReady().then(he=>xe(he)):F(()=>xe(ge))},h=(ge,xe=[])=>{const he={};return xe.forEach(Le=>{ge.hasAttribute(Le)&&(null!==ge.getAttribute(Le)&&(he[Le]=ge.getAttribute(Le)),ge.removeAttribute(Le))}),he},m=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],L=(ge,xe)=>{let he=m;return xe&&xe.length>0&&(he=he.filter(Le=>!xe.includes(Le))),h(ge,he)},v=(ge,xe,he,Le)=>{var Ce;if(typeof window<"u"){const se=null===(Ce=window?.Ionic)||void 0===Ce?void 0:Ce.config;if(se){const me=se.get("_ael");if(me)return me(ge,xe,he,Le);if(se._ael)return se._ael(ge,xe,he,Le)}}return ge.addEventListener(xe,he,Le)},b=(ge,xe,he,Le)=>{var Ce;if(typeof window<"u"){const se=null===(Ce=window?.Ionic)||void 0===Ce?void 0:Ce.config;if(se){const me=se.get("_rel");if(me)return me(ge,xe,he,Le);if(se._rel)return se._rel(ge,xe,he,Le)}}return ge.removeEventListener(xe,he,Le)},k=(ge,xe=ge)=>ge.shadowRoot||xe,F=ge=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ge):"function"==typeof requestAnimationFrame?requestAnimationFrame(ge):setTimeout(ge),Y=ge=>!!ge.shadowRoot&&!!ge.attachShadow,I=ge=>{const xe=ge.closest("ion-item");return xe?xe.querySelector("ion-label"):null},D=ge=>{if(ge.focus(),ge.classList.contains("ion-focusable")){const xe=ge.closest("ion-app");xe&&xe.setFocus([ge])}},j=(ge,xe)=>{let he;const Le=ge.getAttribute("aria-labelledby"),Ce=ge.id;let ie=null!==Le&&""!==Le.trim()?Le:xe+"-lbl",se=null!==Le&&""!==Le.trim()?document.getElementById(Le):I(ge);return se?(null===Le&&(se.id=ie),he=se.textContent,se.setAttribute("aria-hidden","true")):""!==Ce.trim()&&(se=document.querySelector(`label[for="${Ce}"]`),se&&(""!==se.id?ie=se.id:se.id=ie=`${Ce}-lbl`,he=se.textContent)),{label:se,labelId:ie,labelText:he}},W=(ge,xe,he,Le,Ce)=>{if(ge||Y(xe)){let ie=xe.querySelector("input.aux-input");ie||(ie=xe.ownerDocument.createElement("input"),ie.type="hidden",ie.classList.add("aux-input"),xe.appendChild(ie)),ie.disabled=Ce,ie.name=he,ie.value=Le||""}},de=(ge,xe,he)=>Math.max(ge,Math.min(xe,he)),K=(ge,xe)=>{if(!ge){const he="ASSERT: "+xe;throw console.error(he),new Error(he)}},ee=ge=>ge.timeStamp||Date.now(),De=ge=>{if(ge){const xe=ge.changedTouches;if(xe&&xe.length>0){const he=xe[0];return{x:he.clientX,y:he.clientY}}if(void 0!==ge.pageX)return{x:ge.pageX,y:ge.pageY}}return{x:0,y:0}},Te=ge=>{const xe="rtl"===document.dir;switch(ge){case"start":return xe;case"end":return!xe;default:throw new Error(`"${ge}" is not a valid value for [side]. Use "start" or "end" instead.`)}},ce=(ge,xe)=>{const he=ge._original||ge;return{_original:ge,emit:oe(he.emit.bind(he),xe)}},oe=(ge,xe=0)=>{let he;return(...Le)=>{clearTimeout(he),he=setTimeout(ge,xe,...Le)}},te=(ge,xe)=>{if(ge??(ge={}),xe??(xe={}),ge===xe)return!0;const he=Object.keys(ge);if(he.length!==Object.keys(xe).length)return!1;for(const Le of he)if(!(Le in xe)||ge[Le]!==xe[Le])return!1;return!0}},1843:(Ge,$,f)=>{f.d($,{L:()=>h,a:()=>m,b:()=>L,c:()=>v,d:()=>b,e:()=>xe,g:()=>Ce,l:()=>te,s:()=>he,t:()=>Y});var o=f(15861),a=f(71308),g=f(35730);const h="ionViewWillEnter",m="ionViewDidEnter",L="ionViewWillLeave",v="ionViewDidLeave",b="ionViewWillUnload",Y=ie=>new Promise((se,me)=>{(0,a.c)(()=>{I(ie),D(ie).then(Ne=>{Ne.animation&&Ne.animation.destroy(),j(ie),se(Ne)},Ne=>{j(ie),me(Ne)})})}),I=ie=>{const se=ie.enteringEl,me=ie.leavingEl;Le(se,me,ie.direction),ie.showGoBack?se.classList.add("can-go-back"):se.classList.remove("can-go-back"),he(se,!1),se.style.setProperty("pointer-events","none"),me&&(he(me,!1),me.style.setProperty("pointer-events","none"))},D=function(){var ie=(0,o.Z)(function*(se){const me=yield W(se);return me&&a.B.isBrowser?de(me,se):K(se)});return function(me){return ie.apply(this,arguments)}}(),j=ie=>{const se=ie.enteringEl,me=ie.leavingEl;se.classList.remove("ion-page-invisible"),se.style.removeProperty("pointer-events"),void 0!==me&&(me.classList.remove("ion-page-invisible"),me.style.removeProperty("pointer-events"))},W=function(){var ie=(0,o.Z)(function*(se){return se.leavingEl&&se.animated&&0!==se.duration?se.animationBuilder?se.animationBuilder:"ios"===se.mode?(yield Promise.resolve().then(f.bind(f,66439))).iosTransitionAnimation:(yield Promise.resolve().then(f.bind(f,87838))).mdTransitionAnimation:void 0});return function(me){return ie.apply(this,arguments)}}(),de=function(){var ie=(0,o.Z)(function*(se,me){yield ee(me,!0);const Ne=se(me.baseEl,me);ce(me.enteringEl,me.leavingEl);const _e=yield Te(Ne,me);return me.progressCallback&&me.progressCallback(void 0),_e&&oe(me.enteringEl,me.leavingEl),{hasCompleted:_e,animation:Ne}});return function(me,Ne){return ie.apply(this,arguments)}}(),K=function(){var ie=(0,o.Z)(function*(se){const me=se.enteringEl,Ne=se.leavingEl;return yield ee(se,!1),ce(me,Ne),oe(me,Ne),{hasCompleted:!0}});return function(me){return ie.apply(this,arguments)}}(),ee=function(){var ie=(0,o.Z)(function*(se,me){const _e=(void 0!==se.deepWait?se.deepWait:me)?[xe(se.enteringEl),xe(se.leavingEl)]:[ge(se.enteringEl),ge(se.leavingEl)];yield Promise.all(_e),yield De(se.viewIsReady,se.enteringEl)});return function(me,Ne){return ie.apply(this,arguments)}}(),De=function(){var ie=(0,o.Z)(function*(se,me){se&&(yield se(me))});return function(me,Ne){return ie.apply(this,arguments)}}(),Te=(ie,se)=>{const me=se.progressCallback,Ne=new Promise(_e=>{ie.onFinish(we=>_e(1===we))});return me?(ie.progressStart(!0),me(ie)):ie.play(),Ne},ce=(ie,se)=>{te(se,L),te(ie,h)},oe=(ie,se)=>{te(ie,m),te(se,v)},te=(ie,se)=>{if(ie){const me=new CustomEvent(se,{bubbles:!1,cancelable:!1});ie.dispatchEvent(me)}},ge=ie=>ie?new Promise(se=>(0,g.c)(ie,se)):Promise.resolve(),xe=function(){var ie=(0,o.Z)(function*(se){const me=se;if(me){if(null!=me.componentOnReady){if(null!=(yield me.componentOnReady()))return}else if(null!=me.__registerHost)return void(yield new Promise(_e=>(0,g.r)(_e)));yield Promise.all(Array.from(me.children).map(xe))}});return function(me){return ie.apply(this,arguments)}}(),he=(ie,se)=>{se?(ie.setAttribute("aria-hidden","true"),ie.classList.add("ion-page-hidden")):(ie.hidden=!1,ie.removeAttribute("aria-hidden"),ie.classList.remove("ion-page-hidden"))},Le=(ie,se,me)=>{void 0!==ie&&(ie.style.zIndex="back"===me?"99":"101"),void 0!==se&&(se.style.zIndex="100")},Ce=ie=>ie.classList.contains("ion-page")?ie:ie.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||ie},56369:(Ge,$,f)=>{f.d($,{m:()=>Y});var o=f(15861),a=f(47593),g=f(35730),h=f(35179),m=f(90181);const L=I=>(0,m.c)().duration(I?400:300),v=I=>{let D,j;const W=I.width+8,de=(0,m.c)(),K=(0,m.c)();I.isEndSide?(D=W+"px",j="0px"):(D=-W+"px",j="0px"),de.addElement(I.menuInnerEl).fromTo("transform",`translateX(${D})`,`translateX(${j})`);const De="ios"===(0,h.b)(I),Te=De?.2:.25;return K.addElement(I.backdropEl).fromTo("opacity",.01,Te),L(De).addAnimation([de,K])},b=I=>{let D,j;const W=(0,h.b)(I),de=I.width;I.isEndSide?(D=-de+"px",j=de+"px"):(D=de+"px",j=-de+"px");const K=(0,m.c)().addElement(I.menuInnerEl).fromTo("transform",`translateX(${j})`,"translateX(0px)"),ee=(0,m.c)().addElement(I.contentEl).fromTo("transform","translateX(0px)",`translateX(${D})`),De=(0,m.c)().addElement(I.backdropEl).fromTo("opacity",.01,.32);return L("ios"===W).addAnimation([K,ee,De])},k=I=>{const D=(0,h.b)(I),j=I.width*(I.isEndSide?-1:1)+"px",W=(0,m.c)().addElement(I.contentEl).fromTo("transform","translateX(0px)",`translateX(${j})`);return L("ios"===D).addAnimation(W)},Y=(()=>{const I=new Map,D=[],j=function(){var le=(0,o.Z)(function*(Ue){const ke=yield ce(Ue);return!!ke&&ke.open()});return function(ke){return le.apply(this,arguments)}}(),W=function(){var le=(0,o.Z)(function*(Ue){const ke=yield void 0!==Ue?ce(Ue):oe();return void 0!==ke&&ke.close()});return function(ke){return le.apply(this,arguments)}}(),de=function(){var le=(0,o.Z)(function*(Ue){const ke=yield ce(Ue);return!!ke&&ke.toggle()});return function(ke){return le.apply(this,arguments)}}(),K=function(){var le=(0,o.Z)(function*(Ue,ke){const ze=yield ce(ke);return ze&&(ze.disabled=!Ue),ze});return function(ke,ze){return le.apply(this,arguments)}}(),ee=function(){var le=(0,o.Z)(function*(Ue,ke){const ze=yield ce(ke);return ze&&(ze.swipeGesture=Ue),ze});return function(ke,ze){return le.apply(this,arguments)}}(),De=function(){var le=(0,o.Z)(function*(Ue){if(null!=Ue){const ke=yield ce(Ue);return void 0!==ke&&ke.isOpen()}return void 0!==(yield oe())});return function(ke){return le.apply(this,arguments)}}(),Te=function(){var le=(0,o.Z)(function*(Ue){const ke=yield ce(Ue);return!!ke&&!ke.disabled});return function(ke){return le.apply(this,arguments)}}(),ce=function(){var le=(0,o.Z)(function*(Ue){return yield Ee(),"start"===Ue||"end"===Ue?we(ye=>ye.side===Ue&&!ye.disabled)||we(ye=>ye.side===Ue):null!=Ue?we(ze=>ze.menuId===Ue):we(ze=>!ze.disabled)||(D.length>0?D[0].el:void 0)});return function(ke){return le.apply(this,arguments)}}(),oe=function(){var le=(0,o.Z)(function*(){return yield Ee(),me()});return function(){return le.apply(this,arguments)}}(),te=function(){var le=(0,o.Z)(function*(){return yield Ee(),Ne()});return function(){return le.apply(this,arguments)}}(),ge=function(){var le=(0,o.Z)(function*(){return yield Ee(),_e()});return function(){return le.apply(this,arguments)}}(),xe=(le,Ue)=>{I.set(le,Ue)},Ce=le=>{const Ue=le.side;D.filter(ke=>ke.side===Ue&&ke!==le).forEach(ke=>ke.disabled=!0)},ie=function(){var le=(0,o.Z)(function*(Ue,ke,ze){if(_e())return!1;if(ke){const ye=yield oe();ye&&Ue.el!==ye&&(yield ye.setOpen(!1,!1))}return Ue._setOpen(ke,ze)});return function(ke,ze,ye){return le.apply(this,arguments)}}(),me=()=>we(le=>le._isOpen),Ne=()=>D.map(le=>le.el),_e=()=>D.some(le=>le.isAnimating),we=le=>{const Ue=D.find(le);if(void 0!==Ue)return Ue.el},Ee=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(le=>new Promise(Ue=>(0,g.c)(le,Ue))));return xe("reveal",k),xe("push",b),xe("overlay",v),typeof document<"u"&&document.addEventListener("ionBackButton",le=>{const Ue=me();Ue&&le.detail.register(a.MENU_BACK_BUTTON_PRIORITY,()=>Ue.close())}),{registerAnimation:xe,get:ce,getMenus:te,getOpen:oe,isEnabled:Te,swipeGesture:ee,isAnimating:ge,isOpen:De,enable:K,toggle:de,close:W,open:j,_getOpenSync:me,_createAnimation:(le,Ue)=>{const ke=I.get(le);if(!ke)throw new Error("animation not registered");return ke(Ue)},_register:le=>{D.indexOf(le)<0&&(le.disabled||Ce(le),D.push(le))},_unregister:le=>{const Ue=D.indexOf(le);Ue>-1&&D.splice(Ue,1)},_setOpen:ie,_setActiveMenu:Ce}})()},13457:(Ge,$,f)=>{f.d($,{w:()=>o});const o=typeof window<"u"?window:void 0},81898:(Ge,$,f)=>{f.r($),f.d($,{GESTURE_CONTROLLER:()=>o.G,createGesture:()=>k});var o=f(34349);const a=(D,j,W,de)=>{const K=g(D)?{capture:!!de.capture,passive:!!de.passive}:!!de.capture;let ee,De;return D.__zone_symbol__addEventListener?(ee="__zone_symbol__addEventListener",De="__zone_symbol__removeEventListener"):(ee="addEventListener",De="removeEventListener"),D[ee](j,W,K),()=>{D[De](j,W,K)}},g=D=>{if(void 0===h)try{const j=Object.defineProperty({},"passive",{get:()=>{h=!0}});D.addEventListener("optsTest",()=>{},j)}catch{h=!1}return!!h};let h;const v=D=>D instanceof Document?D:D.ownerDocument,k=D=>{let j=!1,W=!1,de=!0,K=!1;const ee=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},D),De=ee.canStart,Te=ee.onWillStart,ce=ee.onStart,oe=ee.onEnd,te=ee.notCaptured,ge=ee.onMove,xe=ee.threshold,he=ee.passive,Le=ee.blurOnStart,Ce={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},ie=((D,j,W)=>{const de=W*(Math.PI/180),K="x"===D,ee=Math.cos(de),De=j*j;let Te=0,ce=0,oe=!1,te=0;return{start(ge,xe){Te=ge,ce=xe,te=0,oe=!0},detect(ge,xe){if(!oe)return!1;const he=ge-Te,Le=xe-ce,Ce=he*he+Le*Le;if(Ce<De)return!1;const ie=Math.sqrt(Ce),se=(K?he:Le)/ie;return te=se>ee?1:se<-ee?-1:0,oe=!1,!0},isGesture:()=>0!==te,getDirection:()=>te}})(ee.direction,ee.threshold,ee.maxAngle),se=o.G.createGesture({name:D.gestureName,priority:D.gesturePriority,disableScroll:D.disableScroll}),_e=()=>{!j||(K=!1,ge&&ge(Ce))},we=()=>!!se.capture()&&(j=!0,de=!1,Ce.startX=Ce.currentX,Ce.startY=Ce.currentY,Ce.startTime=Ce.currentTime,Te?Te(Ce).then(le):le(),!0),le=()=>{Le&&(()=>{if(typeof document<"u"){const je=document.activeElement;je?.blur&&je.blur()}})(),ce&&ce(Ce),de=!0},Ue=()=>{j=!1,W=!1,K=!1,de=!0,se.release()},ke=je=>{const Ze=j,_t=de;if(Ue(),_t){if(F(Ce,je),Ze)return void(oe&&oe(Ce));te&&te(Ce)}},ze=((D,j,W,de,K)=>{let ee,De,Te,ce,oe,te,ge,xe=0;const he=Ee=>{xe=Date.now()+2e3,j(Ee)&&(!De&&W&&(De=a(D,"touchmove",W,K)),Te||(Te=a(Ee.target,"touchend",Ce,K)),ce||(ce=a(Ee.target,"touchcancel",Ce,K)))},Le=Ee=>{xe>Date.now()||!j(Ee)||(!te&&W&&(te=a(v(D),"mousemove",W,K)),ge||(ge=a(v(D),"mouseup",ie,K)))},Ce=Ee=>{se(),de&&de(Ee)},ie=Ee=>{me(),de&&de(Ee)},se=()=>{De&&De(),Te&&Te(),ce&&ce(),De=Te=ce=void 0},me=()=>{te&&te(),ge&&ge(),te=ge=void 0},Ne=()=>{se(),me()},_e=(Ee=!0)=>{Ee?(ee||(ee=a(D,"touchstart",he,K)),oe||(oe=a(D,"mousedown",Le,K))):(ee&&ee(),oe&&oe(),ee=oe=void 0,Ne())};return{enable:_e,stop:Ne,destroy:()=>{_e(!1),de=W=j=void 0}}})(ee.el,je=>{const Ze=I(je);return!(W||!de||(Y(je,Ce),Ce.startX=Ce.currentX,Ce.startY=Ce.currentY,Ce.startTime=Ce.currentTime=Ze,Ce.velocityX=Ce.velocityY=Ce.deltaX=Ce.deltaY=0,Ce.event=je,De&&!1===De(Ce))||(se.release(),!se.start()))&&(W=!0,0===xe?we():(ie.start(Ce.startX,Ce.startY),!0))},je=>{j?!K&&de&&(K=!0,F(Ce,je),requestAnimationFrame(_e)):(F(Ce,je),ie.detect(Ce.currentX,Ce.currentY)&&(!ie.isGesture()||!we())&&ye())},ke,{capture:!1,passive:he}),ye=()=>{Ue(),ze.stop(),te&&te(Ce)};return{enable(je=!0){je||(j&&ke(void 0),Ue()),ze.enable(je)},destroy(){se.destroy(),ze.destroy()}}},F=(D,j)=>{if(!j)return;const W=D.currentX,de=D.currentY,K=D.currentTime;Y(j,D);const ee=D.currentX,De=D.currentY,ce=(D.currentTime=I(j))-K;if(ce>0&&ce<100){const te=(De-de)/ce;D.velocityX=(ee-W)/ce*.7+.3*D.velocityX,D.velocityY=.7*te+.3*D.velocityY}D.deltaX=ee-D.startX,D.deltaY=De-D.startY,D.event=j},Y=(D,j)=>{let W=0,de=0;if(D){const K=D.changedTouches;if(K&&K.length>0){const ee=K[0];W=ee.clientX,de=ee.clientY}else void 0!==D.pageX&&(W=D.pageX,de=D.pageY)}j.currentX=W,j.currentY=de},I=D=>D.timeStamp||Date.now()},71308:(Ge,$,f)=>{f.d($,{B:()=>Po,H:()=>gn,a:()=>ye,b:()=>xt,c:()=>tr,e:()=>Yo,f:()=>Zi,g:()=>je,h:()=>mn,i:()=>ki,j:()=>Ur,k:()=>rt,p:()=>de,r:()=>Wt,s:()=>j});var o=f(15861);let g,h,m,L=!1,v=!1,b=!1,k=!1,F=!1;const Y=typeof window<"u"?window:{},I=Y.document||{head:{}},D={$flags$:0,$resourcesUrl$:"",jmp:We=>We(),raf:We=>requestAnimationFrame(We),ael:(We,ot,Pt,zt)=>We.addEventListener(ot,Pt,zt),rel:(We,ot,Pt,zt)=>We.removeEventListener(ot,Pt,zt),ce:(We,ot)=>new CustomEvent(We,ot)},j=We=>{Object.assign(D,We)},de=We=>Promise.resolve(We),K=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),ee=(We,ot,Pt,zt)=>{Pt&&Pt.map(([Qt,qe,wt])=>{const Ht=Te(We,Qt),Kt=De(ot,wt),on=ce(Qt);D.ael(Ht,qe,Kt,on),(ot.$rmListeners$=ot.$rmListeners$||[]).push(()=>D.rel(Ht,qe,Kt,on))})},De=(We,ot)=>Pt=>{try{256&We.$flags$?We.$lazyInstance$[ot](Pt):(We.$queuedListeners$=We.$queuedListeners$||[]).push([ot,Pt])}catch(zt){Pn(zt)}},Te=(We,ot)=>4&ot?I:8&ot?Y:16&ot?I.body:We,ce=We=>0!=(2&We),he="s-id",Le="sty-id",se="http://www.w3.org/1999/xlink",_e=new WeakMap,we=(We,ot,Pt)=>{let zt=Fn.get(We);K&&Pt?(zt=zt||new CSSStyleSheet,"string"==typeof zt?zt=ot:zt.replaceSync(ot)):zt=ot,Fn.set(We,zt)},Ee=(We,ot,Pt,zt)=>{let Qt=Ue(ot,Pt);const qe=Fn.get(Qt);if(We=11===We.nodeType?We:I,qe)if("string"==typeof qe){let Ht,wt=_e.get(We=We.head||We);wt||_e.set(We,wt=new Set),wt.has(Qt)||(We.host&&(Ht=We.querySelector(`[${Le}="${Qt}"]`))?Ht.innerHTML=qe:(Ht=I.createElement("style"),Ht.innerHTML=qe,We.insertBefore(Ht,We.querySelector("link"))),wt&&wt.add(Qt))}else We.adoptedStyleSheets.includes(qe)||(We.adoptedStyleSheets=[...We.adoptedStyleSheets,qe]);return Qt},Ue=(We,ot)=>"sc-"+(ot&&32&We.$flags$?We.$tagName$+"-"+ot:We.$tagName$),ke=We=>We.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),ye=We=>Hr.push(We),je=We=>$t(We).$modeName$,Ze={},fn=We=>"object"==(We=typeof We)||"function"===We,mn=(We,ot,...Pt)=>{let zt=null,Qt=null,qe=null,wt=!1,Ht=!1;const Kt=[],on=Yn=>{for(let Hn=0;Hn<Yn.length;Hn++)zt=Yn[Hn],Array.isArray(zt)?on(zt):null!=zt&&"boolean"!=typeof zt&&((wt="function"!=typeof We&&!fn(zt))&&(zt=String(zt)),wt&&Ht?Kt[Kt.length-1].$text$+=zt:Kt.push(wt?xn(null,zt):zt),Ht=wt)};if(on(Pt),ot){ot.key&&(Qt=ot.key),ot.name&&(qe=ot.name);{const Yn=ot.className||ot.class;Yn&&(ot.class="object"!=typeof Yn?Yn:Object.keys(Yn).filter(Hn=>Yn[Hn]).join(" "))}}if("function"==typeof We)return We(null===ot?{}:ot,Kt,cn);const Mn=xn(We,null);return Mn.$attrs$=ot,Kt.length>0&&(Mn.$children$=Kt),Mn.$key$=Qt,Mn.$name$=qe,Mn},xn=(We,ot)=>({$flags$:0,$tag$:We,$text$:ot,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),gn={},cn={forEach:(We,ot)=>We.map(ft).forEach(ot),map:(We,ot)=>We.map(ft).map(ot).map(Tt)},ft=We=>({vattrs:We.$attrs$,vchildren:We.$children$,vkey:We.$key$,vname:We.$name$,vtag:We.$tag$,vtext:We.$text$}),Tt=We=>{if("function"==typeof We.vtag){const Pt=Object.assign({},We.vattrs);return We.vkey&&(Pt.key=We.vkey),We.vname&&(Pt.name=We.vname),mn(We.vtag,Pt,...We.vchildren||[])}const ot=xn(We.vtag,We.vtext);return ot.$attrs$=We.vattrs,ot.$children$=We.vchildren,ot.$key$=We.vkey,ot.$name$=We.vname,ot},en=(We,ot,Pt,zt,Qt,qe)=>{if(Pt!==zt){let wt=un(We,ot),Ht=ot.toLowerCase();if("class"===ot){const Kt=We.classList,on=or(Pt),Mn=or(zt);Kt.remove(...on.filter(Yn=>Yn&&!Mn.includes(Yn))),Kt.add(...Mn.filter(Yn=>Yn&&!on.includes(Yn)))}else if("style"===ot){for(const Kt in Pt)(!zt||null==zt[Kt])&&(Kt.includes("-")?We.style.removeProperty(Kt):We.style[Kt]="");for(const Kt in zt)(!Pt||zt[Kt]!==Pt[Kt])&&(Kt.includes("-")?We.style.setProperty(Kt,zt[Kt]):We.style[Kt]=zt[Kt])}else if("key"!==ot)if("ref"===ot)zt&&zt(We);else if(wt||"o"!==ot[0]||"n"!==ot[1]){const Kt=fn(zt);if((wt||Kt&&null!==zt)&&!Qt)try{if(We.tagName.includes("-"))We[ot]=zt;else{const Mn=zt??"";"list"===ot?wt=!1:(null==Pt||We[ot]!=Mn)&&(We[ot]=Mn)}}catch{}let on=!1;Ht!==(Ht=Ht.replace(/^xlink\:?/,""))&&(ot=Ht,on=!0),null==zt||!1===zt?(!1!==zt||""===We.getAttribute(ot))&&(on?We.removeAttributeNS(se,ot):We.removeAttribute(ot)):(!wt||4&qe||Qt)&&!Kt&&(zt=!0===zt?"":zt,on?We.setAttributeNS(se,ot,zt):We.setAttribute(ot,zt))}else ot="-"===ot[2]?ot.slice(3):un(Y,Ht)?Ht.slice(2):Ht[2]+ot.slice(3),Pt&&D.rel(We,ot,Pt,!1),zt&&D.ael(We,ot,zt,!1)}},Gt=/\s/,or=We=>We?We.split(Gt):[],Cr=(We,ot,Pt,zt)=>{const Qt=11===ot.$elm$.nodeType&&ot.$elm$.host?ot.$elm$.host:ot.$elm$,qe=We&&We.$attrs$||Ze,wt=ot.$attrs$||Ze;for(zt in qe)zt in wt||en(Qt,zt,qe[zt],void 0,Pt,ot.$flags$);for(zt in wt)en(Qt,zt,qe[zt],wt[zt],Pt,ot.$flags$)},wr=(We,ot,Pt,zt)=>{const Qt=ot.$children$[Pt];let wt,Ht,Kt,qe=0;if(L||(b=!0,"slot"===Qt.$tag$&&(g&&zt.classList.add(g+"-s"),Qt.$flags$|=Qt.$children$?2:1)),null!==Qt.$text$)wt=Qt.$elm$=I.createTextNode(Qt.$text$);else if(1&Qt.$flags$)wt=Qt.$elm$=I.createTextNode("");else{if(k||(k="svg"===Qt.$tag$),wt=Qt.$elm$=I.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&Qt.$flags$?"slot-fb":Qt.$tag$),k&&"foreignObject"===Qt.$tag$&&(k=!1),Cr(null,Qt,k),(We=>null!=We)(g)&&wt["s-si"]!==g&&wt.classList.add(wt["s-si"]=g),Qt.$children$)for(qe=0;qe<Qt.$children$.length;++qe)Ht=wr(We,Qt,qe,wt),Ht&&wt.appendChild(Ht);"svg"===Qt.$tag$?k=!1:"foreignObject"===wt.tagName&&(k=!0)}return wt["s-hn"]=m,3&Qt.$flags$&&(wt["s-sr"]=!0,wt["s-cr"]=h,wt["s-sn"]=Qt.$name$||"",Kt=We&&We.$children$&&We.$children$[Pt],Kt&&Kt.$tag$===Qt.$tag$&&We.$elm$&&dr(We.$elm$,!1)),wt},dr=(We,ot)=>{D.$flags$|=1;const Pt=We.childNodes;for(let zt=Pt.length-1;zt>=0;zt--){const Qt=Pt[zt];Qt["s-hn"]!==m&&Qt["s-ol"]&&(Qn(Qt).insertBefore(Qt,Gr(Qt)),Qt["s-ol"].remove(),Qt["s-ol"]=void 0,b=!0),ot&&dr(Qt,ot)}D.$flags$&=-2},er=(We,ot,Pt,zt,Qt,qe)=>{let Ht,wt=We["s-cr"]&&We["s-cr"].parentNode||We;for(wt.shadowRoot&&wt.tagName===m&&(wt=wt.shadowRoot);Qt<=qe;++Qt)zt[Qt]&&(Ht=wr(null,Pt,Qt,We),Ht&&(zt[Qt].$elm$=Ht,wt.insertBefore(Ht,Gr(ot))))},Jn=(We,ot,Pt,zt,Qt)=>{for(;ot<=Pt;++ot)(zt=We[ot])&&(Qt=zt.$elm$,ro(zt),v=!0,Qt["s-ol"]?Qt["s-ol"].remove():dr(Qt,!0),Qt.remove())},lo=(We,ot)=>We.$tag$===ot.$tag$&&("slot"===We.$tag$?We.$name$===ot.$name$:We.$key$===ot.$key$),Gr=We=>We&&We["s-ol"]||We,Qn=We=>(We["s-ol"]?We["s-ol"]:We).parentNode,Pr=(We,ot)=>{const Pt=ot.$elm$=We.$elm$,zt=We.$children$,Qt=ot.$children$,qe=ot.$tag$,wt=ot.$text$;let Ht;null===wt?(k="svg"===qe||"foreignObject"!==qe&&k,"slot"===qe||Cr(We,ot,k),null!==zt&&null!==Qt?((We,ot,Pt,zt)=>{let Co,bo,Qt=0,qe=0,wt=0,Ht=0,Kt=ot.length-1,on=ot[0],Mn=ot[Kt],Yn=zt.length-1,Hn=zt[0],Sr=zt[Yn];for(;Qt<=Kt&&qe<=Yn;)if(null==on)on=ot[++Qt];else if(null==Mn)Mn=ot[--Kt];else if(null==Hn)Hn=zt[++qe];else if(null==Sr)Sr=zt[--Yn];else if(lo(on,Hn))Pr(on,Hn),on=ot[++Qt],Hn=zt[++qe];else if(lo(Mn,Sr))Pr(Mn,Sr),Mn=ot[--Kt],Sr=zt[--Yn];else if(lo(on,Sr))("slot"===on.$tag$||"slot"===Sr.$tag$)&&dr(on.$elm$.parentNode,!1),Pr(on,Sr),We.insertBefore(on.$elm$,Mn.$elm$.nextSibling),on=ot[++Qt],Sr=zt[--Yn];else if(lo(Mn,Hn))("slot"===on.$tag$||"slot"===Sr.$tag$)&&dr(Mn.$elm$.parentNode,!1),Pr(Mn,Hn),We.insertBefore(Mn.$elm$,on.$elm$),Mn=ot[--Kt],Hn=zt[++qe];else{for(wt=-1,Ht=Qt;Ht<=Kt;++Ht)if(ot[Ht]&&null!==ot[Ht].$key$&&ot[Ht].$key$===Hn.$key$){wt=Ht;break}wt>=0?(bo=ot[wt],bo.$tag$!==Hn.$tag$?Co=wr(ot&&ot[qe],Pt,wt,We):(Pr(bo,Hn),ot[wt]=void 0,Co=bo.$elm$),Hn=zt[++qe]):(Co=wr(ot&&ot[qe],Pt,qe,We),Hn=zt[++qe]),Co&&Qn(on.$elm$).insertBefore(Co,Gr(on.$elm$))}Qt>Kt?er(We,null==zt[Yn+1]?null:zt[Yn+1].$elm$,Pt,zt,qe,Yn):qe>Yn&&Jn(ot,Qt,Kt)})(Pt,zt,ot,Qt):null!==Qt?(null!==We.$text$&&(Pt.textContent=""),er(Pt,null,ot,Qt,0,Qt.length-1)):null!==zt&&Jn(zt,0,zt.length-1),k&&"svg"===qe&&(k=!1)):(Ht=Pt["s-cr"])?Ht.parentNode.textContent=wt:We.$text$!==wt&&(Pt.data=wt)},jr=We=>{const ot=We.childNodes;let Pt,zt,Qt,qe,wt,Ht;for(zt=0,Qt=ot.length;zt<Qt;zt++)if(Pt=ot[zt],1===Pt.nodeType){if(Pt["s-sr"])for(wt=Pt["s-sn"],Pt.hidden=!1,qe=0;qe<Qt;qe++)if(Ht=ot[qe].nodeType,ot[qe]["s-hn"]!==Pt["s-hn"]||""!==wt){if(1===Ht&&wt===ot[qe].getAttribute("slot")){Pt.hidden=!0;break}}else if(1===Ht||3===Ht&&""!==ot[qe].textContent.trim()){Pt.hidden=!0;break}jr(Pt)}},Nr=[],go=We=>{let ot,Pt,zt,Qt,qe,wt,Ht=0;const Kt=We.childNodes,on=Kt.length;for(;Ht<on;Ht++){if(ot=Kt[Ht],ot["s-sr"]&&(Pt=ot["s-cr"])&&Pt.parentNode)for(zt=Pt.parentNode.childNodes,Qt=ot["s-sn"],wt=zt.length-1;wt>=0;wt--)Pt=zt[wt],!Pt["s-cn"]&&!Pt["s-nr"]&&Pt["s-hn"]!==ot["s-hn"]&&(Zr(Pt,Qt)?(qe=Nr.find(Mn=>Mn.$nodeToRelocate$===Pt),v=!0,Pt["s-sn"]=Pt["s-sn"]||Qt,qe?qe.$slotRefNode$=ot:Nr.push({$slotRefNode$:ot,$nodeToRelocate$:Pt}),Pt["s-sr"]&&Nr.map(Mn=>{Zr(Mn.$nodeToRelocate$,Pt["s-sn"])&&(qe=Nr.find(Yn=>Yn.$nodeToRelocate$===Pt),qe&&!Mn.$slotRefNode$&&(Mn.$slotRefNode$=qe.$slotRefNode$))})):Nr.some(Mn=>Mn.$nodeToRelocate$===Pt)||Nr.push({$nodeToRelocate$:Pt}));1===ot.nodeType&&go(ot)}},Zr=(We,ot)=>1===We.nodeType?null===We.getAttribute("slot")&&""===ot||We.getAttribute("slot")===ot:We["s-sn"]===ot||""===ot,ro=We=>{We.$attrs$&&We.$attrs$.ref&&We.$attrs$.ref(null),We.$children$&&We.$children$.map(ro)},ki=We=>$t(We).$hostElement$,Yo=(We,ot,Pt)=>{const zt=ki(We);return{emit:Qt=>Ko(zt,ot,{bubbles:!!(4&Pt),composed:!!(2&Pt),cancelable:!!(1&Pt),detail:Qt})}},Ko=(We,ot,Pt)=>{const zt=D.ce(ot,Pt);return We.dispatchEvent(zt),zt},wo=(We,ot)=>{ot&&!We.$onRenderResolve$&&ot["s-p"]&&ot["s-p"].push(new Promise(Pt=>We.$onRenderResolve$=Pt))},$r=(We,ot)=>{if(We.$flags$|=16,!(4&We.$flags$))return wo(We,We.$ancestorComponent$),tr(()=>hi(We,ot));We.$flags$|=512},hi=(We,ot)=>{const zt=We.$lazyInstance$;let Qt;return ot&&(We.$flags$|=256,We.$queuedListeners$&&(We.$queuedListeners$.map(([qe,wt])=>br(zt,qe,wt)),We.$queuedListeners$=null),Qt=br(zt,"componentWillLoad")),Qt=Zn(Qt,()=>br(zt,"componentWillRender")),Zn(Qt,()=>mi(We,zt,ot))},mi=function(){var We=(0,o.Z)(function*(ot,Pt,zt){const Qt=ot.$hostElement$,wt=Qt["s-rc"];zt&&(We=>{const ot=We.$cmpMeta$,Pt=We.$hostElement$,zt=ot.$flags$,qe=Ee(Pt.shadowRoot?Pt.shadowRoot:Pt.getRootNode(),ot,We.$modeName$);10&zt&&(Pt["s-sc"]=qe,Pt.classList.add(qe+"-h"),2&zt&&Pt.classList.add(qe+"-s"))})(ot);vn(ot,Pt),wt&&(wt.map(Kt=>Kt()),Qt["s-rc"]=void 0);{const Kt=Qt["s-p"],on=()=>Eo(ot);0===Kt.length?on():(Promise.all(Kt).then(on),ot.$flags$|=4,Kt.length=0)}});return function(Pt,zt,Qt){return We.apply(this,arguments)}}(),vn=(We,ot,Pt)=>{try{ot=ot.render&&ot.render(),We.$flags$&=-17,We.$flags$|=2,((We,ot)=>{const Pt=We.$hostElement$,zt=We.$cmpMeta$,Qt=We.$vnode$||xn(null,null),qe=(We=>We&&We.$tag$===gn)(ot)?ot:mn(null,null,ot);if(m=Pt.tagName,zt.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},zt.$attrsToReflect$.map(([wt,Ht])=>qe.$attrs$[Ht]=Pt[wt])),qe.$tag$=null,qe.$flags$|=4,We.$vnode$=qe,qe.$elm$=Qt.$elm$=Pt.shadowRoot||Pt,g=Pt["s-sc"],h=Pt["s-cr"],L=0!=(1&zt.$flags$),v=!1,Pr(Qt,qe),D.$flags$|=1,b){go(qe.$elm$);let wt,Ht,Kt,on,Mn,Yn,Hn=0;for(;Hn<Nr.length;Hn++)wt=Nr[Hn],Ht=wt.$nodeToRelocate$,Ht["s-ol"]||(Kt=I.createTextNode(""),Kt["s-nr"]=Ht,Ht.parentNode.insertBefore(Ht["s-ol"]=Kt,Ht));for(Hn=0;Hn<Nr.length;Hn++)if(wt=Nr[Hn],Ht=wt.$nodeToRelocate$,wt.$slotRefNode$){for(on=wt.$slotRefNode$.parentNode,Mn=wt.$slotRefNode$.nextSibling,Kt=Ht["s-ol"];Kt=Kt.previousSibling;)if(Yn=Kt["s-nr"],Yn&&Yn["s-sn"]===Ht["s-sn"]&&on===Yn.parentNode&&(Yn=Yn.nextSibling,!Yn||!Yn["s-nr"])){Mn=Yn;break}(!Mn&&on!==Ht.parentNode||Ht.nextSibling!==Mn)&&Ht!==Mn&&(!Ht["s-hn"]&&Ht["s-ol"]&&(Ht["s-hn"]=Ht["s-ol"].parentNode.nodeName),on.insertBefore(Ht,Mn))}else 1===Ht.nodeType&&(Ht.hidden=!0)}v&&jr(qe.$elm$),D.$flags$&=-2,Nr.length=0})(We,ot)}catch(zt){Pn(zt,We.$hostElement$)}return null},Eo=We=>{const Pt=We.$hostElement$,Qt=We.$lazyInstance$,qe=We.$ancestorComponent$;br(Qt,"componentDidRender"),64&We.$flags$?br(Qt,"componentDidUpdate"):(We.$flags$|=64,uo(Pt),br(Qt,"componentDidLoad"),We.$onReadyResolve$(Pt),qe||vo()),We.$onInstanceResolve$(Pt),We.$onRenderResolve$&&(We.$onRenderResolve$(),We.$onRenderResolve$=void 0),512&We.$flags$&&bi(()=>$r(We,!1)),We.$flags$&=-517},Ur=We=>{{const ot=$t(We),Pt=ot.$hostElement$.isConnected;return Pt&&2==(18&ot.$flags$)&&$r(ot,!1),Pt}},vo=We=>{uo(I.documentElement),bi(()=>Ko(Y,"appload",{detail:{namespace:"ionic"}}))},br=(We,ot,Pt)=>{if(We&&We[ot])try{return We[ot](Pt)}catch(zt){Pn(zt)}},Zn=(We,ot)=>We&&We.then?We.then(ot):ot(),uo=We=>We.classList.add("hydrated"),Vo=(We,ot,Pt,zt,Qt,qe,wt)=>{let Ht,Kt,on,Mn;if(1===qe.nodeType){for(Ht=qe.getAttribute("c-id"),Ht&&(Kt=Ht.split("."),(Kt[0]===wt||"0"===Kt[0])&&(on={$flags$:0,$hostId$:Kt[0],$nodeId$:Kt[1],$depth$:Kt[2],$index$:Kt[3],$tag$:qe.tagName.toLowerCase(),$elm$:qe,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ot.push(on),qe.removeAttribute("c-id"),We.$children$||(We.$children$=[]),We.$children$[on.$index$]=on,We=on,zt&&"0"===on.$depth$&&(zt[on.$index$]=on.$elm$))),Mn=qe.childNodes.length-1;Mn>=0;Mn--)Vo(We,ot,Pt,zt,Qt,qe.childNodes[Mn],wt);if(qe.shadowRoot)for(Mn=qe.shadowRoot.childNodes.length-1;Mn>=0;Mn--)Vo(We,ot,Pt,zt,Qt,qe.shadowRoot.childNodes[Mn],wt)}else if(8===qe.nodeType)Kt=qe.nodeValue.split("."),(Kt[1]===wt||"0"===Kt[1])&&(Ht=Kt[0],on={$flags$:0,$hostId$:Kt[1],$nodeId$:Kt[2],$depth$:Kt[3],$index$:Kt[4],$elm$:qe,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===Ht?(on.$elm$=qe.nextSibling,on.$elm$&&3===on.$elm$.nodeType&&(on.$text$=on.$elm$.textContent,ot.push(on),qe.remove(),We.$children$||(We.$children$=[]),We.$children$[on.$index$]=on,zt&&"0"===on.$depth$&&(zt[on.$index$]=on.$elm$))):on.$hostId$===wt&&("s"===Ht?(on.$tag$="slot",qe["s-sn"]=Kt[5]?on.$name$=Kt[5]:"",qe["s-sr"]=!0,zt&&(on.$elm$=I.createElement(on.$tag$),on.$name$&&on.$elm$.setAttribute("name",on.$name$),qe.parentNode.insertBefore(on.$elm$,qe),qe.remove(),"0"===on.$depth$&&(zt[on.$index$]=on.$elm$)),Pt.push(on),We.$children$||(We.$children$=[]),We.$children$[on.$index$]=on):"r"===Ht&&(zt?qe.remove():(Qt["s-cr"]=qe,qe["s-cn"]=!0))));else if(We&&"style"===We.$tag$){const Yn=xn(null,qe.textContent);Yn.$elm$=qe,Yn.$index$="0",We.$children$=[Yn]}},Fo=(We,ot)=>{if(1===We.nodeType){let Pt=0;for(;Pt<We.childNodes.length;Pt++)Fo(We.childNodes[Pt],ot);if(We.shadowRoot)for(Pt=0;Pt<We.shadowRoot.childNodes.length;Pt++)Fo(We.shadowRoot.childNodes[Pt],ot)}else if(8===We.nodeType){const Pt=We.nodeValue.split(".");"o"===Pt[0]&&(ot.set(Pt[1]+"."+Pt[2],We),We.nodeValue="",We["s-en"]=Pt[3])}},ut=(We,ot,Pt)=>{if(ot.$members$){We.watchers&&(ot.$watchers$=We.watchers);const zt=Object.entries(ot.$members$),Qt=We.prototype;if(zt.map(([qe,[wt]])=>{31&wt||2&Pt&&32&wt?Object.defineProperty(Qt,qe,{get(){return((We,ot)=>$t(this).$instanceValues$.get(ot))(0,qe)},set(Ht){((We,ot,Pt,zt)=>{const Qt=$t(We),qe=Qt.$hostElement$,wt=Qt.$instanceValues$.get(ot),Ht=Qt.$flags$,Kt=Qt.$lazyInstance$;Pt=((We,ot)=>null==We||fn(We)?We:4&ot?"false"!==We&&(""===We||!!We):2&ot?parseFloat(We):1&ot?String(We):We)(Pt,zt.$members$[ot][0]);const on=Number.isNaN(wt)&&Number.isNaN(Pt);if((!(8&Ht)||void 0===wt)&&Pt!==wt&&!on&&(Qt.$instanceValues$.set(ot,Pt),Kt)){if(zt.$watchers$&&128&Ht){const Yn=zt.$watchers$[ot];Yn&&Yn.map(Hn=>{try{Kt[Hn](Pt,wt,ot)}catch(Sr){Pn(Sr,qe)}})}2==(18&Ht)&&$r(Qt,!1)}})(this,qe,Ht,ot)},configurable:!0,enumerable:!0}):1&Pt&&64&wt&&Object.defineProperty(Qt,qe,{value(...Ht){const Kt=$t(this);return Kt.$onInstancePromise$.then(()=>Kt.$lazyInstance$[qe](...Ht))}})}),1&Pt){const qe=new Map;Qt.attributeChangedCallback=function(wt,Ht,Kt){D.jmp(()=>{const on=qe.get(wt);if(this.hasOwnProperty(on))Kt=this[on],delete this[on];else if(Qt.hasOwnProperty(on)&&"number"==typeof this[on]&&this[on]==Kt)return;this[on]=(null!==Kt||"boolean"!=typeof this[on])&&Kt})},We.observedAttributes=zt.filter(([wt,Ht])=>15&Ht[0]).map(([wt,Ht])=>{const Kt=Ht[1]||wt;return qe.set(Kt,wt),512&Ht[0]&&ot.$attrsToReflect$.push([wt,Kt]),Kt})}}return We},nt=function(){var We=(0,o.Z)(function*(ot,Pt,zt,Qt,qe){if(0==(32&Pt.$flags$)){{if(Pt.$flags$|=32,(qe=In(zt)).then){const on=()=>{};qe=yield qe,on()}qe.isProxied||(zt.$watchers$=qe.watchers,ut(qe,zt,2),qe.isProxied=!0);const Kt=()=>{};Pt.$flags$|=8;try{new qe(Pt)}catch(on){Pn(on)}Pt.$flags$&=-9,Pt.$flags$|=128,Kt(),Ot(Pt.$lazyInstance$)}if(qe.style){let Kt=qe.style;"string"!=typeof Kt&&(Kt=Kt[Pt.$modeName$=(We=>Hr.map(ot=>ot(We)).find(ot=>!!ot))(ot)]);const on=Ue(zt,Pt.$modeName$);if(!Fn.has(on)){const Mn=()=>{};we(on,Kt,!!(1&zt.$flags$)),Mn()}}}const wt=Pt.$ancestorComponent$,Ht=()=>$r(Pt,!0);wt&&wt["s-rc"]?wt["s-rc"].push(Ht):Ht()});return function(Pt,zt,Qt,qe,wt){return We.apply(this,arguments)}}(),Ot=We=>{br(We,"connectedCallback")},jn=We=>{const ot=We["s-cr"]=I.createComment("");ot["s-cn"]=!0,We.insertBefore(ot,We.firstChild)},xt=(We,ot={})=>{const zt=[],Qt=ot.exclude||[],qe=Y.customElements,wt=I.head,Ht=wt.querySelector("meta[charset]"),Kt=I.createElement("style"),on=[],Mn=I.querySelectorAll(`[${Le}]`);let Yn,Hn=!0,Sr=0;for(Object.assign(D,ot),D.$resourcesUrl$=new URL(ot.resourcesUrl||"./",I.baseURI).href,D.$flags$|=2;Sr<Mn.length;Sr++)we(Mn[Sr].getAttribute(Le),ke(Mn[Sr].innerHTML),!0);We.map(Co=>{Co[1].map(bo=>{const Jr={$flags$:bo[0],$tagName$:bo[1],$members$:bo[2],$listeners$:bo[3]};Jr.$members$=bo[2],Jr.$listeners$=bo[3],Jr.$attrsToReflect$=[],Jr.$watchers$={};const gi=Jr.$tagName$,Ri=class extends HTMLElement{constructor(Qr){super(Qr),dn(Qr=this,Jr),1&Jr.$flags$&&Qr.attachShadow({mode:"open",delegatesFocus:!!(16&Jr.$flags$)})}connectedCallback(){Yn&&(clearTimeout(Yn),Yn=null),Hn?on.push(this):D.jmp(()=>(We=>{if(0==(1&D.$flags$)){const ot=$t(We),Pt=ot.$cmpMeta$,zt=()=>{};if(1&ot.$flags$)ee(We,ot,Pt.$listeners$),Ot(ot.$lazyInstance$);else{let Qt;if(ot.$flags$|=1,Qt=We.getAttribute(he),Qt){if(1&Pt.$flags$){const qe=Ee(We.shadowRoot,Pt,We.getAttribute("s-mode"));We.classList.remove(qe+"-h",qe+"-s")}((We,ot,Pt,zt)=>{const qe=We.shadowRoot,wt=[],Kt=qe?[]:null,on=zt.$vnode$=xn(ot,null);D.$orgLocNodes$||Fo(I.body,D.$orgLocNodes$=new Map),We[he]=Pt,We.removeAttribute(he),Vo(on,wt,[],Kt,We,We,Pt),wt.map(Mn=>{const Yn=Mn.$hostId$+"."+Mn.$nodeId$,Hn=D.$orgLocNodes$.get(Yn),Sr=Mn.$elm$;Hn&&""===Hn["s-en"]&&Hn.parentNode.insertBefore(Sr,Hn.nextSibling),qe||(Sr["s-hn"]=ot,Hn&&(Sr["s-ol"]=Hn,Sr["s-ol"]["s-nr"]=Sr)),D.$orgLocNodes$.delete(Yn)}),qe&&Kt.map(Mn=>{Mn&&qe.appendChild(Mn)})})(We,Pt.$tagName$,Qt,ot)}Qt||12&Pt.$flags$&&jn(We);{let qe=We;for(;qe=qe.parentNode||qe.host;)if(1===qe.nodeType&&qe.hasAttribute("s-id")&&qe["s-p"]||qe["s-p"]){wo(ot,ot.$ancestorComponent$=qe);break}}Pt.$members$&&Object.entries(Pt.$members$).map(([qe,[wt]])=>{if(31&wt&&We.hasOwnProperty(qe)){const Ht=We[qe];delete We[qe],We[qe]=Ht}}),bi(()=>nt(We,ot,Pt))}zt()}})(this))}disconnectedCallback(){D.jmp(()=>(We=>{if(0==(1&D.$flags$)){const ot=$t(this),Pt=ot.$lazyInstance$;ot.$rmListeners$&&(ot.$rmListeners$.map(zt=>zt()),ot.$rmListeners$=void 0),br(Pt,"disconnectedCallback")}})())}componentOnReady(){return $t(this).$onReadyPromise$}};Jr.$lazyBundleId$=Co[0],!Qt.includes(gi)&&!qe.get(gi)&&(zt.push(gi),qe.define(gi,ut(Ri,Jr,1)))})}),Kt.innerHTML=zt+"{visibility:hidden}.hydrated{visibility:inherit}",Kt.setAttribute("data-styles",""),wt.insertBefore(Kt,Ht?Ht.nextSibling:wt.firstChild),Hn=!1,on.length?on.map(Co=>Co.connectedCallback()):D.jmp(()=>Yn=setTimeout(vo,30))},rt=We=>{const ot=new URL(We,D.$resourcesUrl$);return ot.origin!==Y.location.origin?ot.href:ot.pathname},Yt=new WeakMap,$t=We=>Yt.get(We),Wt=(We,ot)=>Yt.set(ot.$lazyInstance$=We,ot),dn=(We,ot)=>{const Pt={$flags$:0,$hostElement$:We,$cmpMeta$:ot,$instanceValues$:new Map};return Pt.$onInstancePromise$=new Promise(zt=>Pt.$onInstanceResolve$=zt),Pt.$onReadyPromise$=new Promise(zt=>Pt.$onReadyResolve$=zt),We["s-p"]=[],We["s-rc"]=[],ee(We,Pt,ot.$listeners$),Yt.set(We,Pt)},un=(We,ot)=>ot in We,Pn=(We,ot)=>(0,console.error)(We,ot),On=new Map,In=(We,ot,Pt)=>{const zt=We.$tagName$.replace(/-/g,"_"),Qt=We.$lazyBundleId$,qe=On.get(Qt);return qe?qe[zt]:f(50863)(`./${Qt}.entry.js`).then(wt=>(On.set(Qt,wt),wt[zt]),Pn)},Fn=new Map,Hr=[],xo=[],yo=[],Ho=(We,ot)=>Pt=>{We.push(Pt),F||(F=!0,ot&&4&D.$flags$?bi(Mo):D.raf(Mo))},io=We=>{for(let ot=0;ot<We.length;ot++)try{We[ot](performance.now())}catch(Pt){Pn(Pt)}We.length=0},Mo=()=>{io(xo),io(yo),(F=xo.length>0)&&D.raf(Mo)},bi=We=>de().then(We),Zi=Ho(xo,!1),tr=Ho(yo,!0),Po={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},35179:(Ge,$,f)=>{f.d($,{a:()=>Y,b:()=>_e,c:()=>g,g:()=>F,i:()=>we});var o=f(71308);class a{constructor(){this.m=new Map}reset(le){this.m=new Map(Object.entries(le))}get(le,Ue){const ke=this.m.get(le);return void 0!==ke?ke:Ue}getBoolean(le,Ue=!1){const ke=this.m.get(le);return void 0===ke?Ue:"string"==typeof ke?"true"===ke:!!ke}getNumber(le,Ue){const ke=parseFloat(this.m.get(le));return isNaN(ke)?void 0!==Ue?Ue:NaN:ke}set(le,Ue){this.m.set(le,Ue)}}const g=new a,b="ionic:",k="ionic-persist-config",F=Ee=>I(Ee),Y=(Ee,le)=>("string"==typeof Ee&&(le=Ee,Ee=void 0),F(Ee).includes(le)),I=(Ee=window)=>{if(typeof Ee>"u")return[];Ee.Ionic=Ee.Ionic||{};let le=Ee.Ionic.platforms;return null==le&&(le=Ee.Ionic.platforms=D(Ee),le.forEach(Ue=>Ee.document.documentElement.classList.add(`plt-${Ue}`))),le},D=Ee=>{const le=g.get("platform");return Object.keys(me).filter(Ue=>{const ke=le?.[Ue];return"function"==typeof ke?ke(Ee):me[Ue](Ee)})},W=Ee=>!!(ie(Ee,/iPad/i)||ie(Ee,/Macintosh/i)&&oe(Ee)),ee=Ee=>ie(Ee,/android|sink/i),oe=Ee=>se(Ee,"(any-pointer:coarse)"),ge=Ee=>xe(Ee)||he(Ee),xe=Ee=>!!(Ee.cordova||Ee.phonegap||Ee.PhoneGap),he=Ee=>!!Ee.Capacitor?.isNative,ie=(Ee,le)=>le.test(Ee.navigator.userAgent),se=(Ee,le)=>{var Ue;return null===(Ue=Ee.matchMedia)||void 0===Ue?void 0:Ue.call(Ee,le).matches},me={ipad:W,iphone:Ee=>ie(Ee,/iPhone/i),ios:Ee=>ie(Ee,/iPhone|iPod/i)||W(Ee),android:ee,phablet:Ee=>{const le=Ee.innerWidth,Ue=Ee.innerHeight,ke=Math.min(le,Ue),ze=Math.max(le,Ue);return ke>390&&ke<520&&ze>620&&ze<800},tablet:Ee=>{const le=Ee.innerWidth,Ue=Ee.innerHeight,ke=Math.min(le,Ue),ze=Math.max(le,Ue);return W(Ee)||(Ee=>ee(Ee)&&!ie(Ee,/mobile/i))(Ee)||ke>460&&ke<820&&ze>780&&ze<1400},cordova:xe,capacitor:he,electron:Ee=>ie(Ee,/electron/i),pwa:Ee=>{var le;return!(!(null===(le=Ee.matchMedia)||void 0===le?void 0:le.call(Ee,"(display-mode: standalone)").matches)&&!Ee.navigator.standalone)},mobile:oe,mobileweb:Ee=>oe(Ee)&&!ge(Ee),desktop:Ee=>!oe(Ee),hybrid:ge};let Ne;const _e=Ee=>Ee&&(0,o.g)(Ee)||Ne,we=(Ee={})=>{if(typeof window>"u")return;const le=window.document,Ue=window,ke=Ue.Ionic=Ue.Ionic||{},ze={};Ee._ael&&(ze.ael=Ee._ael),Ee._rel&&(ze.rel=Ee._rel),Ee._ce&&(ze.ce=Ee._ce),(0,o.s)(ze);const ye=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Ee=>{try{const le=Ee.sessionStorage.getItem(k);return null!==le?JSON.parse(le):{}}catch{return{}}})(Ue)),{persistConfig:!1}),ke.config),(Ee=>{const le={};return Ee.location.search.slice(1).split("&").map(Ue=>Ue.split("=")).map(([Ue,ke])=>[decodeURIComponent(Ue),decodeURIComponent(ke)]).filter(([Ue])=>((Ee,le)=>Ee.substr(0,le.length)===le)(Ue,b)).map(([Ue,ke])=>[Ue.slice(b.length),ke]).forEach(([Ue,ke])=>{le[Ue]=ke}),le})(Ue)),Ee);g.reset(ye),g.getBoolean("persistConfig")&&((Ee,le)=>{try{Ee.sessionStorage.setItem(k,JSON.stringify(le))}catch{return}})(Ue,ye),I(Ue),ke.config=g,ke.mode=Ne=g.get("mode",le.documentElement.getAttribute("mode")||(Y(Ue,"ios")?"ios":"md")),g.set("mode",Ne),le.documentElement.setAttribute("mode",Ne),le.documentElement.classList.add(Ne),g.getBoolean("_testing")&&g.set("animated",!1);const je=_t=>{var At;return null===(At=_t.tagName)||void 0===At?void 0:At.startsWith("ION-")},Ze=_t=>["ios","md"].includes(_t);(0,o.a)(_t=>{for(;_t;){const At=_t.mode||_t.getAttribute("mode");if(At){if(Ze(At))return At;je(_t)&&console.warn('Invalid ionic mode: "'+At+'", expected: "ios" or "md"')}_t=_t.parentElement}return Ne})}},66439:(Ge,$,f)=>{f.r($),f.d($,{iosTransitionAnimation:()=>D,shadow:()=>v});var o=f(90181),a=f(1843);f(13457),f(71308);const L=j=>document.querySelector(`${j}.ion-cloned-element`),v=j=>j.shadowRoot||j,b=j=>{const W="ION-TABS"===j.tagName?j:j.querySelector("ion-tabs"),de="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=W){const K=W.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=K?K.querySelector(de):null}return j.querySelector(de)},k=(j,W)=>{const de="ION-TABS"===j.tagName?j:j.querySelector("ion-tabs");let K=[];if(null!=de){const ee=de.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=ee&&(K=ee.querySelectorAll("ion-buttons"))}else K=j.querySelectorAll("ion-buttons");for(const ee of K){const De=ee.closest("ion-header"),Te=De&&!De.classList.contains("header-collapse-condense-inactive"),ce=ee.querySelector("ion-back-button"),oe=ee.classList.contains("buttons-collapse"),te="start"===ee.slot||""===ee.slot;if(null!==ce&&te&&(oe&&Te&&W||!oe))return ce}return null},Y=(j,W,de,K,ee,De)=>{const Te=W?`calc(100% - ${De.right+4}px)`:De.left-4+"px",ce=W?"7px":"-7px",oe=W?"-4px":"4px",te=W?"-4px":"4px",ge=W?"right":"left",xe=W?"left":"right",Ce=de?[{offset:0,opacity:1,transform:`translate3d(${oe}, ${De.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${ce}, ${ee.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${ce}, ${ee.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${oe}, ${De.top-46}px, 0) scale(1)`}],me=de?[{offset:0,opacity:1,transform:`translate3d(${te}, ${De.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${te}, ${De.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${te}, ${De.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${te}, ${De.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${te}, ${De.top-46}px, 0) scale(1)`}],Ne=(0,o.c)(),_e=(0,o.c)(),we=L("ion-back-button"),Ee=v(we).querySelector(".button-text"),le=v(we).querySelector("ion-icon");we.text=K.text,we.mode=K.mode,we.icon=K.icon,we.color=K.color,we.disabled=K.disabled,we.style.setProperty("display","block"),we.style.setProperty("position","fixed"),_e.addElement(le),Ne.addElement(Ee),Ne.beforeStyles({"transform-origin":`${ge} center`}).beforeAddWrite(()=>{K.style.setProperty("display","none"),we.style.setProperty(ge,Te)}).afterAddWrite(()=>{K.style.setProperty("display",""),we.style.setProperty("display","none"),we.style.removeProperty(ge)}).keyframes(Ce),_e.beforeStyles({"transform-origin":`${xe} center`}).keyframes(me),j.addAnimation([Ne,_e])},I=(j,W,de,K,ee,De)=>{const Te=W?`calc(100% - ${ee.right}px)`:`${ee.left}px`,ce=W?"-18px":"18px",oe=W?"right":"left",xe=de?[{offset:0,opacity:0,transform:`translate3d(${ce}, ${De.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${ee.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${ee.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${ce}, ${De.top-4}px, 0) scale(0.5)`}],he=L("ion-title"),Le=(0,o.c)();he.innerText=K.innerText,he.size=K.size,he.color=K.color,Le.addElement(he),Le.beforeStyles({"transform-origin":`${oe} center`,height:"46px",display:"",position:"relative",[oe]:Te}).beforeAddWrite(()=>{K.style.setProperty("display","none")}).afterAddWrite(()=>{K.style.setProperty("display",""),he.style.setProperty("display","none")}).keyframes(xe),j.addAnimation(Le)},D=(j,W)=>{var de;try{const K="cubic-bezier(0.32,0.72,0,1)",ee="opacity",De="transform",Te="0%",oe="rtl"===j.ownerDocument.dir,te=oe?"-99.5%":"99.5%",ge=oe?"33%":"-33%",xe=W.enteringEl,he=W.leavingEl,Le="back"===W.direction,Ce=xe.querySelector(":scope > ion-content"),ie=xe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),se=xe.querySelectorAll(":scope > ion-header > ion-toolbar"),me=(0,o.c)(),Ne=(0,o.c)();if(me.addElement(xe).duration((null!==(de=W.duration)&&void 0!==de?de:0)||540).easing(W.easing||K).fill("both").beforeRemoveClass("ion-page-invisible"),he&&null!=j){const le=(0,o.c)();le.addElement(j),me.addAnimation(le)}if(Ce||0!==se.length||0!==ie.length?(Ne.addElement(Ce),Ne.addElement(ie)):Ne.addElement(xe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),me.addAnimation(Ne),Le?Ne.beforeClearStyles([ee]).fromTo("transform",`translateX(${ge})`,`translateX(${Te})`).fromTo(ee,.8,1):Ne.beforeClearStyles([ee]).fromTo("transform",`translateX(${te})`,`translateX(${Te})`),Ce){const le=v(Ce).querySelector(".transition-effect");if(le){const Ue=le.querySelector(".transition-cover"),ke=le.querySelector(".transition-shadow"),ze=(0,o.c)(),ye=(0,o.c)(),je=(0,o.c)();ze.addElement(le).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),ye.addElement(Ue).beforeClearStyles([ee]).fromTo(ee,0,.1),je.addElement(ke).beforeClearStyles([ee]).fromTo(ee,.03,.7),ze.addAnimation([ye,je]),Ne.addAnimation([ze])}}const _e=xe.querySelector("ion-header.header-collapse-condense"),{forward:we,backward:Ee}=((j,W,de,K,ee)=>{const De=k(K,de),Te=b(ee),ce=b(K),oe=k(ee,de),te=null!==De&&null!==Te&&!de,ge=null!==ce&&null!==oe&&de;if(te){const xe=Te.getBoundingClientRect(),he=De.getBoundingClientRect();I(j,W,de,Te,xe,he),Y(j,W,de,De,xe,he)}else if(ge){const xe=ce.getBoundingClientRect(),he=oe.getBoundingClientRect();I(j,W,de,ce,xe,he),Y(j,W,de,oe,xe,he)}return{forward:te,backward:ge}})(me,oe,Le,xe,he);if(se.forEach(le=>{const Ue=(0,o.c)();Ue.addElement(le),me.addAnimation(Ue);const ke=(0,o.c)();ke.addElement(le.querySelector("ion-title"));const ze=(0,o.c)(),ye=Array.from(le.querySelectorAll("ion-buttons,[menuToggle]")),je=le.closest("ion-header"),Ze=je?.classList.contains("header-collapse-condense-inactive");let _t;_t=ye.filter(Le?xn=>{const gn=xn.classList.contains("buttons-collapse");return gn&&!Ze||!gn}:xn=>!xn.classList.contains("buttons-collapse")),ze.addElement(_t);const At=(0,o.c)();At.addElement(le.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Vt=(0,o.c)();Vt.addElement(v(le).querySelector(".toolbar-background"));const fn=(0,o.c)(),mn=le.querySelector("ion-back-button");if(mn&&fn.addElement(mn),Ue.addAnimation([ke,ze,At,Vt,fn]),ze.fromTo(ee,.01,1),At.fromTo(ee,.01,1),Le)Ze||ke.fromTo("transform",`translateX(${ge})`,`translateX(${Te})`).fromTo(ee,.01,1),At.fromTo("transform",`translateX(${ge})`,`translateX(${Te})`),fn.fromTo(ee,.01,1);else if(_e||ke.fromTo("transform",`translateX(${te})`,`translateX(${Te})`).fromTo(ee,.01,1),At.fromTo("transform",`translateX(${te})`,`translateX(${Te})`),Vt.beforeClearStyles([ee,"transform"]),je?.translucent?Vt.fromTo("transform",oe?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Vt.fromTo(ee,.01,"var(--opacity)"),we||fn.fromTo(ee,.01,1),mn&&!we){const gn=(0,o.c)();gn.addElement(v(mn).querySelector(".button-text")).fromTo("transform",oe?"translateX(-100px)":"translateX(100px)","translateX(0px)"),Ue.addAnimation(gn)}}),he){const le=(0,o.c)(),Ue=he.querySelector(":scope > ion-content"),ke=he.querySelectorAll(":scope > ion-header > ion-toolbar"),ze=he.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(Ue||0!==ke.length||0!==ze.length?(le.addElement(Ue),le.addElement(ze)):le.addElement(he.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),me.addAnimation(le),Le){le.beforeClearStyles([ee]).fromTo("transform",`translateX(${Te})`,oe?"translateX(-100%)":"translateX(100%)");const ye=(0,a.g)(he);me.afterAddWrite(()=>{"normal"===me.getDirection()&&ye.style.setProperty("display","none")})}else le.fromTo("transform",`translateX(${Te})`,`translateX(${ge})`).fromTo(ee,1,.8);if(Ue){const ye=v(Ue).querySelector(".transition-effect");if(ye){const je=ye.querySelector(".transition-cover"),Ze=ye.querySelector(".transition-shadow"),_t=(0,o.c)(),At=(0,o.c)(),Vt=(0,o.c)();_t.addElement(ye).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),At.addElement(je).beforeClearStyles([ee]).fromTo(ee,.1,0),Vt.addElement(Ze).beforeClearStyles([ee]).fromTo(ee,.7,.03),_t.addAnimation([At,Vt]),le.addAnimation([_t])}}ke.forEach(ye=>{const je=(0,o.c)();je.addElement(ye);const Ze=(0,o.c)();Ze.addElement(ye.querySelector("ion-title"));const _t=(0,o.c)(),At=ye.querySelectorAll("ion-buttons,[menuToggle]"),Vt=ye.closest("ion-header"),fn=Vt?.classList.contains("header-collapse-condense-inactive"),mn=Array.from(At).filter(Tt=>{const en=Tt.classList.contains("buttons-collapse");return en&&!fn||!en});_t.addElement(mn);const xn=(0,o.c)(),gn=ye.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");gn.length>0&&xn.addElement(gn);const Et=(0,o.c)();Et.addElement(v(ye).querySelector(".toolbar-background"));const cn=(0,o.c)(),ft=ye.querySelector("ion-back-button");if(ft&&cn.addElement(ft),je.addAnimation([Ze,_t,xn,cn,Et]),me.addAnimation(je),cn.fromTo(ee,.99,0),_t.fromTo(ee,.99,0),xn.fromTo(ee,.99,0),Le){if(fn||Ze.fromTo("transform",`translateX(${Te})`,oe?"translateX(-100%)":"translateX(100%)").fromTo(ee,.99,0),xn.fromTo("transform",`translateX(${Te})`,oe?"translateX(-100%)":"translateX(100%)"),Et.beforeClearStyles([ee,"transform"]),Vt?.translucent?Et.fromTo("transform","translateX(0px)",oe?"translateX(-100%)":"translateX(100%)"):Et.fromTo(ee,"var(--opacity)",0),ft&&!Ee){const en=(0,o.c)();en.addElement(v(ft).querySelector(".button-text")).fromTo("transform",`translateX(${Te})`,`translateX(${(oe?-124:124)+"px"})`),je.addAnimation(en)}}else fn||Ze.fromTo("transform",`translateX(${Te})`,`translateX(${ge})`).fromTo(ee,.99,0).afterClearStyles([De,ee]),xn.fromTo("transform",`translateX(${Te})`,`translateX(${ge})`).afterClearStyles([De,ee]),cn.afterClearStyles([ee]),Ze.afterClearStyles([ee]),_t.afterClearStyles([ee])})}return me}catch(K){throw K}}},87838:(Ge,$,f)=>{f.r($),f.d($,{mdTransitionAnimation:()=>m});var o=f(90181),a=f(1843);f(13457),f(71308);const m=(L,v)=>{var b,k,F;const D="back"===v.direction,W=v.leavingEl,de=(0,a.g)(v.enteringEl),K=de.querySelector("ion-toolbar"),ee=(0,o.c)();if(ee.addElement(de).fill("both").beforeRemoveClass("ion-page-invisible"),D?ee.duration((null!==(b=v.duration)&&void 0!==b?b:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):ee.duration((null!==(k=v.duration)&&void 0!==k?k:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),K){const De=(0,o.c)();De.addElement(K),ee.addAnimation(De)}if(W&&D){ee.duration((null!==(F=v.duration)&&void 0!==F?F:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const De=(0,o.c)();De.addElement((0,a.g)(W)).onFinish(Te=>{1===Te&&De.elements.length>0&&De.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),ee.addAnimation(De)}return ee}},63539:(Ge,$,f)=>{f.d($,{B:()=>Ue,G:()=>ke,a:()=>b,b:()=>k,c:()=>D,d:()=>Le,e:()=>W,f:()=>ie,g:()=>Ne,h:()=>L,i:()=>we,j:()=>ee,k:()=>xe,l:()=>F,m:()=>Y,p:()=>I,s:()=>le,t:()=>j});var o=f(15861),a=f(35179),g=f(47593),h=f(35730);let m=0;const L=new WeakMap,v=ze=>({create:ye=>de(ze,ye),dismiss:(ye,je,Ze)=>te(document,ye,je,ze,Ze),getTop:()=>(0,o.Z)(function*(){return xe(document,ze)})()}),b=v("ion-alert"),k=v("ion-action-sheet"),F=v("ion-loading"),Y=v("ion-modal"),I=v("ion-picker"),D=v("ion-popover"),j=v("ion-toast"),W=ze=>{typeof document<"u"&&oe(document);const ye=m++;ze.overlayIndex=ye,ze.hasAttribute("id")||(ze.id=`ion-overlay-${ye}`)},de=(ze,ye)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(ze).then(()=>{const je=document.createElement(ze);return je.classList.add("overlay-hidden"),Object.assign(je,Object.assign(Object.assign({},ye),{hasController:!0})),se(document).appendChild(je),new Promise(Ze=>(0,h.c)(je,Ze))}):Promise.resolve(),K='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',ee=(ze,ye)=>{let je=ze.querySelector(K);const Ze=je?.shadowRoot;Ze&&(je=Ze.querySelector(K)||je),je?(0,h.f)(je):ye.focus()},Te=(ze,ye)=>{const je=Array.from(ze.querySelectorAll(K));let Ze=je.length>0?je[je.length-1]:null;const _t=Ze?.shadowRoot;_t&&(Ze=_t.querySelector(K)||Ze),Ze?Ze.focus():ye.focus()},oe=ze=>{0===m&&(m=1,ze.addEventListener("focus",ye=>{((ze,ye)=>{const je=xe(ye,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),Ze=ze.target;je&&Ze&&!je.classList.contains("ion-disable-focus-trap")&&(je.shadowRoot?(()=>{if(je.contains(Ze))je.lastFocus=Ze;else{const Vt=je.lastFocus;ee(je,je),Vt===ye.activeElement&&Te(je,je),je.lastFocus=ye.activeElement}})():(()=>{if(je===Ze)je.lastFocus=void 0;else{const Vt=(0,h.g)(je);if(!Vt.contains(Ze))return;const fn=Vt.querySelector(".ion-overlay-wrapper");if(!fn)return;if(fn.contains(Ze))je.lastFocus=Ze;else{const mn=je.lastFocus;ee(fn,je),mn===ye.activeElement&&Te(fn,je),je.lastFocus=ye.activeElement}}})())})(ye,ze)},!0),ze.addEventListener("ionBackButton",ye=>{const je=xe(ze);je?.backdropDismiss&&ye.detail.register(g.OVERLAY_BACK_BUTTON_PRIORITY,()=>je.dismiss(void 0,Ue))}),ze.addEventListener("keyup",ye=>{if("Escape"===ye.key){const je=xe(ze);je?.backdropDismiss&&je.dismiss(void 0,Ue)}}))},te=(ze,ye,je,Ze,_t)=>{const At=xe(ze,Ze,_t);return At?At.dismiss(ye,je):Promise.reject("overlay does not exist")},xe=(ze,ye,je)=>{const Ze=((ze,ye)=>(void 0===ye&&(ye="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(ze.querySelectorAll(ye)).filter(je=>je.overlayIndex>0)))(ze,ye).filter(_t=>!(ze=>ze.classList.contains("overlay-hidden"))(_t));return void 0===je?Ze[Ze.length-1]:Ze.find(_t=>_t.id===je)},he=(ze=!1)=>{const je=se(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");!je||(ze?je.setAttribute("aria-hidden","true"):je.removeAttribute("aria-hidden"))},Le=function(){var ze=(0,o.Z)(function*(ye,je,Ze,_t,At){var Vt,fn;if(ye.presented)return;he(!0),ye.presented=!0,ye.willPresent.emit(),null===(Vt=ye.willPresentShorthand)||void 0===Vt||Vt.emit();const mn=(0,a.b)(ye),xn=ye.enterAnimation?ye.enterAnimation:a.c.get(je,"ios"===mn?Ze:_t);(yield me(ye,xn,ye.el,At))&&(ye.didPresent.emit(),null===(fn=ye.didPresentShorthand)||void 0===fn||fn.emit()),"ION-TOAST"!==ye.el.tagName&&Ce(ye.el),ye.keyboardClose&&(null===document.activeElement||!ye.el.contains(document.activeElement))&&ye.el.focus()});return function(je,Ze,_t,At,Vt){return ze.apply(this,arguments)}}(),Ce=function(){var ze=(0,o.Z)(function*(ye){let je=document.activeElement;if(!je)return;const Ze=je?.shadowRoot;Ze&&(je=Ze.querySelector(K)||je),yield ye.onDidDismiss(),je.focus()});return function(je){return ze.apply(this,arguments)}}(),ie=function(){var ze=(0,o.Z)(function*(ye,je,Ze,_t,At,Vt,fn){var mn,xn;if(!ye.presented)return!1;he(!1),ye.presented=!1;try{ye.el.style.setProperty("pointer-events","none"),ye.willDismiss.emit({data:je,role:Ze}),null===(mn=ye.willDismissShorthand)||void 0===mn||mn.emit({data:je,role:Ze});const gn=(0,a.b)(ye),Et=ye.leaveAnimation?ye.leaveAnimation:a.c.get(_t,"ios"===gn?At:Vt);Ze!==ke&&(yield me(ye,Et,ye.el,fn)),ye.didDismiss.emit({data:je,role:Ze}),null===(xn=ye.didDismissShorthand)||void 0===xn||xn.emit({data:je,role:Ze}),L.delete(ye),ye.el.classList.add("overlay-hidden"),ye.el.style.removeProperty("pointer-events"),void 0!==ye.el.lastFocus&&(ye.el.lastFocus=void 0)}catch(gn){console.error(gn)}return ye.el.remove(),!0});return function(je,Ze,_t,At,Vt,fn,mn){return ze.apply(this,arguments)}}(),se=ze=>ze.querySelector("ion-app")||ze.body,me=function(){var ze=(0,o.Z)(function*(ye,je,Ze,_t){Ze.classList.remove("overlay-hidden");const Vt=je(ye.el,_t);(!ye.animated||!a.c.getBoolean("animated",!0))&&Vt.duration(0),ye.keyboardClose&&Vt.beforeAddWrite(()=>{const mn=Ze.ownerDocument.activeElement;mn?.matches("input,ion-input, ion-textarea")&&mn.blur()});const fn=L.get(ye)||[];return L.set(ye,[...fn,Vt]),yield Vt.play(),!0});return function(je,Ze,_t,At){return ze.apply(this,arguments)}}(),Ne=(ze,ye)=>{let je;const Ze=new Promise(_t=>je=_t);return _e(ze,ye,_t=>{je(_t.detail)}),Ze},_e=(ze,ye,je)=>{const Ze=_t=>{(0,h.b)(ze,ye,Ze),je(_t)};(0,h.a)(ze,ye,Ze)},we=ze=>"cancel"===ze||ze===Ue,Ee=ze=>ze(),le=(ze,ye)=>{if("function"==typeof ze)return a.c.get("_zoneGate",Ee)(()=>{try{return ze(ye)}catch(Ze){throw Ze}})},Ue="backdrop",ke="gesture"},74524:(Ge,$,f)=>{f.d($,{Fw:()=>F,Ke:()=>L});var o=f(45449),a=f(94424),g=f.n(a),h=f(55021),m=f.n(h),L=function(){function Y(I){var D=this;this._driver=null,this._dbPromise=new Promise(function(j,W){var de,ee=Object.assign({name:"_ionicstorage",storeName:"_ionickv",driverOrder:["sqlite","indexeddb","websql","localstorage"]},I||{});g().defineDriver(m()).then(function(){de=g().createInstance(ee)}).then(function(){return de.setDriver(D._getDriverOrder(ee.driverOrder))}).then(function(){D._driver=de.driver(),j(de)}).catch(function(De){return W(De)})})}return Object.defineProperty(Y.prototype,"driver",{get:function(){return this._driver},enumerable:!0,configurable:!0}),Y.prototype.ready=function(){return this._dbPromise},Y.prototype._getDriverOrder=function(I){return I.map(function(D){switch(D){case"sqlite":return m()._driver;case"indexeddb":return g().INDEXEDDB;case"websql":return g().WEBSQL;case"localstorage":return g().LOCALSTORAGE}})},Y.prototype.get=function(I){return this._dbPromise.then(function(D){return D.getItem(I)})},Y.prototype.set=function(I,D){return this._dbPromise.then(function(j){return j.setItem(I,D)})},Y.prototype.remove=function(I){return this._dbPromise.then(function(D){return D.removeItem(I)})},Y.prototype.clear=function(){return this._dbPromise.then(function(I){return I.clear()})},Y.prototype.length=function(){return this._dbPromise.then(function(I){return I.length()})},Y.prototype.keys=function(){return this._dbPromise.then(function(I){return I.keys()})},Y.prototype.forEach=function(I){return this._dbPromise.then(function(D){return D.iterate(I)})},Y}(),b=new o.InjectionToken("STORAGE_CONFIG_TOKEN");function k(Y){return new L(Y||{name:"_ionicstorage",storeName:"_ionickv",driverOrder:["sqlite","indexeddb","websql","localstorage"]})}var F=function(){function Y(){}return Y.forRoot=function(I){return void 0===I&&(I=null),{ngModule:Y,providers:[{provide:b,useValue:I},{provide:L,useFactory:k,deps:[b]}]}},Y.ctorParameters=function(){return[]},Y.\u0275fac=function(D){return new(D||Y)},Y.\u0275mod=o.\u0275\u0275defineNgModule({type:Y}),Y.\u0275inj=o.\u0275\u0275defineInjector({}),Y}()},8782:(Ge,$,f)=>{f.d($,{n:()=>o});const o={portalParams:{portais:"VO,LG"},intervalOfTimeToRenewRequestProfile:18e5,intervalOfTimeToClearCheckinDataWcStorage:6e4,intervalOfTimeToRenewFcm:6048e5,intervalOfTimeToClearEventInResume:18e5}},35453:(Ge,$,f)=>{f.d($,{O6:()=>De,Gj:()=>ee,oT:()=>Te});var o=f(15861),a=f(591),g=f(45449);const L="hosturlApp",v="csrf",b="addXrsfHeader",k="securityDataConfig",F="checkinDataApp",Y=new a.X(""),I=new a.X(""),D=new a.X(!1),j=new a.X(null);class W{constructor(){this.subjects={[v]:Y,[L]:I,[b]:D,[k]:j}}static getInstance(){return W.instance||(W.instance=new W),W.instance}updateStorage(oe,te){localStorage.setItem(oe,JSON.stringify(te)),this.subjects[oe]?.next(te),window.dispatchEvent(new CustomEvent("storageUpdated",{detail:{key:oe,value:te}})),oe===k&&j.next(te),oe===L&&I.next(te),oe===v&&Y.next(te),oe===b&&D.next(te)}getValue(oe){try{const te=localStorage.getItem(oe);return te?JSON.parse(te):null}catch(te){return console.error("Erro ao ler storage:",te),null}}getSubject(oe){return this.subjects[oe]||null}}const de=W.getInstance();var K=f(47898);let ee=(()=>{class ce{constructor(te){this.storageService=te}initializeCheckInData(){var te=this;return(0,o.Z)(function*(){try{if(yield te.storageService.ready()){const he=(yield te.storageService.get(F))||te.defaultCheckinData;yield te.setCheckinData(he)}else console.warn("Storage service not ready, resetting check-in data."),yield te.resetCheckinData()}catch(ge){console.error("Error initializing storage:",ge)}})()}getCheckinData(){var te=this;return(0,o.Z)(function*(){return(yield te.storageService.get(F))||te.defaultCheckinData})()}setCheckinData(te){var ge=this;return(0,o.Z)(function*(){yield ge.storageService.set(F,te)})()}setSecurityDataConfig(){this.removeSecurityDataConfig();const te={urlFromApp:this.getHostUrl(),hasXrfAddHeader:this.getAddXrsfHeader(),crfsTokenStorage:this.getCsrf(),updateTimestamp:Date.now()};console.log("setSecurityDataConfig APP KEY ACCESS",te),this.setDataStorage(k,te)}removeSecurityDataConfig(){localStorage.removeItem(k)}getSecurityDataConfig(){return this.getDataStorage(k)}resetCheckinData(){var te=this;return(0,o.Z)(function*(){yield te.storageService.set(F,te.defaultCheckinData),te.clearStorage()})()}setCsrf(te){de.updateStorage(v,te)}getCsrf(){return de.getValue(v)||""}removeCsrf(){localStorage.removeItem(v)}setHostUrl(te){this.removeHostUrl(),de.updateStorage(L,te)}getHostUrl(){return de.getValue(L)||""}removeHostUrl(){localStorage.removeItem(L)}setAddXrsfHeader(te){this.removeAddXrsfHeader(),de.updateStorage(b,JSON.stringify(te))}getAddXrsfHeader(){return de.getValue(b)||!1}removeAddXrsfHeader(){localStorage.removeItem(b)}setDataStorage(te,ge){de.updateStorage(te,ge)}getDataStorage(te){return de.getValue(te)}clearStorage(){this.removeHostUrl(),this.removeAddXrsfHeader(),this.removeSecurityDataConfig(),localStorage.removeItem("checkinData")}get defaultCheckinData(){return{webToken:null,locatorType:null,companyName:null,companyInstance:null,document:null,name:null,hasLogisticModule:!1,refId:null,locator:null,deepLink:!0,rememberMe:!0,photo:null,subcategory:0,isForeign:!1,status:null,qrCodeData:null,siteLocator:null,siteInstance:null,walletQrCodes:[]}}}return ce.\u0275fac=function(te){return new(te||ce)(g.\u0275\u0275inject(K.V1))},ce.\u0275prov=g.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),De=(()=>{class ce{constructor(te){this.storageWcService=te,this.checkinDataSubject=new a.X(null)}getCheckinData(){return this.checkinDataSubject.getValue()}updateCheckinData(te){var ge=this;return(0,o.Z)(function*(){try{const he={...ge.checkinDataSubject.getValue()||{},...te};return yield ge.storageWcService.setCheckinData(he),ge.checkinDataSubject.next(he),he}catch(xe){console.error("Error updating check-in data:",xe)}})()}resetCheckinData(){var te=this;return(0,o.Z)(function*(){try{const ge=te.storageWcService.defaultCheckinData;return te.checkinDataSubject.next(ge),yield te.storageWcService.resetCheckinData(),ge}catch(ge){console.error("Error resetting check-in data:",ge)}})()}}return ce.\u0275fac=function(te){return new(te||ce)(g.\u0275\u0275inject(ee))},ce.\u0275prov=g.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),Te=(()=>{class ce{constructor(te){this.storageService=te,this.STORAGE_KEY_WALLET="wallet_qrcodes"}saveQRCodes(te){var ge=this;return(0,o.Z)(function*(){!(yield ge.storageService.ready())||(yield ge.storageService.set(ge.STORAGE_KEY_WALLET,te))})()}getQRCodes(){var te=this;return(0,o.Z)(function*(){return(yield te.storageService.ready())&&(yield te.storageService.get(te.STORAGE_KEY_WALLET))||[]})()}}return ce.\u0275fac=function(te){return new(te||ce)(g.\u0275\u0275inject(K.V1))},ce.\u0275prov=g.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})()},69270:(Ge,$,f)=>{f.d($,{I:()=>ee});var o=f(90944),g=f(92216),h=f(24006),m=f(90603),L=f(99826),v=f(15626),k=(f(2569),f(64921)),F=f(70079),Y=f(10866),D=f(3035),j=f(45449);const de=[o.CommonModule,m.IonicModule,h.ReactiveFormsModule,h.FormsModule,g.uH,F.Tx,v.K,L.aw,Y.CalendarModule,k.D,D.rK,F.Tx];let ee=(()=>{class De{}return De.\u0275fac=function(ce){return new(ce||De)},De.\u0275mod=j.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=j.\u0275\u0275defineInjector({imports:[de,o.CommonModule,m.IonicModule,h.ReactiveFormsModule,h.FormsModule,g.uH,F.Tx,v.K,L.aw,Y.CalendarModule,k.D,D.rK,F.Tx]}),De})()},7415:(Ge,$,f)=>{f.d($,{Z:()=>Y});var o=f(45449),g=f(47898);function h(I,D){if(1&I&&o.\u0275\u0275element(0,"ion-icon",13),2&I){const j=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("name",j.icon)}}function m(I,D){if(1&I&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,h,1,1,"ion-icon",11),o.\u0275\u0275elementStart(2,"span",12),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementContainerEnd()),2&I){const j=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",j.icon),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(j.title)}}function L(I,D){1&I&&o.\u0275\u0275element(0,"div",14)}function v(I,D){if(1&I){const j=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",15)(2,"div",16)(3,"div",17),o.\u0275\u0275element(4,"ion-icon",18),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"div",19),o.\u0275\u0275text(6),o.\u0275\u0275pipe(7,"translate"),o.\u0275\u0275elementStart(8,"span"),o.\u0275\u0275text(9),o.\u0275\u0275pipe(10,"relativeDate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(11,"div",20)(12,"ion-button",21),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(j);const de=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(de.presentationReactiveOptions.emit())}),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"translate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementContainerEnd()}if(2&I){const j=o.\u0275\u0275nextContext();o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(7,3,"CONFIGS.NOTIFICATION.AUTO_ACTIVATE_DATE")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(10,5,j.autoActivetDays.autoReactivateDate)),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(14,7,"CONFIGS.NOTIFICATION.CANCEL_AUTO_ACTIVATE_DATE")," ")}}function b(I,D){1&I&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275projection(1,1),o.\u0275\u0275elementContainerEnd())}const k=[[["","customContent",""]],[["","customHeader",""]]],F=["[customContent]","[customHeader]"];let Y=(()=>{class I{constructor(j,W){this.cdr=j,this.ngZoneService=W,this.title="",this.icon="",this.isOpenAccordion=!0,this.checked=!0,this.autoActivetDays=void 0,this.toggle=new o.EventEmitter,this.presentationReactiveOptions=new o.EventEmitter}ngOnInit(){console.log("autoActivetDays",this.autoActivetDays)}ngOnChanges(j){console.log(j),j.isOpenAccordion&&!j.isOpenAccordion.firstChange&&(this.isOpenAccordion=j.isOpenAccordion.currentValue,this.cdr.markForCheck(),console.log("AccordionComponent: isOpen mudou para",this.isOpenAccordion))}}return I.\u0275fac=function(j){return new(j||I)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(g.zf))},I.\u0275cmp=o.\u0275\u0275defineComponent({type:I,selectors:[["app-accordion"]],inputs:{title:"title",icon:"icon",customHeader:"customHeader",isOpenAccordion:"isOpenAccordion",checked:"checked",autoActivetDays:"autoActivetDays"},outputs:{toggle:"toggle",presentationReactiveOptions:"presentationReactiveOptions"},features:[o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:F,decls:15,vars:10,consts:[[1,"accordion"],[1,"accordion__header"],[4,"ngIf"],[1,"notification-config__card"],["class","notification-config__card-hr",4,"ngIf"],[1,"notification-config__card-icon"],["slot","start","name","notifications-circle"],[1,"notification-config__card-label",3,"innerHTML"],[1,"notification-config__card-toggle"],["mode","ios","color","primary","slot","end",3,"checked","click"],[1,"accordion__content"],["slot","end","class","accordion__header-icon",3,"name",4,"ngIf"],[1,"accordion__title"],["slot","end",1,"accordion__header-icon",3,"name"],[1,"notification-config__card-hr"],[1,"notification-config__status"],[1,"notification-config__status-content"],[1,"notification-config__status-content-icon"],["mode","ios","slot","start","src","./assets/icon/refresh_icon.svg"],[1,"notification-config__status-content-text"],[1,"notification-config__status-cancel"],["mode","ios","expand","block","fill","clear",3,"click"]],template:function(j,W){1&j&&(o.\u0275\u0275projectionDef(k),o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275template(2,m,4,2,"ng-container",2),o.\u0275\u0275elementStart(3,"div",3),o.\u0275\u0275template(4,L,1,0,"div",4),o.\u0275\u0275elementStart(5,"div",5),o.\u0275\u0275element(6,"ion-icon",6),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(7,"div",7),o.\u0275\u0275pipe(8,"translate"),o.\u0275\u0275elementStart(9,"div",8)(10,"ion-toggle",9),o.\u0275\u0275listener("click",function(K){return W.toggle.emit(K)}),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275template(11,v,15,9,"ng-container",2),o.\u0275\u0275template(12,b,2,0,"ng-container",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(13,"div",10),o.\u0275\u0275projection(14),o.\u0275\u0275elementEnd()()),2&j&&(o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",!W.customHeader),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",W.isOpenAccordion),o.\u0275\u0275advance(3),o.\u0275\u0275property("innerHTML",o.\u0275\u0275pipeBind1(8,8,"CONFIGS.NOTIFICATION.ENABLE_NOTIFICATION"),o.\u0275\u0275sanitizeHtml),o.\u0275\u0275advance(3),o.\u0275\u0275property("checked",W.checked),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",null==W.autoActivetDays?null:W.autoActivetDays.autoReactivateDate),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",W.customHeader),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("accordion__content--open",W.isOpenAccordion))},styles:[".accordion[_ngcontent-%COMP%]{background-color:#fff;border-radius:12px;border:solid 1px #efefef;box-shadow:0 2px 6px rgba(0,0,0,.08)!important}.accordion__header[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;max-height:50px;flex-direction:column}.accordion__header-icon[_ngcontent-%COMP%]{margin-right:10px}.accordion__title[_ngcontent-%COMP%]{font-weight:500}.accordion__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:800}.accordion__content[_ngcontent-%COMP%]{max-height:0;overflow:hidden;transition:max-height .3s ease;background-color:#fff;padding:0 10px;border-radius:0 0 12px 12px}.accordion__content--open[_ngcontent-%COMP%]{max-height:-webkit-max-content;max-height:-moz-max-content;max-height:max-content;padding:1em;position:relative}.notification-config[_ngcontent-%COMP%]{padding:1rem}.notification-config__title[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:600;margin-bottom:1rem;color:var(--ion-color-dark)}.notification-config__card[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;margin:.55em auto;z-index:111;position:relative;padding:0 1em}.notification-config__card-icon[_ngcontent-%COMP%]{align-items:center;flex-direction:column;display:flex}.notification-config__card[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:28px;color:#d9d9d9}.notification-config__card-label[_ngcontent-%COMP%]{font-size:1rem;font-weight:500;margin-left:.75rem;flex:1}.notification-config__card-hr[_ngcontent-%COMP%]{width:90%;height:2px;background-color:#f8f9fa;position:absolute;bottom:-6px}.notification-config__card-toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.notification-config__card[_ngcontent-%COMP%] ion-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;--handle-height: 1.4em;--handle-width: 1.4em;width:2.7em;--handle-max-height: auto;contain:none;overflow:visible;--handle-spacing: 1px}.notification-config__card[_ngcontent-%COMP%] ion-toggle[_ngcontent-%COMP%]::part(track), .notification-config__card[_ngcontent-%COMP%] ion-toggle.toggle-checked[_ngcontent-%COMP%]::part(track){height:14px}.notification-config__card[_ngcontent-%COMP%] ion-toggle.toggle-checked[_ngcontent-%COMP%]::part(handle){background:var(--ion-color-primary)!important}.notification-config__card[_ngcontent-%COMP%] ion-toggle.toggle-checked[_ngcontent-%COMP%]::part(track){background-color:#c7e3af}.notification-config__status-content[_ngcontent-%COMP%]{max-width:100%;display:flex;align-items:center;background-color:#fff;margin:auto;border:none;gap:.4em;padding:.4em .6em;border-radius:0 0 8px 8px;z-index:-1;position:relative}.notification-config__status-content-icon[_ngcontent-%COMP%]{width:20px;height:20px;position:relative;display:flex;justify-content:center;align-items:center}.notification-config__status-content-text[_ngcontent-%COMP%]{font-size:.66rem}.notification-config__status-content-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.notification-config__status-cancel[_ngcontent-%COMP%]{margin-top:0;cursor:pointer}.notification-config__status-cancel[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{text-align:center;font-weight:700;color:#f70b14;height:2.1em;font-size:.88em}"],changeDetection:0}),I})()},87871:(Ge,$,f)=>{f.d($,{A:()=>Y});var o=f(45449),g=f(90944),m=f(90603),L=f(31765);function v(I,D){if(1&I&&(o.\u0275\u0275elementStart(0,"ion-avatar",2),o.\u0275\u0275element(1,"ion-skeleton-text",3),o.\u0275\u0275elementEnd()),2&I){const j=o.\u0275\u0275nextContext();o.\u0275\u0275property("ngClass","avatar--"+j.size)}}function b(I,D){if(1&I){const j=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-avatar",4),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(j);const de=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(de.photoClick.emit(de.thumbnailImage))}),o.\u0275\u0275element(1,"ion-img",5),o.\u0275\u0275elementEnd()}if(2&I){const j=o.\u0275\u0275nextContext();o.\u0275\u0275property("ngClass","avatar--"+j.size),o.\u0275\u0275advance(1),o.\u0275\u0275property("src","data:image/png;base64,"+j.thumbnailImage)}}const k=function(I){return[I,"initials"]};function F(I,D){if(1&I&&(o.\u0275\u0275elementStart(0,"ion-avatar",2)(1,"div",6),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"getInitials"),o.\u0275\u0275elementEnd()()),2&I){const j=o.\u0275\u0275nextContext();let W;o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(5,k,"avatar--"+j.size)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind2(3,2,null!==(W=j.firstName)&&void 0!==W?W:"",null!==(W=j.lastName)&&void 0!==W?W:""))}}let Y=(()=>{class I{constructor(){this.firstName="",this.lastName="",this.thumbnailImage=null,this.size="lg",this.loading=!1,this.photoClick=new o.EventEmitter}}return I.\u0275fac=function(j){return new(j||I)},I.\u0275cmp=o.\u0275\u0275defineComponent({type:I,selectors:[["app-avatar"]],inputs:{firstName:"firstName",lastName:"lastName",thumbnailImage:"thumbnailImage",size:"size",loading:"loading"},outputs:{photoClick:"photoClick"},decls:3,vars:3,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[3,"ngClass"],["animated",""],[3,"ngClass","click"],[3,"src"],[1,"content"]],template:function(j,W){1&j&&(o.\u0275\u0275template(0,v,2,1,"ion-avatar",0),o.\u0275\u0275template(1,b,2,2,"ion-avatar",1),o.\u0275\u0275template(2,F,4,7,"ion-avatar",0)),2&j&&(o.\u0275\u0275property("ngIf",W.loading),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!W.loading&&!!W.thumbnailImage),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!W.loading&&!W.thumbnailImage))},dependencies:[g.NgClass,g.NgIf,m.IonAvatar,m.IonImg,m.IonSkeletonText,L.I],styles:["[_nghost-%COMP%]{display:inline-block}ion-avatar[_ngcontent-%COMP%]{flex-shrink:0;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden}ion-avatar[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.initials[_ngcontent-%COMP%]{background-color:#eee}.initials[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-size:.9em;font-weight:600;color:#333}.avatar--lg[_ngcontent-%COMP%]{width:64px;height:64px;min-width:64px}.avatar--md[_ngcontent-%COMP%]{width:40px;height:40px;min-width:40px}.avatar--sm[_ngcontent-%COMP%]{width:38px;height:38px;min-width:38px}.host[_nghost-%COMP%], .guest[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center}.host[_nghost-%COMP%] ion-avatar[_ngcontent-%COMP%], .guest[_nghost-%COMP%] ion-avatar[_ngcontent-%COMP%]{background-color:transparent;width:100%;height:100%}.host[_nghost-%COMP%] .initials[_ngcontent-%COMP%], .guest[_nghost-%COMP%] .initials[_ngcontent-%COMP%]{background-color:transparent;width:100%;height:100%}"],changeDetection:0}),I})()},37792:(Ge,$,f)=>{f.d($,{H:()=>m});var o=f(45449),g=f(90944);let m=(()=>{class L{constructor(){this.class="button-holder-success",this.type="button",this.action=new o.EventEmitter}ngOnInit(){}ngOnDestroy(){}}return L.\u0275fac=function(b){return new(b||L)},L.\u0275cmp=o.\u0275\u0275defineComponent({type:L,selectors:[["app-button-custom-component"]],inputs:{name:"name",class:"class",type:"type"},outputs:{action:"action"},decls:2,vars:3,consts:[[3,"type","ngClass","click"]],template:function(b,k){1&b&&(o.\u0275\u0275elementStart(0,"button",0),o.\u0275\u0275listener("click",function(Y){return k.action.emit(Y)}),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&b&&(o.\u0275\u0275property("type",k.type)("ngClass",k.class),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",k.name,"\n"))},dependencies:[g.NgClass],styles:[".button-holder-success[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.75em 1.5em;border-radius:50px;background-color:var(--ion-color-base);color:#fff;font-size:1em;transition:background-color .1s ease-out}.button-holder-success[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#fff;color:var(--ion-color-base);transition:background-color .1s ease-out}.button-holder-success[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:none}.button-holder-back[_ngcontent-%COMP%]{color:#383a3e;font-weight:400;background-color:#e6e6e6;transition:background-color .1s ease-out}"]}),L})()},64245:(Ge,$,f)=>{f.d($,{e:()=>F});var o=f(45449),g=f(90944),m=f(90603),L=f(99826);function v(Y,I){if(1&Y){const D=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-card",11),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(D);const W=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(W.onDelete.emit(W.booking))}),o.\u0275\u0275element(1,"ion-icon",12),o.\u0275\u0275elementEnd()}}const b=function(Y){return{border_:Y}};function k(Y,I){if(1&Y){const D=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",1),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(D);const W=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(W.onSelected.emit(W.booking))}),o.\u0275\u0275elementStart(2,"div",2),o.\u0275\u0275element(3,"img",3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div",4)(5,"div")(6,"div",5),o.\u0275\u0275text(7),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"div",6),o.\u0275\u0275text(9),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(10,"div",7)(11,"div",8),o.\u0275\u0275text(12),o.\u0275\u0275pipe(13,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(14,"div",9)(15,"span"),o.\u0275\u0275text(16),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275template(17,v,2,0,"ion-card",10),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementContainerEnd()}if(2&Y){const D=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(9,b,D.isModal)),o.\u0275\u0275advance(2),o.\u0275\u0275property("src",null!=D.booking&&D.booking.photo||null!=D.booking&&D.booking.assetPhoto?(null==D.booking?null:D.booking.photo)||(null==D.booking?null:D.booking.assetPhoto):"./assets/img/placeholder-reservations.png",o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",null!=D.booking&&D.booking.name?null==D.booking?null:D.booking.name:null!=D.booking&&D.booking.assetName?null==D.booking?null:D.booking.assetName:""," "),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",null!=D.booking&&null!=D.booking.location&&D.booking.location.name?null==D.booking||null==D.booking.location?null:D.booking.location.name:null!=D.booking&&D.booking.locationName?null==D.booking?null:D.booking.locationName:""," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(13,7,"CM_BOOKEI_TEXT_ACCESSORIES")),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",D.joinResoucers(null==D.booking?null:D.booking.resources)," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!D.isModal)}}let F=(()=>{class Y{constructor(){this.onSelected=new o.EventEmitter,this.onDelete=new o.EventEmitter,this.isModal=!1}ngOnInit(){}ngOnDestroy(){}joinResoucers(D){return D.map(j=>j.name).join(" | ")}}return Y.\u0275fac=function(D){return new(D||Y)},Y.\u0275cmp=o.\u0275\u0275defineComponent({type:Y,selectors:[["app-card-booking-component"]],inputs:{booking:"booking",isModal:"isModal"},outputs:{onSelected:"onSelected",onDelete:"onDelete"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"asset-card",3,"ngClass","click"],[1,"img-wrapper"],[3,"src"],[1,"text-wrapper"],[1,"asset-title"],[1,"asset-location"],[1,"accessory-wrapper"],[1,"accessory-title"],[1,"accessories"],["class","ion-no-padding ion-no-margin icon-asset-card","button","",3,"click",4,"ngIf"],["button","",1,"ion-no-padding","ion-no-margin","icon-asset-card",3,"click"],["mode","ios","color","light","name","trash"]],template:function(D,j){1&D&&o.\u0275\u0275template(0,k,18,11,"ng-container",0),2&D&&o.\u0275\u0275property("ngIf",j.booking)},dependencies:[g.NgClass,g.NgIf,m.IonCard,m.IonIcon,L.X$],styles:[".asset-card[_ngcontent-%COMP%]{min-height:84px;background:#fff;width:100%;margin:0 auto .8rem;border-radius:.25rem;display:flex;flex-wrap:wrap;align-items:center;padding:.5rem 1rem;cursor:pointer}.asset-card[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%]{width:64px;height:64px;display:flex;border-radius:4px}.asset-card[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:cover!important;border-radius:4px}.asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%]{margin-left:1rem;display:flex;flex-direction:column;justify-content:space-between;align-self:stretch;flex:1}.asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%] .asset-title[_ngcontent-%COMP%]{line-height:1rem;font-weight:600}.asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%] .asset-location[_ngcontent-%COMP%]{font-size:.8rem;line-height:1rem;color:#999}.asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%] .accessory-wrapper[_ngcontent-%COMP%] .accessory-title[_ngcontent-%COMP%]{font-size:.7rem;line-height:.9rem;font-weight:600}.asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%] .accessory-wrapper[_ngcontent-%COMP%] .accessories[_ngcontent-%COMP%]{font-size:.7rem;line-height:.8rem}.asset-card[_ngcontent-%COMP%] .icon-asset-card[_ngcontent-%COMP%]{height:30px;width:30px;background:rgb(187,82,82);display:flex;-webkit-box-pack:center;border-radius:50%;-webkit-box-align:center}.asset-card[_ngcontent-%COMP%] .icon-asset-card[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:1.4em;display:flex;align-items:center;justify-content:center;width:100%}.asset-card.border_[_ngcontent-%COMP%]{border:1px solid #ced4da}"]}),Y})()},15626:(Ge,$,f)=>{f.d($,{K:()=>oe});var o=f(90944),g=f(70079),h=f(24006),m=f(92216),L=f(90603),v=f(99826),b=f(10866),F=f(64921),Y=f(98246),I=f(3035),D=f(24889),j=f(64633),W=f(45449),K=f(69927),ee=f(90068);const Te=[o.CommonModule,L.IonicModule,h.ReactiveFormsModule,h.FormsModule,m.uH,g.Tx,v.aw,b.CalendarModule,F.D,I.rK];let oe=(()=>{class te{}return te.\u0275fac=function(xe){return new(xe||te)},te.\u0275mod=W.\u0275\u0275defineNgModule({type:te}),te.\u0275inj=W.\u0275\u0275defineInjector({imports:[Te,Y.F5]}),te})();W.\u0275\u0275setComponentScope(j.Ol,[o.NgIf,L.IonButton,L.IonCol,L.IonGrid,L.IonIcon,L.IonRow],[v.X$,K.zg]),W.\u0275\u0275setComponentScope(D.lZ,[o.NgClass,o.NgForOf,o.NgIf,L.IonCol,L.IonContent,L.IonFab,L.IonFabButton,L.IonHeader,L.IonIcon,L.IonInfiniteScroll,L.IonInfiniteScrollContent,L.IonRow,h.\u0275NgNoValidate,h.DefaultValueAccessor,h.NgControlStatus,h.NgControlStatusGroup,h.FormGroupDirective,h.FormControlName,D.N6],[v.X$]),W.\u0275\u0275setComponentScope(D.OO,[o.NgClass,o.NgForOf,o.NgIf,L.IonCol,L.IonContent,L.IonHeader,L.IonInfiniteScroll,L.IonInfiniteScrollContent,L.IonRow,h.\u0275NgNoValidate,h.DefaultValueAccessor,h.NgControlStatus,h.NgControlStatusGroup,h.FormGroupDirective,h.FormControlName,D.N6],[v.X$]),W.\u0275\u0275setComponentScope(D.rD,[o.NgClass,o.NgForOf,o.NgIf,L.IonButton,L.IonCard,L.IonCol,L.IonContent,L.IonFooter,L.IonGrid,L.IonHeader,L.IonIcon,L.IonRow,L.IonText,L.IonTitle,L.IonToolbar],[v.X$,K.zg]),W.\u0275\u0275setComponentScope(D._Z,[o.NgForOf,o.NgIf,L.IonButton,L.IonCol,L.IonIcon,L.IonItem,L.IonLabel,L.IonList,L.IonRow],[v.X$,K.Mo,K.X$]),W.\u0275\u0275setComponentScope(D.Zf,[o.NgIf,L.IonButton,L.IonIcon,L.IonToggle,L.BooleanValueAccessor],[v.X$,ee.h])},69977:(Ge,$,f)=>{f.d($,{M:()=>W});var o=f(45449),g=f(7389),h=f(90944),L=f(99826);const v=function(de){return{"small-device":de}};function b(de,K){if(1&de&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",8)(2,"div",9),o.\u0275\u0275text(3),o.\u0275\u0275elementStart(4,"span",10),o.\u0275\u0275text(5,"s"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(6,"div",11),o.\u0275\u0275text(7),o.\u0275\u0275pipe(8,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementContainerEnd()),2&de){const ee=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(2),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(6,v,ee.isSmallScreen||ee.hasBanner)),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ee.qrCodeValidityCountDown,""),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(8,v,ee.isSmallScreen||ee.hasBanner)),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(8,4,"PG_HOME_TEXT_VALIDITY")," ")}}function k(de,K){if(1&de&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275element(0,"circle")),2&de){const ee=o.\u0275\u0275nextContext(2);o.\u0275\u0275styleProp("animation-play-state",ee.paused?"paused":"running")("animation","circle-countdown "+ee.duration+"s linear infinite forwards, countdown-color "+ee.duration+"s ease-in infinite forwards")("stroke-dasharray",ee.circumference)("--circumference",ee.circumference+"px"),o.\u0275\u0275attribute("r",ee.radius)("cx",ee.center)("cy",ee.center)}}const F=function(de){return{hasBanner:de}};function Y(de,K){if(1&de&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275template(1,b,9,10,"ng-container",4),o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(2,"svg",5),o.\u0275\u0275element(3,"circle",6),o.\u0275\u0275template(4,k,1,11,"circle",7),o.\u0275\u0275elementEnd()()),2&de){const ee=o.\u0275\u0275nextContext();o.\u0275\u0275property("className","component__countdown__circle"+(ee.isSmallScreen||ee.hasBanner?" small-device":""))("ngClass",o.\u0275\u0275pureFunction1(10,F,ee.hasBanner)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ee.isUltraSmallScreen&&!ee.isMediumSmallScreen),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("viewBox",ee.viewBox),o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("stroke-dasharray",ee.circumference),o.\u0275\u0275attribute("r",ee.radius)("cx",ee.center)("cy",ee.center),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ee.paused)}}function I(de,K){if(1&de&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",8)(2,"div",16),o.\u0275\u0275text(3),o.\u0275\u0275elementStart(4,"span",10),o.\u0275\u0275text(5,"s"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(6,"div",17),o.\u0275\u0275text(7),o.\u0275\u0275pipe(8,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementContainerEnd()),2&de){const ee=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",ee.qrCodeValidityCountDown,""),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(8,2,"PG_HOME_TEXT_VALIDITY")," ")}}function D(de,K){if(1&de&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275element(0,"rect",18)),2&de){const ee=o.\u0275\u0275nextContext(2);o.\u0275\u0275styleProp("animation-play-state",ee.paused?"paused":"running")("animation","rect-countdown "+ee.duration+"s linear infinite forwards, countdown-color "+ee.duration+"s ease-in infinite forwards"),o.\u0275\u0275attribute("width","100%")("height","100%")}}function j(de,K){if(1&de&&(o.\u0275\u0275elementStart(0,"div",12),o.\u0275\u0275template(1,I,9,4,"ng-container",4),o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(2,"svg",13),o.\u0275\u0275element(3,"rect",14),o.\u0275\u0275template(4,D,1,6,"rect",15),o.\u0275\u0275elementEnd()()),2&de){const ee=o.\u0275\u0275nextContext();o.\u0275\u0275property("className","component__countdown__rect"),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ee.hasBanner),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("viewBox","0 0 100 10"),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("width","100%")("height","100%"),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ee.paused)}}let W=(()=>{class de{constructor(ee){this.deviceInfo=ee,this.duration=0,this.paused=!1,this.countDown=0,this.qrCodeValidityCountDown=0,this.hasBanner=!1,this.displayCircularCountdown=!0,this.svgSize=150,this.viewBox="0 0 150 150",this.isSmallScreen=!1,this.isUltraSmallScreen=!1,this.isMediumSmallScreen=!1,this.radius=55,this.circumference=Math.PI*this.radius*2,this.center=this.radius+10,this.resizeListener=null}ngOnInit(){this.updateDeviceInfo(),this.addResizeListener()}ngOnDestroy(){this.removeResizeListener()}updateDeviceInfo(){this.isSmallScreen=this.deviceInfo.isSmallScreen(),this.isUltraSmallScreen=this.deviceInfo.isUltraSmallScreen(),this.isMediumSmallScreen=this.deviceInfo.isMediumSmallScreen(),this.updateRadiusAndCenter()}updateRadiusAndCenter(){this.radius=this.isUltraSmallScreen?35:this.isSmallScreen?45:this.isMediumSmallScreen?55:65,this.center=this.radius+10,this.circumference=Math.PI*this.radius*2,this.svgSize=2*this.center,this.viewBox=`0 0 ${this.svgSize} ${this.svgSize}`}addResizeListener(){this.resizeListener=()=>{this.updateDeviceInfo()},window.addEventListener("resize",this.resizeListener)}removeResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}}return de.\u0275fac=function(ee){return new(ee||de)(o.\u0275\u0275directiveInject(g.H))},de.\u0275cmp=o.\u0275\u0275defineComponent({type:de,selectors:[["app-countdown"]],inputs:{duration:"duration",paused:"paused",countDown:"countDown",qrCodeValidityCountDown:"qrCodeValidityCountDown",hasBanner:"hasBanner",displayCircularCountdown:"displayCircularCountdown"},decls:3,vars:2,consts:[[1,"component__countdown"],[3,"className","ngClass",4,"ngIf"],[3,"className",4,"ngIf"],[3,"className","ngClass"],[4,"ngIf"],["preserveAspectRatio","xMidYMid meet",1,"component__countdown__svg"],[1,"grey"],[3,"animation-play-state","animation","stroke-dasharray","--circumference",4,"ngIf"],[1,"component__countdown__content_validity_box"],[1,"component__countdown__content_validity_box__validity-countdown-holder","value",3,"ngClass"],[1,"seconds"],[1,"component__countdown__content_validity_box__validity-countdown-holder","validity",3,"ngClass"],[3,"className"],["preserveAspectRatio","none",1,"component__countdown__svg"],["rx","16","ry","16","x","0","y","0",1,"grey"],["rx","16","ry","16","x","0","y","0",3,"animation-play-state","animation",4,"ngIf"],[1,"component__countdown__content_validity_box__validity-countdown-holder","value","linear"],[1,"component__countdown__content_validity_box__validity-countdown-holder","validity","linear"],["rx","16","ry","16","x","0","y","0"]],template:function(ee,De){1&ee&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275template(1,Y,5,12,"div",1),o.\u0275\u0275template(2,j,5,6,"div",2),o.\u0275\u0275elementEnd()),2&ee&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",De.displayCircularCountdown),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!De.displayCircularCountdown))},dependencies:[h.NgClass,h.NgIf,L.X$],styles:[".component__countdown[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column}.component__countdown__circle[_ngcontent-%COMP%]{position:relative;display:flex;aspect-ratio:1/1;margin:0 auto;container-type:inline-size;container-name:countdown-circle;width:clamp(76px,30vw,130px);max-width:130px}.component__countdown__circle.hasBanner[_ngcontent-%COMP%]{width:clamp(76px,25vw,130px)!important}.component__countdown__circle[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:100%;transform:rotateY(-180deg) rotate(-90deg);transform-origin:50% 50%}.component__countdown__circle[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{stroke-dashoffset:0;stroke-linecap:round;stroke-width:.63em;stroke:#363636;fill:none}.component__countdown__circle[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] circle.grey[_ngcontent-%COMP%]{stroke:#eee}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder[_ngcontent-%COMP%]{color:#333;font-family:Nunito,sans-serif;width:100%;text-align:center}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.value[_ngcontent-%COMP%]{font-size:clamp(1.8rem,9vw,2.6rem);font-weight:700}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.value[_ngcontent-%COMP%] > .seconds[_ngcontent-%COMP%]{font-size:.7em}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.validity[_ngcontent-%COMP%]{font-size:clamp(.75rem,2.9vw,.95rem);letter-spacing:1px}@supports (font-size: 1cqw){.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.value[_ngcontent-%COMP%]{font-size:clamp(1rem,29cqw,2.6rem)}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.value.small-device[_ngcontent-%COMP%]{font-size:clamp(.8rem,34cqw,2.6rem)}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.validity[_ngcontent-%COMP%]{font-size:clamp(.8rem,9cqw,.95rem)}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.validity.small-device[_ngcontent-%COMP%]{font-size:clamp(.55rem,9cqw,.95rem)}}.component__countdown__rect[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:center}.component__countdown__rect[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:10px}.component__countdown__rect[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{stroke-dashoffset:0;stroke-linecap:round;height:10px;fill:none;width:100%;stroke-width:10px}.component__countdown__rect[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] rect.grey[_ngcontent-%COMP%]{stroke-width:10px;stroke:#eee;fill:none}.component__countdown__rect[_ngcontent-%COMP%] .component__countdown__content_validity_box[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:.4rem}.component__countdown__rect[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder[_ngcontent-%COMP%]{color:#333;font-family:Nunito,sans-serif;text-align:center}.component__countdown__rect[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.value[_ngcontent-%COMP%]{font-size:clamp(1.2rem,3vw,1.8rem);font-weight:700;margin-bottom:.2rem}.component__countdown__rect[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.value[_ngcontent-%COMP%] > .seconds[_ngcontent-%COMP%]{font-size:.7em}.component__countdown__rect[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.validity[_ngcontent-%COMP%]{font-size:clamp(.7rem,1.5vw,.9rem);margin-top:0;margin-bottom:.6rem}@keyframes countdown-color{0%{stroke:#0ec254}45%{stroke:#0ec254}50%{stroke:#fcd24f}75%{stroke:#fcd24f}80%{stroke:#e40211}to{stroke:#e40211}}@keyframes circle-countdown{0%{stroke-dashoffset:0}to{stroke-dashoffset:var(--circumference)}}@keyframes rect-countdown{0%{width:100%}to{width:0}}@media (min-height: 860px) and (max-height: 1000px){.component__countdown__circle[_ngcontent-%COMP%]{width:30vw}.component__countdown__circle.small-device[_ngcontent-%COMP%]{width:clamp(76px,25vw,130px);max-width:110px}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.value[_ngcontent-%COMP%]{font-size:clamp(1.8rem,14vw,2.2rem)}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.validity[_ngcontent-%COMP%]{font-size:clamp(.75rem,4.5vw,.8rem)}}@media (min-height: 914px){.component__countdown__circle[_ngcontent-%COMP%]{width:30vw}.component__countdown__circle.small-device[_ngcontent-%COMP%]{width:clamp(76px,25vw,130px)}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.value[_ngcontent-%COMP%]{font-size:clamp(1.8rem,14vw,2.3rem)}.component__countdown__circle[_ngcontent-%COMP%] .component__countdown__content_validity_box__validity-countdown-holder.validity[_ngcontent-%COMP%]{font-size:clamp(.75rem,4.5vw,.95rem)}}.paused[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] circle[_ngcontent-%COMP%], .paused[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{animation-play-state:paused}"]}),de})()},70713:(Ge,$,f)=>{f.d($,{E:()=>he});var o=f(45449),g=f(90603),h=f(47898),m=f(21284),L=f(90944),b=f(70079),k=f(99826);function F(Le,Ce){1&Le&&(o.\u0275\u0275elementStart(0,"div",16),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&Le&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_CREATE_GUEST_TITLE")," "))}function Y(Le,Ce){1&Le&&(o.\u0275\u0275elementStart(0,"div",16),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&Le&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_CREATE_GUEST_TITLE_UPDATE")," "))}function I(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",19),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Le){const ie=Ce.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ie," ")}}function D(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",17),o.\u0275\u0275template(1,I,2,1,"div",18),o.\u0275\u0275elementEnd()),2&Le){const ie=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",ie.getInputErrors("firstName"))}}function j(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",19),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Le){const ie=Ce.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ie," ")}}function W(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",17),o.\u0275\u0275template(1,j,2,1,"div",18),o.\u0275\u0275elementEnd()),2&Le){const ie=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",ie.getInputErrors("lastName"))}}function de(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",19),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Le){const ie=Ce.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ie," ")}}function K(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",17),o.\u0275\u0275template(1,de,2,1,"div",18),o.\u0275\u0275elementEnd()),2&Le){const ie=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",ie.getInputErrors("companyName"))}}function ee(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",19),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Le){const ie=Ce.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ie," ")}}function De(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",17),o.\u0275\u0275template(1,ee,2,1,"div",18),o.\u0275\u0275elementEnd()),2&Le){const ie=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",ie.getInputErrors("phoneNumber"))}}function Te(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",19),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Le){const ie=Ce.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ie," ")}}function ce(Le,Ce){if(1&Le&&(o.\u0275\u0275elementStart(0,"div",17),o.\u0275\u0275template(1,Te,2,1,"div",18),o.\u0275\u0275elementEnd()),2&Le){const ie=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",ie.getInputErrors("strange"))}}function oe(Le,Ce){if(1&Le){const ie=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",16)(1,"button",20),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ie);const me=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(me.onCreateGuest())}),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275elementEnd()()}if(2&Le){const ie=o.\u0275\u0275nextContext().ngIf;o.\u0275\u0275advance(1),o.\u0275\u0275property("disabled","Offline"===ie.status),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(3,2,"MD_CREATE_GUEST_BTN_CREATE")," ")}}function te(Le,Ce){if(1&Le){const ie=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",16)(1,"button",20),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ie);const me=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(me.onEditGuest())}),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275elementEnd()()}if(2&Le){const ie=o.\u0275\u0275nextContext().ngIf;o.\u0275\u0275advance(1),o.\u0275\u0275property("disabled","Offline"===ie.status),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(3,2,"MD_CREATE_GUEST_BTN_SALVE")," ")}}function ge(Le,Ce){if(1&Le&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,oe,4,4,"div",3),o.\u0275\u0275template(2,te,4,4,"div",3),o.\u0275\u0275elementContainerEnd()),2&Le){const ie=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ie.isNew),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ie.isNew)}}const xe=function(){return{mask:"+55 00 00000-0000",len:17}};let he=(()=>{class Le{constructor(ie,se,me,Ne,_e,we,Ee,le,Ue,ke,ze){this.modalController=ie,this.notificatorService=se,this.createEventService=me,this.loadingService=Ne,this.commonService=_e,this.navParams=we,this.companyService=Ee,this.logService=le,this.translateConfigService=Ue,this.utilsService=ke,this.stateService=ze,this.defaultFirstName="",this.defaultLastName="",this.defaultCompanyName="",this.defaultPhoneNumber="",this.defaultEmail="",this.defaultErrors=[],this.firstName=this.defaultFirstName,this.lastName=this.defaultLastName,this.companyName=this.defaultCompanyName,this.phoneNumber=this.defaultPhoneNumber,this.email=this.defaultEmail,this.errors=this.defaultErrors,this.processReceivedRouteGuest=ye=>{if(this.isNew=!ye,ye){const je=ye?.fullName?.split(" ")[0],Ze=ye?.fullName?.split(" ").slice(1).join(" ");this.firstName=ye?.fullName?je:this.processReceivedRouteGuestFirstName(ye),this.lastName=ye?.fullName?Ze:this.processReceivedRouteGuestLastName(ye),this.companyName=this.processReceivedRouteGuestCompany(ye),this.email=this.processReceivedRouteGuestEmail(ye)}},this.processReceivedRouteType=ye=>{this.type=ye||"company"},this.processReceivedRouteGuestFirstName=ye=>ye.firstName?ye.firstName:"",this.processReceivedRouteGuestLastName=ye=>ye.lastName?ye.lastName:"",this.processReceivedRouteGuestCompany=ye=>ye.company?ye.company:"",this.processReceivedRouteGuestPhone=ye=>ye.phone?ye.phone:"",this.processReceivedRouteGuestEmail=ye=>ye.email?ye.email:"",this.onClose=()=>{this.modalController.dismiss()},this.onFirstNameChange=ye=>{const{value:je}=ye.target;this.firstName=je},this.onLastNameChange=ye=>{const{value:je}=ye.target;this.lastName=je},this.onCompanyNameChange=ye=>{const{value:je}=ye.target;this.companyName=je},this.onPhoneNumberChange=ye=>{const{value:je}=ye.target;this.phoneNumber=je},this.onPhoneNumberFocus=ye=>{this.phoneNumber.trim()||(this.phoneNumber="+55")},this.onPhoneNumberBlur=ye=>{"+55"===this.phoneNumber.trim()&&(this.phoneNumber="")},this.onEmailChange=ye=>{const{value:je}=ye.target;this.email=je},this.onCreateGuest=()=>{const ye=this.validateCreateVisitor();this.thereWasErrors(ye)?(this.errors=ye,this.toastFieldsErro()):(this.errors=[],this.handleCreateVisitor())},this.handleCreateVisitor=()=>{this.loadingService.show(this.translateConfigService.translate("MD_CREATE_GUEST_LOADING_CREATING"),"create-guest");const ye=this.commonService.clearString(this.firstName),je=this.commonService.clearString(this.lastName),Ze=this.commonService.clearString(this.companyName),_t=this.commonService.clearString(this.email),At=this.commonService.clearString(this.phoneNumber),Vt={firstName:ye,lastName:je,company:Ze,email:_t.length?_t:null,phone:At.length?At.length<10?null:At.replace(/[() -]/g,""):null,image:"",imageContentType:""};console.log("handleCreateVisitor type:",this.type),"company"===this.type?this.createEventService.createGuest(Vt).then(this.handleCreateGuestSuccessResponse).catch(fn=>this.handleCreateGuestErrorResponse(fn,"createEventService_createGuest::company")):"personal"===this.type&&this.createEventService.createPrivateGuest(Vt).then(this.handleCreateGuestSuccessResponse).catch(fn=>this.handleCreateGuestErrorResponse(fn,"createEventService_createPrivateGuest::personal"))},this.handleCreateGuestSuccessResponse=ye=>{this.loadingService.hide(null,"create-guest");const je={title:this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_CREATE_TITLE"),message:this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_CREATE_MESSAGE"),type:"success"};this.notificatorService.notify(je),this.modalController.dismiss(ye)},this.handleCreateGuestErrorResponse=(ye,je)=>{console.log("handleCreateGuestErrorResponse:",ye),this.loadingService.hide(null,"create-guest");let Ze="";const _t=`http::handleCreateGuestErrorResponse::${je}`;if(ye.error&&ye.error){const Vt=ye.error.errorKey;500!==ye.error.status?Ze="documentexists"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_DOCUMENT_EXISTS"):"phoneexists"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_PHONE_EXISTS"):"emailexists"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_EMAIL_EXISTS"):"notmatched"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_NO_MATCHED"):"timeout"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_NO_TIMEOUT"):Vt:(this.logService.logError(_t,"",ye),Ze=this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_INTERNAL_SERVE_ERROR"))}else this.logService.logError(_t,"",ye),Ze=this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_NO_TIMEOUT");const At={title:this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_TITLE"),message:Ze,type:"error"};this.notificatorService.notify(At)},this.onEditGuest=()=>{const ye=this.validateCreateVisitor();this.thereWasErrors(ye)?(this.errors=ye,this.toastFieldsErro()):this.handleUpdateVisitor()},this.handleUpdateVisitor=()=>{this.loadingService.show(this.translateConfigService.translate("MD_CREATE_GUEST_LOADING_UPDATING"),"update-guest");const ye=this.commonService.clearString(this.firstName),je=this.commonService.clearString(this.lastName),Ze=this.commonService.clearString(this.companyName),_t=this.commonService.clearString(this.email),At=this.commonService.clearString(this.phoneNumber),Vt={...this.guest,firstName:ye,lastName:je,company:Ze,email:_t.length?_t:null,phone:At.length?At.length<10?null:At.replace(/[() -]/g,""):null};"company"===this.type?this.companyService.updateContact(Vt).then(fn=>this.handleUpdateGuestSuccessResponse(Vt)).catch(fn=>this.handleUpdateGuestErrorResponse(fn,"companyService_updateContact::company")):"personal"===this.type&&this.createEventService.createPrivateGuest(Vt).then(this.handleUpdateGuestSuccessResponse).catch(fn=>this.handleUpdateGuestErrorResponse(fn,"createEventService_createPrivateGuest::personal"))},this.handleUpdateGuestSuccessResponse=ye=>{this.loadingService.hide(null,"update-guest");const je={title:this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_UPDATE_TITLE"),message:"",type:"success"};this.notificatorService.notify(je),this.modalController.dismiss(ye)},this.handleUpdateGuestErrorResponse=(ye,je)=>{console.log("handleUpdateGuestErrorResponse:",ye),this.loadingService.hide(null,"update-guest");let Ze="";const _t=`http::handleUpdateGuestErrorResponse::${je}`;if(ye.error&&ye.error){const Vt=ye.error.errorKey;500!==ye.error.status?Ze="documentexists"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_DOCUMENT_EXISTS"):"phoneexists"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_PHONE_EXISTS"):"emailexists"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_EMAIL_EXISTS"):"notmatched"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_NO_MATCHED"):"timeout"===Vt?this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_NO_TIMEOUT"):Vt:(this.logService.logError(_t,"",ye),Ze=this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_SERVE_ERROR"))}else this.logService.logError(_t,"",ye),Ze=this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_NO_TIMEOUT");const At={title:this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_TITLE"),message:Ze,type:"error"};this.notificatorService.notify(At)},this.thereWasErrors=ye=>{let je=!1;return ye.forEach(Ze=>{Ze.errors.length&&(je=!0)}),je},this.thereWasErrorsAtInput=ye=>!!this.getInputErrors(ye).length,this.getInputErrors=ye=>{const je=this.errors.find(Ze=>Ze.input===ye);return je?je.errors:[]},this.validateCreateVisitor=()=>{const ye=[],je=this.commonService.clearString(this.firstName),Ze=this.commonService.clearString(this.lastName),_t=this.commonService.clearString(this.companyName),At=this.commonService.clearString(this.email),Vt=this.commonService.clearString(this.phoneNumber);return ye.push(this.validateFirstNameField({firstName:je,lastName:Ze})),ye.push(this.validateLastNameField({lastName:Ze})),ye.push(this.validateCompanyNameField({company:_t})),ye.push(this.validatePhoneNumberField({phoneNumber:Vt})),ye.push(this.validateEmailField({email:At})),console.log("results:",ye),ye},this.validateFirstNameField=ye=>{const je={input:"firstName",errors:[]};return ye.firstName?0===ye.firstName.length?je.errors.push(this.translateConfigService.translate("MD_CREATE_GUEST_TEXT_LENGTH_FIRSTNAME")):(_t=>{_t.firstName&&_t.lastName&&(_t.firstName+_t.lastName).length>40&&je.errors.push(this.translateConfigService.translate("MD_CREATE_GUEST_TEXT_LENGTH_FULLNAME"))})(ye):je.errors.push(this.translateConfigService.translate("MD_CREATE_GUEST_TEXT_FIRSTNAME_EMPTY")),je},this.validateLastNameField=ye=>{const je={input:"lastName",errors:[]};return ye.lastName?0===ye.lastName.length&&je.errors.push(this.translateConfigService.translate("MD_CREATE_GUEST_TEXT_LENGTH_LAST")):je.errors.push(this.translateConfigService.translate("MD_CREATE_GUEST_TEXT_LAST_EMPTY")),je},this.validateCompanyNameField=ye=>{const je={input:"companyName",errors:[]};return ye.company&&ye.company.length>40&&je.errors.push(this.translateConfigService.translate("MD_CREATE_GUEST_TEXT_LENGTH_COMPANY")),je},this.validatePhoneNumberField=ye=>{const je={input:"phoneNumber",errors:[]};return ye.phoneNumber&&ye.phoneNumber.length&&3!==(_t=ye.phoneNumber).length&&_t.length<13&&je.errors.push(this.translateConfigService.translate("MD_CREATE_GUEST_TEXT_INVALID_PHONENUMBER")),je;var _t},this.validateEmailField=ye=>{const je={input:"strange",errors:[]};return ye.email&&ye.email.length&&((_t=>this.utilsService.validateEmail(_t))(ye.email)||je.errors.push(this.translateConfigService.translate("MD_CREATE_GUEST_TEXT_EMAIL_INVALID"))),je},this.guest=we.get("contact"),this.type=we.get("type"),this.processReceivedRouteGuest(this.guest),this.processReceivedRouteType(this.type)}ngOnInit(){}toastFieldsErro(){const ie={title:this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_FIELD_TITLE"),message:this.translateConfigService.translate("MD_CREATE_GUEST_TOAST_FIELD_MESSAGE"),type:"error"};this.notificatorService.notify(ie)}}return Le.\u0275fac=function(ie){return new(ie||Le)(o.\u0275\u0275directiveInject(g.ModalController),o.\u0275\u0275directiveInject(h.V6),o.\u0275\u0275directiveInject(h.jc),o.\u0275\u0275directiveInject(h.bz),o.\u0275\u0275directiveInject(h.v_),o.\u0275\u0275directiveInject(g.NavParams),o.\u0275\u0275directiveInject(h.JN),o.\u0275\u0275directiveInject(h.$V),o.\u0275\u0275directiveInject(h.wK),o.\u0275\u0275directiveInject(h.FW),o.\u0275\u0275directiveInject(m.b))},Le.\u0275cmp=o.\u0275\u0275defineComponent({type:Le,selectors:[["app-create-guest"]],decls:39,vars:35,consts:[[1,"fix-header-modal-ios","ion-no-border"],[1,"centralized-content"],[1,"page-title"],["class","title",4,"ngIf"],[1,"ion-margin-vertical"],[1,"input-holder"],[1,"input"],["type","text","id","first-name","name","firstName",3,"placeholder","value","input"],["class","errors",4,"ngIf"],["type","text","id","last-name","name","lastName",3,"placeholder","value","input"],["type","text","id","company-name","name","companyName",3,"placeholder","value","input"],["type","phone","id","phoneNumber","name","phoneNumber","maxlength","17",3,"placeholder","value","brmasker","focus","blur","input"],["type","email","id","email","name","email",3,"placeholder","value","input"],[1,"button-holder"],[1,"back",3,"click"],[4,"ngIf"],[1,"title"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"],[3,"disabled","click"]],template:function(ie,se){1&ie&&(o.\u0275\u0275element(0,"ion-header",0),o.\u0275\u0275elementStart(1,"ion-content")(2,"div",1)(3,"div",2),o.\u0275\u0275template(4,F,3,3,"div",3),o.\u0275\u0275template(5,Y,3,3,"div",3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"ion-row")(7,"ion-col",4)(8,"div",5)(9,"div",6)(10,"input",7),o.\u0275\u0275listener("input",function(Ne){return se.onFirstNameChange(Ne)}),o.\u0275\u0275pipe(11,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(12,D,2,1,"div",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(13,"div",5)(14,"div",6)(15,"input",9),o.\u0275\u0275listener("input",function(Ne){return se.onLastNameChange(Ne)}),o.\u0275\u0275pipe(16,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(17,W,2,1,"div",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(18,"div",5)(19,"div",6)(20,"input",10),o.\u0275\u0275listener("input",function(Ne){return se.onCompanyNameChange(Ne)}),o.\u0275\u0275pipe(21,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(22,K,2,1,"div",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(23,"div",5)(24,"div",6)(25,"input",11),o.\u0275\u0275listener("focus",function(Ne){return se.onPhoneNumberFocus(Ne)})("blur",function(Ne){return se.onPhoneNumberBlur(Ne)})("input",function(Ne){return se.onPhoneNumberChange(Ne)}),o.\u0275\u0275pipe(26,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(27,De,2,1,"div",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(28,"div",5)(29,"div",6)(30,"input",12),o.\u0275\u0275listener("input",function(Ne){return se.onEmailChange(Ne)}),o.\u0275\u0275pipe(31,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(32,ce,2,1,"div",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(33,"div",13)(34,"button",14),o.\u0275\u0275listener("click",function(){return se.onClose()}),o.\u0275\u0275text(35),o.\u0275\u0275pipe(36,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(37,ge,3,2,"ng-container",15),o.\u0275\u0275pipe(38,"async"),o.\u0275\u0275elementEnd()()()()()),2&ie&&(o.\u0275\u0275advance(4),o.\u0275\u0275property("ngIf",se.isNew),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!se.isNew),o.\u0275\u0275advance(5),o.\u0275\u0275property("placeholder",o.\u0275\u0275pipeBind1(11,20,"MD_CREATE_GUEST_INPUT_FIRST_NAME"))("value",se.firstName),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",se.thereWasErrorsAtInput("firstName")),o.\u0275\u0275advance(3),o.\u0275\u0275property("placeholder",o.\u0275\u0275pipeBind1(16,22,"MD_CREATE_GUEST_INPUT_LAST_NAME"))("value",se.lastName),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",se.thereWasErrorsAtInput("lastName")),o.\u0275\u0275advance(3),o.\u0275\u0275property("placeholder",o.\u0275\u0275pipeBind1(21,24,"MD_CREATE_GUEST_INPUT_COMPANY"))("value",se.companyName),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",se.thereWasErrorsAtInput("companyName")),o.\u0275\u0275advance(3),o.\u0275\u0275property("placeholder",o.\u0275\u0275pipeBind1(26,26,"MD_CREATE_GUEST_INPUT_PHONE"))("value",se.phoneNumber)("brmasker",o.\u0275\u0275pureFunction0(34,xe)),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",se.thereWasErrorsAtInput("phoneNumber")),o.\u0275\u0275advance(3),o.\u0275\u0275property("placeholder",o.\u0275\u0275pipeBind1(31,28,"MD_CREATE_GUEST_INPUT_EMAIL"))("value",se.email),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",se.thereWasErrorsAtInput("strange")),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(36,30,"MD_CREATE_GUEST_BTN_CLOSE")," "),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",o.\u0275\u0275pipeBind1(38,32,se.stateService.getState())))},dependencies:[L.NgForOf,L.NgIf,g.IonCol,g.IonContent,g.IonHeader,g.IonRow,b.bS,L.AsyncPipe,k.X$],styles:[".centralized-content[_ngcontent-%COMP%]{height:calc(100vh - 56px);display:flex;justify-content:flex-start;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .errors[_ngcontent-%COMP%]{width:80%;margin:12px 10% 0;color:#f0181b;text-align:center}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:32px 32px 8px;font-size:initial!important}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{padding-top:1em;justify-content:center;margin:0}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:0;margin-bottom:8px}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]:first-of-type{margin-top:0}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:8px;color:#333}.centralized-content[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{display:flex;justify-content:space-around}ion-header.fix-header-modal-ios.ios[_ngcontent-%COMP%]{height:0px!important}"]}),Le})()},31044:(Ge,$,f)=>{f.d($,{P:()=>j});var o=f(45449),g=f(15439),h=f.n(g),m=f(47898),L=f(90944),b=f(90603),k=f(3035);function F(W,de){1&W&&(o.\u0275\u0275elementStart(0,"ion-button",6),o.\u0275\u0275text(1," Cancelar "),o.\u0275\u0275elementEnd())}function Y(W,de){1&W&&(o.\u0275\u0275elementStart(0,"ion-button",6),o.\u0275\u0275text(1," OK "),o.\u0275\u0275elementEnd())}const I=function(W){return{isNotificationScreen:W}},D=["*"];let j=(()=>{class W{constructor(K){this.momentService=K,this.format=24,this.valueHour=h()().format("HH:mm"),this.timeSet=new o.EventEmitter,this.isNotificationScreen=!1,this.customTheme={container:{bodyBackgroundColor:"#fff",buttonColor:"#6cb52c"},dial:{dialBackgroundColor:"#6cb52c",dialEditableActiveColor:"#6cb52c"},clockFace:{clockFaceBackgroundColor:"#f0f0f0",clockHandColor:"#6cb52c",clockFaceTimeInactiveColor:"#6cb52c"}}}ngOnInit(){console.log("valueHour:",this.valueHour)}get formattedValue(){if(!this.valueHour)return h()().format("HH:mm");try{let K=this.valueHour;if(K.includes(":")){const De=K.split(":");De.length>=2&&(K=`${De[0]}:${De[1]}`)}const ee=h()(K,"HH:mm",!0);if(ee.isValid())return ee.format("HH:mm")}catch(K){console.warn("Erro ao formatar hor\xe1rio:",this.valueHour,K)}return h()().format("HH:mm")}get displayValue(){if(this.isNotificationScreen)try{return this.valueHour?.split(":").slice(0,2).join(":")||"00:00"}catch{return"00:00"}const K=new Date,ee=new Date(K.toDateString()+" "+this.formattedValue);return this.momentService.formatAs(ee,"HH[h]mm[min]")}onTimeSet(K){console.log("Time selected:",K),this.timeSet.emit(K)}}return W.\u0275fac=function(K){return new(K||W)(o.\u0275\u0275directiveInject(m.EM))},W.\u0275cmp=o.\u0275\u0275defineComponent({type:W,selectors:[["app-custom-timepicker"]],inputs:{format:"format",valueHour:"valueHour",isNotificationScreen:"isNotificationScreen"},outputs:{timeSet:"timeSet"},ngContentSelectors:D,decls:10,vars:10,consts:[[1,"content_custom_timepicker"],["type","button",1,"hidden-input-button",2,"width","100px",3,"ngxTimepicker","format","value","ngClass"],[3,"cancelBtnTmpl","confirmBtnTmpl","theme","timeSet"],["picker",""],["cancelBtn",""],["confirmBtn",""],["fill","clear"]],template:function(K,ee){if(1&K&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div",0)(1,"button",1),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"ngx-material-timepicker",2,3),o.\u0275\u0275listener("timeSet",function(Te){return ee.onTimeSet(Te)}),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(5,F,2,0,"ng-template",null,4,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275template(7,Y,2,0,"ng-template",null,5,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275projection(9),o.\u0275\u0275elementEnd()),2&K){const De=o.\u0275\u0275reference(4),Te=o.\u0275\u0275reference(6),ce=o.\u0275\u0275reference(8);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngxTimepicker",De)("format",ee.format)("value",ee.formattedValue)("ngClass",o.\u0275\u0275pureFunction1(8,I,ee.isNotificationScreen)),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ee.displayValue," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("cancelBtnTmpl",Te)("confirmBtnTmpl",ce)("theme",ee.customTheme)}},dependencies:[L.NgClass,b.IonButton,k.ro,k.I2],styles:[".content_custom_timepicker[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em;background:transparent;position:relative;left:.6em;color:#000}.content_custom_timepicker[_ngcontent-%COMP%] button.isNotificationScreen[_ngcontent-%COMP%]{width:98px!important;font-size:inherit;left:initial;color:inherit;font-weight:inherit;width:inherit;padding:inherit}"]}),W})()},38124:(Ge,$,f)=>{f.d($,{I:()=>L});var o=f(45449),g=f(90944),m=f(99826);let L=(()=>{class v{constructor(){this.reject=()=>{console.log("reject"),this.onRejectCallback()},this.accept=()=>{console.log("accept"),this.onSuccessCallback()}}ngOnInit(){}}return v.\u0275fac=function(k){return new(k||v)},v.\u0275cmp=o.\u0275\u0275defineComponent({type:v,selectors:[["app-forgot-password-modal"]],inputs:{show:"show",onRejectCallback:"onRejectCallback",onSuccessCallback:"onSuccessCallback"},decls:18,vars:13,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[1,"topic"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"accept",3,"click"]],template:function(k,F){1&k&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementStart(3,"div",3)(4,"div",4),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"div",5)(8,"div",6),o.\u0275\u0275text(9),o.\u0275\u0275pipe(10,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(11,"div",7)(12,"button",8),o.\u0275\u0275listener("click",function(){return F.reject()}),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(15,"button",9),o.\u0275\u0275listener("click",function(){return F.accept()}),o.\u0275\u0275text(16),o.\u0275\u0275pipe(17,"translate"),o.\u0275\u0275elementEnd()()()()()),2&k&&(o.\u0275\u0275property("ngClass","forgot-password-modal "+(F.show?"show":"")),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(6,5,"MD_FORGOTPASSWORD_TEXT_TITLE")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(10,7,"MD_FORGOTPASSWORD_TEXT_DESCRIPTION")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(14,9,"MD_FORGOTPASSWORD_BTN_CANCEL")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(17,11,"MD_FORGOTPASSWORD_BTN_NEXT")," "))},dependencies:[g.NgClass,m.X$],styles:[".forgot-password-modal[_ngcontent-%COMP%]{height:0;bottom:0;position:absolute;width:100vw;transition:height .5s ease-in-out;overflow:hidden}.forgot-password-modal.show[_ngcontent-%COMP%]{height:100vh;transition:height .5s ease-out}.forgot-password-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{opacity:.3;transition:opacity .5s ease-out}.forgot-password-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{margin-top:35%;transition:margin-top 1s ease}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:0;top:0;transition:opacity .5s ease-out}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{min-height:60vh;background-color:#fff;width:86vw;margin:100% auto auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;transition:margin-top 1s ease}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 6em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{margin-bottom:16px}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{font-weight:500}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:space-between;align-items:center;overflow:hidden;background-color:#fff}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:.9em;background-color:#fff;color:#ccc;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.forgot-password-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),v})()},33159:(Ge,$,f)=>{f.d($,{R:()=>v});var o=f(45449),g=f(47898),h=f(90944);const L=function(b){return{"small-device":b}};let v=(()=>{class b{constructor(F){this.deviceInfo=F,this.tabindex=0}ngOnInit(){}}return b.\u0275fac=function(F){return new(F||b)(o.\u0275\u0275directiveInject(g.Hc))},b.\u0275cmp=o.\u0275\u0275defineComponent({type:b,selectors:[["app-full-logo"]],inputs:{tabindex:"tabindex"},decls:2,vars:4,consts:[[1,"logo-holder",3,"ngClass","tabIndex"],["src","assets/full-logo.svg","width","223","role","img","alt","Logo Key Access"]],template:function(F,Y){1&F&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275element(1,"img",1),o.\u0275\u0275elementEnd()),2&F&&o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(2,L,Y.deviceInfo.isSmallScreen()))("tabIndex",Y.tabindex)},dependencies:[h.NgClass],styles:[".logo-holder[_ngcontent-%COMP%]{text-align:center;margin:8vh auto 0;width:60%}.logo-holder.small-device[_ngcontent-%COMP%]{margin:7.3vh auto 0!important}"]}),b})()},36290:(Ge,$,f)=>{f.d($,{G:()=>K});var o=f(45449),g=f(82687),h=f(47898),m=f(22255),L=f(90944),b=f(90603),k=f(99826);function F(ee,De){if(1&ee&&(o.\u0275\u0275elementStart(0,"ion-buttons",10),o.\u0275\u0275element(1,"ion-back-button",11),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&ee){const Te=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("defaultHref",Te.defaultHref)("mode",Te.isHome?"ios":"md"),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind1(2,3,"BTN_BACK"))}}function Y(ee,De){1&ee&&(o.\u0275\u0275elementStart(0,"ion-buttons",12),o.\u0275\u0275element(1,"ion-img",13),o.\u0275\u0275elementEnd())}function I(ee,De){if(1&ee){const Te=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-button",15),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(Te);const oe=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(oe.navigateToPendingLiberations())}),o.\u0275\u0275pipe(1,"translate"),o.\u0275\u0275elementStart(2,"div",16),o.\u0275\u0275element(3,"ion-icon",17),o.\u0275\u0275elementEnd()()}2&ee&&o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind1(1,1,"ACCESSIBILITY.ARIA_LABELS.PENDING_RELEASE"))}function D(ee,De){if(1&ee&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,I,4,3,"ion-button",14),o.\u0275\u0275elementContainerEnd()),2&ee){const Te=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Te.pendingRelease.existsPending)}}function j(ee,De){if(1&ee){const Te=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-button",18),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(Te);const oe=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(oe.navigateToQRCode())}),o.\u0275\u0275element(1,"ion-icon",19),o.\u0275\u0275elementEnd()}}function W(ee,De){if(1&ee){const Te=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-button",20),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(Te);const oe=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(oe.callRefresh.emit())}),o.\u0275\u0275element(1,"ion-icon",21),o.\u0275\u0275elementEnd()}}function de(ee,De){1&ee&&(o.\u0275\u0275elementStart(0,"ion-menu-toggle",22)(1,"ion-button"),o.\u0275\u0275element(2,"ion-icon",23),o.\u0275\u0275elementEnd()())}let K=(()=>{class ee{constructor(Te,ce,oe){this.navigationService=Te,this.pendingRelease=ce,this.managerNotificationPersistentService=oe,this.defaultHref="home",this.showBtnOnback=!0,this.menuToggle=!0,this.toQRCode=!0,this.isHome=!1,this.refresh=!0,this.showBadge=!0,this.onBack=new o.EventEmitter,this.callRefresh=new o.EventEmitter,this.faQrCodeIcon=g.rtB,this.isPending=!1}ngOnInit(){console.log()}ngOnDestroy(){console.log()}navigateToQRCode(){this.navigationService.forward(["/home"])}navigateToPendingLiberations(){this.navigationService.forward(["/push-notifications"]),this.managerNotificationPersistentService.stopContinuousVibration()}}return ee.\u0275fac=function(Te){return new(Te||ee)(o.\u0275\u0275directiveInject(h.f5),o.\u0275\u0275directiveInject(h.xJ),o.\u0275\u0275directiveInject(m._))},ee.\u0275cmp=o.\u0275\u0275defineComponent({type:ee,selectors:[["app-header"]],inputs:{title:"title",img:"img",defaultHref:"defaultHref",showBtnOnback:"showBtnOnback",menuToggle:"menuToggle",toQRCode:"toQRCode",isHome:"isHome",refresh:"refresh",showBadge:"showBadge"},outputs:{onBack:"onBack",callRefresh:"callRefresh"},decls:12,vars:9,consts:[[2,"overflow","visible",3,"mode"],["role","columnheader",3,"mode"],["toolbar",""],["slot","start",4,"ngIf"],["slot","start","class","ion-margin-start",4,"ngIf"],["slot","end",1,"ion-margin-end"],[4,"ngIf"],["aria-label","QrCode",3,"click",4,"ngIf"],[3,"click",4,"ngIf"],["auto-hide","false",4,"ngIf"],["slot","start"],["text","",3,"defaultHref","mode"],["slot","start",1,"ion-margin-start"],["alt","logo Key Access","src","./assets/toolbar-logo.png"],["color","danger","class","pulsate-fwd",3,"click",4,"ngIf"],["color","danger",1,"pulsate-fwd",3,"click"],[1,"circle"],["src","./assets/img/icon-alert-cancela.svg"],["aria-label","QrCode",3,"click"],["src","./assets/svg/faqrcode.svg",2,"color","#656768"],[3,"click"],["slot","icon-only","mode","ios","name","refresh"],["auto-hide","false"],["slot","icon-only","mode","ios","name","menu"]],template:function(Te,ce){1&Te&&(o.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar",1,2),o.\u0275\u0275template(3,F,3,5,"ion-buttons",3),o.\u0275\u0275template(4,Y,2,0,"ion-buttons",4),o.\u0275\u0275elementStart(5,"ion-title"),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"ion-buttons",5),o.\u0275\u0275template(8,D,2,1,"ng-container",6),o.\u0275\u0275template(9,j,2,0,"ion-button",7),o.\u0275\u0275template(10,W,2,0,"ion-button",8),o.\u0275\u0275template(11,de,3,0,"ion-menu-toggle",9),o.\u0275\u0275elementEnd()()()),2&Te&&(o.\u0275\u0275property("mode",ce.isHome?"ios":"md"),o.\u0275\u0275advance(1),o.\u0275\u0275property("mode",ce.isHome?"ios":"md"),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",!ce.isHome&&ce.showBtnOnback),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ce.isHome),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",ce.title?ce.title:"KeyAccess"," "),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",ce.showBadge),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ce.toQRCode&&!ce.isHome),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ce.refresh&&!ce.isHome),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ce.menuToggle))},dependencies:[L.NgIf,b.IonBackButton,b.IonButton,b.IonButtons,b.IonHeader,b.IonIcon,b.IonImg,b.IonMenuToggle,b.IonTitle,b.IonToolbar,b.IonBackButtonDelegate,k.X$],styles:["ion-toolbar[_ngcontent-%COMP%]{font-family:Nunito,sans-serif;--background: #fff}ion-toolbar[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%]{height:25px;width:25px}ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{letter-spacing:1px}ion-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:24px;padding:0;width:24px;margin:0;font-size:19px;color:#656768}ion-button.hover[_ngcontent-%COMP%]{background:#fff}.circle[_ngcontent-%COMP%]{position:relative}.circle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;width:15px;height:15px;background:#6cb52d;display:flex;justify-content:center;align-items:center;border-radius:20px;left:-7px;z-index:1;color:#fff;font-weight:600;padding:2px;font-size:6px!important}.circle[_ngcontent-%COMP%] .circle_two[_ngcontent-%COMP%]{height:20px;width:20px;background:var(--ion-color-danger);overflow:visible;display:flex;align-items:center;justify-content:center;border-radius:50%}.circle[_ngcontent-%COMP%] .circle_two[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{position:relative;height:12px;width:12px;background:var(--ion-color-danger);border-radius:50%;border:solid 1px #fff;display:flex;align-items:center;justify-content:center;align-content:center}.circle[_ngcontent-%COMP%] .circle_two[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{background:#fff;width:4px;height:4px;position:relative;border-radius:50%}.pulsate-fwd[_ngcontent-%COMP%]{border-radius:50%;animation:pulsate-fwd .8s ease-in-out infinite both;outline:none}ion-button.pulsate-fwd[_ngcontent-%COMP%]{--border-radius: 50%;width:38px;height:38px}@keyframes pulsate-fwd{0%{transform:scale(1)}50%{transform:scale(1.5)}to{transform:scale(1)}}"]}),ee})()},24889:(Ge,$,f)=>{f.d($,{Zf:()=>ko.Z,_5:()=>W,Ao:()=>de.A,HS:()=>K.H,NO:()=>ee,AL:()=>De,eH:()=>Te.e,N6:()=>me,$s:()=>Ne,qk:()=>_e,Lr:()=>y,_y:()=>Vt,v_:()=>Tt,Ez:()=>en.E,PF:()=>Gt.P,xv:()=>fo,X4:()=>Hg,le:()=>Cr,R2:()=>dr.R,rD:()=>br,Gt:()=>uo.G,bn:()=>Li,_Z:()=>Fo._,lU:()=>ut,fG:()=>nt.f,nB:()=>Ot.n,cG:()=>Zt.c,G:()=>un,Mr:()=>Pn,MT:()=>On.M,Cs:()=>Ho,id:()=>Mo,Mf:()=>Zi,w9:()=>tr.w,Cu:()=>Hn,lZ:()=>gi,OO:()=>vi,xx:()=>ci.x,c7:()=>aa.c,gy:()=>qo,sX:()=>Zn,I1:()=>Xa});var o=f(15861),a=f(45449),g=f(47423),h=f(69107),m=f(90603),L=f(24006),v=f(47898),b=f(90944),k=f(99826);const F=["pinInput"];function Y(t,n){1&t&&a.\u0275\u0275element(0,"ion-icon",16)}function I(t,n){1&t&&a.\u0275\u0275element(0,"ion-icon",17)}function D(t,n){1&t&&(a.\u0275\u0275elementStart(0,"ion-label"),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementEnd()),2&t&&(a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(2,1,"MD_DELETE_ACCOUNT.TEXT_FINGER_BIOMETRIC")," "))}function j(t,n){1&t&&(a.\u0275\u0275elementStart(0,"ion-label"),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementEnd()),2&t&&(a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(2,1,"MD_DELETE_ACCOUNT.TEXT_FINGER_FACIAL")," "))}let W=(()=>{class t{constructor(e,r,i,s,c,l,u,d,p,M,x,R,U){var J=this;this.modalCtrl=e,this.formBuilder=r,this.keyboardService=i,this.platform=s,this.domCtrl=c,this.renderer=l,this.translateConfigService=u,this.authService=d,this.loaderService=p,this.lockService=M,this.logService=x,this.notificatorService=R,this.overlayService=U,this.authSuccess=new a.EventEmitter,this.authError=new a.EventEmitter,this.modalClosed=new a.EventEmitter,this.isFingerAvaliable=!1,this.subscription$=[],this.setFocus=()=>{this.platform.is("android")?setTimeout(()=>{this.focusInput(),this.keyboardService.show()},1e3):this.focusInput()},this.focusInput=()=>{this.pinInputElement.nativeElement.focus()},this.onPinChange=ne=>{const ue=this.pinForm.controls.pin.value;if(4===ue.length){console.log(ue);const Ie=setTimeout(()=>{this.onSubmit(),clearTimeout(Ie)},250)}},this.resetPin=()=>{this.pinForm.controls.pin.setValue("")},this.onSubmit=()=>{this.loaderService.show(this.translateConfigService.translate("LOADING_CHECKING_DATA"));let ne=null;const ue=this.pinInputElement.nativeElement,Ie=function(){var Ae=(0,o.Z)(function*(){ne&&ne.unsubscribe();const Oe=J.pinForm.controls.pin.value;try{if(yield J.authService.validatePassword(Oe))J.loaderService.hide(),J.addClassSuccess(),setTimeout(()=>{J.authSuccess.emit({success:!0}),J.close("success")},500);else{J.loaderService.hide(),J.addRemoveClass(ue,"content_modal__shake-horizontal_error",!0),setTimeout(()=>{J.addRemoveClass(ue,"content_modal__shake-horizontal_error",!1)},2e3),J.resetPin(),J.lockService.unlock("updating-pin-value");const et=J.translateConfigService.translate("PG_IDENTITY_CHECK_TOAST_INVALID_PIN_TITLE"),Ct=J.translateConfigService.translate("PG_IDENTITY_CHECK_TOAST_INVALID_PIN_MESSAGE");J.toast(et,Ct),J.logService.logEvent("insert-pin","The user entered an incorrect PIN"),J.authError.emit(Ct)}}catch(Fe){J.loaderService.hide(),J.resetPin(),J.lockService.unlock("updating-pin-value");const et=J.translateConfigService.translate("PG_IDENTITY_CHECK_TOAST_ERROR_TITLE"),Ct=J.translateConfigService.translate("PG_IDENTITY_CHECK_TOAST_ERROR_MESSAGE");J.notificatorService.notify({title:et,message:Ct,type:"error"}),J.logService.logEvent("pin::storage","An error occurred while retrieving the PIN from storage",Fe),J.authError.emit(Ct)}finally{J.loaderService.hide()}});return function(){return Ae.apply(this,arguments)}}();ne=this.keyboardService.onHideObservable?.subscribe(Ie),this.keyboardService.isVisible()?this.keyboardService.hide():Ie()}}ngOnInit(){var e=this;return(0,o.Z)(function*(){if(e.pinForm=e.formBuilder.group({pin:[""]}),"web"!==g.dV.getPlatform()){const r=yield h.Gw.checkBiometry();e.isFingerAvaliable=r.isAvailable,r.isAvailable&&e.isAvaliableFinger(r.biometryType)}})()}close(e){this.modalClosed.emit(e),this.modalCtrl.dismiss({close:!0},e)}ngOnDestroy(){this.subscription$.forEach(e=>e.unsubscribe)}showFingerPrint(e){var r=this;this.platform.ready().then((0,o.Z)(function*(){const i=yield h.Gw.checkBiometry();if(r.isFingerAvaliable=i.isAvailable,i.isAvailable){r.isAvaliableFinger(i.biometryType);const s=setTimeout(()=>{r.platform.is("ios")&&"face"===r.typeFinger&&!e||(r.showFingerprintAuthentication(),clearTimeout(s))},100)}}))}showFingerprintAuthentication(){var e=this;return(0,o.Z)(function*(){const r=e.translateConfigService.translate("PG_IDENTITY_CHECK_FINGER_CANCELTITLE"),i=e.translateConfigService.translate("PG_IDENTITY_CHECK_FINGER_DESCRIPTION"),s=e.translateConfigService.translate("PG_IDENTITY_CHECK_FINGER_TITLE"),l={reason:i,androidSubtitle:e.translateConfigService.translate("PG_IDENTITY_CHECK_FINGER_SUBTITLE"),androidTitle:s,cancelTitle:r,allowDeviceCredential:!0,androidBiometryStrength:h.bO.weak,androidConfirmationRequired:!0};try{const u=yield h.Gw.authenticate(l);console.log(u),e.onSubmitFingerPrint(!0)}catch(u){throw console.log("Error authent",u),e.logService.logError("plugin_biometric::auth_verification_modal","error authenticating biometric|facial",u),e.authError.emit("Erro na autentica\xe7\xe3o biom\xe9trica"),new Error(u)}})()}onSubmitFingerPrint(e){var r=this;return(0,o.Z)(function*(){try{if(r.loaderService.show(r.translateConfigService.translate("LOADING_CHECKING_DATA")),yield r.authService.validatePassword(null,e))r.loaderService.hide(),r.authSuccess.emit({success:!0}),r.close("success");else{r.loaderService.hide(),r.lockService.unlock("updating-pin-value");const s=r.translateConfigService.translate("PG_IDENTITY_CHECK_TOAST_INVALID_PIN_TITLE"),c=r.translateConfigService.translate("PG_IDENTITY_CHECK_TOAST_INVALID_PIN_MESSAGE");r.toast(s,c),r.logService.logEvent("invalid:biometria_or_facial","Invalid biometrics or facial recognition when attempting to authenticate."),r.authError.emit(c)}}catch(i){r.loaderService.hide(),r.lockService.unlock("updating-pin-value");const s=r.translateConfigService.translate("PG_IDENTITY_CHECK_TOAST_ERROR_TITLE"),c=r.translateConfigService.translate("PG_IDENTITY_CHECK_TOAST_ERROR_MESSAGE");r.toast(s,c),r.logService.logEvent("pin::storage","An error occurred while retrieving the PIN from storage",i),r.authError.emit(c)}finally{r.loaderService.hide()}})()}isAvaliableFinger(e){switch(e){case h.dz.faceAuthentication:case h.dz.faceId:this.typeFinger="face";break;case h.dz.fingerprintAuthentication:this.typeFinger="biometric";break;case h.dz.touchId:this.typeFinger="finger";break;case h.dz.irisAuthentication:this.typeFinger="iris";break;default:this.typeFinger="biometric"}}addClassSuccess(){this.domCtrl.write(()=>{this.renderer.removeClass(this.pinInputElement.nativeElement,"content_modal__shake-horizontal_error"),this.renderer.addClass(this.pinInputElement.nativeElement,"content_modal__shake-success")})}addRemoveClass(e,r,i){this.domCtrl.write(()=>{i?this.renderer.addClass(e,r):this.renderer.removeClass(e,r)})}toast(e,r){var i=this;return(0,o.Z)(function*(s,c,l="danger"){yield i.overlayService.toast({header:s,message:c,mode:"ios",duration:5e3,color:l}).finally(()=>{})}).apply(this,arguments)}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(L.UntypedFormBuilder),a.\u0275\u0275directiveInject(v.i8),a.\u0275\u0275directiveInject(m.Platform),a.\u0275\u0275directiveInject(m.DomController),a.\u0275\u0275directiveInject(a.Renderer2),a.\u0275\u0275directiveInject(v.wK),a.\u0275\u0275directiveInject(v.e8),a.\u0275\u0275directiveInject(v.D1),a.\u0275\u0275directiveInject(v.We),a.\u0275\u0275directiveInject(v.$V),a.\u0275\u0275directiveInject(v.V6),a.\u0275\u0275directiveInject(v.F0))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-auth-verification-modal"]],viewQuery:function(e,r){if(1&e&&a.\u0275\u0275viewQuery(F,5,a.ElementRef),2&e){let i;a.\u0275\u0275queryRefresh(i=a.\u0275\u0275loadQuery())&&(r.pinInputElement=i.first)}},outputs:{authSuccess:"authSuccess",authError:"authError",modalClosed:"modalClosed"},decls:22,vars:15,consts:[[1,"auth_verification_content_modal"],["tabindex","5",1,"auth_verification_content_modal__btn_close_icon",3,"click"],["slot","icon-only","name","close"],["tabindex","1",1,"auth_verification_content_modal__title"],[3,"innerHTML"],[1,"auth_verification_content_modal__input"],[3,"formGroup","ngSubmit"],["tabindex","2","id","pinInput","type","password","formControlName","pin","maxlength","4","pattern","[0-9]*","inputmode","numeric",3,"autofocus","placeholder","input"],["pinInput",""],[1,"auth_verification_content_modal__fingeer_btn"],["mode","ios","fill","clear","tabindex","3",3,"click"],["aria-hidden","true","name","finger-print",4,"ngIf"],["src","../../assets/icon/faceid.svg",4,"ngIf"],[4,"ngIf"],[1,"auth_verification_content_modal__btn_close",3,"click"],["mode","ios","color","primary","shape","round","tabindex","4"],["aria-hidden","true","name","finger-print"],["src","../../assets/icon/faceid.svg"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275listener("click",function(){return r.close("cancel")}),a.\u0275\u0275element(2,"ion-icon",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3)(4,"ion-text"),a.\u0275\u0275element(5,"span",4),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(7,"div",5)(8,"form",6),a.\u0275\u0275listener("ngSubmit",function(){return r.onSubmit()}),a.\u0275\u0275elementStart(9,"input",7,8),a.\u0275\u0275listener("input",function(s){return r.onPinChange(s)}),a.\u0275\u0275pipe(11,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(12,"div",9)(13,"ion-button",10),a.\u0275\u0275listener("click",function(s){return r.showFingerPrint(s)}),a.\u0275\u0275template(14,Y,1,0,"ion-icon",11),a.\u0275\u0275template(15,I,1,0,"ion-icon",12),a.\u0275\u0275template(16,D,3,3,"ion-label",13),a.\u0275\u0275template(17,j,3,3,"ion-label",13),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(18,"div",14),a.\u0275\u0275listener("click",function(){return r.close("cancel")}),a.\u0275\u0275elementStart(19,"ion-button",15),a.\u0275\u0275text(20),a.\u0275\u0275pipe(21,"translate"),a.\u0275\u0275elementEnd()()()),2&e&&(a.\u0275\u0275advance(5),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind1(6,9,"MD_DELETE_ACCOUNT.TITLE"),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(3),a.\u0275\u0275property("formGroup",r.pinForm),a.\u0275\u0275advance(1),a.\u0275\u0275property("autofocus",!0)("placeholder",a.\u0275\u0275pipeBind1(11,11,"MD_DELETE_ACCOUNT.CHECK_INPUT")),a.\u0275\u0275advance(5),a.\u0275\u0275property("ngIf","finger"===r.typeFinger||"biometric"===r.typeFinger),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","face"===r.typeFinger),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","face"!==r.typeFinger),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","face"===r.typeFinger),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(21,13,"BTN_CLOSE")," "))},dependencies:[b.NgIf,m.IonButton,m.IonIcon,m.IonLabel,m.IonText,L.\u0275NgNoValidate,L.DefaultValueAccessor,L.NgControlStatus,L.NgControlStatusGroup,L.MaxLengthValidator,L.PatternValidator,L.FormGroupDirective,L.FormControlName,k.X$],styles:[".auth_verification_content_modal[_ngcontent-%COMP%]{background:#fff;display:flex;flex-direction:column;justify-content:space-evenly;height:100%;position:relative;align-items:center;padding:1em}.auth_verification_content_modal__title[_ngcontent-%COMP%]{font-weight:400;font-size:1em;line-height:19px;text-align:center;padding-top:.5em;color:#757575;padding-inline:1em}.auth_verification_content_modal__input[_ngcontent-%COMP%]{height:50px;width:308px;text-align:center;padding:1em 0;display:flex;align-items:center;margin-top:1em;justify-content:center}.auth_verification_content_modal__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:308px;height:45px;text-align:center;background:rgba(227,226,226,.04);border:1px solid #e3e2e2;border-radius:36px}.auth_verification_content_modal__input[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]:focus{border-color:var(--ion-color-medium);caret-color:var(--ion-color-primary);border-width:1px;outline:none}.auth_verification_content_modal__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:var(--ion-color-medium);opacity:.5}.auth_verification_content_modal__input[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{color:var(--ion-color-dark);opacity:.5}.auth_verification_content_modal__fingeer_btn[_ngcontent-%COMP%]{height:2.65em;display:flex;align-items:center}.auth_verification_content_modal__btn_close_icon[_ngcontent-%COMP%]{position:absolute;top:1em;right:1em}.auth_verification_content_modal__btn_close_icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:1.53em;color:#c5c5c5}.auth_verification_content_modal__btn_close[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{width:118px;height:40px}.auth_verification_content_modal__shake-horizontal_error[_ngcontent-%COMP%]{border:1px solid var(--ion-color-danger)!important;box-shadow:0 .5em red;animation:shake .2s ease-in-out 0s 2;-webkit-animation:shake .2s ease-in-out 0s 2}.auth_verification_content_modal__shake-success[_ngcontent-%COMP%]{border:1px solid var(--ion-color-primary)!important}.auth_verification_content_modal__remove_error[_ngcontent-%COMP%], .auth_verification_content_modal__remove_success[_ngcontent-%COMP%]{border:1px solid #e3e2e2}@keyframes shake{0%{margin-left:0rem}25%{margin-left:.5rem}75%{margin-left:-.5rem}to{margin-left:0rem}}"]}),t})();var de=f(87871),K=f(37792);let ee=(()=>{class t{constructor(e){this.modalController=e,this.back=()=>{this.modalController.dismiss(null)}}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-cant-create-event-from-here-modal"]],decls:15,vars:10,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[1,"modal-footer"],[1,"reject",3,"click"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(7,"div",5)(8,"div"),a.\u0275\u0275text(9),a.\u0275\u0275pipe(10,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(11,"div",6)(12,"button",7),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275text(13),a.\u0275\u0275pipe(14,"translate"),a.\u0275\u0275elementEnd()()()()()),2&e&&(a.\u0275\u0275property("ngClass","cant-create-event-from-here-modal"),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,4,"MD_CAN_CREATE_EVENT_FROM_HERE_TITLE")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(10,6,"MD_CAN_CREATE_EVENT_FROM_HERE_DESCRIPTION")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(14,8,"MD_CAN_CREATE_EVENT_FROM_HERE_BTN_CLOSE")," "))},dependencies:[b.NgClass,k.X$],styles:[".cant-create-event-from-here-modal[_ngcontent-%COMP%]{width:100vw;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;height:100vh}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:.3;top:0;transition:opacity .5s ease-out}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{height:60vh;background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;margin-top:20vh;transition:margin-top 1s ease}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #eee;border-radius:4px;margin-bottom:8px}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .company-name[_ngcontent-%COMP%]{font-weight:700}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .login[_ngcontent-%COMP%]{color:#656768}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.cant-create-event-from-here-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),t})(),De=(()=>{class t{constructor(e,r){this.cantCreateEventModalService=e,this.ngZoneService=r,this.ok=()=>{this.cantCreateEventModalService.hideModal()}}ngOnInit(){var e=this;this.cantCreateEventModalService.observable.subscribe(function(){var r=(0,o.Z)(function*(i){yield e.ngZoneService.run(()=>{e.show=i})});return function(i){return r.apply(this,arguments)}}())}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(v._G),a.\u0275\u0275directiveInject(v.zf))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-cant-create-event-modal"]],decls:18,vars:13,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[1,"modal-footer"],[1,"reject",3,"click"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(7,"div",5)(8,"div"),a.\u0275\u0275text(9),a.\u0275\u0275pipe(10,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(11,"div"),a.\u0275\u0275text(12),a.\u0275\u0275pipe(13,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(14,"div",6)(15,"button",7),a.\u0275\u0275listener("click",function(){return r.ok()}),a.\u0275\u0275text(16),a.\u0275\u0275pipe(17,"translate"),a.\u0275\u0275elementEnd()()()()()),2&e&&(a.\u0275\u0275property("ngClass","cant-create-event-modal "+(r.show?"show":"")),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,5,"MD_CAN_CREATE_EVENT_TITLE")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(10,7,"MD_CAN_CREATE_EVENT_TEXT_DONT_HAVE_PERMISSION")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(13,9,"MD_CAN_CREATE_EVENT_TEXT_ASK_COMPANY")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(17,11,"MD_CAN_CREATE_EVENT_BTN_CLOSE")," "))},dependencies:[b.NgClass,k.X$],styles:[".cant-create-event-modal[_ngcontent-%COMP%]{height:0;bottom:0;position:absolute;width:100vw;transition:height .5s ease-in-out;overflow:hidden;z-index:99999}.cant-create-event-modal.show[_ngcontent-%COMP%]{height:100vh;transition:height .5s ease-out;z-index:99999}.cant-create-event-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{opacity:.3;transition:opacity .5s ease-out}.cant-create-event-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{margin-top:35%;transition:margin-top 1s ease}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:0;top:0;transition:opacity .5s ease-out}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{min-height:60vh;background-color:#fff;width:86vw;margin:100% auto auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;transition:margin-top 1s ease}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:700;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff;text-align:center}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{margin-bottom:16px}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{font-weight:700}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:flex-end;align-items:center;overflow:hidden;background-color:#fff}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:.9em;background-color:#fff;color:#ccc;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.cant-create-event-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),t})();var Te=f(64245);function ce(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275text(1),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.helperService.normalizeName(e.foundUser.firstName,e.foundUser.lastName)," ")}}function oe(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275text(1),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate2(" ",e.foundUser.firstName," ",e.foundUser.lastName," ")}}function te(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",7),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.foundUser.department," ")}}function ge(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,te,2,1,"div",6),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==e.foundUser?null:e.foundUser.department)}}function xe(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",9),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.foundUser.company," ")}}function he(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,xe,2,1,"div",8),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==e.foundUser?null:e.foundUser.company)}}function Le(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",1),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(i.userSelect.emit(i.foundUser))}),a.\u0275\u0275element(2,"app-avatar",2),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4),a.\u0275\u0275template(5,ce,2,1,"ng-container",0),a.\u0275\u0275template(6,oe,2,2,"ng-container",0),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(7,ge,2,1,"ng-container",0),a.\u0275\u0275template(8,he,2,1,"ng-container",0),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(9,"ion-ripple-effect",5),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()}if(2&t){const e=a.\u0275\u0275nextContext();let r;a.\u0275\u0275advance(2),a.\u0275\u0275property("firstName",e.foundUser.firstName)("lastName",e.foundUser.lastName)("thumbnailImage",null!==(r=null!==(r=null==e.foundUser||null==e.foundUser.photos||null==e.foundUser.photos[0]?null:e.foundUser.photos[0].faceImageThumbnail)&&void 0!==r?r:null==e.foundUser?null:e.foundUser.image)&&void 0!==r?r:null)("size","md"),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf","host"===e.typeofuser),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","guest"===e.typeofuser),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","host"===e.typeofuser),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","guest"===e.typeofuser)}}function Ce(t,n){1&t&&(a.\u0275\u0275elementStart(0,"div",18),a.\u0275\u0275element(1,"ion-skeleton-text",19),a.\u0275\u0275elementStart(2,"div",3)(3,"div",4),a.\u0275\u0275element(4,"ion-skeleton-text",20),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"div",9),a.\u0275\u0275element(6,"ion-skeleton-text",21),a.\u0275\u0275elementEnd()()())}const ie=function(){return[1,2,3,4,5,6,7,8,9,10]};function se(t,n){1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",10)(2,"div",11)(3,"span",12),a.\u0275\u0275element(4,"ion-skeleton-text",13),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(5,"div",14)(6,"div",15),a.\u0275\u0275element(7,"ion-skeleton-text",16)(8,"ion-skeleton-text",13),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(9,Ce,7,0,"div",17),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()),2&t&&(a.\u0275\u0275advance(9),a.\u0275\u0275property("ngForOf",a.\u0275\u0275pureFunction0(1,ie)))}let me=(()=>{class t{constructor(e){this.helperService=e,this.skeleton=!1,this.userSelect=new a.EventEmitter}ngOnInit(){console.log(this.foundUser)}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(v.W_))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-card-founduser"]],inputs:{foundUser:"foundUser",skeleton:"skeleton",typeofuser:"typeofuser"},outputs:{userSelect:"userSelect"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"result","ion-activatable",3,"click"],[3,"firstName","lastName","thumbnailImage","size"],[1,"user-info"],[1,"full-name"],["type","bounded"],["class","document",4,"ngIf"],[1,"document"],["class","company",4,"ngIf"],[1,"company"],[1,"results"],[1,"title"],[2,"display","flex","width","100%","text-align","start"],["animated","",2,"width","60%"],[1,"sub-title"],[1,"ion-text-center",2,"display","flex","flex-direction","column","align-items","center"],["animated","",2,"width","100%"],["class","result",4,"ngFor","ngForOf"],[1,"result"],["animated","",1,"avatar-skeleton"],["animated","",2,"width","85%"],["animated","",2,"width","50%"]],template:function(e,r){1&e&&(a.\u0275\u0275template(0,Le,10,8,"ng-container",0),a.\u0275\u0275template(1,se,10,2,"ng-container",0)),2&e&&(a.\u0275\u0275property("ngIf",r.foundUser&&!r.skeleton),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.skeleton))},dependencies:[b.NgForOf,b.NgIf,m.IonRippleEffect,m.IonSkeletonText,de.A],styles:[".result[_ngcontent-%COMP%]{position:relative;margin:10px 0;border:1px solid #eee;border-radius:4px;padding:6px 10px;display:flex;align-items:center;gap:10px}.result[_ngcontent-%COMP%] app-avatar[_ngcontent-%COMP%]{flex-shrink:0}.result[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{flex:1;min-width:0}.result[_ngcontent-%COMP%] .company[_ngcontent-%COMP%], .result[_ngcontent-%COMP%] .document[_ngcontent-%COMP%]{color:#aaa;font-size:.8em}.avatar-skeleton[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;flex-shrink:0}.results[_ngcontent-%COMP%]{padding:1em;overflow:scroll;height:100%}.results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700;text-align:left;font-size:initial!important}.results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin:10px 0;font-size:.9em;background-color:#eee;border:1px solid #ccc;padding:8px;border-radius:2px;text-align:center}"]}),t})(),Ne=(()=>{class t{constructor(e){this.timeSettingsService=e}openSettingTime(){"web"!==g.dV.getPlatform()?this.timeSettingsService.open().then(r=>r).catch(r=>console.log(r)):console.log("no device found in time settings")}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(v.PV))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-clock-sync-guardian"]],decls:7,vars:3,consts:[["role","alert",1,"istautomatiTime"],["role","button",1,"error-message",3,"click"],[1,"icon"],["mode","ios","name","alert"],[1,"text",3,"innerHTML"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275listener("click",function(){return r.openSettingTime()}),a.\u0275\u0275elementStart(2,"div",2),a.\u0275\u0275element(3,"ion-icon",3),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"ion-text"),a.\u0275\u0275element(5,"span",4),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd()()()),2&e&&(a.\u0275\u0275advance(5),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind1(6,1,"PG_HOME_BTN_NOT_AUTOMATIC_TIME"),a.\u0275\u0275sanitizeHtml))},dependencies:[m.IonIcon,m.IonText,k.X$],styles:[".istautomatiTime[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;justify-content:center;width:100%;background:#f2f2f2}.istautomatiTime[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:2em;padding-left:.6em;padding-right:.4em}.istautomatiTime[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:#595959;font-size:.8rem;padding:.4em 8px .4em 0;text-align:justify;display:flex;align-items:center}.istautomatiTime[_ngcontent-%COMP%] .error-message.small-screen[_ngcontent-%COMP%]{font-size:11.8px;padding:2px 5px}"]}),t})(),_e=(()=>{class t{constructor(e){this.modalController=e,this.profileSelect=r=>{this.modalController.dismiss(r)},this.filterBadProfiles=r=>r.filter(i=>i.company&&i.company.name&&i.company.site&&i.company.site.name),this.sort=(r,i)=>r.company.name<i.company.name?-1:r.company.name>i.company.name?1:0,this.back=()=>{this.modalController.dismiss(null)},this.confirm=()=>{this.modalController.dismiss(!0)}}set profiles(e){e=this.filterBadProfiles(e),this.internalProfiles=e.sort(this.sort)}get profiles(){return this.internalProfiles}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-confirm-logout-modal"]],inputs:{profiles:"profiles"},decls:17,vars:13,consts:[[3,"ngClass"],[1,"content"],[1,"background",3,"click"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"confirm",3,"click"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(7,"div",5),a.\u0275\u0275text(8),a.\u0275\u0275pipe(9,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"div",6)(11,"button",7),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275text(12),a.\u0275\u0275pipe(13,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(14,"button",8),a.\u0275\u0275listener("click",function(){return r.confirm()}),a.\u0275\u0275text(15),a.\u0275\u0275pipe(16,"translate"),a.\u0275\u0275elementEnd()()()()()),2&e&&(a.\u0275\u0275property("ngClass","confirm-logout-modal"),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,5,"MD_LOGOUT_TEXT_TITLE")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(9,7,"MD_LOGOUT_TEXT_DESCRIPTION")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(13,9,"BTN_BACK")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(16,11,"MD_LOGOUT_BTN_CONFIRM")," "))},dependencies:[b.NgClass,k.X$],styles:["@media only screen and (width: 768px) and (orientation: portrait){.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{height:58.4vh!important;width:78vw!important;position:absolute!important;margin-top:0!important}}@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2){.confirm-logout-modal[_ngcontent-%COMP%]{position:relative!important}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{position:relative!important;height:100%!important}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{margin-top:0!important;height:100%!important;width:80%!important}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{position:relative!important;height:.5em!important;width:100%!important}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{display:flex!important;position:relative!important;height:calc(100% - 3em)!important;width:80%!important;margin:auto!important}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:relative!important;width:100%!important}}@media only screen and (min-width: 820px) and (orientation: portrait){.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{height:43.7vh!important;width:49.8vw!important;position:absolute!important;margin-top:.1em!important}}@media only screen and (width: 1024px) and (orientation: portrait){.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{height:44.55vh!important;width:58.6vw!important;position:absolute!important;margin-top:0!important}}@media only screen and (width: 834px) and (orientation: portrait){.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{min-height:50vh!important;width:72vw!important;position:absolute!important;margin-top:0!important}}.confirm-logout-modal[_ngcontent-%COMP%]{width:100%;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;height:100vh;display:flex;align-content:center;justify-content:center;justify-items:center}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e;display:flex;justify-content:center}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{height:60vh;background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;margin-top:20vh;transition:margin-top 1s ease;z-index:1}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #eee;border-radius:4px;margin-bottom:8px}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .company-name[_ngcontent-%COMP%]{font-weight:700}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .login[_ngcontent-%COMP%]{color:#656768}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.confirm-logout-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),t})();f(69977);var Ee=f(21284),le=f(70079);function Ue(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",16),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e," ")}}function ke(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",14),a.\u0275\u0275template(1,Ue,2,1,"div",15),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",e.getInputErrors("fullName"))}}function ze(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",16),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e," ")}}function ye(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",14),a.\u0275\u0275template(1,ze,2,1,"div",15),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",e.getInputErrors("document"))}}function je(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",14)(1,"div",16),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",e.messageError," ")}}function Ze(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"button",17),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(i.onCreateGuest())}),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()}if(2&t){const e=n.ngIf;a.\u0275\u0275advance(1),a.\u0275\u0275property("disabled","Offline"===e.status),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(3,2,"MD_CREATE_ASSISTANT_BTN_CREATE")," ")}}const _t=function(){return{person:!0}},At=function(){return{}};let Vt=(()=>{class t{constructor(e,r,i,s,c,l,u){this.modalController=e,this.notificatorService=r,this.commonService=i,this.navParams=s,this.validateNameDocumentMatch=c,this.translateConfigService=l,this.stateService=u,this.defaultFullName="",this.defaultDocument="",this.defaultErrors=[],this.fullName=this.defaultFullName,this.document=this.defaultDocument,this.errors=this.defaultErrors,this.messageError="",this.foregin=!1,this.processReceivedRouteGuest=d=>{this.isNew=!d,d&&(this.fullName=this.processReceivedRouteGuestFullName(d),this.document=this.processReceivedRouteGuestDocument(d))},this.processReceivedRouteGuestFullName=d=>d.fullName?d.fullName:"",this.processReceivedRouteGuestDocument=d=>d.document?d.document:"",this.onClose=()=>{this.modalController.dismiss()},this.onFullNameChange=d=>{const{value:p}=d.target;this.fullName=p},this.onDocumentChange=d=>{const{value:p}=d.target;this.document=p},this.onCreateGuest=()=>{const d=this.validateCreateAssistant();if(!this.thereWasErrors(d))return this.validateNameDocumentMatch.validateNameDocumentMatch(this.fullName,this.document).then(p=>{if(p)this.errors=[],this.handleCreateVisitor();else{this.messageError=this.translateConfigService.translate("MD_CREATE_ASSISTANT_TEXT_DOCUMENT_NO_MATCH");const M={title:this.translateConfigService.translate("MD_CREATE_ASSISTANT_TOAST_FIELD_TITLE"),message:this.translateConfigService.translate("MD_CREATE_ASSISTANT_TOAST_FIELD_MESSAGE"),type:"error"};this.notificatorService.notify(M)}}).catch(p=>{});{this.errors=d;const p={title:this.translateConfigService.translate("MD_CREATE_ASSISTANT_TOAST_FIELD_TITLE"),message:this.translateConfigService.translate("MD_CREATE_ASSISTANT_TOAST_FIELD_MESSAGE"),type:"error"};this.notificatorService.notify(p)}},this.handleCreateVisitor=()=>{const d=this.commonService.clearString(this.fullName),p=this.commonService.clearString(this.document),M=d.split(" "),x=M.shift(),R=M.join(" ");this.modalController.dismiss({id:null,firstName:x,lastName:R,document:p})},this.thereWasErrors=d=>{let p=!1;return d.forEach(M=>{M.errors.length&&(p=!0)}),p},this.thereWasErrorsAtInput=d=>!!this.getInputErrors(d).length,this.getInputErrors=d=>{const p=this.errors.find(M=>M.input===d);return p?p.errors:[]},this.validateCreateAssistant=()=>{const d=[],p=this.commonService.clearString(this.fullName),M=this.commonService.clearString(this.document);return d.push(this.validateFullNameField({fullName:p})),d.push(this.validateDocumentField({document:M})),d},this.validateFullNameField=d=>{const p={input:"fullName",errors:[]};return d.fullName?0===d.fullName.length?p.errors.push(this.translateConfigService.translate("MD_CREATE_ASSISTANT_TEXT_FULLNAME")):d.fullName.length>100?p.errors.push(this.translateConfigService.translate("MD_CREATE_ASSISTANT_TEXT_FULLNAME_MAX_LENGTH")):d.fullName.split(" ").length<2&&p.errors.push(this.translateConfigService.translate("MD_CREATE_ASSISTANT_TEXT_FULLNAME")):p.errors.push(this.translateConfigService.translate("MD_CREATE_ASSISTANT_TEXT_FULLNAME")),p},this.validateDocumentField=d=>{const p={input:"document",errors:[]};return d.document?0===d.document.length?p.errors.push(this.translateConfigService.translate("MD_ASSISTANT_TEXT_DOCUMENT")):d.document.length>50?p.errors.push(this.translateConfigService.translate("MD_ASSISTANT_TEXT_DOCUMENT_MAX_LENGTH")):d.document.length<4?p.errors.push(this.translateConfigService.translate("MD_ASSISTANT_TEXT_DOCUMENT_MIN_LENGTH")):d.document&&!this.foregin&&!this.validateInput(d.document)&&p.errors.push(this.translateConfigService.translate("MD_ASSISTANT_TEXT_DOCUMENT_CPF")):p.errors.push(this.translateConfigService.translate("MD_ASSISTANT_TEXT_DOCUMENT")),p},this.guest=s.get("contact"),this.processReceivedRouteGuest(this.guest)}ngOnInit(){console.log()}toogleChangeDocument(e){e&&this.document.length>0&&(this.onDocumentChange({target:{value:""}}),this.document=""),this.foregin=e?.detail?.checked}validateInput(e){return this.validateCpfType(e)}validateCpfType(e){if(11!==(e=e.replace(/\D/g,"")).toString().length||/^(\d)\1{10}$/.test(e))return!1;let r=!0;return[9,10].forEach(i=>{let c,s=0;e.split(/(?=)/).splice(0,i).forEach((l,u)=>{s+=parseInt(l,10)*(i+2-(u+1))}),c=s%11,c=c<2?0:11-c,c!==parseInt(e.substring(i,i+1),10)&&(r=!1)}),r}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(v.V6),a.\u0275\u0275directiveInject(v.v_),a.\u0275\u0275directiveInject(m.NavParams),a.\u0275\u0275directiveInject(v.Lk),a.\u0275\u0275directiveInject(v.wK),a.\u0275\u0275directiveInject(Ee.b))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-create-assistant"]],decls:32,vars:30,consts:[[1,"centralized-content"],[1,"page-title"],[1,"title"],[1,"ion-margin-vertical"],[1,"input-holder"],[1,"input"],["type","text","id","full-name","name","fullName",3,"placeholder","value","input"],["class","errors",4,"ngIf"],["type","text","id","document","name","document",3,"placeholder","brmasker","maxlength","value","ionChange"],["lines","none"],["slot","start","color","primary_keyaccess",3,"ngModel","ngModelChange","ionChange"],[1,"button-holder"],[1,"back",3,"click"],[4,"ngIf"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"],[3,"disabled","click"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"ion-content")(1,"div",0)(2,"div",1)(3,"div",2),a.\u0275\u0275text(4),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(6,"ion-row")(7,"ion-col",3)(8,"div",4)(9,"div",5)(10,"input",6),a.\u0275\u0275listener("input",function(s){return r.onFullNameChange(s)}),a.\u0275\u0275pipe(11,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(12,ke,2,1,"div",7),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(13,"div",4)(14,"div",5)(15,"ion-input",8),a.\u0275\u0275listener("ionChange",function(s){return r.onDocumentChange(s)}),a.\u0275\u0275pipe(16,"translate"),a.\u0275\u0275pipe(17,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(18,ye,2,1,"div",7),a.\u0275\u0275template(19,je,3,1,"div",7),a.\u0275\u0275elementStart(20,"ion-item",9)(21,"ion-toggle",10),a.\u0275\u0275listener("ngModelChange",function(s){return r.foregin=s})("ionChange",function(s){return r.toogleChangeDocument(s)}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(22,"ion-label"),a.\u0275\u0275text(23),a.\u0275\u0275pipe(24,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(25,"div",11)(26,"button",12),a.\u0275\u0275listener("click",function(){return r.onClose()}),a.\u0275\u0275text(27),a.\u0275\u0275pipe(28,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(29,"div",2),a.\u0275\u0275template(30,Ze,4,4,"ng-container",13),a.\u0275\u0275pipe(31,"async"),a.\u0275\u0275elementEnd()()()()()()),2&e&&(a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(5,14,"MD_CREATE_ASSISTANT_TEXT_TITLE")," "),a.\u0275\u0275advance(6),a.\u0275\u0275property("placeholder",a.\u0275\u0275pipeBind1(11,16,"MD_CREATE_ASSISTANT_INPUT_FULLNAME"))("value",r.fullName),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",r.thereWasErrorsAtInput("fullName")),a.\u0275\u0275advance(3),a.\u0275\u0275property("placeholder",r.foregin?a.\u0275\u0275pipeBind1(17,20,"MD_CREATE_ASSISTANT_INPUT_DOCUMENT"):a.\u0275\u0275pipeBind1(16,18,"MD_CREATE_ASSISTANT_INPUT_DOCUMENT_CPF"))("brmasker",r.foregin?a.\u0275\u0275pureFunction0(29,At):a.\u0275\u0275pureFunction0(28,_t))("maxlength",r.foregin?50:14)("value",r.document),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",r.thereWasErrorsAtInput("document")),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.messageError),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngModel",r.foregin),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(24,22,"MD_CREATE_ASSISTANT_IS_FOREIGNER")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(28,24,"MD_CREATE_ASSISTANT_BTN_CLOSE")," "),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",a.\u0275\u0275pipeBind1(31,26,r.stateService.getState())))},dependencies:[b.NgForOf,b.NgIf,m.IonCol,m.IonContent,m.IonInput,m.IonItem,m.IonLabel,m.IonRow,m.IonToggle,m.BooleanValueAccessor,m.TextValueAccessor,L.NgControlStatus,L.NgModel,le.bS,b.AsyncPipe,k.X$],styles:[".centralized-content[_ngcontent-%COMP%]{height:calc(100vh - 56px);display:flex;justify-content:flex-start;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .errors[_ngcontent-%COMP%]{width:80%;margin:12px 10% 0;color:#f0181b;text-align:center}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:32px 32px 8px;font-size:initial!important}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{padding-top:1em;justify-content:center;margin:0}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:0;margin-bottom:8px}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]:first-of-type{margin-top:0}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:8px;color:#333}.centralized-content[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{display:flex;justify-content:space-around}"]}),t})();function fn(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",20),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e," ")}}function mn(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",18),a.\u0275\u0275template(1,fn,2,1,"div",19),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",e.getInputErrors("fullName"))}}function xn(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",20),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e," ")}}function gn(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",21),a.\u0275\u0275template(1,xn,2,1,"div",19),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",e.getInputErrors("document"))}}function Et(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",22)(1,"div",20),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",e.messageError," ")}}const cn=function(){return{person:!0}},ft=function(){return{}};let Tt=(()=>{class t{constructor(e,r,i,s,c,l){this.modalController=e,this.notificatorService=r,this.api=i,this.commonService=s,this.validateNameDocumentMatch=c,this.translateConfigService=l,this.defaultFullName="",this.defaultDocument="",this.defaultErrors=[],this.fullName=this.defaultFullName,this.document=this.defaultDocument,this.errors=this.defaultErrors,this.messageError="",this.foregin=!1,this.onClose=()=>{this.modalController.dismiss()},this.onFullNameChange=u=>{const{value:d}=u.target;this.fullName=d},this.onDocumentChange=u=>{const{value:d}=u.target;this.document=d},this.onCreateGuest=()=>{const u=this.validateCreateDriver();if(this.thereWasErrors(u)){this.errors=u;const d={title:this.translateConfigService.translate("MD_CREATE_DRIVER_TOAST_FIELD_TITLE"),message:this.translateConfigService.translate("MD_CREATE_DRIVER_TOAST_FIELD_MESSAGE"),type:"error"};this.notificatorService.notify(d)}else this.validateNameDocumentMatch.validateNameDocumentMatch(this.fullName,this.document).then(d=>{if(d)this.errors=[],this.handleCreateVisitor();else{this.messageError=this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_DOCUMENT_NO_MATCH");const p={title:this.translateConfigService.translate("MD_CREATE_DRIVER_TOAST_FIELD_TITLE"),message:this.translateConfigService.translate("MD_CREATE_DRIVER_TOAST_FIELD_MESSAGE"),type:"error"};this.notificatorService.notify(p)}})},this.handleCreateVisitor=()=>{const u=this.commonService.clearString(this.fullName),d=this.commonService.clearString(this.document),p=u.split(" "),M=p.shift(),x=p.join(" ");this.modalController.dismiss({id:null,firstName:M,lastName:x,document:d})},this.thereWasErrors=u=>{let d=!1;return u.forEach(p=>{p.errors.length&&(d=!0)}),d},this.thereWasErrorsAtInput=u=>!!this.getInputErrors(u).length,this.getInputErrors=u=>{const d=this.errors.find(p=>p.input===u);return d?d.errors:[]},this.validateCreateDriver=()=>{const u=[],d=this.commonService.clearString(this.fullName),p=this.commonService.clearString(this.document);return u.push(this.validateFullNameField({fullName:d})),u.push(this.validateDocumentField({document:p})),u},this.validateFullNameField=u=>{const d={input:"fullName",errors:[]};return u.fullName?0===u.fullName.length?d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_FULLNAME")):u.fullName.length>100?d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_FULLNAME_MAX_LENGTH")):u.fullName.split(" ").length<2&&d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_FULLNAME")):d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_FULLNAME")),d},this.validateDocumentField=u=>{const d={input:"document",errors:[]};return u.document?0===u.document.length?d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_DOCUMENT")):u.document.length>50?d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_DOCUMENT_MAX_LENGTH")):u.document.length<4?d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_DOCUMENT_MIN_LENGTH")):u.document&&!this.foregin&&!this.validateInput(u.document)&&d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_DOCUMENT_INVALID_CPF")):d.errors.push(this.translateConfigService.translate("MD_CREATE_DRIVER_TEXT_DOCUMENT")),d}}toogleChangeDocument(e){e&&this.document.length>0&&(this.onDocumentChange({target:{value:""}}),this.document=""),this.foregin=e?.detail?.checked}validateInput(e){return this.validateCpfType(e)}validateCpfType(e){if(11!==(e=e.replace(/\D/g,"")).toString().length||/^(\d)\1{10}$/.test(e))return!1;let r=!0;return[9,10].forEach(i=>{let c,s=0;e.split(/(?=)/).splice(0,i).forEach((l,u)=>{s+=parseInt(l,10)*(i+2-(u+1))}),c=s%11,c=c<2?0:11-c,c!==parseInt(e.substring(i,i+1),10)&&(r=!1)}),r}clearDocument(e){return e.replace(/[^\w]/g,"")}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(v.V6),a.\u0275\u0275directiveInject(v.sM),a.\u0275\u0275directiveInject(v.v_),a.\u0275\u0275directiveInject(v.Lk),a.\u0275\u0275directiveInject(v.wK))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-create-driver"]],decls:34,vars:33,consts:[[1,"centralized-content"],[1,"page-title"],["tabindex","1",1,"title"],[1,"ion-margin-vertical"],[1,"input-holder"],[1,"input"],["tabindex","2","type","text","id","full-name","name","fullName",3,"placeholder","value","input"],["class","errors",4,"ngIf"],["tabindex","3","type","text","id","document","name","document",3,"placeholder","brmasker","maxlength","value","ionChange"],["class","errors","tabindex","4",4,"ngIf"],["class","errors","tabindex","5",4,"ngIf"],["lines","none","tabindex","6"],["tabindex","7","slot","start","color","primary_keyaccess",3,"ngModel","ngModelChange","ionChange"],["tabindex","8"],[1,"button-holder"],["tabindex","8",1,"back",3,"click"],[1,"title"],["tabindex","9",3,"click"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"],["tabindex","4",1,"errors"],["tabindex","5",1,"errors"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"ion-content")(1,"div",0)(2,"div",1)(3,"div",2),a.\u0275\u0275text(4),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(6,"ion-row")(7,"ion-col",3)(8,"div",4)(9,"div",5)(10,"input",6),a.\u0275\u0275listener("input",function(s){return r.onFullNameChange(s)}),a.\u0275\u0275pipe(11,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(12,mn,2,1,"div",7),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(13,"div",4)(14,"div",5)(15,"ion-input",8),a.\u0275\u0275listener("ionChange",function(s){return r.onDocumentChange(s)}),a.\u0275\u0275pipe(16,"translate"),a.\u0275\u0275pipe(17,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(18,gn,2,1,"div",9),a.\u0275\u0275template(19,Et,3,1,"div",10),a.\u0275\u0275elementStart(20,"ion-item",11)(21,"ion-toggle",12),a.\u0275\u0275listener("ngModelChange",function(s){return r.foregin=s})("ionChange",function(s){return r.toogleChangeDocument(s)}),a.\u0275\u0275pipe(22,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(23,"ion-label",13),a.\u0275\u0275text(24),a.\u0275\u0275pipe(25,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(26,"div",14)(27,"button",15),a.\u0275\u0275listener("click",function(){return r.onClose()}),a.\u0275\u0275text(28),a.\u0275\u0275pipe(29,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(30,"div",16)(31,"button",17),a.\u0275\u0275listener("click",function(){return r.onCreateGuest()}),a.\u0275\u0275text(32),a.\u0275\u0275pipe(33,"translate"),a.\u0275\u0275elementEnd()()()()()()()),2&e&&(a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(5,15,"MD_CREATE_DRIVER_TITLE")," "),a.\u0275\u0275advance(6),a.\u0275\u0275property("placeholder",a.\u0275\u0275pipeBind1(11,17,"MD_CREATE_DRIVER_INPUT_FULLNAME"))("value",r.fullName),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",r.thereWasErrorsAtInput("fullName")),a.\u0275\u0275advance(3),a.\u0275\u0275property("placeholder",r.foregin?a.\u0275\u0275pipeBind1(17,21,"MD_CREATE_DRIVER_INPUT_DOCUMENT"):a.\u0275\u0275pipeBind1(16,19,"MD_CREATE_DRIVER_INPUT_DOCUMENT_CPF"))("brmasker",r.foregin?a.\u0275\u0275pureFunction0(32,ft):a.\u0275\u0275pureFunction0(31,cn))("maxlength",r.foregin?50:14)("value",r.document),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",r.thereWasErrorsAtInput("document")),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.messageError),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngModel",r.foregin),a.\u0275\u0275attribute("aria-label",a.\u0275\u0275pipeBind1(22,23,"MD_CREATE_DRIVER_IS_FOREIGNER")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(25,25,"MD_CREATE_DRIVER_IS_FOREIGNER")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(29,27,"MD_CREATE_DRIVER_BTN_CLOSE")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(33,29,"MD_CREATE_DRIVER_BTN_CREATE")," "))},dependencies:[b.NgForOf,b.NgIf,m.IonCol,m.IonContent,m.IonInput,m.IonItem,m.IonLabel,m.IonRow,m.IonToggle,m.BooleanValueAccessor,m.TextValueAccessor,L.NgControlStatus,L.NgModel,le.bS,k.X$],styles:[".centralized-content[_ngcontent-%COMP%]{height:calc(100vh - 56px);display:flex;justify-content:flex-start;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .errors[_ngcontent-%COMP%]{width:80%;margin:12px 10% 0;color:#f0181b;text-align:center}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:32px 32px 8px;font-size:initial!important}.centralized-content[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{padding-top:1em;justify-content:center;margin:0}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:0;margin-bottom:8px}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]:first-of-type{margin-top:0}.centralized-content[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:8px;color:#333}.centralized-content[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{display:flex;justify-content:space-around}"]}),t})();var en=f(70713),Gt=f(31044);const or=function(t){return{"fix-ios":t}};let Cr=(()=>{class t{constructor(e,r,i,s){var c=this;this.footerLegalModalService=e,this.ngZoneService=r,this.platform=i,this.modalCtrl=s,this.ok=(0,o.Z)(function*(){yield c.modalCtrl.dismiss()}),this.isPlatformIOs=!!this.platform.is("ios")}ngOnInit(){var e=this;this.footerLegalModalService.observable.subscribe(function(){var r=(0,o.Z)(function*(i){yield e.ngZoneService.run(()=>{e.show=i})});return function(i){return r.apply(this,arguments)}}())}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(v.iE),a.\u0275\u0275directiveInject(v.zf),a.\u0275\u0275directiveInject(m.Platform),a.\u0275\u0275directiveInject(m.ModalController))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-footer-legal-modal"]],decls:38,vars:37,consts:[["role","alert","tabindex","-1",3,"ngClass"],[1,"content"],["role","alert",1,"background"],["tabindex","0",1,"modal-container"],[1,"modal-title"],[1,"modal-body",3,"ngClass"],[1,"topic",3,"innerHTML"],[1,"topic"],[1,"modal-footer"],[1,"reject",3,"click"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(7,"div",5),a.\u0275\u0275element(8,"div",6),a.\u0275\u0275pipe(9,"translate"),a.\u0275\u0275elementStart(10,"div",7),a.\u0275\u0275text(11),a.\u0275\u0275pipe(12,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(13,"div",7),a.\u0275\u0275text(14),a.\u0275\u0275pipe(15,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(16,"div",7),a.\u0275\u0275text(17),a.\u0275\u0275pipe(18,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(19,"div",7),a.\u0275\u0275text(20),a.\u0275\u0275pipe(21,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(22,"div",7),a.\u0275\u0275text(23),a.\u0275\u0275pipe(24,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(25,"div",7),a.\u0275\u0275text(26),a.\u0275\u0275pipe(27,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(28,"div",7),a.\u0275\u0275text(29),a.\u0275\u0275pipe(30,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(31,"div",7),a.\u0275\u0275text(32),a.\u0275\u0275pipe(33,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(34,"div",8)(35,"button",9),a.\u0275\u0275listener("click",function(){return r.ok()}),a.\u0275\u0275text(36),a.\u0275\u0275pipe(37,"translate"),a.\u0275\u0275elementEnd()()()()()),2&e&&(a.\u0275\u0275property("ngClass","footer-legal-modal "+(r.show?"show":"")),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(6,13,"TEXT_TERMS_OF_USE_AND_PRIVACY")),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction1(35,or,r.isPlatformIOs)),a.\u0275\u0275advance(1),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind1(9,15,"LEGAL_TERMS_TOPIC"),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(12,17,"LEGAL_TERMS_TOPIC1")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(15,19,"LEGAL_TERMS_TOPIC2")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(18,21,"LEGAL_TERMS_TOPIC3")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(21,23,"LEGAL_TERMS_TOPIC4")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(24,25,"LEGAL_TERMS_TOPIC5")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(27,27,"LEGAL_TERMS_TOPIC6")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(30,29,"LEGAL_TERMS_TOPIC7")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(33,31,"LEGAL_TERMS_TOPIC8")," "),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(37,33,"LEGAL_TERMS_BTN_CLOSE")))},dependencies:[b.NgClass,k.X$],styles:[".footer-legal-modal[_ngcontent-%COMP%]{height:0;bottom:0;position:absolute;width:100vw;transition:height .5s ease-in-out;overflow:hidden;z-index:99999}.footer-legal-modal.show[_ngcontent-%COMP%]{height:100vh;transition:height .5s ease-out;z-index:99999}.footer-legal-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{opacity:.3;transition:opacity .5s ease-out}.footer-legal-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{margin-top:35%;transition:margin-top 1s ease}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:0;top:0;transition:opacity .5s ease-out}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{min-height:60vh;background-color:#fff;width:86vw;margin:100% auto auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;transition:margin-top 1s ease}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:700;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body.fix-ios[_ngcontent-%COMP%]{overflow-y:scroll!important;overflow-x:hidden;-webkit-overflow-scrolling:touch;pointer-events:auto!important}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{margin-bottom:16px}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{font-weight:700}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:flex-end;align-items:center;overflow:hidden;background-color:#fff}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:.9em;background-color:#fff;color:#ccc;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.footer-legal-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),t})();f(38124);var dr=f(33159);function er(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"span",8),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.title)}}function Jn(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"ion-header",5)(1,"ion-toolbar",6)(2,"ion-title"),a.\u0275\u0275template(3,er,2,1,"span",7),a.\u0275\u0275elementEnd()()()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",null==e.props?null:e.props.title)}}function Er(t,n){if(1&t&&a.\u0275\u0275element(0,"div",10),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("innerHTML",null==e.props?null:e.props.description,a.\u0275\u0275sanitizeHtml)}}function lo(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,Er,1,1,"div",9),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==e.props?null:e.props.description)}}function Gr(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",39)(1,"strong"),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"datetransformcustom"),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind2(3,1,null==e.props||null==e.props.data?null:e.props.data.startAt,"dayMonth"))}}function Qn(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",40)(1,"strong"),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"datetransformcustom"),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind2(3,1,null==e.props||null==e.props.data?null:e.props.data.startAt,"hourMinute"))}}function Pr(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",41)(1,"strong"),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"datetransformcustom"),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind2(3,1,null==e.props||null==e.props.data?null:e.props.data.endAt,"hourMinute"))}}function jr(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div")(2,"div",11),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"div",12)(5,"ion-grid",13)(6,"ion-row")(7,"ion-col",14)(8,"div",15),a.\u0275\u0275element(9,"ion-icon",16),a.\u0275\u0275elementStart(10,"span",17),a.\u0275\u0275text(11),a.\u0275\u0275pipe(12,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(13,Gr,4,4,"div",18),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(14,"ion-col",14)(15,"div",15),a.\u0275\u0275element(16,"ion-icon",19),a.\u0275\u0275elementStart(17,"span",17),a.\u0275\u0275text(18),a.\u0275\u0275pipe(19,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(20,Qn,4,4,"div",20),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(21,"ion-col",14)(22,"div",15),a.\u0275\u0275element(23,"ion-icon",19),a.\u0275\u0275elementStart(24,"span",17),a.\u0275\u0275text(25),a.\u0275\u0275pipe(26,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(27,Pr,4,4,"div",21),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275elementStart(28,"div",22),a.\u0275\u0275text(29),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(30,"div",23)(31,"div",24)(32,"ion-button",25),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(i.doCopyLink(null==i.props?null:i.props.data))}),a.\u0275\u0275element(33,"ion-icon",26),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(34,"div",27)(35,"ion-button",25),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(i.share(null==i.props?null:i.props.data,"whatsapp"))}),a.\u0275\u0275element(36,"ion-icon",28),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(37,"div",29)(38,"ion-button",25),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(i.share(null==i.props?null:i.props.data,"share"))}),a.\u0275\u0275element(39,"ion-icon",30),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(40,"div",31),a.\u0275\u0275text(41),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(42,"div",32)(43,"ion-grid",33)(44,"ion-row",33)(45,"ion-col",34)(46,"div",35),a.\u0275\u0275element(47,"ion-icon",36),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(48,"ion-col",37)(49,"div",38),a.\u0275\u0275text(50),a.\u0275\u0275elementEnd()()()()()(),a.\u0275\u0275elementContainerEnd()}if(2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275classMap("generic-modal-component__"+e.typenameComponet.eventInstant),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.title),a.\u0275\u0275advance(8),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(12,12,"MD_RESUME_CREATE_EVENT_DAY"),""),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",null==e.props||null==e.props.data?null:e.props.data.startAt),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(19,14,"MD_RESUME_CREATE_EVENT_START"),""),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",null==e.props||null==e.props.data?null:e.props.data.startAt),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(26,16,"MD_RESUME_CREATE_EVENT_END"),""),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",null==e.props||null==e.props.data?null:e.props.data.endAt),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.description),a.\u0275\u0275advance(12),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.data.fullPathLocator),a.\u0275\u0275advance(9),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.subdescription)}}function Nr(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",15)(1,"p"),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.title)}}function go(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",46),a.\u0275\u0275element(1,"img",47),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("src",null==e.props?null:e.props.img,a.\u0275\u0275sanitizeUrl)("alt",(null==e.props?null:e.props.title)+" "+e.props.description)}}function Zr(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",48)(1,"p",49),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.props.description)}}function ro(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",42),a.\u0275\u0275template(2,Nr,3,1,"div",43),a.\u0275\u0275template(3,go,2,2,"div",44),a.\u0275\u0275template(4,Zr,3,1,"div",45),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",null==e.props?null:e.props.title),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==e.props?null:e.props.img),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.props.description)}}function mo(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",50)(2,"ion-text",51)(3,"h2"),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.description)}}function ki(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-card",55),a.\u0275\u0275listener("click",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(c.selectFloor(s))}),a.\u0275\u0275elementStart(1,"div",56)(2,"div",22)(3,"p"),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(5,"div",57),a.\u0275\u0275element(6,"ion-icon",58),a.\u0275\u0275elementEnd()()()}if(2&t){const e=n.$implicit;a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(e.description)}}function Yo(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div")(2,"div",11)(3,"h2"),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(5,"div",52)(6,"p"),a.\u0275\u0275text(7),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(8,"div",53),a.\u0275\u0275template(9,ki,7,1,"ion-card",54),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275classMap("generic-modal-component__"+e.typenameComponet.floorSelection),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.title),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(null==e.props?null:e.props.description),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",null==e.props?null:e.props.data)}}function Ko(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-button",63),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext().$implicit;return a.\u0275\u0275resetView(i.action())}),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()}if(2&t){const e=a.\u0275\u0275nextContext().$implicit;let r,i,s,c;a.\u0275\u0275property("color",null!==(r=null==e?null:e.color)&&void 0!==r?r:"primary")("size",null!==(i=e.size)&&void 0!==i?i:"small")("mode",null!==(s=null==e?null:e.mode)&&void 0!==s?s:"ios")("shape",null!==(c=e.shape)&&void 0!==c?c:"round"),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.label," ")}}function wo(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",61),a.\u0275\u0275template(1,Ko,2,5,"ion-button",62),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.enabled)}}function $r(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",59),a.\u0275\u0275template(2,wo,2,1,"div",60),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",null==e.props?null:e.props.actionsButton)}}function hi(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"button",66),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext().$implicit;return a.\u0275\u0275resetView(i.action())}),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()}if(2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275classMap(null==e?null:e.classCss),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.label," ")}}function mi(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",61),a.\u0275\u0275template(1,hi,2,3,"button",65),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.enabled)}}function vn(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",64)(2,"div",59),a.\u0275\u0275template(3,mi,2,1,"div",60),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(3),a.\u0275\u0275property("ngForOf",null==e.props?null:e.props.actionsButton)}}function Eo(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"button",66),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext().$implicit;return a.\u0275\u0275resetView(i.action())}),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()}if(2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275classMap(null==e?null:e.classCss),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.label," ")}}function Ur(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",61),a.\u0275\u0275template(1,Eo,2,3,"button",65),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.enabled)}}function vo(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",67)(2,"div",59),a.\u0275\u0275template(3,Ur,2,1,"div",60),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",e.typenameComponet.floorSelection),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",null==e.props?null:e.props.actionsButton)}}let br=(()=>{class t{constructor(e,r,i,s,c){this.modalCtrl=e,this.socialSharingService=r,this.translateConfigService=i,this.notificatorService=s,this.clipboardService=c,this.actions=new a.EventEmitter,this.typenameComponet=Zn}dismiss(){var e=this;return(0,o.Z)(function*(){yield e.modalCtrl.dismiss({close:!0})})()}confirm(){var e=this;return(0,o.Z)(function*(){yield e.modalCtrl.dismiss({confirmed:!0})})()}selectFloor(e){this.props?.actionsButton?.[0]?.action&&this.props.actionsButton[0].action(e)}share(e,r){"whatsapp"===r?this.shareWhatsapp(e):"share"===r&&this.shareShare(e)}doCopyLink(e){this.clipboardService.copy(e.fullPathLocator).then(()=>{const r={message:"",title:this.translateConfigService.translate("PG_CREATE_TOAST_COPY_LINK"),type:"success",timeout:3e3};this.notificatorService.notify(r)})}shareWhatsapp(e){this.socialSharingService.shareEvent(e,"OTHERS","event_instant_generic_modal","whatsapp")}shareShare(e){this.socialSharingService.shareEvent(e,"OTHERS","event_instant_generic_modal",void 0)}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(v.iX),a.\u0275\u0275directiveInject(v.wK),a.\u0275\u0275directiveInject(v.V6),a.\u0275\u0275directiveInject(v.Yv))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-generic-modal"]],inputs:{props:"props"},outputs:{actions:"actions"},decls:13,vars:9,consts:[[1,"generic-modal-component"],["mode","ios","class","ion-no-border ion-no-padding ion-no-margin",4,"ngIf"],[4,"ngIf"],[1,"ion-no-border","ion-no-padding","ion-no-margin"],[1,"generic-modal-component__toolbar-footer","ion-no-border","ion-no-padding","ion-no-margin"],["mode","ios",1,"ion-no-border","ion-no-padding","ion-no-margin"],[1,"generic-modal-component__toolbar-header","ion-paddingion-no-border","ion-no-padding","ion-no-margin"],["class","title",4,"ngIf"],[1,"title"],["class","description scale-in-bottom",3,"innerHTML",4,"ngIf"],[1,"description","scale-in-bottom",3,"innerHTML"],[1,"__title"],[1,"__dates"],["fixed","",1,"ion-text-center","event_content_grid"],["size","4"],[1,"title-generic-modal-component"],["slot","start","name","calendar-outline"],[1,"text-icon"],["class","day",4,"ngIf"],["slot","start","name","time-outline"],["class","start",4,"ngIf"],["class","end",4,"ngIf"],[1,"__description"],[1,"__shared"],[1,"copy"],["fill","clear",3,"click"],["slot","icon-only","color","primary","name","copy"],[1,"whatsapp"],["slot","icon-only","color","primary","name","logo-whatsapp"],[1,"shared"],["slot","icon-only","color","primary","name","share-social"],[1,"__locator"],[1,"__subdescription"],[1,"ion-no-padding","ion-no-margin"],["size","2",1,"ion-no-padding","ion-no-margin"],[1,"icon"],["color","primary","name","shield-checkmark"],["size","10",1,"ion-no-padding","ion-no-margin"],[1,"text"],[1,"day"],[1,"start"],[1,"end"],[1,"generic-modal-component__card"],["class","title-generic-modal-component",4,"ngIf"],["class","box_img",4,"ngIf"],["class","description_img",4,"ngIf"],[1,"box_img"],["srcset","",3,"src","alt"],[1,"description_img"],[1,"ion-text-captalize"],[1,"content","warning-delete-event"],["color","medium"],[1,"__subtitle"],[1,"__list-floors"],["button","","detail","false","class","__floor-selection-card ion-no-padding ion-no-margin",3,"click",4,"ngFor","ngForOf"],["button","","detail","false",1,"__floor-selection-card","ion-no-padding","ion-no-margin",3,"click"],[1,"ion-justify-content-between",2,"display","flex","padding","0.6em 0"],[1,"__icon"],["name","chevron-forward-circle-outline"],[1,"btns"],["class","btn",4,"ngFor","ngForOf"],[1,"btn"],[3,"color","size","mode","shape","click",4,"ngIf"],[3,"color","size","mode","shape","click"],[1,"button-holder"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"button-holder",3,"ngClass"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0),a.\u0275\u0275template(1,Jn,4,1,"ion-header",1),a.\u0275\u0275elementStart(2,"ion-content"),a.\u0275\u0275template(3,lo,2,1,"ng-container",2),a.\u0275\u0275template(4,jr,51,18,"ng-container",2),a.\u0275\u0275template(5,ro,5,3,"ng-container",2),a.\u0275\u0275template(6,mo,5,1,"ng-container",2),a.\u0275\u0275template(7,Yo,10,5,"ng-container",2),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(8,"ion-footer",3)(9,"ion-toolbar",4),a.\u0275\u0275template(10,$r,3,1,"ng-container",2),a.\u0275\u0275template(11,vn,4,1,"ng-container",2),a.\u0275\u0275template(12,vo,4,2,"ng-container",2),a.\u0275\u0275elementEnd()()),2&e&&(a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!(null!=r.props&&r.props.img)&&(null==r.props?null:r.props.typename)!==r.typenameComponet.eventInstant&&(null==r.props?null:r.props.typename)!==r.typenameComponet.deleteEventVO&&(null==r.props?null:r.props.typename)!==r.typenameComponet.floorSelection),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",r.props&&"error"===(null==r.props?null:r.props.type)&&r.props.typename===r.typenameComponet.nomatchInvalidName),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.props&&"success"===(null==r.props?null:r.props.type)&&(null==r.props?null:r.props.typename)===r.typenameComponet.eventInstant),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.props&&(null==r.props?null:r.props.img)),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.props&&"info"===(null==r.props?null:r.props.type)&&(null==r.props?null:r.props.typename)===r.typenameComponet.deleteEventVO&&(null==r.props?null:r.props.typename)!==r.typenameComponet.floorSelection),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.props&&"info"===(null==r.props?null:r.props.type)&&(null==r.props?null:r.props.typename)===r.typenameComponet.floorSelection),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",(null==r.props?null:r.props.typename)!==r.typenameComponet.deleteEventVO&&(null==r.props?null:r.props.typename)!==r.typenameComponet.floorSelection),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",(null==r.props?null:r.props.typename)===r.typenameComponet.deleteEventVO),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",(null==r.props?null:r.props.typename)===r.typenameComponet.floorSelection))},styles:[".generic-modal-component[_ngcontent-%COMP%]{display:contents;height:100vh;position:relative}.generic-modal-component[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%]{position:relative;--background: #fff}.generic-modal-component[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{position:relative;transition:cubic-bezier(.075,.82,.165,1);top:-.2em;font-size:1em;padding:0 1.5em}.generic-modal-component__toolbar-header[_ngcontent-%COMP%]{--background: #fff;height:40px}.generic-modal-component__toolbar-footer[_ngcontent-%COMP%]{--background: #fff}.generic-modal-component__toolbar-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--background: #eee;--color: var(--ion-color-primary)}.generic-modal-component__toolbar-footer[_ngcontent-%COMP%] .btns[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:center}.generic-modal-component__toolbar-footer[_ngcontent-%COMP%] .btns[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:1em}.generic-modal-component[_ngcontent-%COMP%] .icon-close[_ngcontent-%COMP%]{position:absolute;top:-1em;width:38px;height:38px;background:#ccc;border-radius:50%;display:flex;align-items:center;justify-content:center;z-index:20}.generic-modal-component[_ngcontent-%COMP%] .icon-close-left[_ngcontent-%COMP%]{left:0}.generic-modal-component[_ngcontent-%COMP%] .icon-close-right[_ngcontent-%COMP%]{right:-.5em}.generic-modal-component__card[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin:1.6em}.generic-modal-component__card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.generic-modal-component__card[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .generic-modal-component__card[_ngcontent-%COMP%] .description_img[_ngcontent-%COMP%]{padding:.5em 0;font-weight:800;font-size:1em}.generic-modal-component__card[_ngcontent-%COMP%] .box_img[_ngcontent-%COMP%]{position:relative;border:1px solid #ddd;border-radius:5px;overflow:hidden;width:100%;background:transparent;display:flex;justify-content:center;align-items:center;height:50vh}.generic-modal-component__card[_ngcontent-%COMP%] .box_img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;object-fit:cover;width:100%}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%]{padding:2em;height:100%;display:flex;flex-direction:column;justify-content:space-around}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__title[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:24px;text-align:center;color:#1e1e1e}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__dates[_ngcontent-%COMP%]{margin:16px 0}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__description[_ngcontent-%COMP%]{font-weight:500;font-size:16px;line-height:19px;text-align:center;color:#1e1e1e}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__locator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around;height:auto;background:#f4f5f9;border-radius:8px;font-weight:700;font-size:.9em;line-height:19px;text-align:center;color:#1e1e1e;z-index:10;position:relative;margin:8px 0;padding:9px;clip:auto}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__locator-qrcode[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__shared[_ngcontent-%COMP%]{display:flex;height:2em;justify-content:center;align-items:center;margin:.5em 0}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__shared[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:2.4em}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__shared[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{width:66px;height:66px;--border-radius: 50%}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__subdescription[_ngcontent-%COMP%]{height:66px;display:flex}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__subdescription[_ngcontent-%COMP%] ion-row[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]:first{display:flex;align-items:center}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__subdescription[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:44px;height:44px;background:#f4f5f9;border:1px solid rgba(30,30,30,.06);border-radius:50%;display:flex;justify-content:center;align-items:center}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__subdescription[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:1.6em}.generic-modal-component__EVENT_INSTANT[_ngcontent-%COMP%] .__subdescription[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-weight:800;font-size:1em;line-height:22px;color:#000;padding-left:8px}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%]{border-radius:10px;padding:1.4em 1em;background-color:#fff}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__title[_ngcontent-%COMP%], .generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__subtitle[_ngcontent-%COMP%]{text-align:center}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__subtitle[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5em 0;color:#999;font-weight:400;font-size:1em}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__subtitle[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;color:#1e1e1e;font-weight:600;font-size:1.8em!important}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__list-floors[_ngcontent-%COMP%]{margin-top:2em;gap:1em;display:flex;flex-direction:column;align-items:center;justify-content:center}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__list-floors[_ngcontent-%COMP%] ion-card[_ngcontent-%COMP%]{box-shadow:none}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__list-floors[_ngcontent-%COMP%] .__floor-selection-card[_ngcontent-%COMP%]{height:100%;background-color:#f4f5f9;display:flex;width:100%;align-items:center;justify-content:space-between;padding:0 1em}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__list-floors[_ngcontent-%COMP%] .__floor-selection-card[_ngcontent-%COMP%] .__description[_ngcontent-%COMP%]{color:#313131;font-weight:700;font-size:1em;height:auto;display:flex;align-items:center}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__list-floors[_ngcontent-%COMP%] .__floor-selection-card[_ngcontent-%COMP%] .__description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__list-floors[_ngcontent-%COMP%] .__floor-selection-card[_ngcontent-%COMP%] .__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .__list-floors[_ngcontent-%COMP%] .__floor-selection-card[_ngcontent-%COMP%] .__icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:1.8em;color:var(--ion-color-primary)}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .list-floors[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{border:1px solid rgba(30,30,30,.06);margin:.5em 0;border-radius:8px}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .list-floors[_ngcontent-%COMP%] .floor-selection-title[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:700;color:#1e1e1e;background-color:#639}.generic-modal-component__FLOOR_SELECTION[_ngcontent-%COMP%] .list-floors[_ngcontent-%COMP%] .floor-description[_ngcontent-%COMP%]{font-size:1em;font-weight:700;color:#606165}.button-holder.FLOOR_SELECTION[_ngcontent-%COMP%] .btns[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px!important;padding:0 1em!important;background:#cccccc!important;color:#fff!important;font-weight:700!important;font-size:1em!important}.warning-delete-event[_ngcontent-%COMP%]{height:auto;text-align:center;margin:.1em 3em 1em;display:flex;align-items:center}.scale-in-bottom[_ngcontent-%COMP%]{animation:scale-in-bottom .5s cubic-bezier(.25,.46,.45,.94) both}@keyframes scale-in-bottom{0%{transform:scale(0);transform-origin:50% 100%;opacity:1}to{transform:scale(1);transform-origin:50% 100%;opacity:1}}"]}),t})();var Zn=(()=>{return(t=Zn||(Zn={})).eventInstant="EVENT_INSTANT",t.nomatchInvalidName="NOMATCH_INVALID_NAME",t.deleteEventVO="DELETE_EVENT_VO",t.floorSelection="FLOOR_SELECTION",Zn;var t})(),uo=f(36290),Fo=f(96893);const _i=function(t,n,e){return{"background-color":t,"height.px":n,"width.px":e}};function xr(t,n){if(1&t&&a.\u0275\u0275element(0,"span",2),2&t){const e=n.index,r=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("active",e===r.activeIndex),a.\u0275\u0275property("ngStyle",a.\u0275\u0275pureFunction3(3,_i,e===r.activeIndex?r.color:r.trailColor,r.size,r.size))}}const It=function(t){return{"height.px":t}};let ut=(()=>{class t{constructor(){this.dots=3,this.size=10,this.color="#6CB52D",this.trailColor="#D9D9D9",this.dotsArray=[],this.activeIndex=0}ngOnInit(){this.dotsArray=Array(this.dots).fill(0),this.startAnimation()}startAnimation(){setInterval(()=>{this.activeIndex=(this.activeIndex+1)%this.dots},500)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-loading-dots"]],inputs:{dots:"dots",size:"size",color:"color",trailColor:"trailColor"},decls:2,vars:4,consts:[[1,"loading-dots",3,"ngStyle"],[3,"ngStyle","active",4,"ngFor","ngForOf"],[3,"ngStyle"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0),a.\u0275\u0275template(1,xr,1,7,"span",1),a.\u0275\u0275elementEnd()),2&e&&(a.\u0275\u0275property("ngStyle",a.\u0275\u0275pureFunction1(2,It,r.size)),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",r.dotsArray))},dependencies:[b.NgForOf,b.NgStyle],styles:['@charset "UTF-8";.loading-dots[_ngcontent-%COMP%]{display:flex;gap:1em;align-items:center;justify-content:center}.loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;border-radius:50%;width:12px;height:12px;background-color:#d9d9d9;transition:background-color .3s,transform .3s}.loading-dots[_ngcontent-%COMP%] span.active[_ngcontent-%COMP%]{background-color:var(--ion-color-primary);transform:scale(1.8)}']}),t})();var nt=f(34831),Ot=f(86245),Zt=f(81838),ct=f(15439),xt=f.n(ct),rt=f(10866);function Yt(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"ion-calendar",12),a.\u0275\u0275listener("ngModelChange",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(s.dateDefault=i)})("change",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(s.change(i))}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()}if(2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngModel",e.dateDefault)("options",e.options)}}function $t(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"ion-calendar",13),a.\u0275\u0275listener("ngModelChange",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(s.selectedDates=i)})("change",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(s.change(i))}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()}if(2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngModel",e.selectedDates)("options",e.options)}}function Wt(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"ion-datetime",14),a.\u0275\u0275listener("ngModelChange",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(s.dateDefault=i)}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()}if(2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngModel",e.dateDefault)}}function dn(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",10),a.\u0275\u0275template(1,Yt,2,2,"ng-container",11),a.\u0275\u0275template(2,$t,2,2,"ng-container",11),a.\u0275\u0275template(3,Wt,2,1,"ng-container",11),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","single"===e.options.pickMode),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","multi"===e.options.pickMode),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","single"===e.options.pickMode&&e.isScreenNotification)}}let un=(()=>{class t{constructor(e,r,i){this.modalController=e,this.translateConfigService=r,this.notificatorService=i,this.selectedDates=[],this.recurrence=[],this.startDate=null,this.isScreenNotification=!1,this.options={color:"primary"},this.maxSelectableDates=null,this.processReceivedDate=()=>{if(this.recurrence.length||(this.dateDefault=[xt()(this.startDate).format("YYYY-MM-DD")]),this.recurrence.length>0){const c=this.recurrence.map(l=>xt().utc(l.happensAt).format("YYYY-MM-DD"));this.selectedDates=c}else 0===this.recurrence.length&&(this.selectedDates=[xt()(this.startDate).format("YYYY-MM-DD")])},this.back=()=>{this.modalController.dismiss({code:"BACK"})},this.ok=()=>{const s=this.selectedDates.length>0?this.orderDates(this.selectedDates):[];this.modalController.dismiss({code:"OK",data:{date:this.dateDefault instanceof Array?this.dateDefault[0]:this.dateDefault,recurrence:s,pickMode:this.options.pickMode}})},this.onDayChange=s=>{let c=parseInt(s.target.value,10);c>this.maxDay&&(c=this.maxDay),this.setDay(c)},this.setDay=s=>{this.day=0,setTimeout(()=>{this.day=s},1)},this.onMonthChange=s=>{let c=parseInt(s.target.value,10);c>12&&(c=12),this.setMonth(c),this.updateMaxDay(),this.updateDay()},this.setMonth=s=>{this.month=0,setTimeout(()=>{this.month=s},1)},this.onYearChange=s=>{let c=parseInt(s.target.value,10);c>2099&&(c=2099),this.setYear(c),this.updateMaxDay(),this.updateDay()},this.setYear=s=>{this.year=0,setTimeout(()=>{this.year=s},1)},this.lastMonthDay=()=>new Date(this.year,this.month-1+1,0).getDate(),this.updateMaxDay=()=>{this.maxDay=this.lastMonthDay()},this.updateDay=()=>{this.day>this.maxDay&&this.setDay(this.maxDay)},this.translateConfigService.getDefaultLanguage(),this.language=this.translateConfigService.getCurrentLang()}ngOnInit(){setTimeout(()=>{this.showDatetime=!0},200),this.processReceivedDate()}change(e){"single"===this.options.pickMode?this.dateDefault=e:"multi"===this.options.pickMode&&(this.maxSelectableDates&&e.length>this.maxSelectableDates?(this.selectedDates=e.slice(0,this.maxSelectableDates),this.toastShowMaxDatesRecurrence()):this.selectedDates=e)}orderDates(e){return xt().isMoment(e[0])?e.sort((r,i)=>r.diff(i)<0?-1:r.diff(i)>0?1:0):e.sort((r,i)=>r.localeCompare(i)),e}toastShowMaxDatesRecurrence(){const e={title:"",message:this.translateConfigService.translate("TOAST_MAX_RECURRENCES_DATE",{count:this.maxSelectableDates}),type:"error",timeout:1e4,cssCustom:"toast-max-dates-recurrence"};this.notificatorService.notify(e)}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(v.wK),a.\u0275\u0275directiveInject(v.V6))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-pick-date-modal"]],inputs:{selectedDates:"selectedDates",recurrence:"recurrence",startDate:"startDate",isScreenNotification:"isScreenNotification",options:"options",maxSelectableDates:"maxSelectableDates"},decls:16,vars:8,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],["aria-hidden","true","color","ok","name","calendar"],["class","modal-body",4,"ngIf"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"accept",3,"click"],[1,"modal-body"],[4,"ngIf"],["type","string",2,"margin","0","padding","0",3,"ngModel","options","ngModelChange","change"],["type","moment",3,"ngModel","options","ngModelChange","change"],["presentation","date","display-format","DD/MM/YYYY",3,"ngModel","ngModelChange"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"h3"),a.\u0275\u0275text(6),a.\u0275\u0275pipe(7,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(8,"ion-icon",5),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(9,dn,4,3,"div",6),a.\u0275\u0275elementStart(10,"div",7)(11,"button",8),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275text(12),a.\u0275\u0275pipe(13,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(14,"button",9),a.\u0275\u0275listener("click",function(){return r.ok()}),a.\u0275\u0275text(15,"Ok"),a.\u0275\u0275elementEnd()()()()()),2&e&&(a.\u0275\u0275property("ngClass","pick-date-modal"),a.\u0275\u0275advance(6),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(7,4,"COMPONENT_SELECT_DATE")),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",!r.isScreenNotification),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(13,6,"COMPONENT_SELECT_BTN_BACK")," "))},dependencies:[b.NgClass,b.NgIf,m.IonDatetime,m.IonIcon,m.SelectValueAccessor,L.NgControlStatus,L.NgModel,rt.CalendarComponent,k.X$],styles:[".pick-date-modal[_ngcontent-%COMP%]{width:100vw;height:100vh;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;display:flex;justify-content:center;align-items:center}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{width:100vw;color:#383a3e}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:.3;top:0;transition:opacity .5s ease-out}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;transition:margin-top 1s ease;display:flex;justify-content:center;align-content:center;align-items:center;flex-direction:column}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:start;font-weight:500;width:100%;background-color:#fff;display:flex;justify-content:space-between;align-items:center}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{width:100%;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff;margin-top:12px}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .date-holder[_ngcontent-%COMP%]{display:flex}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .date-holder[_ngcontent-%COMP%] .date-input-holder[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1px solid #eee;margin-right:4px;border-radius:5px;width:50px;height:50px;text-align:center}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .date-holder[_ngcontent-%COMP%] .date-input-divider-holder[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin:0 6px}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{width:100%;line-height:3.5em;display:flex;justify-content:flex-end;align-items:center;overflow:hidden;background-color:#fff;margin-top:12px}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),t})(),Pn=(()=>{class t{constructor(e){this.modalController=e,this.date=new Date,this.processReceivedDate=()=>{const r=this.date.getHours(),i=this.date.getMinutes();this.setHour(r),this.setMinute(i)},this.back=()=>{this.modalController.dismiss({code:"BACK"})},this.ok=()=>{this.date.setHours(this.hour),this.date.setMinutes(this.minute),this.modalController.dismiss({code:"OK",data:{date:this.date}})},this.onHourChange=r=>{let i=parseInt(r.target.value,10);i>23&&(i=23),this.setHour(i)},this.setHour=r=>{this.hour=0,setTimeout(()=>{this.hour=r},1)},this.onMinuteChange=r=>{let i=parseInt(r.target.value,10);i>59&&(i=59),this.setMinute(i)},this.setMinute=r=>{this.minute=0,setTimeout(()=>{this.minute=r},1)}}set startDate(e){this.date=e||new Date}ngOnInit(){this.processReceivedDate()}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-pick-datetime-modal"]],inputs:{startDate:"startDate"},decls:22,vars:9,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],["color","ok","name","time-outline"],[1,"modal-body"],[1,"date-holder"],[1,"date-input-holder"],["type","number","min","0","max","23",3,"value","click","input"],[1,"date-input-divider-holder"],["type","number","min","0","max","59",3,"value","click","input"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"accept",3,"click"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275element(7,"ion-icon",5),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(8,"div",6)(9,"div",7)(10,"div",8)(11,"input",9),a.\u0275\u0275listener("click",function(s){return s.target})("input",function(s){return r.onHourChange(s)}),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(12,"div",10),a.\u0275\u0275text(13,":"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(14,"div",8)(15,"input",11),a.\u0275\u0275listener("click",function(s){return s.target})("input",function(s){return r.onMinuteChange(s)}),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275elementStart(16,"div",12)(17,"button",13),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275text(18),a.\u0275\u0275pipe(19,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(20,"button",14),a.\u0275\u0275listener("click",function(){return r.ok()}),a.\u0275\u0275text(21,"Ok"),a.\u0275\u0275elementEnd()()()()()),2&e&&(a.\u0275\u0275property("ngClass","pick-date-modal"),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,5,"COMPONENT_SELECT_SCHEDULE")," "),a.\u0275\u0275advance(6),a.\u0275\u0275property("value",r.hour),a.\u0275\u0275advance(4),a.\u0275\u0275property("value",r.minute),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(19,7,"COMPONENT_SELECT_BTN_BACK")," "))},dependencies:[b.NgClass,m.IonIcon,k.X$],styles:[".pick-date-modal[_ngcontent-%COMP%]{width:100vw;height:100vh;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;display:flex;justify-content:center;align-items:center}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{width:100vw;color:#383a3e}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:.3;top:0;transition:opacity .5s ease-out}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;transition:margin-top 1s ease;display:flex;justify-content:center;align-content:center;align-items:center;flex-direction:column}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:start;font-weight:500;width:100%;background-color:#fff;display:flex;justify-content:space-between;align-items:center}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{width:100%;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff;margin-top:12px}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .date-holder[_ngcontent-%COMP%]{display:flex}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .date-holder[_ngcontent-%COMP%] .date-input-holder[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1px solid #eee;margin-right:4px;border-radius:5px;width:50px;height:50px;text-align:center}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .date-holder[_ngcontent-%COMP%] .date-input-divider-holder[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin:0 6px}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{width:100%;line-height:3.5em;display:flex;justify-content:flex-end;align-items:center;overflow:hidden;background-color:#fff;margin-top:12px}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.pick-date-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),t})();var On=f(71237);function In(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",9),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext().$implicit,r=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",r.metaParser(e.text,e.metas)," ")}}function Fn(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"li"),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.text," ")}}function Hr(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",9)(1,"ul"),a.\u0275\u0275template(2,Fn,2,1,"li",6),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",e.items)}}function xo(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",7),a.\u0275\u0275template(1,In,2,1,"div",8),a.\u0275\u0275template(2,Hr,3,1,"div",8),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","text"===e.type),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","unordered-list"===e.type)}}function yo(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275element(1,"app-privacy-policy-chapter",10),a.\u0275\u0275elementContainerEnd()),2&t){const e=n.$implicit,r=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("chapter",e)("labels",r.getNextLabels(r.chapter))}}let Ho=(()=>{class t{constructor(){this.getNextChapters=()=>{},this.getNextLabels=e=>[...this.labels,e["position-label"]],this.metaParser=(e,r=[])=>e.replace(/###meta-\d/g,"").replace(/###/g,"")}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-privacy-policy-chapter"]],inputs:{chapter:"chapter",labels:"labels"},decls:10,vars:5,consts:[[1,"chapter"],[1,"title"],[1,"position-label"],[1,"title-value"],[1,"paragraphs"],["class","paragraph",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"paragraph"],["class","text",4,"ngIf"],[1,"text"],[3,"chapter","labels"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"div",3)(5,"span"),a.\u0275\u0275text(6),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(7,"div",4),a.\u0275\u0275template(8,xo,3,2,"div",5),a.\u0275\u0275template(9,yo,2,2,"ng-container",6),a.\u0275\u0275elementEnd()()),2&e&&(a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate2(" ",r.labels.length?r.labels.join(".")+".":"","",r.chapter["position-label"]," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(r.chapter.title),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",r.chapter.paragraphs),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",r.chapter.chapters))},dependencies:[b.NgForOf,b.NgIf,t],styles:[".chapter[_ngcontent-%COMP%]{margin-left:8px;margin-top:48px;font-size:1em}.chapter[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1em!important;display:flex;font-weight:700}.chapter[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .position-label[_ngcontent-%COMP%]{font-size:1em}.chapter[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-value[_ngcontent-%COMP%]{font-size:1em;margin-left:32px}.chapter[_ngcontent-%COMP%] .chapters[_ngcontent-%COMP%]{margin-left:16px}.chapter[_ngcontent-%COMP%] .chapters[_ngcontent-%COMP%] .chapter[_ngcontent-%COMP%]{font-size:1em}.chapter[_ngcontent-%COMP%] .chapters[_ngcontent-%COMP%] .chapter[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1em!important;display:flex}.chapter[_ngcontent-%COMP%] .chapters[_ngcontent-%COMP%] .chapter[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .position-label[_ngcontent-%COMP%], .chapter[_ngcontent-%COMP%] .chapters[_ngcontent-%COMP%] .chapter[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-value[_ngcontent-%COMP%]{font-size:1em}.chapter[_ngcontent-%COMP%] .paragraphs[_ngcontent-%COMP%] .paragraph[_ngcontent-%COMP%]{margin:8px 10px 1px}"]}),t})();function io(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",10),a.\u0275\u0275listener("click",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(c.emailSelect(s))}),a.\u0275\u0275elementStart(1,"div",11),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit;a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.address)}}let Mo=(()=>{class t{constructor(e){this.modalController=e,this.emailSelect=r=>{this.modalController.dismiss(r)},this.back=()=>{this.modalController.dismiss(null)}}set profiles(e){this.contact=e}get profiles(){return this.contact}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-select-contact-email-to-use"]],inputs:{profiles:"profiles"},decls:14,vars:8,consts:[[3,"ngClass"],[1,"content"],[1,"background",3,"click"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[1,"profiles"],["class","profile",3,"click",4,"ngFor","ngForOf"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"profile",3,"click"],[1,"company-name"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(7,"div",5)(8,"div",6),a.\u0275\u0275template(9,io,3,1,"div",7),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(10,"div",8)(11,"button",9),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275text(12),a.\u0275\u0275pipe(13,"translate"),a.\u0275\u0275elementEnd()()()()()),2&e&&(a.\u0275\u0275property("ngClass","select-contact-email-to-use"),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,4,"MD_CONTACT_EMAIL_TO_USE_TITLE")," "),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngForOf",r.contact.emails),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(13,6,"BTN_BACK")))},dependencies:[b.NgClass,b.NgForOf,k.X$],styles:[".select-contact-email-to-use[_ngcontent-%COMP%]{width:100vw;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;height:100vh}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:.3;top:0;transition:opacity .5s ease-out}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{height:60vh;background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;margin-top:20vh;transition:margin-top 1s ease;overflow-y:scroll}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;width:100%;background-color:#fff}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{margin-top:32px;width:100%;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #eee;border-radius:4px;margin-bottom:8px}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .company-name[_ngcontent-%COMP%]{font-weight:700}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .login[_ngcontent-%COMP%]{color:#656768}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{height:3.5em;width:100%;line-height:3.5em;display:flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff;margin-top:24px}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.select-contact-email-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),t})();function bi(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",10),a.\u0275\u0275listener("click",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(c.phoneNumberSelect(s))}),a.\u0275\u0275elementStart(1,"div",11),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit;a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.number)}}let Zi=(()=>{class t{constructor(e){this.modalController=e,this.phoneNumberSelect=r=>{this.modalController.dismiss(r)},this.back=()=>{this.modalController.dismiss(null)}}set profiles(e){this.contact=e}get profiles(){return this.contact}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-select-contact-phone-number-to-use"]],inputs:{profiles:"profiles"},decls:14,vars:8,consts:[[3,"ngClass"],[1,"content"],[1,"background",3,"click"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[1,"profiles"],["class","profile",3,"click",4,"ngFor","ngForOf"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"profile",3,"click"],[1,"company-name"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(7,"div",5)(8,"div",6),a.\u0275\u0275template(9,bi,3,1,"div",7),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(10,"div",8)(11,"button",9),a.\u0275\u0275listener("click",function(){return r.back()}),a.\u0275\u0275text(12),a.\u0275\u0275pipe(13,"translate"),a.\u0275\u0275elementEnd()()()()()),2&e&&(a.\u0275\u0275property("ngClass","select-contact-phone-number-to-use"),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,4,"MD_CONTACT_PHONE_TO_USE_TITLE")," "),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngForOf",r.contact.contact.phones),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(13,6,"BTN_BACK")))},dependencies:[b.NgClass,b.NgForOf,k.X$],styles:[".select-contact-phone-number-to-use[_ngcontent-%COMP%]{width:100vw;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;height:100vh}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:.3;top:0;transition:opacity .5s ease-out}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{height:60vh;background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;margin-top:20vh;transition:margin-top 1s ease;overflow-y:scroll}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;width:100%;background-color:#fff}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{margin-top:32px;width:100%;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #eee;border-radius:4px;margin-bottom:8px}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .company-name[_ngcontent-%COMP%]{font-weight:700}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .login[_ngcontent-%COMP%]{color:#656768}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{height:3.5em;width:100%;line-height:3.5em;display:flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff;margin-top:24px}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.select-contact-phone-number-to-use[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),t})();var tr=f(50547),Po=f(59584),We=f(55832);function ot(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"ion-select-option",21),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275property("value",e),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",null==e?null:e.name," ")}}function Pt(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-item",16)(1,"ion-select",20),a.\u0275\u0275listener("ionChange",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(s.handleChangeSite(i))})("ionBlur",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(s.handleBlurSite(i))}),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275template(5,ot,2,2,"ion-select-option",18),a.\u0275\u0275elementEnd()()}if(2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("compareWith",e.compareWith)("placeholder",a.\u0275\u0275pipeBind1(2,5,"MD_LIST_BOOKEI_SELECT_SITE"))("okText",a.\u0275\u0275pipeBind1(3,7,"MD_LIST_BOOKEI_SELECT_OK"))("cancelText",a.\u0275\u0275pipeBind1(4,9,"MD_LIST_BOOKEI_SELECT_CANCEL")),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngForOf",e.sitesAvaliables)}}function zt(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"ion-select-option",21),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275property("value",e),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.name," ")}}function Qt(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"ion-select-option",21),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;a.\u0275\u0275property("value",e),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.name," ")}}function qe(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",12),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"form",13)(5,"div",14),a.\u0275\u0275template(6,Pt,6,11,"ion-item",15),a.\u0275\u0275elementStart(7,"ion-item",16)(8,"ion-select",17),a.\u0275\u0275listener("ionChange",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(s.handleChangeLocation(i))}),a.\u0275\u0275pipe(9,"translate"),a.\u0275\u0275pipe(10,"translate"),a.\u0275\u0275pipe(11,"translate"),a.\u0275\u0275template(12,zt,2,2,"ion-select-option",18),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(13,"ion-item",16)(14,"ion-select",19),a.\u0275\u0275listener("ionChange",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(s.handleChangeAssetsType(i))}),a.\u0275\u0275pipe(15,"translate"),a.\u0275\u0275pipe(16,"translate"),a.\u0275\u0275pipe(17,"translate"),a.\u0275\u0275template(18,Qt,2,2,"ion-select-option",18),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275elementContainerEnd()}if(2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(3,11,"MD_LIST_BOOKEI_TEXT_SUBTITLE")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("formGroup",e.bookinForm),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",(null==e.sitesAvaliables?null:e.sitesAvaliables.length)>1),a.\u0275\u0275advance(2),a.\u0275\u0275property("placeholder",a.\u0275\u0275pipeBind1(9,13,"MD_LIST_BOOKEI_SELECT_LOCAL"))("okText",a.\u0275\u0275pipeBind1(10,15,"MD_LIST_BOOKEI_SELECT_OK"))("cancelText",a.\u0275\u0275pipeBind1(11,17,"MD_LIST_BOOKEI_SELECT_CANCEL")),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngForOf",e.locations),a.\u0275\u0275advance(2),a.\u0275\u0275property("placeholder",a.\u0275\u0275pipeBind1(15,19,"MD_LIST_BOOKEI_SELECT_ASSETS"))("okText",a.\u0275\u0275pipeBind1(16,21,"MD_LIST_BOOKEI_SELECT_OK"))("cancelText",a.\u0275\u0275pipeBind1(17,23,"MD_LIST_BOOKEI_SELECT_CANCEL")),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngForOf",e.assetsTypes)}}function wt(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"app-card-booking-component",24),a.\u0275\u0275listener("onSelected",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(c.onBookingSelect(s))}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()}if(2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("isModal",!0)("booking",e)}}function Ht(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"ion-row")(1,"ion-col")(2,"div",22)(3,"div",8),a.\u0275\u0275text(4),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(6,wt,2,2,"ng-container",23),a.\u0275\u0275elementEnd()()()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(5,2,"MD_LIST_BOOKEI_TEXT_AVAILABLE_ASSETS")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",e.foundBookings)}}function Kt(t,n){1&t&&(a.\u0275\u0275elementStart(0,"ion-row")(1,"ion-col")(2,"div",22)(3,"div",25),a.\u0275\u0275text(4),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd()()()()),2&t&&(a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(5,1,"MD_LIST_BOOKEI_TEXT_NO_AVAILABLE_ASSETS")," "))}function on(t,n){1&t&&(a.\u0275\u0275elementStart(0,"ion-row")(1,"ion-col")(2,"div",22)(3,"div",26),a.\u0275\u0275text(4),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd()()()()),2&t&&(a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(5,1,"MD_LIST_BOOKEI_TEXT_NO_USER_ALLOWED")," "))}function Mn(t,n){1&t&&(a.\u0275\u0275elementStart(0,"ion-row")(1,"ion-col")(2,"div",22)(3,"div",26),a.\u0275\u0275text(4),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd()()()()),2&t&&(a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(5,1,"MD_LIST_BOOKEI_TEXT_CONTACT_COMPANY_ADMINSTRATOR")," "))}function Yn(t,n){if(1&t&&(a.\u0275\u0275template(0,on,6,3,"ion-row",10),a.\u0275\u0275template(1,Mn,6,3,"ion-row",10)),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275property("ngIf",e.user_not_allowed&&e.requestFinish),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!e.user_not_allowed&&e.requestFinish)}}let Hn=(()=>{class t{constructor(e,r,i,s,c,l,u,d){this.formBuilder=e,this.modalController=r,this.helperService=i,this.loaderService=s,this.profileManagerService=c,this.bookeiService=l,this.createEventService=u,this.translateConfigService=d,this.foundBookings=[],this.locations=[],this.sitesAvaliables=[],this.assetsTypes=[],this.page=0,this.size=10,this.requestFinish=!1,this.user_not_allowed=!1,this.onClose=()=>{this.modalController.dismiss()},this.onBookingSelect=p=>{this.modalController.dismiss(p)},this.handleGetBookingsSuccessResponse=p=>{this.setFoundBookings(p),this.loaderService.hide()},this.handleGetSitesBookingsSuccessResponse=p=>{if(p instanceof Po.HttpErrorResponse)return this.loaderService.hide(),this.handleGetSitesBookingsErrorResponse(p);this.setSitesFoundBookings(p),this.setInitialValueForSites(),this.loaderService.hide()},this.handleGetSitesBookingsErrorResponse=p=>{this.notFountBookins=!0,this.requestFinish=!0,this.foundBookings=[],this.locations=[],this.assetsTypes=[],this.sitesAvaliables=[],this.erroKeyStatus(p)},this.handleGetBookingsErrorResponse=p=>{},this.setFoundBookings=p=>{this.foundBookings=p.content},this.site=()=>{this.loaderService.show(this.translateConfigService.translate("MD_LIST_BOOKEI_LOADING_DATA"),null),this.bookeiService.selectService("site").then(this.handleGetSitesBookingsSuccessResponse).catch(this.handleGetSitesBookingsErrorResponse).finally(()=>{this.loaderService.hide(),this.requestFinish=!0})},this.setInitialValueForSites=()=>{this.sitesAvaliables&&this.sitesAvaliables.length>0?setTimeout(()=>{this.siteSelected=this.sitesAvaliables[0]?this.sitesAvaliables[0]:null,this.locations=this.props.initialRequest?this.sitesAvaliables[0].locations:[],this.assetsTypes=this.props.initialRequest?this.sitesAvaliables[0].assetsType:[],this.bookinForm.controls.sites.setValue(this.siteSelected),this.getBookinsFilter(this.siteSelected,this.locations[0],this.assetsTypes[0],!0)}):this.sitesAvaliables=[]},this.setInitialValueForLocations=p=>{this.bookinForm.controls.locations.setValue(p||null)},this.setInitialValueForAssetsType=p=>{this.bookinForm.controls.assetsTypes.setValue(p||null)},this.sitesAvaliables=[],this.foundBookings=[]}ionViewWillEnter(){this.profileCurrent=this.getProfileCurrent}ngOnInit(){this.initial=!0,this.site(),this.initForm()}handleBlurSite(e){}setSitesFoundBookings(e){this.sitesAvaliables=e}joinResoucers(e){return e.map(r=>r.name).join(" | ")}compareWith(e,r){return e&&r?e.id===r.id:e===r}compareWithLocations(e,r){return e&&r?e.id===r.id:e===r}handleChangeSite(e){const{value:r}=e.detail,i=r;this.siteSelected=i,this.locations=[],this.assetsTypes=[],this.foundBookings=[],i&&i.locations.length>0?setTimeout(()=>{this.locations=i.locations,this.assetsTypes=i.assetsType},80):(this.locations=[],this.assetsTypes=[],this.foundBookings=[],this.notFountBookins=!0,this.requestFinish=!0),this.initial=!1}handleChangeLocation(e){const{value:r}=e.detail,i=r;this.locationSelected=null,this.assetsTypesSelected=null,this.initial=!0,i&&(this.foundBookings=[],this.locationSelected=i,this.requestFinish=!1,this.getBookinsFilter(this.siteSelected,i,null,!1))}handleChangeAssetsType(e){this.loaderService.show(this.translateConfigService.translate("MD_LIST_BOOKEI_LOADING_ASSETS"));const{value:r}=e.detail,i=r;this.assetsTypesSelected=null,i&&(this.requestFinish=!1,this.foundBookings=[],this.assetsTypesSelected=i,this.getBookinsFilter(this.siteSelected,this.locationSelected,this.assetsTypesSelected,!1))}getBookinsFilter(e,r,i,s){const c=this.createEventService.getStartDate();let l=null;return l={"date.in":xt()(c).toISOString(),"duration.equals":this.durationDateIn,"locationId.equals":r&&r.id?r.id:1,"siteId.equals":e&&e.id?e.id:1,"typeId.equals":i&&i.id?i.id:1,page:this.page,size:this.size},this.props&&this.props.initialRequest&&s&&(delete l["locationId.equals"],delete l["typeId.equals"]),this.bookeiService.selectService("by_criteria_filter",l).then(this.handleGetBookingsSuccessResponse).catch(this.handleGetBookingsErrorResponse).finally(()=>{this.loaderService.hide(),this.requestFinish=!0})}get getProfileCurrent(){return this.profileManagerService.getProfile()}initForm(){this.bookinForm=this.formBuilder.group({sites:[""],locations:[""],assetsTypes:[""]})}erroKeyStatus(e){if("user_not_allowed"===e.error.errorKey)return this.user_not_allowed=!0}get durationDateIn(){const e=xt()(this.createEventService.getStartDate());return xt()(this.createEventService.getEndDate()).diff(e,"minutes")}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(L.UntypedFormBuilder),a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(v.W_),a.\u0275\u0275directiveInject(v.D1),a.\u0275\u0275directiveInject(v.v4),a.\u0275\u0275directiveInject(We.l),a.\u0275\u0275directiveInject(v.jc),a.\u0275\u0275directiveInject(v.wK))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-selector-for-bookings-to-add-to-event"]],inputs:{props:"props"},decls:19,vars:10,consts:[[1,"fix-header-modal-ios","ion-no-border"],[1,"content"],[1,"modal-container"],[1,"button-holder"],[1,"button-holder-back",3,"name","action"],[1,"line"],[1,"modal-body"],[1,"filters"],[1,"title"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["notSiteFount",""],[1,"subtitle"],[3,"formGroup"],[1,"filters__select"],["lines","none",4,"ngIf"],["lines","none"],["formControlName","locations",3,"placeholder","okText","cancelText","ionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","assetsTypes",3,"placeholder","okText","cancelText","ionChange"],["formControlName","sites",3,"compareWith","placeholder","okText","cancelText","ionChange","ionBlur"],[3,"value"],[1,"results"],[4,"ngFor","ngForOf"],[3,"isModal","booking","onSelected"],[1,"title","ion-text-center"],[1,"title","ion-text-center",2,"font-size","16px","font-weight","300","color","#656768"]],template:function(e,r){if(1&e&&(a.\u0275\u0275element(0,"ion-header",0),a.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"div",3)(4,"app-button-custom-component",4),a.\u0275\u0275listener("action",function(){return r.onClose()}),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275element(6,"div",5),a.\u0275\u0275elementStart(7,"div",6)(8,"ion-row")(9,"ion-col")(10,"div",7)(11,"div",8),a.\u0275\u0275text(12),a.\u0275\u0275pipe(13,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(14,qe,19,25,"ng-container",9),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275template(15,Ht,7,4,"ion-row",10),a.\u0275\u0275template(16,Kt,6,3,"ion-row",10),a.\u0275\u0275template(17,Yn,2,2,"ng-template",null,11,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275elementEnd()()()),2&e){const i=a.\u0275\u0275reference(18);a.\u0275\u0275advance(4),a.\u0275\u0275property("name",a.\u0275\u0275pipeBind1(5,6,"MD_LIST_BOOKEI_BTN_CLOSE")),a.\u0275\u0275advance(8),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(13,8,"MD_LIST_BOOKEI_TITLE")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",(null==r.sitesAvaliables?null:r.sitesAvaliables.length)>0)("ngIfElse",i),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!!r.foundBookings.length&&!r.notFountBookins&&r.requestFinish&&!r.user_not_allowed),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",(!(null!=r.foundBookings&&r.foundBookings.length)||r.notFountBookins)&&r.requestFinish&&!r.user_not_allowed&&(null==r.sitesAvaliables?null:r.sitesAvaliables.length)>0)}},dependencies:[b.NgForOf,b.NgIf,m.IonCol,m.IonHeader,m.IonItem,m.IonRow,m.IonSelect,m.IonSelectOption,m.SelectValueAccessor,L.\u0275NgNoValidate,L.NgControlStatus,L.NgControlStatusGroup,L.FormGroupDirective,L.FormControlName,Te.e,K.H,k.X$],styles:[".line[_ngcontent-%COMP%]{height:1px;background:#e6e6e6;width:90%;margin:0 auto}.filters[_ngcontent-%COMP%]{padding:18px}.filters[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:600;line-height:30px;font-size:1.2em!important;padding-bottom:12px;color:#424242}.filters[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{padding-bottom:18px}.filters__select[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{--border-radius: 32px !important;border:1px solid #e6e6e6;border-radius:32px;margin-bottom:16px}.filters__select[_ngcontent-%COMP%] ion-select[_ngcontent-%COMP%]{width:100%;max-width:100%!important;padding:12px}.button-holder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding-bottom:18px;background:#fff;width:100%}ion-header.fix-header-modal-ios.ios[_ngcontent-%COMP%]{height:0px!important}.content[_ngcontent-%COMP%]{height:100vh;background-color:#fff}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:100%;overflow:scroll}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:1em;justify-content:center}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{padding:0 18px!important;padding:1em 0;overflow:scroll;height:100%;margin:0 auto}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700;line-height:30px!important;font-size:1.2em!important;padding-bottom:12px}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin:0 0 11px;font-size:.9em;background-color:#eee;padding:4px 8px;border-radius:2px}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{margin:0 10% 4px;border:1px solid #eee;border-radius:4px;padding:4px 8px}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] > .asset-card[_ngcontent-%COMP%]{width:100%;margin:0 auto .8rem;border:1px solid #ced4da;border-radius:.25rem;display:flex;flex-wrap:wrap;align-items:center;padding:.5rem 1rem;cursor:pointer}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] > .asset-card[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%]{width:64px;height:64px;display:flex}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] > .asset-card[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:cover!important}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] > .asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%]{margin-left:1rem;display:flex;flex-direction:column;justify-content:space-between;align-self:stretch;flex:1}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] > .asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%] .asset-title[_ngcontent-%COMP%]{line-height:1rem}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] > .asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%] .asset-location[_ngcontent-%COMP%]{font-size:.8rem;line-height:1rem;color:#999}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] > .asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%] .accessory-wrapper[_ngcontent-%COMP%] .accessory-title[_ngcontent-%COMP%]{font-size:.7rem;line-height:.9rem;font-weight:600}.content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] > .asset-card[_ngcontent-%COMP%] .text-wrapper[_ngcontent-%COMP%] .accessory-wrapper[_ngcontent-%COMP%] .accessories[_ngcontent-%COMP%]{font-size:.7rem;line-height:.8rem}"]}),t})();function Sr(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"app-card-founduser",25),a.\u0275\u0275listener("userSelect",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(c.onUserSelect(s))}),a.\u0275\u0275elementEnd()}2&t&&a.\u0275\u0275property("foundUser",n.$implicit)}function Co(t,n){if(1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",22)(2,"div",23),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(5,Sr,1,1,"app-card-founduser",24),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(4,2,"MD_GUEST_TAP_ITEM_EDIT")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",e.foundUsers)}}function bo(t,n){}function Jr(t,n){1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275element(1,"app-card-founduser",26),a.\u0275\u0275elementContainerEnd()),2&t&&(a.\u0275\u0275advance(1),a.\u0275\u0275property("skeleton",!0))}let gi=(()=>{class t{constructor(e,r,i,s,c,l){var u=this;this.createEventService=e,this.formBuilder=r,this.modalController=s,this.changeDetectorRef=c,this.logService=l,this.isLoading=!1,this.isNewContact=!1,this.page=0,this.size=15,this.onClose=()=>{this.modalController.dismiss()},this.onUserSelect=d=>{setTimeout(()=>{this.modalController.dismiss(d)},750)},this.onCreateGuest=(0,o.Z)(function*(){const d=yield u.modalController.create({component:en.E});d.onDidDismiss().then(u.onModalDismissCallback),yield d.present()}),this.onModalDismissCallback=d=>{d&&d.data&&this.onUserSelect(d.data)},this.onUpdateContactInfoSuccessResponse=()=>{},this.onUpdateContactInfoErrorResponse=()=>{},this.onInputChange=d=>{const{value:p}=d.target;this.infiniteScroll.disabled=!1,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{p.length>1&&(this.foundUsers=[],this.page=0),this.doSearch(p)},750)},this.doSearch=d=>{const p={searchTerm:d=d.trim()};this.dataTerms=p,this.createEventService.getCompanyGuests(p,this.page,this.size).then(this.handleGetGuestsSuccessResponse).catch(this.handleGetCompanyGuestsErrorResponse).finally(()=>this.isLoading=!0)},this.handleGetGuestsSuccessResponse=d=>{console.log("handleGetGuestsSuccessResponse"),console.log("response:",d),this.setFoundUsers(d)},this.handleGetCompanyGuestsErrorResponse=d=>{console.log("handleGetGuestsErrorResponse"),console.log("error:",d),this.logService.logError("http::handleGetCompanyGuestsErrorResponse","",d)},this.setFoundUsers=d=>{this.foundUsers=d,this.changeDetectorRef.detectChanges(),scrollBy(0,1)},this.isNewContact=i.get("isNewContact"),this.isNewContact&&this.onCreateGuest()}ngOnInit(){this.foundUsers=[],this.searchTimeout=null,this.userForm=this.formBuilder.group({searchTerm:[""]})}ionViewWillEnter(){this.onInputChange({target:{value:""}})}loadData(e){this.page+=1,this.loadMore(this.page,e)}loadMore(e,r){this.createEventService.getCompanyGuests(this.dataTerms,e,this.size,!!r).then(i=>{this.isLoading=!0,i.length>0?(this.handleGetGuestsSuccessResponse(this.foundUsers.concat(i)),this.size>0&&r.target.complete()):r.target.disabled=!0}).catch(i=>{this.handleGetCompanyGuestsErrorResponse(i),r.target.complete(),r.target.disabled=!0})}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(v.jc),a.\u0275\u0275directiveInject(L.UntypedFormBuilder),a.\u0275\u0275directiveInject(m.NavParams),a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(v.$V))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-selector-for-guests-to-add-to-event"]],viewQuery:function(e,r){if(1&e&&a.\u0275\u0275viewQuery(m.IonInfiniteScroll,5),2&e){let i;a.\u0275\u0275queryRefresh(i=a.\u0275\u0275loadQuery())&&(r.infiniteScroll=i.first)}},decls:31,vars:11,consts:[[1,"fix-header-modal-ios","ion-no-border"],[3,"ngClass"],["horizontal","center","slot","fixed",1,"fab",3,"click"],["color","medium"],["name","close"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[3,"formGroup"],[1,"input-holder"],[1,"upper-options"],["id","name","type","text","formControlName","searchTerm",3,"placeholder","keyup"],[1,"new-holder"],[1,"button-holder"],["type","button",3,"click"],[4,"ngIf","ngIfElse"],["notResult",""],[4,"ngIf"],[1,"modal-footer"],["threshold","15%","position","bottom",3,"ionInfinite"],["IonInfiniteScroll",""],[1,"results"],[1,"sub-title"],["typeofuser","guest",3,"foundUser","userSelect",4,"ngFor","ngForOf"],["typeofuser","guest",3,"foundUser","userSelect"],[3,"skeleton"]],template:function(e,r){if(1&e&&(a.\u0275\u0275element(0,"ion-header",0),a.\u0275\u0275elementStart(1,"ion-content",1)(2,"ion-fab",2),a.\u0275\u0275listener("click",function(){return r.onClose()}),a.\u0275\u0275elementStart(3,"ion-fab-button",3),a.\u0275\u0275element(4,"ion-icon",4),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(5,"div",5)(6,"div",6),a.\u0275\u0275element(7,"div",7),a.\u0275\u0275elementStart(8,"div",8)(9,"ion-row")(10,"ion-col")(11,"form",9)(12,"div",10)(13,"div",11)(14,"input",12),a.\u0275\u0275listener("keyup",function(s){return r.onInputChange(s)}),a.\u0275\u0275pipe(15,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(16,"div",13)(17,"div",14)(18,"button",15),a.\u0275\u0275listener("click",function(){return r.onCreateGuest()}),a.\u0275\u0275text(19),a.\u0275\u0275pipe(20,"translate"),a.\u0275\u0275elementEnd()()()()()()()(),a.\u0275\u0275elementStart(21,"ion-row")(22,"ion-col"),a.\u0275\u0275template(23,Co,6,4,"ng-container",16),a.\u0275\u0275template(24,bo,0,0,"ng-template",null,17,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275template(26,Jr,2,1,"ng-container",18),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275element(27,"div",19),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(28,"ion-infinite-scroll",20,21),a.\u0275\u0275listener("ionInfinite",function(s){return r.loadData(s)}),a.\u0275\u0275element(30,"ion-infinite-scroll-content"),a.\u0275\u0275elementEnd()()),2&e){const i=a.\u0275\u0275reference(25);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass","selector"),a.\u0275\u0275advance(10),a.\u0275\u0275property("formGroup",r.userForm),a.\u0275\u0275advance(3),a.\u0275\u0275property("placeholder",a.\u0275\u0275pipeBind1(15,7,"MD_GUEST_INPUT")),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(20,9,"MD_GUEST_BTN_NEW")," "),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngIf",!!r.foundUsers.length&&r.isLoading)("ngIfElse",i),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",!r.isLoading)}},styles:["ion-content.selector.ios[_ngcontent-%COMP%]{--offset-top: 0px !important}ion-content.selector.ios[_ngcontent-%COMP%] ion-fab.fab[_ngcontent-%COMP%]{position:fixed;margin-top:10px}ion-header.fix-header-modal-ios.ios[_ngcontent-%COMP%]{height:0px!important}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{box-shadow:0 -6px 3px rgba(0,0,0,.1);margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:100%;overflow:scroll}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:3.5em;justify-content:center;align-items:center;flex-direction:column}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:32px 32px 8px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px;display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .upper-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%]{margin-top:18px}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%] .bottom-options[_ngcontent-%COMP%] .new-holder[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{margin-top:0;width:100%}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{padding:1em;overflow:scroll;height:100%}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:80%;margin:0 10% 2px;font-weight:700;text-align:center}.selector[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin:10px 0;font-size:.9em;background-color:#eee;border:1px solid #ccc;padding:8px;border-radius:2px;text-align:center}"]}),t})();function Ri(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"app-card-founduser",21),a.\u0275\u0275listener("click",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(c.onUserSelect(s))}),a.\u0275\u0275elementEnd()}2&t&&a.\u0275\u0275property("foundUser",n.$implicit)}function Qr(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",17)(1,"div",18),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"div",19),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(7,Ri,1,1,"app-card-founduser",20),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(3,3,"MD_HOSTS_TEXT_FOUND_HOSTS")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,5,"MD_HOSTS_STEP_TEXT_TAP_ITEM_EDIT")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",e.foundUsers)}}function Bo(t,n){1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275element(1,"app-card-founduser",22),a.\u0275\u0275elementContainerEnd()),2&t&&(a.\u0275\u0275advance(1),a.\u0275\u0275property("skeleton",!0))}function _a(t,n){1&t&&(a.\u0275\u0275elementStart(0,"div",24),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementEnd()),2&t&&(a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(2,1,"MD_HOSTS_TEXT_NO_FOUND_HOSTS")," "))}function Di(t,n){if(1&t&&a.\u0275\u0275template(0,_a,3,3,"div",23),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275property("ngIf",!e.foundUsers.length&&e.loaded)}}let vi=(()=>{class t{constructor(e,r,i,s,c,l){this.createEventService=e,this.formBuilder=r,this.modalController=i,this.changeDetectorRef=s,this.helperService=c,this.logService=l,this.loaded=!1,this.page=0,this.size=15,this.onClose=()=>{this.modalController.dismiss()},this.onUserSelect=u=>{this.modalController.dismiss(u)},this.onInputChange=u=>{const{value:d}=u.target;this.infiniteScroll.disabled=!1,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{d.length>1&&(this.foundUsers=[],this.page=0),this.doSearch(d)},750)},this.doSearch=u=>{const d={searchTerm:u};this.dataTerms=d,this.createEventService.getCompanyHosts(d,this.page,this.size).then(this.handleGetHostsSuccessResponse).catch(this.handleGetHostsErrorResponse).finally(()=>this.isLoading=!0)},this.handleGetHostsSuccessResponse=u=>{console.log("handleGetHostsSuccessResponse"),console.log("response:",u),this.setFoundUsers(u)},this.handleGetHostsErrorResponse=u=>{console.log("handleGetHostsErrorResponse"),this.logService.logError("http::handleGetHostsErrorResponse","",u),console.log("error:",u),this.loaded=!0},this.setFoundUsers=u=>{this.foundUsers=u,this.changeDetectorRef.detectChanges(),scrollBy(0,1),this.loaded=!0}}ngOnInit(){this.foundUsers=[],this.searchTimeout=null,this.userForm=this.formBuilder.group({searchTerm:[""]})}ionViewWillEnter(){this.onInputChange({target:{value:""}})}loadData(e){this.page+=1,this.loadMore(this.page,e)}loadMore(e,r){this.createEventService.getCompanyHosts(this.dataTerms,e,this.size,!!r).then(i=>{this.isLoading=!0,i.length>0?(this.handleGetHostsSuccessResponse(this.foundUsers.concat(i)),this.size>0&&r.target.complete()):r.target.disabled=!0}).catch(i=>{this.handleGetHostsErrorResponse(i),r.target.complete(),r.target.disabled=!0})}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(v.jc),a.\u0275\u0275directiveInject(L.UntypedFormBuilder),a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(v.W_),a.\u0275\u0275directiveInject(v.$V))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-selector-for-hosts-to-add-to-event"]],viewQuery:function(e,r){if(1&e&&a.\u0275\u0275viewQuery(m.IonInfiniteScroll,5),2&e){let i;a.\u0275\u0275queryRefresh(i=a.\u0275\u0275loadQuery())&&(r.infiniteScroll=i.first)}},decls:26,vars:11,consts:[[1,"fix-header-modal-ios","ion-no-border"],[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-title"],[1,"button-holder"],[1,"back",3,"click"],[1,"modal-body"],[3,"formGroup"],[1,"input-holder"],["id","name","type","text","formControlName","searchTerm",3,"placeholder","keyup"],["class","results",4,"ngIf","ngIfElse"],[4,"ngIf"],["notFoundUsers",""],[1,"modal-footer"],["threshold","25%","position","bottom",3,"ionInfinite"],["IonInfiniteScroll",""],[1,"results"],[1,"title"],[1,"sub-title"],["typeofuser","host",3,"foundUser","click",4,"ngFor","ngForOf"],["typeofuser","host",3,"foundUser","click"],[3,"skeleton"],["class","notfoundusers",4,"ngIf"],[1,"notfoundusers"]],template:function(e,r){if(1&e&&(a.\u0275\u0275element(0,"ion-header",0),a.\u0275\u0275elementStart(1,"ion-content",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"button",6),a.\u0275\u0275listener("click",function(){return r.onClose()}),a.\u0275\u0275text(7),a.\u0275\u0275pipe(8,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(9,"div",7)(10,"ion-row")(11,"ion-col")(12,"form",8)(13,"div",9)(14,"input",10),a.\u0275\u0275listener("keyup",function(s){return r.onInputChange(s)}),a.\u0275\u0275pipe(15,"translate"),a.\u0275\u0275elementEnd()()()()(),a.\u0275\u0275elementStart(16,"ion-row")(17,"ion-col"),a.\u0275\u0275template(18,Qr,8,7,"div",11),a.\u0275\u0275template(19,Bo,2,1,"ng-container",12),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(20,Di,1,1,"ng-template",null,13,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(22,"div",14),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(23,"ion-infinite-scroll",15,16),a.\u0275\u0275listener("ionInfinite",function(s){return r.loadData(s)}),a.\u0275\u0275element(25,"ion-infinite-scroll-content"),a.\u0275\u0275elementEnd()()),2&e){const i=a.\u0275\u0275reference(21);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass","selector"),a.\u0275\u0275advance(6),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(8,7,"MD_HOSTS_FORM_BTN_CLOSE")," "),a.\u0275\u0275advance(5),a.\u0275\u0275property("formGroup",r.userForm),a.\u0275\u0275advance(2),a.\u0275\u0275property("placeholder",a.\u0275\u0275pipeBind1(15,9,"MD_HOSTS_INPUT")),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngIf",!!r.foundUsers.length&&r.isLoading)("ngIfElse",i),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!r.isLoading)}},styles:["ion-header.fix-header-modal-ios.ios[_ngcontent-%COMP%]{height:0px!important}.modal-container[_ngcontent-%COMP%]{box-shadow:0 -6px 3px rgba(0,0,0,.1);margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:100%;overflow:scroll}.modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:1em;justify-content:center}.modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{width:100%;margin:8px 0 20px;padding:0 18px}.modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{overflow:scroll;height:100%;padding:1em}.modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700!important;font-size:initial!important}.modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin:10px 0;font-size:.9em;background-color:#eee;border:1px solid #ccc;padding:5px 8px;border-radius:2px}.notfoundusers[_ngcontent-%COMP%]{position:relative;text-align:center}"]}),t})();f(202);var ci=f(58517),aa=f(17029);function sa(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-item",2),a.\u0275\u0275listener("click",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(c.select(s))}),a.\u0275\u0275element(1,"ion-img",3),a.\u0275\u0275elementStart(2,"ion-label",4),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("src",e.flag),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.description)}}let qo=(()=>{class t{constructor(e,r,i,s,c,l){this.translateConfigService=e,this.popoverCtrl=r,this.authLoginToken=i,this.apiService=s,this.notificatorService=c,this.showToastModalErroCodeZero=l,this.resources=[],this.resources=e.resources}ngOnInit(){console.log(this.translateConfigService.getCurrentLang())}select(e){var r=this;return(0,o.Z)(function*(){console.log(e);const i=yield r.translateConfigService.setLanguage(e.lang);r.popoverCtrl.dismiss(e),r.setLanguageAccountUser(i)})()}setLanguageAccountUser(e){var r=this;this.authLoginToken.getToken().then(function(){var i=(0,o.Z)(function*(s){try{yield r.apiService.setLangulageAccount(e,s).toPromise()}catch(c){r.handleErrorSettingLanguage(c)}});return function(s){return i.apply(this,arguments)}}()).catch(i=>console.log(i))}handleErrorSettingLanguage(e){const r=e.error;if(e&&0===e?.status)this.showToastModalErroCodeZero.showToast();else if(r&&"language_not_suported"===r.errorKey){const i=`${this.translateConfigService.translate("TOAST_LANGUAGE_NOT_SUPPORTED_MESSAGE")}`,{title:s}=this.getTitleAndMessage(e);this.toastNotificationError(s,i,1e4)}else if(r&&"missing_data"===r.errorKey){const i=`${this.translateConfigService.translate("TOAST_LANGUAGE_MISSING_DATA")}`,{title:s}=this.getTitleAndMessage(e);this.toastNotificationError(s,i,1e4)}else{const{title:i,message:s}=this.getTitleAndMessage(e);this.toastNotificationError(i,s,1e4)}}getTitleAndMessage(e){const r=e?.status?`(cod. ${e.status})`:"";return{title:this.translateConfigService.translate("TOAST_TITLE_ERROR"),message:`${this.translateConfigService.translate("TOAST_SERVICE_TEMPORARILY_UNAVAILABLE_MESSAGE")} ${r}`}}toastNotificationError(e,r,i){this.notificatorService.notify({title:e,message:r,type:"error",timeout:i})}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(v.wK),a.\u0275\u0275directiveInject(m.PopoverController),a.\u0275\u0275directiveInject(v.i_),a.\u0275\u0275directiveInject(v.sM),a.\u0275\u0275directiveInject(v.V6),a.\u0275\u0275directiveInject(v.ME))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-translate-change"]],decls:3,vars:1,consts:[["lines","none"],["role","button","button","","detail","false",3,"click",4,"ngFor","ngForOf"],["role","button","button","","detail","false",3,"click"],[1,"img-flag",3,"src"],[1,"ion-padding-horizontal"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"ion-content")(1,"ion-list",0),a.\u0275\u0275template(2,sa,4,2,"ion-item",1),a.\u0275\u0275elementEnd()()),2&e&&(a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",r.resources))},dependencies:[b.NgForOf,m.IonContent,m.IonImg,m.IonItem,m.IonLabel,m.IonList],styles:["ion-img.img-flag[_ngcontent-%COMP%]{width:1.3em}"]}),t})();var Li=(()=>{return(t=Li||(Li={})).pt="pt",t.en="en",t.es="es",Li;var t})();function qr(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",18),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext().$implicit,r=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",r.helperService.normalizeName(e.firstName,e.lastName)," ")}}function ga(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",18)(1,"span",19),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.fullName)}}function Fa(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"span"),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(2).$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1("",null==e?null:e.email," ")}}function va(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",20),a.\u0275\u0275template(1,Fa,2,1,"span",21),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==e?null:e.email)}}function ya(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"span"),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(2).$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",null==e?null:e.department,"")}}function Ha(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",22),a.\u0275\u0275template(1,ya,2,1,"span",21),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==e?null:e.department)}}function ii(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",8),a.\u0275\u0275listener("click",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(c.onGuestSelect(s))}),a.\u0275\u0275template(1,qr,2,1,"div",15),a.\u0275\u0275template(2,ga,3,1,"div",15),a.\u0275\u0275template(3,va,2,1,"div",16),a.\u0275\u0275template(4,Ha,2,1,"div",17),a.\u0275\u0275elementEnd()}if(2&t){const e=n.$implicit,r=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("ngClass","result "+(r.hasEmail(e)?"email-is-present":"missing-email")),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.firstName&&e.lastName),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!e.firstName&&!e.lastName),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.hasEmail(e)),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.hasDepartment(e))}}function Fi(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",11)(1,"div",12),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"div",13),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(7,ii,5,5,"div",14),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(3,3,"MD_UPDATE_USER_EMAIL_TITLE")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,5,"MD_UPDATE_USER_EMAIL_TEXT_TAP_ITEM_EDIT")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",e.guests)}}function Go(t,n){1&t&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementContainerEnd()),2&t&&(a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(2,1,"MD_UPDATE_USER_EMAIL_BTN_PROCEED_ANYWAY")," "))}function Xo(t,n){1&t&&(a.\u0275\u0275text(0),a.\u0275\u0275pipe(1,"translate")),2&t&&a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(1,1,"MD_UPDATE_USER_EMAIL_BTN_NEXT")," ")}let Xa=(()=>{class t{constructor(e,r){var i=this;this.helperService=e,this.modalController=r,this.onGuestSelect=function(){var s=(0,o.Z)(function*(c){const l=yield i.modalController.create({component:en.E,componentProps:{contact:c}});l.onDidDismiss().then(i.onModalDismissCallback),yield l.present()});return function(c){return s.apply(this,arguments)}}(),this.onModalDismissCallback=s=>{if(console.log("onModalDismissCallback:",s),!s?.data)return;const c=s.data,l=this.guests.map(u=>u.id===c.id?c:u);console.log("updatedGuests:",l),this.guests=l},this.hasEmail=s=>!!s.email,this.hasDepartment=s=>!!s.department,this.isMissingEmail=()=>!!this.guests.find(s=>!s.email),this.onCancel=()=>{this.modalController.dismiss({share:!1,guests:this.guests},"cancel")},this.onContinue=()=>{this.modalController.dismiss({share:!0,guests:this.guests},"cancel")},this.guests=new Array}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(v.W_),a.\u0275\u0275directiveInject(m.ModalController))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-update-user-email"]],inputs:{guests:"guests"},decls:16,vars:8,consts:[[3,"ngClass"],[1,"content"],[1,"modal-container"],[1,"modal-body"],["class","results",4,"ngIf"],[1,"modal-footer"],[1,"button-holder"],[1,"cancel",3,"click"],[3,"ngClass","click"],[4,"ngIf","ngIfElse"],["isNotMissingEmail",""],[1,"results"],[1,"title"],[1,"sub-title"],[3,"ngClass","click",4,"ngFor","ngForOf"],["class","full-name",4,"ngIf"],["class","email",4,"ngIf"],["class","department",4,"ngIf"],[1,"full-name"],[1,"ion-text-capitalize"],[1,"email"],[4,"ngIf"],[1,"department"]],template:function(e,r){if(1&e&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"ion-row")(5,"ion-col"),a.\u0275\u0275template(6,Fi,8,7,"div",4),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(7,"div",5)(8,"div",6)(9,"button",7),a.\u0275\u0275listener("click",function(){return r.onCancel()}),a.\u0275\u0275text(10),a.\u0275\u0275pipe(11,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(12,"button",8),a.\u0275\u0275listener("click",function(){return r.onContinue()}),a.\u0275\u0275template(13,Go,3,3,"ng-container",9),a.\u0275\u0275template(14,Xo,2,3,"ng-template",null,10,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275elementEnd()()()()()()),2&e){const i=a.\u0275\u0275reference(15);a.\u0275\u0275property("ngClass","update-user-email"),a.\u0275\u0275advance(6),a.\u0275\u0275property("ngIf",!!r.guests.length),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(11,6,"MD_UPDATE_USER_EMAIL_BTN_CANCEL")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngClass","continue "+(r.isMissingEmail()?"missing-email":"")),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.isMissingEmail())("ngIfElse",i)}},dependencies:[b.NgClass,b.NgForOf,b.NgIf,m.IonCol,m.IonRow,k.X$],styles:[".update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{box-shadow:0 -6px 3px rgba(0,0,0,.1);padding-top:3em;transition:margin-top 1s ease;background-color:#fff;height:90%;margin:5% 8px;overflow:scroll;border-radius:8px}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{display:flex;padding-top:1em;justify-content:center}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{justify-content:center;margin:0}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .input-holder[_ngcontent-%COMP%]{margin-top:8px}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{padding-bottom:1em;overflow:scroll;height:100%}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:80%;margin:0 10% 2px;font-weight:700!important;font-size:initial!important}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{width:80%;margin:4px 10% 11px;font-size:.9em;background-color:#eee;padding:4px 8px;border-radius:2px}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{width:80%;margin:0 10% 4px;border:1px solid #eee;border-radius:4px;padding:8px 12px}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] .department[_ngcontent-%COMP%]{font-size:.8em;color:#aaa}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result.email-is-present[_ngcontent-%COMP%]{border-color:#0ec254}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result.missing-email[_ngcontent-%COMP%]{border-color:#f25454}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.75em 1em;border-radius:50px;color:#333;font-size:1em;transition:background-color .1s ease-out}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] button.continue[_ngcontent-%COMP%]{background-color:#0ec254;color:#fff;margin-top:8px}.update-user-email[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] .button-holder[_ngcontent-%COMP%] button.continue.missing-email[_ngcontent-%COMP%]{background-color:#f25454}"]}),t})();f(97842);var Ji=f(29946),Wi=f(35929);function Za(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"span",10),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(e.logs.length)}}function fe(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"span",11),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(e.errorCount)}}function lt(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",6),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(i.toggleConsole())}),a.\u0275\u0275element(1,"ion-icon",7),a.\u0275\u0275template(2,Za,2,1,"span",8),a.\u0275\u0275template(3,fe,2,1,"span",9),a.\u0275\u0275elementEnd()}if(2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",e.logs.length>0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.errorCount>0)}}function P(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",12),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(i.toggleErrorModal())}),a.\u0275\u0275element(1,"ion-icon",13),a.\u0275\u0275elementStart(2,"span",14),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd()()}if(2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(e.errorCount)}}function Q(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-button",42),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(4);return a.\u0275\u0275resetView(i.toggleErrorModal())}),a.\u0275\u0275element(1,"ion-icon",43),a.\u0275\u0275elementStart(2,"ion-label"),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd()()}if(2&t){const e=a.\u0275\u0275nextContext(4);a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate2("",e.errorCount," Erro",e.errorCount>1?"s":""," HTTP")}}function Pe(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",25)(1,"div",26)(2,"ion-chip",27),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.toggleFilter("log"))}),a.\u0275\u0275element(3,"ion-icon",21),a.\u0275\u0275elementStart(4,"ion-label"),a.\u0275\u0275text(5,"Log"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(6,"ion-chip",28),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.toggleFilter("info"))}),a.\u0275\u0275element(7,"ion-icon",21),a.\u0275\u0275elementStart(8,"ion-label"),a.\u0275\u0275text(9,"Info"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(10,"ion-chip",29),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.toggleFilter("warn"))}),a.\u0275\u0275element(11,"ion-icon",21),a.\u0275\u0275elementStart(12,"ion-label"),a.\u0275\u0275text(13,"Warn"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(14,"ion-chip",30),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.toggleFilter("error"))}),a.\u0275\u0275element(15,"ion-icon",21),a.\u0275\u0275elementStart(16,"ion-label"),a.\u0275\u0275text(17,"Error"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(18,"ion-chip",31),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.toggleFilter("http"))}),a.\u0275\u0275element(19,"ion-icon",21),a.\u0275\u0275elementStart(20,"ion-label"),a.\u0275\u0275text(21,"HTTP"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(22,"div",32),a.\u0275\u0275template(23,Q,4,2,"ion-button",33),a.\u0275\u0275elementStart(24,"ion-searchbar",34),a.\u0275\u0275listener("ngModelChange",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(s.searchTerm=i)})("ionInput",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.filterLogs())}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(25,"ion-button",35),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.clearLogs())}),a.\u0275\u0275element(26,"ion-icon",36),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(27,"ion-button",37),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.exportLogs())}),a.\u0275\u0275element(28,"ion-icon",38),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(29,"ion-button",39),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(i.toggleDebugConsole())}),a.\u0275\u0275element(30,"ion-icon",40),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(31,"ion-toggle",41),a.\u0275\u0275listener("ngModelChange",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(s.autoScroll=i)}),a.\u0275\u0275text(32," Auto-scroll "),a.\u0275\u0275elementEnd()()()}if(2&t){const e=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(2),a.\u0275\u0275classProp("filter-active",e.selectedFilters.has("log"))("filter-inactive",!e.selectedFilters.has("log")),a.\u0275\u0275advance(1),a.\u0275\u0275property("name",e.selectedFilters.has("log")?"checkmark-circle":"close-circle"),a.\u0275\u0275advance(3),a.\u0275\u0275classProp("filter-active",e.selectedFilters.has("info"))("filter-inactive",!e.selectedFilters.has("info")),a.\u0275\u0275advance(1),a.\u0275\u0275property("name",e.selectedFilters.has("info")?"checkmark-circle":"close-circle"),a.\u0275\u0275advance(3),a.\u0275\u0275classProp("filter-active",e.selectedFilters.has("warn"))("filter-inactive",!e.selectedFilters.has("warn")),a.\u0275\u0275advance(1),a.\u0275\u0275property("name",e.selectedFilters.has("warn")?"checkmark-circle":"close-circle"),a.\u0275\u0275advance(3),a.\u0275\u0275classProp("filter-active",e.selectedFilters.has("error"))("filter-inactive",!e.selectedFilters.has("error")),a.\u0275\u0275advance(1),a.\u0275\u0275property("name",e.selectedFilters.has("error")?"checkmark-circle":"close-circle"),a.\u0275\u0275advance(3),a.\u0275\u0275classProp("filter-active",e.selectedFilters.has("http"))("filter-inactive",!e.selectedFilters.has("http")),a.\u0275\u0275advance(1),a.\u0275\u0275property("name",e.selectedFilters.has("http")?"checkmark-circle":"close-circle"),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngIf",e.errorCount>0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngModel",e.searchTerm),a.\u0275\u0275advance(7),a.\u0275\u0275property("ngModel",e.autoScroll)}}function Ve(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"span",61),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(e.method)}}function Z(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"span",62),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275classProp("error",e.status>=400),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",e.status," ")}}function re(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"span",63),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1("",e.duration,"ms")}}function Xe(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",64)(1,"div",65)(2,"span"),a.\u0275\u0275text(3,"Request/Response Data"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"ion-button",66),a.\u0275\u0275listener("click",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext().$implicit,c=a.\u0275\u0275nextContext(4);return a.\u0275\u0275resetView(c.copyData(s.data,i))}),a.\u0275\u0275element(5,"ion-icon",57),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(6,"pre"),a.\u0275\u0275text(7),a.\u0275\u0275pipe(8,"json"),a.\u0275\u0275elementEnd()()}if(2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(7),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(8,1,e.data))}}function it(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",67)(1,"div",68)(2,"span"),a.\u0275\u0275text(3,"Stack Trace"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"ion-button",69),a.\u0275\u0275listener("click",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext().$implicit,c=a.\u0275\u0275nextContext(4);return a.\u0275\u0275resetView(c.copyStack(s.stack,i))}),a.\u0275\u0275element(5,"ion-icon",57),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(6,"pre"),a.\u0275\u0275text(7),a.\u0275\u0275elementEnd()()}if(2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(7),a.\u0275\u0275textInterpolate(e.stack)}}function bt(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",47)(1,"div",48)(2,"div",49),a.\u0275\u0275element(3,"ion-icon",50),a.\u0275\u0275elementStart(4,"span",51),a.\u0275\u0275text(5),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"span",52),a.\u0275\u0275text(7),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(8,Ve,2,1,"span",53),a.\u0275\u0275template(9,Z,2,3,"span",54),a.\u0275\u0275template(10,re,2,1,"span",55),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(11,"ion-button",56),a.\u0275\u0275listener("click",function(i){const c=a.\u0275\u0275restoreView(e).$implicit,l=a.\u0275\u0275nextContext(4);return a.\u0275\u0275resetView(l.copyLog(c,i))}),a.\u0275\u0275element(12,"ion-icon",57),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(13,"div",58),a.\u0275\u0275text(14),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(15,Xe,9,3,"div",59),a.\u0275\u0275template(16,it,8,1,"div",60),a.\u0275\u0275elementEnd()}if(2&t){const e=n.$implicit,r=a.\u0275\u0275nextContext(4);a.\u0275\u0275classMap("debug-console__log--"+e.level),a.\u0275\u0275advance(3),a.\u0275\u0275property("name",r.getLogIcon(e.level))("color",r.getLogColor(e.level)),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(r.formatTime(e.timestamp)),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.level.toUpperCase()),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.method),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.status),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.duration),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(e.message),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.data),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.stack)}}function mt(t,n){1&t&&(a.\u0275\u0275elementStart(0,"div",70),a.\u0275\u0275element(1,"ion-icon",71),a.\u0275\u0275elementStart(2,"p"),a.\u0275\u0275text(3,"Nenhum log encontrado"),a.\u0275\u0275elementEnd()())}function Rt(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",44),a.\u0275\u0275template(1,bt,17,12,"div",45),a.\u0275\u0275template(2,mt,4,0,"div",46),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",e.filteredLogs),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",0===e.filteredLogs.length)}}function Xt(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"div",17),a.\u0275\u0275element(3,"ion-icon",7),a.\u0275\u0275elementStart(4,"span"),a.\u0275\u0275text(5,"Debug Console"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"span",18),a.\u0275\u0275text(7),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(8,"div",19)(9,"ion-button",20),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(i.toggleMinimize())}),a.\u0275\u0275element(10,"ion-icon",21),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(11,"ion-button",20),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(i.toggleConsole())}),a.\u0275\u0275element(12,"ion-icon",22),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275template(13,Pe,33,28,"div",23),a.\u0275\u0275template(14,Rt,3,2,"div",24),a.\u0275\u0275elementEnd()}if(2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275classProp("minimized",e.isMinimized),a.\u0275\u0275advance(7),a.\u0275\u0275textInterpolate2("(",e.filteredLogs.length,"/",e.logs.length,")"),a.\u0275\u0275advance(3),a.\u0275\u0275property("name",e.isMinimized?"chevron-up":"chevron-down"),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",!e.isMinimized),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!e.isMinimized)}}function qt(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",92)(1,"div",93),a.\u0275\u0275element(2,"ion-icon",97),a.\u0275\u0275elementStart(3,"span"),a.\u0275\u0275text(4,"Request"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"ion-button",20),a.\u0275\u0275listener("click",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2).$implicit,c=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(c.copyData(s.data.request,i))}),a.\u0275\u0275element(6,"ion-icon",57),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(7,"div",95)(8,"pre"),a.\u0275\u0275text(9),a.\u0275\u0275pipe(10,"json"),a.\u0275\u0275elementEnd()()()}if(2&t){const e=a.\u0275\u0275nextContext(2).$implicit;a.\u0275\u0275advance(9),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(10,1,e.data.request))}}function Sn(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",92)(1,"div",93),a.\u0275\u0275element(2,"ion-icon",98),a.\u0275\u0275elementStart(3,"span"),a.\u0275\u0275text(4,"Error Response"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"ion-button",20),a.\u0275\u0275listener("click",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2).$implicit,c=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(c.copyData(s.data.error,i))}),a.\u0275\u0275element(6,"ion-icon",57),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(7,"div",95)(8,"pre"),a.\u0275\u0275text(9),a.\u0275\u0275pipe(10,"json"),a.\u0275\u0275elementEnd()()()}if(2&t){const e=a.\u0275\u0275nextContext(2).$implicit;a.\u0275\u0275advance(9),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(10,1,e.data.error))}}function Wn(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",92)(1,"div",93),a.\u0275\u0275element(2,"ion-icon",99),a.\u0275\u0275elementStart(3,"span"),a.\u0275\u0275text(4,"Stack Trace"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"ion-button",20),a.\u0275\u0275listener("click",function(i){a.\u0275\u0275restoreView(e);const s=a.\u0275\u0275nextContext(2).$implicit,c=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(c.copyStack(s.stack,i))}),a.\u0275\u0275element(6,"ion-icon",57),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(7,"div",95)(8,"pre"),a.\u0275\u0275text(9),a.\u0275\u0275elementEnd()()()}if(2&t){const e=a.\u0275\u0275nextContext(2).$implicit;a.\u0275\u0275advance(9),a.\u0275\u0275textInterpolate(e.stack)}}function Un(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",91)(1,"div",92)(2,"div",93),a.\u0275\u0275element(3,"ion-icon",94),a.\u0275\u0275elementStart(4,"span"),a.\u0275\u0275text(5,"Mensagem"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(6,"div",95),a.\u0275\u0275text(7),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(8,qt,11,3,"div",96),a.\u0275\u0275template(9,Sn,11,3,"div",96),a.\u0275\u0275template(10,Wn,10,1,"div",96),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(7),a.\u0275\u0275textInterpolate1(" ",e.message," "),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==e.data?null:e.data.request),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==e.data?null:e.data.error),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.stack)}}function sr(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",82)(1,"div",83),a.\u0275\u0275listener("click",function(){const s=a.\u0275\u0275restoreView(e).$implicit,c=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(c.toggleErrorCard(s))}),a.\u0275\u0275elementStart(2,"div",84),a.\u0275\u0275element(3,"ion-icon",21),a.\u0275\u0275elementStart(4,"span",85),a.\u0275\u0275text(5),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"span",86),a.\u0275\u0275text(7),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(8,"span",87),a.\u0275\u0275text(9),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(10,"ion-button",88),a.\u0275\u0275listener("click",function(i){const c=a.\u0275\u0275restoreView(e).$implicit,l=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(l.copyLog(c,i))}),a.\u0275\u0275element(11,"ion-icon",57),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(12,"div",89),a.\u0275\u0275text(13),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(14,Un,11,4,"div",90),a.\u0275\u0275elementEnd()}if(2&t){const e=n.$implicit,r=a.\u0275\u0275nextContext(3);a.\u0275\u0275classMap(r.getErrorStatusClass(null==e?null:e.status)),a.\u0275\u0275advance(3),a.\u0275\u0275property("name",e.expanded?"chevron-down":"chevron-forward"),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.status),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.method),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(r.formatTime(e.timestamp)),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",e.url," "),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.expanded)}}function hr(t,n){1&t&&(a.\u0275\u0275elementStart(0,"div",100),a.\u0275\u0275element(1,"ion-icon",101),a.\u0275\u0275elementStart(2,"p"),a.\u0275\u0275text(3,"Nenhum erro HTTP registrado"),a.\u0275\u0275elementEnd()())}function Ar(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",72)(1,"div",73),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(i.toggleErrorModal())}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(2,"div",74)(3,"div",75)(4,"div",76),a.\u0275\u0275element(5,"ion-icon",77),a.\u0275\u0275elementStart(6,"span"),a.\u0275\u0275text(7,"Erros HTTP"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(8,"span",78),a.\u0275\u0275text(9),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(10,"ion-button",20),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(i.toggleErrorModal())}),a.\u0275\u0275element(11,"ion-icon",22),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(12,"div",79),a.\u0275\u0275template(13,sr,15,8,"div",80),a.\u0275\u0275template(14,hr,4,0,"div",81),a.\u0275\u0275elementEnd()()()}if(2&t){const e=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(9),a.\u0275\u0275textInterpolate2("",e.errorCount," erro",e.errorCount>1?"s":"",""),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngForOf",e.httpErrors),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",0===e.httpErrors.length)}}function eo(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",1),a.\u0275\u0275template(1,lt,4,2,"div",2),a.\u0275\u0275template(2,P,4,1,"div",3),a.\u0275\u0275template(3,Xt,15,7,"div",4),a.\u0275\u0275template(4,Ar,15,4,"div",5),a.\u0275\u0275elementEnd()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!e.isOpen),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!e.isOpen&&e.errorCount>0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.isOpen),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",e.isErrorModalOpen)}}let fo=(()=>{class t{constructor(e,r){this.debugConsole=e,this.environmentSwitcher=r,this.isOpen=!1,this.isMinimized=!1,this.logs=[],this.filteredLogs=[],this.selectedFilters=new Set(["log","info","warn","error","http"]),this.searchTerm="",this.autoScroll=!0,this.isVisible=!1,this.isDebugEnabled=!0,this.isErrorModalOpen=!1,this.httpErrors=[],this.errorCount=0,this.DEBUG_ENABLED_KEY="ka_debug_console_enabled"}ngOnInit(){if(this.checkEnvironmentAndVisibility(),this.environmentSubscription=this.environmentSwitcher.environment$.subscribe(r=>{r&&(console.log("[DebugConsole] Ambiente mudou para:",r.type),setTimeout(()=>{this.checkEnvironmentAndVisibility()},2))}),!this.isVisible)return;const e=localStorage.getItem(this.DEBUG_ENABLED_KEY);this.isDebugEnabled="false"!==e,this.subscription=this.debugConsole.logs$.subscribe(r=>{this.logs=r,this.filterLogs(),this.updateHttpErrors(),this.autoScroll&&setTimeout(()=>this.scrollToBottom(),100)})}checkEnvironmentAndVisibility(){"prod"===this.environmentSwitcher.getCurrentEnvironment().type?(this.isVisible=!1,this.isDebugEnabled=!1,this.isOpen=!1,localStorage.setItem(this.DEBUG_ENABLED_KEY,"false"),console.log("[DebugConsole] Bloqueado em produ\xe7\xe3o")):this.isVisible=!0}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.environmentSubscription&&this.environmentSubscription.unsubscribe()}toggleConsole(){this.isOpen=!this.isOpen,this.isOpen&&(this.isMinimized=!1)}toggleMinimize(){this.isMinimized=!this.isMinimized}toggleDebugConsole(){this.isDebugEnabled=!this.isDebugEnabled,localStorage.setItem(this.DEBUG_ENABLED_KEY,String(this.isDebugEnabled)),this.isDebugEnabled||(this.isOpen=!1)}toggleFilter(e){this.selectedFilters.has(e)?this.selectedFilters.delete(e):this.selectedFilters.add(e),this.filterLogs()}clearLogs(){this.debugConsole.clearLogs(),this.httpErrors=[],this.errorCount=0}toggleErrorModal(){this.isErrorModalOpen=!this.isErrorModalOpen}toggleErrorCard(e){e.expanded=!e.expanded}getErrorStatusClass(e){return e>=500?"error-5xx":e>=400?"error-4xx":"error-other"}updateHttpErrors(){this.httpErrors=this.logs.filter(e=>"http"===e.level&&e.status&&e.status>=400),this.errorCount=this.httpErrors.length}exportLogs(){const e=this.debugConsole.exportLogs(),r=new Blob([e],{type:"application/json"}),i=window.URL.createObjectURL(r),s=document.createElement("a");s.href=i,s.download=`debug-logs-${(new Date).toISOString()}.json`,s.click(),window.URL.revokeObjectURL(i)}copyLog(e,r){r&&r.stopPropagation();const i=JSON.stringify(e,null,2);this.copyToClipboard(i,"Log copiado!")}copyData(e,r){r.stopPropagation();const i=JSON.stringify(e,null,2);this.copyToClipboard(i,"Dados copiados!")}copyStack(e,r){r.stopPropagation(),this.copyToClipboard(e,"Stack trace copiado!")}copyToClipboard(e,r){navigator.clipboard.writeText(e).then(()=>{this.showCopyFeedback(r)},i=>{console.error("Erro ao copiar:",i),this.showCopyFeedback("Erro ao copiar!")})}showCopyFeedback(e){const r=document.createElement("div");r.className="debug-console__copy-feedback",r.textContent=e,document.body.appendChild(r),setTimeout(()=>{r.remove()},2e3)}filterLogs(){this.filteredLogs=this.logs.filter(e=>{const r=this.selectedFilters.has(e.level),i=!this.searchTerm||e.message.toLowerCase().includes(this.searchTerm.toLowerCase())||e.url&&e.url.toLowerCase().includes(this.searchTerm.toLowerCase());return r&&i})}getLogIcon(e){switch(e){case"log":return"terminal";case"info":return"information-circle";case"warn":return"warning";case"error":return"close-circle";case"http":return"globe";default:return"document"}}getLogColor(e){switch(e){case"log":default:return"medium";case"info":return"primary";case"warn":return"warning";case"error":return"danger";case"http":return"success"}}formatTime(e){return new Date(e).toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3})}scrollToBottom(){const e=document.querySelector(".debug-console__logs");e&&(e.scrollTop=e.scrollHeight)}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(Ji.N),a.\u0275\u0275directiveInject(Wi.V))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-debug-console"]],decls:1,vars:1,consts:[["class","debug-console",4,"ngIf"],[1,"debug-console"],["class","debug-console__fab",3,"click",4,"ngIf"],["class","debug-console__error-fab",3,"click",4,"ngIf"],["class","debug-console__panel",3,"minimized",4,"ngIf"],["class","debug-console__error-modal",4,"ngIf"],[1,"debug-console__fab",3,"click"],["name","bug"],["class","debug-console__fab-badge",4,"ngIf"],["class","debug-console__fab-error-badge",4,"ngIf"],[1,"debug-console__fab-badge"],[1,"debug-console__fab-error-badge"],[1,"debug-console__error-fab",3,"click"],["name","alert-circle"],[1,"debug-console__error-fab-badge"],[1,"debug-console__panel"],[1,"debug-console__header"],[1,"debug-console__header-left"],[1,"debug-console__count"],[1,"debug-console__header-right"],["fill","clear","size","small",3,"click"],[3,"name"],["name","close"],["class","debug-console__toolbar",4,"ngIf"],["class","debug-console__logs",4,"ngIf"],[1,"debug-console__toolbar"],[1,"debug-console__filters"],["color","medium",3,"click"],["color","primary",3,"click"],["color","warning",3,"click"],["color","danger",3,"click"],["color","success",3,"click"],[1,"debug-console__actions"],["fill","solid","size","small","color","danger","title","Ver resumo de erros HTTP",3,"click",4,"ngIf"],["placeholder","Buscar...","debounce","300",3,"ngModel","ngModelChange","ionInput"],["fill","clear","size","small","title","Limpar logs",3,"click"],["name","trash"],["fill","clear","size","small","title","Exportar logs",3,"click"],["name","download"],["fill","clear","size","small","title","Ocultar debug console","color","danger",3,"click"],["name","eye-off"],["labelPlacement","start",3,"ngModel","ngModelChange"],["fill","solid","size","small","color","danger","title","Ver resumo de erros HTTP",3,"click"],["name","alert-circle","slot","start"],[1,"debug-console__logs"],["class","debug-console__log",3,"class",4,"ngFor","ngForOf"],["class","debug-console__empty",4,"ngIf"],[1,"debug-console__log"],[1,"debug-console__log-header"],[1,"debug-console__log-header-left"],[3,"name","color"],[1,"debug-console__log-time"],[1,"debug-console__log-level"],["class","debug-console__log-method",4,"ngIf"],["class","debug-console__log-status",3,"error",4,"ngIf"],["class","debug-console__log-duration",4,"ngIf"],["fill","clear","size","small","title","Copiar log",1,"debug-console__log-copy",3,"click"],["name","copy-outline"],[1,"debug-console__log-message"],["class","debug-console__log-data",4,"ngIf"],["class","debug-console__log-stack",4,"ngIf"],[1,"debug-console__log-method"],[1,"debug-console__log-status"],[1,"debug-console__log-duration"],[1,"debug-console__log-data"],[1,"debug-console__log-data-header"],["fill","clear","size","small","title","Copiar dados",3,"click"],[1,"debug-console__log-stack"],[1,"debug-console__log-stack-header"],["fill","clear","size","small","title","Copiar stack trace",3,"click"],[1,"debug-console__empty"],["name","document-text-outline"],[1,"debug-console__error-modal"],[1,"debug-console__error-modal-overlay",3,"click"],[1,"debug-console__error-modal-content"],[1,"debug-console__error-modal-header"],[1,"debug-console__error-modal-header-left"],["name","alert-circle","color","danger"],[1,"debug-console__error-modal-count"],[1,"debug-console__error-modal-body"],["class","debug-console__error-card",3,"class",4,"ngFor","ngForOf"],["class","debug-console__error-modal-empty",4,"ngIf"],[1,"debug-console__error-card"],[1,"debug-console__error-card-header",3,"click"],[1,"debug-console__error-card-header-left"],[1,"debug-console__error-card-status"],[1,"debug-console__error-card-method"],[1,"debug-console__error-card-time"],["fill","clear","size","small","title","Copiar erro",3,"click"],[1,"debug-console__error-card-url"],["class","debug-console__error-card-details",4,"ngIf"],[1,"debug-console__error-card-details"],[1,"debug-console__error-card-section"],[1,"debug-console__error-card-section-title"],["name","information-circle"],[1,"debug-console__error-card-section-content"],["class","debug-console__error-card-section",4,"ngIf"],["name","arrow-up-circle"],["name","close-circle"],["name","list"],[1,"debug-console__error-modal-empty"],["name","checkmark-circle-outline"]],template:function(e,r){1&e&&a.\u0275\u0275template(0,eo,5,4,"div",0),2&e&&a.\u0275\u0275property("ngIf",r.isVisible&&r.isDebugEnabled)},dependencies:[b.NgForOf,b.NgIf,m.IonButton,m.IonChip,m.IonIcon,m.IonLabel,m.IonSearchbar,m.IonToggle,m.BooleanValueAccessor,m.TextValueAccessor,L.NgControlStatus,L.NgModel,b.JsonPipe],styles:[".debug-console[_ngcontent-%COMP%]{position:fixed;z-index:99999}.debug-console__fab[_ngcontent-%COMP%]{position:fixed;bottom:80px;right:16px;width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.3);cursor:pointer;transition:all .3s ease}.debug-console__fab[_ngcontent-%COMP%]:hover{transform:scale(1.1);box-shadow:0 6px 16px rgba(0,0,0,.4)}.debug-console__fab[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:28px}.debug-console__fab-badge[_ngcontent-%COMP%]{position:absolute;top:-4px;right:-4px;background:#f44336;color:#fff;border-radius:12px;padding:2px 6px;font-size:10px;font-weight:700;min-width:20px;text-align:center}.debug-console__fab-error-badge[_ngcontent-%COMP%]{position:absolute;bottom:-4px;right:-4px;background:#ff5722;color:#fff;border-radius:12px;padding:2px 6px;font-size:10px;font-weight:700;min-width:20px;text-align:center;animation:pulse 2s infinite}.debug-console__error-fab[_ngcontent-%COMP%]{position:fixed;bottom:80px;right:80px;width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#f44336 0%,#d32f2f 100%);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(244,67,54,.5);cursor:pointer;transition:all .3s ease;animation:pulse 2s infinite}.debug-console__error-fab[_ngcontent-%COMP%]:hover{transform:scale(1.1);box-shadow:0 6px 16px rgba(244,67,54,.7)}.debug-console__error-fab[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:28px}.debug-console__error-fab-badge[_ngcontent-%COMP%]{position:absolute;top:-4px;right:-4px;background:#fff;color:#f44336;border-radius:12px;padding:2px 6px;font-size:10px;font-weight:700;min-width:20px;text-align:center}.debug-console__panel[_ngcontent-%COMP%]{position:fixed;bottom:16px;right:16px;width:90vw;max-width:800px;height:70vh;background:#1e1e1e;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.5);display:flex;flex-direction:column;overflow:hidden;animation:slideUp .3s ease}.debug-console__panel.minimized[_ngcontent-%COMP%]{height:auto}@media (max-width: 768px){.debug-console__panel[_ngcontent-%COMP%]{width:95vw;height:60vh;bottom:8px;right:8px}}.debug-console__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#2d2d2d;border-bottom:1px solid #3d3d3d}.debug-console__header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;color:#fff;font-weight:600}.debug-console__header-left[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:20px;color:#667eea}.debug-console__header-right[_ngcontent-%COMP%]{display:flex;gap:4px}.debug-console__header-right[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--color: #fff}.debug-console__count[_ngcontent-%COMP%]{font-size:12px;color:#999;font-weight:400}.debug-console__toolbar[_ngcontent-%COMP%]{padding:12px 16px;background:#252525;border-bottom:1px solid #3d3d3d;display:flex;flex-direction:column;gap:12px}.debug-console__filters[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.debug-console__filters[_ngcontent-%COMP%] ion-chip[_ngcontent-%COMP%]{cursor:pointer;transition:all .2s ease;font-weight:600;border:2px solid transparent}.debug-console__filters[_ngcontent-%COMP%] ion-chip[_ngcontent-%COMP%]:hover{transform:scale(1.05)}.debug-console__filters[_ngcontent-%COMP%] ion-chip.filter-active[_ngcontent-%COMP%]{opacity:1;border-color:currentColor}.debug-console__filters[_ngcontent-%COMP%] ion-chip.filter-active[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:inherit}.debug-console__filters[_ngcontent-%COMP%] ion-chip.filter-inactive[_ngcontent-%COMP%]{opacity:.4;background:#3d3d3d!important;color:#999!important;border-color:#555}.debug-console__filters[_ngcontent-%COMP%] ion-chip.filter-inactive[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:#999!important}.debug-console__filters[_ngcontent-%COMP%] ion-chip.filter-inactive[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{color:#999!important}.debug-console__filters[_ngcontent-%COMP%] ion-chip.filter-inactive[_ngcontent-%COMP%]:hover{opacity:.6}.debug-console__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.debug-console__actions[_ngcontent-%COMP%] ion-searchbar[_ngcontent-%COMP%]{flex:1;--background: #1e1e1e;--color: #fff;--placeholder-color: #999;--icon-color: #999}.debug-console__actions[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--color: #fff}.debug-console__actions[_ngcontent-%COMP%] ion-toggle[_ngcontent-%COMP%]{--background: #3d3d3d;--background-checked: #667eea;color:#fff;font-size:12px}.debug-console__logs[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:8px;background:#1e1e1e}.debug-console__logs[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.debug-console__logs[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#2d2d2d}.debug-console__logs[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#667eea;border-radius:4px}.debug-console__log[_ngcontent-%COMP%]{padding:12px;margin-bottom:8px;background:#252525;border-radius:8px;border-left:4px solid #667eea;cursor:pointer;transition:all .2s ease}.debug-console__log[_ngcontent-%COMP%]:hover{background:#2d2d2d;transform:translate(4px)}.debug-console__log--log[_ngcontent-%COMP%]{border-left-color:#9e9e9e}.debug-console__log--info[_ngcontent-%COMP%]{border-left-color:#2196f3}.debug-console__log--warn[_ngcontent-%COMP%]{border-left-color:#ff9800}.debug-console__log--error[_ngcontent-%COMP%]{border-left-color:#f44336}.debug-console__log--http[_ngcontent-%COMP%]{border-left-color:#4caf50}.debug-console__log-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.debug-console__log-header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1}.debug-console__log-header[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px}.debug-console__log-copy[_ngcontent-%COMP%]{--color: #999;--padding-start: 8px;--padding-end: 8px;min-width:auto;height:28px;transition:all .2s ease}.debug-console__log-copy[_ngcontent-%COMP%]:hover{--color: #fff}.debug-console__log-copy[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px}.debug-console__log-time[_ngcontent-%COMP%]{font-size:11px;color:#999;font-family:Courier New,monospace}.debug-console__log-level[_ngcontent-%COMP%]{font-size:10px;font-weight:700;padding:2px 6px;border-radius:4px;background:#3d3d3d;color:#fff}.debug-console__log-method[_ngcontent-%COMP%]{font-size:11px;font-weight:700;padding:2px 6px;border-radius:4px;background:#667eea;color:#fff}.debug-console__log-status[_ngcontent-%COMP%]{font-size:11px;font-weight:700;padding:2px 6px;border-radius:4px;background:#4caf50;color:#fff}.debug-console__log-status.error[_ngcontent-%COMP%]{background:#f44336}.debug-console__log-duration[_ngcontent-%COMP%]{font-size:11px;color:#999}.debug-console__log-message[_ngcontent-%COMP%]{color:#fff;font-size:13px;line-height:1.5;word-break:break-word;font-family:Courier New,monospace}.debug-console__log-data[_ngcontent-%COMP%], .debug-console__log-stack[_ngcontent-%COMP%]{margin-top:8px;padding:8px;background:#1e1e1e;border-radius:4px;overflow-x:auto}.debug-console__log-data-header[_ngcontent-%COMP%], .debug-console__log-stack-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #3d3d3d}.debug-console__log-data-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .debug-console__log-stack-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:11px;font-weight:700;color:#999;text-transform:uppercase}.debug-console__log-data-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%], .debug-console__log-stack-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--color: #999;--padding-start: 4px;--padding-end: 4px;min-width:auto;height:24px}.debug-console__log-data-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:hover, .debug-console__log-stack-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:hover{--color: #fff}.debug-console__log-data-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%], .debug-console__log-stack-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:14px}.debug-console__log-data[_ngcontent-%COMP%] pre[_ngcontent-%COMP%], .debug-console__log-stack[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0;color:#a9b7c6;font-size:11px;line-height:1.4;font-family:Courier New,monospace}.debug-console__log-stack[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{color:#f44336}.debug-console__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#666}.debug-console__empty[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:64px;margin-bottom:16px}.debug-console__empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}.debug-console__copy-feedback[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(102,126,234,.95);color:#fff;padding:16px 24px;border-radius:8px;font-size:14px;font-weight:600;box-shadow:0 4px 16px rgba(0,0,0,.3);z-index:999999;animation:copyFeedback 2s ease;pointer-events:none}.debug-console__error-modal[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;z-index:100000;display:flex;align-items:center;justify-content:center;animation:fadeIn .3s ease}.debug-console__error-modal-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.debug-console__error-modal-content[_ngcontent-%COMP%]{position:relative;width:90vw;max-width:900px;height:80vh;background:#1e1e1e;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.5);display:flex;flex-direction:column;overflow:hidden;animation:slideUp .3s ease}@media (max-width: 768px){.debug-console__error-modal-content[_ngcontent-%COMP%]{width:95vw;height:85vh}}.debug-console__error-modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#2d2d2d;border-bottom:2px solid #f44336}.debug-console__error-modal-header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;color:#fff;font-weight:600;font-size:18px}.debug-console__error-modal-header-left[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:24px}.debug-console__error-modal-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--color: #fff}.debug-console__error-modal-count[_ngcontent-%COMP%]{font-size:14px;color:#f44336;font-weight:700;background:rgba(244,67,54,.2);padding:4px 12px;border-radius:12px}.debug-console__error-modal-body[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:16px;background:#1e1e1e}.debug-console__error-modal-body[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.debug-console__error-modal-body[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#2d2d2d}.debug-console__error-modal-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#f44336;border-radius:4px}.debug-console__error-modal-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#666}.debug-console__error-modal-empty[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:64px;margin-bottom:16px;color:#4caf50}.debug-console__error-modal-empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}.debug-console__error-card[_ngcontent-%COMP%]{background:#252525;border-radius:8px;margin-bottom:12px;overflow:hidden;border-left:4px solid #f44336;transition:all .2s ease}.debug-console__error-card[_ngcontent-%COMP%]:hover{background:#2d2d2d;transform:translate(4px)}.debug-console__error-card.error-5xx[_ngcontent-%COMP%]{border-left-color:#d32f2f}.debug-console__error-card.error-4xx[_ngcontent-%COMP%]{border-left-color:#ff9800}.debug-console__error-card.error-other[_ngcontent-%COMP%]{border-left-color:#9e9e9e}.debug-console__error-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;cursor:pointer;transition:background .2s ease}.debug-console__error-card-header[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.05)}.debug-console__error-card-header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex:1}.debug-console__error-card-header-left[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:20px;color:#999;transition:transform .2s ease}.debug-console__error-card-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--color: #999;--padding-start: 8px;--padding-end: 8px}.debug-console__error-card-header[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:hover{--color: #fff}.debug-console__error-card-status[_ngcontent-%COMP%]{font-size:14px;font-weight:700;padding:4px 12px;border-radius:6px;background:#f44336;color:#fff}.debug-console__error-card-method[_ngcontent-%COMP%]{font-size:12px;font-weight:700;padding:4px 10px;border-radius:6px;background:#667eea;color:#fff}.debug-console__error-card-time[_ngcontent-%COMP%]{font-size:11px;color:#999;font-family:Courier New,monospace}.debug-console__error-card-url[_ngcontent-%COMP%]{padding:8px 16px 12px 52px;color:#a9b7c6;font-size:12px;font-family:Courier New,monospace;word-break:break-all}.debug-console__error-card-details[_ngcontent-%COMP%]{padding:0 16px 16px;border-top:1px solid #3d3d3d;animation:expandDown .3s ease}.debug-console__error-card-section[_ngcontent-%COMP%]{margin-top:16px}.debug-console__error-card-section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #3d3d3d}.debug-console__error-card-section-title[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px;color:#667eea}.debug-console__error-card-section-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-weight:700;color:#999;text-transform:uppercase;flex:1}.debug-console__error-card-section-title[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--color: #999;--padding-start: 4px;--padding-end: 4px;min-width:auto;height:24px}.debug-console__error-card-section-title[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:hover{--color: #fff}.debug-console__error-card-section-title[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:14px}.debug-console__error-card-section-content[_ngcontent-%COMP%]{padding:12px;background:#1e1e1e;border-radius:6px;overflow-x:auto;max-height:300px;overflow-y:auto}.debug-console__error-card-section-content[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px;height:6px}.debug-console__error-card-section-content[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#2d2d2d}.debug-console__error-card-section-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#667eea;border-radius:3px}.debug-console__error-card-section-content[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0;color:#a9b7c6;font-size:11px;line-height:1.5;font-family:Courier New,monospace}@keyframes copyFeedback{0%{opacity:0;transform:translate(-50%,-50%) scale(.8)}10%{opacity:1;transform:translate(-50%,-50%) scale(1)}90%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-50%) scale(.8)}}@keyframes slideUp{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes pulse{0%,to{box-shadow:0 4px 12px rgba(244,67,54,.5)}50%{box-shadow:0 4px 20px rgba(244,67,54,.8)}}@keyframes expandDown{0%{opacity:0;max-height:0}to{opacity:1;max-height:2000px}}"],changeDetection:0}),t})();var ko=f(7415);let y=(()=>{class t{constructor(e){this.cdr=e,this.stepMs=700,this.size=120,this.strokeWidth=10,this.one=new a.EventEmitter,this.done=new a.EventEmitter,this.count=3,this.dashOffset=0,this.rafId=null,this.startTime=null,this.doneFired=!1}get radius(){return(this.size-this.strokeWidth)/2}get circumference(){return 2*Math.PI*this.radius}get fontSize(){return Math.round(.5*this.size)}ngOnInit(){this.startTime=Date.now(),this.tick()}tick(){const e=3*this.stepMs,r=Date.now()-this.startTime,i=Math.min(r/e,1);this.dashOffset=-i*this.circumference,this.count=Math.max(3-Math.floor(r/this.stepMs),1),this.cdr.markForCheck(),r<e?this.rafId=requestAnimationFrame(()=>this.tick()):this.doneFired||(this.doneFired=!0,this.one.emit(),this.done.emit())}ngOnDestroy(){null!==this.rafId&&cancelAnimationFrame(this.rafId)}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-countdown-circle"]],inputs:{stepMs:"stepMs",size:"size",strokeWidth:"strokeWidth"},outputs:{one:"one",done:"done"},decls:5,vars:15,consts:[[1,"countdown-circle"],["stroke","#fff","fill","none"],[1,"countdown-number"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0),a.\u0275\u0275namespaceSVG(),a.\u0275\u0275elementStart(1,"svg"),a.\u0275\u0275element(2,"circle",1),a.\u0275\u0275elementEnd(),a.\u0275\u0275namespaceHTML(),a.\u0275\u0275elementStart(3,"span",2),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd()()),2&e&&(a.\u0275\u0275styleProp("width",r.size,"px")("height",r.size,"px"),a.\u0275\u0275advance(1),a.\u0275\u0275attribute("width",r.size)("height",r.size),a.\u0275\u0275advance(1),a.\u0275\u0275attribute("cx",r.size/2)("cy",r.size/2)("r",r.radius)("stroke-width",r.strokeWidth)("stroke-dasharray",r.circumference)("stroke-dashoffset",r.dashOffset),a.\u0275\u0275advance(1),a.\u0275\u0275styleProp("font-size",r.fontSize,"px"),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(r.count))},styles:[".countdown-circle[_ngcontent-%COMP%]{display:grid;place-items:center;opacity:.7}.countdown-circle[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{grid-area:1/1}.countdown-circle[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{display:block}.countdown-circle[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{transform:rotate(-90deg);transform-origin:50% 50%}.countdown-circle[_ngcontent-%COMP%] .countdown-number[_ngcontent-%COMP%]{font-weight:700;color:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none;line-height:1}"],changeDetection:0}),t})();var G=f(8162),Je=function(t,n){return(Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])})(t,n)};function dt(t,n){function e(){this.constructor=t}Je(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function st(t,n,e,r){return new(e||(e=Promise))(function(i,s){function c(d){try{u(r.next(d))}catch(p){s(p)}}function l(d){try{u(r.throw(d))}catch(p){s(p)}}function u(d){d.done?i(d.value):new e(function(p){p(d.value)}).then(c,l)}u((r=r.apply(t,n||[])).next())})}function Ln(t,n){var e,r,i,s,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return function(p){if(e)throw new TypeError("Generator is already executing.");for(;c;)try{if(e=1,r&&(i=2&p[0]?r.return:p[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,p[1])).done)return i;switch(r=0,i&&(p=[2&p[0],i.value]),p[0]){case 0:case 1:i=p;break;case 4:return c.label++,{value:p[1],done:!1};case 5:c.label++,r=p[1],p=[0];continue;case 7:p=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===p[0]||2===p[0])){c=0;continue}if(3===p[0]&&(!i||p[1]>i[0]&&p[1]<i[3])){c.label=p[1];break}if(6===p[0]&&c.label<i[1]){c.label=i[1],i=p;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(p);break}i[2]&&c.ops.pop(),c.trys.pop();continue}p=n.call(t,c)}catch(M){p=[6,M],r=0}finally{e=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([u,d])}}}var Rr=function(){function t(n){this.global=n,this.flags={},this.flagRegistry={},this.urlFlags={},this.populateURLFlags()}return t.prototype.setPlatform=function(n,e){null!=this.platform&&console.warn("Platform "+this.platformName+" has already been set. Overwriting the platform with "+e+"."),this.platformName=n,this.platform=e},t.prototype.registerFlag=function(n,e,r){if(this.flagRegistry[n]={evaluationFn:e,setHook:r},null!=this.urlFlags[n]){var i=this.urlFlags[n];console.warn("Setting feature override from URL "+n+": "+i+"."),this.set(n,i)}},t.prototype.get=function(n){return n in this.flags||(this.flags[n]=this.evaluateFlag(n)),this.flags[n]},t.prototype.getNumber=function(n){return this.get(n)},t.prototype.getBool=function(n){return this.get(n)},t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"features",{get:function(){return this.flags},enumerable:!0,configurable:!0}),t.prototype.set=function(n,e){if(null==this.flagRegistry[n])throw new Error("Cannot set flag "+n+" as it has not been registered.");this.flags[n]=e,null!=this.flagRegistry[n].setHook&&this.flagRegistry[n].setHook(e)},t.prototype.evaluateFlag=function(n){if(null==this.flagRegistry[n])throw new Error("Cannot evaluate flag '"+n+"': no evaluation function found.");return this.flagRegistry[n].evaluationFn()},t.prototype.setFlags=function(n){this.flags=Object.assign({},n)},t.prototype.reset=function(){this.flags={},this.urlFlags={},this.populateURLFlags()},t.prototype.populateURLFlags=function(){var n=this;if(void 0!==this.global&&void 0!==this.global.location&&void 0!==this.global.location.search){var r,i=(r={},this.global.location.search.replace(/[?&]([^=?&]+)(?:=([^&]*))?/g,function(s){for(var c=[],l=1;l<arguments.length;l++)c[l-1]=arguments[l];return A(r,c[0],c[1]),c.join("=")}),r);"tfjsflags"in i&&i.tfjsflags.split(",").forEach(function(s){var c=s.split(":"),l=c[0];n.urlFlags[l]=function(d,p){if("true"===(p=p.toLowerCase())||"false"===p)return"true"===p;if(""+ +p===p)return+p;throw new Error("Could not parse value flag value "+p+" for flag "+d+".")}(l,c[1])})}},t}();function A(t,n,e){t[decodeURIComponent(n)]=decodeURIComponent(e||"")}function X(){return _}var _=null,T=new Map,O=new Map;function ve(t,n){var e=Ui(t,n);return T.get(e)}function an(t){for(var n=T.entries(),e=[];;){var r=n.next(),s=r.value;if(r.done)break;var l=s[1];s[0].split("_")[0]===t&&e.push(l)}return e}function nr(t){var n=t.kernelName,e=t.backendName,r=Ui(n,e);if(T.has(r))throw new Error("The kernel '"+n+"' for backend '"+e+"' is already registered");T.set(r,t)}function Kr(t){var n=t.kernelName;O.has(n)&&console.warn("Overriding the gradient for '"+n+"'"),O.set(n,t)}function Ui(t,n){return n+"_"+t}function Ma(t){for(var n=t.length,e=0,r=0;n>0;)r=Math.random()*n|0,e=t[--n],t[n]=t[r],t[r]=e}function oo(t,n,e){return Math.max(t,Math.min(n,e))}function As(t){return t%2==0?t:t+1}function bs(t){for(var n=0,e=0;e<t.length;e++)n+=t[e];return n}function at(t,n){if(!t)throw new Error("string"==typeof n?n:n())}function ho(t,n,e){void 0===e&&(e=""),at(yi(t,n),function(){return e+" Shapes "+t+" and "+n+" must match"})}function Ks(t){at(null!=t,function(){return"The input to the tensor constructor must be a non-null value."})}function Ja(t,n,e){if(void 0===n&&(n=[]),void 0===e&&(e=!1),null==n&&(n=[]),Array.isArray(t)||Hi(t)&&!e)for(var r=0;r<t.length;++r)Ja(t[r],n,e);else n.push(t);return n}function rr(t){if(0===t.length)return 1;for(var n=t[0],e=1;e<t.length;e++)n*=t[e];return n}function yi(t,n){if(t===n)return!0;if(null==t||null==n||t.length!==n.length)return!1;for(var e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}function ai(t){return t%1==0}function t1(t){if(null!=Math.tanh)return Math.tanh(t);if(t===1/0)return 1;if(t===-1/0)return-1;var n=Math.exp(2*t);return(n-1)/(n+1)}function Xs(t){var n=Math.ceil(Math.sqrt(t));return[n,Math.ceil(t/n)]}function us(t,n){return n<=t.length?t:t+" ".repeat(n-t.length)}function nc(t,n,e){return void 0===n&&(n=function(r){return 0}),new Promise(function(r,i){var s=0,c=function(){if(t())r();else{s++;var l=n(s);null!=e&&s>=e?i():setTimeout(c,l)}};c()})}function n1(t,n){for(var e=1,r=-1,i=0;i<t.length;++i)if(t[i]>=0)e*=t[i];else if(-1===t[i]){if(-1!==r)throw Error("Shapes can only have 1 implicit size. Found -1 at dim "+r+" and dim "+i);r=i}else if(t[i]<0)throw Error("Shapes can not be < 0. Found "+t[i]+" at dim "+i);if(-1===r){if(n>0&&n!==e)throw Error("Size("+n+") must match the product of shape "+t);return t}if(0===e)throw Error("Cannot infer the missing size in ["+t+"] when there are 0 elements");if(n%e!=0)throw Error("The implicit shape can't be a fractional number. Got "+n+" / "+e);var s=t.slice();return s[r]=n/e,s}function Ti(t,n){var e=n.length;return at((t=null==t?n.map(function(r,i){return i}):[].concat(t)).every(function(r){return r>=-e&&r<e}),function(){return"All values in axis param must be in range [-"+e+", "+e+") but got axis "+t}),at(t.every(function(r){return ai(r)}),function(){return"All values in axis param must be integers but got axis "+t}),t.map(function(r){return r<0?e+r:r})}function Pi(t,n){for(var e=[],r=[],i=null!=n&&Array.isArray(n)&&0===n.length,s=null==n||i?null:Ti(n,t).sort(),c=0,l=0;l<t.length;++l){if(null!=s){if(s[c]===l&&1!==t[l])throw new Error("Can't squeeze axis "+l+" since its dim '"+t[l]+"' is not 1");(null==s[c]||s[c]>l)&&1===t[l]&&(e.push(t[l]),r.push(l)),s[c]<=l&&c++}1!==t[l]&&(e.push(t[l]),r.push(l))}return{newShape:e,keptDims:r}}function Ba(t,n){var e=null;if(null==t||"float32"===t)e=new Float32Array(n);else if("int32"===t)e=new Int32Array(n);else{if("bool"!==t)throw new Error("Unknown data type "+t);e=new Uint8Array(n)}return e}function Ea(t,n){var e=null;if(null==t||"float32"===t)e=new Float32Array(n);else if("int32"===t)e=new Int32Array(n);else if("bool"===t)e=new Uint8Array(n);else{if("string"!==t)throw new Error("Unknown data type "+t);e=new Array(n)}return e}function Ns(t,n){for(var e=0;e<t.length;e++){var r=t[e];if(isNaN(r)||!isFinite(r))throw Error("A tensor of type "+n+" being uploaded contains "+r+".")}}function xa(t){return"bool"===t||"complex64"===t||"float32"===t||"int32"===t||"string"===t}function Zs(t,n){return!("complex64"===n||"float32"===n&&"complex64"!==t||"int32"===n&&"float32"!==t&&"complex64"!==t||"bool"===n&&"bool"===t)}function Hi(t){return t instanceof Float32Array||t instanceof Int32Array||t instanceof Uint8Array}function ds(t){if("float32"===t||"int32"===t)return 4;if("complex64"===t)return 8;if("bool"===t)return 1;throw new Error("Unknown dtype "+t)}function r1(t){if(null==t)return 0;var n=0;return t.forEach(function(e){return n+=e.length}),n}function Bi(t){return"string"==typeof t||t instanceof String}function Hc(t){return"boolean"==typeof t}function Bc(t){return"number"==typeof t}function Ls(t){return Array.isArray(t)?Ls(t[0]):t instanceof Float32Array?"float32":t instanceof Int32Array||t instanceof Uint8Array?"int32":Bc(t)?"float32":Bi(t)?"string":Hc(t)?"bool":"float32"}function Xr(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Mi(t,n){for(var e=n;e<t;++e)if(t%e==0)return e;return t}function Qi(t){var n=t.length;if(n<2)return[];var e=new Array(n-1);e[n-2]=t[n-1];for(var r=n-3;r>=0;--r)e[r]=e[r+1]*t[r+1];return e}function ei(t,n,e){if("string"===n)throw new Error("Cannot convert a string[] to a TypedArray");if(Array.isArray(t)&&(t=Ja(t)),e&&Ns(t,n),c=n,(s=t)instanceof Float32Array&&"float32"===c||s instanceof Int32Array&&"int32"===c||s instanceof Uint8Array&&"bool"===c)return t;var s,c;if(null==n||"float32"===n||"complex64"===n)return new Float32Array(t);if("int32"===n)return new Int32Array(t);if("bool"===n){for(var r=new Uint8Array(t.length),i=0;i<r.length;++i)0!==Math.round(t[i])&&(r[i]=1);return r}throw new Error("Unknown data type "+n)}function Vi(t,n){if(0===t.length)return n[0];var e=t.reduce(function(r,i){return r*i});if(0===e)return[];if(e!==n.length)throw new Error("["+t+"] does not match the input size.");return function r(i,s,c){var l=new Array;if(1===s.length)for(var u=s[0],d=0;d<u;d++)l[d]=c[i+d];else{u=s[0];var p=s.slice(1),M=p.reduce(function(x,R){return x*R});for(d=0;d<u;d++)l[d]=r(i+d*M,p,c)}return l}(0,t,n)}function ja(t,n){for(var e=Js(t,n),r=0;r<e.length;r++)e[r]=1;return e}function Js(t,n){if(null==n||"float32"===n||"complex64"===n)return new Float32Array(t);if("int32"===n)return new Int32Array(t);if("bool"===n)return new Uint8Array(t);throw new Error("Unknown data type "+n)}function Wa(){return X().platform.now()}function zs(t){t.forEach(function(n){at(Number.isInteger(n)&&n>=0,function(){return"Tensor must have a shape comprised of positive integers but got shape ["+t+"]."})})}function So(t,n){return void 0===n&&(n="utf-8"),n=n||"utf-8",X().platform.encode(t,n)}function o1(t,n){return void 0===n&&(n="utf-8"),n=n||"utf-8",X().platform.decode(t,n)}function rc(t,n,e){if(0===n)return 0;if(1===n)return t[0];for(var r=t[t.length-1],i=0;i<t.length-1;++i)r+=e[i]*t[i];return r}function a1(t,n,e){if(0===n)return[];if(1===n)return[t];for(var r=new Array(n),i=0;i<r.length-1;++i)r[i]=Math.floor(t/e[i]),t-=r[i]*e[i];return r[r.length-1]=t,r}Object.freeze({shuffle:Ma,clamp:oo,nearestLargerEven:As,sum:bs,randUniform:function(t,n){var e=Math.random();return n*e+(1-e)*t},distSquared:function(t,n){for(var e=0,r=0;r<t.length;r++){var i=Number(t[r])-Number(n[r]);e+=i*i}return e},assert:at,assertShapesMatch:ho,assertNonNull:Ks,flatten:Ja,sizeFromShape:rr,isScalarShape:function(t){return 0===t.length},arraysEqual:yi,isInt:ai,tanh:t1,sizeToSquarishShape:Xs,createShuffledIndices:function(t){for(var n=new Uint32Array(t),e=0;e<t;++e)n[e]=e;return Ma(n),n},rightPad:us,repeatedTry:nc,inferFromImplicitShape:n1,parseAxisParam:Ti,squeezeShape:Pi,getTypedArrayFromDType:Ba,getArrayFromDType:Ea,checkConversionForErrors:Ns,isValidDtype:xa,hasEncodingLoss:Zs,isTypedArray:Hi,bytesPerElement:ds,bytesFromStringArray:r1,isString:Bi,isBoolean:Hc,isNumber:Bc,inferDtype:Ls,isFunction:Xr,nearestDivisor:Mi,computeStrides:Qi,toTypedArray:ei,toNestedArray:Vi,makeOnesTypedArray:ja,makeZerosTypedArray:Js,now:Wa,assertNonNegativeIntegerDimensions:zs,fetch:function(t,n){return X().platform.fetch(t,n)},encodeString:So,decodeString:o1,locToIndex:rc,indexToLoc:a1});var y1=function(){function t(n,e){this.backendTimer=n,this.logger=e,null==e&&(this.logger=new fs)}return t.prototype.profileKernel=function(n,e,r){var i,s=this,c=this.backendTimer.time(function(){i=r()});return i.forEach(function(l){l.data().then(function(u){(function(d,p,M){if("float32"!==p)return!1;for(var x=0;x<d.length;x++){var R=d[x];if(isNaN(R)||!isFinite(R))return console.warn("Found "+R+" in the result of '"+M+"'"),!0}})(u,l.dtype,n),c.then(function(d){var p="";null!=d.getExtraProfileInfo&&(p=d.getExtraProfileInfo()),s.logger.logKernelProfile(n,l,u,d.kernelMs,e,p)})})}),i},t}(),fs=function(){function t(){}return t.prototype.logKernelProfile=function(n,e,r,i,s,c){var l="number"==typeof i?us(i+"ms",9):i.error,u=us(n,25),d=e.rank,p=e.size,M=us(e.shape.toString(),14),x="";for(var R in s){var U=s[R].shape||e.shape,J=U.length;x+=R+": "+J+"D "+(J>0?U:"")+" "}console.log("%c"+u+"\t%c"+l+"\t%c"+d+"D "+M+"\t%c"+p+"\t%c"+x+"\t%c"+c,"font-weight:bold","color:red","color:blue","color: orange","color: green","color: steelblue")},t}();function pc(t,n,e){return us(Array.isArray(t)?parseFloat(t[0].toFixed(7))+" + "+parseFloat(t[1].toFixed(7))+"j":Bi(t)?"'"+t+"'":"bool"===e?C1(t):parseFloat(t.toFixed(7)).toString(),n)}function C1(t){return 0===t?"false":"true"}function oc(t){for(var n=[],e=0;e<t.length;e+=2)n.push([t[e],t[e+1]]);return n}var _c=function(){function t(n,e,r){var i=this;if(this.dtype=e,this.shape=n.slice(),this.size=rr(n),null!=r){var s=r.length;at(s===this.size,function(){return"Length of values '"+s+"' does not match the size inferred by the shape '"+i.size+"'."})}if("complex64"===e)throw new Error("complex64 dtype TensorBuffers are not supported. Please create a TensorBuffer for the real and imaginary parts separately and call tf.complex(real, imag).");this.values=r||Ea(e,this.size),this.strides=Qi(n)}return t.prototype.set=function(n){for(var e=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];0===r.length&&(r=[0]),at(r.length===this.rank,function(){return"The number of provided coordinates ("+r.length+") must match the rank ("+e.rank+")"});var s=this.locToIndex(r);this.values[s]=n},t.prototype.get=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];0===n.length&&(n=[0]);for(var r=0,i=0,s=n;i<s.length;i++){var c=s[i];if(c<0||c>=this.shape[r]){var l="Requested out of range element at "+n+". Buffer shape="+this.shape;throw new Error(l)}r++}for(var u=n[n.length-1],d=0;d<n.length-1;++d)u+=this.strides[d]*n[d];return this.values[u]},t.prototype.locToIndex=function(n){if(0===this.rank)return 0;if(1===this.rank)return n[0];for(var e=n[n.length-1],r=0;r<n.length-1;++r)e+=this.strides[r]*n[r];return e},t.prototype.indexToLoc=function(n){if(0===this.rank)return[];if(1===this.rank)return[n];for(var e=new Array(this.shape.length),r=0;r<e.length-1;++r)e[r]=Math.floor(n/this.strides[r]),n-=e[r]*this.strides[r];return e[e.length-1]=n,e},Object.defineProperty(t.prototype,"rank",{get:function(){return this.shape.length},enumerable:!0,configurable:!0}),t.prototype.toTensor=function(){return hs().makeTensor(this.values,this.shape,this.dtype)},t}(),hs=null,tn=null,b1=null,Ao=function(){function t(n,e,r,i){this.kept=!1,this.isDisposedInternal=!1,this.shape=n.slice(),this.dtype=e||"float32",this.size=rr(n),this.strides=Qi(n),this.dataId=r,this.id=i,this.rankType=this.rank<5?this.rank.toString():"higher"}return t.prototype.flatten=function(){return this.throwIfDisposed(),this.as1D()},t.prototype.asScalar=function(){return this.throwIfDisposed(),at(1===this.size,function(){return"The array must have only 1 element."}),this.reshape([])},t.prototype.as1D=function(){return this.throwIfDisposed(),this.reshape([this.size])},t.prototype.as2D=function(n,e){return this.throwIfDisposed(),this.reshape([n,e])},t.prototype.as3D=function(n,e,r){return this.throwIfDisposed(),this.reshape([n,e,r])},t.prototype.as4D=function(n,e,r,i){return this.throwIfDisposed(),this.reshape([n,e,r,i])},t.prototype.as5D=function(n,e,r,i,s){return this.throwIfDisposed(),this.reshape([n,e,r,i,s])},t.prototype.asType=function(n){return this.throwIfDisposed(),tn.cast(this,n)},Object.defineProperty(t.prototype,"rank",{get:function(){return this.shape.length},enumerable:!0,configurable:!0}),t.prototype.buffer=function(){return st(this,void 0,void 0,function(){var n;return Ln(this,function(e){switch(e.label){case 0:return[4,this.data()];case 1:return n=e.sent(),[2,tn.buffer(this.shape,this.dtype,n)]}})})},t.prototype.bufferSync=function(){return tn.buffer(this.shape,this.dtype,this.dataSync())},t.prototype.array=function(){return st(this,void 0,void 0,function(){var n;return Ln(this,function(e){switch(e.label){case 0:return[4,this.data()];case 1:return n=e.sent(),[2,Vi(this.shape,n)]}})})},t.prototype.arraySync=function(){return Vi(this.shape,this.dataSync())},t.prototype.data=function(){return st(this,void 0,void 0,function(){var n,e;return Ln(this,function(r){switch(r.label){case 0:return this.throwIfDisposed(),n=hs().read(this.dataId),"string"!==this.dtype?[3,2]:[4,n];case 1:e=r.sent();try{return[2,e.map(function(i){return o1(i)})]}catch{throw new Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}r.label=2;case 2:return[2,n]}})})},t.prototype.dataSync=function(){this.throwIfDisposed();var n=hs().readSync(this.dataId);if("string"===this.dtype)try{return n.map(function(e){return o1(e)})}catch{throw new Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}return n},t.prototype.bytes=function(){return st(this,void 0,void 0,function(){var n;return Ln(this,function(e){switch(e.label){case 0:return this.throwIfDisposed(),[4,hs().read(this.dataId)];case 1:return n=e.sent(),"string"===this.dtype?[2,n]:[2,new Uint8Array(n.buffer)]}})})},t.prototype.dispose=function(){this.isDisposed||(hs().disposeTensor(this),this.isDisposedInternal=!0)},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this.isDisposedInternal},enumerable:!0,configurable:!0}),t.prototype.throwIfDisposed=function(){if(this.isDisposed)throw new Error("Tensor is disposed.")},t.prototype.toFloat=function(){return this.asType("float32")},t.prototype.toInt=function(){return this.asType("int32")},t.prototype.toBool=function(){return this.asType("bool")},t.prototype.print=function(n){return void 0===n&&(n=!1),tn.print(this,n)},t.prototype.reshape=function(n){return this.throwIfDisposed(),tn.reshape(this,n)},t.prototype.reshapeAs=function(n){return this.throwIfDisposed(),this.reshape(n.shape)},t.prototype.expandDims=function(n){return void 0===n&&(n=0),tn.expandDims(this,n)},t.prototype.cumsum=function(n,e,r){return void 0===n&&(n=0),void 0===e&&(e=!1),void 0===r&&(r=!1),tn.cumsum(this,n,e,r)},t.prototype.squeeze=function(n){return this.throwIfDisposed(),tn.squeeze(this,n)},t.prototype.clone=function(){return this.throwIfDisposed(),tn.clone(this)},t.prototype.oneHot=function(n,e,r){return this.throwIfDisposed(),tn.oneHot(this,n,e,r)},t.prototype.toString=function(n){return void 0===n&&(n=!1),function jc(t,n,e,r){var i=Qi(n),s=function(d,p,M,x){var R=rr(p),U=x[x.length-1],J=new Array(U).fill(0),ne=p.length,ue="complex64"===M?oc(d):d;if(ne>1)for(var Ie=0;Ie<R/U;Ie++)for(var Ae=Ie*U,Oe=0;Oe<U;Oe++)J[Oe]=Math.max(J[Oe],pc(ue[Ae+Oe],0,M).length);return J}(t,n,e,i),c=n.length,l=function d(p,M,x,R,U,J){void 0===J&&(J=!0);var ne="complex64"===x?2:1,ue=M[0],Ie=M.length;if(0===Ie)return"complex64"===x?[pc(oc(p)[0],0,x)]:"bool"===x?[C1(p[0])]:[p[0].toString()];if(1===Ie){if(ue>20){var Oe=Array.from(p.slice(0,3*ne)),Fe=Array.from(p.slice((ue-3)*ne,ue*ne));return"complex64"===x&&(Oe=oc(Oe),Fe=oc(Fe)),["["+Oe.map(function(_n,Dn){return pc(_n,U[Dn],x)}).join(", ")+", ..., "+Fe.map(function(_n,Dn){return pc(_n,U[ue-3+Dn],x)}).join(", ")+"]"]}return["["+("complex64"===x?oc(p):Array.from(p)).map(function(_n,Dn){return pc(_n,U[Dn],x)}).join(", ")+"]"]}var et=M.slice(1),Ct=R.slice(1),yt=R[0]*ne,pt=[];if(ue>20){for(var gt=0;gt<3;gt++){var Bt=(Ft=gt*yt)+yt;pt.push.apply(pt,d(p.slice(Ft,Bt),et,x,Ct,U,!1))}for(pt.push("..."),gt=ue-3;gt<ue;gt++)Bt=(Ft=gt*yt)+yt,pt.push.apply(pt,d(p.slice(Ft,Bt),et,x,Ct,U,gt===ue-1))}else for(gt=0;gt<ue;gt++){var Ft;Bt=(Ft=gt*yt)+yt,pt.push.apply(pt,d(p.slice(Ft,Bt),et,x,Ct,U,gt===ue-1))}var yn=2===Ie?",":"";for(pt[0]="["+pt[0]+yn,gt=1;gt<pt.length-1;gt++)pt[gt]=" "+pt[gt]+yn;var pn=",\n";for(gt=2;gt<Ie;gt++)pn+="\n";return pt[pt.length-1]=" "+pt[pt.length-1]+"]"+(J?"":pn),pt}(t,n,e,i,s),u=["Tensor"];return r&&(u.push(" dtype: "+e),u.push(" rank: "+c),u.push(" shape: ["+n+"]"),u.push(" values:")),u.push(l.map(function(d){return" "+d}).join("\n")),u.join("\n")}(this.dataSync(),this.shape,this.dtype,n)},t.prototype.tile=function(n){return this.throwIfDisposed(),tn.tile(this,n)},t.prototype.gather=function(n,e){return void 0===e&&(e=0),this.throwIfDisposed(),tn.gather(this,n,e)},t.prototype.matMul=function(n,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!1),this.throwIfDisposed(),tn.matMul(this,n,e,r)},t.prototype.dot=function(n){return this.throwIfDisposed(),tn.dot(this,n)},t.prototype.norm=function(n,e,r){return void 0===n&&(n="euclidean"),void 0===e&&(e=null),void 0===r&&(r=!1),this.throwIfDisposed(),tn.norm(this,n,e,r)},t.prototype.slice=function(n,e){return this.throwIfDisposed(),tn.slice(this,n,e)},t.prototype.reverse=function(n){return this.throwIfDisposed(),tn.reverse(this,n)},t.prototype.concat=function(n,e){return void 0===e&&(e=0),this.throwIfDisposed(),n instanceof t&&(n=[n]),tn.concat([this].concat(n),e)},t.prototype.split=function(n,e){return void 0===e&&(e=0),this.throwIfDisposed(),tn.split(this,n,e)},t.prototype.stack=function(n,e){return void 0===e&&(e=0),tn.stack([this,n],e)},t.prototype.unstack=function(n){return void 0===n&&(n=0),tn.unstack(this,n)},t.prototype.pad=function(n,e){return void 0===e&&(e=0),tn.pad(this,n,e)},t.prototype.batchNormalization=function(n,e,r,i,s){return void 0===r&&(r=.001),b1("tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon"),this.batchNorm(n,e,s,i,r)},t.prototype.batchNorm=function(n,e,r,i,s){return void 0===s&&(s=.001),this.throwIfDisposed(),tn.batchNorm(this,n,e,r,i,s)},t.prototype.all=function(n,e){return void 0===n&&(n=null),void 0===e&&(e=!1),this.throwIfDisposed(),tn.all(this,n,e)},t.prototype.any=function(n,e){return void 0===n&&(n=null),void 0===e&&(e=!1),this.throwIfDisposed(),tn.any(this,n,e)},t.prototype.logSumExp=function(n,e){return void 0===n&&(n=null),void 0===e&&(e=!1),this.throwIfDisposed(),tn.logSumExp(this,n,e)},t.prototype.sum=function(n,e){return void 0===n&&(n=null),void 0===e&&(e=!1),this.throwIfDisposed(),tn.sum(this,n,e)},t.prototype.prod=function(n,e){return void 0===n&&(n=null),void 0===e&&(e=!1),this.throwIfDisposed(),tn.prod(this,n,e)},t.prototype.mean=function(n,e){return void 0===n&&(n=null),void 0===e&&(e=!1),this.throwIfDisposed(),tn.mean(this,n,e)},t.prototype.min=function(n,e){return void 0===n&&(n=null),void 0===e&&(e=!1),this.throwIfDisposed(),tn.min(this,n,e)},t.prototype.max=function(n,e){return void 0===n&&(n=null),void 0===e&&(e=!1),this.throwIfDisposed(),tn.max(this,n,e)},t.prototype.argMin=function(n){return void 0===n&&(n=null),this.throwIfDisposed(),tn.argMin(this,n)},t.prototype.argMax=function(n){return void 0===n&&(n=null),this.throwIfDisposed(),tn.argMax(this,n)},t.prototype.cast=function(n){return this.throwIfDisposed(),tn.cast(this,n)},t.prototype.add=function(n){return this.throwIfDisposed(),tn.add(this,n)},t.prototype.addStrict=function(n){return this.throwIfDisposed(),tn.addStrict(this,n)},t.prototype.atan2=function(n){return this.throwIfDisposed(),tn.atan2(this,n)},t.prototype.sub=function(n){return this.throwIfDisposed(),tn.sub(this,n)},t.prototype.subStrict=function(n){return this.throwIfDisposed(),tn.subStrict(this,n)},t.prototype.pow=function(n){return this.throwIfDisposed(),tn.pow(this,n)},t.prototype.powStrict=function(n){return this.throwIfDisposed(),tn.powStrict(this,n)},t.prototype.mul=function(n){return this.throwIfDisposed(),tn.mul(this,n)},t.prototype.mulStrict=function(n){return this.throwIfDisposed(),tn.mulStrict(this,n)},t.prototype.div=function(n){return this.throwIfDisposed(),tn.div(this,n)},t.prototype.divNoNan=function(n){return this.throwIfDisposed(),tn.divNoNan(this,n)},t.prototype.floorDiv=function(n){return this.throwIfDisposed(),tn.floorDiv(this,n)},t.prototype.divStrict=function(n){return this.throwIfDisposed(),tn.divStrict(this,n)},t.prototype.minimum=function(n){return this.throwIfDisposed(),tn.minimum(this,n)},t.prototype.minimumStrict=function(n){return this.throwIfDisposed(),tn.minimumStrict(this,n)},t.prototype.maximum=function(n){return this.throwIfDisposed(),tn.maximum(this,n)},t.prototype.maximumStrict=function(n){return this.throwIfDisposed(),tn.maximumStrict(this,n)},t.prototype.mod=function(n){return this.throwIfDisposed(),tn.mod(this,n)},t.prototype.modStrict=function(n){return this.throwIfDisposed(),tn.modStrict(this,n)},t.prototype.squaredDifferenceStrict=function(n){return this.throwIfDisposed(),tn.squaredDifferenceStrict(this,n)},t.prototype.transpose=function(n){return this.throwIfDisposed(),tn.transpose(this,n)},t.prototype.notEqual=function(n){return this.throwIfDisposed(),tn.notEqual(this,n)},t.prototype.notEqualStrict=function(n){return this.throwIfDisposed(),tn.notEqualStrict(this,n)},t.prototype.less=function(n){return this.throwIfDisposed(),tn.less(this,n)},t.prototype.lessStrict=function(n){return this.throwIfDisposed(),tn.lessStrict(this,n)},t.prototype.equal=function(n){return this.throwIfDisposed(),tn.equal(this,n)},t.prototype.equalStrict=function(n){return this.throwIfDisposed(),tn.equalStrict(this,n)},t.prototype.lessEqual=function(n){return this.throwIfDisposed(),tn.lessEqual(this,n)},t.prototype.lessEqualStrict=function(n){return this.throwIfDisposed(),tn.lessEqualStrict(this,n)},t.prototype.greater=function(n){return this.throwIfDisposed(),tn.greater(this,n)},t.prototype.greaterStrict=function(n){return this.throwIfDisposed(),tn.greaterStrict(this,n)},t.prototype.greaterEqual=function(n){return this.throwIfDisposed(),tn.greaterEqual(this,n)},t.prototype.greaterEqualStrict=function(n){return this.throwIfDisposed(),tn.greaterEqualStrict(this,n)},t.prototype.logicalAnd=function(n){return this.throwIfDisposed(),tn.logicalAnd(this,n)},t.prototype.logicalOr=function(n){return this.throwIfDisposed(),tn.logicalOr(this,n)},t.prototype.logicalNot=function(){return this.throwIfDisposed(),tn.logicalNot(this)},t.prototype.logicalXor=function(n){return this.throwIfDisposed(),tn.logicalXor(this,n)},t.prototype.where=function(n,e){return this.throwIfDisposed(),tn.where(n,this,e)},t.prototype.neg=function(){return this.throwIfDisposed(),tn.neg(this)},t.prototype.ceil=function(){return this.throwIfDisposed(),tn.ceil(this)},t.prototype.floor=function(){return this.throwIfDisposed(),tn.floor(this)},t.prototype.sign=function(){return this.throwIfDisposed(),tn.sign(this)},t.prototype.isNaN=function(){return this.throwIfDisposed(),tn.isNaN(this)},t.prototype.isInf=function(){return this.throwIfDisposed(),tn.isInf(this)},t.prototype.isFinite=function(){return this.throwIfDisposed(),tn.isFinite(this)},t.prototype.exp=function(){return this.throwIfDisposed(),tn.exp(this)},t.prototype.expm1=function(){return this.throwIfDisposed(),tn.expm1(this)},t.prototype.log=function(){return this.throwIfDisposed(),tn.log(this)},t.prototype.log1p=function(){return this.throwIfDisposed(),tn.log1p(this)},t.prototype.sqrt=function(){return this.throwIfDisposed(),tn.sqrt(this)},t.prototype.rsqrt=function(){return this.throwIfDisposed(),tn.rsqrt(this)},t.prototype.square=function(){return this.throwIfDisposed(),tn.square(this)},t.prototype.reciprocal=function(){return this.throwIfDisposed(),tn.reciprocal(this)},t.prototype.abs=function(){return this.throwIfDisposed(),tn.abs(this)},t.prototype.clipByValue=function(n,e){return this.throwIfDisposed(),tn.clipByValue(this,n,e)},t.prototype.relu=function(){return this.throwIfDisposed(),tn.relu(this)},t.prototype.relu6=function(){return this.throwIfDisposed(),tn.relu6(this)},t.prototype.elu=function(){return this.throwIfDisposed(),tn.elu(this)},t.prototype.selu=function(){return this.throwIfDisposed(),tn.selu(this)},t.prototype.leakyRelu=function(n){return void 0===n&&(n=.2),this.throwIfDisposed(),tn.leakyRelu(this,n)},t.prototype.prelu=function(n){return this.throwIfDisposed(),tn.prelu(this,n)},t.prototype.sigmoid=function(){return this.throwIfDisposed(),tn.sigmoid(this)},t.prototype.logSigmoid=function(){return this.throwIfDisposed(),tn.logSigmoid(this)},t.prototype.softplus=function(){return this.throwIfDisposed(),tn.softplus(this)},t.prototype.zerosLike=function(){return this.throwIfDisposed(),tn.zerosLike(this)},t.prototype.onesLike=function(){return this.throwIfDisposed(),tn.onesLike(this)},t.prototype.sin=function(){return this.throwIfDisposed(),tn.sin(this)},t.prototype.cos=function(){return this.throwIfDisposed(),tn.cos(this)},t.prototype.tan=function(){return this.throwIfDisposed(),tn.tan(this)},t.prototype.asin=function(){return this.throwIfDisposed(),tn.asin(this)},t.prototype.acos=function(){return this.throwIfDisposed(),tn.acos(this)},t.prototype.atan=function(){return this.throwIfDisposed(),tn.atan(this)},t.prototype.sinh=function(){return this.throwIfDisposed(),tn.sinh(this)},t.prototype.cosh=function(){return this.throwIfDisposed(),tn.cosh(this)},t.prototype.tanh=function(){return this.throwIfDisposed(),tn.tanh(this)},t.prototype.asinh=function(){return this.throwIfDisposed(),tn.asinh(this)},t.prototype.acosh=function(){return this.throwIfDisposed(),tn.acosh(this)},t.prototype.atanh=function(){return this.throwIfDisposed(),tn.atanh(this)},t.prototype.erf=function(){return this.throwIfDisposed(),tn.erf(this)},t.prototype.round=function(){return this.throwIfDisposed(),tn.round(this)},t.prototype.step=function(n){return void 0===n&&(n=0),this.throwIfDisposed(),tn.step(this,n)},t.prototype.softmax=function(n){return void 0===n&&(n=-1),this.throwIfDisposed(),tn.softmax(this,n)},t.prototype.logSoftmax=function(n){return void 0===n&&(n=-1),this.throwIfDisposed(),tn.logSoftmax(this,n)},t.prototype.resizeBilinear=function(n,e){return void 0===e&&(e=!1),this.throwIfDisposed(),tn.image.resizeBilinear(this,n,e)},t.prototype.resizeNearestNeighbor=function(n,e){return void 0===e&&(e=!1),this.throwIfDisposed(),tn.image.resizeNearestNeighbor(this,n,e)},t.prototype.conv1d=function(n,e,r,i,s,c){return void 0===i&&(i="NWC"),void 0===s&&(s=1),this.throwIfDisposed(),tn.conv1d(this,n,e,r,i,s,c)},t.prototype.conv2d=function(n,e,r,i,s,c){return void 0===i&&(i="NHWC"),void 0===s&&(s=[1,1]),this.throwIfDisposed(),tn.conv2d(this,n,e,r,i,s,c)},t.prototype.conv2dTranspose=function(n,e,r,i,s){return this.throwIfDisposed(),tn.conv2dTranspose(this,n,e,r,i,s)},t.prototype.depthwiseConv2D=function(n,e,r,i,s,c){return void 0===i&&(i="NHWC"),void 0===s&&(s=[1,1]),this.throwIfDisposed(),tn.depthwiseConv2d(this,n,e,r,i,s,c)},t.prototype.separableConv2d=function(n,e,r,i,s,c){return void 0===s&&(s=[1,1]),void 0===c&&(c="NHWC"),this.throwIfDisposed(),tn.separableConv2d(this,n,e,r,i,s,c)},t.prototype.avgPool=function(n,e,r,i){return this.throwIfDisposed(),tn.avgPool(this,n,e,r,i)},t.prototype.maxPool=function(n,e,r,i){return this.throwIfDisposed(),tn.maxPool(this,n,e,r,i)},t.prototype.localResponseNormalization=function(n,e,r,i){return void 0===n&&(n=5),void 0===e&&(e=1),void 0===r&&(r=1),void 0===i&&(i=.5),tn.localResponseNormalization(this,n,e,r,i)},t.prototype.pool=function(n,e,r,i,s){return this.throwIfDisposed(),tn.pool(this,n,e,r,i,s)},t.prototype.variable=function(n,e,r){return void 0===n&&(n=!0),this.throwIfDisposed(),hs().makeVariable(this,n,e,r)},t.prototype.unsortedSegmentSum=function(n,e){return this.throwIfDisposed(),tn.unsortedSegmentSum(this,n,e)},t.prototype.batchToSpaceND=function(n,e){return this.throwIfDisposed(),tn.batchToSpaceND(this,n,e)},t.prototype.spaceToBatchND=function(n,e){return this.throwIfDisposed(),tn.spaceToBatchND(this,n,e)},t.prototype.topk=function(n,e){return void 0===n&&(n=1),void 0===e&&(e=!0),this.throwIfDisposed(),tn.topk(this,n,e)},t.prototype.stridedSlice=function(n,e,r,i,s,c,l,u){return void 0===i&&(i=0),void 0===s&&(s=0),void 0===c&&(c=0),void 0===l&&(l=0),void 0===u&&(u=0),this.throwIfDisposed(),tn.stridedSlice(this,n,e,r,i,s,c,l,u)},t.prototype.depthToSpace=function(n,e){return this.throwIfDisposed(),tn.depthToSpace(this,n,e)},t.prototype.fft=function(){return this.throwIfDisposed(),tn.spectral.fft(this)},t.prototype.ifft=function(){return this.throwIfDisposed(),tn.spectral.ifft(this)},t.prototype.rfft=function(){return this.throwIfDisposed(),tn.spectral.rfft(this)},t.prototype.irfft=function(){return this.throwIfDisposed(),tn.spectral.irfft(this)},t}();Object.defineProperty(Ao,Symbol.hasInstance,{value:function(t){return!!t&&null!=t.dataId&&null!=t.shape&&null!=t.dtype}});var Wc,gc,ic,Uc,vc,t,ac=function(t){function n(e,r,i,s){var c=t.call(this,e.shape,e.dtype,e.dataId,s)||this;return c.trainable=r,c.name=i,c}return dt(n,t),n.prototype.assign=function(e){if(e.dtype!==this.dtype)throw new Error("dtype of the new value ("+e.dtype+") and previous value ("+this.dtype+") must match");if(!yi(e.shape,this.shape))throw new Error("shape of the new value ("+e.shape+") and previous value ("+this.shape+") must match");hs().disposeTensor(this),this.dataId=e.dataId,hs().incRef(this,null)},n.prototype.dispose=function(){hs().disposeVariable(this),this.isDisposedInternal=!0},n}(Ao);Object.defineProperty(ac,Symbol.hasInstance,{value:function(t){return t instanceof Ao&&null!=t.assign&&t.assign instanceof Function}}),(t=Wc||(Wc={})).R0="R0",t.R1="R1",t.R2="R2",t.R3="R3",t.R4="R4",t.R5="R5",t.R6="R6",function(t){t.float32="float32",t.int32="int32",t.bool="int32",t.complex64="complex64"}(gc||(gc={})),function(t){t.float32="float32",t.int32="int32",t.bool="bool",t.complex64="complex64"}(ic||(ic={})),function(t){t.float32="float32",t.int32="float32",t.bool="float32",t.complex64="complex64"}(Uc||(Uc={})),function(t){t.float32="complex64",t.int32="complex64",t.bool="complex64",t.complex64="complex64"}(vc||(vc={}));var U1={float32:Uc,int32:gc,bool:ic,complex64:vc};function Oi(t,n){if("string"===t||"string"===n){if("string"===t&&"string"===n)return"string";throw new Error("Can not upcast "+t+" with "+n)}return U1[t][n]}function yc(t){return Oi(t,"int32")}function ti(t,n){if(t.dtype===n.dtype)return[t,n];var e=Oi(t.dtype,n.dtype);return[t.cast(e),n.cast(e)]}function ms(t,n){at(t.dtype===n.dtype,function(){return"The dtypes of the first("+t.dtype+") and second("+n.dtype+") input must match"})}function be(t){var n=[];return function e(r,i,s){if(null!=r){if(r instanceof Ao)return void i.push(r);if(c=r,Array.isArray(c)||"object"==typeof c){var c,l=r;for(var u in l){var d=l[u];s.has(d)||(s.add(d),e(d,i,s))}}}}(t,n,new Set),n}Object.freeze({makeTypesMatch:ti,assertTypesMatch:ms,isTensorInList:function(t,n){return n.some(function(e){return e.id===t.id})},getTensorsInContainer:be});var Re,tt=function(){function t(){this.registeredVariables={},this.nextTapeNodeId=0,this.numBytes=0,this.numTensors=0,this.numStringTensors=0,this.numDataBuffers=0,this.gradientDepth=0,this.kernelDepth=0,this.scopeStack=[],this.numDataMovesStack=[],this.nextScopeId=0,this.tensorInfo=new WeakMap,this.profiling=!1,this.activeProfile={newBytes:0,newTensors:0,peakBytes:0,kernels:[],result:null}}return t.prototype.dispose=function(){for(var n in this.registeredVariables)this.registeredVariables[n].dispose()},t}(),vt=function(){function t(n){this.ENV=n,this.registry={},this.registryFactory={},this.pendingBackendInitId=0,this.state=new tt}return t.prototype.ready=function(){return st(this,void 0,void 0,function(){var n,e,r;return Ln(this,function(i){switch(i.label){case 0:if(null!=this.pendingBackendInit)return[2,this.pendingBackendInit.then(function(){})];if(null!=this.backendInstance)return[2];n=this.getSortedBackends(),e=0,i.label=1;case 1:return e<n.length?[4,this.initializeBackend(r=n[e]).success]:[3,5];case 2:return i.sent()?[4,this.setBackend(r)]:[3,4];case 3:return i.sent(),[2];case 4:return e++,[3,1];case 5:throw new Error("Could not initialize any backends, all backend initializations failed.")}})})},Object.defineProperty(t.prototype,"backend",{get:function(){if(null!=this.pendingBackendInit)throw new Error("Backend '"+this.backendName+"' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods");if(null==this.backendInstance){var n=this.initializeBackendsAndReturnBest(),e=n.name;if(n.asyncInit)throw new Error("The highest priority backend '"+e+"' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods");this.setBackend(e)}return this.backendInstance},enumerable:!0,configurable:!0}),t.prototype.backendNames=function(){return Object.keys(this.registryFactory)},t.prototype.findBackend=function(n){return n in this.registry||n in this.registryFactory&&!this.initializeBackend(n).asyncInit?this.registry[n]:null},t.prototype.findBackendFactory=function(n){return n in this.registryFactory?this.registryFactory[n].factory:null},t.prototype.registerBackend=function(n,e,r){return void 0===r&&(r=1),n in this.registryFactory?(console.warn(n+" backend was already registered. Reusing existing backend factory."),!1):(this.registryFactory[n]={factory:e,priority:r},!0)},t.prototype.setBackend=function(n){return st(this,void 0,void 0,function(){var e,r,i;return Ln(this,function(s){switch(s.label){case 0:if(null==this.registryFactory[n])throw new Error("Backend name '"+n+"' not found in registry");return this.backendName=n,null!=this.registry[n]?[3,4]:(this.backendInstance=null,e=this.initializeBackend(n),r=e.success,e.asyncInit?[4,r]:[3,2]);case 1:return i=s.sent(),[3,3];case 2:i=r,s.label=3;case 3:if(!i)return[2,!1];s.label=4;case 4:return this.backendInstance=this.registry[n],this.setupRegisteredKernels(),this.profiler=new y1(this.backendInstance),[2,!0]}})})},t.prototype.setupRegisteredKernels=function(){var n=this;an(this.backendName).forEach(function(e){null!=e.setupFunc&&e.setupFunc(n.backendInstance)})},t.prototype.disposeRegisteredKernels=function(n){var e=this;an(n).forEach(function(r){null!=r.disposeFunc&&r.disposeFunc(e.registry[n])})},t.prototype.initializeBackend=function(n){var e=this,r=this.registryFactory[n];if(null==r)throw new Error("Cannot initialize backend "+n+", no registration found.");try{var i=r.factory();if(Promise.resolve(i)===i){var s=++this.pendingBackendInitId,c=i.then(function(l){return!(s<e.pendingBackendInitId||(e.registry[n]=l,e.pendingBackendInit=null,0))}).catch(function(l){return!(s<e.pendingBackendInitId||(e.pendingBackendInit=null,console.warn("Initialization of backend "+n+" failed"),console.warn(l.stack||l.message),1))});return this.pendingBackendInit=c,{success:c,asyncInit:!0}}return this.registry[n]=i,{success:!0,asyncInit:!1}}catch(l){return console.warn("Initialization of backend "+n+" failed"),console.warn(l.stack||l.message),{success:!1,asyncInit:!1}}},t.prototype.removeBackend=function(n){if(!(n in this.registryFactory))throw new Error(n+" backend not found in registry");this.backendName===n&&null!=this.pendingBackendInit&&this.pendingBackendInitId++,n in this.registry&&(this.disposeRegisteredKernels(n),this.registry[n].dispose(),delete this.registry[n]),delete this.registryFactory[n],this.backendName===n&&(this.pendingBackendInit=null,this.backendName=null,this.backendInstance=null)},t.prototype.getSortedBackends=function(){var n=this;if(0===Object.keys(this.registryFactory).length)throw new Error("No backend found in registry.");return Object.keys(this.registryFactory).sort(function(e,r){return n.registryFactory[r].priority-n.registryFactory[e].priority})},t.prototype.initializeBackendsAndReturnBest=function(){for(var n=this.getSortedBackends(),e=0;e<n.length;e++){var r=n[e],i=this.initializeBackend(r),c=i.asyncInit;if(c||i.success)return{name:r,asyncInit:c}}throw new Error("Could not initialize any backends, all backend initializations failed.")},t.prototype.moveData=function(n,e){var r=this.state.tensorInfo.get(e),i=r.backend,s=this.readSync(e);i.disposeData(e),r.backend=n,n.move(e,s,r.shape,r.dtype),this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack[this.state.numDataMovesStack.length-1]++},t.prototype.tidy=function(n,e){var r,i=this,s=null;if(null==e){if("function"!=typeof n)throw new Error("Please provide a function to tidy()");e=n}else{if("string"!=typeof n&&!(n instanceof String))throw new Error("When calling with two arguments, the first argument to tidy() must be a string");if("function"!=typeof e)throw new Error("When calling with two arguments, the 2nd argument to tidy() must be a function");s=n}return this.scopedRun(function(){return i.startScope(s)},function(){return i.endScope(r)},function(){return(r=e())instanceof Promise&&console.error("Cannot return a Promise inside of tidy."),r})},t.prototype.scopedRun=function(n,e,r){n();try{var i=r();return e(),i}catch(s){throw e(),s}},t.prototype.nextTensorId=function(){return t.nextTensorId++},t.prototype.nextVariableId=function(){return t.nextVariableId++},t.prototype.clone=function(n){var e=this.makeTensorFromDataId(n.dataId,n.shape,n.dtype);return this.addTapeNode(this.state.activeScope.name,{x:n},[e],function(i){return{x:function(){return i.toFloat()}}},[]),e},t.prototype.runKernel=function(n,e,r,i,s){return this.runKernelFunc(null,e,null,n,r,i,s)},t.prototype.shouldCheckForMemLeaks=function(){return this.ENV.getBool("IS_TEST")},t.prototype.checkKernelForMemLeak=function(n,e,r){var i=this.backend.numDataIds(),s=0;r.forEach(function(u){s+="complex64"===u.dtype?3:1});var l=i-e-s-this.state.numDataMovesStack[this.state.numDataMovesStack.length-1];if(l>0)throw new Error("Backend '"+this.backendName+"' has an internal memory leak ("+l+" data ids) after running '"+n+"'")},t.prototype.runKernelFunc=function(n,e,r,i,s,c,l){var u,d=this;void 0===c&&(c=[]),void 0===l&&(l=[]);var p=[],M=this.isTapeOn();null==i&&(i=null!=this.state.activeScope?this.state.activeScope.name:"");var x,R=function(Ie){M&&(p=Ie.map(function(Ae){return d.keep(d.clone(Ae))}))},U=this.state.numBytes,J=this.state.numTensors;this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack.push(0);var ne,ue=ve(i,this.backendName);return x=null!=ue?function(){var Ie=d.backend.numDataIds();ne=ue.kernelFunc({inputs:e,attrs:s,backend:d.backend});var Ae=Array.isArray(ne)?ne:[ne];d.shouldCheckForMemLeaks()&&d.checkKernelForMemLeak(i,Ie,Ae);var Oe=Ae.map(function(et){return d.makeTensorFromDataId(et.dataId,et.shape,et.dtype)}),Fe=Oe.filter(function(et,Ct){return l[Ct]});return R((c||[]).slice().concat(Fe)),Oe}:function(){var Ie=d.backend.numDataIds();ne=d.tidy(function(){return n(d.backend,R)});var Ae=Array.isArray(ne)?ne:[ne];return d.shouldCheckForMemLeaks()&&d.checkKernelForMemLeak(i,Ie,Ae),Ae},this.scopedRun(function(){return d.state.kernelDepth++},function(){return d.state.kernelDepth--},function(){u=d.ENV.getBool("DEBUG")?d.profiler.profileKernel(i,e,function(){return x()}):x()}),M&&this.addTapeNode(i,e,u,r,p),this.state.profiling&&this.state.activeProfile.kernels.push({name:i,bytesAdded:this.state.numBytes-U,totalBytesSnapshot:this.state.numBytes,tensorsAdded:this.state.numTensors-J,totalTensorsSnapshot:this.state.numTensors,inputShapes:Object.keys(e).map(function(Ie){return e[Ie].shape}),outputShapes:u.map(function(Ie){return Ie.shape})}),Array.isArray(ne)?u:u[0]},t.prototype.makeTensor=function(n,e,r,i){if(null==n)throw new Error("Values passed to engine.makeTensor() are null");i=i||this.backend;var s=n;"string"===(r=r||"float32")&&Bi(n[0])&&(s=n.map(function(p){return So(p)}));var c=i.write(s,e,r),l=new Ao(e,r,c,this.nextTensorId());if(this.incRef(l,i),"string"===r){var u=this.state.tensorInfo.get(c),d=r1(s);this.state.numBytes+=d-u.bytes,u.bytes=d}return l},t.prototype.makeTensorFromDataId=function(n,e,r,i){var s=new Ao(e,r=r||"float32",n,this.nextTensorId());return this.incRef(s,i),s},t.prototype.makeVariable=function(n,e,r,i){void 0===e&&(e=!0),r=r||this.nextVariableId().toString(),null!=i&&i!==n.dtype&&(n=n.asType(i));var s=new ac(n,e,r,this.nextTensorId());if(null!=this.state.registeredVariables[s.name])throw new Error("Variable with name "+s.name+" was already registered");return this.state.registeredVariables[s.name]=s,this.incRef(s,this.backend),s},t.prototype.incRef=function(n,e){var r=this.state.tensorInfo.has(n.dataId)?this.state.tensorInfo.get(n.dataId).refCount:0;if(this.state.numTensors++,"string"===n.dtype&&this.state.numStringTensors++,0===r){this.state.numDataBuffers++;var i=0;"complex64"!==n.dtype&&"string"!==n.dtype&&(i=n.size*ds(n.dtype)),this.state.tensorInfo.set(n.dataId,{backend:e||this.backend,dtype:n.dtype,shape:n.shape,bytes:i,refCount:0}),this.state.numBytes+=i}this.state.tensorInfo.get(n.dataId).refCount++,n instanceof ac||this.track(n)},t.prototype.disposeTensor=function(n){if(this.state.tensorInfo.has(n.dataId)){this.state.numTensors--,"string"===n.dtype&&this.state.numStringTensors--;var e=this.state.tensorInfo.get(n.dataId);e.refCount<=1?("complex64"!==n.dtype&&(this.state.numBytes-=e.bytes),this.state.numDataBuffers--,e.backend.disposeData(n.dataId),this.state.tensorInfo.delete(n.dataId)):this.state.tensorInfo.get(n.dataId).refCount--}},t.prototype.disposeVariables=function(){for(var n in this.state.registeredVariables)this.disposeVariable(this.state.registeredVariables[n])},t.prototype.disposeVariable=function(n){this.disposeTensor(n),null!=this.state.registeredVariables[n.name]&&delete this.state.registeredVariables[n.name]},t.prototype.memory=function(){var n=this.backend.memory();return n.numTensors=this.state.numTensors,n.numDataBuffers=this.state.numDataBuffers,n.numBytes=this.state.numBytes,this.state.numStringTensors>0&&(n.unreliable=!0,null==n.reasons&&(n.reasons=[]),n.reasons.push("Memory usage by string tensors is approximate (2 bytes per character)")),n},t.prototype.profile=function(n){return st(this,void 0,void 0,function(){var e,r;return Ln(this,function(i){return this.state.profiling=!0,e=this.state.numBytes,r=this.state.numTensors,this.state.activeProfile.kernels=[],this.state.activeProfile.result=n(),this.state.profiling=!1,this.state.activeProfile.peakBytes=Math.max.apply(Math,this.state.activeProfile.kernels.map(function(s){return s.totalBytesSnapshot})),this.state.activeProfile.newBytes=this.state.numBytes-e,this.state.activeProfile.newTensors=this.state.numTensors-r,[2,this.state.activeProfile]})})},t.prototype.isTapeOn=function(){return this.state.gradientDepth>0&&0===this.state.kernelDepth},t.prototype.addTapeNode=function(n,e,r,i,s){var c=this,l={id:this.state.nextTapeNodeId++,kernelName:n,inputs:e,outputs:r,saved:s},u=function Lt(t){return O.get(t)}(n);null!=u&&(i=u.gradFunc),null!=i&&(l.gradient=function(d){return d=d.map(function(p,M){if(null==p){var x=r[M],R=Js(x.size,x.dtype);return c.makeTensor(R,x.shape,x.dtype)}return p}),i(d.length>1?d:d[0],s)}),this.state.activeTape.push(l)},t.prototype.keep=function(n){return n.kept=!0,n},t.prototype.startTape=function(){0===this.state.gradientDepth&&(this.state.activeTape=[]),this.state.gradientDepth++},t.prototype.endTape=function(){this.state.gradientDepth--},t.prototype.startScope=function(n){var e={track:[],name:"unnamed scope",id:this.state.nextScopeId++};n&&(e.name=n),this.state.scopeStack.push(e),this.state.activeScope=e},t.prototype.endScope=function(n){for(var e=this,r=be(n),i=new Set(r.map(function(u){return u.id})),s=0;s<this.state.activeScope.track.length;s++){var c=this.state.activeScope.track[s];c.kept||i.has(c.id)||c.dispose()}var l=this.state.scopeStack.pop();this.state.activeScope=0===this.state.scopeStack.length?null:this.state.scopeStack[this.state.scopeStack.length-1],r.forEach(function(u){u.kept||u.scopeId!==l.id||e.track(u)})},t.prototype.gradients=function(n,e,r,i){var s=this;if(void 0===i&&(i=!1),at(e.length>0,function(){return"gradients() received an empty list of xs."}),null!=r&&"float32"!==r.dtype)throw new Error("dy must have 'float32' dtype, but has '"+r.dtype+"'");var c=this.scopedRun(function(){return s.startTape()},function(){return s.endTape()},function(){return s.tidy("forward",n)});at(c instanceof Ao,function(){return"The result y returned by f() must be a tensor."});var l=function(u,d,p){for(var M={},x={},R=0;R<d.length;R++)M[d[R].id]=!0;for(R=0;R<u.length;R++){var U=(et=u[R]).inputs;for(var J in U){for(var ne=U[J],ue=!1,Ie=0;Ie<d.length;Ie++)if(M[ne.id]){et.outputs.forEach(function(gt){return M[gt.id]=!0}),ue=!0,x[et.id]=!0;break}if(ue)break}}var Ae={};Ae[p.id]=!0;var Oe={};for(R=u.length-1;R>=0;R--)for(U=(et=u[R]).inputs,Ie=0;Ie<et.outputs.length;Ie++)if(Ae[et.outputs[Ie].id]){for(var J in U)Ae[U[J].id]=!0,Oe[et.id]=!0;break}var Fe=[];for(R=0;R<u.length;R++){var et;if(x[(et=u[R]).id]&&Oe[et.id]){var Ct={};for(var J in et.inputs){var yt=et.inputs[J];M[yt.id]&&(Ct[J]=yt)}var pt=Object.assign({},et);pt.inputs=Ct,pt.outputs=et.outputs,Fe.push(pt)}}return Fe}(this.state.activeTape,e,c);if(!i&&0===l.length&&e.length>0)throw new Error("Cannot compute gradient of y=f(x) with respect to x. Make sure that the f you passed encloses all operations that lead from x to y.");return this.tidy("backward",function(){var u,d,p={};p[c.id]=r??(d=ja(rr(u=c.shape),"float32"),Ye.makeTensor(d,u,"float32")),function(x,R,U){for(var J=function(ue){var Ie=R[ue],Ae=[];if(Ie.outputs.forEach(function(Ct){var yt=x[Ct.id];Ae.push(null!=yt?yt:null)}),null==Ie.gradient)throw new Error("Cannot compute gradient: gradient function not found for "+Ie.kernelName+".");var Oe=Ie.gradient(Ae),Fe=function(Ct){if(!(Ct in Oe))throw new Error("Cannot backprop through input "+Ct+". Available gradients found: "+Object.keys(Oe)+".");var yt=s.tidy(function(){return Oe[Ct]()});if("float32"!==yt.dtype)throw new Error("Error in gradient for op "+Ie.kernelName+". The gradient of input "+Ct+" must have 'float32' dtype, but has '"+yt.dtype+"'");var pt=Ie.inputs[Ct];if(!yi(yt.shape,pt.shape))throw new Error("Error in gradient for op "+Ie.kernelName+". The gradient of input '"+Ct+"' has shape '"+yt.shape+"', which does not match the shape of the input '"+pt.shape+"'");if(null==x[pt.id])x[pt.id]=yt;else{var gt=x[pt.id];x[pt.id]=gt.add(yt),gt.dispose()}};for(var et in Ie.inputs)Fe(et)},ne=R.length-1;ne>=0;ne--)J(ne)}(p,l);var M=e.map(function(x){return p[x.id]});return 0===s.state.gradientDepth&&(s.state.activeTape.forEach(function(x){for(var R=0,U=x.saved;R<U.length;R++)U[R].dispose()}),s.state.activeTape=null),{value:c,grads:M}})},t.prototype.customGrad=function(n){var e=this;return at(Xr(n),function(){return"The f passed in customGrad(f) must be a function."}),function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];at(i.every(function(l){return l instanceof Ao}),function(){return"The args passed in customGrad(f)(x1, x2,...) must all be tensors"});var c={};return i.forEach(function(l,u){c[u]=l}),e.runKernelFunc(function(l,u){return at((r=n.apply(void 0,i.concat([u]))).value instanceof Ao,function(){return"The function f passed in customGrad(f) must return an object where `obj.value` is a tensor"}),at(Xr(r.gradFunc),function(){return"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function."}),r.value},c,function(l,u){var d=r.gradFunc(l,u),p=Array.isArray(d)?d:[d];at(p.length===i.length,function(){return"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function that returns the same number of tensors as inputs passed to f(...)."}),at(p.every(function(x){return x instanceof Ao}),function(){return"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function that returns a list of only tensors."});var M={};return p.forEach(function(x,R){M[R]=function(){return x}}),M})}},t.prototype.readSync=function(n){return this.state.tensorInfo.get(n).backend.readSync(n)},t.prototype.read=function(n){return this.state.tensorInfo.get(n).backend.read(n)},t.prototype.time=function(n){return st(this,void 0,void 0,function(){var e,r;return Ln(this,function(i){switch(i.label){case 0:return e=Wa(),[4,this.backend.time(n)];case 1:return(r=i.sent()).wallMs=Wa()-e,[2,r]}})})},t.prototype.track=function(n){return null!=this.state.activeScope&&(n.scopeId=this.state.activeScope.id,this.state.activeScope.track.push(n)),n},Object.defineProperty(t.prototype,"registeredVariables",{get:function(){return this.state.registeredVariables},enumerable:!0,configurable:!0}),t.prototype.reset=function(){for(var n in this.pendingBackendInitId++,this.state.dispose(),this.ENV.reset(),this.state=new tt,this.registry)this.disposeRegisteredKernels(n),this.registry[n].dispose(),delete this.registry[n];this.backendName=null,this.backendInstance=null,this.pendingBackendInit=null},t.nextTensorId=0,t.nextVariableId=0,t}(),Ye=function(){var t=function(){if(null==Re){var e=void 0;if(typeof window<"u")e=window;else if(typeof global<"u")e=global;else if(typeof process<"u")e=process;else{if(typeof self>"u")throw new Error("Could not find a global object");e=self}Re=e}return Re}();if(null==t._tfengine){var n=new Rr(t);t._tfengine=new vt(n)}return _=t._tfengine.ENV,hs=function(){return t._tfengine},t._tfengine}();function sn(){return typeof window<"u"&&null!=window.document||typeof WorkerGlobalScope<"u"}var Tn=X();Tn.registerFlag("DEBUG",function(){return!1},function(t){t&&console.warn("Debugging mode is ON. The output of every math call will be downloaded to CPU and checked for NaNs. This significantly impacts performance.")}),Tn.registerFlag("IS_BROWSER",function(){return sn()}),Tn.registerFlag("IS_NODE",function(){return typeof process<"u"&&void 0!==process.versions&&void 0!==process.versions.node}),Tn.registerFlag("IS_CHROME",function(){return typeof navigator<"u"&&null!=navigator&&null!=navigator.userAgent&&/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}),Tn.registerFlag("PROD",function(){return!1}),Tn.registerFlag("TENSORLIKE_CHECK_SHAPE_CONSISTENCY",function(){return Tn.getBool("DEBUG")}),Tn.registerFlag("DEPRECATION_WARNINGS_ENABLED",function(){return!0}),Tn.registerFlag("IS_TEST",function(){return!1});var cr,Kn,ar,ao={},_o={alpha:!1,antialias:!1,premultipliedAlpha:!1,preserveDrawingBuffer:!1,depth:!1,stencil:!1,failIfMajorPerformanceCaveat:!0};function $i(t,n){ao[t]=n}function Ii(t){t in ao||(ao[t]=function(e){if(1!==e&&2!==e)throw new Error("Cannot get WebGL rendering context, WebGL is disabled.");var r=function(i){if(typeof OffscreenCanvas<"u"&&2===i)return new OffscreenCanvas(300,150);if(typeof document<"u")return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}(e);return r.addEventListener("webglcontextlost",function(i){i.preventDefault(),delete ao[e]},!1),1===e?r.getContext("webgl",_o)||r.getContext("experimental-webgl",_o):r.getContext("webgl2",_o)}(t));var n=ao[t];return n.isContextLost()?(delete ao[t],Ii(t)):(n.disable(n.DEPTH_TEST),n.disable(n.STENCIL_TEST),n.disable(n.BLEND),n.disable(n.DITHER),n.disable(n.POLYGON_OFFSET_FILL),n.disable(n.SAMPLE_COVERAGE),n.enable(n.SCISSOR_TEST),n.enable(n.CULL_FACE),n.cullFace(n.BACK),ao[t])}function Qa(t,n){return[n,t]}function ca(t){var n=rr(t);return Xs(Math.ceil(n/4))}function Ca(t,n){return[Math.max(1,Math.ceil(n/2)),Math.max(1,Math.ceil(t/2))]}function qi(t,n){var e,r,i,s,c,l,u,d,p,M=t;return 2===X().getNumber("WEBGL_VERSION")?(e=M.R32F,r=M.R16F,i=M.RGBA16F,s=M.RGBA32F,c=M.RED,l=4,u=1,d=M.HALF_FLOAT,p=M.FLOAT):(e=t.RGBA,r=t.RGBA,i=t.RGBA,s=M.RGBA,c=t.RGBA,l=4,u=4,d=null!=n?n.HALF_FLOAT_OES:null,p=t.FLOAT),{internalFormatFloat:e,internalFormatHalfFloat:r,internalFormatPackedHalfFloat:i,internalFormatPackedFloat:s,textureFormatFloat:c,downloadTextureFormat:t.RGBA,downloadUnpackNumChannels:l,defaultNumChannels:u,textureTypeHalfFloat:d,textureTypeFloat:p}}function Vn(t,n,e){var r=e();return n&&function(i){var s=i.getError();if(s!==i.NO_ERROR)throw new Error("WebGL Error: "+V(i,s))}(t),r}function E(t){return!!(X().getBool("WEBGL_RENDER_FLOAT32_ENABLED")||0===t||5.96e-8<Math.abs(t)&&Math.abs(t)<65504)}function V(t,n){switch(n){case t.NO_ERROR:return"NO_ERROR";case t.INVALID_ENUM:return"INVALID_ENUM";case t.INVALID_VALUE:return"INVALID_VALUE";case t.INVALID_OPERATION:return"INVALID_OPERATION";case t.INVALID_FRAMEBUFFER_OPERATION:return"INVALID_FRAMEBUFFER_OPERATION";case t.OUT_OF_MEMORY:return"OUT_OF_MEMORY";case t.CONTEXT_LOST_WEBGL:return"CONTEXT_LOST_WEBGL";default:return"Unknown error code "+n}}function Me(t,n,e){return ka(t,n,function(){return t.getExtension(e)},'Extension "'+e+'" not supported on this browser.')}function Be(t,n,e){var r=ka(t,n,function(){return t.createShader(t.VERTEX_SHADER)},"Unable to create vertex WebGLShader.");if(Vn(t,n,function(){return t.shaderSource(r,e)}),Vn(t,n,function(){return t.compileShader(r)}),!1===t.getShaderParameter(r,t.COMPILE_STATUS))throw console.log(t.getShaderInfoLog(r)),new Error("Failed to compile vertex shader.");return r}function ht(t,n,e){var r=ka(t,n,function(){return t.createShader(t.FRAGMENT_SHADER)},"Unable to create fragment WebGLShader.");if(Vn(t,n,function(){return t.shaderSource(r,e)}),Vn(t,n,function(){return t.compileShader(r)}),!1===t.getShaderParameter(r,t.COMPILE_STATUS))throw function(i,s){var c=nn.exec(s);if(null==c)return console.log("Couldn't parse line number in error: "+s),void console.log(i);for(var l=+c[1],u=i.split("\n"),d=u.length.toString().length+2,p=u.map(function(ne,ue){return us((ue+1).toString(),d)+ne}),M=0,x=0;x<p.length;x++)M=Math.max(p[x].length,M);var R=p.slice(0,l-1),U=p.slice(l-1,l),J=p.slice(l);console.log(R.join("\n")),console.log(s.split("\n")[0]),console.log("%c "+us(U[0],M),"border:1px solid red; background-color:#e3d2d2; color:#a61717"),console.log(J.join("\n"))}(e,t.getShaderInfoLog(r)),new Error("Failed to compile fragment shader.");return r}(function(t){t[t.DENSE=0]="DENSE",t[t.SHARED_BATCH=1]="SHARED_BATCH"})(cr||(cr={})),function(t){t[t.RENDER=0]="RENDER",t[t.UPLOAD=1]="UPLOAD",t[t.PIXELS=2]="PIXELS",t[t.DOWNLOAD=3]="DOWNLOAD"}(Kn||(Kn={})),function(t){t[t.UNPACKED_FLOAT16=0]="UNPACKED_FLOAT16",t[t.UNPACKED_FLOAT32=1]="UNPACKED_FLOAT32",t[t.PACKED_4X1_UNSIGNED_BYTE=2]="PACKED_4X1_UNSIGNED_BYTE",t[t.PACKED_2X2_FLOAT32=3]="PACKED_2X2_FLOAT32",t[t.PACKED_2X2_FLOAT16=4]="PACKED_2X2_FLOAT16"}(ar||(ar={}));var Mt,jt,nn=/ERROR: [0-9]+:([0-9]+):/g;function Bn(t,n){return ka(t,n,function(){return t.createProgram()},"Unable to create WebGLProgram.")}function Xn(t,n,e){if(Vn(t,n,function(){return t.linkProgram(e)}),!1===t.getProgramParameter(e,t.LINK_STATUS))throw console.log(t.getProgramInfoLog(e)),new Error("Failed to link vertex and fragment shaders.")}function Yr(t,n,e){if(Vn(t,n,function(){return t.validateProgram(e)}),!1===t.getProgramParameter(e,t.VALIDATE_STATUS))throw console.log(t.getProgramInfoLog(e)),new Error("Shader program validation failed.")}function vr(t,n,e){var r=ka(t,n,function(){return t.createBuffer()},"Unable to create WebGLBuffer");return Vn(t,n,function(){return t.bindBuffer(t.ARRAY_BUFFER,r)}),Vn(t,n,function(){return t.bufferData(t.ARRAY_BUFFER,e,t.STATIC_DRAW)}),r}function mr(t,n,e){var r=ka(t,n,function(){return t.createBuffer()},"Unable to create WebGLBuffer");return Vn(t,n,function(){return t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,r)}),Vn(t,n,function(){return t.bufferData(t.ELEMENT_ARRAY_BUFFER,e,t.STATIC_DRAW)}),r}function zr(t,n){return ka(t,n,function(){return t.createTexture()},"Unable to create WebGLTexture.")}function No(t,n){var e=X().getNumber("WEBGL_MAX_TEXTURE_SIZE");if(t<=0||n<=0){var r="["+t+"x"+n+"]";throw new Error("Requested texture size "+r+" is invalid.")}if(t>e||n>e)throw r="["+t+"x"+n+"]",new Error("Requested texture size "+r+" greater than WebGL maximum on this browser / GPU ["+e+"x"+e+"].")}function $o(t,n){return ka(t,n,function(){return t.createFramebuffer()},"Unable to create WebGLFramebuffer.")}function Ci(t,n,e,r,i,s,c,l){var u=t.getAttribLocation(e,r);return-1!==u&&(Vn(t,n,function(){return t.bindBuffer(t.ARRAY_BUFFER,i)}),Vn(t,n,function(){return t.vertexAttribPointer(u,s,t.FLOAT,!1,c,l)}),Vn(t,n,function(){return t.enableVertexAttribArray(u)}),!0)}function ea(t,n,e,r){Da(t,r),Vn(t,n,function(){return t.activeTexture(t.TEXTURE0+r)}),Vn(t,n,function(){return t.bindTexture(t.TEXTURE_2D,e)})}function ji(t,n,e,r){return ka(t,n,function(){return t.getUniformLocation(e,r)},'uniform "'+r+'" not present in program.')}function Ts(t,n,e){return t.getUniformLocation(n,e)}function ws(t,n,e,r,i,s){Vn(t,n,function(){return ea(t,n,r,s)}),Vn(t,n,function(){return t.uniform1i(i,s)})}function Ki(t,n,e,r){Vn(t,n,function(){return t.bindFramebuffer(t.FRAMEBUFFER,r)}),Vn(t,n,function(){return t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0)})}function wi(t,n,e){Vn(t,n,function(){return t.bindFramebuffer(t.FRAMEBUFFER,e)}),Vn(t,n,function(){return t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,null,0)})}function ps(t){var n=t.checkFramebufferStatus(t.FRAMEBUFFER);if(n!==t.FRAMEBUFFER_COMPLETE)throw new Error("Error binding framebuffer: "+Ua(t,n))}function Ua(t,n){switch(n){case t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:return"FRAMEBUFFER_INCOMPLETE_ATTACHMENT";case t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:return"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";case t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:return"FRAMEBUFFER_INCOMPLETE_DIMENSIONS";case t.FRAMEBUFFER_UNSUPPORTED:return"FRAMEBUFFER_UNSUPPORTED";default:return"unknown error "+n}}function ka(t,n,e,r){var i=Vn(t,n,function(){return e()});if(null==i)throw new Error(r);return i}function Da(t,n){var e=t.MAX_COMBINED_TEXTURE_IMAGE_UNITS-1,r=n+t.TEXTURE0;if(r<t.TEXTURE0||r>e)throw new Error("textureUnit must be in [gl.TEXTURE0, gl.TEXTURE"+e+"].")}function _s(t,n){return void 0===n&&(n=2),rr(t.slice(0,t.length-n))}function gs(t){if(0===t.length)throw Error("Cannot get rows and columns of an empty shape array.");return[t.length>1?t[t.length-2]:1,t[t.length-1]]}function sc(t){var n=[1,1,1];return 0===t.length||1===t.length&&1===t[0]||(n=[_s(t)].concat(gs(t))),n}function lr(t,n){var e;void 0===n&&(n=!1);var r=X().getNumber("WEBGL_MAX_TEXTURE_SIZE");if(n&&(r*=2,1===(t=t.map(function(d,p){return p>=t.length-2?As(t[p]):t[p]})).length&&(t=[2,t[0]])),2!==t.length){var i=Pi(t);t=i.newShape}var s=rr(t);if(t.length<=1&&s<=r)return[1,s];if(2===t.length&&t[0]<=r&&t[1]<=r)return t;if(3===t.length&&t[0]*t[1]<=r&&t[2]<=r)return[t[0]*t[1],t[2]];if(3===t.length&&t[0]<=r&&t[1]*t[2]<=r)return[t[0],t[1]*t[2]];if(4===t.length&&t[0]*t[1]*t[2]<=r&&t[3]<=r)return[t[0]*t[1]*t[2],t[3]];if(4===t.length&&t[0]<=r&&t[1]*t[2]*t[3]<=r)return[t[0],t[1]*t[2]*t[3]];if(n){var c=_s(t),l=2,u=2;return t.length&&(l=(e=gs(t))[0],u=e[1]),Xs(s=c*(l/2)*(u/2)).map(function(d){return 2*d})}return Xs(s)}function Jt(t){return t%2==0}function pr(t,n){if(yi(t=t.slice(-2),n=n.slice(-2))||!t.length||!n.length||0===t[0]||0===t[1]||0===n[0]||0===n[1])return!0;if(t.length!==n.length){var e=t.slice(-1)[0],r=n.slice(-1)[0];if(e===r||Jt(e)&&Jt(r)&&(1===t[0]||1===n[0]))return!0}return t[1]===n[1]&&Jt(t[0])&&Jt(n[0])}function so(t){if(null==Mt){var n=Ii(t);Mt=n.getParameter(n.MAX_TEXTURE_SIZE)}return Mt}function Cn(t){if(null==jt){var n=Ii(t);jt=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS)}return Math.min(16,jt)}function hn(t){if(0===t)return 0;var n=Ii(t);return Gn(n,"EXT_disjoint_timer_query_webgl2")&&2===t?2:Gn(n,"EXT_disjoint_timer_query")?1:0}function Gn(t,n){return null!=t.getExtension(n)}function po(t){try{if(null!=Ii(t))return!0}catch{return!1}return!1}function Wr(t){if(0===t)return!1;var n=Ii(t);if(1===t){if(!Gn(n,"OES_texture_float"))return!1}else if(!Gn(n,"EXT_color_buffer_float"))return!1;return c1(n)}function cc(t){if(0===t)return!1;var n=Ii(t);if(1!==t){if(Gn(n,"EXT_color_buffer_float"))return c1(n);if(Gn(n,"EXT_color_buffer_half_float")){var e=n.getExtension("EXT_color_buffer_half_float");return function(r,i){var s=qi(r,i),c=r.createTexture();r.bindTexture(r.TEXTURE_2D,c),r.texImage2D(r.TEXTURE_2D,0,s.internalFormatHalfFloat,1,1,0,s.textureFormatFloat,s.textureTypeHalfFloat,null);var l=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,l),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,c,0);var u=r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE;return r.bindTexture(r.TEXTURE_2D,null),r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteTexture(c),r.deleteFramebuffer(l),u}(n,e)}return!1}return!!Gn(n,"OES_texture_float")&&!!Gn(n,"WEBGL_color_buffer_float")&&c1(n)}function c1(t){var n=qi(t),e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e),t.texImage2D(t.TEXTURE_2D,0,n.internalFormatFloat,1,1,0,n.textureFormatFloat,n.textureTypeFloat,null);var r=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,r),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0);var i=t.checkFramebufferStatus(t.FRAMEBUFFER)===t.FRAMEBUFFER_COMPLETE;return t.bindTexture(t.TEXTURE_2D,null),t.bindFramebuffer(t.FRAMEBUFFER,null),t.deleteTexture(e),t.deleteFramebuffer(r),i}function ba(t){return 2===t&&null!=Ii(t).fenceSync}var Vc=Object.freeze({callAndCheck:Vn,canBeRepresented:E,getWebGLErrorMessage:V,getExtensionOrThrow:Me,createVertexShader:Be,createFragmentShader:ht,createProgram:Bn,linkProgram:Xn,validateProgram:Yr,createStaticVertexBuffer:vr,createStaticIndexBuffer:mr,getNumChannels:function(){return 2===X().getNumber("WEBGL_VERSION")?1:4},createTexture:zr,validateTextureSize:No,createFramebuffer:$o,bindVertexBufferToProgramAttribute:Ci,bindTextureUnit:ea,unbindTextureUnit:function(t,n,e){Da(t,e),Vn(t,n,function(){return t.activeTexture(t.TEXTURE0+e)}),Vn(t,n,function(){return t.bindTexture(t.TEXTURE_2D,null)})},getProgramUniformLocationOrThrow:ji,getProgramUniformLocation:Ts,bindTextureToProgramUniformSampler:ws,bindCanvasToFramebuffer:function(t,n){Vn(t,n,function(){return t.bindFramebuffer(t.FRAMEBUFFER,null)}),Vn(t,n,function(){return t.viewport(0,0,t.canvas.width,t.canvas.height)}),Vn(t,n,function(){return t.scissor(0,0,t.canvas.width,t.canvas.height)})},bindColorTextureToFramebuffer:Ki,unbindColorTextureFromFramebuffer:wi,validateFramebuffer:ps,getFramebufferErrorMessage:Ua,getBatchDim:_s,getRowsCols:gs,getShapeAs3D:sc,getTextureShapeFromLogicalShape:lr,isReshapeFree:pr,getWebGLMaxTextureSize:so,resetMaxTextureSize:function(){Mt=null},resetMaxTexturesInShader:function(){jt=null},getMaxTexturesInShader:Cn,getWebGLDisjointQueryTimerVersion:hn,hasExtension:Gn,isWebGLVersionEnabled:po,isCapableOfRenderingToFloatTexture:Wr,isDownloadFloatTextureEnabled:cc,isWebGLFenceEnabled:ba}),_r=X();function b0(t){X().getBool("DEPRECATION_WARNINGS_ENABLED")&&console.warn(t+" You can disable deprecation warnings with tf.disableDeprecationWarnings().")}function ir(t,n){return Ye.tidy(t,n)}function Es(t){be(t).forEach(function(n){return n.dispose()})}function V1(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];X().getBool("IS_TEST")||console.warn.apply(console,t)}function qa(t,n){var e=t;if(Hi(t))return"string"===n?[]:[t.length];if(!Array.isArray(t))return[];for(var r=[];Array.isArray(e)||Hi(e)&&"string"!==n;)r.push(e.length),e=e[0];return Array.isArray(t)&&X().getBool("TENSORLIKE_CHECK_SHAPE_CONSISTENCY")&&function i(s,c,l){if(l=l||[],Array.isArray(s)||Hi(s)){at(c.length>0,function(){return"Element arr["+l.join("][")+"] should be a primitive, but is an array of "+s.length+" elements"}),at(s.length===c[0],function(){return"Element arr["+l.join("][")+"] should have "+c[0]+" elements, but has "+s.length+" elements"});for(var u=c.slice(1),d=0;d<s.length;++d)i(s[d],u,l.concat(d))}else at(0===c.length,function(){return"Element arr["+l.join("][")+"] is a primitive, but should be an array/TypedArray of "+c[0]+" elements"})}(t,r,[]),r}function Mc(t,n,e,r){if(null!=t&&("numeric"!==t&&t!==n||"numeric"===t&&"string"===n))throw new Error("Argument '"+e+"' passed to '"+r+"' must be "+t+" tensor, but got "+n+" tensor")}function Qe(t,n,e,r){if(void 0===r&&(r="numeric"),t instanceof Ao)return Mc(r,t.dtype,n,e),t;var i=Ls(t);if("string"!==i&&["bool","int32","float32"].indexOf(r)>=0&&(i=r),Mc(r,i,n,e),null==t||!Hi(t)&&!Array.isArray(t)&&"number"!=typeof t&&"boolean"!=typeof t&&"string"!=typeof t)throw new Error("Argument '"+n+"' passed to '"+e+"' must be a Tensor or TensorLike, but got '"+(null==t?"null":t.constructor.name)+"'");var c=qa(t,i);Hi(t)||Array.isArray(t)||(t=[t]);var l="string"!==i?ei(t,i,X().getBool("DEBUG")):Ja(t,[],!0);return Ye.makeTensor(l,c,i)}function G1(t,n,e,r){if(void 0===r&&(r="numeric"),!Array.isArray(t))throw new Error("Argument "+n+" passed to "+e+" must be a `Tensor[]` or `TensorLike[]`");return t.map(function(i,s){return Qe(i,n+"["+s+"]",e)},r)}function W2(t,n){for(var e=0;e<t.length;++e)if(t[t.length-e-1]!==n-1-e)return!1;return!0}function Rs(t,n,e){for(var r=t.length+n.length,i=[],s=0,c=0,l=0;l<r;l++)-1===e.indexOf(l)?i.push(t[s++]):i.push(n[c++]);return i}function ta(t,n){for(var e=[],r=t.length,i=0;i<r;i++)-1===n.indexOf(i)&&e.push(t[i]);return[e,n.map(function(s){return t[s]})]}function Va(t,n){return Rs(t,n.map(function(e){return 1}),n)}function ys(t,n,e){at(W2(n,e),function(){return t+" supports only inner-most axes for now. Got axes "+n+" and rank-"+e+" input."})}function Qs(t,n){if(W2(t,n))return null;for(var e=[],r=0;r<n;++r)-1===t.indexOf(r)&&e.push(r);return t.forEach(function(i){return e.push(i)}),e}function Ys(t){return t.map(function(n,e){return[e,n]}).sort(function(n,e){return n[1]-e[1]}).map(function(n){return n[0]})}function La(t,n){for(var e=[],r=n-t;r<n;++r)e.push(r);return e}function bl(t,n){var e=t[0].length;t.forEach(function(i,s){at(i.length===e,function(){return"Error in concat"+e+"D: rank of tensors["+s+"] must be the same as the rank of the rest ("+e+")"})}),at(n>=0&&n<e,function(){return"Error in concat"+e+"D: axis must be between 0 and "+(e-1)+"."});var r=t[0];t.forEach(function(i,s){for(var c=0;c<e;c++)at(c===n||i[c]===r[c],function(){return"Error in concat"+e+"D: Shape of tensors["+s+"] ("+i+") does not match the shape of the rest ("+r+") along the non-concatenated axis "+s+"."})})}function Gc(t,n){for(var e=t[0].slice(),r=1;r<t.length;r++)e[n]+=t[r][n];return e}function kt(t){var n=Object.keys(t);if(1!==n.length)throw new Error("Please provide an object with a single key (operation name) mapping to a function. Got an object with "+n.length+" keys.");var e=n[0],r=t[e];e.endsWith("_")&&(e=e.substring(0,e.length-1));var i=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];Ye.startScope(e);try{var l=r.apply(void 0,s);return l instanceof Promise&&console.error("Cannot return a Promise inside of tidy."),Ye.endScope(l),l}catch(u){throw Ye.endScope(null),u}};return Object.defineProperty(i,"name",{value:e,configurable:!0}),i}_r.registerFlag("HAS_WEBGL",function(){return _r.getNumber("WEBGL_VERSION")>0}),_r.registerFlag("WEBGL_VERSION",function(){return po(2)?2:po(1)?1:0}),_r.registerFlag("WEBGL_BUFFER_SUPPORTED",function(){return 2===_r.get("WEBGL_VERSION")}),_r.registerFlag("WEBGL_CPU_FORWARD",function(){return!0}),_r.registerFlag("WEBGL_FORCE_F16_TEXTURES",function(){return!1}),_r.registerFlag("WEBGL_PACK",function(){return _r.getBool("HAS_WEBGL")}),_r.registerFlag("WEBGL_PACK_NORMALIZATION",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_PACK_CLIP",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_PACK_DEPTHWISECONV",function(){return!1}),_r.registerFlag("WEBGL_PACK_BINARY_OPERATIONS",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_PACK_UNARY_OPERATIONS",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_PACK_ARRAY_OPERATIONS",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_PACK_IMAGE_OPERATIONS",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_PACK_REDUCE",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_LAZILY_UNPACK",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_CONV_IM2COL",function(){return _r.getBool("WEBGL_PACK")}),_r.registerFlag("WEBGL_MAX_TEXTURE_SIZE",function(){return so(_r.getNumber("WEBGL_VERSION"))}),_r.registerFlag("WEBGL_MAX_TEXTURES_IN_SHADER",function(){return Cn(_r.getNumber("WEBGL_VERSION"))}),_r.registerFlag("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION",function(){var t=_r.getNumber("WEBGL_VERSION");return 0===t?0:hn(t)}),_r.registerFlag("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE",function(){return _r.getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")>0&&(t=navigator.userAgent||navigator.vendor||window.opera,!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))));var t}),_r.registerFlag("WEBGL_RENDER_FLOAT32_CAPABLE",function(){return Wr(_r.getNumber("WEBGL_VERSION"))}),_r.registerFlag("WEBGL_RENDER_FLOAT32_ENABLED",function(){return!_r.getBool("WEBGL_FORCE_F16_TEXTURES")&&_r.getBool("WEBGL_RENDER_FLOAT32_CAPABLE")}),_r.registerFlag("WEBGL_DOWNLOAD_FLOAT_ENABLED",function(){return cc(_r.getNumber("WEBGL_VERSION"))}),_r.registerFlag("WEBGL_FENCE_API_ENABLED",function(){return ba(_r.getNumber("WEBGL_VERSION"))}),_r.registerFlag("WEBGL_SIZE_UPLOAD_UNIFORM",function(){return _r.getBool("WEBGL_RENDER_FLOAT32_ENABLED")?4:0}),b1=b0;var Oa=kt({complex_:function(t,n){var e=Qe(t,"real","complex"),r=Qe(n,"imag","complex");return ho(e.shape,r.shape,"real and imag shapes, "+e.shape+" and "+r.shape+", must match in call to tf.complex()."),Ye.runKernelFunc(function(i){return i.complex(e,r)},{$real:e,$imag:r})}}),Fs=kt({real_:function(t){var n=Qe(t,"input","real");return Ye.runKernelFunc(function(e){return e.real(n)},{$input:n})}}),Hs=kt({imag_:function(t){var n=Qe(t,"input","imag");return Ye.runKernelFunc(function(e){return e.imag(n)},{$input:n})}});function xi(t,n,e){return Ga(t,n,qa(t,e),e)}function Ga(t,n,e,r){if(null==r&&(r=Ls(t)),"complex64"===r)throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");if(!Hi(t)&&!Array.isArray(t)&&"number"!=typeof t&&"boolean"!=typeof t&&"string"!=typeof t)throw new Error("values passed to tensor(values) must be a number/boolean/string or an array of numbers/booleans/strings, or a TypedArray");if(null!=n){zs(n);var i=rr(n),s=rr(e);at(i===s,function(){return"Based on the provided shape, ["+n+"], the tensor should have "+i+" values but has "+s});for(var c=0;c<e.length;++c){var u=c!==e.length-1||e[c]!==rr(n.slice(c));at(e[c]===n[c]||!u,function(){return"Error creating a new Tensor. Inferred shape ("+e+") does not match the provided shape ("+n+"). "})}}return Hi(t)||Array.isArray(t)||(t=[t]),n=n||e,t="string"!==r?ei(t,r,X().getBool("DEBUG")):Ja(t,[],!0),Ye.makeTensor(t,n,r)}function wn(t,n){if((Hi(t)&&"string"!==n||Array.isArray(t))&&"complex64"!==n)throw new Error("Error creating a new Scalar: value must be a primitive (number|boolean|string)");if("string"===n&&Hi(t)&&!(t instanceof Uint8Array))throw new Error("When making a scalar from encoded string, the value must be `Uint8Array`.");return Ga(t,[],[],n)}function C(t,n){Ks(t);var e=qa(t,n);if(1!==e.length)throw new Error("tensor1d() requires values to be a flat/TypedArray");return Ga(t,null,e,n)}function B(t,n,e){if(Ks(t),null!=n&&2!==n.length)throw new Error("tensor2d() requires shape to have two numbers");var r=qa(t,e);if(2!==r.length&&1!==r.length)throw new Error("tensor2d() requires values to be number[][] or flat/TypedArray");if(1===r.length&&null==n)throw new Error("tensor2d() requires shape to be provided when `values` are a flat/TypedArray");return Ga(t,n,r,e)}function ae(t,n,e){if(Ks(t),null!=n&&3!==n.length)throw new Error("tensor3d() requires shape to have three numbers");var r=qa(t,e);if(3!==r.length&&1!==r.length)throw new Error("tensor3d() requires values to be number[][][] or flat/TypedArray");if(1===r.length&&null==n)throw new Error("tensor3d() requires shape to be provided when `values` are a flat array");return Ga(t,n,r,e)}function Se(t,n,e){if(Ks(t),null!=n&&4!==n.length)throw new Error("tensor4d() requires shape to have four numbers");var r=qa(t,e);if(4!==r.length&&1!==r.length)throw new Error("tensor4d() requires values to be number[][][][] or flat/TypedArray");if(1===r.length&&null==n)throw new Error("tensor4d() requires shape to be provided when `values` are a flat array");return Ga(t,n,r,e)}function qn(t,n){if(void 0===n&&(n="float32"),"complex64"===n){var e=qn(t,"float32"),r=$n(t,"float32");return Oa(e,r)}var i=ja(rr(t),n);return Ye.makeTensor(i,t,n)}function $n(t,n){if(void 0===n&&(n="float32"),"complex64"===n){var e=$n(t,"float32"),r=$n(t,"float32");return Oa(e,r)}var i=Js(rr(t),n);return Ye.makeTensor(i,t,n)}function to(t,n,e){return Ye.runKernelFunc(function(r){return r.fill(t,n,e)},{})}function ks(t,n,e,r){if(void 0===e&&(e=1),void 0===r&&(r="float32"),0===e)throw new Error("Cannot have a step of zero");if(t===n||t<n&&e<0||n<t&&e>1)return $n([0],r);var i=Js(Math.abs(Math.ceil((n-t)/e)),r);n<t&&1===e&&(e=-1),i[0]=t;for(var s=1;s<i.length;s++)i[s]=i[s-1]+e;return C(i,r)}var Cc=kt({onesLike_:function(t){var n=Qe(t,"x","onesLike");if("complex64"===n.dtype){var e=Cc(Fs(n)),r=Zo(Hs(n));return Oa(e,r)}return Ye.runKernelFunc(function(i){return i.onesLike(n)},{$x:n},function(i,s){return{$x:function(){return Zo(i)}}})}}),Zo=kt({zerosLike_:function(t){var n=Qe(t,"x","zerosLike");return Ye.runKernelFunc(function(e){return e.zerosLike(n)},{$x:n},function(e,r){return{$x:function(){return Zo(e)}}})}}),Ia=kt({concat_:function(t,n){void 0===n&&(n=0),at(t.length>=1,function(){return"Pass at least one tensor to concat"});var e=G1(t,"tensors","concat");"complex64"===e[0].dtype&&e.forEach(function(l){if("complex64"!==l.dtype)throw new Error("Cannot concatenate complex64 tensors with a tensor\n with dtype "+l.dtype+". ")}),n=Ti(n,e[0].shape)[0];var r=Gc(e.map(function(l){return l.shape}),n);if(0===rr(r))return xi([],r);if(1===(e=e.filter(function(l){return l.size>0})).length)return e[0];var i=e.map(function(l){return l.shape});return bl(i,n),Ye.runKernelFunc(function(l){return l.concat(e,n)},e,function(l){var u=i.map(function(d){return d[n]});return N3(l,u,n).map(function(d){return function(){return d}})},"Concat",{axis:n})}}),j4=kt({concat1d_:function(t){return Ia(t,0)}}),Xh=kt({concat2d_:function(t,n){return Ia(t,n)}}),Zh=kt({concat3d_:function(t,n){return Ia(t,n)}}),Jh=kt({concat4d_:function(t,n){return Ia(t,n)}}),N3=kt({split_:function(t,n,e){void 0===e&&(e=0);var r,i=Qe(t,"x","split");return e=Ti(e,i.shape)[0],"number"==typeof n?(at(i.shape[e]%n==0,function(){return"Number of splits must evenly divide the axis."}),r=new Array(n).fill(i.shape[e]/n)):(at(i.shape[e]===n.reduce(function(s,c){return s+c}),function(){return"The sum of sizes must match the size of the axis dimension."}),r=n),Ye.runKernelFunc(function(s){return s.split(i,r,e)},{$x:i},function(s){return{$x:function(){return Ia(s,e)}}})}});function h2(t,n){return t(n={exports:{}},n.exports),n.exports}typeof globalThis<"u"||typeof window<"u"||typeof global<"u"&&global;var W4=h2(function(t){!function(n,e,r){function i(l){var u,d=this,p=(u=4022871197,function(M){M=M.toString();for(var x=0;x<M.length;x++){var R=.02519603282416938*(u+=M.charCodeAt(x));R-=u=R>>>0,u=(R*=u)>>>0,u+=4294967296*(R-=u)}return 2.3283064365386963e-10*(u>>>0)});d.next=function(){var M=2091639*d.s0+2.3283064365386963e-10*d.c;return d.s0=d.s1,d.s1=d.s2,d.s2=M-(d.c=0|M)},d.c=1,d.s0=p(" "),d.s1=p(" "),d.s2=p(" "),d.s0-=p(l),d.s0<0&&(d.s0+=1),d.s1-=p(l),d.s1<0&&(d.s1+=1),d.s2-=p(l),d.s2<0&&(d.s2+=1),p=null}function s(l,u){return u.c=l.c,u.s0=l.s0,u.s1=l.s1,u.s2=l.s2,u}function c(l,u){var d=new i(l),p=u&&u.state,M=d.next;return M.int32=function(){return 4294967296*d.next()|0},M.double=function(){return M()+11102230246251565e-32*(2097152*M()|0)},M.quick=M,p&&("object"==typeof p&&s(p,d),M.state=function(){return s(d,{})}),M}e&&e.exports?e.exports=c:this.alea=c}(0,t)}),z=h2(function(t){!function(n,e,r){function i(l){var u=this,d="";u.x=0,u.y=0,u.z=0,u.w=0,u.next=function(){var M=u.x^u.x<<11;return u.x=u.y,u.y=u.z,u.z=u.w,u.w^=u.w>>>19^M^M>>>8},l===(0|l)?u.x=l:d+=l;for(var p=0;p<d.length+64;p++)u.x^=0|d.charCodeAt(p),u.next()}function s(l,u){return u.x=l.x,u.y=l.y,u.z=l.z,u.w=l.w,u}function c(l,u){var d=new i(l),p=u&&u.state,M=function(){return(d.next()>>>0)/4294967296};return M.double=function(){do{var x=((d.next()>>>11)+(d.next()>>>0)/4294967296)/2097152}while(0===x);return x},M.int32=d.next,M.quick=M,p&&("object"==typeof p&&s(p,d),M.state=function(){return s(d,{})}),M}e&&e.exports?e.exports=c:this.xor128=c}(0,t)}),w=h2(function(t){!function(n,e,r){function i(l){var u=this,d="";u.next=function(){var M=u.x^u.x>>>2;return u.x=u.y,u.y=u.z,u.z=u.w,u.w=u.v,(u.d=u.d+362437|0)+(u.v=u.v^u.v<<4^M^M<<1)|0},u.x=0,u.y=0,u.z=0,u.w=0,u.v=0,l===(0|l)?u.x=l:d+=l;for(var p=0;p<d.length+64;p++)u.x^=0|d.charCodeAt(p),p==d.length&&(u.d=u.x<<10^u.x>>>4),u.next()}function s(l,u){return u.x=l.x,u.y=l.y,u.z=l.z,u.w=l.w,u.v=l.v,u.d=l.d,u}function c(l,u){var d=new i(l),p=u&&u.state,M=function(){return(d.next()>>>0)/4294967296};return M.double=function(){do{var x=((d.next()>>>11)+(d.next()>>>0)/4294967296)/2097152}while(0===x);return x},M.int32=d.next,M.quick=M,p&&("object"==typeof p&&s(p,d),M.state=function(){return s(d,{})}),M}e&&e.exports?e.exports=c:this.xorwow=c}(0,t)}),S=h2(function(t){!function(n,e,r){function i(l){var u=this;u.next=function(){var d,p,M=u.x,x=u.i;return d=M[x],p=(d^=d>>>7)^d<<24,p^=(d=M[x+1&7])^d>>>10,p^=(d=M[x+3&7])^d>>>3,p^=(d=M[x+4&7])^d<<7,d=M[x+7&7],p^=(d^=d<<13)^d<<9,M[x]=p,u.i=x+1&7,p},function(d,p){var M,x=[];if(p===(0|p))x[0]=p;else for(p=""+p,M=0;M<p.length;++M)x[7&M]=x[7&M]<<15^p.charCodeAt(M)+x[M+1&7]<<13;for(;x.length<8;)x.push(0);for(M=0;M<8&&0===x[M];++M);for(8==M&&(x[7]=-1),d.x=x,d.i=0,M=256;M>0;--M)d.next()}(u,l)}function s(l,u){return u.x=l.x.slice(),u.i=l.i,u}function c(l,u){null==l&&(l=+new Date);var d=new i(l),p=u&&u.state,M=function(){return(d.next()>>>0)/4294967296};return M.double=function(){do{var x=((d.next()>>>11)+(d.next()>>>0)/4294967296)/2097152}while(0===x);return x},M.int32=d.next,M.quick=M,p&&(p.x&&s(p,d),M.state=function(){return s(d,{})}),M}e&&e.exports?e.exports=c:this.xorshift7=c}(0,t)}),H=h2(function(t){!function(n,e,r){function i(l){var u=this;u.next=function(){var d,p,M=u.w,x=u.X,R=u.i;return u.w=M=M+1640531527|0,p=x[R+34&127],d=x[R=R+1&127],p^=p<<13,d^=d<<17,p=x[R]=(p^=p>>>15)^(d^=d>>>12),u.i=R,p+(M^M>>>16)|0},function(d,p){var M,x,R,U,J,ne=[],ue=128;for(p===(0|p)?(x=p,p=null):(p+="\0",x=0,ue=Math.max(ue,p.length)),R=0,U=-32;U<ue;++U)p&&(x^=p.charCodeAt((U+32)%p.length)),0===U&&(J=x),x^=x<<10,x^=x>>>15,x^=x<<4,x^=x>>>13,U>=0&&(R=0==(M=ne[127&U]^=x+(J=J+1640531527|0))?R+1:0);for(R>=128&&(ne[127&(p&&p.length||0)]=-1),R=127,U=512;U>0;--U)x=ne[R+34&127],M=ne[R=R+1&127],x^=x<<13,M^=M<<17,ne[R]=(x^=x>>>15)^(M^=M>>>12);d.w=J,d.X=ne,d.i=R}(u,l)}function s(l,u){return u.i=l.i,u.w=l.w,u.X=l.X.slice(),u}function c(l,u){null==l&&(l=+new Date);var d=new i(l),p=u&&u.state,M=function(){return(d.next()>>>0)/4294967296};return M.double=function(){do{var x=((d.next()>>>11)+(d.next()>>>0)/4294967296)/2097152}while(0===x);return x},M.int32=d.next,M.quick=M,p&&(p.X&&s(p,d),M.state=function(){return s(d,{})}),M}e&&e.exports?e.exports=c:this.xor4096=c}(0,t)}),pe=h2(function(t){!function(n,e,r){function i(l){var u=this,d="";u.next=function(){var M=u.b,x=u.c,R=u.d,U=u.a;return M=M<<25^M>>>7^x,x=x-R|0,R=R<<24^R>>>8^U,U=U-M|0,u.b=M=M<<20^M>>>12^x,u.c=x=x-R|0,u.d=R<<16^x>>>16^U,u.a=U-M|0},u.a=0,u.b=0,u.c=-1640531527,u.d=1367130551,l===Math.floor(l)?(u.a=l/4294967296|0,u.b=0|l):d+=l;for(var p=0;p<d.length+20;p++)u.b^=0|d.charCodeAt(p),u.next()}function s(l,u){return u.a=l.a,u.b=l.b,u.c=l.c,u.d=l.d,u}function c(l,u){var d=new i(l),p=u&&u.state,M=function(){return(d.next()>>>0)/4294967296};return M.double=function(){do{var x=((d.next()>>>11)+(d.next()>>>0)/4294967296)/2097152}while(0===x);return x},M.int32=d.next,M.quick=M,p&&("object"==typeof p&&s(p,d),M.state=function(){return s(d,{})}),M}e&&e.exports?e.exports=c:this.tychei=c}(0,t)}),He=h2(function(t){!function(n,e){var r,i=this,s=256,l="random",u=e.pow(s,6),d=e.pow(2,52),p=2*d,M=255;function x(ue,Ie,Ae){var Oe=[],Fe=J(function yt(pt,gt){var Bt,Ft=[],yn=typeof pt;if(gt&&"object"==yn)for(Bt in pt)try{Ft.push(yt(pt[Bt],gt-1))}catch{}return Ft.length?Ft:"string"==yn?pt:pt+"\0"}((Ie=1==Ie?{entropy:!0}:Ie||{}).entropy?[ue,ne(n)]:ue??function(){try{var yt;return r&&(yt=r.randomBytes)?yt=yt(s):(yt=new Uint8Array(s),(i.crypto||i.msCrypto).getRandomValues(yt)),ne(yt)}catch{var pt=i.navigator,gt=pt&&pt.plugins;return[+new Date,i,gt,i.screen,ne(n)]}}(),3),Oe),et=new R(Oe),Ct=function(){for(var yt=et.g(6),pt=u,gt=0;yt<d;)yt=(yt+gt)*s,pt*=s,gt=et.g(1);for(;yt>=p;)yt/=2,pt/=2,gt>>>=1;return(yt+gt)/pt};return Ct.int32=function(){return 0|et.g(4)},Ct.quick=function(){return et.g(4)/4294967296},Ct.double=Ct,J(ne(et.S),n),(Ie.pass||Ae||function(yt,pt,gt,Bt){return Bt&&(Bt.S&&U(Bt,et),yt.state=function(){return U(et,{})}),gt?(e[l]=yt,pt):yt})(Ct,Fe,"global"in Ie?Ie.global:this==e,Ie.state)}function R(ue){var Ie,Ae=ue.length,Oe=this,Fe=0,et=Oe.i=Oe.j=0,Ct=Oe.S=[];for(Ae||(ue=[Ae++]);Fe<s;)Ct[Fe]=Fe++;for(Fe=0;Fe<s;Fe++)Ct[Fe]=Ct[et=M&et+ue[Fe%Ae]+(Ie=Ct[Fe])],Ct[et]=Ie;(Oe.g=function(yt){for(var pt,gt=0,Bt=Oe.i,Ft=Oe.j,yn=Oe.S;yt--;)pt=yn[Bt=M&Bt+1],gt=gt*s+yn[M&(yn[Bt]=yn[Ft=M&Ft+pt])+(yn[Ft]=pt)];return Oe.i=Bt,Oe.j=Ft,gt})(s)}function U(ue,Ie){return Ie.i=ue.i,Ie.j=ue.j,Ie.S=ue.S.slice(),Ie}function J(ue,Ie){for(var Ae,Oe=ue+"",Fe=0;Fe<Oe.length;)Ie[M&Fe]=M&(Ae^=19*Ie[M&Fe])+Oe.charCodeAt(Fe++);return ne(Ie)}function ne(ue){return String.fromCharCode.apply(0,ue)}if(e["seed"+l]=x,J(e.random(),n),t.exports){t.exports=x;try{r=f(64902)}catch{}}}([],Math)});He.alea=W4,He.xor128=z,He.xorwow=w,He.xorshift7=S,He.xor4096=H,He.tychei=pe;var St=He.alea,Nt=function(){function t(n,e,r,i,s){this.mean=n,this.stdDev=e,this.dtype=r,this.nextVal=NaN,this.truncated=i,this.truncated&&(this.upper=this.mean+2*this.stdDev,this.lower=this.mean-2*this.stdDev);var c=s||Math.random();this.random=St(c.toString())}return t.prototype.nextValue=function(){if(!isNaN(this.nextVal)){var n=this.nextVal;return this.nextVal=NaN,n}for(var e,r,i=!1;!i;){var s=void 0,c=void 0,l=void 0;do{l=(s=2*this.random()-1)*s+(c=2*this.random()-1)*c}while(l>=1||0===l);var u=Math.sqrt(-2*Math.log(l)/l);e=this.mean+this.stdDev*s*u,r=this.mean+this.stdDev*c*u,this.truncated&&!this.isValidTruncated(e)||(i=!0)}return this.truncated&&!this.isValidTruncated(r)||(this.nextVal=this.convertValue(r)),this.convertValue(e)},t.prototype.convertValue=function(n){return null==this.dtype||"float32"===this.dtype?n:Math.round(n)},t.prototype.isValidTruncated=function(n){return n<=this.upper&&n>=this.lower},t}(),Ut=function(){function t(n,e,r,i){this.alpha=n,this.beta=1/e,this.dtype=r;var s=i||Math.random();this.randu=St(s.toString()),this.randn=new Nt(0,1,r,!1,this.randu()),this.d=n<1?n+2/3:n-1/3,this.c=1/Math.sqrt(9*this.d)}return t.prototype.nextValue=function(){for(var n,e,r,i,s,c;;){do{i=this.randn.nextValue(),c=1+this.c*i}while(c<=0);if(e=1-.331*(n=i*i)*n,r=.5*n+this.d*(1-(c*=c*c)+Math.log(c)),(s=this.randu())<e||Math.log(s)<r)break}return c*=1/this.beta*this.d,this.alpha<1&&(c*=Math.pow(this.randu(),1/this.alpha)),this.convertValue(c)},t.prototype.convertValue=function(n){return"float32"===this.dtype?n:Math.round(n)},t}(),An=function(){function t(n,e,r,i){var s=this;if(void 0===n&&(n=0),void 0===e&&(e=1),this.canReturnFloat=function(){return null==s.dtype||"float32"===s.dtype},this.min=n,this.range=e-n,this.dtype=r,null==i&&(i=Math.random()),"number"==typeof i&&(i=i.toString()),!this.canReturnFloat()&&this.range<=1)throw new Error("The difference between "+n+" - "+e+" <= 1 and dtype is not float");this.random=St(i)}return t.prototype.convertValue=function(n){return this.canReturnFloat()?n:Math.round(n)},t.prototype.nextValue=function(){return this.convertValue(this.min+this.range*this.random())},t}();function zn(t,n,e){return void 0===n&&(n="float32"),n=n||"float32",zs(t),new _c(t,n,e)}var jo=kt({batchToSpaceND_:function(t,n,e){var r=Qe(t,"x","batchToSpaceND"),i=n.reduce(function(s,c){return s*c});return at(r.rank>=1+n.length,function(){return"input rank is "+r.rank+" but should be > than blockShape.length "+n.length}),at(e.length===n.length,function(){return"crops.length is "+e.length+" but should be equal to blockShape.length "+n.length}),at(r.shape[0]%i==0,function(){return"input tensor batch is "+r.shape[0]+" but is not divisible by the product of the elements of blockShape "+n.join(" * ")+" === "+i}),Ye.runKernelFunc(function(s){return s.batchToSpaceND(r,n,e)},{$x:r},function(s){return{$x:function(){return s.spaceToBatchND(n,e)}}})}}),Fr=kt({broadcastTo_:function(t,n){var e=Qe(t,"broadcastTo","x"),r=e.shape;if(n.some(function(u){return!(u>0)||u%1!=0}))throw new Error("broadcastTo(): Invalid broadcast shape ["+n+"].");if(n.length<e.rank)throw new Error("broadcastTo(): shape.length="+n.length+" < input.rank="+e.rank+".");if(n.length>e.rank){for(var i=e.shape.slice();i.length<n.length;)i.unshift(1);e=e.reshape(i)}for(var s=Array.from(n),c=n.length-1;c>=0;c--)if(e.shape[c]===n[c])s[c]=1;else if(1!==e.shape[c])throw new Error("broadcastTo(): ["+r+"] cannot be broadcast to ["+n+"].");var l=s.map(function(u,d){return u>1?d:-1}).filter(function(u){return u>=0});return 0===l.length?e.clone():Ye.runKernelFunc(function(u){return u.tile(e,s)},{input:e},function(u){return{input:function(){return u.sum(l,!0)}}})}}),la=kt({cast_:function(t,n){var e=Qe(t,"x","cast");if(!xa(n))throw new Error("Failed to cast to unknown dtype "+n);if("string"===n&&"string"!==e.dtype||"string"!==n&&"string"===e.dtype)throw new Error("Only strings can be casted to strings");return Ye.runKernelFunc(function(i){return i.cast(e,n)},{x:e},function(i){return{x:function(){return i.clone()}}},"Cast",{dtype:n})}}),bc=kt({clone_:function(t){var n=Qe(t,"x","clone",null);return Ye.runKernelFunc(function(){return Ye.makeTensorFromDataId(n.dataId,n.shape,n.dtype)},{$x:n},function(e){return{$x:function(){return e.toFloat()}}})}}),$c=kt({cumsum_:function(t,n,e,r){void 0===n&&(n=0),void 0===e&&(e=!1),void 0===r&&(r=!1);var i=Qe(t,"x","cumsum"),s=Qs([n|=0],i.rank),c=i;null!=s&&(c=i.transpose(s));var l=La(1,i.rank)[0],u=Ye.runKernelFunc(function(d){return d.cumsum(c,l,e,r)},{permutedX:c},function(d){return{permutedX:function(){return d.cumsum(n,e,!r)}}});return null!=s&&(u=u.transpose(s)),u}}),m2=kt({depthToSpace_:function(t,n,e){void 0===e&&(e="NHWC");var r=Qe(t,"x","depthToSpace"),i="NHWC"===e?r.shape[1]:r.shape[2],s="NHWC"===e?r.shape[2]:r.shape[3],c="NHWC"===e?r.shape[3]:r.shape[1];return at(i*n>=0,function(){return"Negative dimension size caused by overflow when multiplying\n "+i+" and "+n+" for depthToSpace with input shape\n "+r.shape}),at(s*n>=0,function(){return"Negative dimension size caused by overflow when multiplying\n "+s+" and "+n+" for depthToSpace with input shape\n "+r.shape}),at(c%(n*n)==0,function(){return"Dimension size must be evenly divisible by "+n*n+" but is "+c+" for depthToSpace with input shape "+r.shape}),Ye.runKernelFunc(function(l){return l.depthToSpace(r,n,e)},{$x:r})}}),Ms=kt({expandDims_:function(t,n){void 0===n&&(n=0);var e=Qe(t,"x","expandDims",null);at(n<=e.rank,function(){return"Axis must be <= rank of the tensor"});var r=e.shape.slice();return n<0&&(at(-(e.rank+1)<=n,function(){return"Axis must be in the interval ["+-(e.rank+1)+", "+e.rank+"]"}),n=e.rank+n+1),r.splice(n,0,1),l1(e,r)}}),T0=kt({eye_:function(t,n,e,r){void 0===r&&(r="float32"),null==n&&(n=t);for(var i=zn([t,n],r),s=t<=n?t:n,c=0;c<s;++c)i.set(1,c,c);var l=i.toTensor().as2D(t,n);if(null==e)return l;if(1===e.length)return Ll(Ms(l,0),[e[0],1,1]);if(2===e.length)return Ll(Ms(Ms(l,0),0),[e[0],e[1],1,1]);if(3===e.length)return Ll(Ms(Ms(Ms(l,0),0),0),[e[0],e[1],e[2],1,1]);throw new Error("eye() currently supports only 1D and 2D batchShapes, but received "+e.length+"D.")}}),U4=kt({multinomial_:function(t,n,e,r){void 0===r&&(r=!1);var i=Qe(t,"logits","multinomial"),s=i.size,c=i.rank;if(s<2)throw new Error("Error in multinomial: you need at least 2 outcomes, but got "+s+".");if(c>2)throw new Error("Rank of probabilities must be 1 or 2, but is "+c);e=e||Math.random();var l=1===c?i.as2D(1,-1):i,u=Ye.runKernelFunc(function(d){return d.multinomial(l,r,n,e)},{logits2D:l});return 1===c?u.as1D():u}}),U2=kt({oneHot_:function(t,n,e,r){if(void 0===e&&(e=1),void 0===r&&(r=0),n<2)throw new Error("Error in oneHot: depth must be >=2, but it is "+n);var i=Qe(t,"indices","oneHot","int32"),s=i.shape.concat([n]);return i=i.flatten(),Ye.runKernelFunc(function(c){return c.oneHot(i,n,e,r)},{$indices:i},function(c){return{$indices:function(){return $n(i.shape,"float32")}}}).reshape(s)}}),$1=kt({pad_:function(t,n,e){void 0===e&&(e=0);var r=Qe(t,"x","pad");if(0===r.rank)throw new Error("pad(scalar) is not defined. Pass non-scalar to pad");return Ye.runKernelFunc(function(s){return s.pad(r,n,e)},{x:r},function(s){var c=n.map(function(l){return l[0]});return{x:function(){return s.slice(c,r.shape)}}},"PadV2",{paddings:n,constantValue:e})}}),z3=kt({pad1d_:function(t,n,e){return void 0===e&&(e=0),at(2===n.length,function(){return"Invalid number of paddings. Must be length of 2."}),$1(t,[n],e)}}),V4=kt({pad2d_:function(t,n,e){return void 0===e&&(e=0),at(2===n.length&&2===n[0].length&&2===n[1].length,function(){return"Invalid number of paddings. Must be length of 2 each."}),$1(t,n,e)}}),V2=kt({pad3d_:function(t,n,e){return void 0===e&&(e=0),at(3===n.length&&2===n[0].length&&2===n[1].length&&2===n[2].length,function(){return"Invalid number of paddings. Must be length of 2 each."}),$1(t,n,e)}}),p2=kt({pad4d_:function(t,n,e){return void 0===e&&(e=0),at(4===n.length&&2===n[0].length&&2===n[1].length&&2===n[2].length&&2===n[3].length,function(){return"Invalid number of paddings. Must be length of 2 each."}),$1(t,n,e)}}),G4=kt({rand_:function(t,n,e){var r=rr(t),i=null;if(null==e||"float32"===e)i=new Float32Array(r);else if("int32"===e)i=new Int32Array(r);else{if("bool"!==e)throw new Error("Unknown data type "+e);i=new Uint8Array(r)}for(var s=0;s<r;s++)i[s]=n();return Ye.makeTensor(i,t,e)}}),Qh=kt({randomNormal_:function(t,n,e,r,i){if(void 0===n&&(n=0),void 0===e&&(e=1),null!=r&&"bool"===r)throw new Error("Unsupported data type "+r);for(var s=new Nt(n,e,r,!1,i),c=zn(t,r),l=0;l<c.values.length;l++)c.values[l]=s.nextValue();return c.toTensor()}}),jg=kt({randomGamma_:function(t,n,e,r,i){if(void 0===e&&(e=1),void 0===r&&(r="float32"),null==e&&(e=1),null==r&&(r="float32"),"float32"!==r&&"int32"!==r)throw new Error("Unsupported data type "+r);for(var s=new Ut(n,e,r,i),c=zn(t,r),l=0;l<c.values.length;l++)c.values[l]=s.nextValue();return c.toTensor()}}),$4=kt({randomUniform_:function(t,n,e,r,i){void 0===n&&(n=0),void 0===e&&(e=1),void 0===r&&(r="float32");for(var s=zn(t,r),c=new An(n,e,null,i),l=0;l<s.values.length;l++)s.values[l]=c.nextValue();return s.toTensor()}}),l1=kt({reshape_:function(t,n){var e=Qe(t,"x","reshape",null);return n=n1(n,e.size),at(e.size===rr(n),function(){return"new shape and old shape must have the same number of elements."}),Ye.runKernelFunc(function(i){return i.reshape(e,n)},{x:e},function(i){return{x:function(){return i.reshape(e.shape)}}},"Reshape",{shape:n})}}),qh=kt({spaceToBatchND_:function(t,n,e){var r=Qe(t,"x","spaceToBatchND");return at(r.rank>=1+n.length,function(){return"input rank "+r.rank+" should be > than [blockShape] "+n.length}),at(e.length===n.length,function(){return"paddings.shape[0] "+e.length+" must be equal to [blockShape] "+n.length}),at(r.shape.reduce(function(i,s,c){return c>0&&c<=n.length?i&&(s+e[c-1][0]+e[c-1][1])%n[c-1]==0:i},!0),function(){return"input spatial dimensions "+r.shape.slice(1)+" with paddings "+e.toString()+" must be divisible by blockShapes "+n.toString()}),Ye.runKernelFunc(function(i){return i.spaceToBatchND(r,n,e)},{$x:r},function(i){return{$x:function(){return i.batchToSpaceND(n,e)}}})}}),em=kt({squeeze_:function(t,n){var e=Qe(t,"x","squeeze");return l1(e,Pi(e.shape,n).newShape)}}),Lc=kt({stack_:function(t,n){void 0===n&&(n=0);var e=G1(t,"tensors","stack");if(at(e.length>=1,function(){return"Pass at least one tensor to tf.stack"}),1===e.length)return e[0].expandDims(n);var i=e[0].shape,s=e[0].dtype;at(n<=e[0].rank,function(){return"Axis must be <= rank of the tensor"}),e.forEach(function(l){ho(i,l.shape,"All tensors passed to stack must have matching shapes")}),e.forEach(function(l){at(s===l.dtype,function(){return"All tensors passed to stack must have matching dtypes"})});var c=e.map(function(l){return l.expandDims(n)});return Ia(c,n)}}),Ll=kt({tile_:function(t,n){var e=Qe(t,"x","tile",null);return at(e.rank===n.length,function(){return"Error in transpose: rank of input "+e.rank+" must match length of reps "+n+"."}),Ye.runKernelFunc(function(s,c){var l=s.tile(e,n);return c([e]),l},{x:e},function(s,c){var l=c[0];return{x:function(){var u=Zo(l);if(1===l.rank)for(var d=0;d<n[0];++d)u=u.add(s.slice([d*l.shape[0]],[l.shape[0]]));else if(2===l.rank)for(d=0;d<n[0];++d)for(var p=0;p<n[1];++p)u=u.add(s.slice([d*l.shape[0],p*l.shape[1]],[l.shape[0],l.shape[1]]));else if(3===l.rank)for(d=0;d<n[0];++d)for(p=0;p<n[1];++p)for(var M=0;M<n[2];++M)u=u.add(s.slice([d*l.shape[0],p*l.shape[1],M*l.shape[2]],[l.shape[0],l.shape[1],l.shape[2]]));else{if(4!==l.rank)throw new Error("Gradient for tile operation is not implemented for rank-"+l.rank+" tensors yet.");for(d=0;d<n[0];++d)for(p=0;p<n[1];++p)for(M=0;M<n[2];++M)for(var x=0;x<n[3];++x)u=u.add(s.slice([d*l.shape[0],p*l.shape[1],M*l.shape[2],x*l.shape[3]],[l.shape[0],l.shape[1],l.shape[2],l.shape[3]]))}return u}}},"Tile",{reps:n},[e])}}),Wg=kt({truncatedNormal_:function(t,n,e,r,i){if(void 0===n&&(n=0),void 0===e&&(e=1),null!=r&&"bool"===r)throw new Error("Unsupported data type "+r);for(var s=new Nt(n,e,r,!0,i),c=zn(t,r),l=0;l<c.values.length;l++)c.values[l]=s.nextValue();return c.toTensor()}}),ts=kt({unstack_:function(t,n){void 0===n&&(n=0),n=n||0;var e=Qe(t,"x","unstack");return at(n>=-e.shape.length&&n<e.shape.length,function(){return"Axis = "+n+" is not in [-"+e.shape.length+", "+e.shape.length+")"}),n<0&&(n+=e.shape.length),Ye.runKernelFunc(function(i){return i.unstack(e,n)},{x:e},function(i){return{x:function(){return Lc(i,n)}}},"Unpack",{axis:n})}});function R3(t,n,e,r){void 0===r&&(r=!0);var i=[];if(r)(i=i.concat(n.slice(0))).push(t[0]/e),i=i.concat(t.slice(1));else{i=i.concat(t[0]);for(var s=n.length,c=0;c<s;++c)i=i.concat([t[c+1]/n[c],n[c]]);i=i.concat(t.slice(s+1))}return i}function Y3(t,n,e){void 0===e&&(e=!0);var r=[];if(e){r.push(n);for(var i=n+1;i<t;++i)i<=2*n?(r.push(i),r.push(i-(n+1))):r.push(i)}else{var s=[],c=[];for(i=1;i<t;++i)i>=2*n+1||i%2==1?c.push(i):s.push(i);r.push.apply(r,s),r.push(0),r.push.apply(r,c)}return r}function w0(t,n,e,r){void 0===r&&(r=!0);var i=[];i.push(r?t[0]/e:t[0]*e);for(var s=1;s<t.length;++s)i.push(s<=n.length?r?n[s-1]*t[s]:t[s]/n[s-1]:t[s]);return i}function tm(t,n){for(var e=[0],r=0;r<n;++r)e.push(t[r][0]);return e}function K4(t,n,e){for(var r=t.slice(0,1),i=0;i<e;++i)r.push(t[i+1]-n[i][0]-n[i][1]);return r}function X4(t,n){if(t.rank<1)throw new Error("tf.gatherND() expects the input to be rank 1 or higher, but the rank was "+t.rank+".");if(n.rank<1)throw new Error("tf.gatherND() expects the indices to be rank 1 or higher, but the rank was "+n.rank+".");if("int32"!==n.dtype)throw new Error("tf.gatherND() expects the indices to be int32 type, but the dtype was "+n.dtype+".");if(n.shape[n.rank-1]>t.rank)throw new Error("index innermost dimension length must be <= tensor rank; saw: "+n.shape[n.rank-1]+" vs. "+t.rank);if(0===t.size)throw new Error("Requested more than 0 entries, but input is empty. Input shape: "+t.shape+".");for(var e=n.shape,r=e[e.length-1],i=1,s=0;s<e.length-1;++s)i*=e[s];var c=t.shape,l=e.slice();l.pop();var u=1;for(s=r;s<t.rank;++s)u*=c[s],l.push(c[s]);var d=Qi(t.shape).map(function(p){return p/u}).concat([1]).slice(0,r);return[l,i,u,d]}function F3(t){return t<=30?t:Mi(t,Math.floor(Math.sqrt(t)))}function nm(t,n,e){var r=n.rank>1?n.shape[n.rank-1]:1,i=n.rank>1?n.rank-1:1,s="Must have updates.shape = indices.shape[:batchDim] + shape[sliceDim:], got updates.shape: "+e.shape+", indices.shape: "+n.shape+", shape: "+t+", sliceDim: "+r+", and batchDim: "+i+".";if(e.rank<i)throw new Error(s+" update.rank < "+i+". ");if(t.length<r+(e.rank-i))throw new Error(s+" Output shape length < "+(r+(e.rank-i)));if(e.rank!==i+t.length-r)throw new Error(s+" update.rank != "+(i+t.length-r));for(var c=0;c<i;++c)if(e.shape[c]!==n.shape[c])throw new Error(s+" updates.shape["+c+"] ("+e.shape[c]+") != indices.shape["+c+"] ("+n.shape[c]+").");for(c=0;c<e.rank-i;++c)if(e.shape[c+i]!==t[c+r])throw new Error(s+" updates.shape["+(c+i)+"] ("+e.shape[c+i]+") != shape["+(c+i)+"] ("+t[c+i]+")")}function rm(t,n,e){if(n.rank<1)throw new Error("tf.scatterND() expects the indices to be rank 1 or higher, but the rank was "+n.rank+".");if(t.rank<1)throw new Error("tf.scatterND() expects the updates to be rank 1 or higher, but the rank was "+t.rank+".");if("int32"!==n.dtype)throw new Error("The dtype of 'indices' should be int32, but got dtype: "+n.dtype);if(e.length<1)throw new Error("Output rank must be greater or equal to 1, but got shape: "+e);if(0===e.length){if(0===n.size)throw new Error("Indices specified for empty output. indices shape: "+n.shape);if(0===t.size)throw new Error("Updates specified for empty output. updates shape: "+t.shape)}nm(e,n,t)}function Sl(t,n,e){for(var r=n.shape.length,i=r>1?n.shape[r-1]:1,s=e.length,c=1,l=i;l<s;++l)c*=e[l];var u=i<1?1:i;return{sliceRank:i,numUpdates:rr(n.shape)/u,sliceSize:c,strides:Qi(e.slice(0,i)).concat([1]),outputSize:rr(e)}}function om(t,n,e){at(t.rank===n.length,function(){return"Error in slice"+t.rank+"D: Length of begin "+n+" must match the rank of the array ("+t.rank+")."}),at(t.rank===e.length,function(){return"Error in slice"+t.rank+"D: Length of size "+e+" must match the rank of the array ("+t.rank+")."});for(var r=function(s){at(n[s]+e[s]<=t.shape[s],function(){return"Error in slice"+t.rank+"D: begin["+s+"] + size["+s+"] ("+(n[s]+e[s])+") would overflow input.shape["+s+"] ("+t.shape[s]+")"})},i=0;i<t.rank;++i)r(i)}function J4(t){for(var n=[],e=0;t>0;)1&t&&n.push(e),t/=2,e++;return n}function H3(t,n,e){for(var r=[],i=0;i<t.length;i++)r[i]=Math.ceil((n[i]-t[i])/e[i]);return r}function Q4(t,n,e,r,i){var s=n[i];(t&1<<i||null==s)&&(s=(e[i]||1)>0?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER);var l=r[i];return s<0&&(s+=l),oo(0,s,l-1)}function im(t,n,e,r,i){var s=n[i],c=e[i]||1;(t&1<<i||null==s)&&(s=c>0?Number.MAX_SAFE_INTEGER:Number.MIN_SAFE_INTEGER);var l=r[i];return s<0&&(s+=l),c>0?oo(0,s,l):oo(-1,s,l-1)}function q4(t,n,e){for(var r=e.length,i=0;i<e.length;i++)if(e[i]>1){r=i;break}for(i=r+1;i<e.length;i++)if(n[i]>0||e[i]!==t[i])return!1;return!0}function ed(t,n){for(var e=t.length>0?t[t.length-1]:1,r=0;r<t.length-1;r++)e+=t[r]*n[r];return e}function B3(t){return Ye.customGrad(t)}Object.freeze({prepareAndValidate:X4}),Object.freeze({validateUpdateShape:nm,validateInput:rm,calculateShapes:Sl}),Object.freeze({assertParamsValid:om,maskToAxes:J4,computeOutShape:H3,startForAxis:Q4,stopForAxis:im,isSliceContinous:q4,computeFlatOffset:ed});var K1=kt({softmax_:function(t,n){void 0===n&&(n=-1);var e=Qe(t,"logits","softmax","float32");if(-1===n&&(n=e.rank-1),n!==e.rank-1)throw Error("Softmax along a non-last dimension is not yet supported. Logits was rank "+e.rank+" and dim was "+n);return Ye.runKernelFunc(function(r,i){var s=r.softmax(e,n);return i([s]),s},{logits:e},function(r,i){var s=i[0],c=r.mul(s);return{logits:function(){return c.sub(c.sum([n],!0).mul(s))}}},"Softmax",{dim:n},[],[!0])}}),Zg=kt({logSoftmax_:function(t,n){void 0===n&&(n=-1);var e=Qe(t,"logits","logSoftmax");if(-1===n&&(n=e.rank-1),n!==e.rank-1)throw Error("Log Softmax along a non-last dimension is not yet supported. Logits was rank "+e.rank+" and axis was "+n);return B3(function(r,i){var s=r.max(n,!0),c=r.sub(s),l=c.toFloat().sub(c.exp().sum(n,!0).log());return i([l]),{value:l,gradFunc:function(u,d){var p=d[0].exp();return u.sub(u.sum(n,!0).mul(p))}}})(e)}}),am=function(){function t(n,e){this.backend=n,this.dataMover=e,this.data=new WeakMap,this.dataIdsCount=0}return t.prototype.get=function(n){return this.data.has(n)||this.dataMover.moveData(this.backend,n),this.data.get(n)},t.prototype.set=function(n,e){this.dataIdsCount++,this.data.set(n,e)},t.prototype.has=function(n){return this.data.has(n)},t.prototype.delete=function(n){return this.dataIdsCount--,this.data.delete(n)},t.prototype.numDataIds=function(){return this.dataIdsCount},t}(),sm=function(){function t(){}return t.prototype.time=function(n){return rn("time")},t.prototype.read=function(n){return rn("read")},t.prototype.readSync=function(n){return rn("readSync")},t.prototype.numDataIds=function(){return rn("numDataIds")},t.prototype.disposeData=function(n){return rn("disposeData")},t.prototype.write=function(n,e,r){return rn("write")},t.prototype.move=function(n,e,r,i){return rn("move")},t.prototype.memory=function(){return rn("memory")},t.prototype.floatPrecision=function(){return rn("floatPrecision")},t.prototype.epsilon=function(){return 32===this.floatPrecision()?1e-7:1e-4},t.prototype.batchMatMul=function(n,e,r,i){return rn("batchMatMul")},t.prototype.fusedBatchMatMul=function(n){return rn("fusedBatchMatMul")},t.prototype.slice=function(n,e,r){return rn("slice")},t.prototype.stridedSlice=function(n,e,r,i){return rn("stridedSlice")},t.prototype.unstack=function(n,e){return rn("unstack")},t.prototype.reverse=function(n,e){return rn("reverse")},t.prototype.concat=function(n,e){return rn("concat")},t.prototype.neg=function(n){return rn("neg")},t.prototype.add=function(n,e){return rn("add")},t.prototype.addN=function(n){return rn("addN")},t.prototype.subtract=function(n,e){return rn("subtract")},t.prototype.multiply=function(n,e){return rn("multiply")},t.prototype.realDivide=function(n,e){return rn("realDivide")},t.prototype.floorDiv=function(n,e){return rn("floorDiv")},t.prototype.sum=function(n,e){return rn("sum")},t.prototype.prod=function(n,e){return rn("prod")},t.prototype.unsortedSegmentSum=function(n,e,r){return rn("unsortedSegmentSum")},t.prototype.argMin=function(n,e){return rn("argMin")},t.prototype.argMax=function(n,e){return rn("argMax")},t.prototype.equal=function(n,e){return rn("equal")},t.prototype.notEqual=function(n,e){return rn("notEqual")},t.prototype.less=function(n,e){return rn("less")},t.prototype.lessEqual=function(n,e){return rn("lessEqual")},t.prototype.greater=function(n,e){return rn("greater")},t.prototype.greaterEqual=function(n,e){return rn("greaterEqual")},t.prototype.logicalNot=function(n){return rn("logicalNot")},t.prototype.logicalAnd=function(n,e){return rn("logicalAnd")},t.prototype.logicalOr=function(n,e){return rn("logicalOr")},t.prototype.where=function(n){return rn("where")},t.prototype.select=function(n,e,r){return rn("select")},t.prototype.topk=function(n,e,r){return rn("topk")},t.prototype.min=function(n,e){return rn("min")},t.prototype.minimum=function(n,e){return rn("minimum")},t.prototype.mod=function(n,e){return rn("mod")},t.prototype.max=function(n,e){return rn("max")},t.prototype.maximum=function(n,e){return rn("maximum")},t.prototype.all=function(n,e){return rn("all")},t.prototype.any=function(n,e){return rn("any")},t.prototype.squaredDifference=function(n,e){return rn("squaredDifference")},t.prototype.ceil=function(n){return rn("ceil")},t.prototype.floor=function(n){return rn("floor")},t.prototype.round=function(n){return rn("round")},t.prototype.sign=function(n){return rn("sign")},t.prototype.isNaN=function(n){return rn("isNaN")},t.prototype.isInf=function(n){return rn("isInf")},t.prototype.isFinite=function(n){return rn("isFinite")},t.prototype.pow=function(n,e){return rn("pow")},t.prototype.exp=function(n){return rn("exp")},t.prototype.expm1=function(n){return rn("expm1")},t.prototype.softmax=function(n,e){return rn("softmax")},t.prototype.log=function(n){return rn("log")},t.prototype.log1p=function(n){return rn("log1p")},t.prototype.sqrt=function(n){return rn("sqrt")},t.prototype.rsqrt=function(n){return rn("rsqrt")},t.prototype.square=function(n){return rn("square")},t.prototype.reciprocal=function(n){return rn("reciprocal")},t.prototype.relu=function(n){return rn("relu")},t.prototype.relu6=function(n){return rn("relu6")},t.prototype.prelu=function(n,e){return rn("prelu")},t.prototype.elu=function(n){return rn("elu")},t.prototype.eluDer=function(n,e){return rn("eluDer")},t.prototype.selu=function(n){return rn("selu")},t.prototype.int=function(n){return rn("int")},t.prototype.clip=function(n,e,r){return rn("clip")},t.prototype.abs=function(n){return rn("abs")},t.prototype.complexAbs=function(n){return rn("complexAbs")},t.prototype.sigmoid=function(n){return rn("sigmoid")},t.prototype.softplus=function(n){return rn("softplus")},t.prototype.sin=function(n){return rn("sin")},t.prototype.cos=function(n){return rn("cos")},t.prototype.tan=function(n){return rn("tan")},t.prototype.asin=function(n){return rn("asin")},t.prototype.acos=function(n){return rn("acos")},t.prototype.atan=function(n){return rn("atan")},t.prototype.atan2=function(n,e){return rn("atan2")},t.prototype.sinh=function(n){return rn("sinh")},t.prototype.cosh=function(n){return rn("cosh")},t.prototype.tanh=function(n){return rn("tanh")},t.prototype.asinh=function(n){return rn("asinh")},t.prototype.acosh=function(n){return rn("acosh")},t.prototype.atanh=function(n){return rn("atanh")},t.prototype.erf=function(n){return rn("erf")},t.prototype.step=function(n,e){return rn("step")},t.prototype.fusedConv2d=function(n){return rn("fusedConv2d")},t.prototype.conv2d=function(n,e,r){return rn("conv2d")},t.prototype.conv2dDerInput=function(n,e,r){return rn("conv2dDerInput")},t.prototype.conv2dDerFilter=function(n,e,r){return rn("conv2dDerFilter")},t.prototype.fusedDepthwiseConv2D=function(n){return rn("fusedDepthwiseConv2D")},t.prototype.depthwiseConv2D=function(n,e,r){return rn("depthwiseConv2D")},t.prototype.depthwiseConv2DDerInput=function(n,e,r){return rn("depthwiseConv2DDerInput")},t.prototype.depthwiseConv2DDerFilter=function(n,e,r){return rn("depthwiseConv2DDerFilter")},t.prototype.conv3d=function(n,e,r){return rn("conv3d")},t.prototype.conv3dDerInput=function(n,e,r){return rn("conv3dDerInput")},t.prototype.conv3dDerFilter=function(n,e,r){return rn("conv3dDerFilter")},t.prototype.maxPool=function(n,e){return rn("maxPool")},t.prototype.maxPoolBackprop=function(n,e,r,i){return rn("maxPoolBackprop")},t.prototype.avgPool=function(n,e){return rn("avgPool")},t.prototype.avgPoolBackprop=function(n,e,r){return rn("avgPoolBackprop")},t.prototype.avgPool3d=function(n,e){return rn("avgPool3d")},t.prototype.avgPool3dBackprop=function(n,e,r){return rn("avgPool3dBackprop")},t.prototype.maxPool3d=function(n,e){return rn("maxPool3d")},t.prototype.maxPool3dBackprop=function(n,e,r,i){return rn("maxPool3dBackprop")},t.prototype.reshape=function(n,e){return rn("reshape")},t.prototype.cast=function(n,e){return rn("cast")},t.prototype.tile=function(n,e){return rn("tile")},t.prototype.pad=function(n,e,r){return rn("pad")},t.prototype.transpose=function(n,e){return rn("transpose")},t.prototype.gather=function(n,e,r){return rn("gather")},t.prototype.gatherND=function(n,e){return rn("gatherND")},t.prototype.scatterND=function(n,e,r){return rn("scatterND")},t.prototype.batchToSpaceND=function(n,e,r){return rn("batchToSpaceND")},t.prototype.spaceToBatchND=function(n,e,r){return rn("spaceToBatchND")},t.prototype.resizeBilinear=function(n,e,r,i){return rn("resizeBilinear")},t.prototype.resizeBilinearBackprop=function(n,e,r){return rn("resizeBilinearBackprop")},t.prototype.resizeNearestNeighbor=function(n,e,r,i){return rn("resizeNearestNeighbor")},t.prototype.resizeNearestNeighborBackprop=function(n,e,r){return rn("resizeNearestNeighborBackprop")},t.prototype.batchNormalization=function(n,e,r,i,s,c){return rn("batchNormalization")},t.prototype.localResponseNormalization4D=function(n,e,r,i,s){return rn("localResponseNormalization4D")},t.prototype.LRNGrad=function(n,e,r,i,s,c,l){return rn("LRNGrad")},t.prototype.multinomial=function(n,e,r,i){return rn("multinomial")},t.prototype.oneHot=function(n,e,r,i){return rn("oneHot")},t.prototype.cumsum=function(n,e,r,i){return rn("cumsum")},t.prototype.nonMaxSuppression=function(n,e,r,i,s){return rn("nonMaxSuppression")},t.prototype.fft=function(n){return rn("fft")},t.prototype.ifft=function(n){return rn("ifft")},t.prototype.complex=function(n,e){return rn("complex")},t.prototype.real=function(n){return rn("real")},t.prototype.imag=function(n){return rn("imag")},t.prototype.cropAndResize=function(n,e,r,i,s,c){return rn("cropAndResize")},t.prototype.depthToSpace=function(n,e,r){return rn("depthToSpace")},t.prototype.split=function(n,e,r){return rn("split")},t.prototype.sparseToDense=function(n,e,r,i){return rn("sparseToDense")},t.prototype.diag=function(n){return rn("diag")},t.prototype.fill=function(n,e,r){return rn("fill")},t.prototype.onesLike=function(n){return rn("onesLike")},t.prototype.zerosLike=function(n){return rn("zerosLike")},t.prototype.linspace=function(n,e,r){return rn("linspace")},t.prototype.dispose=function(){return rn("dispose")},t}();function rn(t){throw new Error("'"+t+"' not yet implemented or not found in the registry. Did you forget to import the kernel?")}function X1(t,n){for(var e=t.length,r=[],i=0;i<e;i++){var s=e-1-i;(n[n.length-1-i]||1)>1&&1===(t[s]||1)&&r.unshift(s)}return r}function Aa(t,n){for(var e=[],r=0;r<n.length;r++){var i=t[t.length-r-1],s=n.length-r-1;(null==i||1===i&&n[s]>1)&&e.unshift(s)}return e}function zo(t,n){for(var e=[],r=Math.max(t.length,n.length),i=0;i<r;i++){var s=t[t.length-i-1];null==s&&(s=1);var c=n[n.length-i-1];if(null==c&&(c=1),1===s)e.unshift(c);else if(1===c)e.unshift(s);else{if(s!==c)throw Error("Operands could not be broadcast together with shapes "+t+" and "+n+".");e.unshift(s)}}return e}function G2(t,n,e,r,i,s,c){void 0===c&&(c="channelsLast");var l,u=W3(n),d=u[0],p=u[1];if("channelsLast"===c)l=[d,p,t[3],t[3]];else{if("channelsFirst"!==c)throw new Error("Unknown dataFormat "+c);l=[d,p,t[1],t[1]]}return _2(t,l,e,r,i,s,!1,c)}function E0(t,n,e,r,i,s,c){void 0===c&&(c="NDHWC");var l,u,d=U3(n),p=d[0],M=d[1],x=d[2];if("NDHWC"===c)u="channelsLast",l=[p,M,x,t[4],t[4]];else{if("NCDHW"!==c)throw new Error("Unknown dataFormat "+c);u="channelsFirst",l=[p,M,x,t[1],t[1]]}return Tl(t,l,e,r,i,!1,u,s)}function _2(t,n,e,r,i,s,c,l){void 0===c&&(c=!1),void 0===l&&(l="channelsLast");var u=[-1,-1,-1,-1],d=u[0],p=u[1],M=u[2],x=u[3];if("channelsLast"===l)d=t[0],p=t[1],M=t[2],x=t[3];else{if("channelsFirst"!==l)throw new Error("Unknown dataFormat "+l);d=t[0],x=t[1],p=t[2],M=t[3]}var R,U=n[0],J=n[1],ne=n[3],ue=W3(e),Ie=ue[0],Ae=ue[1],Oe=W3(r),Fe=Oe[0],et=Oe[1],Ct=wl(U,Fe),yt=wl(J,et),pt=function(pn,_n,Dn,En,bn,Nn,Rn,ur){var Tr,Br,Oo;if("number"==typeof pn){Tr={top:pn,bottom:pn,left:pn,right:pn,type:0===pn?"VALID":"NUMBER"};var Do=function(Qo,zi,fi,wa,ia){null==wa&&(wa=td(Qo,zi,fi));var v1=Qo[1],F1=x0((Qo[0]-zi+2*wa)/fi+1,ia);at(ai(F1),function(){return"The output # of rows ("+F1+") must be an integer. Change the stride and/or zero pad parameters"});var Fc=x0((v1-zi+2*wa)/fi+1,ia);return at(ai(Fc),function(){return"The output # of columns ("+Fc+") must be an integer. Change the stride and/or zero pad parameters"}),[F1,Fc]}([_n,Dn],Nn,En,pn,ur);Br=Do[0],Oo=Do[1]}else if("same"===pn){Br=Math.ceil(_n/En),Oo=Math.ceil(Dn/bn);var Wo=Math.max(0,(Br-1)*En+Nn-_n),ri=Math.max(0,(Oo-1)*bn+Rn-Dn),Uo=Math.floor(Wo/2),oi=Wo-Uo,Ya=Math.floor(ri/2);Tr={top:Uo,bottom:oi,left:Ya,right:ri-Ya,type:"SAME"}}else{if("valid"!==pn)throw Error("Unknown padding parameter: "+pn);Tr={top:0,bottom:0,left:0,right:0,type:"VALID"},Br=Math.ceil((_n-Nn+1)/En),Oo=Math.ceil((Dn-Rn+1)/bn)}return{padInfo:Tr,outHeight:Br,outWidth:Oo}}(i,p,M,Ie,Ae,Ct,yt,s),Bt=pt.outHeight,Ft=pt.outWidth,yn=c?ne*x:ne;return"channelsFirst"===l?R=[d,yn,Bt,Ft]:"channelsLast"===l&&(R=[d,Bt,Ft,yn]),{batchSize:d,dataFormat:l,inHeight:p,inWidth:M,inChannels:x,outHeight:Bt,outWidth:Ft,outChannels:yn,padInfo:pt.padInfo,strideHeight:Ie,strideWidth:Ae,filterHeight:U,filterWidth:J,effectiveFilterHeight:Ct,effectiveFilterWidth:yt,dilationHeight:Fe,dilationWidth:et,inShape:t,outShape:R,filterShape:n}}function Tl(t,n,e,r,i,s,c,l){void 0===s&&(s=!1),void 0===c&&(c="channelsLast");var u=[-1,-1,-1,-1,-1],d=u[0],p=u[1],M=u[2],x=u[3],R=u[4];if("channelsLast"===c)d=t[0],p=t[1],M=t[2],x=t[3],R=t[4];else{if("channelsFirst"!==c)throw new Error("Unknown dataFormat "+c);d=t[0],R=t[1],p=t[2],M=t[3],x=t[4]}var U,J=n[0],ne=n[1],ue=n[2],Ie=n[4],Ae=U3(e),Oe=Ae[0],Fe=Ae[1],et=Ae[2],Ct=U3(r),yt=Ct[0],pt=Ct[1],gt=Ct[2],Bt=wl(J,yt),Ft=wl(ne,pt),yn=wl(ue,gt),pn=function(Rn,ur,Tr,Br,Oo,Do,Wo,ri,Uo,oi,Ya){var Qo,zi,fi,wa;if("number"==typeof Rn){Qo={top:Rn,bottom:Rn,left:Rn,right:Rn,front:Rn,back:Rn,type:0===Rn?"VALID":"NUMBER"};var ia=function(M0,B1,Uh,C0,j1,Vh){null==j1&&(j1=td(M0,B1,C0));var ML=M0[1],CL=M0[2],H4=x0((M0[0]-B1+2*j1)/C0+1,Vh);at(ai(H4),function(){return"The output # of depths ("+H4+") must be an integer. Change the stride and/or zero pad parameters"});var Gh=x0((ML-B1+2*j1)/C0+1,Vh);at(ai(Gh),function(){return"The output # of rows ("+Gh+") must be an integer. Change the stride and/or zero pad parameters"});var $h=x0((CL-B1+2*j1)/C0+1,Vh);return at(ai($h),function(){return"The output # of columns ("+$h+") must be an integer. Change the stride and/or zero pad parameters"}),[H4,Gh,$h,1]}([ur,Tr,Br,1],ri,0,Oo,Rn,Ya);zi=ia[0],fi=ia[1],wa=ia[2]}else if("same"===Rn){var pa=((zi=Math.ceil(ur/Oo))-1)*Oo+ri-ur,v1=((fi=Math.ceil(Tr/Do))-1)*Do+Uo-Tr,F1=((wa=Math.ceil(Br/Wo))-1)*Wo+oi-Br,Fc=Math.floor(pa/2),y0=pa-Fc,H1=Math.floor(v1/2),F2=v1-H1,d2=Math.floor(F1/2);Qo={top:H1,bottom:F2,left:d2,right:F1-d2,front:Fc,back:y0,type:"SAME"}}else{if("valid"!==Rn)throw Error("Unknown padding parameter: "+Rn);Qo={top:0,bottom:0,left:0,right:0,front:0,back:0,type:"VALID"},zi=Math.ceil((ur-ri+1)/Oo),fi=Math.ceil((Tr-Uo+1)/Do),wa=Math.ceil((Br-oi+1)/Wo)}return{padInfo:Qo,outDepth:zi,outHeight:fi,outWidth:wa}}(i,p,M,x,Oe,Fe,et,Bt,Ft,yn,l),Dn=pn.outDepth,En=pn.outHeight,bn=pn.outWidth,Nn=s?Ie*R:Ie;return"channelsFirst"===c?U=[d,Nn,Dn,En,bn]:"channelsLast"===c&&(U=[d,Dn,En,bn,Nn]),{batchSize:d,dataFormat:c,inDepth:p,inHeight:M,inWidth:x,inChannels:R,outDepth:Dn,outHeight:En,outWidth:bn,outChannels:Nn,padInfo:pn.padInfo,strideDepth:Oe,strideHeight:Fe,strideWidth:et,filterDepth:J,filterHeight:ne,filterWidth:ue,effectiveFilterDepth:Bt,effectiveFilterHeight:Ft,effectiveFilterWidth:yn,dilationDepth:yt,dilationHeight:pt,dilationWidth:gt,inShape:t,outShape:U,filterShape:n}}function td(t,n,e,r){void 0===r&&(r=1);var i=wl(n,r);return Math.floor((t[0]*(e-1)-e+i)/2)}function W3(t){return"number"==typeof t?[t,t,t]:2===t.length?[t[0],t[1],1]:t}function U3(t){return"number"==typeof t?[t,t,t]:t}function wl(t,n){return n<=1?t:t+(t-1)*(n-1)}function x0(t,n){if(!n)return t;switch(n){case"round":return Math.round(t);case"ceil":return Math.ceil(t);case"floor":return Math.floor(t);default:throw new Error("Unknown roundingMode "+n)}}function g2(t){var n=W3(t);return 1===n[0]&&1===n[1]&&1===n[2]}function qs(t,n){return g2(t)||g2(n)}function V3(t){if("NHWC"===t)return"channelsLast";if("NCHW"===t)return"channelsFirst";throw new Error("Unknown dataFormat "+t)}function nd(t,n,e){if("complex64"===n){if("complex64"===t.dtype)return t.clone();var r=$n(t.shape),i=t.toFloat(),s=e.complex(i,r);return r.dispose(),i.dispose(),s}if(!Zs(t.dtype,n))return Ye.makeTensorFromDataId(t.dataId,t.shape,n);if("complex64"===t.dtype){var c=e.real(t);return s=c.cast(n),c.dispose(),s}if("int32"===n)return e.int(t);if("bool"===n){var l=wn(0,t.dtype);return s=e.notEqual(t,l),l.dispose(),s}throw new Error("Error in Cast: failed to cast "+t.dtype+" to "+n)}function k0(t,n){return Ye.makeTensorFromDataId(t.dataId,n,t.dtype)}function rd(t,n,e){var r=(n-t)/(e-1),i=Js(e,"float32");i[0]=t;for(var s=1;s<i.length;s++)i[s]=i[s-1]+r;return C(i,"float32")}function od(t,n){if(t.length!==n.length)throw new Error("Cannot merge real and imag arrays of different lengths. real:"+t.length+", imag: "+n.length+".");for(var e=new Float32Array(2*t.length),r=0;r<e.length;r+=2)e[r]=t[r/2],e[r+1]=n[r/2];return e}function id(t,n){return{real:t[2*n],imag:t[2*n+1]}}function Qg(t,n,e,r){t[2*r]=n,t[2*r+1]=e}function qg(t,n,e){var r=(e?2:-2)*Math.PI*(t/n);return{real:Math.cos(r),imag:Math.sin(r)}}function e9(t,n,e){var r=function(u,d,p){for(var M=0,x=u.length,R=0,U=!1;M<x;){var J=p(d,u[R=M+(x-M>>>1)]);J>0?M=R+1:(x=R,U=!J)}return U?M:-M-1}(t,n,e||t9);t.splice(r<0?-(r+1):r,0,n)}function t9(t,n){return t>n?1:t<n?-1:0}function ad(t,n,e,r,i){return cm(t,n,e,r,i,0).selectedIndices}function G3(t,n,e,r,i,s){var c=cm(t,n,e,r,i,s,!0);return c.numValidOutputs.dispose(),{selectedIndices:c.selectedIndices,selectedScores:c.selectedScores}}function cm(t,n,e,r,i,s,c,l){void 0===c&&(c=!1),void 0===l&&(l=!1);for(var u=Array.from(n).map(function(Oe,Fe){return{score:Oe,boxIndex:Fe,suppressBeginIndex:0}}).filter(function(Oe){return Oe.score>i}).sort(lm),d=s>0?-.5/s:0,p=[],M=[];p.length<e&&u.length>0;){var x=u.pop(),R=x.score,U=x.boxIndex,J=x.suppressBeginIndex;if(R<i)break;for(var ne=!1,ue=p.length-1;ue>=J;--ue){var Ie=n9(t,U,p[ue]);if(Ie>=r){ne=!0;break}if(x.score=x.score*r9(r,d,Ie),x.score<=i)break}x.suppressBeginIndex=p.length,ne||(x.score===R?(p.push(U),M.push(x.score)):x.score>i&&e9(u,x,lm))}var Ae=p.length;return l&&(p.fill(0,Ae),M.fill(0,Ae)),{selectedIndices:C(p,"int32"),selectedScores:C(M,"float32"),numValidOutputs:wn(Ae,"int32")}}function n9(t,n,e){var r=t.subarray(4*n,4*n+4),i=t.subarray(4*e,4*e+4),s=Math.min(r[0],r[2]),c=Math.min(r[1],r[3]),l=Math.max(r[0],r[2]),u=Math.max(r[1],r[3]),d=Math.min(i[0],i[2]),p=Math.min(i[1],i[3]),M=Math.max(i[0],i[2]),x=Math.max(i[1],i[3]),R=(l-s)*(u-c),U=(M-d)*(x-p);if(R<=0||U<=0)return 0;var J=Math.max(s,d),ne=Math.max(c,p),ue=Math.min(l,M),Ie=Math.min(u,x),Ae=Math.max(ue-J,0)*Math.max(Ie-ne,0);return Ae/(R+U-Ae)}function r9(t,n,e){var r=Math.exp(n*e*e);return e<=t?r:0}function lm(t,n){return t.score-n.score||t.score===n.score&&n.boxIndex-t.boxIndex}function um(t,n,e){var r=new Array(t.rank).fill(0),i=t.shape.slice();return n.map(function(s){i[e]=s;var c=t.slice(r,i);return r[e]+=s,c})}function dm(t,n){for(var e=new Array(t.rank),r=0;r<e.length;r++)e[r]=t.shape[r]*n[r];var i=zn(e,t.dtype);for(r=0;r<i.values.length;++r){for(var s=i.indexToLoc(r),c=new Array(t.rank),l=0;l<c.length;l++)c[l]=s[l]%t.shape[l];var u=t.locToIndex(c);i.values[r]=t.values[u]}return i.toTensor()}function fm(t,n,e,r,i){for(var s=n[n.length-1],c=[t.length/s,s],l=c[0],u=c[1],d=Ba(e,l*r),p=Ba("int32",l*r),M=0;M<l;M++){for(var x=M*u,R=t.subarray(x,x+u),U=[],J=0;J<R.length;J++)U.push({value:R[J],index:J});U.sort(function(Oe,Fe){return Fe.value-Oe.value});var ne=M*r,ue=d.subarray(ne,ne+r),Ie=p.subarray(ne,ne+r);for(J=0;J<r;J++)ue[J]=U[J].value,Ie[J]=U[J].index}var Ae=n.slice();return Ae[Ae.length-1]=r,[xi(d,Ae,e),xi(p,Ae,"int32")]}function sd(t,n){for(var e=[],r=0;r<n.length;r++)n[r]&&e.push(r);var i=zn(t,"int32"),s=zn([e.length,t.length],"int32");for(r=0;r<e.length;r++){var c=i.indexToLoc(e[r]);s.values.set(c,r*t.length)}return s.toTensor()}Object.freeze({castTensor:nd,reshapeTensor:k0,linspaceImpl:rd,upcastType:Oi,axesAreInnerMostDims:W2,combineLocations:Rs,computeOutAndReduceShapes:ta,expandShapeToKeepDim:Va,assertAxesAreInnerMostDims:ys,getAxesPermutation:Qs,getUndoAxesPermutation:Ys,getInnerMostAxes:La,getBroadcastDims:X1,getReductionAxes:Aa,assertAndGetBroadcastShape:zo,assertParamsConsistent:bl,computeOutShape:Gc,computePool2DInfo:G2,computePool3DInfo:E0,computeConv2DInfo:_2,computeConv3DInfo:Tl,computeDefaultPad:td,tupleValuesAreOne:g2,eitherStridesOrDilationsAreOne:qs,convertConv2DDataFormat:V3,PARALLELIZE_THRESHOLD:30,computeOptimalWindowSize:F3});var hm=function(t,n){this.outputShape=[],this.outputShape=t,this.variableNames=n.map(function(i,s){return"T"+s});var e=[];this.variableNames.forEach(function(i){e.push("float v"+i+" = get"+i+"AtOutCoords();")});var r=this.variableNames.map(function(i){return"v"+i}).join(" + ");this.userCode="\n void main() {\n "+e.join("\n ")+"\n\n float result = "+r+";\n setOutput(result);\n }\n "},o9=function(t,n){this.outputShape=[],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=t,this.variableNames=n.map(function(i,s){return"T"+s});var e=[];this.variableNames.forEach(function(i){e.push("vec4 v"+i+" = get"+i+"AtOutCoords();")});var r=this.variableNames.map(function(i){return"v"+i}).join(" + ");this.userCode="\n void main() {\n "+e.join("\n ")+"\n\n vec4 result = "+r+";\n setOutput(result);\n }\n "},mm=function(t,n,e){this.variableNames=["A"];var r=t.windowSize,i=t.batchSize,c=Math.ceil(t.inSize/r);e||this.variableNames.push("bestIndicesA"),this.outputShape=[i,c],this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = outIdx * "+r+";\n\n int bestIndex = inOffset;\n float bestValue = getA(batch, bestIndex);\n\n for (int i = 0; i < "+r+"; i++) {\n int inIdx = "+(e?"inOffset + i;":"round(getBestIndicesA(batch, inOffset + i));")+";\n float candidate = getA(batch, inIdx);\n if (candidate "+("max"===n?">":"<")+" bestValue) {\n bestValue = candidate;\n bestIndex = inIdx;\n }\n }\n setOutput(float(bestIndex));\n }\n "};function pm(t,n){return["x","y","z","w","u","v"].slice(0,n).map(function(e){return t+"."+e})}function uc(t,n){return 1===n?[t]:pm(t,n)}function Bs(){var t,n,e,r,i,s,c,l,u,d;return 2===X().getNumber("WEBGL_VERSION")?(t="#version 300 es",n="in",e="out",r="in",i="texture",s="outputColor",c="out vec4 outputColor;",l="\n bool isnan_custom(float val) {\n return (val > 0.0 || val < 0.0) ? false : val != 0.0;\n }\n\n bvec4 isnan_custom(vec4 val) {\n return bvec4(isnan_custom(val.x),\n isnan_custom(val.y), isnan_custom(val.z), isnan_custom(val.w));\n }\n\n #define isnan(value) isnan_custom(value)\n ",u="",d="\n #define round(value) newRound(value)\n int newRound(float value) {\n return int(floor(value + 0.5));\n }\n\n ivec4 newRound(vec4 value) {\n return ivec4(floor(value + vec4(0.5)));\n }\n "):(t="",n="attribute",e="varying",r="varying",i="texture2D",s="gl_FragColor",c="",l="\n #define isnan(value) isnan_custom(value)\n bool isnan_custom(float val) {\n return (val > 0. || val < 1. || val == 0.) ? false : true;\n }\n bvec4 isnan_custom(vec4 val) {\n return bvec4(isnan(val.x), isnan(val.y), isnan(val.z), isnan(val.w));\n }\n ",u="\n uniform float INFINITY;\n\n bool isinf(float val) {\n return abs(val) == INFINITY;\n }\n bvec4 isinf(vec4 val) {\n return equal(abs(val), vec4(INFINITY));\n }\n ",d="\n int round(float value) {\n return int(floor(value + 0.5));\n }\n\n ivec4 round(vec4 value) {\n return ivec4(floor(value + vec4(0.5)));\n }\n "),{version:t,attribute:n,varyingVs:e,varyingFs:r,texture2D:i,output:s,defineOutput:c,defineSpecialNaN:l,defineSpecialInf:u,defineRound:d}}function v2(t,n,e){void 0===e&&(e="index");var r=Qi(n);return r.map(function(i,s){return"int "+t[s]+" = "+e+" / "+i+"; "+(s===r.length-1?"int "+t[s+1]+" = "+e+" - "+t[s]+" * "+i:"index -= "+t[s]+" * "+i)+";"}).join("")}function cd(t){var n=Qi(t).map(function(e){return e.toString()});return"\n int getFlatIndex(ivec3 coords) {\n return coords.x * "+n[0]+" + coords.y * "+n[1]+" + coords.z;\n }\n"}var $3="\n const float FLOAT_MAX = 1.70141184e38;\n const float FLOAT_MIN = 1.17549435e-38;\n\n lowp vec4 encode_float(highp float v) {\n if (isnan(v)) {\n return vec4(255, 255, 255, 255);\n }\n\n highp float av = abs(v);\n\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 127.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 255.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n highp float e = floor(log2(av));\n highp float m = exp2(fract(log2(av))) - 1.0;\n\n c[2] = floor(128.0 * m);\n m -= c[2] / 128.0;\n c[1] = floor(32768.0 * m);\n m -= c[1] / 32768.0;\n c[0] = floor(8388608.0 * m);\n\n highp float ebias = e + 127.0;\n c[3] = floor(ebias / 2.0);\n ebias -= c[3] * 2.0;\n c[2] += floor(ebias) * 128.0;\n\n c[3] += 128.0 * step(0.0, -v);\n\n return c / 255.0;\n }\n";function i9(t,n,e,r){var i=[];t.forEach(function(R){var U=rr(R.shapeInfo.logicalShape);R.shapeInfo.isUniform?i.push("uniform float "+R.name+(U>1?"["+U+"]":"")+";"):(i.push("uniform sampler2D "+R.name+";"),i.push("uniform int offset"+R.name+";"))});var s,c,R,l=i.join("\n"),u=t.map(function(R){return function(U,J,ne){void 0===ne&&(ne=!1);var ue="";return ue+=ne?ld(U):El(U),U.shapeInfo.logicalShape.length<=J.logicalShape.length&&(ue+=ne?function(Oe,Fe){var et,Dn,Ct=Oe.name,yt=Ct.charAt(0).toUpperCase()+Ct.slice(1),pt="get"+yt+"AtOutCoords",gt=Oe.shapeInfo.logicalShape.length,Bt=Fe.logicalShape.length,Ft=X1(Oe.shapeInfo.logicalShape,Fe.logicalShape),yn=Gi(Bt),pn=Bt-gt,_n=["x","y","z","w","u","v"];et=0===gt?"":Bt<2&&Ft.length>=1?"coords = 0;":Ft.map(function(Tr){return"coords."+_n[Tr+pn]+" = 0;"}).join("\n"),Dn=Bt<2&&gt>0?"coords":Oe.shapeInfo.logicalShape.map(function(Tr,Br){return"coords."+_n[Br+pn]}).join(", ");var En="return outputValue;",bn=1===rr(Oe.shapeInfo.logicalShape),Nn=1===rr(Fe.logicalShape);if(1!==gt||bn||Nn){if(bn&&!Nn)En=1===Bt?"\n return vec4(outputValue.x, outputValue.x, 0., 0.);\n ":"\n return vec4(outputValue.x);\n ";else if(Ft.length){var Rn=gt-2,ur=gt-1;Ft.indexOf(Rn)>-1&&Ft.indexOf(ur)>-1?En="return vec4(outputValue.x);":Ft.indexOf(Rn)>-1?En="return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);":Ft.indexOf(ur)>-1&&(En="return vec4(outputValue.xx, outputValue.zz);")}}else En="\n return vec4(outputValue.xy, outputValue.xy);\n ";return"\n vec4 "+pt+"() {\n "+yn+" coords = getOutputCoords();\n "+et+"\n vec4 outputValue = get"+yt+"("+Dn+");\n "+En+"\n }\n "}(U,J):function(Oe,Fe){var et=Oe.name,Ct=et.charAt(0).toUpperCase()+et.slice(1),yt="get"+Ct+"AtOutCoords",Bt=Oe.shapeInfo.logicalShape.length,Ft=Fe.logicalShape.length;if(!Oe.shapeInfo.isUniform&&Bt===Ft&&null==Oe.shapeInfo.flatOffset&&yi(Oe.shapeInfo.texShape,Fe.texShape))return"\n float "+yt+"() {\n return sampleTexture("+et+", resultUV);\n }\n ";var pn=Gi(Ft),_n=X1(Oe.shapeInfo.logicalShape,Fe.logicalShape),Dn=Ft-Bt,En=["x","y","z","w","u","v"];return"\n float "+yt+"() {\n "+pn+" coords = getOutputCoords();\n "+(0===Bt?"":Ft<2&&_n.length>=1?"coords = 0;":_n.map(function(Nn){return"coords."+En[Nn+Dn]+" = 0;"}).join("\n"))+"\n return get"+Ct+"("+(Ft<2&&Bt>0?"coords":Oe.shapeInfo.logicalShape.map(function(Nn,Rn){return"coords."+En[Rn+Dn]}).join(", "))+");\n }\n "}(U,J)),ue}(R,n,r)}).join("\n"),d=n.texShape,p=Bs(),M="\n float sampleTexture(sampler2D textureSampler, vec2 uv) {\n return "+p.texture2D+"(textureSampler, uv).r;\n }\n ",x=(R=p).version+"\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n "+R.varyingFs+" vec2 resultUV;\n "+R.defineOutput+"\n const vec2 halfCR = vec2(0.5, 0.5);\n\n struct ivec5\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n };\n\n struct ivec6\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n int v;\n };\n\n uniform float NAN;\n "+R.defineSpecialNaN+"\n "+R.defineSpecialInf+"\n "+R.defineRound+"\n\n int imod(int x, int y) {\n return x - y * (x / y);\n }\n\n int idiv(int a, int b, float sign) {\n int res = a / b;\n int mod = imod(a, b);\n if (sign < 0. && mod != 0) {\n res -= 1;\n }\n return res;\n }\n\n //Based on the work of Dave Hoskins\n //https://www.shadertoy.com/view/4djSRW\n #define HASHSCALE1 443.8975\n float random(float seed){\n vec2 p = resultUV * seed;\n vec3 p3 = fract(vec3(p.xyx) * HASHSCALE1);\n p3 += dot(p3, p3.yzx + 19.19);\n return fract((p3.x + p3.y) * p3.z);\n }\n\n "+a9+"\n "+s9+"\n "+_m+"\n ";return n.isPacked?(s=function(R,U){switch(R.length){case 0:return"\n int getOutputCoords() {\n return 0;\n }\n ";case 1:return Fe=U,1===(et=[Math.ceil(Fe[0]/2),Math.ceil(Fe[1]/2)])[0]?"\n int getOutputCoords() {\n return 2 * int(resultUV.x * "+et[1]+".0);\n }\n ":1===et[1]?"\n int getOutputCoords() {\n return 2 * int(resultUV.y * "+et[0]+".0);\n }\n ":"\n int getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+et[0]+", "+et[1]+"));\n return 2 * (resTexRC.x * "+et[1]+" + resTexRC.y);\n }\n ";case 2:return function(Oe,Fe){var et=[Math.ceil(Fe[0]/2),Math.ceil(Fe[1]/2)];if(yi(Oe,Fe))return"\n ivec2 getOutputCoords() {\n return 2 * ivec2(resultUV.yx * vec2("+et[0]+", "+et[1]+"));\n }\n ";var Ct=Math.ceil(Oe[1]/2);return"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+et[0]+", "+et[1]+"));\n\n int index = resTexRC.x * "+et[1]+" + resTexRC.y;\n int r = 2 * (index / "+Ct+");\n int c = imod(index, "+Ct+") * 2;\n\n return ivec2(r, c);\n }\n "}(R,U);case 3:return J=R,ne=U,ue=[Math.ceil(ne[0]/2),Math.ceil(ne[1]/2)],Ae=(Ie=Math.ceil(J[2]/2))*Math.ceil(J[1]/2),"\n ivec3 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+ue[0]+", "+ue[1]+"));\n int index = resTexRC.x * "+ue[1]+" + resTexRC.y;\n\n int b = index / "+Ae+";\n index -= b * "+Ae+";\n\n int r = 2 * (index / "+Ie+");\n int c = imod(index, "+Ie+") * 2;\n\n return ivec3(b, r, c);\n }\n ";default:return function(Oe,Fe){for(var et=[Math.ceil(Fe[0]/2),Math.ceil(Fe[1]/2)],Ct=Math.ceil(Oe[Oe.length-1]/2),yt=Ct*Math.ceil(Oe[Oe.length-2]/2),pt=yt,gt="",Bt="b, r, c",Ft=2;Ft<Oe.length-1;Ft++)gt="\n int b"+Ft+" = index / "+(pt*=Oe[Oe.length-Ft-1])+";\n index -= b"+Ft+" * "+pt+";\n "+gt,Bt="b"+Ft+", "+Bt;return"\n ivec"+Oe.length+" getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+et[0]+", "+et[1]+"));\n int index = resTexRC.x * "+et[1]+" + resTexRC.y;\n\n "+gt+"\n\n int b = index / "+yt+";\n index -= b * "+yt+";\n\n int r = 2 * (index / "+Ct+");\n int c = imod(index, "+Ct+") * 2;\n\n return ivec"+Oe.length+"("+Bt+");\n }\n "}(R,U)}var Fe,et,J,ne,ue,Ie,Ae}(n.logicalShape,d),c=function(R){return"\n void setOutput(vec4 val) {\n "+R.output+" = val;\n }\n "}(p)):(s=function(R,U){switch(R.length){case 0:return"\n int getOutputCoords() {\n return 0;\n }\n ";case 1:return 1===(Ie=U)[0]?"\n int getOutputCoords() {\n return int(resultUV.x * "+Ie[1]+".0);\n }\n ":1===Ie[1]?"\n int getOutputCoords() {\n return int(resultUV.y * "+Ie[0]+".0);\n }\n ":"\n int getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+Ie[0]+", "+Ie[1]+"));\n return resTexRC.x * "+Ie[1]+" + resTexRC.y;\n }\n ";case 2:return function(ue,Ie){return yi(ue,Ie)?"\n ivec2 getOutputCoords() {\n return ivec2(resultUV.yx * vec2("+Ie[0]+", "+Ie[1]+"));\n }\n ":1===ue[1]?"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+Ie[0]+", "+Ie[1]+"));\n int index = resTexRC.x * "+Ie[1]+" + resTexRC.y;\n return ivec2(index, 0);\n }\n ":1===ue[0]?"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+Ie[0]+", "+Ie[1]+"));\n int index = resTexRC.x * "+Ie[1]+" + resTexRC.y;\n return ivec2(0, index);\n }\n ":"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+Ie[0]+", "+Ie[1]+"));\n int index = resTexRC.x * "+Ie[1]+" + resTexRC.y;\n int r = index / "+ue[1]+";\n int c = index - r * "+ue[1]+";\n return ivec2(r, c);\n }\n "}(R,U);case 3:return J=U,ne=v2(["r","c","d"],R),"\n ivec3 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+J[0]+", "+J[1]+"));\n int index = resTexRC.x * "+J[1]+" + resTexRC.y;\n "+ne+"\n return ivec3(r, c, d);\n }\n ";case 4:return function(ue,Ie){var Ae=v2(["r","c","d","d2"],ue);return"\n ivec4 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+Ie[0]+", "+Ie[1]+"));\n int index = resTexRC.x * "+Ie[1]+" + resTexRC.y;\n "+Ae+"\n return ivec4(r, c, d, d2);\n }\n "}(R,U);case 5:return function(ue,Ie){var Ae=v2(["r","c","d","d2","d3"],ue);return"\n ivec5 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx * vec2("+Ie[0]+",\n "+Ie[1]+"));\n\n int index = resTexRC.x * "+Ie[1]+" + resTexRC.y;\n\n "+Ae+"\n\n ivec5 outShape = ivec5(r, c, d, d2, d3);\n return outShape;\n }\n "}(R,U);case 6:return function(ue,Ie){var Ae=v2(["r","c","d","d2","d3","d4"],ue);return"\n ivec6 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+Ie[0]+", "+Ie[1]+"));\n int index = resTexRC.x * "+Ie[1]+" + resTexRC.y;\n\n "+Ae+"\n\n ivec6 result = ivec6(r, c, d, d2, d3, d4);\n return result;\n }\n "}(R,U);default:throw new Error(R.length+"-D output sampling is not yet supported")}var Ie,J,ne}(n.logicalShape,d),c=function(R){return"\n void setOutput(float val) {\n "+R.output+" = vec4(val, 0, 0, 0);\n }\n "}(p)),r&&(x+=c9),[x,M,c,l,s,u,e].join("\n")}function El(t){var n=t.shapeInfo.logicalShape;switch(n.length){case 0:return function(e){var r=e.name,i="get"+r.charAt(0).toUpperCase()+r.slice(1);if(e.shapeInfo.isUniform)return"float "+i+"() {return "+r+";}";var s=e.shapeInfo.texShape;if(1===s[0]&&1===s[1])return"\n float "+i+"() {\n return sampleTexture("+r+", halfCR);\n }\n ";var u=e.shapeInfo.texShape;return"\n float "+i+"() {\n vec2 uv = uvFromFlat("+u[0]+", "+u[1]+", "+$2(r)+");\n return sampleTexture("+r+", uv);\n }\n "}(t);case 1:return function(e){var r=e.name,i="get"+r.charAt(0).toUpperCase()+r.slice(1);if(e.shapeInfo.isUniform)return"\n float "+i+"(int index) {\n "+xl(e)+"\n }\n ";var s=e.shapeInfo.texShape,c=s[0],l=s[1];if(1===l&&1===c)return"\n float "+i+"(int index) {\n return sampleTexture("+r+", halfCR);\n }\n ";var u=$2(r);return 1===l?"\n float "+i+"(int index) {\n vec2 uv = vec2(0.5, (float(index + "+u+") + 0.5) / "+c+".0);\n return sampleTexture("+r+", uv);\n }\n ":1===c?"\n float "+i+"(int index) {\n vec2 uv = vec2((float(index + "+u+") + 0.5) / "+l+".0, 0.5);\n return sampleTexture("+r+", uv);\n }\n ":"\n float "+i+"(int index) {\n vec2 uv = uvFromFlat("+c+", "+l+", index + "+u+");\n return sampleTexture("+r+", uv);\n }\n "}(t);case 2:return function(e){var r=e.shapeInfo.logicalShape,i=e.name,s="get"+i.charAt(0).toUpperCase()+i.slice(1),c=e.shapeInfo.texShape;if(null!=c&&yi(r,c))return"\n float "+s+"(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2("+c[1]+".0, "+c[0]+".0);\n return sampleTexture("+i+", uv);\n }\n ";var d=Pi(r),p=d.newShape,M=d.keptDims;if(p.length<r.length)return"\n "+El(kl(e,p))+"\n float "+s+"(int row, int col) {\n return "+s+"("+Dl(["row","col"],M)+");\n }\n ";if(e.shapeInfo.isUniform)return"\n float "+s+"(int row, int col) {\n int index = round(dot(vec2(row, col), vec2("+r[1]+", 1)));\n "+xl(e)+"\n }\n ";var U=c[0],J=c[1],ne=$2(i);return 1===J?"\n float "+s+"(int row, int col) {\n float index = dot(vec3(row, col, "+ne+"), vec3("+r[1]+", 1, 1));\n vec2 uv = vec2(0.5, (index + 0.5) / "+U+".0);\n return sampleTexture("+i+", uv);\n }\n ":1===U?"\n float "+s+"(int row, int col) {\n float index = dot(vec3(row, col, "+ne+"), vec3("+r[1]+", 1, 1));\n vec2 uv = vec2((index + 0.5) / "+J+".0, 0.5);\n return sampleTexture("+i+", uv);\n }\n ":"\n float "+s+"(int row, int col) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+r[1]+" + col + "+ne+";\n vec2 uv = uvFromFlat("+U+", "+J+", index);\n return sampleTexture("+i+", uv);\n }\n"}(t);case 3:return function(e){var r=e.shapeInfo.logicalShape,i=e.name,s="get"+i.charAt(0).toUpperCase()+i.slice(1),c=r[1]*r[2],l=r[2],u=Pi(r),d=u.newShape,p=u.keptDims;if(d.length<r.length)return"\n "+El(kl(e,d))+"\n float "+s+"(int row, int col, int depth) {\n return "+s+"("+Dl(["row","col","depth"],p)+");\n }\n ";if(e.shapeInfo.isUniform)return"\n float "+s+"(int row, int col, int depth) {\n int index = round(dot(vec3(row, col, depth),\n vec3("+c+", "+l+", 1)));\n "+xl(e)+"\n }\n ";var R=e.shapeInfo.texShape,U=R[0],J=R[1],ne=e.shapeInfo.flatOffset;return J===c&&null==ne?"\n float "+s+"(int row, int col, int depth) {\n float texR = float(row);\n float texC = dot(vec2(col, depth), vec2("+l+", 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+J+".0, "+U+".0);\n return sampleTexture("+i+", uv);\n }\n ":J===l&&null==ne?"\n float "+s+"(int row, int col, int depth) {\n float texR = dot(vec2(row, col), vec2("+r[1]+", 1));\n float texC = float(depth);\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2("+J+".0, "+U+".0);\n return sampleTexture("+i+", uv);\n }\n ":"\n float "+s+"(int row, int col, int depth) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+c+" + col * "+l+" + depth + "+$2(i)+";\n vec2 uv = uvFromFlat("+U+", "+J+", index);\n return sampleTexture("+i+", uv);\n }\n "}(t);case 4:return function(e){var r=e.shapeInfo.logicalShape,i=e.name,s="get"+i.charAt(0).toUpperCase()+i.slice(1),c=r[3],l=r[2]*c,u=r[1]*l,d=Pi(r),p=d.newShape,M=d.keptDims;if(p.length<r.length)return"\n "+El(kl(e,p))+"\n float "+s+"(int row, int col, int depth, int depth2) {\n return "+s+"("+Dl(["row","col","depth","depth2"],M)+");\n }\n ";if(e.shapeInfo.isUniform)return"\n float "+s+"(int row, int col, int depth, int depth2) {\n int index = round(dot(vec4(row, col, depth, depth2),\n vec4("+u+", "+l+", "+c+", 1)));\n "+xl(e)+"\n }\n ";var R=e.shapeInfo.flatOffset,U=e.shapeInfo.texShape,J=U[0],ne=U[1];return ne===u&&null==R?"\n float "+s+"(int row, int col, int depth, int depth2) {\n float texR = float(row);\n float texC =\n dot(vec3(col, depth, depth2),\n vec3("+l+", "+c+", 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+ne+".0, "+J+".0);\n return sampleTexture("+i+", uv);\n }\n ":ne===c&&null==R?"\n float "+s+"(int row, int col, int depth, int depth2) {\n float texR = dot(vec3(row, col, depth),\n vec3("+r[1]*r[2]+", "+r[2]+", 1));\n float texC = float(depth2);\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+ne+".0, "+J+".0);\n return sampleTexture("+i+", uv);\n }\n ":"\n float "+s+"(int row, int col, int depth, int depth2) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+u+" + col * "+l+" +\n depth * "+c+" + depth2;\n vec2 uv = uvFromFlat("+J+", "+ne+", index + "+$2(i)+");\n return sampleTexture("+i+", uv);\n }\n "}(t);case 5:return function(e){var r=e.shapeInfo.logicalShape,i=e.name,s="get"+i.charAt(0).toUpperCase()+i.slice(1),c=r[4],l=r[3]*c,u=r[2]*l,d=r[1]*u,p=Pi(r),M=p.newShape,x=p.keptDims;if(M.length<r.length)return"\n "+El(kl(e,M))+"\n float "+s+"(int row, int col, int depth, int depth2, int depth3) {\n return "+s+"("+Dl(["row","col","depth","depth2","depth3"],x)+");\n }\n ";if(e.shapeInfo.isUniform)return"\n float "+s+"(int row, int col, int depth, int depth2, int depth3) {\n float index = dot(\n vec4(row, col, depth, depth2),\n vec4("+d+", "+u+", "+l+", "+c+")) +\n depth3;\n "+xl(e)+"\n }\n ";var U=e.shapeInfo.flatOffset,J=e.shapeInfo.texShape,ne=J[0],ue=J[1];return ue===d&&null==U?"\n float "+s+"(int row, int col, int depth, int depth2, int depth3) {\n int texR = row;\n float texC = dot(vec4(col, depth, depth2, depth3),\n vec4("+u+", "+l+", "+c+", 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+ue+".0, "+ne+".0);\n return sampleTexture("+i+", uv);\n }\n ":ue===c&&null==U?"\n float "+s+"(int row, int col, int depth, int depth2, int depth3) {\n float texR = dot(\n vec4(row, col, depth, depth2),\n vec4("+r[1]*r[2]*r[3]+",\n "+r[2]*r[3]+", "+r[3]+", 1));\n int texC = depth3;\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+ue+".0, "+ne+".0);\n return sampleTexture("+i+", uv);\n }\n ":"\n float "+s+"(int row, int col, int depth, int depth2, int depth3) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+d+" + col * "+u+" + depth * "+l+" +\n depth2 * "+c+" + depth3 + "+$2(i)+";\n vec2 uv = uvFromFlat("+ne+", "+ue+", index);\n return sampleTexture("+i+", uv);\n }\n "}(t);case 6:return function(e){var r=e.shapeInfo.logicalShape,i=e.name,s="get"+i.charAt(0).toUpperCase()+i.slice(1),c=Pi(r),l=c.newShape,u=c.keptDims;if(l.length<r.length)return"\n "+El(kl(e,l))+"\n float "+s+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n return "+s+"("+Dl(["row","col","depth","depth2","depth3","depth4"],u)+");\n }\n ";var p=r[5],M=r[4]*p,x=r[3]*M,R=r[2]*x,U=r[1]*R;if(e.shapeInfo.isUniform)return"\n float "+s+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n int index = round(dot(\n vec4(row, col, depth, depth2),\n vec4("+U+", "+R+", "+x+", "+M+")) +\n dot(\n vec2(depth3, depth4),\n vec2("+p+", 1)));\n "+xl(e)+"\n }\n ";var J=e.shapeInfo.flatOffset,ne=e.shapeInfo.texShape,ue=ne[0],Ie=ne[1];return Ie===U&&null==J?"\n float "+s+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n int texR = row;\n float texC = dot(vec4(col, depth, depth2, depth3),\n vec4("+R+", "+x+", "+M+", "+p+")) +\n float(depth4);\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+Ie+".0, "+ue+".0);\n return sampleTexture("+i+", uv);\n }\n ":Ie===p&&null==J?"\n float "+s+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n float texR = dot(vec4(row, col, depth, depth2),\n vec4("+r[1]*r[2]*r[3]*r[4]+",\n "+r[2]*r[3]*r[4]+",\n "+r[3]*r[4]+",\n "+r[4]+")) + float(depth3);\n int texC = depth4;\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+Ie+".0, "+ue+".0);\n return sampleTexture("+i+", uv);\n }\n ":"\n float "+s+"(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * "+U+" + col * "+R+" + depth * "+x+" +\n depth2 * "+M+" + depth3 * "+p+" + depth4 + "+$2(i)+";\n vec2 uv = uvFromFlat("+ue+", "+Ie+", index);\n return sampleTexture("+i+", uv);\n }\n "}(t);default:throw new Error(n.length+"-D input sampling is not yet supported")}}function ld(t){var n,i,s,c,l,u,d;switch(t.shapeInfo.logicalShape.length){case 0:return"\n vec4 get"+(n=t.name).charAt(0).toUpperCase()+n.slice(1)+"() {\n return "+Bs().texture2D+"("+n+", halfCR);\n }\n ";case 1:return c="get"+(s=(i=t).name).charAt(0).toUpperCase()+s.slice(1),l=i.shapeInfo.texShape,u=[Math.ceil(l[0]/2),Math.ceil(l[1]/2)],d=Bs(),"\n vec4 "+c+"(int index) {\n vec2 uv = packedUVfrom1D(\n "+u[0]+", "+u[1]+", index);\n return "+d.texture2D+"("+s+", uv);\n }\n ";case 2:return function(i){var s=i.shapeInfo.logicalShape,c=i.name,l="get"+c.charAt(0).toUpperCase()+c.slice(1),u=i.shapeInfo.texShape,d=u[0],p=u[1],M=Bs();if(null!=u&&yi(s,u))return"\n vec4 "+l+"(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2("+p+".0, "+d+".0);\n\n return "+M.texture2D+"("+c+", uv);\n }\n ";var x=[Math.ceil(u[0]/2),Math.ceil(u[1]/2)];return"\n vec4 "+l+"(int row, int col) {\n vec2 uv = packedUVfrom2D("+Math.ceil(s[1]/2)+", "+x[0]+", "+x[1]+", row, col);\n return "+M.texture2D+"("+c+", uv);\n }\n "}(t);case 3:return function(i){var s=i.shapeInfo.logicalShape,c=i.name,l="get"+c.charAt(0).toUpperCase()+c.slice(1),u=i.shapeInfo.texShape,d=[Math.ceil(u[0]/2),Math.ceil(u[1]/2)];if(1===s[0])return"\n "+ld(kl(i,s.slice(1)))+"\n vec4 "+l+"(int b, int row, int col) {\n return "+l+"("+Dl(["b","row","col"],[1,2])+");\n }\n ";var x=d[0],R=d[1],U=Math.ceil(s[2]/2);return"\n vec4 "+l+"(int b, int row, int col) {\n vec2 uv = packedUVfrom3D(\n "+x+", "+R+", "+U*Math.ceil(s[1]/2)+", "+U+", b, row, col);\n return "+Bs().texture2D+"("+c+", uv);\n }\n "}(t);default:return function(i){for(var s=i.shapeInfo.logicalShape,c=s.length,l=i.name,u="get"+l.charAt(0).toUpperCase()+l.slice(1),d=i.shapeInfo.texShape,p=[Math.ceil(d[0]/2),Math.ceil(d[1]/2)],M=p[0],x=p[1],R=Math.ceil(s[c-1]/2),U=R*Math.ceil(s[c-2]/2),J="int b, int row, int col",ne="b * "+U+" + (row / 2) * "+R+" + (col / 2)",ue=2;ue<c-1;ue++)J="int b"+ue+", "+J,ne="b"+ue+" * "+(U*=s[c-ue-1])+" + "+ne;return"\n vec4 "+u+"("+J+") {\n int index = "+ne+";\n int texR = index / "+x+";\n int texC = index - texR * "+x+";\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2("+x+", "+M+");\n return "+Bs().texture2D+"("+l+", uv);\n }\n "}(t)}}var a9="\nvec2 uvFromFlat(int texNumR, int texNumC, int index) {\n int texR = index / texNumC;\n int texC = index - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\nvec2 packedUVfrom1D(int texNumR, int texNumC, int index) {\n int texelIndex = index / 2;\n int texR = texelIndex / texNumC;\n int texC = texelIndex - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",s9="\nvec2 packedUVfrom2D(int texelsInLogicalRow, int texNumR,\n int texNumC, int row, int col) {\n int texelIndex = (row / 2) * texelsInLogicalRow + (col / 2);\n int texR = texelIndex / texNumC;\n int texC = texelIndex - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",_m="\nvec2 packedUVfrom3D(int texNumR, int texNumC,\n int texelsInBatch, int texelsInLogicalRow, int b,\n int row, int col) {\n int index = b * texelsInBatch + (row / 2) * texelsInLogicalRow + (col / 2);\n int texR = index / texNumC;\n int texC = index - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",c9="\n float getChannel(vec4 frag, vec2 innerDims) {\n vec2 modCoord = mod(innerDims, 2.);\n return modCoord.x == 0. ?\n (modCoord.y == 0. ? frag.r : frag.g) :\n (modCoord.y == 0. ? frag.b : frag.a);\n }\n float getChannel(vec4 frag, int dim) {\n float modCoord = mod(float(dim), 2.);\n return modCoord == 0. ? frag.r : frag.g;\n }\n";function $2(t){return"offset"+t}function xl(t){var n=t.name,e=rr(t.shapeInfo.logicalShape);return e<2?"return "+n+";":"\n for (int i = 0; i < "+e+"; i++) {\n if (i == index) {\n return "+n+"[i];\n }\n }\n "}function Gi(t){if(t<=1)return"int";if(2===t)return"ivec2";if(3===t)return"ivec3";if(4===t)return"ivec4";if(5===t)return"ivec5";if(6===t)return"ivec6";throw Error("GPU for rank "+t+" is not yet supported")}function kl(t,n){var e=JSON.parse(JSON.stringify(t));return e.shapeInfo.logicalShape=n,e}function Dl(t,n){return n.map(function(e){return t[e]}).join(", ")}var l9=function(t,n,e,r){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,at(t.length>2,function(){return"Packed arg"+(e.charAt(0).toUpperCase()+e.slice(1))+" supports only inputs with rank above 2."});var s=Math.ceil(t[t.length-1]/n);this.outputShape=t.slice(0,-1),s>1&&this.outputShape.push(s),r||this.variableNames.push("bestIndicesA");var c,l,u=this.outputShape,d=u.length,p=Gi(d),M=uc("coords",d);if(1===s){var x=Gi(l=d+1);c="\n "+x+" sourceLocR = "+x+"("+M.join()+", 0);\n ++"+M[d-1]+";\n "+x+" sourceLocG = "+x+"("+M.join()+", 0);\n ++"+M[d-2]+";\n "+x+" sourceLocA = "+x+"("+M.join()+", 0);\n --"+M[d-1]+";\n "+x+" sourceLocB = "+x+"("+M.join()+", 0);\n --"+M[d-2]+";"}else l=d,c="\n "+p+" sourceLocR = coords;\n ++"+M[d-1]+";\n "+p+" sourceLocG = coords;\n ++"+M[d-2]+";\n "+p+" sourceLocA = coords;\n --"+M[d-1]+";\n "+p+" sourceLocB = coords;\n --"+M[d-2]+";";var R=["x","y","z","w","u","v"].slice(0,l),U="."+R[l-1],J=R.map(function(yt){return"int "+yt}),ne=uc("sourceLocR",l-1).concat("inIdx.r"),ue=uc("sourceLocG",l-1).concat("inIdx.g"),Ie=uc("sourceLocB",l-1).concat("inIdx.b"),Ae=uc("sourceLocA",l-1).concat("inIdx.a"),Oe="max"===e?"greaterThan":"lessThan",Fe=r?"":"\n inIdx = round(vec4(getBestIndicesAChannel("+ne.join()+"),\n getBestIndicesAChannel("+ue.join()+"),\n getBestIndicesAChannel("+Ie.join()+"),\n getBestIndicesAChannel("+Ae.join()+")));",et="vec4(\n getAChannel("+ne.join()+"),\n hasNextCol ? getAChannel("+ue.join()+") : 0.,\n hasNextRow ? getAChannel("+Ie.join()+") : 0.,\n hasNextRow && hasNextCol ? getAChannel("+Ae.join()+") : 0.)",Ct=r?"":"\n float getBestIndicesAChannel("+J.join()+") {\n return getChannel(getBestIndicesA("+R.join()+"),\n vec2("+R.slice(-2).join()+"));\n }";this.userCode="\n float getAChannel("+J.join()+") {\n return getChannel(getA("+R.join()+"),\n vec2("+R.slice(-2).join()+"));\n }\n "+Ct+"\n void main() {\n "+p+" coords = getOutputCoords();\n bool hasNextCol = "+M[d-1]+" < "+(u[d-1]-1)+";\n bool hasNextRow = "+M[d-2]+" < "+(u[d-2]-1)+";\n "+c+"\n ivec4 srcIdx = ivec4(sourceLocR"+U+", sourceLocG"+U+",\n sourceLocB"+U+", sourceLocA"+U+") * "+n+";\n ivec4 inIdx = srcIdx;\n vec4 bestIndex = vec4(inIdx);\n vec4 bestValue = "+et+";\n\n for (int i = 0; i < "+n+"; i++) {\n inIdx = srcIdx;\n "+Fe+"\n vec4 candidate = "+et+";\n bvec4 nan = isnan(candidate);\n bvec4 replace = bvec4(\n vec4("+Oe+"(candidate, bestValue)) * (vec4(1.0) - vec4(nan)));\n\n bestValue = vec4(replace.x ? candidate.x : bestValue.x,\n replace.y ? candidate.y : bestValue.y,\n replace.z ? candidate.z : bestValue.z,\n replace.w ? candidate.w : bestValue.w);\n bestIndex = mix(bestIndex, vec4(inIdx), vec4(replace));\n srcIdx++;\n }\n setOutput(bestIndex);\n }\n "},u9=function(t){this.variableNames=["dy"],this.outputShape=t.inShape;var l=t.effectiveFilterHeight,u=t.effectiveFilterWidth;this.userCode="\n const ivec2 pads = ivec2("+(l-1-t.padInfo.top)+", "+(u-1-t.padInfo.left)+");\n const float avgMultiplier = float("+1/(t.filterHeight*t.filterWidth)+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n\n ivec2 dyRCCorner = coords.yz - pads;\n int dyRCorner = dyRCCorner.x;\n int dyCCorner = dyRCCorner.y;\n\n // Convolve dy(?, ?, d) with pos mask(:, :, d) to get dx(xR, xC, d).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < "+l+";\n wR += "+t.dilationHeight+") {\n float dyR = float(dyRCorner + wR) / "+t.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+t.outHeight+".0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < "+u+";\n wC+= "+t.dilationWidth+") {\n float dyC = float(dyCCorner + wC) / "+t.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+t.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(b, idyR, idyC, d);\n\n dotProd += dyValue * avgMultiplier;\n }\n }\n setOutput(dotProd);\n }\n "},gm=function(t){this.variableNames=["dy"],this.outputShape=t.inShape;var p=t.effectiveFilterDepth,M=t.effectiveFilterHeight,x=t.effectiveFilterWidth;this.userCode="\n const ivec3 pads = ivec3("+(p-1-t.padInfo.front)+", "+(M-1-t.padInfo.top)+", "+(x-1-t.padInfo.left)+");\n const float avgMultiplier = float("+1/(t.filterDepth*t.filterHeight*t.filterWidth)+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyDCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n // Convolve dy(?, ?, ?, d) with pos mask(:, :, :, ch) to get\n // dx(xD, xR, xC, ch).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int wD = 0; wD < "+p+";\n wD += "+t.dilationDepth+") {\n float dyD = float(dyDCorner + wD) / "+t.strideDepth+".0;\n\n if (dyD < 0.0 || dyD >= "+t.outDepth+".0 || fract(dyD) > 0.0) {\n continue;\n }\n int idyD = int(dyD);\n\n for (int wR = 0; wR < "+M+";\n wR += "+t.dilationHeight+") {\n float dyR = float(dyRCorner + wR) / "+t.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+t.outHeight+".0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < "+x+";\n wC += "+t.dilationWidth+") {\n float dyC = float(dyCCorner + wC) / "+t.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+t.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(batch, idyD, idyR, idyC, ch);\n\n dotProd += dyValue * avgMultiplier;\n }\n }\n }\n setOutput(dotProd);\n }\n "},d9=function(t,n,e,r,i,s){this.outputShape=[],this.variableNames=["x","mean","variance"],zo(t,n),zo(t,e);var c="0.0";null!=r&&(zo(t,r),this.variableNames.push("offset"),c="getOffsetAtOutCoords()");var l="1.0";null!=i&&(zo(t,i),this.variableNames.push("scale"),l="getScaleAtOutCoords()"),this.outputShape=t,this.userCode="\n void main() {\n float x = getXAtOutCoords();\n float mean = getMeanAtOutCoords();\n float variance = getVarianceAtOutCoords();\n float offset = "+c+";\n float scale = "+l+";\n float inv = scale * inversesqrt(variance + float("+s+"));\n setOutput(dot(vec3(x, -mean, offset), vec3(inv, inv, 1)));\n }\n "},vm=function(t,n,e,r,i,s){this.packedInputs=!0,this.packedOutput=!0,this.variableNames=["x","mean","variance"],zo(t,n),zo(t,e);var c="vec4(0.0)";null!=r&&(zo(t,r),this.variableNames.push("offset"),c="getOffsetAtOutCoords()");var l="vec4(1.0)";null!=i&&(zo(t,i),this.variableNames.push("scale"),l="getScaleAtOutCoords()"),this.outputShape=t,this.userCode="\n void main() {\n vec4 offset = "+c+";\n vec4 scale = "+l+";\n\n vec4 x = getXAtOutCoords();\n vec4 mean = getMeanAtOutCoords();\n vec4 variance = getVarianceAtOutCoords();\n\n vec4 inv = scale * inversesqrt(variance + vec4("+s+"));\n\n setOutput((x - mean) * inv + offset);\n }\n "},ud=function(t,n,e){this.variableNames=["AReal","AImag","BReal","BImag"],this.outputShape=zo(n,e),this.userCode="\n float binaryOpComplex(\n float areal, float aimag, float breal, float bimag) {\n "+t+"\n }\n\n void main() {\n float areal = getARealAtOutCoords();\n float aimag = getAImagAtOutCoords();\n float breal = getBRealAtOutCoords();\n float bimag = getBImagAtOutCoords();\n setOutput(binaryOpComplex(areal, aimag, breal, bimag));\n }\n "},dd="return a + b;",fd="return a - b;",hd="return a * b;",ym="return (a < 0.) ? b * a : a;",Sa=function(t,n,e){this.variableNames=["A","B"],this.outputShape=zo(n,e),this.userCode="\n float binaryOperation(float a, float b) {\n "+t+"\n }\n\n void main() {\n float a = getAAtOutCoords();\n float b = getBAtOutCoords();\n setOutput(binaryOperation(a, b));\n }\n "},Mm="\n vec4 aLessThanZero = vec4(lessThan(a, vec4(0.)));\n return (aLessThanZero * (b * a)) + ((vec4(1.0) - aLessThanZero) * a);\n",Z1=function(t,n,e,r){void 0===r&&(r=!1),this.variableNames=["A","B"],this.supportsBroadcasting=!0,this.packedInputs=!0,this.packedOutput=!0,this.outputShape=zo(n,e);var i=this.outputShape.length,s="";if(r)if(0===i||1===rr(this.outputShape))s="\n result.y = 0.;\n result.z = 0.;\n result.w = 0.;\n ";else if(s="\n "+Gi(i)+" coords = getOutputCoords();\n ",1===i)s+="\n result.y = (coords + 1) >= "+this.outputShape[0]+" ? 0. : result.y;\n result.z = 0.;\n result.w = 0.;\n ";else{var c=uc("coords",i);s+="\n bool nextRowOutOfBounds =\n ("+c[i-2]+" + 1) >= "+this.outputShape[i-2]+";\n bool nextColOutOfBounds =\n ("+c[i-1]+" + 1) >= "+this.outputShape[i-1]+";\n result.y = nextColOutOfBounds ? 0. : result.y;\n result.z = nextRowOutOfBounds ? 0. : result.z;\n result.w = nextColOutOfBounds || nextRowOutOfBounds ? 0. : result.w;\n "}this.userCode="\n vec4 binaryOperation(vec4 a, vec4 b) {\n "+t+"\n }\n\n void main() {\n vec4 a = getAAtOutCoords();\n vec4 b = getBAtOutCoords();\n\n vec4 result = binaryOperation(a, b);\n "+s+"\n\n setOutput(result);\n }\n "},m9=function(){function t(n){this.variableNames=["A"],this.outputShape=n,this.userCode="\n uniform float minVal;\n uniform float maxVal;\n\n void main() {\n float value = getAAtOutCoords();\n if (isnan(value)) {\n setOutput(value);\n return;\n }\n\n setOutput(clamp(value, minVal, maxVal));\n }\n "}return t.prototype.getCustomSetupFunc=function(n,e){var r=this;return function(i,s){null==r.minLoc&&(r.minLoc=i.getUniformLocationNoThrow(s,"minVal"),r.maxLoc=i.getUniformLocationNoThrow(s,"maxVal")),i.gl.uniform1f(r.minLoc,n),i.gl.uniform1f(r.maxLoc,e)}},t}(),p9=function(){function t(n){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=n,this.userCode="\n uniform float minVal;\n uniform float maxVal;\n\n void main() {\n vec4 value = getAAtOutCoords();\n\n if (any(isnan(value))) {\n setOutput(value);\n return;\n }\n\n setOutput(clamp(value, vec4(minVal), vec4(maxVal)));\n }\n "}return t.prototype.getCustomSetupFunc=function(n,e){var r=this;return function(i,s){null==r.minLoc&&(r.minLoc=i.getUniformLocationNoThrow(s,"minVal"),r.maxLoc=i.getUniformLocationNoThrow(s,"maxVal")),i.gl.uniform1f(r.minLoc,n),i.gl.uniform1f(r.maxLoc,e)}},t}(),_9=function(t){this.variableNames=["real","imag"],this.outputShape=t,this.userCode="\n void main() {\n float re = abs(getRealAtOutCoords());\n float im = abs(getImagAtOutCoords());\n float mx = max(re, im);\n\n // sadly the length function in glsl is not underflow-safe\n // (at least not on Intel GPUs). So the safe solution is\n // to ensure underflow-safety in all cases.\n setOutput(\n mx == 0.0 ? 0.0 : mx * length(vec2(1, min(re, im)/mx))\n );\n }\n "},g9=function(t){this.outputShape=[],this.outputShape=Gc(t,1),this.variableNames=t.map(function(l,u){return"T"+u});var n=new Array(t.length-1);n[0]=t[0][1];for(var e=1;e<n.length;e++)n[e]=n[e-1]+t[e][1];var r=["if (yC < "+n[0]+") setOutput(getT0(yR, yC));"];for(e=1;e<n.length;e++)r.push("else if (yC < "+n[e]+") setOutput(getT"+e+"(yR, yC-"+n[e-1]+"));");r.push("else setOutput(getT"+n.length+"(yR, yC-"+n[n.length-1]+"));"),this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n int yR = coords.x;\n int yC = coords.y;\n\n "+r.join("\n ")+"\n }\n "},Cm=function(t,n){this.packedInputs=!0,this.packedOutput=!0,this.outputShape=[],this.outputShape=Gc(t,n);var e=this.outputShape,r=e.length,i=Gi(r),s=uc("coords",r),c=["x","y","z","w","u","v"].slice(0,r);this.variableNames=t.map(function(ne,ue){return"T"+ue});var l=new Array(t.length-1);l[0]=t[0][n];for(var u=1;u<l.length;u++)l[u]=l[u-1]+t[u][n];var d=c[n],p=c.slice(-2),M=c.join(),x="if ("+d+" < "+l[0]+") {\n return getChannel(\n getT0("+M+"), vec2("+p.join()+"));\n }";for(u=1;u<l.length;u++){var R=l[u-1];x+="\n if ("+d+" < "+l[u]+" && "+d+" >= "+l[u-1]+") {\n return getChannel(\n getT"+u+"("+K3(c,d,R)+"),\n vec2("+K3(p,d,R)+"));\n }"}var J=l[l.length-1];x+="\n return getChannel(\n getT"+l.length+"("+K3(c,d,J)+"),\n vec2("+K3(p,d,J)+"));",this.userCode="\n float getValue("+c.map(function(ne){return"int "+ne})+") {\n "+x+"\n }\n\n void main() {\n "+i+" coords = getOutputCoords();\n vec4 result = vec4(getValue("+s+"), 0., 0., 0.);\n\n "+s[r-1]+" = "+s[r-1]+" + 1;\n if ("+s[r-1]+" < "+e[r-1]+") {\n result.g = getValue("+s+");\n }\n\n "+s[r-2]+" = "+s[r-2]+" + 1;\n if ("+s[r-2]+" < "+e[r-2]+") {\n result.a = getValue("+s+");\n }\n\n "+s[r-1]+" = "+s[r-1]+" - 1;\n if ("+s[r-2]+" < "+e[r-2]+" &&\n "+s[r-1]+" < "+e[r-1]+") {\n result.b = getValue("+s+");\n }\n setOutput(result);\n }\n "};function K3(t,n,e){var r=t.indexOf(n);return t.map(function(i,s){return s===r?i+" - "+e:i}).join()}var bm=function(t){this.variableNames=["x","dy"],this.outputShape=t.filterShape,this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int wR = coords.x;\n int wC = coords.y;\n int d1 = coords.z;\n int d2 = coords.w;\n\n // Convolve x(?, ?, d1) with dy(:, :, d2) to get dw(wR, wC, d1, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int b = 0; b < "+t.batchSize+"; b++) {\n for (int yR = 0; yR < "+t.outHeight+"; yR++) {\n int xR = wR + yR * "+t.strideHeight+" - "+t.padInfo.top+";\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int yC = 0; yC < "+t.outWidth+"; yC++) {\n int xC = wC + yC * "+t.strideWidth+" - "+t.padInfo.left+";\n\n if (xC < 0 || xC >= "+t.inWidth+") {\n continue;\n }\n\n if ("+("channelsLast"===t.dataFormat)+") {\n float dyValue = getDy(b, yR, yC, d2);\n float xValue = getX(b, xR, xC, d1);\n dotProd += (xValue * dyValue);\n } else {\n float dyValue = getDy(b, d2, yR, yC);\n float xValue = getX(b, d1, xR, xC);\n dotProd += (xValue * dyValue);\n }\n\n }\n }\n }\n setOutput(dotProd);\n }\n "},v9=function(t){this.variableNames=["dy","W"],this.outputShape=t.inShape;var n=t.filterHeight,e=t.filterWidth,s="channelsLast"===t.dataFormat;this.userCode="\n const ivec2 pads = ivec2("+(n-1-t.padInfo.top)+", "+(e-1-t.padInfo.left)+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d1 = coords["+(s?3:1)+"];\n\n ivec2 dyCorner = ivec2(coords["+(s?1:2)+"], coords["+(s?2:3)+"]) - pads;\n int dyRCorner = dyCorner.x;\n int dyCCorner = dyCorner.y;\n\n // Convolve dy(?, ?, d2) with w(:, :, d1, d2) to compute dx(xR, xC, d1).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < "+n+"; wR++) {\n float dyR = float(dyRCorner + wR) / "+t.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+t.outHeight+".0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = "+n+" - 1 - wR;\n\n for (int wC = 0; wC < "+e+"; wC++) {\n float dyC = float(dyCCorner + wC) / "+t.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+t.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = "+e+" - 1 - wC;\n\n for (int d2 = 0; d2 < "+t.outChannels+"; d2++) {\n\n if ("+s+") {\n float xValue = getDy(batch, idyR, idyC, d2);\n float wValue = getW(wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n } else {\n float xValue = getDy(batch, d2, idyR, idyC);\n float wValue = getW(wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n }\n\n }\n }\n }\n setOutput(dotProd);\n }\n "},Lm=function(t){this.variableNames=["x","dy"],this.outputShape=t.filterShape,this.userCode="\n void main() {\n ivec5 coords = getOutputCoords();\n int wF = coords.x;\n int wR = coords.y;\n int wC = coords.z;\n int d1 = coords.w;\n int d2 = coords.u;\n\n float dotProd = 0.0;\n\n for (int b = 0; b < "+t.batchSize+"; b++) {\n for (int yF = 0; yF < "+t.outDepth+"; yF++) {\n int xF = wF + yF * "+t.strideDepth+" - "+t.padInfo.front+";\n\n if (xF < 0 || xF >= "+t.inDepth+") {\n continue;\n }\n\n for (int yR = 0; yR < "+t.outHeight+"; yR++) {\n int xR = wR + yR * "+t.strideHeight+" - "+t.padInfo.top+";\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int yC = 0; yC < "+t.outWidth+"; yC++) {\n int xC = wC + yC * "+t.strideWidth+" - "+t.padInfo.left+";\n\n if (xC < 0 || xC >= "+t.inWidth+") {\n continue;\n }\n\n float dyValue = getDy(b, yF, yR, yC, d2);\n float xValue = getX(b, xF, xR, xC, d1);\n dotProd += (xValue * dyValue);\n }\n }\n }\n }\n setOutput(dotProd);\n }\n "},y9=function(t){this.variableNames=["dy","W"],this.outputShape=t.inShape;var n=t.filterDepth,e=t.filterHeight,r=t.filterWidth;this.userCode="\n const ivec3 pads = ivec3("+(n-1-t.padInfo.front)+", "+(e-1-t.padInfo.top)+", "+(r-1-t.padInfo.left)+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int d1 = coords.u;\n\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyFCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n float dotProd = 0.0;\n for (int wF = 0; wF < "+n+"; wF++) {\n float dyF = float(dyFCorner + wF) / "+t.strideDepth+".0;\n\n if (dyF < 0.0 || dyF >= "+t.outDepth+".0 || fract(dyF) > 0.0) {\n continue;\n }\n int idyF = int(dyF);\n\n int wFPerm = "+n+" - 1 - wF;\n\n for (int wR = 0; wR < "+e+"; wR++) {\n float dyR = float(dyRCorner + wR) / "+t.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+t.outHeight+".0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = "+e+" - 1 - wR;\n\n for (int wC = 0; wC < "+r+"; wC++) {\n float dyC = float(dyCCorner + wC) / "+t.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+t.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = "+r+" - 1 - wC;\n\n for (int d2 = 0; d2 < "+t.outChannels+"; d2++) {\n float xValue = getDy(batch, idyF, idyR, idyC, d2);\n float wValue = getW(wFPerm, wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n }\n }\n }\n }\n setOutput(dotProd);\n }\n "},M9=function(t){this.variableNames=["x","dy"],this.outputShape=t.filterShape,this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int wR = coords.x;\n int wC = coords.y;\n int d1 = coords.z;\n int dm = coords.w;\n int d2 = d1 * "+t.outChannels/t.inChannels+" + dm;\n\n float dotProd = 0.0;\n\n // TO DO: Vec4 over the batch size\n for (int b = 0; b < "+t.batchSize+"; b++) {\n for (int yR = 0; yR < "+t.outHeight+"; yR++) {\n int xR = wR + yR * "+t.strideHeight+" - "+t.padInfo.top+";\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int yC = 0; yC < "+t.outWidth+"; yC++) {\n int xC = wC + yC * "+t.strideWidth+" - "+t.padInfo.left+";\n\n if (xC < 0 || xC >= "+t.inWidth+") {\n continue;\n }\n\n float dyValue = getDy(b, yR, yC, d2);\n float xValue = getX(b, xR, xC, d1);\n dotProd += (xValue * dyValue);\n }\n }\n }\n setOutput(dotProd);\n }\n "},Sm=function(t){this.variableNames=["dy","W"],this.outputShape=t.inShape;var n=t.filterHeight,e=t.filterWidth,l=t.outChannels/t.inChannels;this.userCode="\n const ivec2 pads = ivec2("+(n-1-t.padInfo.top)+", "+(e-1-t.padInfo.left)+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d1 = coords[3];\n ivec2 dyCorner = coords.yz - pads;\n int dyRCorner = dyCorner.x;\n int dyCCorner = dyCorner.y;\n\n float dotProd = 0.0;\n\n for (int wR = 0; wR < "+n+"; wR++) {\n float dyR = float(dyRCorner + wR) / "+t.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+t.outHeight+".0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = "+n+" - 1 - wR;\n\n for (int wC = 0; wC < "+e+"; wC++) {\n float dyC = float(dyCCorner + wC) / "+t.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+t.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = "+e+" - 1 - wC;\n\n // TO DO: Vec4 over the channelMul\n for (int dm = 0; dm < "+l+"; dm++) {\n int d2 = d1 * "+l+" + dm;\n float xValue = getDy(batch, idyR, idyC, d2);\n float wValue = getW(wRPerm, wCPerm, d1, dm);\n dotProd += xValue * wValue;\n }\n }\n }\n setOutput(dotProd);\n }\n "},Tm=function(t,n,e,r){void 0===n&&(n=!1),void 0===e&&(e=null),void 0===r&&(r=!1),this.variableNames=["x","W"],this.outputShape=t.outShape;var i=t.padInfo.top,s=t.padInfo.left,c=t.strideHeight,l=t.strideWidth,u=t.dilationHeight,d=t.dilationWidth,p=t.filterHeight,M=t.filterWidth,x=4*Math.floor(t.inChannels/4),R=t.inChannels%4,U="channelsLast"===t.dataFormat,J=U?1:2,ne=U?2:3,ue=U?3:1,Ie="",Ae="";e&&(Ie=r?"float activation(float a) {\n float b = getPreluActivationWeightsAtOutCoords();\n "+e+"\n }":"\n float activation(float x) {\n "+e+"\n }\n ",Ae="result = activation(result);");var Oe=n?"result += getBiasAtOutCoords();":"";n&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),this.userCode="\n "+Ie+"\n\n const ivec2 strides = ivec2("+c+", "+l+");\n const ivec2 pads = ivec2("+i+", "+s+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d2 = coords["+ue+"];\n\n ivec2 xRCCorner =\n ivec2(coords["+J+"], coords["+ne+"]) * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // Convolve x(?, ?, d1) with w(:, :, d1, d2) to get y(yR, yC, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < "+p+"; wR++) {\n int xR = xRCorner + wR * "+u+";\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+M+"; wC++) {\n int xC = xCCorner + wC * "+d+";\n\n if (xC < 0 || xC >= "+t.inWidth+") {\n continue;\n }\n\n for (int d1 = 0; d1 < "+x+"; d1 += 4) {\n vec4 wValues = vec4(\n getW(wR, wC, d1, d2),\n getW(wR, wC, d1 + 1, d2),\n getW(wR, wC, d1 + 2, d2),\n getW(wR, wC, d1 + 3, d2)\n );\n\n if ("+U+") {\n vec4 xValues = vec4(\n getX(batch, xR, xC, d1),\n getX(batch, xR, xC, d1 + 1),\n getX(batch, xR, xC, d1 + 2),\n getX(batch, xR, xC, d1 + 3)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec4 xValues = vec4(\n getX(batch, d1, xR, xC),\n getX(batch, d1 + 1, xR, xC),\n getX(batch, d1 + 2, xR, xC),\n getX(batch, d1 + 3, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n }\n\n if ("+(1===R)+") {\n\n if ("+U+") {\n dotProd +=\n getX(batch, xR, xC, "+x+") *\n getW(wR, wC, "+x+", d2);\n } else {\n dotProd +=\n getX(batch, "+x+", xR, xC) *\n getW(wR, wC, "+x+", d2);\n }\n\n } else if ("+(2===R)+") {\n vec2 wValues = vec2(\n getW(wR, wC, "+x+", d2),\n getW(wR, wC, "+x+" + 1, d2)\n );\n\n if ("+U+") {\n vec2 xValues = vec2(\n getX(batch, xR, xC, "+x+"),\n getX(batch, xR, xC, "+x+" + 1)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec2 xValues = vec2(\n getX(batch, "+x+", xR, xC),\n getX(batch, "+x+" + 1, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n\n } else if ("+(3===R)+") {\n vec3 wValues = vec3(\n getW(wR, wC, "+x+", d2),\n getW(wR, wC, "+x+" + 1, d2),\n getW(wR, wC, "+x+" + 2, d2)\n );\n\n if ("+U+") {\n vec3 xValues = vec3(\n getX(batch, xR, xC, "+x+"),\n getX(batch, xR, xC, "+x+" + 1),\n getX(batch, xR, xC, "+x+" + 2)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec3 xValues = vec3(\n getX(batch, "+x+", xR, xC),\n getX(batch, "+x+" + 1, xR, xC),\n getX(batch, "+x+" + 2, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n\n }\n }\n }\n\n float result = dotProd;\n "+Oe+"\n "+Ae+"\n setOutput(result);\n }\n "},wm=function(t){this.variableNames=["x","W"],this.outputShape=t.outShape;var n=t.padInfo.front,e=t.padInfo.top,r=t.padInfo.left,i=t.strideDepth,s=t.strideHeight,c=t.strideWidth,l=t.dilationDepth,u=t.dilationHeight,d=t.dilationWidth,p=t.filterDepth,M=t.filterHeight,x=t.filterWidth,R=4*Math.floor(t.inChannels/4),U=t.inChannels%4;this.userCode="\n const ivec3 strides = ivec3("+i+", "+s+", "+c+");\n const ivec3 pads = ivec3("+n+", "+e+", "+r+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int d2 = coords.u;\n\n ivec3 xFRCCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xFCorner = xFRCCorner.x;\n int xRCorner = xFRCCorner.y;\n int xCCorner = xFRCCorner.z;\n\n // Convolve x(?, ?, ?, d1) with w(:, :, :, d1, d2) to get\n // y(yF, yR, yC, d2). ? = to be determined. : = across all\n // values in that axis.\n float dotProd = 0.0;\n for (int wF = 0; wF < "+p+"; wF++) {\n int xF = xFCorner + wF * "+l+";\n\n if (xF < 0 || xF >= "+t.inDepth+") {\n continue;\n }\n\n for (int wR = 0; wR < "+M+"; wR++) {\n int xR = xRCorner + wR * "+u+";\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+x+"; wC++) {\n int xC = xCCorner + wC * "+d+";\n\n if (xC < 0 || xC >= "+t.inWidth+") {\n continue;\n }\n\n for (int d1 = 0; d1 < "+R+"; d1 += 4) {\n vec4 xValues = vec4(\n getX(batch, xF, xR, xC, d1),\n getX(batch, xF, xR, xC, d1 + 1),\n getX(batch, xF, xR, xC, d1 + 2),\n getX(batch, xF, xR, xC, d1 + 3)\n );\n vec4 wValues = vec4(\n getW(wF, wR, wC, d1, d2),\n getW(wF, wR, wC, d1 + 1, d2),\n getW(wF, wR, wC, d1 + 2, d2),\n getW(wF, wR, wC, d1 + 3, d2)\n );\n\n dotProd += dot(xValues, wValues);\n }\n\n if ("+(1===U)+") {\n dotProd +=\n getX(batch, xF, xR, xC, "+R+") *\n getW(wF, wR, wC, "+R+", d2);\n } else if ("+(2===U)+") {\n vec2 xValues = vec2(\n getX(batch, xF, xR, xC, "+R+"),\n getX(batch, xF, xR, xC, "+R+" + 1)\n );\n vec2 wValues = vec2(\n getW(wF, wR, wC, "+R+", d2),\n getW(wF, wR, wC, "+R+" + 1, d2)\n );\n dotProd += dot(xValues, wValues);\n } else if ("+(3===U)+") {\n vec3 xValues = vec3(\n getX(batch, xF, xR, xC, "+R+"),\n getX(batch, xF, xR, xC, "+R+" + 1),\n getX(batch, xF, xR, xC, "+R+" + 2)\n );\n vec3 wValues = vec3(\n getW(wF, wR, wC, "+R+", d2),\n getW(wF, wR, wC, "+R+" + 1, d2),\n getW(wF, wR, wC, "+R+" + 2, d2)\n );\n dotProd += dot(xValues, wValues);\n }\n }\n }\n }\n setOutput(dotProd);\n }\n "},Em=function(t,n,e,r){void 0===n&&(n=!1),void 0===e&&(e=null),void 0===r&&(r=!1),this.variableNames=["x","W"],this.outputShape=t.outShape;var i=t.inHeight,s=t.inWidth,c=t.padInfo.top,l=t.padInfo.left,u=t.strideHeight,d=t.strideWidth,p=t.dilationHeight,M=t.dilationWidth,x=t.filterHeight,R=t.filterWidth,U=t.outChannels/t.inChannels,J="",ne="";e&&(J=r?"float activation(float a) {\n float b = getPreluActivationWeightsAtOutCoords();\n "+e+"\n }":"\n float activation(float x) {\n "+e+"\n }\n ",ne="result = activation(result);");var ue=n?"result += getBiasAtOutCoords();":"";n&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),this.userCode="\n "+J+"\n\n const ivec2 strides = ivec2("+u+", "+d+");\n const ivec2 pads = ivec2("+c+", "+l+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n ivec2 xRCCorner = coords.yz * strides - pads;\n int d2 = coords.w;\n int d1 = d2 / "+U+";\n int q = d2 - d1 * "+U+";\n\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // Convolve x(?, ?, d1) with w(:, :, d1, q) to get y(yR, yC, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n // TO DO(dsmilkov): Flatten the two for loops and vec4 the operations.\n for (int wR = 0; wR < "+x+"; wR++) {\n int xR = xRCorner + wR * "+p+";\n\n if (xR < 0 || xR >= "+i+") {\n continue;\n }\n\n for (int wC = 0; wC < "+R+"; wC++) {\n int xC = xCCorner + wC * "+M+";\n\n if (xC < 0 || xC >= "+s+") {\n continue;\n }\n\n float xVal = getX(batch, xR, xC, d1);\n float wVal = getW(wR, wC, d1, q);\n dotProd += xVal * wVal;\n }\n }\n\n float result = dotProd;\n "+ue+"\n "+ne+"\n setOutput(result);\n }\n "},xm=function(t,n,e,r){void 0===n&&(n=!1),void 0===e&&(e=null),void 0===r&&(r=!1),this.variableNames=["x","W"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=t.outShape;for(var i=t.inHeight,s=t.inWidth,c=t.padInfo.top,l=t.padInfo.left,u=t.strideHeight,d=t.strideWidth,p=t.dilationHeight,M=t.dilationWidth,x=t.filterHeight,R=t.filterWidth,U=R,J="int xR; int xC; int xCOffset;",ne=0;ne<x;ne++)for(var ue=0;ue<R;ue++)J+="\n vec4 xTexelR"+ne+"C"+2*ue+" = vec4(0.);\n vec4 wR"+ne+"C"+ue+" = vec4(0.);\n vec4 xR"+ne+"C"+ue+" = vec4(0.);";for(ne=0;ne<x;ne++)for(var Ie=0;Ie<U;Ie++){if(J+="\n xR = xRCorner + "+ne*p+";\n xC = xCCorner + "+(ue=2*Ie)*M+";\n ",1===d){if(ue<R&&(J+=l%2==1?"\n xCOffset = xC + 1;\n if(xR >= 0 && xR < "+i+" && xCOffset >= 0 && xCOffset < "+s+") {\n xTexelR"+ne+"C"+ue+" = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if(xCOffset + 1 >= "+s+") {\n xTexelR"+ne+"C"+ue+".zw = vec2(0.);\n }\n } else {\n xTexelR"+ne+"C"+ue+" = vec4(0.);\n }\n\n xCOffset = xC + 1 - 2;\n if(xR >= 0 && xR < "+i+" && xCOffset >= 0 && xCOffset < "+s+") {\n vec4 previous = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if(xCOffset + 1 >= "+s+") {\n previous.zw = vec2(0.);\n }\n\n xR"+ne+"C"+ue+" = vec4(previous.zw, xTexelR"+ne+"C"+ue+".xy);\n } else {\n xR"+ne+"C"+ue+" = vec4(0, 0, xTexelR"+ne+"C"+ue+".xy);\n }\n ":"\n if(xR >= 0 && xR < "+i+" && xC >= 0 && xC < "+s+") {\n xTexelR"+ne+"C"+ue+" = getX(batch, xR, xC, d1);\n } else {\n xTexelR"+ne+"C"+ue+" = vec4(0.);\n }\n\n xR"+ne+"C"+ue+" = xTexelR"+ne+"C"+ue+";\n ",ue+1<R)){var Ae=l%2==0?As(M):M;M%2==0&&l%2==1||M%2!=0&&l%2!=1?(J+="\n xCOffset = xC + "+l%2+" + "+Ae+";\n\n if(xR >= 0 && xR < "+i+" &&\n xCOffset >= 0 && xCOffset < "+s+") {\n xTexelR"+ne+"C"+(ue+2)+" = getX(batch, xR, xCOffset, d1);\n }\n ",M>1&&(J+="\n xCOffset -= 2;\n if(xR >= 0 && xR < "+i+" &&\n xCOffset >= 0 && xCOffset < "+s+") {\n xTexelR"+ne+"C"+ue+" = getX(batch, xR, xCOffset, d1);\n } else {\n xTexelR"+ne+"C"+ue+" = vec4(0.);\n }\n "),J+="\n xR"+ne+"C"+(ue+1)+" = vec4(\n xTexelR"+ne+"C"+ue+".zw, xTexelR"+ne+"C"+(ue+2)+".xy);\n "):J+="\n xCOffset = xC + "+Ae+";\n\n if(xR >= 0 && xR < "+i+" &&\n xCOffset >= 0 && xCOffset < "+s+") {\n xTexelR"+ne+"C"+(ue+2)+" = getX(batch, xR, xCOffset, d1);\n }\n\n xR"+ne+"C"+(ue+1)+" = xTexelR"+ne+"C"+(ue+2)+";\n "}}else ue<R&&(J+="\n if(xR >= 0 && xR < "+i+") {\n ",l%2==1?(J+="\n xCOffset = xC + 1 - "+d+";\n if(xCOffset >= 0 && xCOffset < "+s+") {\n xTexelR"+ne+"C"+ue+" = getX(batch, xR, xCOffset, d1);\n } else {\n xTexelR"+ne+"C"+ue+" = vec4(0.);\n }\n\n if(xC + 1 >= 0 && xC + 1 < "+s+") {\n xTexelR"+ne+"C"+(ue+2)+" = getX(batch, xR, xC + 1, d1);\n } else {\n xTexelR"+ne+"C"+(ue+2)+" = vec4(0.);\n }\n\n xR"+ne+"C"+ue+" = vec4(\n xTexelR"+ne+"C"+ue+".zw, xTexelR"+ne+"C"+(ue+2)+".zw);\n ",ue+1<R&&(J+="\n vec4 final = vec4(0.);\n xCOffset = xC + 1 + "+d+";\n if(xCOffset >= 0 && xCOffset < "+s+") {\n final = getX(batch, xR, xCOffset, d1);\n }\n xR"+ne+"C"+(ue+1)+" = vec4(xTexelR"+ne+"C"+(ue+2)+".xy, final.xy);\n ")):(J+="\n if(xC >= 0 && xC < "+s+") {\n xTexelR"+ne+"C"+ue+" = getX(batch, xR, xC, d1);\n } else {\n xTexelR"+ne+"C"+ue+" = vec4(0.);\n }\n\n xCOffset = xC + "+d+";\n if(xCOffset >= 0 && xCOffset < "+s+") {\n xTexelR"+ne+"C"+(ue+2)+" = getX(batch, xR, xCOffset, d1);\n } else {\n xTexelR"+ne+"C"+(ue+2)+" = vec4(0.);\n }\n\n xR"+ne+"C"+ue+" = vec4(\n xTexelR"+ne+"C"+ue+".xy, xTexelR"+ne+"C"+(ue+2)+".xy);\n ",ue+1<R&&(J+="\n xR"+ne+"C"+(ue+1)+" = vec4(\n xTexelR"+ne+"C"+ue+".zw, xTexelR"+ne+"C"+(ue+2)+".zw);\n ")),J+="}");ue<R&&(J+="\n vec4 wTexelR"+ne+"C"+ue+" = getW("+ne+", "+ue+", d1, q);\n wR"+ne+"C"+ue+" = vec4(wTexelR"+ne+"C"+ue+".xz, wTexelR"+ne+"C"+ue+".xz);\n ",ue+1<R&&(J+="\n vec4 wTexelR"+ne+"C"+(ue+1)+" = getW("+ne+", "+(ue+1)+", d1, q);\n wR"+ne+"C"+(ue+1)+" =\n vec4(wTexelR"+ne+"C"+(ue+1)+".xz, wTexelR"+ne+"C"+(ue+1)+".xz);"))}for(ne=0;ne<x;ne++)for(ue=0;ue<R;ue++)J+="dotProd += xR"+ne+"C"+ue+" * wR"+ne+"C"+ue+";";var Oe="",Fe="";e&&(Oe=r?"vec4 activation(vec4 a) {\n vec4 b = getPreluActivationWeightsAtOutCoords();\n "+e+"\n }":"vec4 activation(vec4 x) {\n "+e+"\n }",Fe="result = activation(result);");var et=n?"result += getBiasAtOutCoords();":"";n&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),this.userCode="\n "+Oe+"\n\n const ivec2 strides = ivec2("+u+", "+d+");\n const ivec2 pads = ivec2("+c+", "+l+");\n\n void main() {\n\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n ivec2 xRCCorner = coords.yz * strides - pads;\n int d2 = coords.w;\n int d1 = d2;\n int q = 0;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n vec4 dotProd = vec4(0.);\n\n "+J+"\n\n vec4 result = dotProd;\n "+et+"\n "+Fe+"\n setOutput(result);\n }\n "},C9=function(t,n,e,r,i){this.variableNames=["Image","Boxes","BoxInd"],this.outputShape=[];var s=t[0],c=t[1],l=t[2],p=e[0],M=e[1];this.outputShape=[n[0],p,M,t[3]];var R=[c-1+".0",l-1+".0"],U=R[0],J=R[1],ne=p>1?[""+(c-1)/(p-1),"(y2-y1) * height_ratio","y1*"+U+" + float(y)*(height_scale)"]:["0.0","0.0","0.5 * (y1+y2) * "+U],Oe=M>1?[""+(l-1)/(M-1),"(x2-x1) * width_ratio","x1*"+J+" + float(x)*(width_scale)"]:["0.0","0.0","0.5 * (x1+x2) * "+J];this.userCode="\n const float height_ratio = float("+ne[0]+");\n const float width_ratio = float("+Oe[0]+");\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int y = coords[1];\n int x = coords[2];\n int d = coords[3];\n\n // get box vals\n float y1 = getBoxes(b,0);\n float x1 = getBoxes(b,1);\n float y2 = getBoxes(b,2);\n float x2 = getBoxes(b,3);\n\n // get image in batch index\n int bInd = round(getBoxInd(b));\n if(bInd < 0 || bInd >= "+s+") {\n return;\n }\n\n float height_scale = "+ne[1]+";\n float width_scale = "+Oe[1]+";\n\n float in_y = "+ne[2]+";\n if( in_y < 0.0 || in_y > "+U+" ) {\n setOutput(float("+i+"));\n return;\n }\n float in_x = "+Oe[2]+";\n if( in_x < 0.0 || in_x > "+J+" ) {\n setOutput(float("+i+"));\n return;\n }\n\n vec2 sourceFracIndexCR = vec2(in_x,in_y);\n if("+("bilinear"===r?1:0)+" == 1) {\n // Compute the four integer indices.\n ivec2 sourceFloorCR = ivec2(sourceFracIndexCR);\n ivec2 sourceCeilCR = ivec2(ceil(sourceFracIndexCR));\n\n float topLeft = getImage(b, sourceFloorCR.y, sourceFloorCR.x, d);\n float bottomLeft = getImage(b, sourceCeilCR.y, sourceFloorCR.x, d);\n float topRight = getImage(b, sourceFloorCR.y, sourceCeilCR.x, d);\n float bottomRight = getImage(b, sourceCeilCR.y, sourceCeilCR.x, d);\n\n vec2 fracCR = sourceFracIndexCR - vec2(sourceFloorCR);\n\n float top = topLeft + (topRight - topLeft) * fracCR.x;\n float bottom = bottomLeft + (bottomRight - bottomLeft) * fracCR.x;\n float newValue = top + (bottom - top) * fracCR.y;\n setOutput(newValue);\n } else {\n // Compute the coordinators of nearest neighbor point.\n ivec2 sourceNearestCR = ivec2(floor(\n sourceFracIndexCR + vec2(0.5,0.5)));\n float newValue = getImage(b, sourceNearestCR.y, sourceNearestCR.x, d);\n setOutput(newValue);\n }\n }\n "},km=function(t,n,e){this.variableNames=["x"],this.outputShape=t;var r=t.length,i=t[t.length-1],s=e?"<":">";this.userCode="\n int getIndex(int i) {\n "+(e?"return "+i+" -i - 1;":"return i;")+"\n }\n\n void main() {\n "+Gi(r)+" coords = getOutputCoords();\n int end = "+Dm(r,"coords")+";\n float val = 0.0;\n for (int i = "+i+" - 1; i >= 0; i -= 1) {\n int idx = getIndex(i);\n if (idx "+s+" end) {\n continue;\n }\n if (idx == end && "+n+") {\n continue;\n }\n "+Dm(r,"coords")+" = idx;\n val += getX("+function(c,l){if(1===c)return""+l;if(2===c)return l+".x, "+l+".y";if(3===c)return l+".x, "+l+".y, "+l+".z";if(4===c)return l+".x, "+l+".y, "+l+".z, "+l+".w";throw Error("Cumulative sum for rank "+c+" is not yet supported")}(r,"coords")+");\n }\n setOutput(val);\n }\n "};function Dm(t,n){if(1===t)return""+n;if(2===t)return n+".y";if(3===t)return n+".z";if(4===t)return n+".w";throw Error("Cumulative sum for rank "+t+" is not yet supported")}var b9=function(t){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0,this.outPackingScheme=cr.DENSE;var n=ca(t),e=Bs();this.outputShape=t,this.userCode="\n ivec3 outCoordsFromFlatIndex(int index) {\n "+v2(["r","c","d"],t)+"\n return ivec3(r, c, d);\n }\n\n void main() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+n[0]+", "+n[1]+"));\n int index = 4 * (resTexRC.x * "+n[1]+" + resTexRC.y);\n\n vec4 result = vec4(0.);\n\n for (int i=0; i<4; i++) {\n int flatIndex = index + i;\n ivec3 rc = outCoordsFromFlatIndex(flatIndex);\n result[i] = getA(rc.x, rc.y, rc.z);\n }\n\n "+e.output+" = result;\n }\n "},L9=function(t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outPackingScheme=cr.DENSE;var n=ca(t),e=Bs();this.outputShape=t,this.userCode="\n ivec3 outCoordsFromFlatIndex(int index) {\n "+v2(["r","c","d"],t)+"\n return ivec3(r, c, d);\n }\n\n void main() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2("+n[0]+", "+n[1]+"));\n int index = 4 * (resTexRC.x * "+n[1]+" + resTexRC.y);\n\n vec4 result = vec4(0.);\n\n for (int i=0; i<4; i++) {\n int flatIndex = index + i;\n ivec3 rc = outCoordsFromFlatIndex(flatIndex);\n result[i] = getChannel(getA(rc.x, rc.y, rc.z), vec2(rc.y, rc.z));\n }\n\n "+e.output+" = result;\n }\n "},S9=function(){function t(n,e,r){this.variableNames=["x"],this.outputShape=[],this.outputShape=n,this.blockSize=e,this.dataFormat=r,this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int h = "+this.getHeightCoordString()+";\n int w = "+this.getWidthCoordString()+";\n int d = "+this.getDepthCoordString()+";\n\n int in_h = h / "+e+";\n int offset_h = imod(h, "+e+");\n int in_w = w / "+e+";\n int offset_w = imod(w, "+e+");\n int offset_d = (offset_h * "+e+" + offset_w) *\n "+this.getOutputDepthSize()+";\n int in_d = d + offset_d;\n\n float result = "+this.getInputSamplingString()+";\n setOutput(result);\n }\n "}return t.prototype.getHeightCoordString=function(){return"NHWC"===this.dataFormat?"coords[1]":"coords[2]"},t.prototype.getWidthCoordString=function(){return"NHWC"===this.dataFormat?"coords[2]":"coords[3]"},t.prototype.getDepthCoordString=function(){return"NHWC"===this.dataFormat?"coords[3]":"coords[1]"},t.prototype.getOutputDepthSize=function(){return"NHWC"===this.dataFormat?this.outputShape[3]:this.outputShape[1]},t.prototype.getInputSamplingString=function(){return"NHWC"===this.dataFormat?"getX(b, in_h, in_w, in_d)":"getX(b, in_d, in_h, in_w)"},t}(),Pm=function(t){this.variableNames=["X"],this.outputShape=[t,t],this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n float val = coords[0] == coords[1] ? getX(coords[0]) : 0.0;\n setOutput(val);\n }\n "},T9=function(t){this.variableNames=["A"],this.outTexUsage=Kn.DOWNLOAD;var n=Bs();this.outputShape=t,this.userCode="\n "+$3+"\n\n void main() {\n float x = getAAtOutCoords();\n "+n.output+" = encode_float(x);\n }\n "},w9=function(t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!1,this.outTexUsage=Kn.DOWNLOAD;var n=Bs();this.outputShape=t,this.userCode="\n "+$3+"\n\n void main() {\n ivec3 coords = getOutputCoords();\n float x = getChannel(getAAtOutCoords(), vec2(coords.y, coords.z));\n "+n.output+" = encode_float(x);\n }\n "},E9=function(t,n,e){void 0===e&&(e=!1),this.variableNames=["A"];var r=Bs(),i=n[0],s=n[1];this.outputShape=t;var c="result";e&&(c="floor(result * 255. + 0.5)"),this.userCode="\n "+cd(t)+"\n\n void main() {\n ivec3 coords = getOutputCoords();\n\n int flatIndex = getFlatIndex(coords);\n int offset = imod(flatIndex, 4);\n\n flatIndex = idiv(flatIndex, 4, 1.);\n \n int r = flatIndex / "+s+";\n int c = imod(flatIndex, "+s+");\n vec2 uv = (vec2(c, r) + halfCR) / vec2("+s+".0, "+i+".0);\n vec4 values = "+r.texture2D+"(A, uv);\n\n float result;\n\n if(offset == 0) {\n result = values[0];\n } else if(offset == 1) {\n result = values[1];\n } else if(offset == 2) {\n result = values[2];\n } else {\n result = values[3];\n }\n\n "+r.output+" = vec4("+c+", 0., 0., 0.);\n }\n "},x9=function(t,n,e){void 0===e&&(e=!1),this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0;var r=Bs(),i=n[0],s=n[1];this.outputShape=t;var c="",l="result";e&&(l="floor(result * 255. + 0.5)");for(var u=0;u<=1;u++)for(var d=0;d<=1;d++){var p=2*u+d;c+="\n localCoords = coords;\n if(localCoords[2] + "+d+" < "+t[2]+") {\n localCoords[2] += "+d+";\n if(localCoords[1] + "+u+" < "+t[1]+") {\n localCoords[1] += "+u+";\n\n flatIndex = getFlatIndex(localCoords);\n offset = imod(flatIndex, 4);\n\n flatIndex = idiv(flatIndex, 4, 1.);\n\n r = flatIndex / "+s+";\n c = imod(flatIndex, "+s+");\n uv = (vec2(c, r) + halfCR) / vec2("+s+".0, "+i+".0);\n values = "+r.texture2D+"(A, uv);\n\n if(offset == 0) {\n result["+p+"] = values[0];\n } else if(offset == 1) {\n result["+p+"] = values[1];\n } else if(offset == 2) {\n result["+p+"] = values[2];\n } else {\n result["+p+"] = values[3];\n }\n }\n }\n "}this.userCode="\n "+cd(t)+"\n\n void main() {\n ivec3 coords = getOutputCoords();\n\n vec4 result = vec4(0.);\n int flatIndex, r, c, offset;\n ivec3 localCoords;\n vec2 uv;\n vec4 values;\n\n "+c+"\n\n "+r.output+" = "+l+";\n }\n "},Om=function(t,n,e){this.variableNames=["real","imag"];var r=n[1];this.outputShape=n;var i=e?"2.0 * "+Math.PI:"-2.0 * "+Math.PI;this.userCode="\n const float exponentMultiplier = "+i+";\n\n float unaryOpComplex(float real, float expR, float imag, float expI) {\n "+t+"\n }\n\n float mulMatDFT(int batch, int index) {\n float indexRatio = float(index) / float("+r+");\n float exponentMultiplierTimesIndexRatio =\n exponentMultiplier * indexRatio;\n\n float result = 0.0;\n\n for (int i = 0; i < "+r+"; i++) {\n // x = (-2|2 * PI / N) * index * i;\n float x = exponentMultiplierTimesIndexRatio * float(i);\n float expR = cos(x);\n float expI = sin(x);\n float real = getReal(batch, i);\n float imag = getImag(batch, i);\n\n result +=\n unaryOpComplex(real, expR, imag, expI) / "+(e?r+".0":"1.0")+";\n }\n\n return result;\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n setOutput(mulMatDFT(coords[0], coords[1]));\n }\n "},P9=function(){function t(n,e){this.outputShape=[],this.variableNames=["x"],this.outputShape=n,this.userCode="\n uniform float value;\n void main() {\n // Input can be obtained from uniform value.\n setOutput(value);\n }\n "}return t.prototype.getCustomSetupFunc=function(n){var e=this;return function(r,i){null==e.valueLoc&&(e.valueLoc=r.getUniformLocationNoThrow(i,"value")),r.gl.uniform1f(e.valueLoc,n)}},t}(),O9=function(t,n,e){this.variableNames=["A","indices"];var r=t.slice();r[e]=n,this.outputShape=r,this.rank=r.length;var i=Gi(this.rank),s=function(c,l){var u=c.length;if(u>4)throw Error("Gather for rank "+u+" is not yet supported");if(1===u)return"int(getIndices(resRC))";for(var d=["resRC.x","resRC.y","resRC.z","resRC.w"],p=[],M=0;M<c.length;M++)p.push(M===l?"int(getIndices("+d[M]+"))":""+d[M]);return p.join()}(t,e);this.userCode="\n void main() {\n "+i+" resRC = getOutputCoords();\n setOutput(getA("+s+"));\n }\n "},I9=function(t,n,e){this.sliceDim=t,this.strides=n,this.variableNames=["x","indices"],this.outputShape=e;var r=Gi(n.length),i=Gi(e.length);this.userCode="\n "+r+" strides = "+r+"("+this.strides+");\n void main() {\n "+i+" coords = getOutputCoords();\n int flattenIndex = 0;\n for (int j = 0; j < "+this.sliceDim+"; j++) {\n int index = round(getIndices(coords[0], j));\n flattenIndex += index * "+(this.sliceDim>1?"strides[j]":"strides")+";\n }\n setOutput(getX(flattenIndex, coords[1]));\n }\n "};function Im(t,n){var e=Bs();return Be(t,n,e.version+"\n precision highp float;\n "+e.attribute+" vec3 clipSpacePos;\n "+e.attribute+" vec2 uv;\n "+e.varyingVs+" vec2 resultUV;\n\n void main() {\n gl_Position = vec4(clipSpacePos, 1);\n resultUV = uv;\n }")}function Am(t,n){return vr(t,n,new Float32Array([-1,1,0,0,1,-1,-1,0,0,0,1,1,0,1,1,1,-1,0,1,0]))}function Nm(t,n){return mr(t,n,new Uint16Array([0,1,2,2,1,3]))}function Pl(t,n,e,r,i,s,c){No(e,r);var l=zr(t,n),u=t.TEXTURE_2D;return Vn(t,n,function(){return t.bindTexture(u,l)}),Vn(t,n,function(){return t.texParameteri(u,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE)}),Vn(t,n,function(){return t.texParameteri(u,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE)}),Vn(t,n,function(){return t.texParameteri(u,t.TEXTURE_MIN_FILTER,t.NEAREST)}),Vn(t,n,function(){return t.texParameteri(u,t.TEXTURE_MAG_FILTER,t.NEAREST)}),Vn(t,n,function(){return t.texImage2D(u,0,i,e,r,0,s,c,null)}),Vn(t,n,function(){return t.bindTexture(t.TEXTURE_2D,null)}),l}function zm(t,n,e,r,i){var s=Qa(e,r);return Pl(t,n,s[0],s[1],i.internalFormatFloat,i.textureFormatFloat,t.FLOAT)}function Rm(t,n,e,r,i){var s=Qa(e,r);return Pl(t,n,s[0],s[1],i.internalFormatHalfFloat,i.textureFormatFloat,i.textureTypeHalfFloat)}function D0(t,n,e,r,i){var s=Qa(e,r);return Pl(t,n,s[0],s[1],t.RGBA,t.RGBA,t.UNSIGNED_BYTE)}function Ym(t,n,e,r,i){var s=Ca(e,r);return Pl(t,n,s[0],s[1],i.internalFormatPackedFloat,t.RGBA,t.FLOAT)}function Fm(t,n,e,r,i){var s=Ca(e,r);return Pl(t,n,s[0],s[1],i.internalFormatPackedHalfFloat,t.RGBA,i.textureTypeHalfFloat)}function Hm(t,n,e,r){return Vn(t,n,function(){return t.bindBuffer(t.ARRAY_BUFFER,r)}),Ci(t,n,e,"clipSpacePos",r,3,20,0)&&Ci(t,n,e,"uv",r,2,20,12)}function md(t,n,e,r,i,s,c){var l,u,d;Vn(t,n,function(){return t.bindTexture(t.TEXTURE_2D,e)}),s instanceof Uint8Array?(l=new Uint8Array(r*i*4),u=t.UNSIGNED_BYTE,d=t.RGBA):(l=new Float32Array(r*i*4),u=t.FLOAT,d=c.internalFormatPackedFloat),l.set(s),Vn(t,n,function(){return t.texImage2D(t.TEXTURE_2D,0,d,r,i,0,t.RGBA,u,l)}),Vn(t,n,function(){return t.bindTexture(t.TEXTURE_2D,null)})}function Bm(t,n,e,r){Vn(t,n,function(){return t.bindTexture(t.TEXTURE_2D,e)}),r.data instanceof Uint8Array?Vn(t,n,function(){return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,r.width,r.height,0,t.RGBA,t.UNSIGNED_BYTE,r.data)}):Vn(t,n,function(){return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r)}),Vn(t,n,function(){return t.bindTexture(t.TEXTURE_2D,null)})}function jm(t,n,e,r,i){var s=t.createBuffer();Vn(t,n,function(){return t.bindBuffer(t.PIXEL_PACK_BUFFER,s)});var c=16*e*r;return Vn(t,n,function(){return t.bufferData(t.PIXEL_PACK_BUFFER,c,t.STREAM_READ)}),Vn(t,n,function(){return t.readPixels(0,0,r,e,t.RGBA,t.FLOAT,0)}),Vn(t,n,function(){return t.bindBuffer(t.PIXEL_PACK_BUFFER,null)}),s}function Wm(t,n,e){var r=t,i=new Float32Array(e);return r.bindBuffer(r.PIXEL_PACK_BUFFER,n),r.getBufferSubData(r.PIXEL_PACK_BUFFER,0,i),r.bindBuffer(r.PIXEL_PACK_BUFFER,null),i}function Um(t,n,e,r,i){var s=Qa(e,r),c=s[0],l=s[1],u=new Uint8Array(e*r*4);return Vn(t,n,function(){return t.readPixels(0,0,c,l,i.downloadTextureFormat,t.UNSIGNED_BYTE,u)}),new Float32Array(u.buffer)}function Vm(t,n,e,r,i,s,c,l){var x,u=t,d=new Float32Array((x=Ca(s,c))[0]*x[1]*4);return u.bindBuffer(u.PIXEL_PACK_BUFFER,n),u.getBufferSubData(u.PIXEL_PACK_BUFFER,0,d),u.bindBuffer(u.PIXEL_PACK_BUFFER,null),d}function pd(t,n,e,r){var i=new Float32Array(e*r*4);return Vn(t,n,function(){return t.readPixels(0,0,r,e,t.RGBA,t.FLOAT,i)}),i}var A9=Object.freeze({createVertexShader:Im,createVertexBuffer:Am,createIndexBuffer:Nm,createFloat32MatrixTexture:zm,createFloat16MatrixTexture:Rm,createUnsignedBytesMatrixTexture:D0,createPackedMatrixTexture:Ym,createFloat16PackedMatrixTexture:Fm,bindVertexProgramAttributeStreams:Hm,uploadDenseMatrixToTexture:md,uploadPixelDataToTexture:Bm,createBufferFromOutputTexture:jm,downloadFloat32MatrixFromBuffer:Wm,downloadByteEncodedFloatMatrixFromOutputTexture:Um,downloadPackedMatrixFromBuffer:Vm,downloadMatrixFromPackedOutputTexture:pd}),Gm=function(){function t(n){this.outputTexture=null,this.program=null,this.disposed=!1,this.vertexAttrsAreBound=!1,this.itemsToPoll=[];var e=X().getNumber("WEBGL_VERSION");null!=n?(this.gl=n,$i(e,n)):this.gl=Ii(e);var r="WEBGL_color_buffer_float";if(1===X().getNumber("WEBGL_VERSION")){if(this.textureFloatExtension=Me(this.gl,this.debug,"OES_texture_float"),Gn(this.gl,"OES_texture_half_float"))this.textureHalfFloatExtension=Me(this.gl,this.debug,"OES_texture_half_float");else if(X().get("WEBGL_FORCE_F16_TEXTURES"))throw new Error("GL context does not support half float textures, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");if(this.colorBufferFloatExtension=this.gl.getExtension(r),Gn(this.gl,"EXT_color_buffer_half_float"))this.colorBufferHalfFloatExtension=Me(this.gl,this.debug,"EXT_color_buffer_half_float");else if(X().get("WEBGL_FORCE_F16_TEXTURES"))throw new Error("GL context does not support color renderable half floats, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.")}else if(Gn(this.gl,r="EXT_color_buffer_float"))this.colorBufferFloatExtension=this.gl.getExtension(r);else{if(!Gn(this.gl,"EXT_color_buffer_half_float"))throw new Error("GL context does not support color renderable floats");this.colorBufferHalfFloatExtension=this.gl.getExtension("EXT_color_buffer_half_float")}this.vertexBuffer=Am(this.gl,this.debug),this.indexBuffer=Nm(this.gl,this.debug),this.framebuffer=$o(this.gl,this.debug),this.textureConfig=qi(this.gl,this.textureHalfFloatExtension)}return Object.defineProperty(t.prototype,"debug",{get:function(){return X().getBool("DEBUG")},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){var n=this;if(!this.disposed){null!=this.program&&console.warn("Disposing a GPGPUContext that still has a bound WebGLProgram. This is probably a resource leak, delete the program with GPGPUContext.deleteProgram before disposing."),null!=this.outputTexture&&console.warn("Disposing a GPGPUContext that still has a bound output matrix texture. This is probably a resource leak, delete the output matrix texture with GPGPUContext.deleteMatrixTexture before disposing.");var e=this.gl;Vn(e,this.debug,function(){return e.finish()}),Vn(e,this.debug,function(){return e.bindFramebuffer(e.FRAMEBUFFER,null)}),Vn(e,this.debug,function(){return e.deleteFramebuffer(n.framebuffer)}),Vn(e,this.debug,function(){return e.bindBuffer(e.ARRAY_BUFFER,null)}),Vn(e,this.debug,function(){return e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null)}),Vn(e,this.debug,function(){return e.deleteBuffer(n.indexBuffer)}),this.disposed=!0}},t.prototype.createFloat32MatrixTexture=function(n,e){return this.throwIfDisposed(),zm(this.gl,this.debug,n,e,this.textureConfig)},t.prototype.createFloat16MatrixTexture=function(n,e){return this.throwIfDisposed(),Rm(this.gl,this.debug,n,e,this.textureConfig)},t.prototype.createUnsignedBytesMatrixTexture=function(n,e){return this.throwIfDisposed(),D0(this.gl,this.debug,n,e)},t.prototype.uploadPixelDataToTexture=function(n,e){this.throwIfDisposed(),Bm(this.gl,this.debug,n,e)},t.prototype.uploadDenseMatrixToTexture=function(n,e,r,i){this.throwIfDisposed(),md(this.gl,this.debug,n,e,r,i,this.textureConfig)},t.prototype.createFloat16PackedMatrixTexture=function(n,e){return this.throwIfDisposed(),Fm(this.gl,this.debug,n,e,this.textureConfig)},t.prototype.createPackedMatrixTexture=function(n,e){return this.throwIfDisposed(),Ym(this.gl,this.debug,n,e,this.textureConfig)},t.prototype.deleteMatrixTexture=function(n){var e=this;this.throwIfDisposed(),this.outputTexture===n&&(wi(this.gl,this.debug,this.framebuffer),this.outputTexture=null),Vn(this.gl,this.debug,function(){return e.gl.deleteTexture(n)})},t.prototype.downloadByteEncodedFloatMatrixFromOutputTexture=function(n,e,r){var i=this;return this.downloadMatrixDriver(n,function(){return Um(i.gl,i.debug,e,r,i.textureConfig)})},t.prototype.downloadPackedMatrixFromBuffer=function(n,e,r,i,s,c){return Vm(this.gl,n,0,0,0,s,c)},t.prototype.downloadFloat32MatrixFromBuffer=function(n,e){return Wm(this.gl,n,e)},t.prototype.createBufferFromTexture=function(n,e,r){this.bindTextureToFrameBuffer(n);var i=jm(this.gl,this.debug,e,r);return this.unbindTextureToFrameBuffer(),i},t.prototype.createAndWaitForFence=function(){var n=this.createFence(this.gl);return this.pollFence(n)},t.prototype.createFence=function(n){var e,r,i=this;if(X().getBool("WEBGL_FENCE_API_ENABLED")){var s=n,c=s.fenceSync(s.SYNC_GPU_COMMANDS_COMPLETE,0);n.flush(),r=function(){var l=s.clientWaitSync(c,0,0);return l===s.ALREADY_SIGNALED||l===s.CONDITION_SATISFIED},e=c}else X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")>0?(e=this.beginQuery(),this.endQuery(),r=function(){return i.isQueryAvailable(e,X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))}):r=function(){return!0};return{query:e,isFencePassed:r}},t.prototype.downloadMatrixFromPackedTexture=function(n,e,r){var i=this;return this.downloadMatrixDriver(n,function(){return pd(i.gl,i.debug,e,r)})},t.prototype.createProgram=function(n){this.throwIfDisposed();var e=this.gl,r=ht(e,this.debug,n),i=Im(e,this.debug),s=Bn(e,this.debug);return Vn(e,this.debug,function(){return e.attachShader(s,i)}),Vn(e,this.debug,function(){return e.attachShader(s,r)}),Xn(e,this.debug,s),this.debug&&Yr(e,this.debug,s),this.vertexAttrsAreBound||(this.setProgram(s),this.vertexAttrsAreBound=Hm(e,this.debug,this.program,this.vertexBuffer)),s},t.prototype.deleteProgram=function(n){var e=this;this.throwIfDisposed(),n===this.program&&(this.program=null),null!=n&&Vn(this.gl,this.debug,function(){return e.gl.deleteProgram(n)})},t.prototype.setProgram=function(n){var e=this;this.throwIfDisposed(),this.program=n,null!=this.program&&this.debug&&Yr(this.gl,this.debug,this.program),Vn(this.gl,this.debug,function(){return e.gl.useProgram(n)})},t.prototype.getUniformLocation=function(n,e,r){return void 0===r&&(r=!0),this.throwIfDisposed(),r?ji(this.gl,this.debug,n,e):Ts(this.gl,n,e)},t.prototype.getAttributeLocation=function(n,e){var r=this;return this.throwIfDisposed(),Vn(this.gl,this.debug,function(){return r.gl.getAttribLocation(n,e)})},t.prototype.getUniformLocationNoThrow=function(n,e){return this.throwIfDisposed(),this.gl.getUniformLocation(n,e)},t.prototype.setInputMatrixTexture=function(n,e,r){this.throwIfDisposed(),this.throwIfNoProgram(),ws(this.gl,this.debug,0,n,e,r)},t.prototype.setOutputMatrixTexture=function(n,e,r){this.setOutputMatrixTextureDriver(n,r,e)},t.prototype.setOutputPackedMatrixTexture=function(n,e,r){this.throwIfDisposed();var i=Ca(e,r);this.setOutputMatrixTextureDriver(n,i[0],i[1])},t.prototype.setOutputMatrixWriteRegion=function(n,e,r,i){this.setOutputMatrixWriteRegionDriver(r,n,i,e)},t.prototype.setOutputPackedMatrixWriteRegion=function(n,e,r,i){throw new Error("setOutputPackedMatrixWriteRegion not implemented.")},t.prototype.debugValidate=function(){null!=this.program&&Yr(this.gl,this.debug,this.program),ps(this.gl)},t.prototype.executeProgram=function(){this.throwIfDisposed(),this.throwIfNoProgram();var n=this.gl;this.debug&&this.debugValidate(),Vn(n,this.debug,function(){return n.drawElements(n.TRIANGLES,6,n.UNSIGNED_SHORT,0)})},t.prototype.blockUntilAllProgramsCompleted=function(){var n=this;this.throwIfDisposed(),Vn(this.gl,this.debug,function(){return n.gl.finish()})},t.prototype.getQueryTimerExtension=function(){return null==this.disjointQueryTimerExtension&&(this.disjointQueryTimerExtension=Me(this.gl,this.debug,2===X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")?"EXT_disjoint_timer_query_webgl2":"EXT_disjoint_timer_query")),this.disjointQueryTimerExtension},t.prototype.getQueryTimerExtensionWebGL2=function(){return this.getQueryTimerExtension()},t.prototype.getQueryTimerExtensionWebGL1=function(){return this.getQueryTimerExtension()},t.prototype.beginQuery=function(){if(2===X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")){var n=this.gl,e=this.getQueryTimerExtensionWebGL2(),r=n.createQuery();return n.beginQuery(e.TIME_ELAPSED_EXT,r),r}var i=this.getQueryTimerExtensionWebGL1(),s=i.createQueryEXT();return i.beginQueryEXT(i.TIME_ELAPSED_EXT,s),s},t.prototype.endQuery=function(){if(2!==X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")){var n=this.getQueryTimerExtensionWebGL1();n.endQueryEXT(n.TIME_ELAPSED_EXT)}else{var e=this.gl,r=this.getQueryTimerExtensionWebGL2();e.endQuery(r.TIME_ELAPSED_EXT)}},t.prototype.waitForQueryAndGetTime=function(n){return st(this,void 0,void 0,function(){var e=this;return Ln(this,function(r){switch(r.label){case 0:return[4,nc(function(){return e.disposed||e.isQueryAvailable(n,X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))})];case 1:return r.sent(),[2,this.getQueryTime(n,X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))]}})})},t.prototype.getQueryTime=function(n,e){if(0===e)return null;if(2===e){var r=this.gl;return r.getQueryParameter(n,r.QUERY_RESULT)/1e6}var i=this.getQueryTimerExtensionWebGL1();return i.getQueryObjectEXT(n,i.QUERY_RESULT_EXT)/1e6},t.prototype.isQueryAvailable=function(n,e){if(0===e)return!0;if(2===e){var r=this.gl,i=this.getQueryTimerExtensionWebGL2(),s=r.getQueryParameter(n,r.QUERY_RESULT_AVAILABLE);return null==this.disjoint&&(this.disjoint=this.gl.getParameter(i.GPU_DISJOINT_EXT)),s&&!this.disjoint}return s=(i=this.getQueryTimerExtensionWebGL1()).getQueryObjectEXT(n,i.QUERY_RESULT_AVAILABLE_EXT),null==this.disjoint&&(this.disjoint=this.gl.getParameter(i.GPU_DISJOINT_EXT)),s&&!this.disjoint},t.prototype.pollFence=function(n){var e=this;return new Promise(function(r){e.addItemToPoll(function(){return n.isFencePassed()},function(){return r()})})},t.prototype.pollItems=function(){for(var n=function(r){for(var i=0;i<r.length&&r[i]();++i);return i-1}(this.itemsToPoll.map(function(r){return r.isDoneFn})),e=0;e<=n;++e)(0,this.itemsToPoll[e].resolveFn)();this.itemsToPoll=this.itemsToPoll.slice(n+1)},t.prototype.addItemToPoll=function(n,e){var r=this;this.itemsToPoll.push({isDoneFn:n,resolveFn:e}),this.itemsToPoll.length>1||nc(function(){return r.pollItems(),0===r.itemsToPoll.length})},t.prototype.bindTextureToFrameBuffer=function(n){this.throwIfDisposed(),Ki(this.gl,this.debug,n,this.framebuffer),this.debug&&ps(this.gl)},t.prototype.unbindTextureToFrameBuffer=function(){null!=this.outputTexture?(Ki(this.gl,this.debug,this.outputTexture,this.framebuffer),this.debug&&ps(this.gl)):wi(this.gl,this.debug,this.framebuffer)},t.prototype.downloadMatrixDriver=function(n,e){this.bindTextureToFrameBuffer(n);var r=e();return this.unbindTextureToFrameBuffer(),r},t.prototype.setOutputMatrixTextureDriver=function(n,e,r){this.throwIfDisposed();var i=this.gl;Ki(i,this.debug,n,this.framebuffer),this.debug&&ps(i),this.outputTexture=n,Vn(i,this.debug,function(){return i.viewport(0,0,e,r)}),Vn(i,this.debug,function(){return i.scissor(0,0,e,r)})},t.prototype.setOutputMatrixWriteRegionDriver=function(n,e,r,i){var s=this;this.throwIfDisposed(),Vn(this.gl,this.debug,function(){return s.gl.scissor(n,e,r,i)})},t.prototype.throwIfDisposed=function(){if(this.disposed)throw new Error("Attempted to use disposed GPGPUContext.")},t.prototype.throwIfNoProgram=function(){if(null==this.program)throw new Error("No GPU program is currently set.")},t}();function _d(t,n){if(t.length!==n.length)throw Error("Binary was compiled with "+t.length+" inputs, but was executed with "+n.length+" inputs");t.forEach(function(e,r){var i=e.logicalShape,s=n[r],c=s.shape;if(!yi(i,c))throw Error("Binary was compiled with different shapes than the current args. Shapes "+i+" and "+c+" must match");if(!e.isUniform||!s.isUniform){var l=e.texShape,u=s.isUniform?null:s.texData.texShape;if(!yi(l,u))throw Error("Binary was compiled with different texture shapes than the current args. Shape "+l+" and "+u+" must match")}})}var N9=function(t,n,e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=t;for(var i=e.inChannels,s=e.strideWidth,c=e.strideHeight,l=e.padInfo,u=e.outWidth,d=e.dilationWidth,p=e.dilationHeight,M=e.dataFormat,x=l.left,R=l.top,U=i*e.filterWidth,J=Bs(),ne="channelsLast"===M,ue=ne?0:1,Ie=ne?1:2,Ae="",Oe=0;Oe<=1;Oe++)for(var Fe=0;Fe<=1;Fe++)Ae+="\n blockIndex = rc.y + "+Fe+";\n pos = rc.x + "+Oe+";\n\n if(blockIndex < "+t[1]+" && pos < "+t[0]+") {\n offsetY = int(blockIndex / ("+u+")) * "+c+" - "+R+";\n d0 = offsetY + "+p+" * (pos / "+U+");\n\n if(d0 < "+n[ue]+" && d0 >= 0) {\n\n offsetX = int(mod(float(blockIndex), "+u+".) * "+s+". - "+x+".);\n d1 = offsetX + "+d+" * (int(mod(float(pos), "+U+".) / "+i+".));\n\n if(d1 < "+n[Ie]+" && d1 >= 0) {\n\n ch = int(mod(float(pos), "+i+".));\n\n if ("+ne+") {\n innerDims = vec2(d1, ch);\n result["+(2*Oe+Fe)+"] = getChannel(\n getA(d0, int(innerDims.x),\n int(innerDims.y)), innerDims);\n } else {\n innerDims = vec2(d0, d1);\n result["+(2*Oe+Fe)+"] = getChannel(\n getA(ch, int(innerDims.x),\n int(innerDims.y)), innerDims);\n }\n }\n }\n }\n ";this.userCode="\n void main() {\n ivec2 rc = getOutputCoords();\n\n vec4 result = vec4(0);\n\n int blockIndex, pos, offsetY, d0, offsetX, d1, ch;\n vec2 innerDims;\n\n "+Ae+"\n\n "+J.output+" = result;\n }\n "},z9=function(t,n,e,r,i){this.variableNames=["x"],this.outputShape=[];var c=n,l=t[3]-1;this.outputShape=t;var u="float("+e+") + float("+r+") * sum";this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int r = coords[1];\n int c = coords[2];\n int d = coords[3];\n float x = getX(b, r, c, d);\n float sum = 0.0;\n for (int j = -"+c+"; j <= "+c+"; j++) {\n int idx = d + j;\n if (idx >= 0 && idx <= "+l+") {\n float z = getX(b, r, c, idx);\n sum += z * z;\n }\n }\n float val = x * "+(.5===i?"inversesqrt("+u+")":1===i?"1.0/("+u+")":"exp(log("+u+") * float(-"+i+"));")+";\n setOutput(val);\n }\n "},R9=function(t,n,e,r,i){this.variableNames=["inputImage","outputImage","dy"],this.outputShape=[],this.outputShape=t,this.depth=t[3],this.depthRadius=n,this.bias=e,this.alpha=r,this.beta=i,this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int r = coords[1];\n int c = coords[2];\n\n float result = 0.0;\n for (int d = 0; d < "+this.depth+"; ++d) {\n int depthBegin = int(max(0.0, float(d - "+n+")));\n int depthEnd = int(min(float("+this.depth+"),\n float(d + "+n+" + 1)));\n\n const int MIN_DEPTH_BEGIN = 0;\n const int MAX_DEPTH_END = "+this.depth+";\n\n float norm = 0.0;\n for (int k = MIN_DEPTH_BEGIN; k < MAX_DEPTH_END; ++k) {\n if (k < depthBegin){\n continue;\n }\n else if (k >= depthBegin && k < depthEnd) {\n norm += getInputImage(b, r, c, k) * getInputImage(b, r, c, k);\n }\n else {\n break;\n }\n }\n\n norm = float("+r+") * norm + float("+e+");\n\n for(int k = MIN_DEPTH_BEGIN; k < MAX_DEPTH_END; ++k){\n if (k < depthBegin){\n continue;\n }\n else if (k >= depthBegin && k < depthEnd){\n float dyi = -2.0 * float("+r+")\n * float("+i+")\n * getInputImage(b ,r ,c, k) * getOutputImage(b, r, c, d)\n / norm;\n if (k == d) {\n dyi += pow(norm, -1.0 * "+i+");\n }\n if (k == coords[3]) {\n dyi *= getDy(b, r, c, d);\n result += dyi;\n }\n }\n else {\n break;\n }\n }\n }\n setOutput(result);\n }\n "},$m=function(t,n,e,r,i){this.variableNames=["x"],this.outputShape=[],this.packedInputs=!0,this.packedOutput=!0;var c=n,l=t[3]-1;this.outputShape=t;var u="float("+e+") + float("+r+") * sum";this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords.x;\n int r = coords.y;\n int c = coords.z;\n int d = coords.w;\n\n bool hasNextCol = d < "+this.outputShape[3]+";\n bool hasNextRow = c < "+this.outputShape[2]+";\n\n vec4 sum = vec4(0.);\n vec4 xFragAtOutputCoords = getX(b, r, c, d);\n\n vec4 xAtOutputCoords = vec4(\n getChannel(xFragAtOutputCoords, vec2(c, d)),\n hasNextCol ?\n getChannel(xFragAtOutputCoords, vec2(c, d + 1)) : 0.0,\n hasNextRow ?\n getChannel(xFragAtOutputCoords , vec2(c + 1, d)) : 0.0,\n (hasNextRow && hasNextCol) ?\n getChannel(xFragAtOutputCoords, vec2(c + 1, d + 1)) : 0.0\n );\n\n int firstChannel = d - "+c+";\n vec2 cache = vec2(0.);\n if(firstChannel >= 0){\n vec4 firstChannelFrag = getX(b, r, c, firstChannel);\n cache.x = getChannel(firstChannelFrag, vec2(c, firstChannel));\n if(hasNextRow){\n cache.y = getChannel(firstChannelFrag, vec2(c + 1, firstChannel));\n }\n }\n\n ivec2 depth = ivec2(d, d + 1);\n for (int j = - "+c+"; j <= "+c+"; j++) {\n ivec2 idx = depth + j;\n bvec2 aboveLowerBound = greaterThanEqual(idx, ivec2(0));\n bvec2 belowUpperBound = lessThanEqual(idx, ivec2("+l+"));\n\n bool depthInRange = aboveLowerBound.x && belowUpperBound.x;\n bool depthPlusOneInRange = aboveLowerBound.y && belowUpperBound.y;\n\n if(depthInRange || depthPlusOneInRange){\n vec4 z = vec4(0.);\n vec4 xFragAtCurrentDepth;\n z.xz = cache.xy;\n if(depthPlusOneInRange && hasNextCol){\n xFragAtCurrentDepth = idx.y != d ?\n getX(b, r, c, idx.y) : xFragAtOutputCoords;\n z.y = getChannel(xFragAtCurrentDepth, vec2(c, idx.y));\n if(hasNextRow){\n z.w = getChannel(xFragAtCurrentDepth, vec2(c + 1, idx.y));\n }\n }\n cache.xy = z.yw;\n sum += z * z;\n }\n }\n vec4 result = xAtOutputCoords * "+(.5===i?"inversesqrt("+u+")":1===i?"1.0/("+u+")":"exp(log("+u+") * float(-"+i+"));")+";\n setOutput(result);\n }\n "},Y9=function(t){this.variableNames=["dy","maxPos"],this.outputShape=t.inShape;var i=t.effectiveFilterHeight,s=t.effectiveFilterWidth;this.userCode="\n const ivec2 pads = ivec2("+(i-1-t.padInfo.top)+", "+(s-1-t.padInfo.left)+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n\n ivec2 dyRCCorner = coords.yz - pads;\n int dyRCorner = dyRCCorner.x;\n int dyCCorner = dyRCCorner.y;\n\n // Convolve dy(?, ?, d) with pos mask(:, :, d) to get dx(xR, xC, d).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < "+i+";\n wR += "+t.dilationHeight+") {\n float dyR = float(dyRCorner + wR) / "+t.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+t.outHeight+".0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < "+s+"; wC++) {\n float dyC = float(dyCCorner + wC) / "+t.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+t.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(b, idyR, idyC, d);\n int maxPosValue = "+(i*s-1)+" - int(getMaxPos(b, idyR, idyC, d));\n\n // Get the current value, check it against the value from the\n // position matrix.\n int curPosValue = wR * "+s+" + wC;\n float mask = float(maxPosValue == curPosValue ? 1.0 : 0.0);\n\n dotProd += dyValue * mask;\n }\n }\n setOutput(dotProd);\n }\n "},F9=function(t){this.variableNames=["dy","maxPos"],this.outputShape=t.inShape;var l=t.effectiveFilterDepth,u=t.effectiveFilterHeight,d=t.effectiveFilterWidth;this.userCode="\n const ivec3 pads = ivec3("+(l-1-t.padInfo.front)+", "+(u-1-t.padInfo.top)+", "+(d-1-t.padInfo.left)+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyDCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n // Convolve dy(?, ?, ?, ch) with pos mask(:, :, :, d) to get\n // dx(xD, xR, xC, ch).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int wD = 0; wD < "+l+";\n wD += "+t.dilationDepth+") {\n float dyD = float(dyDCorner + wD) / "+t.strideDepth+".0;\n\n if (dyD < 0.0 || dyD >= "+t.outDepth+".0 || fract(dyD) > 0.0) {\n continue;\n }\n int idyD = int(dyD);\n\n for (int wR = 0; wR < "+u+";\n wR += "+t.dilationHeight+") {\n float dyR = float(dyRCorner + wR) / "+t.strideHeight+".0;\n\n if (dyR < 0.0 || dyR >= "+t.outHeight+".0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < "+d+";\n wC += "+t.dilationWidth+") {\n float dyC = float(dyCCorner + wC) / "+t.strideWidth+".0;\n\n if (dyC < 0.0 || dyC >= "+t.outWidth+".0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(batch, idyD, idyR, idyC, ch);\n int maxPosValue = "+(l*u*d-1)+" -\n int(getMaxPos(batch, idyD, idyR, idyC, ch));\n\n // Get the current value, check it against the value from the\n // position matrix.\n int curPosValue =\n wD * "+u+" * "+d+" +\n wR * "+d+" + wC;\n float mask = float(maxPosValue == curPosValue ? 1.0 : 0.0);\n\n dotProd += dyValue * mask;\n }\n }\n }\n setOutput(dotProd);\n }\n "},X3=function(t,n,e,r,i,s,c){void 0===e&&(e=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===s&&(s=null),void 0===c&&(c=!1),this.variableNames=["matrixA","matrixB"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=n;var u=Math.ceil((e?t[1]:t[2])/2),d=e?"i * 2, rc.y":"rc.y, i * 2",p=r?"rc.z, i * 2":"i * 2, rc.z",M=e?["a.xxyy","a.zzww"]:["a.xxzz","a.yyww"],x=r?["b.xzxz","b.ywyw"]:["b.xyxy","b.zwzw"],R="",U="";s&&(R=c?"vec4 activation(vec4 a) {\n vec4 b = getPreluActivationWeightsAtOutCoords();\n "+s+"\n }":"vec4 activation(vec4 x) {\n "+s+"\n }",U="result = activation(result);");var J=i?"result += getBiasAtOutCoords();":"";i&&this.variableNames.push("bias"),c&&this.variableNames.push("preluActivationWeights"),this.userCode="\n "+R+"\n\n const float sharedDimension = "+u+".0;\n\n vec4 dot2x2ARowBCol(ivec3 rc) {\n vec4 result = vec4(0);\n for (int i = 0; i < "+u+"; i++) {\n vec4 a = getMatrixA(rc.x, "+d+");\n vec4 b = getMatrixB(rc.x, "+p+");\n\n // These swizzled products need to be separately added.\n // See: https://github.com/tensorflow/tfjs/issues/1735\n result += ("+M[0]+" * "+x[0]+");\n result += ("+M[1]+" * "+x[1]+");\n }\n return result;\n }\n\n void main() {\n ivec3 rc = getOutputCoords();\n vec4 result = dot2x2ARowBCol(rc);\n\n "+J+"\n\n "+U+"\n\n setOutput(result);\n }\n "},H9=function(){function t(n,e,r){this.variableNames=["probs"],this.outputShape=[n,r],this.userCode="\n uniform float seed;\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n\n float r = random(seed);\n float cdf = 0.0;\n\n for (int i = 0; i < "+(e-1)+"; i++) {\n cdf += getProbs(batch, i);\n\n if (r < cdf) {\n setOutput(float(i));\n return;\n }\n }\n\n // If no other event happened, last event happened.\n setOutput(float("+(e-1)+"));\n }\n "}return t.prototype.getCustomSetupFunc=function(n){var e=this;return function(r,i){null==e.seedLoc&&(e.seedLoc=r.getUniformLocation(i,"seed")),r.gl.uniform1f(e.seedLoc,n)}},t}(),B9=function(t,n,e,r){this.variableNames=["indices"],this.outputShape=[t,n],this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n int index = round(getIndices(coords.x));\n setOutput(mix(float("+r+"), float("+e+"),\n float(index == coords.y)));\n }\n "},j9=function(t){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0,this.outputShape=t;var l,d,p,n=t.length;if(0===n)this.userCode="\n void main() {\n setOutput(vec4(getA(), 0., 0., 0.));\n }\n ";else{var e=uc("rc",n),r=Gi(n),i=function(l,u,d){if(1===l)return"rc > "+u[0];for(var p="",M=l-2;M<l;M++)p+=d[M]+" >= "+u[M],M<l-1&&(p+="||");return p}(n,t,e),s=function(l,u,d,p){if(1===l)return"";var M=p.slice(-2);return"\n int r = "+M[0]+";\n int c = "+M[1]+";\n int rp1 = r + 1;\n int cp1 = c + 1;\n\n bool cEdge = cp1 >= "+u+";\n bool rEdge = rp1 >= "+d+";\n "}(n,t[t.length-1],t[t.length-2],e),c=(p=function(M,x){for(var R=[],U=0;U<=1;U++)for(var J=0;J<=1;J++){for(var ne=(0===U?"r":"rp1")+", "+(0===J?"c":"cp1"),ue=2;ue<M;ue++)ne=x[x.length-1-ue]+","+ne;R.push(ne)}return R}(d=(l=t).length,e),1===d?"getA(rc),\n rc + 1 >= "+l[0]+" ? 0. : getA(rc + 1),\n 0, 0":"getA("+p[0]+"),\n cEdge ? 0. : getA("+p[1]+"),\n rEdge ? 0. : getA("+p[2]+"),\n rEdge || cEdge ? 0. : getA("+p[3]+")");this.userCode="\n void main() {\n "+r+" rc = getOutputCoords();\n\n if("+i+") {\n setOutput(vec4(0));\n } else {\n "+s+"\n\n setOutput(vec4("+c+"));\n }\n }\n "}},gd=function(t,n,e){this.variableNames=["x"],this.outputShape=n.map(function(u,d){return u[0]+t[d]+u[1]});var r=t.length,i=Gi(r),s=n.map(function(u){return u[0]}).join(","),c=n.map(function(u,d){return u[0]+t[d]}).join(","),l=["coords[0]","coords[1]","coords[2]","coords[3]"].slice(0,r);this.userCode=1!==r?"\n "+i+" start = "+i+"("+s+");\n "+i+" end = "+i+"("+c+");\n\n void main() {\n "+i+" outC = getOutputCoords();\n if (any(lessThan(outC, start)) || any(greaterThanEqual(outC, end))) {\n setOutput(float("+e+"));\n } else {\n "+i+" coords = outC - start;\n setOutput(getX("+l+"));\n }\n }\n ":"\n int start = "+s+";\n int end = "+c+";\n\n void main() {\n int outC = getOutputCoords();\n if (outC < start || outC >= end) {\n setOutput(float("+e+"));\n } else {\n setOutput(getX(outC - start));\n }\n }\n "},W9=function(t,n,e){this.variableNames=["x"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=n.map(function(ne,ue){return ne[0]+t[ue]+ne[1]});for(var r=t.length,i=Gi(r),s=n.map(function(ne){return ne[0]}).join(","),c=n.map(function(ne,ue){return ne[0]+t[ue]}).join(","),l=uc("rc",r),u=uc("source",r),d=l[r-1]+" < "+this.outputShape[r-1],p=1===r?"source":"vec2("+u.slice(-2).join()+")",M=[i+" rc = outputLoc;",l[r-1]+" += 1;\n if("+d+") {\n ",1===r?"":"}\n rc = outputLoc;\n "+l[r-2]+" += 1;\n if("+l[r-2]+" < "+this.outputShape[r-2]+") {",1===r?"":" "+l[r-1]+" += 1;\n if("+d+") {"],x=1===r?"rc < start || rc >= end":"any(lessThan(rc, start)) || any(greaterThanEqual(rc, end))",R="",U=0,J=1===r?2:4;U<J;U++)R+="\n "+M[U]+"\n if ("+x+") {\n result["+U+"] = float("+e+");\n } else {\n "+i+" source = rc - start;\n result["+U+"] = getChannel(getX("+u.join()+"), "+p+");\n }\n ";this.userCode="\n const "+i+" start = "+i+"("+s+");\n const "+i+" end = "+i+"("+c+");\n\n void main() {\n "+i+" outputLoc = getOutputCoords();\n vec4 result = vec4(0.);\n "+(R+=1===r?"} ":"}}")+"\n setOutput(result);\n }\n "},vd=function(t,n,e){if(this.variableNames=["x"],"avg"===n&&e)throw new Error("Cannot compute positions for average pool.");var r=t.filterWidth,i=t.strideHeight,s=t.strideWidth,c=t.dilationHeight,l=t.dilationWidth,u=t.effectiveFilterHeight,d=t.effectiveFilterWidth,p=t.padInfo.top,M=t.padInfo.left;this.outputShape=t.outShape;var x="avg"===n,R="0.0";if(x||(R="-1.0 / 1e-20"),e)this.userCode="\n const ivec2 strides = ivec2("+i+", "+s+");\n const ivec2 pads = ivec2("+p+", "+M+");\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d = coords[3];\n\n ivec2 xRCCorner = coords.yz * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // max/min x(?, ?, d) to get y(yR, yC, d).\n // ? = to be determined\n float minMaxValue = 0.0;\n float minMaxValueFound = 0.0;\n int minMaxPosition = 0;\n float avgValue = 0.0;\n\n for (int wR = 0; wR < "+u+";\n wR += "+c+") {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+d+";\n wC += "+l+") {\n int xC = xCCorner + wC;\n\n if (xC < 0 || xC >= "+t.inWidth+") {\n continue;\n }\n\n float value = getX(batch, xR, xC, d);\n\n // If a min / max value has already been found, use it. If not,\n // use the current value.\n float currMinMaxValue = mix(\n value, minMaxValue, minMaxValueFound);\n if (value >= currMinMaxValue) {\n minMaxValue = value;\n minMaxValueFound = 1.0;\n minMaxPosition = wR * "+d+" + wC;\n }\n }\n }\n setOutput(float(minMaxPosition));\n }\n ";else{var U=n+"("+n+"("+n+"(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])";"avg"===n&&(U="avgValue / count");var J=4*Math.floor(r/4),ne=r%4,ue="\n if ("+x+") {\n avgValue += dot(values, ones);\n } else {\n minMaxValue = max(values, minMaxValue);\n }\n ";this.userCode="\n const ivec2 strides = ivec2("+i+", "+s+");\n const ivec2 pads = ivec2("+p+", "+M+");\n const float initializationValue = "+R+";\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float count = 0.0;\n\n float getValue(int batch, int xR, int xC, int d) {\n if (xC < 0 || xC >= "+t.inWidth+") {\n return initializationValue;\n }\n count += 1.0;\n return getX(batch, xR, xC, d);\n }\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d = coords[3];\n\n ivec2 xRCCorner = coords.yz * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // max/min x(?, ?, d) to get y(yR, yC, d).\n // ? = to be determined\n vec4 minMaxValue = vec4("+R+");\n float avgValue = 0.0;\n count = 0.0;\n\n for (int wR = 0; wR < "+u+";\n wR += "+c+") {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+J+"; wC += 4) {\n int xC = xCCorner + wC * "+l+";\n\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + "+l+", d),\n getValue(batch, xR, xC + 2 * "+l+", d),\n getValue(batch, xR, xC + 3 * "+l+", d)\n );\n\n "+ue+"\n }\n\n int xC = xCCorner + "+J+";\n if ("+(1===ne)+") {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n "+ue+"\n } else if ("+(2===ne)+") {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + "+l+", d),\n initializationValue,\n initializationValue\n );\n\n "+ue+"\n } else if ("+(3===ne)+") {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + "+l+", d),\n getValue(batch, xR, xC + 2 * "+l+", d),\n initializationValue\n );\n\n "+ue+"\n }\n }\n setOutput("+U+");\n }\n "}},yd=function(t,n,e){if(this.variableNames=["x"],"avg"===n&&e)throw new Error("Cannot compute positions for average pool.");var r=t.filterWidth,i=t.strideDepth,s=t.strideHeight,c=t.strideWidth,l=t.dilationDepth,u=t.dilationHeight,d=t.dilationWidth,p=t.effectiveFilterDepth,M=t.effectiveFilterHeight,x=t.effectiveFilterWidth,R=t.padInfo.front,U=t.padInfo.top,J=t.padInfo.left;this.outputShape=t.outShape;var ne="avg"===n,ue="0.0";if(ne||(ue="-1.0 / 1e-20"),e)this.userCode="\n const ivec3 strides =\n ivec3("+i+", "+s+", "+c+");\n const ivec3 pads = ivec3("+R+", "+U+", "+J+");\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 xCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xDCorner = xCorner.x;\n int xRCorner = xCorner.y;\n int xCCorner = xCorner.z;\n\n // max/min x(?, ?, ?, ch) to get y(yD, yR, yC, ch).\n // ? = to be determined\n float minMaxValue = 0.0;\n float minMaxValueFound = 0.0;\n int minMaxPosition = 0;\n\n for (int wD = 0; wD < "+p+";\n wD += "+l+") {\n int xD = xDCorner + wD;\n\n if (xD < 0 || xD >= "+t.inDepth+") {\n continue;\n }\n\n for (int wR = 0; wR < "+M+";\n wR += "+u+") {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+x+";\n wC += "+d+") {\n int xC = xCCorner + wC;\n\n if (xC < 0 || xC >= "+t.inWidth+") {\n continue;\n }\n\n float value = getX(batch, xD, xR, xC, ch);\n\n // If a min / max value has already been found, use it. If not,\n // use the current value.\n float currMinMaxValue = mix(\n value, minMaxValue, minMaxValueFound);\n if (value >= currMinMaxValue) {\n minMaxValue = value;\n minMaxValueFound = 1.0;\n minMaxPosition =\n wD * "+M+" * "+x+" +\n wR * "+x+" + wC;;\n }\n }\n }\n }\n setOutput(float(minMaxPosition));\n }\n ";else{var Ie=n+"("+n+"("+n+"(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])";"avg"===n&&(Ie="avgValue / count");var Ae=4*Math.floor(r/4),Oe=r%4,Fe="\n if ("+ne+") {\n avgValue += dot(values, ones);\n } else {\n minMaxValue = max(values, minMaxValue);\n }\n ";this.userCode="\n const ivec3 strides =\n ivec3("+i+", "+s+", "+c+");\n const ivec3 pads = ivec3("+R+", "+U+", "+J+");\n const float initializationValue = "+ue+";\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float count = 0.0;\n\n float getValue(int batch, int xD, int xR, int xC, int ch) {\n if (xC < 0 || xC >= "+t.inWidth+") {\n return initializationValue;\n }\n count += 1.0;\n return getX(batch, xD, xR, xC, ch);\n }\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 xCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xDCorner = xCorner.x;\n int xRCorner = xCorner.y;\n int xCCorner = xCorner.z;\n\n // max/min x(?, ?, ?, d) to get y(yD, yR, yC, ch).\n // ? = to be determined\n vec4 minMaxValue = vec4("+ue+");\n float avgValue = 0.0;\n count = 0.0;\n\n for (int wD = 0; wD < "+p+";\n wD += "+l+") {\n int xD = xDCorner + wD;\n\n if (xD < 0 || xD >= "+t.inDepth+") {\n continue;\n }\n\n for (int wR = 0; wR < "+M+";\n wR += "+u+") {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= "+t.inHeight+") {\n continue;\n }\n\n for (int wC = 0; wC < "+Ae+"; wC += 4) {\n int xC = xCCorner + wC * "+d+";\n\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + "+d+", ch),\n getValue(batch, xD, xR, xC + 2 * "+d+", ch),\n getValue(batch, xD, xR, xC + 3 * "+d+", ch)\n );\n\n "+Fe+"\n }\n\n int xC = xCCorner + "+Ae+";\n if ("+(1===Oe)+") {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n "+Fe+"\n } else if ("+(2===Oe)+") {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + "+d+", ch),\n initializationValue,\n initializationValue\n );\n\n "+Fe+"\n } else if ("+(3===Oe)+") {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + "+d+", ch),\n getValue(batch, xD, xR, xC + 2 * "+d+", ch),\n initializationValue\n );\n\n "+Fe+"\n }\n }\n setOutput("+Ie+");\n }\n }\n "}},Km=function(t,n){this.variableNames=["x"];var e=t.windowSize,r=t.batchSize,i=t.inSize,s=Math.ceil(i/e);this.outputShape=[r,s];var c="0.0",l="";"prod"===n?c="1.0":"min"===n?(c="1.0 / 1e-20",l="min"):"max"===n&&(c="-1.0 / 1e-20",l="max");var u=n+"("+n+"("+n+"(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])";"sum"===n?u="sumValue":"prod"===n?u="prodValue":"all"===n?u="allValue":"any"===n&&(u="anyValue");var d=4*Math.floor(e/4),p=e%4,M="\n if ("+("sum"===n)+") {\n sumValue += dot(values, ones);\n } else if ("+("prod"===n)+") {\n vec2 tmp = vec2(values[0], values[1]) * vec2(values[2], values[3]);\n prodValue *= tmp[0] * tmp[1];\n } else {\n minMaxValue = "+l+"(values, minMaxValue);\n }\n ",x="vec4";"all"===n?(c="1.0",M="\n bool reducedAllValue = all(values);\n float floatedReducedAllValue = float(reducedAllValue);\n allValue = float(allValue >= 1.0 && floatedReducedAllValue >= 1.0);\n ",x="bvec4"):"any"===n&&(c="0.0",M="\n bool reducedAnyValue = any(values);\n float floatedReducedAnyValue = float(reducedAnyValue);\n anyValue = float(anyValue >= 1.0 || floatedReducedAnyValue >= 1.0);\n ",x="bvec4");var R="";i%e>0&&(R="\n if (inIdx < 0 || inIdx >= "+i+") {\n return initializationValue;\n }\n "),this.userCode="\n const float initializationValue = "+c+";\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float getValue(int batch, int inIdx) {\n "+R+"\n return getX(batch, inIdx);\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = outIdx * "+e+";\n\n vec4 minMaxValue = vec4("+c+");\n float prodValue = 1.0;\n float sumValue = 0.0;\n float allValue = 1.0;\n float anyValue = 0.0;\n\n for (int i = 0; i < "+d+"; i += 4) {\n int inIdx = inOffset + i;\n "+x+" values = "+x+"(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n getValue(batch, inIdx + 3)\n );\n\n "+M+"\n }\n\n int inIdx = inOffset + "+d+";\n if ("+(1===p)+") {\n "+x+" values = "+x+"(\n getValue(batch, inIdx),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n "+M+"\n } else if ("+(2===p)+") {\n "+x+" values = "+x+"(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n initializationValue,\n initializationValue\n );\n\n "+M+"\n } else if ("+(3===p)+") {\n "+x+" values = "+x+"(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n initializationValue\n );\n\n "+M+"\n }\n setOutput("+u+");\n }\n "},U9=function(t,n){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=t;for(var e="",r=0;r<4;r++){var i="thisRC = rc;";r%2==1&&(i+="thisRC.z += 1;"),r>1&&(i+="thisRC.y += 1;"),e+="\n "+i+"\n "+(r>0?"if(thisRC.y < rows && thisRC.z < cols){":"")+"\n int flatIndex = getFlatIndex(thisRC);\n\n ivec3 inputRC = inputCoordsFromReshapedOutCoords(flatIndex);\n vec2 inputRCInnerDims = vec2(float(inputRC.y),float(inputRC.z));\n\n result["+r+"] =\n getChannel(getA(inputRC.x, inputRC.y, inputRC.z), inputRCInnerDims);\n "+(r>0?"}":"")+"\n "}this.userCode="\n \n ivec3 inputCoordsFromReshapedOutCoords(int index) {\n "+v2(["r","c","d"],n)+"\n return ivec3(r, c, d);\n }\n \n "+cd(t)+"\n\n void main() {\n ivec3 rc = getOutputCoords();\n\n vec4 result = vec4(0.);\n\n ivec3 thisRC;\n int rows = "+t[1]+";\n int cols = "+t[2]+";\n\n "+e+"\n\n setOutput(result);\n }\n "},Xm=function(t,n,e){this.variableNames=["dy"],this.outputShape=[],this.outputShape=n.shape;var r=n.shape,i=r[1],s=r[2],c=t.shape,l=c[1],u=c[2],d=[e&&l>1?i-1:i,e&&u>1?s-1:s],p=[e&&l>1?l-1:l,e&&u>1?u-1:u],M=d[0]/p[0],x=d[1]/p[1],R=1/M,U=1/x,J=2*Math.ceil(R)+2,ne=2*Math.ceil(U)+2;this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n int r = coords[1];\n int c = coords[2];\n\n float accumulator = 0.0;\n\n const float heightScale = float("+M+");\n const float widthScale = float("+x+");\n\n const float invHeightScale = float("+R+");\n const float invWidthScale = float("+U+");\n\n const int winHeight = int("+J+");\n const int winWidth = int("+ne+");\n\n // Compute bounds for where in dy we will look\n float startRLerp = floor(float(r) * invHeightScale);\n int startDyR = int(startRLerp - float(winHeight / 2));\n\n float startCLerp = floor(float(c) * invWidthScale);\n int startDyC = int(startCLerp - float(winWidth / 2));\n\n // Loop over dy\n for (int dyROffset = 0; dyROffset < winHeight; dyROffset++) {\n int dyR = dyROffset + startDyR;\n\n // Guard against the window exceeding the bounds of dy\n if (dyR < 0 || dyR >= "+l+") {\n continue;\n }\n\n for (int dyCOffset = 0; dyCOffset < winWidth; dyCOffset++) {\n int dyC = dyCOffset + startDyC;\n\n // Guard against the window exceeding the bounds of dy\n if (dyC < 0 || dyC >= "+u+") {\n continue;\n }\n\n float dxR = float(dyR) * heightScale;\n int topDxRIndex = int(floor(dxR));\n int bottomDxRIndex = int(min(ceil(dxR), "+(i-1)+".0));\n float dxRLerp = dxR - float(topDxRIndex);\n float inverseDxRLerp = 1.0 - dxRLerp;\n\n float dxC = float(dyC) * widthScale;\n int leftDxCIndex = int(floor(dxC));\n int rightDxCIndex = int(min(ceil(dxC), "+(s-1)+".0));\n float dxCLerp = dxC - float(leftDxCIndex);\n float inverseDxCLerp = 1.0 - dxCLerp;\n\n if (r == topDxRIndex && c == leftDxCIndex) {\n // topLeft\n accumulator +=\n getDy(b, dyR, dyC, d) * inverseDxRLerp * inverseDxCLerp;\n }\n\n if (r == topDxRIndex && c == rightDxCIndex) {\n // topRight\n accumulator += getDy(b, dyR, dyC, d) * inverseDxRLerp * dxCLerp;\n }\n\n if (r == bottomDxRIndex && c == leftDxCIndex) {\n // bottomLeft\n accumulator += getDy(b, dyR, dyC, d) * dxRLerp * inverseDxCLerp;\n }\n\n if (r == bottomDxRIndex && c == rightDxCIndex) {\n // bottomRight\n accumulator += getDy(b, dyR, dyC, d) * dxRLerp * dxCLerp;\n }\n }\n }\n // End loop over dy\n\n setOutput(accumulator);\n }\n "},V9=function(t,n,e,r){this.variableNames=["A"],this.outputShape=[];var s=t[1],c=t[2];this.outputShape=[t[0],n,e,t[3]];var u=[r&&n>1?s-1:s,r&&e>1?c-1:c],d=[r&&n>1?n-1:n,r&&e>1?e-1:e];this.userCode="\n const vec2 effectiveInputOverOutputRatioRC = vec2(\n "+u[0]/d[0]+",\n "+u[1]/d[1]+");\n const vec2 inputShapeRC = vec2("+s+".0, "+c+".0);\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n ivec2 yRC = coords.yz;\n\n // Fractional source index.\n vec2 sourceFracIndexRC = vec2(yRC) * effectiveInputOverOutputRatioRC;\n\n // Compute the four integer indices.\n ivec2 sourceFloorRC = ivec2(sourceFracIndexRC);\n ivec2 sourceCeilRC = ivec2(\n min(inputShapeRC - 1.0, ceil(sourceFracIndexRC)));\n\n float topLeft = getA(b, sourceFloorRC.x, sourceFloorRC.y, d);\n float bottomLeft = getA(b, sourceCeilRC.x, sourceFloorRC.y, d);\n float topRight = getA(b, sourceFloorRC.x, sourceCeilRC.y, d);\n float bottomRight = getA(b, sourceCeilRC.x, sourceCeilRC.y, d);\n\n vec2 fracRC = sourceFracIndexRC - vec2(sourceFloorRC);\n\n float top = topLeft + (topRight - topLeft) * fracRC.y;\n float bottom = bottomLeft + (bottomRight - bottomLeft) * fracRC.y;\n float newValue = top + (bottom - top) * fracRC.x;\n\n setOutput(newValue);\n }\n "},Zm=function(t,n,e,r){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=[];var s=t[1],c=t[2],l=t[3];this.outputShape=[t[0],n,e,l];var u=[r&&n>1?s-1:s,r&&e>1?c-1:c],d=[r&&n>1?n-1:n,r&&e>1?e-1:e];this.userCode="\n const vec3 effectiveInputOverOutputRatioRC = vec3(\n "+u[0]/d[0]+",\n "+u[1]/d[1]+",\n "+u[1]/d[1]+");\n const vec3 inputShapeRC = vec3("+s+".0, "+c+".0,\n "+c+".0);\n\n float getAValue(int b, int r, int c, int d) {\n return getChannel(getA(b, r, c, d), vec2(c, d));\n }\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n // Calculate values for next column in yRC.z.\n ivec3 yRC = coords.yzz + ivec3(0, 0, 1);\n\n // Fractional source index.\n vec3 sourceFracIndexRC = vec3(yRC) * effectiveInputOverOutputRatioRC;\n\n // Compute the four integer indices.\n ivec3 sourceFloorRC = ivec3(sourceFracIndexRC);\n ivec3 sourceCeilRC = ivec3(\n min(inputShapeRC - 1.0, ceil(sourceFracIndexRC)));\n\n // Should we calculate next column and row elements in 2x2 packed cell.\n bool hasNextCol = d < "+(l-1)+";\n bool hasNextRow = coords.z < "+(e-1)+";\n\n // In parallel, construct four corners for all four components in\n // packed 2x2 cell.\n vec4 topLeft = vec4(\n getAValue(b, sourceFloorRC.x, sourceFloorRC.y, d),\n hasNextCol ? getAValue(b, sourceFloorRC.x, sourceFloorRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceFloorRC.x, sourceFloorRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceFloorRC.x, sourceFloorRC.z, d + 1) : 0.0);\n\n vec4 bottomLeft = vec4(\n getAValue(b, sourceCeilRC.x, sourceFloorRC.y, d),\n hasNextCol ? getAValue(b, sourceCeilRC.x, sourceFloorRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceCeilRC.x, sourceFloorRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceCeilRC.x, sourceFloorRC.z, d + 1) : 0.0);\n\n vec4 topRight = vec4(\n getAValue(b, sourceFloorRC.x, sourceCeilRC.y, d),\n hasNextCol ? getAValue(b, sourceFloorRC.x, sourceCeilRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceFloorRC.x, sourceCeilRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceFloorRC.x, sourceCeilRC.z, d + 1) : 0.0);\n\n vec4 bottomRight = vec4(\n getAValue(b, sourceCeilRC.x, sourceCeilRC.y, d),\n hasNextCol ? getAValue(b, sourceCeilRC.x, sourceCeilRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceCeilRC.x, sourceCeilRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceCeilRC.x, sourceCeilRC.z, d + 1) : 0.0);\n\n vec3 fracRC = sourceFracIndexRC - vec3(sourceFloorRC);\n\n vec4 top = mix(topLeft, topRight, fracRC.yyzz);\n vec4 bottom = mix(bottomLeft, bottomRight, fracRC.yyzz);\n vec4 newValue = mix(top, bottom, fracRC.x);\n\n setOutput(newValue);\n }\n "},G9=function(t,n,e){this.variableNames=["dy"],this.outputShape=[],this.outputShape=n.shape;var r=n.shape,i=r[1],s=r[2],c=t.shape,l=c[1],u=c[2],d=[e&&l>1?i-1:i,e&&u>1?s-1:s],p=[e&&l>1?l-1:l,e&&u>1?u-1:u],M=d[0]/p[0],x=d[1]/p[1],R=1/M,U=1/x,J=2*Math.ceil(R)+2,ne=2*Math.ceil(U)+2;this.userCode="\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n int r = coords[1];\n int c = coords[2];\n\n float accumulator = 0.0;\n\n const float heightScale = float("+M+");\n const float widthScale = float("+x+");\n\n const float invHeightScale = float("+R+");\n const float invWidthScale = float("+U+");\n\n const int winHeight = int("+J+");\n const int winWidth = int("+ne+");\n\n // Compute bounds for where in dy we will look\n float startRLerp = floor(float(r) * invHeightScale);\n int startDyR = int(floor(startRLerp - float(winHeight / 2)));\n\n float startCLerp = floor(float(c) * invWidthScale);\n int startDyC = int(floor(startCLerp - float(winWidth / 2)));\n\n // Loop over dy\n for (int dyROffset = 0; dyROffset < winHeight; dyROffset++) {\n int dyR = dyROffset + startDyR;\n\n // Guard against the window exceeding the bounds of dy\n if (dyR < 0 || dyR >= "+l+") {\n continue;\n }\n\n for (int dyCOffset = 0; dyCOffset < winWidth; dyCOffset++) {\n int dyC = dyCOffset + startDyC;\n\n // Guard against the window exceeding the bounds of dy\n if (dyC < 0 || dyC >= "+u+") {\n continue;\n }\n\n float sourceFracRow =\n float("+d[0]+") *\n (float(dyR) / float("+p[0]+"));\n\n float sourceFracCol =\n float("+d[1]+") *\n (float(dyC) / float("+p[1]+"));\n\n int sourceNearestRow = int(min(\n float(int("+i+") - 1),\n "+e+" ? float(round(sourceFracRow)) :\n float(floor(sourceFracRow))));\n\n int sourceNearestCol = int(min(\n float(int("+s+") - 1),\n "+e+" ? float(round(sourceFracCol)) :\n float(floor(sourceFracCol))));\n\n if (r == sourceNearestRow && c == sourceNearestCol) {\n accumulator += getDy(b, dyR, dyC, d);\n }\n }\n }\n // End loop over dy\n\n setOutput(accumulator);\n }\n "},$9=function(t,n,e,r){this.variableNames=["A"],this.outputShape=[];var s=t[1],c=t[2];this.outputShape=[t[0],n,e,t[3]];var u=[r&&n>1?s-1:s,r&&e>1?c-1:c],d=[r&&n>1?n-1:n,r&&e>1?e-1:e];this.userCode="\n const vec2 effectiveInputOverOutputRatioRC = vec2(\n "+u[0]/d[0]+",\n "+u[1]/d[1]+");\n const vec2 inputShapeRC = vec2("+s+".0, "+c+".0);\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n ivec2 yRC = coords.yz;\n\n // Fractional source index.\n vec2 sourceFracIndexRC = vec2(yRC) * effectiveInputOverOutputRatioRC;\n\n // Compute the coordinators of nearest neighbor point.\n ivec2 sourceNearestRC = ivec2(\n min(inputShapeRC - 1.0, floor(sourceFracIndexRC + "+(r?"0.5":"0.0")+")));\n\n float newValue = getA(b, sourceNearestRC.x, sourceNearestRC.y, d);\n\n setOutput(newValue);\n }\n "},K9=function(t,n){this.variableNames=["x"];var e=t.length;if(e>4)throw new Error("WebGL backend: Reverse of rank-"+e+" tensor is not yet supported");if(this.outputShape=t,1!==e){var r=t.map(function(s,c){return-1!==n.indexOf(l=c)&&1!==t[l]?t[l]+" - coords["+l+"] - 1":"coords["+l+"]";var l}).join(","),i=Gi(e);this.userCode="\n void main() {\n "+i+" coords = getOutputCoords();\n setOutput(getX("+r+"));\n }\n "}else this.userCode="\n void main() {\n int coord = getOutputCoords();\n setOutput(getX("+t[0]+" - coord - 1));\n }\n "},X9=function(t,n){this.variableNames=["x"],this.packedInputs=!0,this.packedOutput=!0;var e=t.length;if(e>4)throw new Error("WebGL backend: Reverse of rank-"+e+" tensor is not yet supported");this.outputShape=t;var u,r=uc("rc",e),i=r[e-1]+" + 1 < "+this.outputShape[e-1],s=r[e-2]+" + 1 < "+this.outputShape[e-2],c=Gi(e);function l(u){var d=t.map(function(p,M){return R=u,-1!==n.indexOf(x=M)&&1!==t[x]?t[x]+" - "+R[x]+" - 1":""+R[x];var x,R});return"getChannel(getX("+d.join(",")+"), vec2("+d.slice(-2).join(",")+"))"}this.userCode=1===e?"\n void main(){\n int rc = getOutputCoords();\n vec4 result = vec4(0.);\n result.r = getChannel(getX("+t[0]+" - rc - 1),\n "+t[0]+" - rc - 1);\n if("+i+"){\n result.g = getChannel(getX("+t[0]+" - (rc + 1) - 1),\n "+t[0]+" - (rc + 1) - 1);\n }\n setOutput(result);\n }\n ":"\n void main() {\n "+c+" rc = getOutputCoords();\n vec4 result = vec4(0.);\n result.r = "+l(r.slice())+";\n if("+i+"){\n result.g = "+((u=r.slice())[e-1]="("+u[e-1]+" + 1)",l(u)+";\n }\n if(")+s+") {\n result.b = "+function(u){return u[e-2]="("+u[e-2]+" + 1)",l(u)}(r.slice())+";\n if("+i+") {\n result.a = "+function(u){return u[e-1]="("+u[e-1]+" + 1)",u[e-2]="("+u[e-2]+" + 1)",l(u)}(r.slice())+";\n }\n }\n setOutput(result);\n }\n "},Jm=function(t,n,e,r,i,s,c){void 0===c&&(c=!0),this.variableNames=["updates","indices","defaultValue"],this.outputShape=s;var l=Gi(i.length),u=Gi(s.length),d="";1===e?d="i":2===e&&(d="i, j");var M="";1===r?M="i":2===r&&(M="i, coords[1]"),this.userCode="\n "+l+" strides = "+l+"("+i+");\n\n void main() {\n "+u+" coords = getOutputCoords();\n float sum = 0.0;\n bool found = false;\n for (int i = 0; i < "+t+"; i++) {\n int flattenedIndex = 0;\n for (int j = 0; j < "+n+"; j++) {\n int index = round(getIndices("+d+"));\n flattenedIndex += index * "+(n>1?"strides[j]":"strides")+";\n }\n if (flattenedIndex == coords[0]) {\n sum += getUpdates("+M+");\n found = true;\n }\n }\n setOutput(mix(getDefaultValue(), sum, float(found)));\n }\n "},Z9=function(t,n){this.variableNames=["x","segmentIds"];var e=t.windowSize,r=t.batchSize,i=t.inSize,s=t.numSegments,c=s*Math.ceil(i/e);this.outputShape=[r,c];var l=4*Math.floor(e/4),u=e%4,d="\n sumValue += dot(values, segFilter);\n ",p="";i%e>0&&(p="\n if (inIdx < 0 || inIdx >= "+i+") {\n return initializationValue;\n }\n ");var M="";i%e>0&&(M="\n if (inIdx < 0 || inIdx >= "+i+") {\n return -1.0;\n }\n "),this.userCode="\n const float initializationValue = 0.0;\n\n float getValue(int batch, int inIdx) {\n "+p+"\n return getX(batch, inIdx);\n }\n\n float getSegmentIdAtIndex(int inIdx) {\n "+M+"\n return getSegmentIds(inIdx);\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = int(floor(float(outIdx) / float(\n "+s+")) * float("+e+"));\n int currentSeg = int(mod(float(outIdx), float("+s+")));\n\n float sumValue = 0.0;\n\n for (int i = 0; i < "+l+"; i += 4) {\n int inIdx = inOffset + i;\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n getValue(batch, inIdx + 3)\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 2)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 3)) == currentSeg ? 1 : 0\n );\n\n "+d+"\n }\n\n int inIdx = inOffset + "+l+";\n if ("+(1===u)+") {\n vec4 values = vec4(\n getValue(batch, inIdx),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n int inIdxSeg = int(getSegmentIdAtIndex(inIdx));\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n 0,\n 0,\n 0\n );\n\n "+d+"\n } else if ("+(2===u)+") {\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n initializationValue,\n initializationValue\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n 0,\n 0\n );\n\n "+d+"\n } else if ("+(3===u)+") {\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n initializationValue\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 2)) == currentSeg ? 1 : 0,\n 0\n );\n\n "+d+"\n }\n setOutput(sumValue);\n }\n "},J9=function(t,n,e){var r,i;if(this.variableNames=["c","a","b"],this.outputShape=n,e>4)throw Error("Where for rank "+e+" is not yet supported");if(1===e)i="resRC",r="resRC";else{for(var s=["resRC.x","resRC.y","resRC.z","resRC.w"],c=[],l=[],u=0;u<n.length;u++)l.push(""+s[u]),u<t&&c.push(""+s[u]);r=c.join(),i=l.join()}var d=Gi(e);this.userCode="\n void main() {\n "+d+" resRC = getOutputCoords();\n float cVal = getC("+r+");\n if (cVal >= 1.0) {\n setOutput(getA("+i+"));\n } else {\n setOutput(getB("+i+"));\n }\n }\n "},Qm=function(){function t(n){this.variableNames=["source"],this.outputShape=n,this.rank=n.length;var e,r=Gi(this.rank),i="uniform int start["+this.rank+"];",s=function(c){if(1===c)return"sourceLoc";if(c<=6)return Md.slice(0,c).map(function(l){return"sourceLoc."+l}).join(",");throw Error("Slicing for rank "+c+" is not yet supported")}(this.rank);e="\n "+r+" sourceLoc;\n "+r+" coords = getOutputCoords();\n "+n.map(function(c,l){return"sourceLoc."+Md[l]+" = start["+l+"] + coords."+Md[l]+";"}).join("\n")+"\n ",this.userCode="\n "+i+"\n void main() {\n "+e+"\n setOutput(getSource("+s+"));\n }\n "}return t.prototype.getCustomSetupFunc=function(n){var e=this;if(n.length!==this.rank)throw Error("The rank ("+this.rank+") of the program must match the length of start ("+n.length+")");return function(r,i){null==e.startLoc&&(e.startLoc=r.getUniformLocationNoThrow(i,"start"),null==e.startLoc)||r.gl.uniform1iv(e.startLoc,n)}},t}(),Md=["x","y","z","w","u","v"],Q9=function(){function t(n){this.variableNames=["source"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=n,this.rank=n.length;var e=Gi(this.rank),r=uc("coords",this.rank),i=uc("sourceLoc",this.rank),s=1===this.rank?"sourceLoc":"vec2("+i.slice(-2).join()+")",c="getChannel(getSource("+i.join()+"), "+s+")",l="\n result.x = "+c+";\n if (++"+r[this.rank-1]+" < "+n[this.rank-1]+") {\n ++"+i[this.rank-1]+";\n result.y = "+c+";\n --"+i[this.rank-1]+";\n }\n ",u=1===this.rank?"":"\n --"+r[this.rank-1]+";\n if (++"+r[this.rank-2]+" < "+n[this.rank-2]+") {\n ++"+i[this.rank-2]+";\n result.z = "+c+";\n if (++"+r[this.rank-1]+" < "+n[this.rank-1]+") {\n ++"+i[this.rank-1]+";\n result.w = "+c+";\n }\n }\n ",d=this.rank<=4?"sourceLoc = coords +\n "+e+"("+n.map(function(p,M){return"start["+M+"]"}).join()+");":n.map(function(p,M){return i[M]+" = "+r[M]+" + start["+M+"];"}).join("\n");this.userCode="\n uniform int start["+this.rank+"];\n void main() {\n "+e+" coords = getOutputCoords();\n "+e+" sourceLoc;\n "+d+"\n vec4 result = vec4(0.);\n "+l+"\n "+u+"\n setOutput(result);\n }\n "}return t.prototype.getCustomSetupFunc=function(n){var e=this;if(n.length!==this.rank)throw Error("The rank ("+this.rank+") of the program must match the length of start ("+n.length+")");return function(r,i){null==e.startLoc&&(e.startLoc=r.getUniformLocationNoThrow(i,"start"),null==e.startLoc)||r.gl.uniform1iv(e.startLoc,n)}},t}(),q9=function(t,n,e){this.variableNames=["x"],this.outputShape=e;var r=e.length,i=Gi(e.length),s=Gi(e.length),c="";if(1===r)c="coords * strides + begin";else{var l=0;c=e.map(function(u,d){return l++,1===e.length?"coords * strides["+d+"] + begin["+d+"]":"coords["+(l-1)+"] * strides["+d+"] + begin["+d+"]"}).join(",")}this.userCode="\n "+i+" begin = "+i+"("+t+");\n "+i+" strides = "+i+"("+n+");\n\n void main() {\n "+s+" coords = getOutputCoords();\n setOutput(getX("+c+"));\n }\n "},qm=function(){function t(n){this.gpgpu=n,this.numUsedTextures=0,this.numFreeTextures=0,this.freeTextures={},this.logEnabled=!1,this.usedTextures={}}return t.prototype.acquireTexture=function(n,e,r){var i,s=ep(e,r),c=tp(n,s,r);if(c in this.freeTextures||(this.freeTextures[c]=[]),c in this.usedTextures||(this.usedTextures[c]=[]),this.freeTextures[c].length>0){this.numFreeTextures--,this.numUsedTextures++,this.log();var l=this.freeTextures[c].shift();return this.usedTextures[c].push(l),l}return this.numUsedTextures++,this.log(),s===ar.PACKED_2X2_FLOAT32?i=this.gpgpu.createPackedMatrixTexture(n[0],n[1]):s===ar.PACKED_2X2_FLOAT16?i=this.gpgpu.createFloat16PackedMatrixTexture(n[0],n[1]):s===ar.UNPACKED_FLOAT32?i=this.gpgpu.createFloat32MatrixTexture(n[0],n[1]):s===ar.UNPACKED_FLOAT16?i=this.gpgpu.createFloat16MatrixTexture(n[0],n[1]):s===ar.PACKED_4X1_UNSIGNED_BYTE&&(i=this.gpgpu.createUnsignedBytesMatrixTexture(n[0],n[1])),this.usedTextures[c].push(i),i},t.prototype.releaseTexture=function(n,e,r,i){if(null!=this.freeTextures){var s=tp(e,ep(r,i),i);s in this.freeTextures||(this.freeTextures[s]=[]),this.freeTextures[s].push(n),this.numFreeTextures++,this.numUsedTextures--;var c=this.usedTextures[s],l=c.indexOf(n);if(l<0)throw new Error("Cannot release a texture that was never provided by this texture manager");c.splice(l,1),this.log()}},t.prototype.log=function(){this.logEnabled&&console.log("Free/Used",this.numFreeTextures+" / "+this.numUsedTextures,"("+(this.numFreeTextures+this.numUsedTextures)+")")},t.prototype.getNumUsedTextures=function(){return this.numUsedTextures},t.prototype.getNumFreeTextures=function(){return this.numFreeTextures},t.prototype.dispose=function(){var n=this;if(null!=this.freeTextures){for(var e in this.freeTextures)this.freeTextures[e].forEach(function(r){n.gpgpu.deleteMatrixTexture(r)});for(var e in this.usedTextures)this.usedTextures[e].forEach(function(i){n.gpgpu.deleteMatrixTexture(i)});this.freeTextures=null,this.usedTextures=null,this.numUsedTextures=0,this.numFreeTextures=0}},t}();function ep(t,n){if(t===Kn.UPLOAD)return ar.PACKED_2X2_FLOAT32;if(t===Kn.RENDER||null==t)return e=n,X().getBool("WEBGL_RENDER_FLOAT32_ENABLED")?e?ar.PACKED_2X2_FLOAT32:ar.UNPACKED_FLOAT32:e?ar.PACKED_2X2_FLOAT16:ar.UNPACKED_FLOAT16;var e;if(t===Kn.DOWNLOAD||t===Kn.PIXELS)return ar.PACKED_4X1_UNSIGNED_BYTE;throw new Error("Unknown logical texture type "+t)}function tp(t,n,e){return t[0]+"_"+t[1]+"_"+n+"_"+e}var ev=function(t,n){this.variableNames=["A"];for(var e=new Array(t.length),r=0;r<e.length;r++)e[r]=t[r]*n[r];this.outputShape=e,this.rank=e.length;var i=Gi(this.rank),s=function(c){var l=c.length;if(l>5)throw Error("Tile for rank "+l+" is not yet supported");if(1===l)return"imod(resRC, "+c[0]+")";for(var u=["resRC.x","resRC.y","resRC.z","resRC.w","resRC.u"],d=[],p=0;p<c.length;p++)d.push("imod("+u[p]+", "+c[p]+")");return d.join()}(t);this.userCode="\n void main() {\n "+i+" resRC = getOutputCoords();\n setOutput(getA("+s+"));\n }\n "},tv=function(t,n){this.variableNames=["A"];for(var e=new Array(t.length),r=0;r<e.length;r++)e[r]=t[n[r]];this.outputShape=e,this.rank=e.length;var i=Gi(this.rank),s=function(c){var l=c.length;if(l>6)throw Error("Transpose for rank "+l+" is not yet supported");for(var u=["resRC.x","resRC.y","resRC.z","resRC.w","resRC.u","resRC.v"],d=new Array(l),p=0;p<c.length;p++)d[c[p]]=u[p];return d.join()}(n);this.userCode="\n void main() {\n "+i+" resRC = getOutputCoords();\n setOutput(getA("+s+"));\n }\n "},Cd=function(t,n){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0;for(var e=new Array(t.length),r=0;r<e.length;r++)e[r]=t[n[r]];if(this.outputShape=e,this.rank=e.length,this.rank>6)throw Error("Packed transpose for rank "+this.rank+" is not yet supported.");var i=Gi(this.rank),s=pm("rc",this.rank),c=new Array(this.rank);for(r=0;r<n.length;r++)c[n[r]]=s[r];var l="vec2("+c.slice(-2).join()+")",u="++"+s[this.rank-1]+" < "+e[this.rank-1],d="getChannel(getA("+c.join()+"), "+l+")";this.userCode="\n void main() {\n "+i+" rc = getOutputCoords();\n vec4 result = vec4(0.);\n result[0] = "+d+";\n if("+u+") {\n result[1] = "+d+";\n }\n --"+s[this.rank-1]+";\n if(++"+s[this.rank-2]+" < "+e[this.rank-2]+") {\n result[2] = "+d+";\n if("+u+") {\n result[3] = "+d+";\n }\n }\n setOutput(result);\n }\n "},To=function(t,n){this.variableNames=["A"],this.outputShape=t,this.userCode="\n float unaryOperation(float x) {\n "+n+"\n }\n\n void main() {\n float x = getAAtOutCoords();\n float y = unaryOperation(x);\n\n setOutput(y);\n }\n "},u1="if (isnan(x)) return x;",Sd="return abs(x);",np=u1+"\n return (x < 0.0) ? 0.0 : x;\n",rp=u1+"\n return (x < 0.0) ? 0.0 : min(6.0, x);\n",op="return (x >= 0.0) ? x : (exp(x) - 1.0);",ap="return -x;",sp="return ceil(x);",Td="return floor(x);",cp="return exp(x);",wd="return exp(x) - 1.0;",Z3="return x;",fp="\n vec4 result = x * vec4(greaterThanEqual(x, vec4(0.0)));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n",hp="\n vec4 result = min(x, vec4(6.)) * vec4(greaterThanEqual(x, vec4(0.0)));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n",mp="\n vec4 result;\n\n result.r = (x.r >= 0.0) ? x.r : (exp(x.r) - 1.0);\n result.g = (x.g >= 0.0) ? x.g : (exp(x.g) - 1.0);\n result.b = (x.b >= 0.0) ? x.b : (exp(x.b) - 1.0);\n result.a = (x.a >= 0.0) ? x.a : (exp(x.a) - 1.0);\n\n return result;\n",P0=function(t,n){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=t,this.userCode="\n vec4 unaryOperation(vec4 x) {\n "+n+"\n }\n\n void main() {\n vec4 x = getAAtOutCoords();\n vec4 y = unaryOperation(x);\n\n setOutput(y);\n }\n "},J3=function(t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!1,this.outputShape=t;var n=t.length,e=uc("rc",n),r=Gi(n),i=function(l,u){if(1===l)return"rc";for(var d="",p=0;p<l;p++)d+=u[p],p<l-1&&(d+=",");return d}(n,e),s=e.slice(-2),c=n<=1?"rc":"vec2("+s.join(",")+")";this.userCode="\n void main() {\n "+r+" rc = getOutputCoords();\n vec4 packedInput = getA("+i+");\n\n setOutput(getChannel(packedInput, "+c+"));\n }\n "},Q3={};function q3(t,n){if(void 0===n&&(n=!1),"linear"===t)return"return x;";if("relu"===t)return n?fp:np;if("elu"===t)return n?mp:op;if("relu6"===t)return n?hp:rp;if("prelu"===t)return n?Mm:ym;throw new Error("Activation "+t+" has not been implemented for the WebGL backend.")}var pp=function(t){function n(e){var r,i=t.call(this)||this;if(i.pendingRead=new WeakMap,i.pendingDisposal=new WeakSet,i.dataRefCount=new WeakMap,i.numBytesInGPU=0,i.uploadWaitMs=0,i.downloadWaitMs=0,i.warnedAboutMemory=!1,i.pendingDeletes=0,i.disposed=!1,!X().getBool("HAS_WEBGL"))throw new Error("WebGL is not supported on this device");if(null==e){var s=Ii(X().getNumber("WEBGL_VERSION"));i.binaryCache=((r=X().getNumber("WEBGL_VERSION"))in Q3||(Q3[r]={}),Q3[r]),i.gpgpu=new Gm(s),i.canvas=s.canvas,i.gpgpuCreatedLocally=!0}else i.gpgpu=e,i.binaryCache={},i.gpgpuCreatedLocally=!1,i.canvas=e.gl.canvas;return i.textureManager=new qm(i.gpgpu),i.numMBBeforeWarning=null==X().global.screen?1024:X().global.screen.height*X().global.screen.width*window.devicePixelRatio*600/1024/1024,i.texData=new am(i,Ye),i}return dt(n,t),n.prototype.numDataIds=function(){return this.texData.numDataIds()+(this.cpuBackend?this.cpuBackend.numDataIds():0)-this.pendingDeletes},n.prototype.write=function(e,r,i){if(X().getBool("DEBUG")&&this.checkNumericalProblems(e),"complex64"===i&&null!=e)throw new Error("Cannot write to a complex64 dtype. Please use tf.complex(real, imag).");var s={};return this.texData.set(s,{shape:r,dtype:i,values:e,usage:Kn.UPLOAD}),s},n.prototype.move=function(e,r,i,s){if(X().getBool("DEBUG")&&this.checkNumericalProblems(r),"complex64"===s)throw new Error("Cannot write to a complex64 dtype. Please use tf.complex(real, imag).");this.texData.set(e,{shape:i,dtype:s,values:r,usage:Kn.UPLOAD})},n.prototype.readSync=function(e){var r=this.texData.get(e),i=r.values,s=r.dtype,c=r.complexTensors,u=r.shape;if(null!=r.slice){var p;p=r.isPacked?new P0(u,Z3):new To(u,Z3);var M=this.runWebGLProgram(p,[{dataId:e,shape:u,dtype:s}],s),x=this.readSync(M.dataId);return this.disposeData(M.dataId),x}if(null!=i)return this.convertAndCacheOnCPU(e);if("string"===s)return i;var R,U,J=null!=this.activeTimers;return J&&(R=Wa()),U="complex64"===s?od(c.real.dataSync(),c.imag.dataSync()):this.getValuesFromTexture(e),J&&(this.downloadWaitMs+=Wa()-R),this.convertAndCacheOnCPU(e,U)},n.prototype.read=function(e){return st(this,void 0,void 0,function(){var r,i,s,c,u,d,p,M,x,R,U,J,ne,ue,Ie,Fe,et,Ct,yt;return Ln(this,function(pt){switch(pt.label){case 0:if(this.pendingRead.has(e))return r=this.pendingRead.get(e),[2,new Promise(function(gt){return r.push(gt)})];if(i=this.texData.get(e),s=i.values,c=i.shape,u=i.dtype,d=i.complexTensors,p=i.isPacked,null!=i.slice)return M=p?new P0(c,Z3):new To(c,Z3),x=this.runWebGLProgram(M,[{dataId:e,shape:c,dtype:u}],u),R=this.read(x.dataId),this.disposeData(x.dataId),[2,R];if(null!=s)return[2,this.convertAndCacheOnCPU(e)];if(!X().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")&&2===X().getNumber("WEBGL_VERSION"))throw new Error("tensor.data() with WEBGL_DOWNLOAD_FLOAT_ENABLED=false and WEBGL_VERSION=2 not yet supported.");return U=null,"complex64"!==u&&X().get("WEBGL_BUFFER_SUPPORTED")&&(J=this.decode(e),ne=this.texData.get(J.dataId),U=(yt=this.gpgpu).createBufferFromTexture.apply(yt,[ne.texture].concat(ca(c)))),this.pendingRead.set(e,[]),"complex64"===u?[3,2]:[4,this.gpgpu.createAndWaitForFence()];case 1:pt.sent(),pt.label=2;case 2:return"complex64"!==u?[3,4]:[4,Promise.all([d.real.data(),d.imag.data()])];case 3:return Ie=pt.sent(),ue=od(Ie[0],Ie[1]),[3,5];case 4:null==U?ue=this.getValuesFromTexture(e):(Fe=rr(c),ue=this.gpgpu.downloadFloat32MatrixFromBuffer(U,Fe)),pt.label=5;case 5:return null!=J&&this.disposeData(J.dataId),et=this.convertAndCacheOnCPU(e,ue),Ct=this.pendingRead.get(e),this.pendingRead.delete(e),Ct.forEach(function(gt){return gt(et)}),this.pendingDisposal.has(e)&&(this.pendingDisposal.delete(e),this.disposeData(e),this.pendingDeletes--),[2,et]}})})},n.prototype.checkNumericalProblems=function(e){if(null!=e)for(var r=0;r<e.length;r++){var i=e[r];if(!E(i))throw X().getBool("WEBGL_RENDER_FLOAT32_CAPABLE")?Error("The value "+i+" cannot be represented with your current settings. Consider enabling float32 rendering: 'tf.env().set('WEBGL_RENDER_FLOAT32_ENABLED', true);'"):Error("The value "+i+" cannot be represented on this device.")}},n.prototype.getValuesFromTexture=function(e){var r,i=this.texData.get(e),s=i.shape,c=i.dtype,l=i.isPacked,u=rr(s);if(X().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")){var d=this.decode(e),p=this.texData.get(d.dataId),M=(r=this.gpgpu).downloadMatrixFromPackedTexture.apply(r,[p.texture].concat(ca(s))).subarray(0,u);return this.disposeData(d.dataId),M}var x=X().getBool("WEBGL_PACK")&&!0===l,R=x?sc(s):s,U=x?new w9(R):new T9(R),J=this.runWebGLProgram(U,[{shape:R,dtype:c,dataId:e}],"float32"),ne=this.texData.get(J.dataId),ue=this.gpgpu.downloadByteEncodedFloatMatrixFromOutputTexture(ne.texture,ne.texShape[0],ne.texShape[1]).subarray(0,u);return this.disposeData(J.dataId),ue},n.prototype.time=function(e){return st(this,void 0,void 0,function(){var r,i,s,c,l,u,d;return Ln(this,function(p){switch(p.label){case 0:return r=this.activeTimers,i=[],s=!1,null==this.programTimersStack?(this.programTimersStack=i,s=!0):this.activeTimers.push(i),this.activeTimers=i,e(),c=Ja(this.activeTimers.map(function(M){return M.query})).filter(function(M){return null!=M}),l=Ja(this.activeTimers.map(function(M){return M.name})).filter(function(M){return null!=M}),this.activeTimers=r,s&&(this.programTimersStack=null),u={uploadWaitMs:this.uploadWaitMs,downloadWaitMs:this.downloadWaitMs,kernelMs:null,wallMs:null},X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?[4,Promise.all(c)]:[3,2];case 1:return d=p.sent(),u.kernelMs=bs(d),u.getExtraProfileInfo=function(){return d.map(function(M,x){return{name:l[x],ms:M}}).map(function(M){return M.name+": "+M.ms}).join(", ")},[3,3];case 2:u.kernelMs={error:"WebGL query timers are not supported in this environment."},p.label=3;case 3:return this.uploadWaitMs=0,this.downloadWaitMs=0,[2,u]}})})},n.prototype.memory=function(){return{unreliable:!1,numBytesInGPU:this.numBytesInGPU}},n.prototype.startTimer=function(){return X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?this.gpgpu.beginQuery():{startMs:Wa(),endMs:null}},n.prototype.endTimer=function(e){return X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?(this.gpgpu.endQuery(),e):(e.endMs=Wa(),e)},n.prototype.getQueryTime=function(e){return st(this,void 0,void 0,function(){var r;return Ln(this,function(i){return X().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?[2,this.gpgpu.waitForQueryAndGetTime(e)]:[2,(r=e).endMs-r.startMs]})})},n.prototype.disposeData=function(e){if(!this.pendingDisposal.has(e)){if(this.pendingRead.has(e))return this.pendingDisposal.add(e),void this.pendingDeletes++;if(this.texData.has(e)){this.releaseGPUData(e);var r=this.texData.get(e).complexTensors;null!=r&&(r.real.dispose(),r.imag.dispose()),this.texData.delete(e)}}},n.prototype.releaseGPUData=function(e){var r=this.texData.get(e),i=r.texture,s=r.dtype,c=r.texShape,l=r.usage,u=r.isPacked,d=r.slice,p=d&&d.origDataId||e,M=this.dataRefCount.get(p);M>1?this.dataRefCount.set(p,M-1):(this.dataRefCount.delete(p),null!=i&&(this.numBytesInGPU-=this.computeBytes(c,s),this.textureManager.releaseTexture(i,c,l,u)));var x=this.texData.get(e);x.texture=null,x.texShape=null,x.isPacked=!1,x.slice=null},n.prototype.getTexture=function(e){return this.uploadToGPU(e),this.texData.get(e).texture},n.prototype.getDataInfo=function(e){return this.texData.get(e)},n.prototype.getCPUBackend=function(){return X().getBool("WEBGL_CPU_FORWARD")?(null==this.cpuBackend&&(this.cpuBackend=Ye.findBackend("cpu")),this.cpuBackend):null},n.prototype.shouldExecuteOnCPU=function(e,r){var i=this;return void 0===r&&(r=128),null!=this.getCPUBackend()&&e.every(function(s){return null==i.texData.get(s.dataId).texture&&s.size<r})},n.prototype.getGPGPUContext=function(){return this.gpgpu},n.prototype.complex=function(e,r){var i=this.makeOutput(e.shape,"complex64");return this.texData.get(i.dataId).complexTensors={real:Ye.keep(e.clone()),imag:Ye.keep(r.clone())},i},n.prototype.real=function(e){return this.texData.get(e.dataId).complexTensors.real.clone()},n.prototype.imag=function(e){return this.texData.get(e.dataId).complexTensors.imag.clone()},n.prototype.slice=function(e,r,i){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.slice(e,r,i);if(0===rr(i))return xi([],i,e.dtype);var s=this.texData.get(e.dataId).isPacked,c=q4(e.shape,r,i);if(s||!c){var l=X().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new Q9(i):new Qm(i),u=l.getCustomSetupFunc(r);return this.compileAndRun(l,[e],null,u)}return this.uploadToGPU(e.dataId),this.shallowSlice(e,r,i)},n.prototype.shallowSlice=function(e,r,i){var s=this.texData.get(e.dataId),c=this.makeOutput(i,e.dtype),l=this.texData.get(c.dataId);Object.assign(l,s),l.shape=i,l.dtype=e.dtype;var u=ed(r,e.strides);s.slice&&(u+=s.slice.flatOffset),l.slice={flatOffset:u,origDataId:s.slice&&s.slice.origDataId||e.dataId};var d=this.dataRefCount.get(l.slice.origDataId)||1;return this.dataRefCount.set(l.slice.origDataId,d+1),c},n.prototype.stridedSlice=function(e,r,i,s){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.stridedSlice(e,r,i,s);var c=H3(r,i,s);if(c.some(function(u){return 0===u}))return xi([],c);var l=new q9(r,s,c);return this.compileAndRun(l,[e])},n.prototype.reverse=function(e,r){var i=X().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new X9(e.shape,r):new K9(e.shape,r);return this.compileAndRun(i,[e])},n.prototype.concat=function(e,r){if("complex64"===e[0].dtype){var i=e.map(function(R){return Fs(R)}),s=e.map(function(R){return Hs(R)});return Oa(this.concat(i,r),this.concat(s,r))}if(this.shouldExecuteOnCPU(e))return this.cpuBackend.concat(e,r);if(1===e.length)return e[0];if(e.length>X().getNumber("WEBGL_MAX_TEXTURES_IN_SHADER")){var c=Math.floor(e.length/2),l=this.concat(e.slice(0,c),r),u=this.concat(e.slice(c),r);return this.concat([l,u],r)}if(X().getBool("WEBGL_PACK_ARRAY_OPERATIONS")&&e[0].rank>1){var d=new Cm(e.map(function(R){return R.shape}),r);return this.compileAndRun(d,e)}var p=Gc(e.map(function(R){return R.shape}),r),M=e.map(function(R){return R.as2D(-1,rr(R.shape.slice(r)))}),x=new g9(M.map(function(R){return R.shape}));return this.compileAndRun(x,M).reshape(p)},n.prototype.neg=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.neg(e);if(X().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,ap,e.dtype);var r=new To(e.shape,ap);return this.compileAndRun(r,[e])},n.prototype.batchMatMul=function(e,r,i,s){var c=i?e.shape[2]:e.shape[1],l=s?r.shape[1]:r.shape[2],u=i?e.shape[1]:e.shape[2],d=e.shape[0];if((1===c||1===l)&&u>1e3){i&&(e=e.transpose([0,2,1])),s&&(r=r.transpose([0,2,1]));var p=1===l?e:e.as3D(d,u,1),M=1===l?2:1,x=1===l?r.as3D(d,1,u):r;return this.multiply(p,x).sum(M,!0)}var R=Oi(e.dtype,r.dtype),U=new X3(e.shape,[d,c,l],i,s);return this.compileAndRun(U,[e,r],R)},n.prototype.fusedBatchMatMul=function(e){var r=e.a,i=e.b,s=e.transposeA,c=e.transposeB,l=e.bias,u=e.activation,d=e.preluActivationWeights,p=s?r.shape[2]:r.shape[1],M=c?i.shape[1]:i.shape[2],x=r.shape[0],R=Oi(r.dtype,i.dtype),U=null!=l,J=null!=d,ne=u?q3(u,!0):null,ue=new X3(r.shape,[x,p,M],s,c,U,ne,J),Ie=[r,i];return l&&Ie.push(l),d&&Ie.push(d),this.compileAndRun(ue,Ie,R)},n.prototype.multiply=function(e,r){if("complex64"===e.dtype){var i=this.texData.get(e.dataId),s=this.texData.get(r.dataId),c=new ud("return areal * breal - aimag * bimag;",e.shape,r.shape),l=new ud("return areal * bimag + aimag * breal;",e.shape,r.shape),u=[this.makeComplexComponentTensorInfo(e,i.complexTensors.real),this.makeComplexComponentTensorInfo(e,i.complexTensors.imag),this.makeComplexComponentTensorInfo(r,s.complexTensors.real),this.makeComplexComponentTensorInfo(r,s.complexTensors.imag)],d=this.compileAndRun(c,u),p=this.compileAndRun(l,u),M=this.complex(d,p);return d.dispose(),p.dispose(),M}if(this.shouldExecuteOnCPU([e,r]))return this.cpuBackend.multiply(e,r);if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,hd,e.dtype);var x=new Sa(hd,e.shape,r.shape);return this.compileAndRun(x,[e,r],e.dtype)},n.prototype.batchNormalization=function(e,r,i,s,c,l){var u=[e,r,i],d=null;null!=l&&(d=l.shape,u.push(l));var p=null;if(null!=c&&(p=c.shape,u.push(c)),X().getBool("WEBGL_PACK_NORMALIZATION")){var M=new vm(e.shape,r.shape,i.shape,d,p,s);return this.compileAndRun(M,u)}var x=new d9(e.shape,r.shape,i.shape,d,p,s);return this.compileAndRun(x,u)},n.prototype.localResponseNormalization4D=function(e,r,i,s,c){var l=X().getBool("WEBGL_PACK_NORMALIZATION")?new $m(e.shape,r,i,s,c):new z9(e.shape,r,i,s,c);return this.compileAndRun(l,[e])},n.prototype.LRNGrad=function(e,r,i,s,c,l,u){var d=new R9(r.shape,s,c,l,u);return this.compileAndRun(d,[r,i,e])},n.prototype.tile=function(e,r){if("string"===e.dtype){var i=this.readSync(e.dataId).map(function(c){return o1(c)});return dm(zn(e.shape,e.dtype,i),r)}var s=new ev(e.shape,r);return this.compileAndRun(s,[e])},n.prototype.pad=function(e,r,i){var s=X().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new W9(e.shape,r,i):new gd(e.shape,r,i);return this.compileAndRun(s,[e])},n.prototype.transpose=function(e,r){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.transpose(e,r);var i=X().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new Cd(e.shape,r):new tv(e.shape,r);return this.compileAndRun(i,[e])},n.prototype.gather=function(e,r,i){if(this.shouldExecuteOnCPU([e,r]))return this.cpuBackend.gather(e,r,i);var s=new O9(e.shape,r.size,i);return this.compileAndRun(s,[e,r])},n.prototype.batchToSpaceND=function(e,r,i){at(e.rank<=4,function(){return"batchToSpaceND for rank > 4 with a WebGL backend not implemented yet"});var s=r.reduce(function(M,x){return M*x}),c=R3(e.shape,r,s),l=Y3(c.length,r.length),u=w0(e.shape,r,s),d=tm(i,r.length),p=K4(u,i,r.length);return e.reshape(c).transpose(l).reshape(u).slice(d,p)},n.prototype.spaceToBatchND=function(e,r,i){at(e.rank<=4,function(){return"spaceToBatchND for rank > 4 with a WebGL backend not implemented yet"});var s=r.reduce(function(x,R){return x*R}),c=[[0,0]];c.push.apply(c,i);for(var l=1+r.length;l<e.shape.length;++l)c.push([0,0]);var u=e.pad(c),d=R3(u.shape,r,s,!1),p=Y3(d.length,r.length,!1),M=w0(u.shape,r,s,!1);return u.reshape(d).transpose(p).reshape(M)},n.prototype.reduce=function(e,r,i){var s=e.shape[0],c=e.shape[1],l=F3(c),u=new Km({windowSize:l,inSize:c,batchSize:s},r),d=this.compileAndRun(u,[e],i);return 1===d.shape[1]?d:this.reduce(d,r,i)},n.prototype.argReduce=function(e,r,i){void 0===i&&(i=null);var s=e.shape[0],c=e.shape[1];null!=i&&(s=i.shape[0],c=i.shape[1]);var l=F3(c),u=new mm({windowSize:l,inSize:c,batchSize:s},r,null==i),d=[e];null!=i&&d.push(i);var p=this.compileAndRun(u,d,"int32");return 1===p.shape[1]?p:this.argReduce(e,r,p)},n.prototype.argReducePacked=function(e,r,i){void 0===i&&(i=null);var s=null!=i?i.shape:e.shape,c=F3(s[s.length-1]),l=new l9(s,c,r,null==i),d=this.compileAndRun(l,null==i?[e]:[e,i],"int32");return d.rank===e.rank?this.argReducePacked(e,r,d):d},n.prototype.sum=function(e,r){ys("sum",r,e.rank);var i=ta(e.shape,r),s=i[0],c=rr(i[1]),l=e.as2D(-1,c),u=yc(e.dtype);return this.reduce(l,"sum",u).reshape(s)},n.prototype.prod=function(e,r){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.prod(e,r);var i=ta(e.shape,r),s=i[0],c=rr(i[1]),l=e.as2D(-1,c),u=yc(e.dtype);return this.reduce(l,"prod",u).reshape(s)},n.prototype.unsortedSegmentSum=function(e,r,i){var s=0,c=Qs([s],e.rank),l=e;null!=c&&(l=e.transpose(c),s=La(1,e.rank)[0]);var u=function(R,U,J){for(var ne=[],ue=R.length,Ie=0;Ie<ue;Ie++)ne.push(Ie!==U?R[Ie]:J);return ne}(l.shape,s,i),d=rr([l.shape[s]]),p=l.as2D(-1,d),M=yc(e.dtype),x=this.segOpCompute(p,"unsortedSegmentSum",r,M,i).reshape(u);return null!=c&&(x=x.transpose(Ys(c))),x},n.prototype.segOpCompute=function(e,r,i,s,c){var l=e.shape[0],u=e.shape[1],d=function(x,R){var U,J=!1;for(x<=30?(U=x,J=!0):U=Mi(x,Math.floor(Math.sqrt(x)));!J;)U>R||U===x?J=!0:U=Mi(x,U+1);return U}(u,c),p=new Z9({windowSize:d,inSize:u,batchSize:l,numSegments:c},r),M=this.compileAndRun(p,[e,i],s);return M.shape[1]===c?M:(i=ks(0,c).tile([u/d]),this.segOpCompute(M,r,i,s,c))},n.prototype.argMinMaxReduce=function(e,r,i){var s=[r];if(ys("arg"+i.charAt(0).toUpperCase()+i.slice(1),s,e.rank),!X().getBool("WEBGL_PACK_REDUCE")||e.rank<=2){var c=ta(e.shape,s),l=c[0],u=rr(c[1]),d=e.as2D(-1,u);return this.argReduce(d,i).reshape(l)}return this.argReducePacked(e,i)},n.prototype.argMin=function(e,r){return this.argMinMaxReduce(e,r,"min")},n.prototype.argMax=function(e,r){return this.argMinMaxReduce(e,r,"max")},n.prototype.cumsum=function(e,r,i,s){if(r!==e.rank-1)throw new Error("WebGL cumsum shader expects an inner-most axis="+(e.rank-1)+" but got axis="+r);var c=new km(e.shape,i,s);return this.compileAndRun(c,[e])},n.prototype.equal=function(e,r){if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n return vec4(equal(a, b));\n","bool");var i=new Sa("return float(a == b);",e.shape,r.shape);return this.compileAndRun(i,[e,r],"bool")},n.prototype.notEqual=function(e,r){if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n return vec4(notEqual(a, b));\n","bool");var i=new Sa("return float(a != b);",e.shape,r.shape);return this.compileAndRun(i,[e,r],"bool")},n.prototype.less=function(e,r){if(this.shouldExecuteOnCPU([e,r]))return this.cpuBackend.less(e,r);if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n return vec4(lessThan(a, b));\n","bool");var i=new Sa("return float(a < b);",e.shape,r.shape);return this.compileAndRun(i,[e,r],"bool")},n.prototype.lessEqual=function(e,r){if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n return vec4(lessThanEqual(a, b));\n","bool");var i=new Sa("return float(a <= b);",e.shape,r.shape);return this.compileAndRun(i,[e,r],"bool")},n.prototype.greater=function(e,r){if(this.shouldExecuteOnCPU([e,r]))return this.cpuBackend.greater(e,r);if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n return vec4(greaterThan(a, b));\n","bool");var i=new Sa("return float(a > b);",e.shape,r.shape);return this.compileAndRun(i,[e,r],"bool")},n.prototype.greaterEqual=function(e,r){if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n return vec4(greaterThanEqual(a, b));\n","bool");var i=new Sa("return float(a >= b);",e.shape,r.shape);return this.compileAndRun(i,[e,r],"bool")},n.prototype.logicalNot=function(e){var r=new To(e.shape,"return float(!(x >= 1.0));");return this.compileAndRun(r,[e])},n.prototype.logicalAnd=function(e,r){if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n return vec4(\n vec4(greaterThanEqual(a, vec4(1.0))) *\n vec4(greaterThanEqual(b, vec4(1.0))));\n","bool");var i=new Sa("return float(a >= 1.0 && b >= 1.0);",e.shape,r.shape);return this.compileAndRun(i,[e,r],"bool")},n.prototype.logicalOr=function(e,r){if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n return min(\n vec4(greaterThanEqual(a, vec4(1.0))) +\n vec4(greaterThanEqual(b, vec4(1.0))),\n vec4(1.0));\n","bool");var i=new Sa("return float(a >= 1.0 || b >= 1.0);",e.shape,r.shape);return this.compileAndRun(i,[e,r],"bool")},n.prototype.select=function(e,r,i){var s=new J9(e.rank,r.shape,r.rank);return this.compileAndRun(s,[e,r,i],Oi(r.dtype,i.dtype))},n.prototype.where=function(e){V1("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");var r=e.dataSync();return sd(e.shape,r)},n.prototype.topk=function(e,r,i){return fm(e.dataSync(),e.shape,e.dtype,r)},n.prototype.min=function(e,r){ys("min",r,e.rank);var i=ta(e.shape,r),s=i[0],c=rr(i[1]),l=e.as2D(-1,c);return this.reduce(l,"min",l.dtype).reshape(s)},n.prototype.minimum=function(e,r){if(this.shouldExecuteOnCPU([e,r]))return this.cpuBackend.minimum(e,r);var i=X().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Z1("\n vec4 result = vec4(min(a, b));\n vec4 isNaN = min(vec4(isnan(a)) + vec4(isnan(b)), vec4(1.0));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,r.shape):new Sa("\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return min(a, b);\n",e.shape,r.shape);return this.compileAndRun(i,[e,r])},n.prototype.mod=function(e,r){var i=X().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Z1("\n vec4 result = mod(a, b);\n vec4 isNaN = vec4(equal(b, vec4(0.0)));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,r.shape):new Sa("if (b == 0.0) return NAN;\n return mod(a, b);",e.shape,r.shape);return this.compileAndRun(i,[e,r])},n.prototype.max=function(e,r){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.max(e,r);ys("max",r,e.rank);var i=ta(e.shape,r),s=i[0],c=rr(i[1]),l=e.as2D(-1,c);return this.reduce(l,"max",l.dtype).reshape(s)},n.prototype.maximum=function(e,r){if(this.shouldExecuteOnCPU([e,r]))return this.cpuBackend.maximum(e,r);var i=X().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Z1("\n vec4 result = vec4(max(a, b));\n vec4 isNaN = min(vec4(isnan(a)) + vec4(isnan(b)), vec4(1.0));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,r.shape):new Sa("\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return max(a, b);\n",e.shape,r.shape);return this.compileAndRun(i,[e,r])},n.prototype.all=function(e,r){ys("all",r,e.rank);var i=ta(e.shape,r),s=i[0],c=rr(i[1]),l=e.as2D(-1,c);return this.reduce(l,"all",l.dtype).reshape(s)},n.prototype.any=function(e,r){ys("any",r,e.rank);var i=ta(e.shape,r),s=i[0],c=rr(i[1]),l=e.as2D(-1,c);return this.reduce(l,"any",l.dtype).reshape(s)},n.prototype.realDivide=function(e,r){if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n // vec4 one = vec4(equal(a, b));\n // return one + (vec4(1.0) - one) * a / b;\n vec4 result = a / b;\n if(a.x == b.x) {\n result.x = 1.;\n }\n if(a.y == b.y) {\n result.y = 1.;\n }\n if(a.z == b.z) {\n result.z = 1.;\n }\n if(a.w == b.w) {\n result.w = 1.;\n }\n\n return result;\n","float32",!0);var i=new Sa("\nif (a == b) {\n return 1.0;\n};\nreturn a / b;",e.shape,r.shape);return this.compileAndRun(i,[e,r],"float32")},n.prototype.floorDiv=function(e,r){if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,"\n ivec4 ia = round(a);\n ivec4 ib = round(b);\n bvec4 cond = notEqual(ib, ivec4(0));\n ivec4 result = ivec4(0);\n vec4 s = sign(a) * sign(b);\n\n // Windows (D3D) wants guaranteed non-zero int division at compile-time.\n if (cond[0]) {\n result[0] = idiv(ia[0], ib[0], s[0]);\n }\n if (cond[1]) {\n result[1] = idiv(ia[1], ib[1], s[1]);\n }\n if (cond[2]) {\n result[2] = idiv(ia[2], ib[2], s[2]);\n }\n if (cond[3]) {\n result[3] = idiv(ia[3], ib[3], s[3]);\n }\n return vec4(result);\n","int32");var i=new Sa("\n float s = sign(a) * sign(b);\n int ia = round(a);\n int ib = round(b);\n if (ib != 0) {\n // Windows (D3D) wants guaranteed non-zero int division at compile-time.\n return float(idiv(ia, ib, s));\n } else {\n return NAN;\n }\n",e.shape,r.shape);return this.compileAndRun(i,[e,r],"int32")},n.prototype.add=function(e,r){if("complex64"===e.dtype&&"complex64"===r.dtype)return this.complexSeparableBinaryOp(e,r,dd);if(this.shouldExecuteOnCPU([e,r]))return this.cpuBackend.add(e,r);var i=Oi(e.dtype,r.dtype);if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,dd,i);var s=new Sa(dd,e.shape,r.shape);return this.compileAndRun(s,[e,r],i)},n.prototype.packedUnaryOp=function(e,r,i){var s=new P0(e.shape,r);return this.compileAndRun(s,[e],i)},n.prototype.packedBinaryOp=function(e,r,i,s,c){void 0===c&&(c=!1);var l=new Z1(i,e.shape,r.shape,c);return this.compileAndRun(l,[e,r],s)},n.prototype.complexSeparableBinaryOp=function(e,r,i){var s=this,c=this.texData.get(e.dataId),l=this.texData.get(r.dataId),u=[[c.complexTensors.real,l.complexTensors.real],[c.complexTensors.imag,l.complexTensors.imag]].map(function(x){var R=x[0],U=x[1],J=s.makeComplexComponentTensorInfo(e,R),ne=s.makeComplexComponentTensorInfo(r,U),ue=new Sa(i,e.shape,r.shape);return s.compileAndRun(ue,[J,ne],Oi(R.dtype,U.dtype))}),d=u[0],p=u[1],M=this.complex(d,p);return d.dispose(),p.dispose(),M},n.prototype.makeComplexComponentTensorInfo=function(e,r){return{dataId:r.dataId,dtype:r.dtype,shape:e.shape}},n.prototype.addN=function(e){if(1===e.length)return e[0];if(e.length>X().get("WEBGL_MAX_TEXTURES_IN_SHADER")){var r=Math.floor(e.length/2),i=this.addN(e.slice(0,r)),s=this.addN(e.slice(r));return this.addN([i,s])}var c=e.map(function(d){return d.dtype}).reduce(function(d,p){return Oi(d,p)}),l=e.map(function(d){return d.shape}),u=X().getBool("WEBGL_PACK")?new o9(e[0].shape,l):new hm(e[0].shape,l);return this.compileAndRun(u,e,c)},n.prototype.subtract=function(e,r){if("complex64"===e.dtype&&"complex64"===r.dtype)return this.complexSeparableBinaryOp(e,r,fd);if(this.shouldExecuteOnCPU([e,r]))return this.cpuBackend.subtract(e,r);var i=Oi(e.dtype,r.dtype);if(X().getBool("WEBGL_PACK_BINARY_OPERATIONS"))return this.packedBinaryOp(e,r,fd,e.dtype);var s=new Sa(fd,e.shape,r.shape);return this.compileAndRun(s,[e,r],i)},n.prototype.pow=function(e,r){var i=X().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Z1("\n // isModRound1 has 1 for components with round(mod(b, 2.0)) == 1, 0 otherwise.\n vec4 isModRound1 = vec4(equal(round(mod(b, 2.0)), ivec4(1)));\n vec4 multiplier = sign(a) * isModRound1 + (vec4(1.0) - isModRound1);\n vec4 result = multiplier * pow(abs(a), b);\n\n // Ensure that a^0 = 1, including 0^0 = 1 as this correspond to TF and JS\n bvec4 isExpZero = equal(b, vec4(0.0));\n result.r = isExpZero.r ? 1.0 : result.r;\n result.g = isExpZero.g ? 1.0 : result.g;\n result.b = isExpZero.b ? 1.0 : result.b;\n result.a = isExpZero.a ? 1.0 : result.a;\n\n vec4 isNaN = vec4(lessThan(a, vec4(0.0))) * vec4(lessThan(floor(b), b));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,r.shape):new Sa("\nif(a < 0.0 && floor(b) < b){\n return NAN;\n}\nif (b == 0.0) {\n return 1.0;\n}\nreturn (round(mod(b, 2.0)) != 1) ?\n pow(abs(a), b) : sign(a) * pow(abs(a), b);\n",e.shape,r.shape),s=Oi(e.dtype,r.dtype);return this.compileAndRun(i,[e,r],s)},n.prototype.ceil=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.ceil(e);if(X().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,sp,e.dtype);var r=new To(e.shape,sp);return this.compileAndRun(r,[e])},n.prototype.floor=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.floor(e);if(X().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,Td,e.dtype);var r=new To(e.shape,Td);return this.compileAndRun(r,[e])},n.prototype.sign=function(e){var r=new To(e.shape,"\n if (isnan(x)) { return 0.0; }\n return sign(x);\n");return this.compileAndRun(r,[e])},n.prototype.isNaN=function(e){var r=new To(e.shape,"return float(isnan(x));");return this.compileAndRun(r,[e],"bool")},n.prototype.isInf=function(e){var r=new To(e.shape,"return float(isinf(x));");return this.compileAndRun(r,[e],"bool")},n.prototype.isFinite=function(e){var r=new To(e.shape,"return float(!isnan(x) && !isinf(x));");return this.compileAndRun(r,[e],"bool")},n.prototype.round=function(e){var r=new To(e.shape,"\n // OpenGL ES does not support round function.\n // The algorithm is based on banker's rounding.\n float base = floor(x);\n if ((x - base) < 0.5) {\n return floor(x);\n } else if ((x - base) > 0.5) {\n return ceil(x);\n } else {\n if (mod(base, 2.0) == 0.0) {\n return base;\n } else {\n return base + 1.0;\n }\n }\n");return this.compileAndRun(r,[e])},n.prototype.exp=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.exp(e);if(X().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,cp,e.dtype);var r=new To(e.shape,cp);return this.compileAndRun(r,[e])},n.prototype.expm1=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.expm1(e);if(X().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,wd,e.dtype);var r=new To(e.shape,wd);return this.compileAndRun(r,[e])},n.prototype.softmax=function(e,r){var i=Ti([r],e.shape),s=this.max(e,i),c=Va(s.shape,i),l=this.subtract(e,s.reshape(c)),u=this.exp(l),d=this.sum(u,i).reshape(c);return this.realDivide(u,d)},n.prototype.log=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.log(e);if(X().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,"\n vec4 result = log(x);\n vec4 isNaN = vec4(lessThan(x, vec4(0.0)));\n result.r = isNaN.r == 1.0 ? NAN : result.r;\n result.g = isNaN.g == 1.0 ? NAN : result.g;\n result.b = isNaN.b == 1.0 ? NAN : result.b;\n result.a = isNaN.a == 1.0 ? NAN : result.a;\n\n return result;\n",e.dtype);var r=new To(e.shape,"if (x < 0.0) return NAN;\n return log(x);");return this.compileAndRun(r,[e])},n.prototype.log1p=function(e){var r=new To(e.shape,"return log(1.0 + x);");return this.compileAndRun(r,[e])},n.prototype.sqrt=function(e){var r=new To(e.shape,"return sqrt(x);");return this.compileAndRun(r,[e])},n.prototype.rsqrt=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.rsqrt(e);var r=new To(e.shape,"return inversesqrt(x);");return this.compileAndRun(r,[e])},n.prototype.reciprocal=function(e){var r=new To(e.shape,"return 1.0 / x;");return this.compileAndRun(r,[e])},n.prototype.relu=function(e){var r;return r=X().getBool("WEBGL_PACK")?new P0(e.shape,fp):new To(e.shape,np),this.compileAndRun(r,[e])},n.prototype.relu6=function(e){var r;return r=X().getBool("WEBGL_PACK")?new P0(e.shape,hp):new To(e.shape,rp),this.compileAndRun(r,[e])},n.prototype.prelu=function(e,r){var i=X().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Z1(Mm,e.shape,r.shape):new Sa(ym,e.shape,r.shape);return this.compileAndRun(i,[e,r])},n.prototype.elu=function(e){if(X().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,mp,e.dtype);var r=new To(e.shape,op);return this.compileAndRun(r,[e])},n.prototype.eluDer=function(e,r){var i=X().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Z1("\n vec4 bGTEZero = vec4(greaterThanEqual(b, vec4(0.)));\n return (bGTEZero * a) + ((vec4(1.0) - bGTEZero) * (a * (b + vec4(1.0))));\n",e.shape,r.shape):new Sa("return (b >= 1.0) ? a : a * (b + 1.0);",e.shape,r.shape);return this.compileAndRun(i,[e,r])},n.prototype.selu=function(e){var r=new To(e.shape,"\n // Stable and Attracting Fixed Point (0, 1) for Normalized Weights.\n // see: https://arxiv.org/abs/1706.02515\n float scaleAlpha = 1.7580993408473768;\n float scale = 1.0507009873554805;\n return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0);\n");return this.compileAndRun(r,[e])},n.prototype.int=function(e){var r=new To(e.shape,"return float(int(x));");return this.compileAndRun(r,[e],"int32")},n.prototype.clip=function(e,r,i){var s,c=(s=X().getBool("WEBGL_PACK_CLIP")?new p9(e.shape):new m9(e.shape)).getCustomSetupFunc(r,i);return this.compileAndRun(s,[e],null,c)},n.prototype.abs=function(e){if(this.shouldExecuteOnCPU([e]))return this.cpuBackend.abs(e);if(X().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,Sd,e.dtype);var r=new To(e.shape,Sd);return this.compileAndRun(r,[e])},n.prototype.complexAbs=function(e){var r=this.texData.get(e.dataId),i=new _9(e.shape),s=[this.makeComplexComponentTensorInfo(e,r.complexTensors.real),this.makeComplexComponentTensorInfo(e,r.complexTensors.imag)];return this.compileAndRun(i,s)},n.prototype.sigmoid=function(e){var r=new To(e.shape,"return 1.0 / (1.0 + exp(-1.0 * x));");return this.compileAndRun(r,[e])},n.prototype.softplus=function(e){var r=new To(e.shape,"\n float epsilon = 1.1920928955078125e-7;\n float threshold = log(epsilon) + 2.0;\n\n bool too_large = x > -threshold;\n bool too_small = x < threshold;\n\n float result;\n float exp_x = exp(x);\n\n if (too_large){\n result = x;\n }\n else if (too_small){\n result = exp_x;\n }\n else{\n result = log(exp_x + 1.0);\n }\n return result;\n");return this.compileAndRun(r,[e])},n.prototype.sin=function(e){var r=new To(e.shape,"if (isnan(x)) return x;\n return sin(x);\n");return this.compileAndRun(r,[e])},n.prototype.cos=function(e){var r=new To(e.shape,"if (isnan(x)) return x;\n return cos(x);\n");return this.compileAndRun(r,[e])},n.prototype.tan=function(e){var r=new To(e.shape,"return tan(x);");return this.compileAndRun(r,[e])},n.prototype.asin=function(e){var r=new To(e.shape,"if (isnan(x)) return x;\n if (abs(x) > 1.) {\n return NAN;\n }\n return asin(x);\n");return this.compileAndRun(r,[e])},n.prototype.acos=function(e){var r=new To(e.shape,"if (isnan(x)) return x;\n if (abs(x) > 1.) {\n return NAN;\n }\n return acos(x);\n");return this.compileAndRun(r,[e])},n.prototype.atan=function(e){var r=new To(e.shape,"if (isnan(x)) return x;\n return atan(x);\n");return this.compileAndRun(r,[e])},n.prototype.atan2=function(e,r){var i=X().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Z1("\n vec4 result = atan(a, b);\n vec4 isNaN = min(vec4(isnan(a)) + vec4(isnan(b)), vec4(1.0));\n \n result.r = isNaN.r > 0. ? NAN : result.r;\n result.g = isNaN.g > 0. ? NAN : result.g;\n result.b = isNaN.b > 0. ? NAN : result.b;\n result.a = isNaN.a > 0. ? NAN : result.a;\n\n return result;\n",e.shape,r.shape):new Sa("\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return atan(a, b);\n",e.shape,r.shape);return this.compileAndRun(i,[e,r])},n.prototype.sinh=function(e){var r=new To(e.shape,"\n float e2x = exp(x);\n return (e2x - 1.0 / e2x) / 2.0;\n");return this.compileAndRun(r,[e])},n.prototype.cosh=function(e){var r=new To(e.shape,"\n float e2x = exp(-x);\n return (e2x + 1.0 / e2x) / 2.0;\n");return this.compileAndRun(r,[e])},n.prototype.tanh=function(e){var r=new To(e.shape,"\n float e2x = exp(-2.0 * abs(x));\n return sign(x) * (1.0 - e2x) / (1.0 + e2x);\n");return this.compileAndRun(r,[e])},n.prototype.asinh=function(e){var r=new To(e.shape,"if (isnan(x)) return x;return log(x + sqrt(x * x + 1.0));");return this.compileAndRun(r,[e])},n.prototype.acosh=function(e){var r=new To(e.shape,"if (isnan(x)) return x;\n if (x < 1.0) return NAN;\n return log(x + sqrt(x * x - 1.0));");return this.compileAndRun(r,[e])},n.prototype.atanh=function(e){var r=new To(e.shape,"if (isnan(x)) return x;\n if ((x < -1.0) || (x > 1.0)) return NAN;\n return (log(1.0 + x) - log(1.0 - x)) / 2.0;");return this.compileAndRun(r,[e])},n.prototype.erf=function(e){var r=new To(e.shape,'\n // Error function is calculated approximately with elementary function.\n // See "Handbook of Mathematical Functions with Formulas,\n // Graphs, and Mathematical Tables", Abramowitz and Stegun.\n float p = 0.3275911;\n float a1 = 0.254829592;\n float a2 = -0.284496736;\n float a3 = 1.421413741;\n float a4 = -1.453152027;\n float a5 = 1.061405429;\n\n float sign = sign(x);\n x = abs(x);\n float t = 1.0 / (1.0 + p * x);\n return sign * (1.0 - (((((a5*t + a4)*t) + a3)*t + a2)*t + a1)*t*exp(-x*x));\n');return this.compileAndRun(r,[e])},n.prototype.step=function(e,r){var s,i=new To(e.shape,(void 0===(s=r)&&(s=0),u1+"\n return x > 0.0 ? 1.0 : float("+s+");\n "));return this.compileAndRun(i,[e])},n.prototype.conv2dByMatMul=function(e,r,i,s,c,l){var u=e.shape,d=this.texData.get(e.dataId),R="channelsLast"===i.dataFormat,J=u[2]%2!=0&&!!d.isPacked;if((1==u[0]*u[1]*u[2]||1===i.outChannels)&&i.inChannels>1e3||!X().getBool("WEBGL_LAZILY_UNPACK")||!X().getBool("WEBGL_PACK_BINARY_OPERATIONS")||!J){var ue=this.reshape(e,[1,R?u[0]*u[1]*u[2]:u[0]*u[2]*u[3],i.inChannels]),Ie=this.reshape(r,[1,i.inChannels,i.outChannels]);return this.reshape(this.fusedBatchMatMul({a:ue,b:Ie,transposeA:!1,transposeB:!1,bias:s,activation:c,preluActivationWeights:l}),i.outShape)}var Oe={dataId:e.dataId,shape:[1,R?u[0]*u[1]*(u[2]+1):u[0]*u[2]*(u[3]+1),i.inChannels],dtype:e.dtype},Fe=d.shape;d.shape=d.shape.slice(),d.shape[d.shape.length-2]++,at(pr(d.shape,Oe.shape),function(){return"packed reshape "+d.shape+" to "+Oe.shape+" isn't free"});var et=this.reshape(r,[1,i.inChannels,i.outChannels]),Ct=this.fusedBatchMatMul({a:Oe,b:et,transposeA:!1,transposeB:!1,bias:s,activation:c,preluActivationWeights:l}),yt=this.texData.get(Ct.dataId);return at(yt.isPacked,function(){return"batchMatMul result is expected to be packed"}),d.shape=Fe,yt.shape=i.outShape,Ye.makeTensorFromDataId(Ct.dataId,i.outShape,Ct.dtype)},n.prototype.conv2dWithIm2Row=function(e,r,i,s,c,l){var M=i.outWidth,x=i.outHeight,R="channelsLast"===i.dataFormat,U=i.filterWidth*i.filterHeight*i.inChannels,J=x*M,ne=[U,J],ue=e.squeeze([0]),Ie=r.reshape([1,U,-1]),Ae=new N9(ne,ue.shape,i),Oe=this.compileAndRun(Ae,[ue]).reshape([1,ne[0],ne[1]]),Fe=null!=s,et=null!=l,Ct=c?q3(c,!0):null,yt=new X3(Oe.shape,[1,J,i.outChannels],!0,!1,Fe,Ct,et),pt=[Oe,Ie];return s&&pt.push(s),et&&pt.push(l),this.compileAndRun(yt,pt).reshape(R?[1,x,M,i.outChannels]:[1,i.outChannels,x,M])},n.prototype.fusedConv2d=function(e){var r=e.input,i=e.filter,s=e.convInfo,c=e.bias,l=e.activation,u=e.preluActivationWeights;if(1===s.filterHeight&&1===s.filterWidth&&1===s.dilationHeight&&1===s.dilationWidth&&1===s.strideHeight&&1===s.strideWidth&&("SAME"===s.padInfo.type||"VALID"===s.padInfo.type))return this.conv2dByMatMul(r,i,s,c,l,u);if(X().getBool("WEBGL_CONV_IM2COL")&&1===r.shape[0])return this.conv2dWithIm2Row(r,i,s,c,l,u);var d=null!=c,p=null!=u,M=l?q3(l,!1):null,x=new Tm(s,d,M,p),R=[r,i];return c&&R.push(c),u&&R.push(u),this.compileAndRun(x,R)},n.prototype.conv2d=function(e,r,i){if(1===i.filterHeight&&1===i.filterWidth&&1===i.dilationHeight&&1===i.dilationWidth&&1===i.strideHeight&&1===i.strideWidth&&("SAME"===i.padInfo.type||"VALID"===i.padInfo.type))return this.conv2dByMatMul(e,r,i);if(X().getBool("WEBGL_CONV_IM2COL")&&1===e.shape[0])return this.conv2dWithIm2Row(e,r,i);var s=new Tm(i);return this.compileAndRun(s,[e,r])},n.prototype.conv2dDerInput=function(e,r,i){var s=new v9(i);return this.compileAndRun(s,[e,r])},n.prototype.conv2dDerFilter=function(e,r,i){var s=new bm(i);return this.compileAndRun(s,[e,r])},n.prototype.fusedDepthwiseConv2D=function(e){var r,i=e.input,s=e.filter,c=e.convInfo,l=e.bias,u=e.activation,d=e.preluActivationWeights,p=X().getBool("WEBGL_PACK_DEPTHWISECONV")&&c.strideWidth<=2&&c.outChannels/c.inChannels==1,M=u?q3(u,p):null,x=[i,s],R=null!=l,U=null!=d;return R&&x.push(l),U&&x.push(d),p?(r=new xm(c,R,M,U),this.compileAndRun(r,x)):(r=new Em(c,R,M,U),this.compileAndRun(r,x))},n.prototype.depthwiseConv2D=function(e,r,i){var s;return X().getBool("WEBGL_PACK_DEPTHWISECONV")&&i.strideWidth<=2&&i.outChannels/i.inChannels==1?(s=new xm(i),this.compileAndRun(s,[e,r])):(s=new Em(i),this.compileAndRun(s,[e,r]))},n.prototype.depthwiseConv2DDerInput=function(e,r,i){var s=new Sm(i);return this.compileAndRun(s,[e,r])},n.prototype.depthwiseConv2DDerFilter=function(e,r,i){var s=new M9(i);return this.compileAndRun(s,[e,r])},n.prototype.conv3d=function(e,r,i){var s=new wm(i);return this.compileAndRun(s,[e,r])},n.prototype.conv3dDerInput=function(e,r,i){var s=new y9(i);return this.compileAndRun(s,[e,r])},n.prototype.conv3dDerFilter=function(e,r,i){var s=new Lm(i);return this.compileAndRun(s,[e,r])},n.prototype.maxPool=function(e,r){var i=new vd(r,"max",!1);return this.compileAndRun(i,[e])},n.prototype.avgPool=function(e,r){var i=new vd(r,"avg",!1);return this.compileAndRun(i,[e],"float32")},n.prototype.maxPoolBackprop=function(e,r,i,s){var c=new vd(s,"max",!0),l=this.compileAndRun(c,[r]),u=new Y9(s),d=this.compileAndRun(u,[e,l],r.dtype);return l.dispose(),d},n.prototype.avgPoolBackprop=function(e,r,i){var s=new u9(i);return this.compileAndRun(s,[e],r.dtype)},n.prototype.cast=function(e,r){return nd(e,r,this)},n.prototype.unstack=function(e,r){for(var i=e.shape[r],s=new Array(e.rank-1),c=0,l=0;l<e.rank;l++)l!==r&&(s[c++]=e.shape[l]);var u=new Array(e.rank).fill(0),d=e.shape.slice();d[r]=1;var p=new Array(i);for(l=0;l<p.length;l++)u[r]=l,p[l]=this.slice(e,u,d).reshape(s);return p},n.prototype.avgPool3d=function(e,r){var i=new yd(r,"avg",!1);return this.compileAndRun(i,[e],"float32")},n.prototype.avgPool3dBackprop=function(e,r,i){var s=new gm(i);return this.compileAndRun(s,[e],r.dtype)},n.prototype.maxPool3d=function(e,r){var i=new yd(r,"max",!1);return this.compileAndRun(i,[e],"float32")},n.prototype.maxPool3dBackprop=function(e,r,i,s){var c=new yd(s,"max",!0),l=this.compileAndRun(c,[r]),u=new F9(s),d=this.compileAndRun(u,[e,l],r.dtype);return l.dispose(),d},n.prototype.reshape=function(e,r){var i=this.texData.get(e.dataId);if(i.isPacked&&!pr(e.shape,r)&&(null===i.texture||!pr(i.shape,r))){var s=this.packedReshape(e,r);return Ye.makeTensorFromDataId(s.dataId,s.shape,s.dtype)}return k0(e,r)},n.prototype.resizeBilinear=function(e,r,i,s){var c=X().getBool("WEBGL_PACK_IMAGE_OPERATIONS")?new Zm(e.shape,r,i,s):new V9(e.shape,r,i,s);return this.compileAndRun(c,[e],"float32")},n.prototype.resizeBilinearBackprop=function(e,r,i){var s=new Xm(e,r,i);return this.compileAndRun(s,[e])},n.prototype.resizeNearestNeighbor=function(e,r,i,s){var c=new $9(e.shape,r,i,s);return this.compileAndRun(c,[e])},n.prototype.resizeNearestNeighborBackprop=function(e,r,i){var s=new G9(e,r,i);return this.compileAndRun(s,[e])},n.prototype.multinomial=function(e,r,i,s){var c=r?e:K1(e),d=new H9(c.shape[0],c.shape[1],i),p=d.getCustomSetupFunc(s);return this.compileAndRun(d,[c],"int32",p)},n.prototype.oneHot=function(e,r,i,s){var c=new B9(e.size,r,i,s);return this.compileAndRun(c,[e])},n.prototype.diag=function(e){var r=new Pm(e.size);return this.compileAndRun(r,[e])},n.prototype.nonMaxSuppression=function(e,r,i,s,c){return V1("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead"),ad(e.dataSync(),r.dataSync(),i,s,c)},n.prototype.cropAndResize=function(e,r,i,s,c,l){var u=new C9(e.shape,r.shape,s,c,l);return this.compileAndRun(u,[e,r,i],"float32")},n.prototype.depthToSpace=function(e,r,i){at(r>1,function(){return"blockSize should be > 1 for depthToSpace, but was: "+r});var s=e.shape[0],d=("NHWC"===i?e.shape[1]:e.shape[2])*r,p=("NHWC"===i?e.shape[2]:e.shape[3])*r,M=("NHWC"===i?e.shape[3]:e.shape[1])/(r*r),x=new S9("NHWC"===i?[s,d,p,M]:[s,M,d,p],r,i);return this.compileAndRun(x,[e])},n.prototype.split=function(e,r,i){return um(e,r,i)},n.prototype.scatterND=function(e,r,i){var s=Sl(0,e,i),c=s.sliceRank,l=s.numUpdates,u=s.sliceSize,d=s.strides,p=s.outputSize,M=[p/u,u],x=e.reshape([l,c]),R=r.reshape([l,u]);if(0===p)return k0(xi([]),i);var U=wn(0),J=new Jm(l,c,x.rank,R.rank,d,M);return this.compileAndRun(J,[R,x,U]).reshape(i)},n.prototype.sparseToDense=function(e,r,i,s){var c=Sl(0,e,i),M=new Jm(c.numUpdates,c.sliceRank,e.rank,r.rank,c.strides,[c.outputSize,1],!1);return this.compileAndRun(M,[r,e,s]).reshape(i)},n.prototype.fft=function(e){return this.fftImpl(e,!1)},n.prototype.ifft=function(e){return this.fftImpl(e,!0)},n.prototype.fftImpl=function(e,r){var i=this.texData.get(e.dataId),s=new Om("return real * expR - imag * expI;",e.shape,r),c=new Om("return real * expI + imag * expR;",e.shape,r),l=[this.makeComplexComponentTensorInfo(e,i.complexTensors.real),this.makeComplexComponentTensorInfo(e,i.complexTensors.imag)],u=this.compileAndRun(s,l),d=this.compileAndRun(c,l),p=this.complex(u,d).as2D(e.shape[0],e.shape[1]);return u.dispose(),d.dispose(),p},n.prototype.gatherND=function(e,r){var i=r.shape,s=i[i.length-1],c=X4(e,r),l=c[0],u=c[1],d=c[2],p=c[3],M=r.reshape([u,s]),x=e.reshape([e.size/d,d]),R=new I9(s,p,[u,d]);return this.compileAndRun(R,[x,M]).reshape(l)},n.prototype.fill=function(e,r,i){if("string"===(i=i||Ls(r))){var s=Ea(i,rr(e));return s.fill(r),Ye.makeTensor(s,e,i,this)}var c=new P9(e,r),l=c.getCustomSetupFunc(r);return this.compileAndRun(c,[],i,l)},n.prototype.onesLike=function(e){if("string"===e.dtype)throw new Error("onesLike is not supported under string dtype");return this.fill(e.shape,1,e.dtype)},n.prototype.zerosLike=function(e){return this.fill(e.shape,"string"===e.dtype?"":0,e.dtype)},n.prototype.linspace=function(e,r,i){return rd(e,r,i)},n.prototype.makeTensorInfo=function(e,r){var i=this.write(null,e,r);return this.texData.get(i).usage=null,{dataId:i,shape:e,dtype:r}},n.prototype.makeOutput=function(e,r){var i=this.makeTensorInfo(e,r).dataId;return Ye.makeTensorFromDataId(i,e,r,this)},n.prototype.unpackTensor=function(e){var r=new J3(e.shape);return this.runWebGLProgram(r,[e],e.dtype)},n.prototype.packTensor=function(e){var r=new j9(e.shape);return this.runWebGLProgram(r,[e],e.dtype,null,!0)},n.prototype.packedReshape=function(e,r){var i=[_s(e.shape)].concat(gs(e.shape)),s={dtype:e.dtype,shape:i,dataId:e.dataId},c=[_s(r)].concat(gs(r)),l=new U9(c,i),u=this.runWebGLProgram(l,[s],e.dtype,null,!0);return{dataId:u.dataId,shape:r,dtype:u.dtype}},n.prototype.decode=function(e){var r,i=this.texData.get(e),s=i.isPacked,c=i.shape,l=i.dtype,u=sc(c);return r=s?new L9(u):new b9(u),{dtype:l,shape:c,dataId:this.runWebGLProgram(r,[{shape:u,dtype:l,dataId:e}],l,null,!0).dataId}},n.prototype.runWebGLProgram=function(e,r,i,s,c){var l=this;void 0===c&&(c=!1);var u=this.makeTensorInfo(e.outputShape,i),d=this.texData.get(u.dataId);if(e.packedOutput&&(d.isPacked=!0),e.outPackingScheme===cr.DENSE){var p=ca(e.outputShape);d.texShape=p.map(function(Ae){return 2*Ae})}if(null!=e.outTexUsage&&(d.usage=e.outTexUsage),0===rr(u.shape))return d.values=Ba(u.dtype,0),u;var M=[],x=r.map(function(Ae){if("complex64"===Ae.dtype)throw new Error("GPGPUProgram does not support complex64 input. For complex64 dtypes, please separate the program into real and imaginary parts.");var Oe=l.texData.get(Ae.dataId);if(null==Oe.texture){if(!e.packedInputs&&rr(Ae.shape)<=X().getNumber("WEBGL_SIZE_UPLOAD_UNIFORM"))return{shape:Ae.shape,texData:null,isUniform:!0,uniformValues:Oe.values};e.packedInputs&&(Oe.isPacked=!0,Oe.shape=Ae.shape)}else if(!!Oe.isPacked!=!!e.packedInputs)Ae=Oe.isPacked?l.unpackTensor(Ae):l.packTensor(Ae),M.push(Ae),Oe=l.texData.get(Ae.dataId);else if(Oe.isPacked&&!pr(Oe.shape,Ae.shape)){var Fe=Ae,et=Ae.shape;Ae.shape=Oe.shape,Ae=l.packedReshape(Ae,et),M.push(Ae),Oe=l.texData.get(Ae.dataId),Fe.shape=et}return l.uploadToGPU(Ae.dataId),{shape:Ae.shape,texData:Oe,isUniform:!1}});this.uploadToGPU(u.dataId);var R,Ae,et,U={shape:u.shape,texData:d,isUniform:!1},J=(Ae=e,et="",x.concat(U).forEach(function(pt){et+=pt.shape+"_"+(pt.isUniform?"uniform":pt.texData.texShape)+"_"+(null!=pt.texData&&null!=pt.texData.slice&&pt.texData.slice.flatOffset>0)}),Ae.constructor.name+"_"+et+"_"+Ae.userCode),ne=this.getAndSaveBinary(J,function(){return function(Ae,Oe,Fe,et){var Ct=Oe.userCode,yt=Fe.map(function(bn,Nn){var Rn={logicalShape:bn.shape,texShape:bn.isUniform?null:bn.texData.texShape,isUniform:bn.isUniform,isPacked:!bn.isUniform&&bn.texData.isPacked,flatOffset:null};return null!=bn.texData&&null!=bn.texData.slice&&bn.texData.slice.flatOffset>0&&(Rn.flatOffset=bn.texData.slice.flatOffset),{name:Oe.variableNames[Nn],shapeInfo:Rn}}),pt=yt.map(function(bn){return bn.shapeInfo}),gt={logicalShape:et.shape,texShape:et.texData.texShape,isUniform:!1,isPacked:et.texData.isPacked,flatOffset:null},Bt=i9(yt,gt,Ct,Oe.packedInputs),Ft=Ae.createProgram(Bt),yn=null,pn=Ae.getUniformLocation(Ft,"NAN",!1);1===X().getNumber("WEBGL_VERSION")&&(yn=Ae.getUniformLocation(Ft,"INFINITY",!1));for(var _n={},Dn=0;Dn<Oe.variableNames.length;Dn++){var En=Oe.variableNames[Dn];_n[En]=Ae.getUniformLocation(Ft,En,!1),_n["offset"+En]=Ae.getUniformLocation(Ft,"offset"+En,!1)}return{program:Oe,source:Bt,webGLProgram:Ft,uniformLocations:_n,inShapeInfos:pt,outShapeInfo:gt,infLoc:yn,nanLoc:pn}}(l.gpgpu,e,x,U)}),ue=null!=this.activeTimers;if(ue&&(R=this.startTimer()),function(Ae,Oe,Fe,et,Ct){_d(Oe.inShapeInfos,Fe),_d([Oe.outShapeInfo],[et]);var yt=et.texData.texture,pt=et.texData.texShape;et.texData.isPacked?Ae.setOutputPackedMatrixTexture(yt,pt[0],pt[1]):Ae.setOutputMatrixTexture(yt,pt[0],pt[1]),Ae.setProgram(Oe.webGLProgram),1===X().getNumber("WEBGL_VERSION")&&null!==Oe.infLoc&&Ae.gl.uniform1f(Oe.infLoc,1/0),null!==Oe.nanLoc&&Ae.gl.uniform1f(Oe.nanLoc,NaN),Fe.forEach(function(gt,Bt){var Ft=Oe.program.variableNames[Bt],yn=Oe.uniformLocations[Ft],pn=Oe.uniformLocations["offset"+Ft];if(null!=yn)if(gt.isUniform)if(rr(gt.shape)<2)Ae.gl.uniform1f(yn,gt.uniformValues[0]);else{var _n=gt.uniformValues;_n instanceof Float32Array||(_n=new Float32Array(_n)),Ae.gl.uniform1fv(yn,_n)}else null!=gt.texData.slice&&null!=pn&&Ae.gl.uniform1i(pn,gt.texData.slice.flatOffset),Ae.setInputMatrixTexture(gt.texData.texture,yn,Bt)}),Ct?.(Ae,Oe.webGLProgram),Ae.executeProgram()}(this.gpgpu,ne,x,U,s),M.forEach(function(Ae){return l.disposeData(Ae.dataId)}),ue&&(R=this.endTimer(R),this.activeTimers.push({name:e.constructor.name,query:this.getQueryTime(R)})),!X().getBool("WEBGL_LAZILY_UNPACK")&&d.isPacked&&!1===c){var Ie=this.unpackTensor(u);return this.disposeData(u.dataId),Ie}return u},n.prototype.compileAndRun=function(e,r,i,s,c){void 0===c&&(c=!1);var l=this.runWebGLProgram(e,r,i=i||r[0].dtype,s,c);return Ye.makeTensorFromDataId(l.dataId,l.shape,l.dtype)},n.prototype.getAndSaveBinary=function(e,r){return e in this.binaryCache||(this.binaryCache[e]=r()),this.binaryCache[e]},n.prototype.getTextureManager=function(){return this.textureManager},n.prototype.dispose=function(){var e=this;this.disposed||(X().getBool("IS_TEST")||Object.keys(this.binaryCache).forEach(function(r){e.gpgpu.deleteProgram(e.binaryCache[r].webGLProgram),delete e.binaryCache[r]}),this.textureManager.dispose(),null!=this.canvas&&typeof HTMLCanvasElement<"u"&&this.canvas instanceof HTMLCanvasElement?this.canvas.remove():this.canvas=null,this.gpgpuCreatedLocally&&(this.gpgpu.program=null,this.gpgpu.dispose()),this.disposed=!0)},n.prototype.floatPrecision=function(){var e=this;return null==this.floatPrecisionValue&&(this.floatPrecisionValue=ir(function(){if(!X().get("WEBGL_RENDER_FLOAT32_ENABLED")){var r=X().getBool("DEBUG");X().set("DEBUG",!1);var i=e.abs(wn(1e-8)).dataSync()[0];if(X().set("DEBUG",r),i>0)return 32}return 16})),this.floatPrecisionValue},n.prototype.epsilon=function(){return 32===this.floatPrecision()?1e-7:1e-4},n.prototype.uploadToGPU=function(e){var r,i=this.texData.get(e),s=i.shape,c=i.dtype,l=i.values,d=i.usage,p=i.isPacked;if(null==i.texture){var M,x=null!=this.activeTimers;x&&(M=Wa());var R=i.texShape;if(null==R&&(R=lr(s,p),i.texShape=R),null!=l){var U=sc(s),J=void 0,ne=R[1],ue=R[0],Ie=l instanceof Uint8Array;p?(ne=(r=Ca(R[0],R[1]))[0],J=new x9(U,[ue=r[1],ne],Ie)):J=new E9(U,[ue,ne],Ie);var Ae=this.makeTensorInfo([ue,ne],c);this.texData.get(Ae.dataId).usage=Ie?Kn.PIXELS:Kn.UPLOAD,this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(Ae.dataId),ne,ue,l);var Oe=this.runWebGLProgram(J,[Ae],c,null,!0),Fe=this.texData.get(Oe.dataId);i.texture=Fe.texture,i.texShape=Fe.texShape,i.isPacked=Fe.isPacked,i.usage=Fe.usage,this.disposeData(Ae.dataId),this.texData.delete(Oe.dataId),i.values=null,x&&(this.uploadWaitMs+=Wa()-M)}else{var et=this.acquireTexture(R,d,c,p);i.texture=et}}},n.prototype.convertAndCacheOnCPU=function(e,r){var i=this.texData.get(e),s=i.dtype;return this.releaseGPUData(e),null!=r&&(i.values=function(c,l){if("float32"===l||"complex64"===l)return c;if("int32"===l||"bool"===l){for(var u="int32"===l?new Int32Array(c.length):new Uint8Array(c.length),d=0;d<u.length;++d)u[d]=Math.round(c[d]);return u}throw new Error("Unknown dtype "+l)}(r,s)),i.values},n.prototype.acquireTexture=function(e,r,i,s){if(this.numBytesInGPU+=this.computeBytes(e,i),!this.warnedAboutMemory&&this.numBytesInGPU>1024*this.numMBBeforeWarning*1024){var c=(this.numBytesInGPU/1024/1024).toFixed(2);this.warnedAboutMemory=!0,console.warn("High memory usage in GPU: "+c+" MB, most likely due to a memory leak")}return this.textureManager.acquireTexture(e,r,s)},n.prototype.computeBytes=function(e,r){return e[0]*e[1]*ds(r)},n}(sm);sn()&&Ye.registerBackend("webgl",function(){return new pp},2);var uv=kt({square_:function(t){var n=Qe(t,"x","square");return Ye.runKernelFunc(function(r,i){return i([n]),r.square(n)},{x:n},null,"Square",{},[n],[])}}),K2="SquaredDifference",_p=kt({squaredDifference_:function(t,n){var e,r=Qe(t,"a","squaredDifference"),i=Qe(n,"b","squaredDifference");return e=ti(r,i),zo((r=e[0]).shape,(i=e[1]).shape),Ye.runKernelFunc(function(l,u){var d=l.squaredDifference(r,i);return u([r,i]),d},{a:r,b:i},function(l,u){var d=u[0],p=u[1],M=wn(2);return{a:function(){return l.mul(d.sub(p).mul(M))},b:function(){return l.mul(p.sub(d).mul(M))}}},K2,{},[r,i],[])}}),dv=kt({abs_:function(t){var n=Qe(t,"x","abs");return"complex64"===n.dtype?Ye.runKernelFunc(function(e){return e.complexAbs(n)},{$x:n}):Ye.runKernelFunc(function(e,r){var i=e.abs(n);return r([n]),i},{x:n},function(e,r){var i=r[0];return{x:function(){return e.mul(i.toFloat().step(-1))}}},"Abs")}}),gp=kt({acos_:function(t){var n=Qe(t,"x","acos");return Ye.runKernelFunc(function(e,r){var i=e.acos(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.divStrict(wn(1).sub(i.toFloat().square()).sqrt()).neg()}}})}}),fv=kt({acosh_:function(t){var n=Qe(t,"x","acosh");return Ye.runKernelFunc(function(e,r){var i=e.acosh(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.divStrict(i.toFloat().square().sub(1).sqrt())}}})}}),hv=kt({asin_:function(t){var n=Qe(t,"x","asin");return Ye.runKernelFunc(function(e,r){var i=e.asin(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.divStrict(wn(1).sub(i.toFloat().square()).sqrt())}}})}}),vp=kt({asinh_:function(t){var n=Qe(t,"x","asinh");return Ye.runKernelFunc(function(e,r){var i=e.asinh(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.divStrict(wn(1).add(i.toFloat().square()).sqrt())}}})}}),mv=kt({atan_:function(t){var n=Qe(t,"x","atan");return Ye.runKernelFunc(function(e,r){var i=e.atan(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.div(i.toFloat().square().add(1))}}})}}),pv=kt({atanh_:function(t){var n=Qe(t,"x","atanh");return Ye.runKernelFunc(function(e,r){var i=e.atanh(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.div(wn(1).sub(i.toFloat().square()))}}})}}),yp=kt({ceil_:function(t){var n=Qe(t,"x","ceil");return Ye.runKernelFunc(function(e){return e.ceil(n)},{$x:n},function(e){return{$x:function(){return Zo(e)}}})}}),Ed=kt({clipByValue_:function(t,n,e){var r=Qe(t,"x","clipByValue");return at(n<=e,function(){return"Error in clip: min ("+n+") must be less than or equal to max ("+e+")."}),Ye.runKernelFunc(function(c,l){var u=c.clip(r,n,e);return l([r]),u},{x:r},function(c,l){var u=l[0];return{x:function(){return c.where(u.greaterEqual(n).logicalAnd(u.lessEqual(e)),Zo(c))}}},"ClipByValue",{min:n,max:e},[r])}}),Mp=kt({cos_:function(t){var n=Qe(t,"x","cos");return Ye.runKernelFunc(function(r,i){var s=r.cos(n);return i([n]),s},{x:n},function(r,i){var s=i[0];return{x:function(){return s.toFloat().sin().neg().mul(r)}}},"Cos",{},[n])}}),_v=kt({cosh_:function(t){var n=Qe(t,"x","cosh");return Ye.runKernelFunc(function(e,r){var i=e.cosh(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return i.toFloat().sinh().mulStrict(e)}}})}}),gv=kt({erf_:function(t){var n=Qe(t,"x","erf");return at("int32"===n.dtype||"float32"===n.dtype,function(){return"Input dtype must be `int32` or `float32`."}),"int32"===n.dtype&&(n=n.toFloat()),Ye.runKernelFunc(function(e,r){var i=e.erf(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.mul(i.square().neg().exp().mul(2/Math.sqrt(Math.PI)))}}})}}),xd=kt({exp_:function(t){var n=Qe(t,"x","exp");return Ye.runKernelFunc(function(e,r){var i=e.exp(n);return r([i]),i},{x:n},function(e,r){return{x:function(){return e.mulStrict(r[0])}}},"Exp",{},[],[!0])}}),vv=kt({expm1_:function(t){var n=Qe(t,"x","expm1");return Ye.runKernelFunc(function(e,r){var i=e.expm1(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.mul(i.exp())}}})}}),kd=kt({floor_:function(t){var n=Qe(t,"x","floor");return Ye.runKernelFunc(function(e){return e.floor(n)},{$x:n},function(e){return{$x:function(){return Zo(e)}}})}}),yv=kt({log_:function(t){var n=Qe(t,"x","log");return Ye.runKernelFunc(function(r,i){var s=r.log(n);return i([n]),s},{x:n},function(r,i){var s=i[0];return{x:function(){return r.div(s.toFloat())}}},"Log",{},[n])}}),Mv=kt({log1p_:function(t){var n=Qe(t,"x","log1p");return Ye.runKernelFunc(function(e,r){var i=e.log1p(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.div(i.add(1))}}})}}),Dd=kt({logSigmoid_:function(t){var n=Qe(t,"x","logSigmoid");return Ye.runKernelFunc(function(e,r){var i=e.softplus(n.neg()).neg();return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.mul(i.neg().sigmoid())}}})}}),eu=kt({neg_:function(t){var n=Qe(t,"x","neg");return Ye.runKernelFunc(function(r){return r.neg(n)},{x:n},function(r){return{x:function(){return r.neg()}}},"Neg",{},[n])}}),Cv=kt({reciprocal_:function(t){var n=Qe(t,"x","reciprocal");return Ye.runKernelFunc(function(e,r){var i=e.reciprocal(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.div(i.square().neg())}}})}}),bv=kt({round_:function(t){var n=Qe(t,"x","round");return Ye.runKernelFunc(function(e){return e.round(n)},{$x:n},function(e){return{$x:function(){return Zo(e)}}})}}),Cp=kt({rsqrt_:function(t){var n=Qe(t,"x","rsqrt");return Ye.runKernelFunc(function(r,i){var s=r.rsqrt(n);return i([n]),s},{x:n},function(r,i){var s=i[0];return{x:function(){return r.div(s.pow(1.5).mul(2)).neg()}}},"Rsqrt",{},[n])}}),bp=kt({sigmoid_:function(t){var n=Qe(t,"x","sigmoid");return Ye.runKernelFunc(function(e,r){var i=e.sigmoid(n);return r([i]),i},{x:n},function(e,r){var i=r[0];return{x:function(){return e.mul(i.mul(wn(1).sub(i)))}}},"Sigmoid")}}),Lv=kt({sign_:function(t){var n=Qe(t,"x","sign");return Ye.runKernelFunc(function(e){return e.sign(n)},{$x:n},function(e){return{$x:function(){return Zo(e)}}})}}),Sv=kt({isNaN_:function(t){var n=Qe(t,"x","isNaN");return Ye.runKernelFunc(function(e){return e.isNaN(n)},{$x:n},function(e){return{$x:function(){return Zo(e)}}})}}),Lp=kt({isInf_:function(t){var n=Qe(t,"x","isInf");return Ye.runKernelFunc(function(e){return e.isInf(n)},{$x:n},function(e){return{$x:function(){return Zo(e)}}})}}),Tv=kt({isFinite_:function(t){var n=Qe(t,"x","isFinite");return Ye.runKernelFunc(function(e){return e.isFinite(n)},{$x:n},function(e){return{$x:function(){return Zo(e)}}})}}),Sp=kt({sin_:function(t){var n=Qe(t,"x","sin");return Ye.runKernelFunc(function(r,i){var s=r.sin(n);return i([n]),s},{x:n},function(r,i){var s=i[0];return{x:function(){return s.toFloat().cos().mul(r)}}},"Sin",{},[n])}}),wv=kt({sinh_:function(t){var n=Qe(t,"x","sinh");return Ye.runKernelFunc(function(e,r){var i=e.sinh(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return i.toFloat().cosh().mulStrict(e)}}})}}),Ev=kt({softplus_:function(t){var n=Qe(t,"x","softplus");return Ye.runKernelFunc(function(e,r){var i=e.softplus(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.mul(i.sigmoid())}}})}}),Tp=kt({sqrt_:function(t){var n=Qe(t,"x","sqrt");return Ye.runKernelFunc(function(e,r){var i=e.sqrt(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.div(i.toFloat().sqrt().mul(2))}}})}}),xv=kt({step_:function(t,n){void 0===n&&(n=0);var e=Qe(t,"x","step");return Ye.runKernelFunc(function(r){return r.step(e,n)},{$x:e},function(r){return{$x:function(){return Zo(r)}}})}}),kv=kt({tan_:function(t){var n=Qe(t,"x","tan");return Ye.runKernelFunc(function(e,r){var i=e.tan(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return e.div(i.cos().square())}}})}}),Dv=kt({tanh_:function(t){var n=Qe(t,"x","tanh");return Ye.runKernelFunc(function(e,r){var i=e.tanh(n);return r([i]),i},{x:n},function(e,r){var i=r[0];return{x:function(){return wn(1).sub(i.square()).mulStrict(e)}}},"Tanh",{},null,[!0])}});function wp(t,n,e,r,i,s){var c,l,u=Qe(t,"x","batchNorm"),d=Qe(n,"mean","batchNorm"),p=Qe(e,"variance","batchNorm");return null!=i&&(c=Qe(i,"scale","batchNorm")),null!=r&&(l=Qe(r,"offset","batchNorm")),at(2===u.rank,function(){return"Error in batchNorm3D: x must be rank 3 but got rank "+u.rank+"."}),at(2===d.rank||1===d.rank,function(){return"Error in batchNorm2D: mean must be rank 2 or rank 1 but got rank "+d.rank+"."}),at(2===p.rank||1===p.rank,function(){return"Error in batchNorm2D: variance must be rank 2 or rank 1 but got rank "+p.rank+"."}),null!=c&&at(2===c.rank||1===c.rank,function(){return"Error in batchNorm2D: scale must be rank 2 or rank 1 but got rank "+c.rank+"."}),null!=l&&at(2===l.rank||1===l.rank,function(){return"Error in batchNorm2D: offset must be rank 2 or rank 1 but got rank "+l.rank+"."}),O0(u,d,p,l,c,s)}function tu(t,n,e,r,i,s){var c,l,u=Qe(t,"x","batchNorm"),d=Qe(n,"mean","batchNorm"),p=Qe(e,"variance","batchNorm");return null!=i&&(c=Qe(i,"scale","batchNorm")),null!=r&&(l=Qe(r,"offset","batchNorm")),at(3===u.rank,function(){return"Error in batchNorm3D: x must be rank 3 but got rank "+u.rank+"."}),at(3===d.rank||1===d.rank,function(){return"Error in batchNorm3D: mean must be rank 3 or rank 1 but got rank "+d.rank+"."}),at(3===p.rank||1===p.rank,function(){return"Error in batchNorm3D: variance must be rank 3 or rank 1 but got rank "+p.rank+"."}),null!=c&&at(3===c.rank||1===c.rank,function(){return"Error in batchNorm3D: scale must be rank 3 or rank 1 but got rank "+c.rank+"."}),null!=l&&at(3===l.rank||1===l.rank,function(){return"Error in batchNorm3D: offset must be rank 3 or rank 1 but got rank "+l.rank+"."}),O0(u,d,p,l,c,s)}function Ep(t,n,e,r,i,s){var c,l,u=Qe(t,"x","batchNorm"),d=Qe(n,"mean","batchNorm"),p=Qe(e,"variance","batchNorm");return null!=i&&(c=Qe(i,"scale","batchNorm")),null!=r&&(l=Qe(r,"offset","batchNorm")),at(4===u.rank,function(){return"Error in batchNorm4D: x must be rank 4 but got rank "+u.rank+"."}),at(4===d.rank||1===d.rank,function(){return"Error in batchNorm4D: mean must be rank 4 or rank 1 but got rank "+d.rank+"."}),at(4===p.rank||1===p.rank,function(){return"Error in batchNorm4D: variance must be rank 4 or rank 1 but got rank "+p.rank+"."}),null!=c&&at(4===c.rank||1===c.rank,function(){return"Error in batchNorm4D: scale must be rank 4 or rank 1 but got rank "+c.rank+"."}),null!=l&&at(4===l.rank||1===l.rank,function(){return"Error in batchNorm4D: offset must be rank 4 or rank 1 but got rank "+l.rank+"."}),O0(u,d,p,l,c,s)}function O0(t,n,e,r,i,s){null==s&&(s=.001);var c,l,u,d=Qe(t,"x","batchNorm"),p=Qe(n,"mean","batchNorm"),M=Qe(e,"variance","batchNorm");return null!=i&&(c=Qe(i,"scale","batchNorm")),null!=r&&(l=Qe(r,"offset","batchNorm")),at(p.rank===M.rank,function(){return"Batch normalization gradient requires mean and variance to have equal ranks."}),at(null==l||p.rank===l.rank,function(){return"Batch normalization gradient requires mean and offset to have equal ranks."}),at(null==c||p.rank===c.rank,function(){return"Batch normalization gradient requires mean and scale to have equal ranks."}),u=0===d.rank||1===d.rank?d.as4D(1,1,1,d.size):2===d.rank?d.as4D(1,1,d.shape[0],d.shape[1]):3===d.rank?d.as4D(1,d.shape[0],d.shape[1],d.shape[2]):d,Ye.runKernelFunc(function(R,U){var J=R.batchNormalization(u,I0(p),I0(M),s,I0(c),I0(l));return U([d,p,M,c]),J},{x:d,mean:p,variance:M,scale:c,offset:l},function(R,U){var ne=U[0],ue=U[1],Ie=U[2],Oe=U[3]??wn(1),Fe=Aa(ue.shape,u.shape),et=[];if(1===ue.rank){for(var Ct=0;Ct<u.shape.length-1;++Ct)et.push(u.shape[Ct]);et.push(1)}var yt=ne.sub(ue),pt=R.mul(Oe),gt=Cp(Ie.add(wn(s))),Bt=gt.mul(gt).mul(gt).mul(wn(-.5));return{x:function(){return 1===ue.rank?R.mul(Ll(gt.as4D(1,1,1,ue.shape[0]),et)).mul(Oe).reshape(ne.shape):R.mul(gt).mul(Oe).reshape(ne.shape)},mean:function(){var Ft=gt.mul(wn(-1)).mul(pt);return 1===ue.rank&&(Ft=Ft.sum(Fe)),Ft.reshape(ue.shape)},variance:function(){var Ft=Bt.mul(yt).mul(pt);return 1===ue.rank&&(Ft=Ft.sum(Fe)),Ft.reshape(ue.shape)},scale:function(){var Ft=yt.mul(gt),yn=R.mul(Ft);return 1===ue.rank&&(yn=yn.sum(Fe)),yn.reshape(ue.shape)},offset:function(){var Ft=R;return 1===ue.rank&&(Ft=Ft.sum(Fe)),Ft.reshape(ue.shape)}}},"BatchNormalization",{varianceEpsilon:s},[d,p,M,c]).reshape(d.shape)}function I0(t){return null==t?null:0===t.rank?t.as1D():1===t.rank?t:2===t.rank?t.as4D(1,1,t.shape[0],t.shape[1]):3===t.rank?t.as4D(1,t.shape[0],t.shape[1],t.shape[2]):t}function nu(){b0("tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon")}var xp=kt({batchNormalization2d_:function(t,n,e,r,i,s){return void 0===r&&(r=.001),nu(),wp(t,n,e,s,i,r)}}),Pv=kt({batchNormalization3d_:function(t,n,e,r,i,s){return void 0===r&&(r=.001),nu(),tu(t,n,e,s,i,r)}}),kp=kt({batchNormalization4d_:function(t,n,e,r,i,s){return void 0===r&&(r=.001),nu(),Ep(t,n,e,s,i,r)}}),Ov=kt({batchNormalization_:function(t,n,e,r,i,s){return void 0===r&&(r=.001),nu(),O0(t,n,e,s,i,r)}}),Dp=kt({batchNorm_:O0}),Iv=kt({batchNorm2d_:wp}),Pp=kt({batchNorm3d_:tu}),Av=kt({batchNorm4d_:Ep}),ru=kt({logicalAnd_:function(t,n){var e=Qe(t,"a","logicalAnd","bool"),r=Qe(n,"b","logicalAnd","bool");return zo(e.shape,r.shape),Ye.runKernelFunc(function(i){return i.logicalAnd(e,r)},{a:e,b:r},null,"LogicalAnd")}}),Pd=kt({logicalNot_:function(t){var n=Qe(t,"x","logicalNot","bool");return Ye.runKernelFunc(function(e){return e.logicalNot(n)},{$x:n})}}),Op=kt({logicalOr_:function(t,n){var e=Qe(t,"a","logicalOr","bool"),r=Qe(n,"b","logicalOr","bool");return zo(e.shape,r.shape),Ye.runKernelFunc(function(i){return i.logicalOr(e,r)},{$a:e,$b:r})}}),Nv=kt({logicalXor_:function(t,n){var e=Qe(t,"a","logicalXor","bool"),r=Qe(n,"b","logicalXor","bool");return zo(e.shape,r.shape),Op(t,n).logicalAnd(ru(t,n).logicalNot())}}),X2=kt({where_:function(t,n,e){var r=Qe(n,"a","where"),i=Qe(e,"b","where"),s=Qe(t,"condition","where","bool");return ho(r.shape,i.shape,"Error in where: "),1===s.rank?at(s.shape[0]===r.shape[0],function(){return"The first dimension of `a` must match the size of `condition`."}):ho(s.shape,i.shape,"Error in where: "),Ye.runKernelFunc(function(c,l){var u=c.select(s,r,i);return l([s]),u},{$condition:s,$a:r,$b:i},function(c,l){var u=l[0];return{$condition:function(){return Zo(u).toFloat()},$a:function(){return c.mul(u.cast(c.dtype))},$b:function(){return c.mul(u.logicalNot().cast(c.dtype))}}})}}),Od=function(t){return st(this,void 0,void 0,function(){var n,e,r;return Ln(this,function(i){switch(i.label){case 0:return[4,(n=Qe(t,"condition","whereAsync","bool")).data()];case 1:return e=i.sent(),r=sd(n.shape,e),t!==n&&n.dispose(),[2,r]}})})},Ro=kt({add_:function(t,n){var e,r=Qe(t,"a","add"),i=Qe(n,"b","add");e=ti(r,i);var s=zo((r=e[0]).shape,(i=e[1]).shape);return Ye.runKernelFunc(function(c){return c.add(r,i)},{a:r,b:i},function(c){return{a:function(){var l=c,u=Aa(r.shape,s);return u.length>0&&(l=l.sum(u)),l.reshape(r.shape)},b:function(){var l=c,u=Aa(i.shape,s);return u.length>0&&(l=l.sum(u)),l.reshape(i.shape)}}},"Add")}}),Ip=kt({addN_:function(t){at(Array.isArray(t),function(){return"The argument passed to tf.addN() must be a list of tensors"}),at(t.length>=1,function(){return"Must pass at least one tensor to tf.addN(), but got "+t.length});var n=t.map(function(i,s){return Qe(i,"tensors"+s,"addN")}),e=n[0];return n.forEach(function(i){if(i.dtype!==e.dtype)throw new Error("All tensors passed to tf.addN() must have the same dtype")}),n.forEach(function(i){if(!yi(i.shape,e.shape))throw new Error("All tensors passed to tf.addN() must have the same shape")}),Ye.runKernelFunc(function(i){return i.addN(n)},n,function(i){var s={};return n.forEach(function(c,l){s[l]=function(){return i.clone()}}),s},"AddN")}}),zv=kt({addStrict_:function(t,n){var e=Qe(t,"a","addStrict"),r=Qe(n,"b","addStrict");return ho(e.shape,r.shape,"Error in addStrict: "),e.add(r)}}),Rv=kt({atan2_:function(t,n){var e,r=Qe(t,"a","atan2"),i=Qe(n,"b","atan2");e=ti(r,i);var s=zo((r=e[0]).shape,(i=e[1]).shape);return Ye.runKernelFunc(function(c,l){var u=c.atan2(r,i);return l([r,i]),u},{$a:r,$b:i},function(c,l){var u=l[0],d=l[1];return{$a:function(){var p=Ro(u.square(),d.square()),M=c.mul(d.div(p)),x=Aa(u.shape,s);return x.length>0&&(M=M.sum(x)),M.reshape(u.shape)},$b:function(){var p=Ro(u.square(),d.square()),M=eu(c.mul(u.div(p))),x=Aa(d.shape,s);return x.length>0&&(M=M.sum(x)),M.reshape(d.shape)}}})}}),Kc=kt({div_:function(t,n){var e,r=Qe(t,"a","div"),i=Qe(n,"b","div");if(e=ti(r,i),i=e[1],"int32"===(r=e[0]).dtype&&"int32"===i.dtype)return Ap(r,i);var s=zo(r.shape,i.shape);return Ye.runKernelFunc(function(c,l){var u=c.realDivide(r,i);return l([r,i]),u},{a:r,b:i},function(c,l){var u=l[0],d=l[1];return{a:function(){var p=c.div(d.toFloat()),M=Aa(u.shape,s);return M.length>0?p.sum(M).reshape(u.shape):p},b:function(){var p=c.mul(u.toFloat()),M=Aa(d.shape,s);M.length>0&&(p=p.sum(M).reshape(d.shape));var x=d.square();return p.div(x.toFloat()).neg()}}},"Div")}}),Yv=kt({divNoNan_:function(t,n){var e,r=Qe(t,"a","div"),i=Qe(n,"b","div");r=(e=ti(r,i))[0];var s=Kc(r,i=e[1]),c=Zo(s),l=i.equal(c);return X2(l,c,s)}}),Fv=kt({divStrict_:function(t,n){var e=Qe(t,"a","div"),r=Qe(n,"b","div");return ho(e.shape,r.shape,"Error in divideStrict: "),e.div(r)}}),Ap=kt({floorDiv_:function(t,n){var e,r=Qe(t,"a","floorDiv"),i=Qe(n,"b","floorDiv");e=ti(r,i);var s=zo((r=e[0]).shape,(i=e[1]).shape);return Ye.runKernelFunc(function(c,l){var u=c.floorDiv(r,i);return l([r,i]),u},{a:r,b:i},function(c,l){var u=l[0],d=l[1];return{a:function(){var p=c.div(d.toFloat()),M=Aa(u.shape,s);return M.length>0?p.sum(M).reshape(u.shape):p},b:function(){var p=c.mul(u.toFloat()),M=Aa(d.shape,s);M.length>0&&(p=p.sum(M).reshape(d.shape));var x=d.square();return p.div(x.toFloat()).neg()}}},"FloorDiv")}}),A0=kt({maximum_:function(t,n){var e,r=Qe(t,"a","maximum"),i=Qe(n,"b","maximum");return e=ti(r,i),i=e[1],"bool"===(r=e[0]).dtype&&(r=r.toInt(),i=i.toInt()),zo(r.shape,i.shape),Ye.runKernelFunc(function(s,c){var l=s.maximum(r,i);return c([r,i]),l},{a:r,b:i},function(s,c){var l=c[0],u=c[1];return{a:function(){return s.mul(l.greaterEqual(u).toFloat())},b:function(){return s.mul(l.less(u).toFloat())}}},"Maximum")}}),Hv=kt({maximumStrict_:function(t,n){var e=Qe(t,"a","maximumStrict"),r=Qe(n,"b","maximumStrict");return ho(e.shape,r.shape,"Error in maximumStrict: "),e.maximum(r)}}),Np=kt({minimum_:function(t,n){var e,r=Qe(t,"a","minimum"),i=Qe(n,"b","minimum");return e=ti(r,i),i=e[1],"bool"===(r=e[0]).dtype&&(r=r.toInt(),i=i.toInt()),zo(r.shape,i.shape),Ye.runKernelFunc(function(s,c){var l=s.minimum(r,i);return c([r,i]),l},{a:r,b:i},function(s,c){var l=c[0],u=c[1];return{a:function(){return s.mul(l.lessEqual(u).toFloat())},b:function(){return s.mul(l.greater(u).toFloat())}}},"Minimum")}}),Bv=kt({minimumStrict_:function(t,n){var e=Qe(t,"a","minimumStrict"),r=Qe(n,"b","minimumStrict");return ho(e.shape,r.shape,"Error in minimumStrict: "),e.minimum(r)}}),jv=kt({mod_:function(t,n){var e,r=Qe(t,"a","mod"),i=Qe(n,"b","mod");e=ti(r,i);var s=zo((r=e[0]).shape,(i=e[1]).shape);return Ye.runKernelFunc(function(c,l){var u=c.mod(r,i);return l([r,i]),u},{$a:r,$b:i},function(c,l){var u=l[0],d=l[1];return{$a:function(){var p=Aa(u.shape,s);return p.length>0?c.sum(p).reshape(u.shape):c},$b:function(){var p=c.mul(u.div(d).floor().neg()),M=Aa(d.shape,s);return M.length>0?p.sum(M).reshape(d.shape):p}}})}}),Wv=kt({modStrict_:function(t,n){var e=Qe(t,"a","modStrict"),r=Qe(n,"b","modStrict");return ho(e.shape,r.shape,"Error in modStrict: "),e.mod(r)}}),Ds=kt({mul_:function(t,n){var e,r=Qe(t,"a","mul"),i=Qe(n,"b","mul");e=ti(r,i);var s=zo((r=e[0]).shape,(i=e[1]).shape);return Ye.runKernelFunc(function(c,l){var u=c.multiply(r,i);return l([r,i]),u},{a:r,b:i},function(c,l){var u=l[0],d=l[1];return{a:function(){var p=c.mul(d.toFloat()),M=Aa(u.shape,s);return M.length>0?p.sum(M).reshape(u.shape):p},b:function(){var p=c.mul(u.toFloat()),M=Aa(d.shape,s);return M.length>0?p.sum(M).reshape(d.shape):p}}},"Mul")}}),Uv=kt({mulStrict_:function(t,n){var e=Qe(t,"a","mul"),r=Qe(n,"b","mul");return ho(e.shape,r.shape,"Error in multiplyStrict: "),e.mul(r)}}),N0=kt({pow_:function(t,n){var e,r=Qe(t,"base","pow"),i=Qe(n,"exp","pow");e=ti(r,i);var s=zo((r=e[0]).shape,(i=e[1]).shape);return Ye.runKernelFunc(function(l,u){var d=l.pow(r,i);return u([r,i,d]),d},{a:r,b:i},function(l,u){var d=u[0],p=u[1],M=u[2];return{a:function(){var x=p.toFloat(),R=l.mul(x.mul(d.pow(x.sub(wn(1))))),U=Aa(d.shape,s);return U.length>0&&(R=R.sum(U)),R.reshape(d.shape)},b:function(){var x=d.greater(0),R=d.log().where(x,Zo(d)),U=l.mul(M.mul(R)),J=Aa(p.shape,s);return J.length>0&&(U=U.sum(J)),U.reshape(p.shape)}}},"Pow",{},[r,i],[!0])}}),Vv=kt({powStrict_:function(t,n){return ho(t.shape,n.shape,"Error in powStrict: "),t.pow(n)}}),Gv=kt({squaredDifferenceStrict_:function(t,n){var e=Qe(t,"a","squaredDifferenceStrict"),r=Qe(n,"b","squaredDifferenceStrict");return ho(e.shape,r.shape,"Error in squaredDifferenceStrict: "),e.squaredDifference(r)}}),ns=kt({sub_:function(t,n){var e,r=Qe(t,"a","sub"),i=Qe(n,"b","sub");e=ti(r,i);var s=zo((r=e[0]).shape,(i=e[1]).shape);return Ye.runKernelFunc(function(c){return c.subtract(r,i)},{a:r,b:i},function(c){return{a:function(){var l=c,u=Aa(r.shape,s);return u.length>0&&(l=l.sum(u)),l.reshape(r.shape)},b:function(){var l=c,u=Aa(i.shape,s);return u.length>0&&(l=l.sum(u)),l.neg().reshape(i.shape)}}},"Sub")}}),$v=kt({subStrict_:function(t,n){var e=Qe(t,"a","subStrict"),r=Qe(n,"b","subStrict");return ho(e.shape,r.shape,"Error in subStrict: "),e.sub(r)}}),zp=kt({equal_:function(t,n){var e,r=Qe(t,"a","equal"),i=Qe(n,"b","equal");return e=ti(r,i),zo((r=e[0]).shape,(i=e[1]).shape),Ye.runKernelFunc(function(s){return s.equal(r,i)},{$a:r,$b:i})}}),Kv=kt({equalStrict_:function(t,n){var e=Qe(t,"a","equalStrict"),r=Qe(n,"b","equalStrict");return ho(e.shape,r.shape,"Error in equalStrict: "),e.equal(r)}}),Xv=kt({greater_:function(t,n){var e,r=Qe(t,"a","greater"),i=Qe(n,"b","greater");return e=ti(r,i),zo((r=e[0]).shape,(i=e[1]).shape),Ye.runKernelFunc(function(s){return s.greater(r,i)},{a:r,b:i},null,"Greater")}}),Id=kt({greaterEqual_:function(t,n){var e,r=Qe(t,"a","greaterEqual"),i=Qe(n,"b","greaterEqual");return e=ti(r,i),zo((r=e[0]).shape,(i=e[1]).shape),Ye.runKernelFunc(function(s,c){var l=s.greaterEqual(r,i);return c([r,i]),l},{a:r,b:i},function(s,c){var l=c[0],u=c[1];return{a:function(){return Zo(l)},b:function(){return Zo(u)}}},"GreaterEqual")}}),Zv=kt({greaterEqualStrict_:function(t,n){var e=Qe(t,"a","greaterEqualStrict"),r=Qe(n,"b","greaterEqualStrict");return ho(e.shape,r.shape,"Error in greaterEqualStrict: "),e.greaterEqual(r)}}),Rp=kt({greaterStrict_:function(t,n){var e=Qe(t,"a","greaterStrict"),r=Qe(n,"b","greaterStrict");return ho(e.shape,r.shape,"Error in greaterStrict: "),e.greater(r)}}),Jv=kt({less_:function(t,n){var e,r=Qe(t,"a","less"),i=Qe(n,"b","less");return e=ti(r,i),zo((r=e[0]).shape,(i=e[1]).shape),Ye.runKernelFunc(function(s){return s.less(r,i)},{a:r,b:i},null,"Less")}}),Qv=kt({lessEqual_:function(t,n){var e,r=Qe(t,"a","lessEqual"),i=Qe(n,"b","lessEqual");return e=ti(r,i),zo((r=e[0]).shape,(i=e[1]).shape),Ye.runKernelFunc(function(s,c){var l=s.lessEqual(r,i);return c([r,i]),l},{a:r,b:i},null,"LessEqual")}}),Yp=kt({lessEqualStrict_:function(t,n){var e=Qe(t,"a","lessEqualStrict"),r=Qe(n,"b","lessEqualStrict");return ho(e.shape,r.shape,"Error in lessEqualStrict: "),e.lessEqual(r)}}),qv=kt({lessStrict_:function(t,n){var e=Qe(t,"a","lessStrict"),r=Qe(n,"b","lessStrict");return ho(e.shape,r.shape,"Error in lessStrict: "),e.less(r)}}),ey=kt({notEqual_:function(t,n){var e,r=Qe(t,"a","notEqual"),i=Qe(n,"b","notEqual");return e=ti(r,i),zo((r=e[0]).shape,(i=e[1]).shape),Ye.runKernelFunc(function(s){return s.notEqual(r,i)},{a:r,b:i},null,"NotEqual")}}),ty=kt({notEqualStrict_:function(t,n){var e=Qe(t,"a","notEqualStrict"),r=Qe(n,"b","notEqualStrict");return ho(e.shape,r.shape,"Error in notEqualStrict: "),e.notEqual(r)}});function Fp(t,n){for(var e=[],r=t;r<n;++r)e.push(r);return e}function Hp(t){for(var n=[],e=0;e<t.length;++e)for(var r=0;r<t[e].length;++r)n.push(t[e][r]);return n}var Ad=kt({gather_:function(t,n,e){void 0===e&&(e=0);var r=Qe(t,"x","gather"),i=Qe(n,"indices","gather","int32");e=Ti(e,r.shape)[0];var s=function(c,l,u){for(var d=c.shape[u],p=[],M=1,x=1,R=0;R<u;R++)p.push(c.shape[R]),M*=c.shape[R];for(R=0;R<l.rank;R++)p.push(l.shape[R]);for(R=u+1;R<c.rank;R++)p.push(c.shape[R]),x*=c.shape[R];return{batchSize:M,sliceSize:x,dimSize:d,outputShape:p}}(r,i,e);return Ye.runKernelFunc(function(c,l){var u=c.gather(r,i.flatten(),e);return l([i]),u},{x:r,indices:i},function(c,l){var u=l[0];return{x:function(){var d=r.shape,p=u.size,M=d.slice(0,e),x=M.length,R=d.slice(e,d.length).slice(1),U=R.length,J=Fp(0,x),ne=Fp(x+1,x+1+U),ue=Hp([M,[p],R]),Ie=c.reshape(ue),Ae=u.reshape([p]),Oe=Hp([[x],J,ne]),Fe=Ie.transpose(Oe),et=Bp(Fe,Ae,r.shape[e]),Ct=Ys(Oe);return et.transpose(Ct)},indices:function(){return u}}},"Gather",{axis:e}).reshape(s.outputShape)}}),Bp=kt({unsortedSegmentSum_:function(t,n,e){var r=Qe(t,"x","unsortedSegmentSum"),i=Qe(n,"segmentIds","unsortedSegmentSum","int32");return at(ai(e),function(){return"numSegments must be of dtype int"}),Ye.runKernelFunc(function(s,c){var l=s.unsortedSegmentSum(r,i,e);return c([i]),l},{$x:r},function(s,c){var l=c[0];return{$x:function(){return function(u,d){for(var p=A0(d,Zo(d)),M=Ad(u,p),x=Id(d,wn(0,"int32")),R=M.rank-x.rank,U=0;U<R;++U)x=Ms(x,U+1);x=ru(x,qn(M.shape,"bool"));var J=Zo(M);return X2(x,M,J)}(s,l)}}})}});function jp(t,n,e,r,i,s,c){void 0===s&&(s="NHWC"),at(t.length===n.rank,function(){return"Length of inShape ("+t.length+") and rank of dy ("+n.rank+") must match"});var l=t,u=n,d=!1;3===n.rank&&(d=!0,u=n.as4D(1,n.shape[0],n.shape[1],n.shape[2]),l=[1,t[0],t[1],t[2]]),at(4===l.length,function(){return"Error in conv2dDerInput: inShape must be length 4, but got length "+l.length+"."}),at(4===u.rank,function(){return"Error in conv2dDerInput: dy must be rank 4, but got rank "+u.rank}),at(4===e.rank,function(){return"Error in conv2dDerInput: filter must be rank 4, but got rank "+e.rank});var p="NHWC"===s?l[3]:l[1],M="NHWC"===s?u.shape[3]:u.shape[1];at(p===e.shape[2],function(){return"Error in conv2dDerInput: depth of input ("+p+") must match input depth for filter "+e.shape[2]+"."}),at(M===e.shape[3],function(){return"Error in conv2dDerInput: depth of output ("+M+") must match output depth for filter "+e.shape[3]+"."}),null!=c&&at(ai(i),function(){return"Error in conv2dDerInput: pad must be an integer when using, dimRoundingMode "+c+" but got pad "+i+"."});var x=V3(s),R=_2(l,e.shape,r,1,i,c,!1,x),U=Ye.runKernelFunc(function(J,ne){var ue=J.conv2dDerInput(u,e,R);return ne([e,u]),ue},{dy4D:u,filter:e},function(J,ne){var ue=ne[0],Ie=ne[1];return{dy4D:function(){return Xc(J,ue,r,i,s,1,c)},filter:function(){return Nd(J,Ie,ue.shape,r,i,s,c)}}});return d?U.as3D(U.shape[1],U.shape[2],U.shape[3]):U}function ou(t){var s,n="number"==typeof(s=t)?[s,s,s]:2===s.length?[s[0],s[1],1]:s;return 1===n[0]&&1===n[1]&&1===n[2]}function Wp(t,n,e,r,i){at(t.length===n.rank,function(){return"Length of inShape ("+t.length+") and rank of dy ("+n.rank+") must match"});var s=t,c=n,l=!1;4===n.rank&&(l=!0,c=n.as5D(1,n.shape[0],n.shape[1],n.shape[2],n.shape[3]),s=[1,t[0],t[1],t[2],t[3]]);var u=s[4],d=c.shape[4];at(5===s.length,function(){return"Error in conv3dDerInput: inShape must be length 5, but got length "+s.length+"."}),at(5===c.rank,function(){return"Error in conv3dDerInput: dy must be rank 5, but got rank "+c.rank}),at(5===e.rank,function(){return"Error in conv3dDerInput: filter must be rank 5, but got rank "+e.rank}),at(u===e.shape[3],function(){return"Error in conv3dDerInput: depth of input ("+u+") must match input depth for filter "+e.shape[3]+"."}),at(d===e.shape[4],function(){return"Error in conv3dDerInput: depth of output ("+d+") must match output depth for filter "+e.shape[4]+"."});var p=Tl(s,e.shape,r,1,i),M=Ye.runKernelFunc(function(x){return x.conv3dDerInput(c,e,p)},{dy5D:c});return l?M.as4D(M.shape[1],M.shape[2],M.shape[3],M.shape[4]):M}var ry=kt({conv1d_:function(t,n,e,r,i,s,c){void 0===i&&(i="NWC"),void 0===s&&(s=1);var l=Qe(t,"x","conv1d"),u=Qe(n,"filter","conv1d"),d=l,p=!1;2===l.rank&&(p=!0,d=l.as3D(1,l.shape[0],l.shape[1])),at(3===d.rank,function(){return"Error in conv1d: input must be rank 3, but got rank "+d.rank+"."}),at(3===u.rank,function(){return"Error in conv1d: filter must be rank 3, but got rank "+u.rank+"."}),null!=c&&at(ai(r),function(){return"Error in conv1d: pad must be an integer when using, dimRoundingMode "+c+" but got pad "+r+"."}),at(d.shape[2]===u.shape[1],function(){return"Error in conv1d: depth of input ("+d.shape[2]+") must match input depth for filter "+u.shape[1]+"."}),at(qs(e,s),function(){return"Error in conv1D: Either stride or dilation must be 1. Got stride "+e+" and dilation '"+s+"'"}),at("NWC"===i,function(){return"Error in conv1d: got dataFormat of "+i+" but only NWC is currently supported."});var M=u.as4D(1,u.shape[0],u.shape[1],u.shape[2]),x=d.as4D(d.shape[0],1,d.shape[1],d.shape[2]),R=Xc(x,M,[1,e],r,"NHWC",[1,s],c);return p?R.as2D(R.shape[2],R.shape[3]):R.as3D(R.shape[0],R.shape[2],R.shape[3])}}),Xc=kt({conv2d_:function(t,n,e,r,i,s,c){void 0===i&&(i="NHWC"),void 0===s&&(s=[1,1]);var l=Qe(t,"x","conv2d"),u=Qe(n,"filter","conv2d"),d=l,p=!1;3===l.rank&&(p=!0,d=l.as4D(1,l.shape[0],l.shape[1],l.shape[2])),at(4===d.rank,function(){return"Error in conv2d: input must be rank 4, but got rank "+d.rank+"."}),at(4===u.rank,function(){return"Error in conv2d: filter must be rank 4, but got rank "+u.rank+"."}),null!=c&&at(ai(r),function(){return"Error in conv2d: pad must be an integer when using, dimRoundingMode "+c+" but got pad "+r+"."});var M="NHWC"===i?d.shape[3]:d.shape[1];at(M===u.shape[2],function(){return"Error in conv2d: depth of input ("+M+") must match input depth for filter "+u.shape[2]+"."}),at(qs(e,s),function(){return"Error in conv2D: Either strides or dilations must be 1. Got strides "+e+" and dilations '"+s+"'"});var x=V3(i),R=_2(d.shape,u.shape,e,s,r,c,!1,x),J=Ye.runKernelFunc(function(ne,ue){var Ie=ne.conv2d(d,u,R);return ue([u,d]),Ie},{x:d,filter:u},function(ne,ue){var Ae=ue[0],Oe=ue[1];return at(g2(s),function(){return"Error in gradient of conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '"+s+"'"}),{x:function(){return zd(Oe.shape,ne,Ae,e,r,i)},filter:function(){return Nd(Oe,ne,Ae.shape,e,r,i)}}},"Conv2D",R,[u,d]);return p?J.as3D(J.shape[1],J.shape[2],J.shape[3]):J}}),Up=kt({conv3d_:function(t,n,e,r,i,s){void 0===i&&(i="NDHWC"),void 0===s&&(s=[1,1,1]);var R,c=Qe(t,"x","conv3d"),l=Qe(n,"filter","conv3d"),u=c,d=!1;4===c.rank&&(d=!0,u=c.as5D(1,c.shape[0],c.shape[1],c.shape[2],c.shape[3])),at(5===u.rank,function(){return"Error in conv3d: input must be rank 5, but got rank "+u.rank+"."}),at(5===l.rank,function(){return"Error in conv3d: filter must be rank 5, but got rank "+l.rank+"."}),at(u.shape[4]===l.shape[3],function(){return"Error in conv3d: depth of input ("+u.shape[4]+") must match input depth for filter "+l.shape[3]+"."}),at((R=s,ou(e)||ou(R)),function(){return"Error in conv3D: Either strides or dilations must be 1. Got strides "+e+" and dilations '"+s+"'"}),at("NDHWC"===i,function(){return"Error in conv3d: got dataFormat of "+i+" but only NDHWC is currently supported."});var p=Tl(u.shape,l.shape,e,s,r),M=Ye.runKernelFunc(function(x,R){var U=x.conv3d(u,l,p);return R([u,l]),U},{x:u,$filter:l},function(x,R){at(ou(s),function(){return"Error in gradient of conv3D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '"+s+"'"});var U=R[0],J=R[1];return{x:function(){return Wp(U.shape,x,J,e,r)},$filter:function(){return function(ne,ue,Ie,Ae,Oe){var Fe=ne;4===ne.rank&&(Fe=ne.as5D(1,ne.shape[0],ne.shape[1],ne.shape[2],ne.shape[3]));var et=ue;4===et.rank&&(et=ue.as5D(1,ue.shape[0],ue.shape[1],ue.shape[2],ue.shape[3])),at(5===Fe.rank,function(){return"Error in conv3dDerFilter: input must be rank 5, but got shape "+Fe.shape+"."}),at(5===et.rank,function(){return"Error in conv3dDerFilter: dy must be rank 5, but got shape "+et.shape+"."}),at(5===Ie.length,function(){return"Error in conv3dDerFilter: filterShape must be length 5, but got "+Ie+"."}),at(Fe.shape[4]===Ie[3],function(){return"Error in conv3dDerFilter: depth of input "+Fe.shape[4]+") must match input depth in filter ("+Ie[3]+"."}),at(et.shape[4]===Ie[4],function(){return"Error in conv3dDerFilter: depth of dy ("+et.shape[4]+") must match output depth for filter ("+Ie[4]+")."});var Ct=Tl(Fe.shape,Ie,Ae,1,Oe);return Ye.runKernelFunc(function(yt){return yt.conv3dDerFilter(Fe,et,Ct)},{x5D:Fe,dy5D:et})}(U,x,J.shape,e,r)}}});return d?M.as4D(M.shape[1],M.shape[2],M.shape[3],M.shape[4]):M}}),Nd=kt({conv2dDerFilter_:function(t,n,e,r,i,s,c){void 0===s&&(s="NHWC");var l=t;3===t.rank&&(l=t.as4D(1,t.shape[0],t.shape[1],t.shape[2]));var u=n;3===u.rank&&(u=n.as4D(1,n.shape[0],n.shape[1],n.shape[2])),at(4===l.rank,function(){return"Error in conv2dDerFilter: input must be rank 4, but got shape "+l.shape+"."}),at(4===u.rank,function(){return"Error in conv2dDerFilter: dy must be rank 4, but got shape "+u.shape+"."}),at(4===e.length,function(){return"Error in conv2dDerFilter: filterShape must be length 4, but got "+e+"."});var d="NHWC"===s?l.shape[3]:l.shape[1],p="NHWC"===s?u.shape[3]:u.shape[1];at(d===e[2],function(){return"Error in conv2dDerFilter: depth of input "+d+") must match input depth in filter ("+e[2]+"."}),at(p===e[3],function(){return"Error in conv2dDerFilter: depth of dy ("+p+") must match output depth for filter ("+e[3]+")."}),null!=c&&at(ai(i),function(){return"Error in conv2dDerFilter: pad must be an integer when using, dimRoundingMode "+c+" but got pad "+i+"."});var M=V3(s),x=_2(l.shape,e,r,1,i,c,!1,M);return Ye.runKernelFunc(function(R){return R.conv2dDerFilter(l,u,x)},{x4D:l,dy4D:u})}}),zd=kt({conv2dDerInput_:jp}),iu=kt({depthwiseConv2d_:function(t,n,e,r,i,s,c){void 0===i&&(i="NHWC"),void 0===s&&(s=[1,1]);var l=Qe(t,"x","depthwiseConv2d"),u=Qe(n,"filter","depthwiseConv2d"),d=l,p=!1;3===l.rank&&(p=!0,d=l.as4D(1,l.shape[0],l.shape[1],l.shape[2])),at(4===d.rank,function(){return"Error in depthwiseConv2d: input must be rank 4, but got rank "+d.rank+"."}),at(4===u.rank,function(){return"Error in depthwiseConv2d: filter must be rank 4, but got rank "+u.rank+"."}),at(d.shape[3]===u.shape[2],function(){return"Error in depthwiseConv2d: number of input channels ("+d.shape[3]+") must match the inChannels dimension in filter "+u.shape[2]+"."}),null==s&&(s=[1,1]),at(qs(e,s),function(){return"Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides "+e+" and dilations '"+s+"'"}),null!=c&&at(ai(r),function(){return"Error in depthwiseConv2d: pad must be an integer when using, dimRoundingMode "+c+" but got pad "+r+"."});var M=_2(d.shape,u.shape,e,s,r,c,!0),R=Ye.runKernelFunc(function(U,J){var ne=U.depthwiseConv2D(d,u,M);return J([d,u]),ne},{x:d,filter:u},function(U,J){at(g2(s),function(){return"Error in gradient of depthwiseConv2d: dilation rates greater than 1 are not yet supported. Got dilations '"+s+"'"});var ne=J[0],ue=J[1];return{x:function(){return Vp(ne.shape,U,ue,M)},filter:function(){return Gp(ne,U,ue.shape,M)}}},"DepthwiseConv2dNative",M,[d,u]);return p?R.as3D(R.shape[1],R.shape[2],R.shape[3]):R}}),Vp=kt({depthwiseConv2dDerInput_:function(t,n,e,r){var i=n,s=!1;3===n.rank&&(s=!0,i=n.as4D(1,n.shape[0],n.shape[1],n.shape[2]));var c=Ye.runKernelFunc(function(l){return l.depthwiseConv2DDerInput(i,e,r)},{dy4D:i});return s?c.as3D(c.shape[1],c.shape[2],c.shape[3]):c}}),Gp=kt({depthwiseConv2dDerFilter_:function(t,n,e,r){var i=t;3===t.rank&&(i=t.as4D(1,t.shape[0],t.shape[1],t.shape[2]));var s=n;return 3===s.rank&&(s=n.as4D(1,n.shape[0],n.shape[1],n.shape[2])),Ye.runKernelFunc(function(c){return c.depthwiseConv2DDerFilter(i,s,r)},{x4D:i,dy4D:s})}}),Rd=kt({separableConv2d_:function(t,n,e,r,i,s,c){void 0===s&&(s=[1,1]),void 0===c&&(c="NHWC");var l=Qe(t,"x","separableConv2d"),u=Qe(n,"depthwiseFilter","separableConv2d"),d=Qe(e,"pointwiseFilter","separableConv2d"),p=l,M=!1;if(3===l.rank&&(M=!0,p=l.as4D(1,l.shape[0],l.shape[1],l.shape[2])),"NCHW"===c)throw new Error("separableConv2d currently does not support dataFormat NCHW; only NHWC is supported");at(4===p.rank,function(){return"Error in separableConv2d: input must be rank 4, but got rank "+p.rank+"."}),at(4===u.rank,function(){return"Error in separableConv2d: depthwise filter must be rank 4, but got rank "+u.rank+"."}),at(4===d.rank,function(){return"Error in separableConv2d: pointwise filter must be rank 4, but got rank "+u.rank+"."}),at(1===d.shape[0],function(){return"Error in separableConv2d: the first dimension of pointwise filter must be 1, but got "+d.shape[0]+"."}),at(1===d.shape[1],function(){return"Error in separableConv2d: the second dimension of pointwise filter must be 1, but got "+d.shape[1]+"."});var x=u.shape[2],R=u.shape[3];at(d.shape[2]===x*R,function(){return"Error in separableConv2d: the third dimension of pointwise filter must be "+x*R+", but got "+d.shape[2]+"."});var U=iu(p,u,r,i,c,s),J=Xc(U,d,1,"valid",c);return M?J.as3D(J.shape[1],J.shape[2],J.shape[3]):J}}),$p=kt({conv2dTranspose_:function(t,n,e,r,i,s){return jp(e,Qe(t,"x","conv2dTranspose"),Qe(n,"filter","conv2dTranspose"),r,i,"NHWC",s)}}),oy=kt({conv3dTranspose_:function(t,n,e,r,i){return Wp(e,Qe(t,"x","conv3dTranspose"),Qe(n,"filter","conv3dTranspose"),r,i)}}),z0=kt({matMul_:function(t,n,e,r){var i;void 0===e&&(e=!1),void 0===r&&(r=!1);var s=Qe(t,"a","matMul"),c=Qe(n,"b","matMul");i=ti(s,c),s=i[0],c=i[1];var l=e?s.shape[s.rank-2]:s.shape[s.rank-1],u=r?c.shape[c.rank-1]:c.shape[c.rank-2],d=e?s.shape[s.rank-1]:s.shape[s.rank-2],p=r?c.shape[c.rank-2]:c.shape[c.rank-1],M=s.shape.slice(0,-2),x=c.shape.slice(0,-2),R=rr(M),U=rr(x);at(s.rank>=2&&c.rank>=2&&s.rank===c.rank,function(){return"Error in matMul: inputs must have the same rank of at least 2, got ranks "+s.rank+" and "+c.rank+"."}),at(yi(M,x),function(){return"Error in matMul: outer dimensions ("+M+") and ("+x+") of Tensors with shapes "+s.shape+" and "+c.shape+" must match."}),at(l===u,function(){return"Error in matMul: inner shapes ("+l+") and ("+u+") of Tensors with shapes "+s.shape+" and "+c.shape+" and transposeA="+e+" and transposeB="+r+" must match."});var J=s.shape.slice(0,-2).concat([d,p]),ne=e?s.as3D(R,l,d):s.as3D(R,d,l),ue=r?c.as3D(U,p,u):c.as3D(U,u,p);return Ye.runKernelFunc(function(Ae,Oe){var Fe=Ae.batchMatMul(ne,ue,e,r);return Oe([ne,ue]),Fe},{a:ne,b:ue},function(Ae,Oe){var et=Oe[0],Ct=Oe[1];return e||r?!e&&r?{a:function(){return Ae.matMul(Ct,!1,!1)},b:function(){return Ae.matMul(et,!0,!1)}}:e&&!r?{a:function(){return Ct.matMul(Ae,!1,!0)},b:function(){return et.matMul(Ae,!1,!1)}}:{a:function(){return Ct.matMul(Ae,!0,!0)},b:function(){return Ae.matMul(et,!0,!0)}}:{a:function(){return Ae.matMul(Ct,!1,!0)},b:function(){return et.matMul(Ae,!0,!1)}}},"BatchMatMul",{transposeA:e,transposeB:r}).reshape(J)}}),iy=kt({dot_:function(t,n){var e=Qe(t,"t1","dot"),r=Qe(n,"t2","dot");at(!(1!==e.rank&&2!==e.rank||1!==r.rank&&2!==r.rank),function(){return"Error in dot: inputs must all be rank 1 or 2, but got ranks "+e.rank+" and "+r.rank+"."});var i=1===e.rank?e.size:e.shape[1],s=1===r.rank?r.size:r.shape[0];return at(i===s,function(){return"Error in dot: inner dimensions of inputs must match, but got "+i+" and "+s+"."}),1===e.rank&&1===r.rank?e.as2D(1,-1).matMul(r.as2D(-1,1)).asScalar():1===e.rank&&2===r.rank?e.as2D(1,-1).matMul(r.as2D(r.shape[0],r.shape[1])).as1D():2===e.rank&&1===r.rank?e.matMul(r.as2D(-1,1)).as1D():e.matMul(r.as2D(r.shape[0],r.shape[1]))}}),ay=kt({outerProduct_:function(t,n){var e=Qe(t,"v1","outerProduct"),r=Qe(n,"v2","outerProduct");return at(1===e.rank&&1===r.rank,function(){return"Error in outerProduct: inputs must be rank 1, but got ranks "+e.rank+" and "+r.rank+"."}),e.as2D(-1,1).matMul(r.as2D(1,-1))}}),R0=kt({reverse_:function(t,n){var e=Qe(t,"x","reverse");if(0===e.rank)return e.clone();var r=Ti(n,e.shape);return Ye.runKernelFunc(function(i){return i.reverse(e,r)},{$x:e},function(i){return{$x:function(){return i.reverse(r)}}}).reshapeAs(e)}}),Kp=kt({reverse1d_:function(t){var n=Qe(t,"x","reverse");return at(1===n.rank,function(){return"Error in reverse1D: x must be rank 1 but got rank "+n.rank+"."}),R0(n,0)}}),sy=kt({reverse2d_:function(t,n){var e=Qe(t,"x","reverse");return at(2===e.rank,function(){return"Error in reverse2D: x must be rank 2 but got rank "+e.rank+"."}),R0(e,n)}}),Yd=kt({reverse3d_:function(t,n){var e=Qe(t,"x","reverse");return at(3===e.rank,function(){return"Error in reverse3D: x must be rank 3 but got rank "+e.rank+"."}),R0(e,n)}}),cy=kt({reverse4d_:function(t,n){var e=Qe(t,"x","reverse");return at(4===e.rank,function(){return"Error in reverse4D: x must be rank 4 but got rank "+e.rank+"."}),R0(e,n)}});function Xp(t,n,e,r,i,s){var c=Qe(t,"x","maxPool"),l=c,u=!1;3===c.rank&&(u=!0,l=c.as4D(1,c.shape[0],c.shape[1],c.shape[2])),null==r&&(r=[1,1]),at(4===l.rank,function(){return"Error in maxPool: input must be rank 4 but got rank "+l.rank+"."}),at(qs(e,r),function(){return"Error in maxPool: Either strides or dilations must be 1. Got strides "+e+" and dilations '"+r+"'"}),null!=s&&at(ai(i),function(){return"Error in maxPool: pad must be an integer when using, dimRoundingMode "+s+" but got pad "+i+"."});var d=G2(l.shape,n,e,r,i,s);if(1===d.filterWidth&&1===d.filterHeight&&yi(d.inShape,d.outShape))return c.clone();var M=Ye.runKernelFunc(function(x,R){var U=x.maxPool(l,d);return R([l,U]),U},{x:l},function(x,R){var U=R[0],J=R[1];return{x:function(){return function(ne,ue,Ie,Ae,Oe,Fe,et,Ct){var yt=Qe(ne,"dy","maxPoolBackprop"),pt=Qe(ue,"input","maxPoolBackprop"),gt=Qe(Ie,"output","maxPoolBackprop");at(pt.rank===yt.rank,function(){return"Rank of input ("+pt.rank+") does not match rank of dy ("+yt.rank+")"}),null==Fe&&(Fe=[1,1]),at(qs(Oe,Fe),function(){return"Error in maxPoolBackProp: Either strides or dilations must be 1. Got strides "+Oe+" and dilations '"+Fe+"'"}),at(4===yt.rank,function(){return"Error in maxPoolBackprop: dy must be rank 4 but got rank "+yt.rank+"."}),at(4===pt.rank,function(){return"Error in maxPoolBackprop: input must be rank 4 but got rank "+pt.rank+"."});var Bt=G2(pt.shape,Ae,Oe,Fe,et,void 0);return Ye.runKernelFunc(function(Ft){return Ft.maxPoolBackprop(yt,pt,gt,Bt)},{$dy:yt,$input:pt})}(x,U,J,n,e,r,i)}}},"MaxPool",d,[l]);return u?M.as3D(M.shape[1],M.shape[2],M.shape[3]):M}function Zp(t,n,e,r,i,s){var c=Qe(t,"x","avgPool","float32");null==r&&(r=[1,1]),at(qs(e,r),function(){return"Error in avgPool: Either strides or dilations must be 1. Got strides "+e+" and dilations '"+r+"'"});var l=c,u=!1;3===c.rank&&(u=!0,l=c.as4D(1,c.shape[0],c.shape[1],c.shape[2])),at(4===l.rank,function(){return"Error in avgPool: x must be rank 4 but got rank "+l.rank+"."}),null!=s&&at(ai(i),function(){return"Error in avgPool: pad must be an integer when using, dimRoundingMode "+s+" but got pad "+i+"."});var d=G2(l.shape,n,e,r,i,s);if(1===d.filterWidth&&1===d.filterHeight&&yi(d.inShape,d.outShape))return c.clone();var p=Ye.runKernelFunc(function(M){return M.avgPool(l,d)},{x:l},function(M){return{x:function(){return function(x,R,U,J,ne,ue){var Ie=Qe(x,"dy","avgPoolBackprop"),Ae=Qe(R,"input","avgPoolBackprop");at(Ae.rank===Ie.rank,function(){return"Rank of input ("+Ae.rank+") does not match rank of dy ("+Ie.rank+")"}),null==ne&&(ne=[1,1]),at(qs(J,ne),function(){return"Error in avgPoolBackprop: Either strides or dilations must be 1. Got strides "+J+" and dilations '"+ne+"'"});var Oe=Ae,Fe=Ie,et=!1;3===Ae.rank&&(et=!0,Oe=Ae.as4D(1,Ae.shape[0],Ae.shape[1],Ae.shape[2]),Fe=Ie.as4D(1,Ie.shape[0],Ie.shape[1],Ie.shape[2])),at(4===Fe.rank,function(){return"Error in avgPoolBackprop: dy must be rank 4 but got rank "+Fe.rank+"."}),at(4===Oe.rank,function(){return"Error in avgPoolBackprop: input must be rank 4 but got rank "+Oe.rank+"."});var Ct=G2(Oe.shape,U,J,ne,ue),yt=Ye.runKernelFunc(function(pt){return pt.avgPoolBackprop(Fe,Oe,Ct)},{dy4D:Fe,input4D:Oe});return et?yt.as3D(yt.shape[1],yt.shape[2],yt.shape[3]):yt}(M,l,n,e,r,i)}}},"AvgPool",d);return p=p.cast(c.dtype),u?p.as3D(p.shape[1],p.shape[2],p.shape[3]):p}var rs=kt({maxPool_:function(t,n,e,r,i){return Xp(t,n,e,1,r,i)}}),Y0=kt({avgPool_:function(t,n,e,r,i){return Zp(t,n,e,1,r,i)}}),ly=kt({pool_:function(t,n,e,r,i,s){null==i&&(i=[1,1]),null==s&&(s=1),0===r&&(r="valid");var c=Qe(t,"x","maxPool"),l=c,u=!1;3===c.rank&&(u=!0,l=c.as4D(1,c.shape[0],c.shape[1],c.shape[2])),at(qs(s,i),function(){return"Error in pool: Either strides or dilations must be 1. Got strides "+s+" and dilations '"+i+"'"});var d,Fe,et,Ct,yt,p=G2(l.shape,n,s,i,r),M=[p.dilationHeight,p.dilationWidth];d="same"===r?(Fe=M,et=[p.filterHeight,p.filterWidth].map(function(pt,gt){return pt+(pt-1)*(Fe[gt]-1)}).map(function(pt){return pt-1}),Ct=et.map(function(pt){return Math.floor(pt/2)}),yt=et.map(function(pt,gt){return pt-Ct[gt]}),et.map(function(pt,gt){return[Ct[gt],yt[gt]]})):[[0,0],[0,0]];var x=1===M[0]&&1===M[1],R=function(Oe,Fe,et){var Ct=et.map(function(pn){return pn[0]}),yt=et.map(function(pn){return pn[1]}),pt=Oe.concat(Ct,yt),gt=Fe.map(function(pn,_n){return(pn-pt[_n]%pn)%pn}),Bt=yt.map(function(pn,_n){return pn+gt[_n]});return[Fe.map(function(pn,_n){return[Ct[_n],Bt[_n]]}),Fe.map(function(pn,_n){return[0,gt[_n]]})]}([p.inHeight,p.inWidth],M,d),J=R[1],ne=x?r:"valid",ue=x?l:qh(l,M,R[0]),Ie=("avg"===e?function(){return Zp(ue,n,s,1,ne)}:function(){return Xp(ue,n,s,1,ne)})(),Ae=x?Ie:jo(Ie,M,J);return u?Ae.as3D(Ae.shape[1],Ae.shape[2],Ae.shape[3]):Ae}}),uy=kt({maxPool3d_:function(t,n,e,r,i,s,c){void 0===s&&(s="NDHWC");var l=Qe(t,"x","maxPool3d"),u=l,d=!1;4===l.rank&&(d=!0,u=l.as5D(1,l.shape[0],l.shape[1],l.shape[2],l.shape[3])),null==c&&(c=[1,1,1]),at(5===u.rank,function(){return"Error in maxPool3d: x must be rank 5 but got rank "+u.rank+"."}),at("NDHWC"===s,function(){return"Error in maxPool3d: Only NDHWC is currently supported, but got dataFormat of "+s}),at(qs(e,c),function(){return"Error in maxPool3d: Either strides or dilations must be 1. Got strides "+e+" and dilations '"+c+"'"}),null!=i&&at(ai(r),function(){return"Error in maxPool3d: pad must be an integer when using, dimRoundingMode "+i+" but got pad "+r+"."});var p=E0(u.shape,n,e,c,r,i,s),M=Ye.runKernelFunc(function(x,R){var U=x.maxPool3d(u,p);return R([u,U]),U},{x:u},function(x,R){var U=R[0],J=R[1];return{x:function(){return function(ne,ue,Ie,Ae,Oe,Fe,et,Ct){var yt=Qe(ne,"dy","maxPool3dBackprop"),pt=Qe(ue,"input","maxPool3dBackprop"),gt=Qe(Ie,"output","maxPool3dBackprop"),Bt=yt,Ft=pt,yn=gt,pn=!1;4===pt.rank&&(pn=!0,Bt=yt.as5D(1,yt.shape[0],yt.shape[1],yt.shape[2],yt.shape[3]),Ft=pt.as5D(1,pt.shape[0],pt.shape[1],pt.shape[2],pt.shape[3]),yn=gt.as5D(1,gt.shape[0],gt.shape[1],gt.shape[2],gt.shape[3])),at(5===Bt.rank,function(){return"Error in maxPool3dBackprop: dy must be rank 5 but got rank "+Bt.rank+"."}),at(5===Ft.rank,function(){return"Error in maxPool3dBackprop: input must be rank 5 but got rank "+Ft.rank+"."}),at(5===yn.rank,function(){return"Error in maxPool3dBackprop: output must be rank 5 but got rank "+yn.rank+"."}),null==Fe&&(Fe=[1,1,1]),at(qs(Oe,Fe),function(){return"Error in maxPool3dBackprop: Either strides or dilations must be 1. Got strides "+Oe+" and dilations '"+Fe+"'"}),null!=Ct&&at(ai(et),function(){return"Error in maxPool3dBackprop: pad must be an integer when using, dimRoundingMode "+Ct+" but got pad "+et+"."});var _n=E0(Ft.shape,Ae,Oe,Fe,et,Ct),Dn=Ye.runKernelFunc(function(En){return En.maxPool3dBackprop(Bt,Ft,yn,_n)},{dy5D:Bt,input5D:Ft});return pn?Dn.as4D(Dn.shape[1],Dn.shape[2],Dn.shape[3],Dn.shape[4]):Dn}(x,U,J,n,e,c,r,i)}}});return d?M.as4D(M.shape[1],M.shape[2],M.shape[3],M.shape[4]):M}}),dy=kt({avgPool3d_:function(t,n,e,r,i,s,c){void 0===s&&(s="NDHWC");var l=Qe(t,"x","avgPool3d","float32"),u=l,d=!1;4===l.rank&&(d=!0,u=l.as5D(1,l.shape[0],l.shape[1],l.shape[2],l.shape[3])),null==c&&(c=[1,1,1]),at(5===u.rank,function(){return"Error in avgPool3d: x must be rank 5 but got rank "+u.rank+"."}),at("NDHWC"===s,function(){return"Error in avgPool3d: Only NDHWC is currently supported, but got dataFormat of "+s}),at(qs(e,c),function(){return"Error in avgPool3d: Either strides or dilations must be 1. Got strides "+e+" and dilations '"+c+"'"}),null!=i&&at(ai(r),function(){return"Error in avgPool3d: pad must be an integer when using, dimRoundingMode "+i+" but got pad "+r+"."});var p=E0(u.shape,n,e,c,r,i,s),M=Ye.runKernelFunc(function(x){return x.avgPool3d(u,p)},{x:u},function(x){return{x:function(){return function(R,U,J,ne,ue,Ie,Ae){var Oe=Qe(R,"dy","avgPool3dBackprop"),Fe=Qe(U,"input","avgPool3dBackprop"),et=Oe,Ct=Fe,yt=!1;4===Fe.rank&&(yt=!0,et=Oe.as5D(1,Oe.shape[0],Oe.shape[1],Oe.shape[2],Oe.shape[3]),Ct=Fe.as5D(1,Fe.shape[0],Fe.shape[1],Fe.shape[2],Fe.shape[3])),at(5===et.rank,function(){return"Error in avgPool3dBackprop: dy must be rank 5 but got rank "+et.rank+"."}),at(5===Ct.rank,function(){return"Error in avgPool3dBackprop: input must be rank 5 but got rank "+Ct.rank+"."}),null==ue&&(ue=[1,1,1]),at(qs(ne,ue),function(){return"Error in avgPool3dBackprop: Either strides or dilations must be 1. Got strides "+ne+" and dilations '"+ue+"'"}),null!=Ae&&at(ai(Ie),function(){return"Error in maxPool3dBackprop: pad must be an integer when using, dimRoundingMode "+Ae+" but got pad "+Ie+"."});var pt=E0(Ct.shape,J,ne,ue,Ie,Ae),gt=Ye.runKernelFunc(function(Bt){return Bt.avgPool3dBackprop(et,Ct,pt)},{dy5D:et,input5D:Ct});return yt?gt.as4D(gt.shape[1],gt.shape[2],gt.shape[3],gt.shape[4]):gt}(x,u,n,e,c,r,i)}}});return M=M.cast(u.dtype),d?M.as4D(M.shape[1],M.shape[2],M.shape[3],M.shape[4]):M}}),d1=kt({slice_:function(t,n,e){var r,i,s=Qe(t,"x","slice");if(0===s.rank)throw new Error("Slicing scalar is not possible");(r="number"==typeof n?[n].concat(new Array(s.rank-1).fill(0)):n.length<s.rank?n.concat(new Array(s.rank-n.length).fill(0)):n.slice()).forEach(function(u){at(-1!==u,function(){return"slice() does not support negative begin indexing."})}),i=(i=null==e?new Array(s.rank).fill(-1):"number"==typeof e?[e].concat(new Array(s.rank-1).fill(-1)):e.length<s.rank?e.concat(new Array(s.rank-e.length).fill(-1)):e).map(function(u,d){return u>=0?u:(at(-1===u,function(){return"Negative size values should be exactly -1 but got "+u+" for the slice() size at index "+d+"."}),s.shape[d]-r[d])}),om(s,r,i);var c=s.shape;return Ye.runKernelFunc(function(u){return u.slice(s,r,i)},{x:s},function(u){for(var d=[],p=0;p<u.rank;p++)d.push([r[p],c[p]-r[p]-i[p]]);return{x:function(){return u.pad(d)}}},"Slice",{begin:r,size:i})}}),fy=kt({slice1d_:function(t,n,e){var r=Qe(t,"x","slice1d");return at(1===r.rank,function(){return"slice1d expects a rank-1 tensor, but got a rank-"+r.rank+" tensor"}),d1(r,[n],[e])}}),hy=kt({slice2d_:function(t,n,e){var r=Qe(t,"x","slice2d");return at(2===r.rank,function(){return"slice2d expects a rank-2 tensor, but got a rank-"+r.rank+" tensor"}),d1(r,n,e)}}),Jp=kt({slice3d_:function(t,n,e){var r=Qe(t,"x","slice3d");return at(3===r.rank,function(){return"slice3d expects a rank-3 tensor, but got a rank-"+r.rank+" tensor"}),d1(r,n,e)}}),my=kt({slice4d_:function(t,n,e){var r=Qe(t,"x","slice4d");return at(4===r.rank,function(){return"slice4d expects a rank-4 tensor, but got a rank-"+r.rank+" tensor"}),d1(r,n,e)}});function Fd(t,n,e,r,i){return n.rank<e.rank&&(n=n.reshape(Va(n.shape,r))),t.rank<e.rank&&(t=t.reshape(Va(t.shape,r))),{x:function(){var s=t.mul(e.equal(n).cast(t.dtype));return null==i?s:s.transpose(i)}}}var py=kt({all_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Qe(t,"x","all","bool"),i=Ti(n,r.shape),s=i,c=Qs(s,r.rank);null!=c&&(r=r.transpose(c),s=La(s.length,r.rank));var l=Ye.runKernelFunc(function(d){return d.all(r,s)},{$x:r});if(e){var u=Va(l.shape,i);return l.reshape(u)}return l}}),_y=kt({any_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Qe(t,"x","any","bool"),i=Ti(n,r.shape),s=i,c=Qs(s,r.rank);null!=c&&(r=r.transpose(c),s=La(s.length,r.rank));var l=Ye.runKernelFunc(function(d){return d.any(r,s)},{$x:r});if(e){var u=Va(l.shape,i);return l.reshape(u)}return l}}),gy=kt({argMax_:function(t,n){void 0===n&&(n=0);var e=Qe(t,"x","argMax");null==n&&(n=0);var r=Ti(n,e.shape),i=Qs(r,e.rank);return null!=i&&(e=e.transpose(i),r=La(r.length,e.rank)),Ye.runKernelFunc(function(l,u){var d=l.argMax(e,r[0]);return u([e]),d},{x:e},function(l,u){var d=u[0];return{x:function(){return Zo(d)}}},"ArgMax",{axis:r[0]},[e])}}),vy=kt({argMin_:function(t,n){void 0===n&&(n=0);var e=Qe(t,"x","argMin");null==n&&(n=0);var r=Ti(n,e.shape),i=Qs(r,e.rank);return null!=i&&(e=e.transpose(i),r=La(r.length,e.rank)),Ye.runKernelFunc(function(s,c){var l=s.argMin(e,r[0]);return c([e]),l},{$x:e},function(s,c){var l=c[0];return{$x:function(){return Zo(l)}}})}}),yy=kt({logSumExp_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Qe(t,"x","logSumExp"),i=Ti(n,r.shape),s=r.max(i,!0),c=r.sub(s).exp().sum(i).log(),l=s.reshape(c.shape).add(c);if(e){var u=Va(l.shape,i);return l.reshape(u)}return l}}),F0=kt({max_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Qe(t,"x","max"),i=r,s=Ti(n,r.shape),c=s,l=Qs(c,r.rank);null!=l&&(r=r.transpose(l),c=La(c.length,r.rank));var d=Ye.runKernelFunc(function(M,x){var R=M.max(r,c);return x([i,R]),R},{x:r},function(M,x){return Fd(M,x[1],x[0],s,l)},"Max",{axes:c},[r],[!0]);if(e){var p=Va(d.shape,s);d=d.reshape(p)}return d}}),My=kt({mean_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Qe(t,"x","mean"),i=Ti(n,r.shape),s=rr(ta(r.shape,i)[1]);return B3(function(c){var l=wn(s);return{value:(l.dtype===c.dtype?c:c.cast(l.dtype)).div(l).sum(n,e),gradFunc:function(u){var d=c.shape.slice();return i.forEach(function(p){d[p]=1}),u.reshape(d).mul(qn(c.shape,"float32")).div(s)}}})(r)}}),Cy=kt({min_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Qe(t,"x","min"),i=r,s=Ti(n,r.shape),c=s,l=Qs(c,r.rank);null!=l&&(r=r.transpose(l),c=La(c.length,r.rank));var d=Ye.runKernelFunc(function(M,x){var R=M.min(r,c);return x([i,R]),R},{x:r},function(M,x){return Fd(M,x[1],x[0],s,l)},"Min",{axes:c},[r],[!0]);if(e){var p=Va(d.shape,s);d=d.reshape(p)}return d}}),Qp=kt({moments_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Ti(n,(t=Qe(t,"x","moments")).shape),i=t.mean(r,e),s=i.shape;e||(s=Va(i.shape,r));var c=t.toFloat().sub(i.reshape(s)).square();return{mean:i,variance:c.mean(r,e)}}}),qp=kt({sum_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Qe(t,"x","sum");"bool"===r.dtype&&(r=r.toInt());var i=Ti(n,r.shape);return B3(function(s){var c=Qs(i,s.rank),l=i,u=s;null!=c&&(u=s.transpose(c),l=La(l.length,s.rank));var d=function(R){var U=s.shape.slice();return i.forEach(function(J){U[J]=1}),R.reshape(U).mul(qn(s.shape,"float32"))},M=Ye.runKernelFunc(function(R){return R.sum(u,l)},{x:u},function(R){return{x:function(){return d(R)}}},"Sum",{axes:l});if(e){var x=Va(M.shape,i);M=M.reshape(x)}return{value:M,gradFunc:d}})(r)}}),by=kt({prod_:function(t,n,e){void 0===n&&(n=null),void 0===e&&(e=!1);var r=Qe(t,"x","prod");"bool"===r.dtype&&(r=r.toInt());var i=Ti(n,r.shape),s=Qs(i,r.rank),c=i,l=r;null!=s&&(l=r.transpose(s),c=La(c.length,r.rank));var u=Ye.runKernelFunc(function(p){return p.prod(l,c)},{permutedX:l});if(e){var d=Va(u.shape,i);u=u.reshape(d)}return u}}),e8=kt({elu_:function(t){var n=Qe(t,"x","elu");return Ye.runKernelFunc(function(e,r){var i=e.elu(n);return r([i]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){return Ye.runKernelFunc(function(s){return s.eluDer(e,i)},{dy:e,y:i})}}})}}),t8=kt({leakyRelu_:function(t,n){void 0===n&&(n=.2);var e=Qe(t,"x","leakyRelu");return A0(wn(n).mul(e),e)}}),n8=kt({prelu_:function(t,n){var e=Qe(t,"x","prelu"),r=Qe(n,"alpha","prelu");return Ye.runKernelFunc(function(i,s){var c=i.prelu(e,r);return s([e,r]),c},{x:e,alpha:r},function(i,s){var c=s[0],l=s[1],u=c.greater(0);return{x:function(){return X2(u,i,i.mul(l))},alpha:function(){var d=X2(u,Zo(i),i.mul(c)),p=Aa(l.shape,i.shape);return p.length>0&&(d=d.sum(p)),d.reshape(l.shape)}}},"Prelu")}}),ua=kt({relu_:function(t){var n=Qe(t,"x","relu");return"bool"===n.dtype?n.toInt():Ye.runKernelFunc(function(e,r){var i=e.relu(n);return r([n]),i},{x:n},function(e,r){var i=r[0];return{x:function(){return e.mulStrict(i.step().toFloat())}}},"Relu")}}),au=kt({relu6_:function(t){var n=Qe(t,"x","relu6");return"bool"===n.dtype?n.toInt():Ye.runKernelFunc(function(e,r){var i=e.relu6(n);return r([n]),i},{x:n},function(e,r){var i=r[0],s=i.lessEqual(6).mul(i.step());return{x:function(){return e.mulStrict(s.toFloat())}}},"Relu6")}}),Ly=kt({selu_:function(t){var n=Qe(t,"x","selu");return Ye.runKernelFunc(function(e,r){var i=e.selu(n);return r([n]),i},{$x:n},function(e,r){var i=r[0];return{$x:function(){var s=i.greater(wn(0)),c=wn(1.7580993408473768),l=wn(1.0507009873554805),u=e.mul(l),d=e.mul(c).mul(i.toFloat().exp());return X2(s,u,d)}}})}}),y2=kt({transpose_:function(t,n){var e=Qe(t,"x","transpose");return null==n&&(n=e.shape.map(function(i,s){return s}).reverse()),at(e.rank===n.length,function(){return"Error in transpose: rank of input "+e.rank+" must match length of perm "+n+"."}),n.forEach(function(i){at(i>=0&&i<e.rank,function(){return"All entries in 'perm' must be between 0 and "+(e.rank-1)+" but got "+n})}),e.rank<=1?e.clone():Ye.runKernelFunc(function(i){return i.transpose(e,n)},{x:e},function(i){var s=Ys(n);return{x:function(){return i.transpose(s)}}},"Transpose",{perm:n})}}),Sy=kt({localResponseNormalization_:function(t,n,e,r,i){void 0===n&&(n=5),void 0===e&&(e=1),void 0===r&&(r=1),void 0===i&&(i=.5);var s=Qe(t,"x","localResponseNormalization");at(4===s.rank||3===s.rank,function(){return"Error in localResponseNormalization: x must be rank 3 or 4 but got\n rank "+s.rank+"."}),at(ai(n),function(){return"Error in localResponseNormalization: depthRadius must be an integer but got depthRadius "+n+"."});var c=s,l=!1;3===s.rank&&(l=!0,c=s.as4D(1,s.shape[0],s.shape[1],s.shape[2]));var u=Ye.runKernelFunc(function(d,p){var M=d.localResponseNormalization4D(c,n,e,r,i);return p([c,M]),M},{x4D:c},function(d,p){var M=p[0],x=p[1];return{x4D:function(){return Ye.runKernelFunc(function(R){return R.LRNGrad(d,M,x,n,e,r,i)},{})}}});return l?u.as3D(u.shape[1],u.shape[2],u.shape[3]):u}}),r8=kt({norm_:function(t,n,e,r){void 0===n&&(n="euclidean"),void 0===e&&(e=null),void 0===r&&(r=!1);var i=function l(u,d,p){if(void 0===p&&(p=null),0===u.rank)return u.abs();if(1!==u.rank&&null===p)return l(u.reshape([-1]),d,p);if(1===u.rank||"number"==typeof p||Array.isArray(p)&&1===p.length){if(1===d)return u.abs().sum(p);if(d===1/0)return u.abs().max(p);if(d===-1/0)return u.abs().min(p);if("euclidean"===d||2===d)return u.abs().pow(wn(2,"int32")).sum(p).sqrt();throw new Error("Error in norm: invalid ord value: "+d)}if(Array.isArray(p)&&2===p.length){if(1===d)return u.abs().sum(p[0]).max(p[1]-1);if(d===1/0)return u.abs().sum(p[1]).max(p[0]);if(d===-1/0)return u.abs().sum(p[1]).min(p[0]);if("fro"===d||"euclidean"===d)return u.square().sum(p).sqrt();throw new Error("Error in norm: invalid ord value: "+d)}throw new Error("Error in norm: invalid axis: "+p)}(t=Qe(t,"x","norm"),n,e),s=i.shape;if(r){var c=Ti(e,t.shape);s=Va(i.shape,c)}return i.reshape(s)}}),Ty=kt({basicLSTMCell_:function(t,n,e,r,i,s){var c=Qe(t,"forgetBias","basicLSTMCell"),l=Qe(n,"lstmKernel","basicLSTMCell"),u=Qe(e,"lstmBias","basicLSTMCell"),d=Qe(r,"data","basicLSTMCell"),p=Qe(i,"c","basicLSTMCell"),M=Qe(s,"h","basicLSTMCell"),x=d.concat(M,1).matMul(l).add(u),U=x.shape[1]/4,J=[x.shape[0],U],ne=x.slice([0,0],J),ue=x.slice([0,U],J),Ie=x.slice([0,2*U],J),Ae=x.slice([0,3*U],J),Oe=ne.sigmoid().mulStrict(ue.tanh()).addStrict(p.mulStrict(c.add(Ie).sigmoid())),Fe=Oe.tanh().mulStrict(Ae.sigmoid());return[Oe,Fe]}}),wy=kt({multiRNNCell_:function(t,n,e,r){for(var i=Qe(n,"data","multiRNNCell"),s=G1(e,"c","multiRNNCell"),c=G1(r,"h","multiRNNCell"),l=i,u=[],d=0;d<t.length;d++){var p=t[d](l,s[d],c[d]);u.push(p[0]),u.push(p[1]),l=p[1]}var M=[],x=[];for(d=0;d<u.length;d+=2)M.push(u[d]),x.push(u[d+1]);return[M,x]}}),Ey=kt({movingAverage_:function(t,n,e,r,i){void 0===i&&(i=!0);var s=Qe(t,"v","movingAverage"),c=Qe(n,"x","movingAverage"),l=Qe(e,"decay","movingAverage");ms(s,c),at(yi(s.shape,c.shape),function(){return"Shape mismatch in v and x"});var u=wn(1),d=u.sub(l),p=c.sub(s).mul(d);if(i){at(null!=r,function(){return"When using zeroDebias: true, step is required."});var M=Qe(r,"step","movingAverage");p=p.div(u.sub(N0(l,M)))}return s.add(p)}}),o8=kt({stridedSlice_:function(t,n,e,r,i,s,c,l,u){if(void 0===i&&(i=0),void 0===s&&(s=0),void 0===c&&(c=0),void 0===l&&(l=0),void 0===u&&(u=0),null==r&&(r=new Array(n.length)),0!==c)throw new Error("ellipsis mask is not yet supported");var d=Qe(t,"x","stridedSlice"),p=J4(l),M=d.shape.slice();p.forEach(function(ne){n[ne]=0,e[ne]=1,M.splice(ne,0,1)}),d=d.reshape(M);for(var x=0;x<d.rank;x++)n[x]=Q4(i,n,r,d.shape,x),e[x]=im(s,e,r,d.shape,x),r[x]=r[x]||1;var R=J4(u);R.forEach(function(ne){e[ne]=n[ne]+1,r[ne]=1});var U=H3(n,e,r),J=U.filter(function(ne,ue){return-1===R.indexOf(ue)});return r.every(function(ne){return 1===ne})?d1(d,n,U).reshape(J):Ye.runKernelFunc(function(ne){return ne.stridedSlice(d,n,e,r)},{$x:d}).reshape(J)}}),xy=kt({topk_:function(t,n,e){void 0===n&&(n=1),void 0===e&&(e=!0);var r=Qe(t,"x","topk");if(0===r.rank)throw new Error("topk() expects the input to be of rank 1 or higher");var i=r.shape[r.shape.length-1];if(n>i)throw new Error("'k' passed to topk() must be <= the last dimension ("+i+") but got "+n);var s=Ye.runKernelFunc(function(c){return c.topk(r,n,e)},{$x:r});return{values:s[0],indices:s[1]}}}),ky=kt({scatterND_:function(t,n,e){var r=Qe(t,"indices","scatterND","int32"),i=Qe(n,"updates","scatterND");return rm(i,r,e),Ye.runKernelFunc(function(s){return s.scatterND(r,i,e)},{indices:r,updates:i},null,"ScatterNd",{shape:e})}}),su=kt({fft_:function(t){at("complex64"===t.dtype,function(){return"The dtype for tf.spectral.fft() must be complex64 but got "+t.dtype+"."});var n=t.shape[t.shape.length-1],r=t.as2D(t.size/n,n);return Ye.runKernelFunc(function(i){return i.fft(r)},{input:t}).reshape(t.shape)}}),cu=kt({ifft_:function(t){at("complex64"===t.dtype,function(){return"The dtype for tf.spectral.ifft() must be complex64 but got "+t.dtype+"."});var n=t.shape[t.shape.length-1],r=t.as2D(t.size/n,n);return Ye.runKernelFunc(function(i){return i.ifft(r)},{input:t}).reshape(t.shape)}}),Hd=kt({rfft_:function(t,n){at("float32"===t.dtype,function(){return"The dtype for rfft() must be real value but got "+t.dtype});var e,r=t.shape[t.shape.length-1],i=t.size/r;if(null!=n&&n<r){var s=t.shape.map(function(ue){return 0}),c=t.shape.map(function(ue){return ue});c[t.shape.length-1]=n,e=t.slice(s,c),r=n}else if(null!=n&&n>r){var l=t.shape.map(function(ue){return ue});l[t.shape.length-1]=n-r,e=t.concat($n(l),t.shape.length-1),r=n}else e=t;var u=e.zerosLike(),d=Oa(e,u).as2D(i,r),p=su(d),M=Math.floor(r/2)+1,x=Fs(p),R=Hs(p),U=x.split([M,r-M],x.shape.length-1),J=R.split([M,r-M],R.shape.length-1),ne=e.shape.slice();return ne[e.shape.length-1]=M,Oa(U[0],J[0]).reshape(ne)}}),i8=kt({irfft_:function(t){var n=t.shape[t.shape.length-1],e=t.size/n;if(n<=2){var r=t.as2D(e,n),i=cu(r);return Fs(i)}var s=[e,2*(n-1)],c=Fs(t).as2D(e,n),l=Hs(t).as2D(e,n),u=c.slice([0,1],[e,n-2]).reverse(1),d=l.slice([0,1],[e,n-2]).reverse(1).mul(wn(-1)),p=c.concat(u,1),M=l.concat(d,1);return r=Oa(p,M).as2D(s[0],s[1]),i=cu(r),Fs(i)}}),Dy=Object.freeze({fft:su,ifft:cu,rfft:Hd,irfft:i8}),Py=kt({sparseToDense_:function(t,n,e,r){void 0===r&&(r=0);var i=Qe(t,"sparseIndices","sparseToDense","int32"),s=Qe(n,"sparseValues","sparseToDense"),c=Qe(r,"defaultValue","sparseToDense",s.dtype);return function(l,u,d,p){if("int32"!==l.dtype)throw new Error("tf.sparseToDense() expects the indices to be int32 type, but the dtype was "+l.dtype+".");if(l.rank>2)throw new Error("sparseIndices should be a scalar, vector, or matrix, but got shape "+l.shape+".");var M=l.rank>0?l.shape[0]:1,x=l.rank>1?l.shape[1]:1;if(d.length!==x)throw new Error("outputShape has incorrect number of elements:, "+d.length+", should be: "+x+".");if(0!==u.rank&&(1!==u.rank||u.size!==M))throw new Error("sparseValues has incorrect shape "+u.shape+", should be [] or ["+M+"]");if(u.dtype!==p.dtype)throw new Error("sparseValues.dtype must match defaultValues.dtype")}(i,s,e,c),Ye.runKernelFunc(function(l){return l.sparseToDense(i,s,e,c)},{$sparseIndices:i,$sparseValues:s,$defaultValue:c})}}),Oy=kt({gatherND_:function(t,n){var e=Qe(n,"indices","gatherND","int32"),r=Qe(t,"x","gatherND");return Ye.runKernelFunc(function(i){return i.gatherND(r,e)},{x:r,indices:e},null,"GatherNd")}}),Iy=kt({diag_:function(t){var n=Qe(t,"x","diag").flatten(),e=t.shape.concat(t.shape);return Ye.runKernelFunc(function(r){return r.diag(n)},{$x:n}).reshape(e)}}),a8=kt({dropout_:function(t,n,e,r){var i=Qe(t,"x","dropout");if(at("float32"===i.dtype,function(){return"x has to be a floating point tensor since it's going to be scaled, but got a "+i.dtype+" tensor instead."}),at(n>=0&&n<1,function(){return"rate must be a float in the range [0, 1), but got "+n+"."}),0===n)return t instanceof Ao?i.clone():i;var s=function(u,d){if(null==d)return u.shape.slice();if(yi(u.shape,d))return d;if(u.shape.length===d.length){for(var p=[],M=0;M<u.shape.length;M++)p.push(null==d[M]&&null!=u.shape[M]?u.shape[M]:d[M]);return p}return d}(i,e),c=1-n,l=$4(s,0,1,"float32",r).add(c).floor().div(c);return i.mul(l)}});function s8(t,n,e){for(var r=1-t%2,i=new Float32Array(t),s=0;s<t;++s){var c=2*Math.PI*s/(t+r-1);i[s]=n-e*Math.cos(c)}return C(i,"float32")}var js,Bd=kt({hannWindow_:function(t){return s8(t,.5,.5)}}),c8=kt({hammingWindow_:function(t){return s8(t,.54,.46)}}),lu=kt({frame_:function(t,n,e,r,i){void 0===r&&(r=!1),void 0===i&&(i=0);for(var s=0,c=[];s+n<=t.size;)c.push(d1(t,s,n)),s+=e;if(r)for(;s<t.size;){var l=s+n-t.size,u=Ia([d1(t,s,n-l),to([l],i)]);c.push(u),s+=e}return 0===c.length?B([],[0,n]):Ia(c).as2D(c.length,n)}}),l8=kt({stft_:function(t,n,e,r,i){void 0===i&&(i=Bd),null==r&&(r=Math.floor(Math.pow(2,Math.ceil(Math.log(n)/Math.log(2)))));for(var c=lu(t,n,e),l=Ds(c,i(n)),u=[],d=0;d<c.shape[0];d++)u.push(Hd(l.slice([d,0],[1,n]),r));return Ia(u)}}),Ay=Object.freeze({hannWindow:Bd,hammingWindow:c8,frame:lu,stft:l8});!function(t){t[t.NONE=0]="NONE",t[t.MEAN=1]="MEAN",t[t.SUM=2]="SUM",t[t.SUM_BY_NONZERO_WEIGHTS=3]="SUM_BY_NONZERO_WEIGHTS"}(js||(js={}));var Ny=kt({absoluteDifference_:function(t,n,e,r){void 0===r&&(r=js.SUM_BY_NONZERO_WEIGHTS);var i=Qe(t,"labels","absoluteDifference"),s=Qe(n,"predictions","absoluteDifference"),c=null;null!=e&&(c=Qe(e,"weights","absoluteDifference")),ho(i.shape,s.shape,"Error in absoluteDifference: ");var l=i.sub(s).abs();return J1(l,c,r)}}),J1=kt({computeWeightedLoss_:function(t,n,e){void 0===e&&(e=js.SUM_BY_NONZERO_WEIGHTS);var r=Qe(t,"losses","computeWeightedLoss"),i=null;null!=n&&(i=Qe(n,"weights","computeWeightedLoss"));var s=null==i?r:r.mul(i);if(e===js.NONE)return s;if(e===js.SUM)return s.sum();if(e===js.MEAN){if(null==i)return s.mean();var c=r.size/i.size,l=s.sum().div(i.sum());return c>1?l.div(wn(c)):l}if(e===js.SUM_BY_NONZERO_WEIGHTS){if(null==i)return s.sum().div(wn(r.size));var u=i.mul(qn(r.shape)).notEqual(wn(0)).sum().toFloat();return s.sum().div(u)}throw Error("Unknown reduction: "+e)}}),zy=kt({cosineDistance_:function(t,n,e,r,i){void 0===i&&(i=js.SUM_BY_NONZERO_WEIGHTS);var s=Qe(t,"labels","cosineDistance"),c=Qe(n,"predictions","cosineDistance"),l=null;null!=r&&(l=Qe(r,"weights","cosineDistance")),ho(s.shape,c.shape,"Error in cosineDistance: ");var u=wn(1).sub(s.mul(c).sum(e,!0));return J1(u,l,i)}}),u8=kt({hingeLoss_:function(t,n,e,r){void 0===r&&(r=js.SUM_BY_NONZERO_WEIGHTS);var i=Qe(t,"labels","hingeLoss"),s=Qe(n,"predictions","hingeLoss"),c=null;null!=e&&(c=Qe(e,"weights","hingeLoss")),ho(i.shape,s.shape,"Error in hingeLoss: ");var l=wn(1);i=wn(2).mul(i).sub(l);var u=l.sub(i.mul(s)).relu();return J1(u,c,r)}}),Ry=kt({huberLoss_:function(t,n,e,r,i){void 0===r&&(r=1),void 0===i&&(i=js.SUM_BY_NONZERO_WEIGHTS);var s=Qe(t,"labels","huberLoss"),c=Qe(n,"predictions","huberLoss"),l=null;null!=e&&(l=Qe(e,"weights","huberLoss")),ho(s.shape,c.shape,"Error in huberLoss: ");var u=wn(r),d=c.sub(s).abs(),p=Np(d,u),M=d.sub(p),x=wn(.5).mul(p.square()).add(u.mul(M));return J1(x,l,i)}}),Yy=kt({logLoss_:function(t,n,e,r,i){void 0===r&&(r=1e-7),void 0===i&&(i=js.SUM_BY_NONZERO_WEIGHTS);var s=Qe(t,"labels","logLoss"),c=Qe(n,"predictions","logLoss"),l=null;null!=e&&(l=Qe(e,"weights","logLoss")),ho(s.shape,c.shape,"Error in logLoss: ");var u=wn(1),d=wn(r),p=s.mul(c.add(d).log()).neg().sub(u.sub(s).mul(u.sub(c).add(d).log()));return J1(p,l,i)}}),d8=kt({meanSquaredError_:function(t,n,e,r){void 0===r&&(r=js.SUM_BY_NONZERO_WEIGHTS);var i=Qe(t,"labels","meanSquaredError"),s=Qe(n,"predictions","meanSquaredError"),c=null;null!=e&&(c=Qe(e,"weights","meanSquaredError")),ho(i.shape,s.shape,"Error in meanSquaredError: ");var l=i.squaredDifference(s);return J1(l,c,r)}}),Fy=kt({sigmoidCrossEntropy_:function(t,n,e,r,i){void 0===r&&(r=0),void 0===i&&(i=js.SUM_BY_NONZERO_WEIGHTS);var s=Qe(t,"multiClassLabels","sigmoidCrossEntropy"),c=Qe(n,"logits","sigmoidCrossEntropy"),l=null;if(null!=e&&(l=Qe(e,"weights","sigmoidCrossEntropy")),ho(s.shape,c.shape,"Error in sigmoidCrossEntropy: "),r>0){var u=wn(r),d=wn(1),p=wn(.5);s=s.mul(d.sub(u)).add(p.mul(u))}var M=function(x,R){var U=Qe(x,"labels","sigmoidCrossEntropyWithLogits"),J=Qe(R,"logits","sigmoidCrossEntropyWithLogits");ho(U.shape,J.shape,"Error in sigmoidCrossEntropyWithLogits: ");var ne=J.relu(),ue=J.mul(U),Ie=J.abs().neg().exp().log1p();return ne.sub(ue).add(Ie)}(s,c);return J1(M,l,i)}}),Hy=kt({softmaxCrossEntropy_:function(t,n,e,r,i){void 0===r&&(r=0),void 0===i&&(i=js.SUM_BY_NONZERO_WEIGHTS);var s=Qe(t,"onehotLabels","softmaxCrossEntropy"),c=Qe(n,"logits","softmaxCrossEntropy"),l=null;if(null!=e&&(l=Qe(e,"weights","softmaxCrossEntropy")),ho(s.shape,c.shape,"Error in softmaxCrossEntropy: "),r>0){var u=wn(r),d=wn(1),p=wn(s.shape[1]);s=s.mul(d.sub(u)).add(u.div(p))}var M=function(x,R,U){if(void 0===U&&(U=-1),-1===U&&(U=R.rank-1),U!==R.rank-1)throw Error("Softmax cross entropy along a non-last dimension is not yet supported. Labels / logits was rank "+R.rank+" and dim was "+U);return B3(function(J,ne,ue){var Ie=ne.logSumExp([U],!0),Ae=ne.toFloat().sub(Ie);return ue([J,Ae]),{value:Ae.mul(J).neg().sum([U]),gradFunc:function(Oe,Fe){var et=Fe[0],Ct=Fe[1],yt=Va(Oe.shape,[U]);return[Oe.reshape(yt).mul(et.toFloat().sub(Ct.exp())),Oe.reshape(yt).mul(Ct.exp().sub(et.toFloat()))]}}})(x,R)}(s,c);return J1(M,l,i)}}),f8=Object.freeze({get Reduction(){return js},absoluteDifference:Ny,computeWeightedLoss:J1,cosineDistance:zy,hingeLoss:u8,huberLoss:Ry,logLoss:Yy,meanSquaredError:d8,sigmoidCrossEntropy:Fy,softmaxCrossEntropy:Hy});function h8(t,n){return void 0===n&&(n=!1),Ye.tidy(function(){if(2!==t.shape.length)throw new Error("qr2d() requires a 2D Tensor, but got a "+t.shape.length+"D Tensor.");for(var e=t.shape[0],r=t.shape[1],i=T0(e),s=t.clone(),c=B([[1]],[1,1]),l=c.clone(),u=e>=r?r:e,d=function(M){var x,R=s,U=l,J=i;x=Ye.tidy(function(){var ne=s.slice([M,M],[e-M,1]),ue=ne.norm(),Ie=s.slice([M,M],[1,1]),Ae=B([[-1]]).where(Ie.greater(0),B([[1]])),Oe=Ie.sub(Ae.mul(ue)),Fe=ne.div(Oe);l=1===Fe.shape[0]?c.clone():c.concat(Fe.slice([1,0],[Fe.shape[0]-1,Fe.shape[1]]),0);var et=Ae.matMul(Oe).div(ue).neg(),Ct=s.slice([M,0],[e-M,r]),yt=et.mul(l);if(0===M)s=Ct.sub(yt.matMul(l.transpose().matMul(Ct)));else{var pt=Ct.sub(yt.matMul(l.transpose().matMul(Ct)));s=s.slice([0,0],[M,r]).concat(pt,0)}var gt=i.slice([0,M],[e,i.shape[1]-M]);if(0===M)i=gt.sub(gt.matMul(l).matMul(yt.transpose()));else{var Bt=gt.sub(gt.matMul(l).matMul(yt.transpose()));i=i.slice([0,0],[e,M]).concat(Bt,1)}return[l,s,i]}),l=x[0],s=x[1],i=x[2],Es([R,U,J])},p=0;p<u;++p)d(p);return!n&&e>r&&(i=i.slice([0,0],[e,r]),s=s.slice([0,0],[r,r])),[i,s]})}var By=kt({bandPart_:function(t,n,e){if(n%1!=0)throw new Error("bandPart(): numLower must be an integer, got "+n+".");if(e%1!=0)throw new Error("bandPart(): numUpper must be an integer, got "+e+".");var r=Qe(t,"a","bandPart");if(r.rank<2)throw new Error("bandPart(): Rank must be at least 2, got "+r.rank+".");var i=r.shape,s=r.shape.slice(-2),c=s[0],l=s[1];if(!(n<=c))throw new Error("bandPart(): numLower ("+n+") must not be greater than the number of rows ("+c+").");if(!(e<=l))throw new Error("bandPart(): numUpper ("+e+") must not be greater than the number of columns ("+l+").");n<0&&(n=c),e<0&&(e=l);var u=ks(0,c,1,"int32").reshape([-1,1]),d=ks(0,l,1,"int32"),p=ns(u,d),M=ru(p.lessEqual(wn(+n,"int32")),p.greaterEqual(wn(-e,"int32"))),x=$n([c,l],r.dtype);return Lc(ts(r.reshape([-1,c,l])).map(function(R){return X2(M,R,x)})).reshape(i)}}),jy=kt({gramSchmidt_:function(t){var n;if(Array.isArray(t)){n=!1,at(null!=t&&t.length>0,function(){return"Gram-Schmidt process: input must not be null, undefined, or empty"});for(var e=t[0].shape[0],r=function(u){at(t[u].shape[0]===e,function(){return"Gram-Schmidt: Non-unique lengths found in the input vectors: ("+t[u].shape[0]+" vs. "+e+")"})},i=1;i<t.length;++i)r(i)}else n=!0,t=N3(t,t.shape[0],0).map(function(u){return em(u,[0])});at(t.length<=t[0].shape[0],function(){return"Gram-Schmidt: Number of vectors ("+t.length+") exceeds number of dimensions ("+t[0].shape[0]+")."});var s=[],c=t,l=function(u){s.push(Ye.tidy(function(){var d=c[u];if(u>0)for(var p=0;p<u;++p){var M=qp(s[p].mulStrict(d)).mul(s[p]);d=d.sub(M)}return d.div(r8(d,"euclidean"))}))};for(i=0;i<t.length;++i)l(i);return n?Lc(s,0):s}}),m8=kt({qr_:function(t,n){if(void 0===n&&(n=!1),t.rank<2)throw new Error("qr() requires input tensor to have a rank >= 2, but got rank "+t.rank);if(2===t.rank)return h8(t,n);var e=t.shape.slice(0,t.shape.length-2).reduce(function(c,l){return c*l}),r=ts(t.reshape([e,t.shape[t.shape.length-2],t.shape[t.shape.length-1]]),0),i=[],s=[];return r.forEach(function(c){var l=h8(c,n),d=l[1];i.push(l[0]),s.push(d)}),[Lc(i,0).reshape(t.shape),Lc(s,0).reshape(t.shape)]}}),Wy=Object.freeze({bandPart:By,gramSchmidt:jy,qr:m8});function uu(t,n,e,r,i,s){null==r&&(r=.5),null==i&&(i=Number.NEGATIVE_INFINITY),null==s&&(s=0);var c=t.shape[0];return e=Math.min(e,c),at(0<=r&&r<=1,function(){return"iouThreshold must be in [0, 1], but was '"+r+"'"}),at(2===t.rank,function(){return"boxes must be a 2D tensor, but was of rank '"+t.rank+"'"}),at(4===t.shape[1],function(){return"boxes must have 4 columns, but 2nd dimension was "+t.shape[1]}),at(1===n.rank,function(){return"scores must be a 1D tensor"}),at(n.shape[0]===c,function(){return"scores has incompatible shape with boxes. Expected "+c+", but was "+n.shape[0]}),at(0<=s&&s<=1,function(){return"softNmsSigma must be in [0, 1], but was '"+s+"'"}),{maxOutputSize:e,iouThreshold:r,scoreThreshold:i,softNmsSigma:s}}var Uy=kt({resizeBilinear_:function(t,n,e){void 0===e&&(e=!1);var r=Qe(t,"images","resizeBilinear");at(3===r.rank||4===r.rank,function(){return"Error in resizeBilinear: x must be rank 3 or 4, but got rank "+r.rank+"."}),at(2===n.length,function(){return"Error in resizeBilinear: new shape must 2D, but got shape "+n+"."});var i=r,s=!1;3===r.rank&&(s=!0,i=r.as4D(1,r.shape[0],r.shape[1],r.shape[2]));var c=n[0],l=n[1],u=Ye.runKernelFunc(function(d,p){return p([i]),d.resizeBilinear(i,c,l,e)},{x:i},function(d,p){return{x:function(){return Ye.runKernelFunc(function(M){return M.resizeBilinearBackprop(d,p[0],e)},{})}}},"ResizeBilinear",{alignCorners:e,newHeight:c,newWidth:l});return s?u.as3D(u.shape[1],u.shape[2],u.shape[3]):u}}),Vy=kt({resizeNearestNeighbor_:function(t,n,e){void 0===e&&(e=!1);var r=Qe(t,"images","resizeNearestNeighbor");at(3===r.rank||4===r.rank,function(){return"Error in resizeNearestNeighbor: x must be rank 3 or 4, but got rank "+r.rank+"."}),at(2===n.length,function(){return"Error in resizeNearestNeighbor: new shape must 2D, but got shape "+n+"."}),at("float32"===r.dtype||"int32"===r.dtype,function(){return"`images` must have `int32` or `float32` as dtype"});var i=r,s=!1;3===r.rank&&(s=!0,i=r.as4D(1,r.shape[0],r.shape[1],r.shape[2]));var c=n[0],l=n[1],u=Ye.runKernelFunc(function(d,p){return p([i]),d.resizeNearestNeighbor(i,c,l,e)},{batchImages:i},function(d,p){return{batchImages:function(){return Ye.runKernelFunc(function(M){return M.resizeNearestNeighborBackprop(d,p[0],e)},{})}}});return s?u.as3D(u.shape[1],u.shape[2],u.shape[3]):u}}),Gy=kt({nonMaxSuppression_:function(t,n,e,r,i){void 0===r&&(r=.5),void 0===i&&(i=Number.NEGATIVE_INFINITY);var s=Qe(t,"boxes","nonMaxSuppression"),c=Qe(n,"scores","nonMaxSuppression"),l=uu(s,c,e,r,i);return Ye.runKernelFunc(function(d){return d.nonMaxSuppression(s,c,e,r,i)},{boxes:s,scores:c},null,"NonMaxSuppressionV3",{maxOutputSize:e=l.maxOutputSize,iouThreshold:r=l.iouThreshold,scoreThreshold:i=l.scoreThreshold})}}),$y=kt({nonMaxSuppressionWithScore_:function(t,n,e,r,i,s){void 0===r&&(r=.5),void 0===i&&(i=Number.NEGATIVE_INFINITY),void 0===s&&(s=0);var c=Qe(t,"boxes","nonMaxSuppression"),l=Qe(n,"scores","nonMaxSuppression"),u=uu(c,l,e,r,i,s),d={maxOutputSize:e=u.maxOutputSize,iouThreshold:r=u.iouThreshold,scoreThreshold:i=u.scoreThreshold,softNmsSigma:s=u.softNmsSigma},p=Ye.runKernel("NonMaxSuppressionV5",{boxes:c,scores:l},d);return{selectedIndices:p[0],selectedScores:p[1]}}}),Xy=kt({cropAndResize_:function(t,n,e,r,i,s){var c=Qe(t,"image","cropAndResize"),l=Qe(n,"boxes","cropAndResize","float32"),u=Qe(e,"boxInd","cropAndResize","int32");i=i||"bilinear",s=s||0;var d=l.shape[0];return at(4===c.rank,function(){return"Error in cropAndResize: image must be rank 4,but got rank "+c.rank+"."}),at(2===l.rank&&4===l.shape[1],function(){return"Error in cropAndResize: boxes must be have size ["+d+",4] but had shape "+l.shape+"."}),at(1===u.rank&&u.shape[0]===d,function(){return"Error in cropAndResize: boxInd must be have size ["+d+"] but had shape "+l.shape+"."}),at(2===r.length,function(){return"Error in cropAndResize: cropSize must be of length 2, but got length "+r.length+"."}),at(r[0]>=1&&r[1]>=1,function(){return"cropSize must be atleast [1,1], but was "+r}),at("bilinear"===i||"nearest"===i,function(){return"method must be bilinear or nearest, but was "+i}),Ye.runKernelFunc(function(p,M){return p.cropAndResize(c,l,u,r,i,s)},{images:c,boxes:l,boxInd:u},null,"CropAndResize",{method:i,extrapolationValue:s,cropSize:r})}}),Wd=Object.freeze({resizeBilinear:Uy,resizeNearestNeighbor:Vy,nonMaxSuppression:Gy,nonMaxSuppressionAsync:function(t,n,e,r,i){return void 0===r&&(r=.5),void 0===i&&(i=Number.NEGATIVE_INFINITY),st(this,void 0,void 0,function(){var s,c,l,u,M;return Ln(this,function(x){switch(x.label){case 0:return s=Qe(t,"boxes","nonMaxSuppressionAsync"),c=Qe(n,"scores","nonMaxSuppressionAsync"),l=uu(s,c,e,r,i),e=l.maxOutputSize,r=l.iouThreshold,i=l.scoreThreshold,[4,Promise.all([s.data(),c.data()])];case 1:return u=x.sent(),M=ad(u[0],u[1],e,r,i),s!==t&&s.dispose(),c!==n&&c.dispose(),[2,M]}})})},nonMaxSuppressionWithScore:$y,nonMaxSuppressionWithScoreAsync:function(t,n,e,r,i,s){return void 0===r&&(r=.5),void 0===i&&(i=Number.NEGATIVE_INFINITY),void 0===s&&(s=0),st(this,void 0,void 0,function(){var c,l,u,d,x;return Ln(this,function(R){switch(R.label){case 0:return c=Qe(t,"boxes","nonMaxSuppressionAsync"),l=Qe(n,"scores","nonMaxSuppressionAsync"),u=uu(c,l,e,r,i,s),e=u.maxOutputSize,r=u.iouThreshold,i=u.scoreThreshold,s=u.softNmsSigma,[4,Promise.all([c.data(),l.data()])];case 1:return d=R.sent(),x=G3(d[0],d[1],e,r,i,s),c!==t&&c.dispose(),l!==n&&l.dispose(),[2,x]}})})},cropAndResize:Xy}),Ud=function(t,n){return!(t>0)||"linear"===n},du=function(t,n,e){if(null==e||"linear"===e)return t;if("relu"===e)return t.mul(n.step());throw new Error("Gradient for activation "+e+" has not been implemented yet.")},Vd=function(t,n){var e=n,r=Aa(t.shape,n.shape);return r.length>0&&(e=e.sum(r)),e.reshape(t.shape)},Gd=function(t,n,e){if("linear"===n)return t;if("relu"===n)return ua(t);if("elu"===n)return e8(t);if("relu6"===n)return au(t);if("prelu"===n)return n8(t,e);throw new Error("Unknown fused activation "+n+".")},Zy=kt({fusedMatMul_:function(t){var n,e=t.a,r=t.b,i=t.transposeA,s=void 0!==i&&i,c=t.transposeB,l=void 0!==c&&c,u=t.bias,d=t.activation,p=void 0===d?"linear":d,M=t.preluActivationWeights;if(!1===Ud(Ye.state.gradientDepth,p)){var x=z0(e,r,s,l);return null!=u&&(x=Ro(x,u)),Gd(x,p,M)}var R=Qe(e,"a","fused matMul"),U=Qe(r,"b","fused matMul");n=ti(R,U),R=n[0],U=n[1];var J=s?R.shape[R.rank-2]:R.shape[R.rank-1],ne=l?U.shape[U.rank-1]:U.shape[U.rank-2],ue=s?R.shape[R.rank-1]:R.shape[R.rank-2],Ie=l?U.shape[U.rank-2]:U.shape[U.rank-1],Ae=R.shape.slice(0,-2),Oe=U.shape.slice(0,-2),Fe=rr(Ae),et=rr(Oe);at(R.rank>=2&&U.rank>=2&&R.rank===U.rank,function(){return"Error in fused matMul: inputs must have the same rank of at least 2, got ranks "+R.rank+" and "+U.rank+"."}),at(yi(Ae,Oe),function(){return"Error in fused matMul: outer dimensions ("+Ae+") and ("+Oe+") of Tensors with shapes "+R.shape+" and "+U.shape+" must match."}),at(J===ne,function(){return"Error in fused matMul: inner shapes ("+J+") and ("+ne+") of Tensors with shapes "+R.shape+" and "+U.shape+" and transposeA="+s+" and transposeB="+l+" must match."});var Ct,yt,pt=R.shape.slice(0,-2).concat([ue,Ie]),gt=s?R.as3D(Fe,J,ue):R.as3D(Fe,ue,J),Bt=l?U.as3D(et,Ie,ne):U.as3D(et,ne,Ie);null!=u&&zo(pt,(Ct=ti(Ct=Qe(u,"bias","fused matMul"),R)[0]).shape),null!=M&&(yt=Qe(M,"prelu weights","fused matMul"));var Ft={a:gt,b:Bt};return null!=u&&(Ft.bias=Ct),null!=M&&(Ft.preluActivationWeights=yt),Ye.runKernelFunc(function(pn,_n){var Dn=pn.fusedBatchMatMul({a:gt,b:Bt,transposeA:s,transposeB:l,bias:Ct,activation:p,preluActivationWeights:yt});return _n([gt,Bt,Dn]),Dn},Ft,function(pn,_n){var Dn=_n[0],En=_n[1],Nn=du(pn,_n[2],p),Rn={};return null!=u&&(Rn={bias:function(){return Vd(Ct,Nn)}}),Object.assign(s||l?!s&&l?{a:function(){return Nn.matMul(En,!1,!1)},b:function(){return Nn.matMul(Dn,!0,!1)}}:s&&!l?{a:function(){return En.matMul(Nn,!1,!0)},b:function(){return Dn.matMul(Nn,!1,!1)}}:{a:function(){return En.matMul(Nn,!0,!0)},b:function(){return Nn.matMul(Dn,!0,!0)}}:{a:function(){return Nn.matMul(En,!1,!0)},b:function(){return Dn.matMul(Nn,!0,!1)}},Rn)},"_FusedMatMul",{transposeA:s,transposeB:l,activation:p},[gt,Bt],[!0]).reshape(pt)}}),_8=kt({fusedConv2d_:function(t){var n=t.x,e=t.filter,r=t.strides,i=t.pad,s=t.dataFormat,c=void 0===s?"NHWC":s,l=t.dilations,u=void 0===l?[1,1]:l,d=t.dimRoundingMode,p=t.bias,M=t.activation,x=void 0===M?"linear":M,R=t.preluActivationWeights;if(!1===Ud(Ye.state.gradientDepth,x=x||"linear")){var U=Xc(n,e,r,i,c,u,d);return null!=p&&(U=Ro(U,p)),Gd(U,x,R)}var J=Qe(n,"x","conv2d"),ne=Qe(e,"filter","conv2d"),ue=J,Ie=!1;3===J.rank&&(Ie=!0,ue=J.as4D(1,J.shape[0],J.shape[1],J.shape[2])),at(4===ue.rank,function(){return"Error in fused conv2d: input must be rank 4, but got rank "+ue.rank+"."}),at(4===ne.rank,function(){return"Error in fused conv2d: filter must be rank 4, but got rank "+ne.rank+"."}),null!=d&&at(ai(i),function(){return"Error in fused conv2d: pad must be an integer when using, dimRoundingMode "+d+" but got pad "+i+"."}),at(ue.shape[3]===ne.shape[2],function(){return"Error in conv2d: depth of input ("+ue.shape[3]+") must match input depth for filter "+ne.shape[2]+"."}),at(qs(r,u),function(){return"Error in conv2D: Either strides or dilations must be 1. Got strides "+r+" and dilations '"+u+"'"}),at("NHWC"===c,function(){return"Error in conv2d: got dataFormat of "+c+" but only NHWC is currently supported."});var Ae,Oe,Fe=_2(ue.shape,ne.shape,r,u,i,d);null!=p&&(Ae=ti(Ae=Qe(p,"bias","fused conv2d"),J)[0],zo(Fe.outShape,Ae.shape)),null!=R&&(Oe=Qe(R,"prelu weights","fused conv2d"));var et={x:ue,filter:ne};null!=p&&(et.bias=Ae),null!=R&&(et.preluActivationWeights=Oe);var yt=Ye.runKernelFunc(function(pt,gt){var Bt=pt.fusedConv2d({input:ue,filter:ne,convInfo:Fe,bias:Ae,activation:x,preluActivationWeights:Oe});return gt([ne,ue,Bt]),Bt},et,function(pt,gt){var Ft=gt[0],yn=gt[1],_n=du(pt,gt[2],x);at(g2(u),function(){return"Error in gradient of fused conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '"+u+"'"});var Dn={};return null!=p&&(Dn={bias:function(){return Vd(Ae,_n)}}),Object.assign({x:function(){return zd(yn.shape,_n,Ft,r,i)},filter:function(){return Nd(yn,_n,Ft.shape,r,i)}},Dn)},"FusedConv2D",{convInfo:Fe,activation:x},[ne,ue],[!0]);return Ie?yt.as3D(yt.shape[1],yt.shape[2],yt.shape[3]):yt}}),Jy=kt({fusedDepthwiseConv2d_:function(t){var n=t.x,e=t.filter,r=t.strides,i=t.pad,s=t.dataFormat,c=void 0===s?"NHWC":s,l=t.dilations,u=void 0===l?[1,1]:l,d=t.dimRoundingMode,p=t.bias,M=t.activation,x=void 0===M?"linear":M,R=t.preluActivationWeights;if(!1===Ud(Ye.state.gradientDepth,x)){var U=iu(n,e,r,i,c,u,d);return null!=p&&(U=Ro(U,p)),Gd(U,x,R)}var J=Qe(n,"x","depthwiseConv2d"),ne=Qe(e,"filter","depthwiseConv2d"),ue=J,Ie=!1;3===J.rank&&(Ie=!0,ue=J.as4D(1,J.shape[0],J.shape[1],J.shape[2])),at(4===ue.rank,function(){return"Error in fused depthwiseConv2d: input must be rank 4, but got rank "+ue.rank+"."}),at(4===ne.rank,function(){return"Error in fused depthwiseConv2d: filter must be rank 4, but got rank "+ne.rank+"."}),at(ue.shape[3]===ne.shape[2],function(){return"Error in fused depthwiseConv2d: number of input channels ("+ue.shape[3]+") must match the inChannels dimension in filter "+ne.shape[2]+"."}),null==u&&(u=[1,1]),at(qs(r,u),function(){return"Error in fused depthwiseConv2d: Either strides or dilations must be 1. Got strides "+r+" and dilations '"+u+"'"}),null!=d&&at(ai(i),function(){return"Error in fused depthwiseConv2d: pad must be an integer when using dimRoundingMode "+d+" but got pad "+i+"."});var Ae,Oe,Fe=_2(ue.shape,ne.shape,r,u,i,d,!0);null!=p&&(Ae=ti(Ae=Qe(p,"bias","fused conv2d"),J)[0],zo(Fe.outShape,Ae.shape)),null!=R&&(Oe=Qe(R,"prelu weights","fused depthwiseConv2d"));var et={x:ue,filter:ne};null!=p&&(et.bias=Ae),null!=R&&(et.preluActivationWeights=Oe);var yt=Ye.runKernelFunc(function(pt,gt){var Bt=pt.fusedDepthwiseConv2D({input:ue,filter:ne,convInfo:Fe,bias:Ae,activation:x,preluActivationWeights:Oe});return gt([ne,ue,Bt]),Bt},et,function(pt,gt){at(g2(u),function(){return"Error in gradient of fused depthwiseConv2d: dilation rates greater than 1 are not yet supported. Got dilations '"+u+"'"});var Bt=gt[0],Ft=gt[1],pn=du(pt,gt[2],x),_n={};return null!=p&&(_n={bias:function(){return Vd(Ae,pn)}}),Object.assign({x:function(){return Vp(Ft.shape,pn,Bt,Fe)},filter:function(){return Gp(Ft,pn,Bt.shape,Fe)}},_n)},"FusedDepthwiseConv2D",{convInfo:Fe,activation:x},[ne,ue],[!0]);return Ie?yt.as3D(yt.shape[1],yt.shape[2],yt.shape[3]):yt}}),g8=Object.freeze({matMul:Zy,conv2d:_8,depthwiseConv2d:Jy}),Qy=Object.freeze({image:Wd,linalg:Wy,losses:f8,spectral:Dy,fused:g8,signal:Ay,square:uv,squaredDifference:_p,conv1d:ry,conv2d:Xc,conv3d:Up,depthwiseConv2d:iu,separableConv2d:Rd,conv2dTranspose:$p,conv3dTranspose:oy,op:kt,batchNormalization2d:xp,batchNormalization3d:Pv,batchNormalization4d:kp,batchNormalization:Ov,batchNorm:Dp,batchNorm2d:Iv,batchNorm3d:Pp,batchNorm4d:Av,booleanMaskAsync:function(t,n,e){return st(this,void 0,void 0,function(){var r,i,s,c,l,u,d,p,M,x,R,U,J;return Ln(this,function(ne){switch(ne.label){case 0:for(r=Qe(t,"tensor","boolMask"),i=Qe(n,"mask","boolMask","bool"),s=e??0,l=r.shape,at((c=i.rank)>0,function(){return"mask cannot be scalar"}),ho(l.slice(s,s+c),i.shape,"mask's shape must match the first K dimensions of tensor's shape,"),u=1,d=s;d<s+c;d++)u*=l[d];return p=l.slice(0,s).concat([u],l.slice(s+c)),M=r.reshape(p),x=i.reshape([-1]),[4,Od(x)];case 1:return R=ne.sent(),U=R.squeeze([1]),J=Ad(M,U,s),t!==r&&r.dispose(),n!==i&&i.dispose(),U.dispose(),M.dispose(),x.dispose(),R.dispose(),[2,J]}})})},complex:Oa,real:Fs,imag:Hs,concat:Ia,concat1d:j4,concat2d:Xh,concat3d:Zh,concat4d:Jh,split:N3,matMul:z0,dot:iy,outerProduct:ay,reverse:R0,reverse1d:Kp,reverse2d:sy,reverse3d:Yd,reverse4d:cy,maxPool:rs,avgPool:Y0,pool:ly,maxPool3d:uy,avgPool3d:dy,slice:d1,slice1d:fy,slice2d:hy,slice3d:Jp,slice4d:my,abs:dv,acos:gp,acosh:fv,asin:hv,asinh:vp,atan:mv,atanh:pv,ceil:yp,clipByValue:Ed,cos:Mp,cosh:_v,erf:gv,exp:xd,expm1:vv,floor:kd,log:yv,log1p:Mv,logSigmoid:Dd,neg:eu,reciprocal:Cv,round:bv,rsqrt:Cp,sigmoid:bp,sign:Lv,isNaN:Sv,isInf:Lp,isFinite:Tv,sin:Sp,sinh:wv,softplus:Ev,sqrt:Tp,step:xv,tan:kv,tanh:Dv,all:py,any:_y,argMax:gy,argMin:vy,logSumExp:yy,max:F0,mean:My,min:Cy,moments:Qp,sum:qp,prod:by,equal:zp,equalStrict:Kv,greater:Xv,greaterEqual:Id,greaterEqualStrict:Zv,greaterStrict:Rp,less:Jv,lessEqual:Qv,lessEqualStrict:Yp,lessStrict:qv,notEqual:ey,notEqualStrict:ty,add:Ro,addN:Ip,addStrict:zv,atan2:Rv,div:Kc,divNoNan:Yv,divStrict:Fv,floorDiv:Ap,maximum:A0,maximumStrict:Hv,minimum:Np,minimumStrict:Bv,mod:jv,modStrict:Wv,mul:Ds,mulStrict:Uv,pow:N0,powStrict:Vv,squaredDifferenceStrict:Gv,sub:ns,subStrict:$v,elu:e8,leakyRelu:t8,prelu:n8,relu:ua,relu6:au,selu:Ly,logicalAnd:ru,logicalNot:Pd,logicalOr:Op,logicalXor:Nv,where:X2,whereAsync:Od,buffer:zn,print:function no(t,n){void 0===n&&(n=!1),console.log(t.toString(n))},batchToSpaceND:jo,broadcastTo:Fr,cast:la,clone:bc,cumsum:$c,depthToSpace:m2,expandDims:Ms,eye:T0,multinomial:U4,oneHot:U2,pad:$1,pad1d:z3,pad2d:V4,pad3d:V2,pad4d:p2,rand:G4,randomNormal:Qh,randomGamma:jg,randomUniform:$4,reshape:l1,spaceToBatchND:qh,squeeze:em,stack:Lc,tile:Ll,truncatedNormal:Wg,unstack:ts,setdiff1dAsync:function(t,n){return st(this,void 0,void 0,function(){var e,r,i,s,c,l,u,d,p,M;return Ln(this,function(x){switch(x.label){case 0:return e=Qe(t,"x","setdiff1d"),r=Qe(n,"y","setdiff1d"),at(e.dtype===r.dtype,function(){return"x and y should have the same dtype, but got x ("+e.dtype+") and y ("+r.dtype+")."}),at(1===e.rank,function(){return"x should be 1D tensor, but got x ("+e.shape+")."}),at(1===r.rank,function(){return"y should be 1D tensor, but got y ("+r.shape+")."}),[4,e.data()];case 1:return i=x.sent(),[4,r.data()];case 2:for(s=x.sent(),c=new Set(s),l=0,p=0;p<i.length;p++)c.has(i[p])||l++;for(u=new _c([l],e.dtype),d=new _c([l],"int32"),p=0,M=0;p<i.length;p++)c.has(i[p])||(u.values[M]=i[p],d.values[M]=p,M++);return[2,[u.toTensor(),d.toTensor()]]}})})},fill:to,linspace:function es(t,n,e){if(e<=0)throw new Error("The number of values should be positive.");return Ye.runKernelFunc(function(r){return r.linspace(t,n,e)},{})},ones:qn,range:ks,scalar:wn,tensor:xi,tensor1d:C,tensor2d:B,tensor3d:ae,tensor4d:Se,tensor5d:function Ke(t,n,e){if(Ks(t),null!=n&&5!==n.length)throw new Error("tensor5d() requires shape to have five numbers");var r=qa(t,e);if(5!==r.length&&1!==r.length)throw new Error("tensor5d() requires values to be number[][][][][] or flat/TypedArray");if(1===r.length&&null==n)throw new Error("tensor5d() requires shape to be provided when `values` are a flat array");return Ga(t,n,r,e)},tensor6d:function Dt(t,n,e){if(Ks(t),null!=n&&6!==n.length)throw new Error("tensor6d() requires shape to have six numbers");var r=qa(t,e);if(6!==r.length&&1!==r.length)throw new Error("tensor6d() requires values to be number[][][][][][] or flat/TypedArray");if(1===r.length&&null==n)throw new Error("tensor6d() requires shape to be provided when `values` are a flat array");return Ga(t,n=n||r,r,e)},variable:function ln(t,n,e,r){return void 0===n&&(n=!0),Ye.makeVariable(t,n,e,r)},zeros:$n,onesLike:Cc,zerosLike:Zo,transpose:y2,softmax:K1,logSoftmax:Zg,localResponseNormalization:Sy,norm:r8,gather:Ad,unsortedSegmentSum:Bp,basicLSTMCell:Ty,multiRNNCell:wy,movingAverage:Ey,stridedSlice:o8,topk:xy,scatterND:ky,fft:su,ifft:cu,rfft:Hd,irfft:i8,sparseToDense:Py,gatherND:Oy,diag:Iy,dropout:a8,hannWindow:Bd,hammingWindow:c8,frame:lu,stft:l8,inTopKAsync:function(t,n,e){return void 0===e&&(e=1),st(this,void 0,void 0,function(){var r,i,s,c,l,u,d,p,M,x,R,U,J,ne;return Ln(this,function(ue){switch(ue.label){case 0:return r=Qe(t,"predictions","inTopK"),i=Qe(n,"targets","inTopK"),at(r.rank>1,function(){return"inTopK() expects the predictions to be of rank 2 or higher, but got "+r.rank}),at(r.rank-1===i.rank,function(){return"predictions rank should be 1 larger than targets rank, but got predictions rank "+r.rank+" and targets rank "+i.rank}),ho(r.shape.slice(0,r.shape.length-1),i.shape,"predictions's shape should be align with the targets' shape, except the last dimension."),s=r.shape[r.shape.length-1],at(e>0&&e<=s,function(){return"'k' passed to inTopK() must be > 0 && <= the predictions last dimension ("+s+"), but got "+e}),[4,r.data()];case 1:return c=ue.sent(),[4,i.data()];case 2:for(l=ue.sent(),p=(u=[c.length/s,s])[1],M=Ba("bool",d=u[0]),x=0;x<d;x++){for(U=c.subarray(R=x*p,R+p),J=[],ne=0;ne<U.length;ne++)J.push({value:U[ne],index:ne});for(J.sort(function(Ie,Ae){return Ae.value-Ie.value}),M[x]=0,ne=0;ne<e;ne++)if(J[ne].index===l[x]){M[x]=1;break}}return t!==r&&r.dispose(),n!==i&&i.dispose(),[2,xi(M,i.shape,"bool")]}})})}});function kn(t,n){Array.isArray(t)||(t=[t]),t.forEach(function(e){null!=e&&at("complex64"!==e.dtype,function(){return n+" does not support complex64 tensors."})})}function fu(t,n,e,r){if("linear"===e)return t.linear(n);if("relu"===e)return t.relu(n);if("elu"===e)return t.elu(n);if("relu6"===e)return t.relu6(n);if("prelu"===e)return t.prelu(n,r);throw new Error("Activation "+e+" has not been implemented for the CPU backend.")}var qy=function(t){function n(){var e=t.call(this)||this;return e.blockSize=48,e.firstUse=!0,e.data=new am(e,Ye),e}return dt(n,t),n.prototype.write=function(e,r,i){this.firstUse&&(this.firstUse=!1,X().get("IS_NODE")&&V1("\n============================\nHi there \u{1f44b}. Looks like you are running TensorFlow.js in Node.js. To speed things up dramatically, install our node backend, which binds to TensorFlow C++, by running npm i @tensorflow/tfjs-node, or npm i @tensorflow/tfjs-node-gpu if you have CUDA. Then call require('@tensorflow/tfjs-node'); (-gpu suffix for CUDA) at the start of your program. Visit https://github.com/tensorflow/tfjs-node for more details.\n============================"));var s={};return this.data.set(s,{values:e,dtype:i}),s},n.prototype.move=function(e,r,i,s){this.data.set(e,{values:r,dtype:s})},n.prototype.numDataIds=function(){return this.data.numDataIds()},n.prototype.read=function(e){return st(this,void 0,void 0,function(){return Ln(this,function(r){return[2,this.readSync(e)]})})},n.prototype.readSync=function(e){var r=this.data.get(e),s=r.complexTensors;return"complex64"===r.dtype?od(this.readSync(s.real.dataId),this.readSync(s.imag.dataId)):this.data.get(e).values},n.prototype.bufferSync=function(e){var r=this.readSync(e.dataId),i=r;if("string"===e.dtype)try{i=r.map(function(s){return o1(s)})}catch{throw new Error("Failed to decode encoded string bytes into utf-8")}return zn(e.shape,e.dtype,i)},n.prototype.makeOutput=function(e,r,i){var s=this.write(e,r,i);return Ye.makeTensorFromDataId(s,r,i,this)},n.prototype.disposeData=function(e){if(this.data.has(e)){var r=this.data.get(e).complexTensors;null!=r&&(r.real.dispose(),r.imag.dispose()),this.data.delete(e)}},n.prototype.time=function(e){return st(this,void 0,void 0,function(){var r;return Ln(this,function(i){return r=Wa(),e(),[2,{kernelMs:Wa()-r}]})})},n.prototype.memory=function(){return{unreliable:!0,reasons:["The reported memory is an upper bound. Due to automatic garbage collection, the true allocated memory may be less."]}},n.prototype.complex=function(e,r){var i=this.makeOutput(null,e.shape,"complex64");return this.data.get(i.dataId).complexTensors={real:Ye.keep(e.clone()),imag:Ye.keep(r.clone())},i},n.prototype.real=function(e){return this.data.get(e.dataId).complexTensors.real.clone()},n.prototype.imag=function(e){return this.data.get(e.dataId).complexTensors.imag.clone()},n.prototype.slice=function(e,r,i){if(kn(e,"slice"),q4(e.shape,r,i)){var s=ed(r,e.strides),c=rr(i);return xi(this.readSync(e.dataId).subarray(s,s+c),i,e.dtype)}for(var l=zn(i,e.dtype),u=this.bufferSync(e),d=0;d<l.size;++d){var p=l.indexToLoc(d).map(function(M,x){return M+r[x]});l.values[d]=u.get.apply(u,p)}return l.toTensor()},n.prototype.stridedSlice=function(e,r,i,s){kn(e,"stridedSlice");var c=H3(r,i,s);if(c.some(function(R){return 0===R}))return xi([],c);for(var l=zn(c,e.dtype),u=this.bufferSync(e),d=0;d<l.size;d++){for(var p=l.indexToLoc(d),M=new Array(p.length),x=0;x<M.length;x++)M[x]=p[x]*s[x]+r[x];l.set.apply(l,[u.get.apply(u,M)].concat(p))}return l.toTensor()},n.prototype.diag=function(e){for(var r=this.readSync(e.dataId),i=zn([e.size,e.size],e.dtype),s=i.values,c=0;c<r.length;c++)s[c*e.size+c]=r[c];return i.toTensor()},n.prototype.unstack=function(e,r){for(var i=e.shape[r],s=new Array(e.rank-1),c=0,l=0;l<e.rank;l++)l!==r&&(s[c++]=e.shape[l]);var u=new Array(e.rank).fill(0),d=e.shape.slice();d[r]=1;var p=new Array(i);for(l=0;l<p.length;l++)u[r]=l,p[l]=this.slice(e,u,d).reshape(s);return p},n.prototype.reverse=function(e,r){kn(e,"reverse");for(var i=zn(e.shape,e.dtype),s=this.bufferSync(e),c=function(u){var d=i.indexToLoc(u),p=d.slice();r.forEach(function(M){return p[M]=e.shape[M]-1-p[M]}),i.set.apply(i,[s.get.apply(s,p)].concat(d))},l=0;l<i.size;l++)c(l);return i.toTensor()},n.prototype.concat=function(e,r){var i=this;if("complex64"===e[0].dtype){var s=e.map(function(R){return Fs(R)}),c=e.map(function(R){return Hs(R)});return Oa(this.concat(s,r),this.concat(c,r))}var l=e.map(function(R){var U=rr(R.shape.slice(r));return R.as2D(-1,U)}),u=Gc(l.map(function(R){return R.shape}),1),d=zn(u,e[0].dtype).values;if(1===l[0].shape[0]){var p=0;l.forEach(function(R){d.set(i.readSync(R.dataId),p),p+=R.size})}else{var M=0;l.forEach(function(R){for(var U=i.readSync(R.dataId),J=0,ne=0;ne<R.shape[0];++ne)for(var ue=ne*u[1]+M,Ie=0;Ie<R.shape[1];++Ie)d[ue+Ie]=U[J++];M+=R.shape[1]})}var x=Gc(e.map(function(R){return R.shape}),r);return xi(d,x,e[0].dtype)},n.prototype.neg=function(e){return kn(e,"neg"),this.multiply(wn(-1),e)},n.prototype.add=function(e,r){return"complex64"===e.dtype||"complex64"===r.dtype?this.broadcastedBinaryComplexOp(e.cast("complex64"),r.cast("complex64"),function(i,s,c,l){return{real:i+c,imag:s+l}}):this.broadcastedBinaryOp(e,r,Oi(e.dtype,r.dtype),function(i,s){return i+s})},n.prototype.addN=function(e){var r=this;kn(e,"addN");for(var i=e.map(function(p){return r.readSync(p.dataId)}),s=zn(e[0].shape,e[0].dtype),c=s.values,l=0;l<e.length;l++)for(var u=i[l],d=0;d<c.length;d++)c[d]+=u[d];return s.toTensor()},n.prototype.softmax=function(e,r){var i=Ti([r],e.shape),s=this.max(e,i),c=Va(s.shape,i),l=this.subtract(e,s.reshape(c)),u=this.exp(l),d=this.sum(u,i).reshape(c);return this.realDivide(u,d)},n.prototype.subtract=function(e,r){return"complex64"===e.dtype||"complex64"===r.dtype?this.broadcastedBinaryComplexOp(e.cast("complex64"),r.cast("complex64"),function(i,s,c,l){return{real:i-c,imag:s-l}}):this.broadcastedBinaryOp(e,r,Oi(e.dtype,r.dtype),function(i,s){return i-s})},n.prototype.pow=function(e,r){return kn([e,r],"pow"),this.broadcastedBinaryOp(e,r,e.dtype,function(i,s){return Math.pow(i,s)})},n.prototype.batchMatMul=function(e,r,i,s){kn([e,r],"matMul");for(var c=i?e.shape[1]:e.shape[2],l=i?e.shape[2]:e.shape[1],u=s?r.shape[1]:r.shape[2],d=e.shape[0],p=this.readSync(e.dataId),M=this.readSync(r.dataId),x=i?[e.strides[0],1,e.strides[1]]:[e.strides[0],e.strides[1],1],R=x[0],U=x[1],J=x[2],ne=s?[1,r.strides[1],r.strides[0]]:[r.strides[1],1,r.strides[0]],ue=ne[0],Ie=ne[1],Ae=ne[2],Oe=l*u,Fe=zn([d,l,u],e.dtype),et=Fe.values,Ct=this.blockSize,yt=0;yt<d;yt++)for(var pt=0;pt<l;pt+=Ct)for(var gt=0;gt<u;gt+=Ct)for(var Bt=0;Bt<c;Bt+=Ct)for(var Ft=Math.min(pt+Ct,l),yn=Math.min(gt+Ct,u),pn=Math.min(Bt+Ct,c),_n=pt;_n<Ft;_n++)for(var Dn=gt;Dn<yn;Dn++){for(var En=0,bn=Bt;bn<pn;bn++)En+=p[yt*R+_n*U+bn*J]*M[bn*ue+Dn*Ie+yt*Ae];et[yt*Oe+(_n*u+Dn)]+=En}return Fe.toTensor()},n.prototype.fusedBatchMatMul=function(e){var l=e.bias,u=e.activation,d=e.preluActivationWeights,p=this.batchMatMul(e.a,e.b,e.transposeA,e.transposeB);return l&&(p=this.add(p,l)),u&&(p=fu(this,p,u,d)),p},n.prototype.multiply=function(e,r){return"complex64"===e.dtype||"complex64"===r.dtype?this.broadcastedBinaryComplexOp(e.cast("complex64"),r.cast("complex64"),function(i,s,c,l){return{real:i*c-s*l,imag:i*l+s*c}}):this.broadcastedBinaryOp(e,r,Oi(e.dtype,r.dtype),function(i,s){return i*s})},n.prototype.realDivide=function(e,r){return kn([e,r],"realDivide"),this.broadcastedBinaryOp(e,r,"float32",function(i,s){return i/s})},n.prototype.floorDiv=function(e,r){return kn([e,r],"floorDiv"),this.broadcastedBinaryOp(e,r,"int32",function(i,s){return Math.floor(i/s)})},n.prototype.sum=function(e,r){kn(e,"sum"),ys("sum",r,e.rank);for(var i=ta(e.shape,r),c=i[1],l=$n(i[0],Oi(e.dtype,"int32")),u=rr(c),d=this.readSync(l.dataId),p=this.readSync(e.dataId),M=0;M<d.length;++M){for(var x=M*u,R=0,U=0;U<u;++U)R+=p[x+U];d[M]=R}return l},n.prototype.prod=function(e,r){kn(e,"sum");for(var i=ta(e.shape,r),c=i[1],l=$n(i[0],Oi(e.dtype,"int32")),u=rr(c),d=this.readSync(l.dataId),p=this.readSync(e.dataId),M=0;M<d.length;++M){for(var x=M*u,R=1,U=0;U<u;++U)R*=p[x+U];d[M]=R}return l},n.prototype.unsortedSegmentSum=function(e,r,i){kn(e,"unsortedSegmentSum");for(var s=[],c=e.rank-r.rank,l=0;l<c;++l)r=r.expandDims(l+1);for(l=0;l<i;++l){var u=wn(l,"int32"),d=zp(u,r).asType("float32").mul(e).sum(0);s.push(d)}return Lc(s)},n.prototype.argMin=function(e,r){kn(e,"argMin");var i=[r];ys("argMin",i,e.rank);for(var s=ta(e.shape,i),l=s[1],u=$n(s[0],"int32"),d=rr(l),p=this.readSync(u.dataId),M=this.readSync(e.dataId),x=0;x<p.length;++x){for(var R=x*d,U=M[R],J=0,ne=0;ne<d;++ne){var ue=M[R+ne];ue<U&&(U=ue,J=ne)}p[x]=J}return u},n.prototype.argMax=function(e,r){kn(e,"argMax");var i=[r];ys("argMax",i,e.rank);for(var s=ta(e.shape,i),l=s[1],u=$n(s[0],"int32"),d=rr(l),p=this.readSync(u.dataId),M=this.readSync(e.dataId),x=0;x<p.length;++x){for(var R=x*d,U=M[R],J=0,ne=0;ne<d;++ne){var ue=M[R+ne];ue>U&&(U=ue,J=ne)}p[x]=J}return u},n.prototype.cumsum=function(e,r,i,s){if(kn(e,"cumsum"),r!==e.rank-1)throw new Error("backend.cumsum in CPU expects an inner-most axis="+(e.rank-1)+" but got axis="+r);for(var c=Oi(e.dtype,"int32"),l=$n(e.shape,c),u=this.readSync(l.dataId),d=this.readSync(e.dataId),p=e.shape[e.rank-1],M=s?function(ne,ue){return ne+p-ue-1}:function(ne,ue){return ne+ue},x=0;x<d.length;x+=p)for(var R=0;R<p;R++){var U=M(x,R);if(0===R)u[U]=i?0:d[U];else{var J=M(x,R-1);u[U]=i?d[J]+u[J]:d[U]+u[J]}}return l},n.prototype.equal=function(e,r){return kn([e,r],"equal"),this.broadcastedBinaryOp(e,r,"bool",function(i,s){return i===s?1:0})},n.prototype.notEqual=function(e,r){return kn([e,r],"notEqual"),this.broadcastedBinaryOp(e,r,"bool",function(i,s){return i!==s?1:0})},n.prototype.less=function(e,r){return kn([e,r],"less"),this.broadcastedBinaryOp(e,r,"bool",function(i,s){return i<s?1:0})},n.prototype.lessEqual=function(e,r){return kn([e,r],"lessEqual"),this.broadcastedBinaryOp(e,r,"bool",function(i,s){return i<=s?1:0})},n.prototype.greater=function(e,r){return kn([e,r],"greater"),this.broadcastedBinaryOp(e,r,"bool",function(i,s){return i>s?1:0})},n.prototype.greaterEqual=function(e,r){return kn([e,r],"greaterEqual"),this.broadcastedBinaryOp(e,r,"bool",function(i,s){return i>=s?1:0})},n.prototype.logicalNot=function(e){kn(e,"logicalNot");for(var r=this.readSync(e.dataId),i=new Uint8Array(r.length),s=0;s<r.length;++s)i[s]=r[s]?0:1;return this.makeOutput(i,e.shape,"bool")},n.prototype.logicalAnd=function(e,r){return kn([e,r],"logicalAnd"),this.broadcastedBinaryOp(e,r,"bool",function(i,s){return i&&s})},n.prototype.logicalOr=function(e,r){return kn([e,r],"logicalOr"),this.broadcastedBinaryOp(e,r,"bool",function(i,s){return i||s})},n.prototype.select=function(e,r,i){kn([e,r,i],"select");for(var s=this.readSync(e.dataId),c=this.readSync(r.dataId),l=this.readSync(i.dataId),u=$n(r.shape,Oi(r.dtype,i.dtype)),d=this.readSync(u.dataId),p=0,M=0===e.rank||e.rank>1||1===r.rank?1:rr(r.shape.slice(1)),x=0;x<s.length;x++)for(var R=0;R<M;R++)d[p++]=1===s[x]?c[x]:l[x];return u},n.prototype.where=function(e){kn([e],"where");var r=this.readSync(e.dataId);return sd(e.shape,r)},n.prototype.topk=function(e,r,i){return kn(e,"topk"),fm(this.readSync(e.dataId),e.shape,e.dtype,r)},n.prototype.min=function(e,r){kn(e,"min"),ys("min",r,e.rank);for(var i=ta(e.shape,r),c=i[1],l=$n(i[0],e.dtype),u=rr(c),d=this.readSync(l.dataId),p=this.readSync(e.dataId),M=0;M<d.length;++M){for(var x=M*u,R=p[x],U=0;U<u;++U){var J=p[x+U];J<R&&(R=J)}d[M]=R}return l},n.prototype.minimum=function(e,r){return kn([e,r],"minimum"),this.broadcastedBinaryOp(e,r,e.dtype,function(i,s){return Math.min(i,s)})},n.prototype.mod=function(e,r){return kn([e,r],"mod"),this.broadcastedBinaryOp(e,r,e.dtype,function(i,s){var c=i%s;return i<0&&s<0||i>=0&&s>=0?c:(c+s)%s})},n.prototype.max=function(e,r){kn(e,"max"),ys("max",r,e.rank);for(var i=ta(e.shape,r),c=i[1],l=$n(i[0],e.dtype),u=rr(c),d=this.readSync(l.dataId),p=this.readSync(e.dataId),M=0;M<d.length;++M){for(var x=M*u,R=p[x],U=0;U<u;++U){var J=p[x+U];J>R&&(R=J)}d[M]=R}return l},n.prototype.maximum=function(e,r){return kn([e,r],"maximum"),this.broadcastedBinaryOp(e,r,e.dtype,function(i,s){return Math.max(i,s)})},n.prototype.all=function(e,r){kn(e,"all"),ys("all",r,e.rank);for(var i=ta(e.shape,r),c=i[1],l=$n(i[0],e.dtype),u=rr(c),d=this.readSync(l.dataId),p=this.readSync(e.dataId),M=0;M<d.length;++M){for(var x=M*u,R=p[x],U=0;U<u;++U)R=R&&p[x+U];d[M]=R}return l},n.prototype.any=function(e,r){kn(e,"any"),ys("any",r,e.rank);for(var i=ta(e.shape,r),c=i[1],l=$n(i[0],e.dtype),u=rr(c),d=this.readSync(l.dataId),p=this.readSync(e.dataId),M=0;M<d.length;++M){for(var x=M*u,R=p[x],U=0;U<u;++U)R=R||p[x+U];d[M]=R}return l},n.prototype.squaredDifference=function(e,r){return kn([e,r],"squaredDifference"),this.broadcastedBinaryOp(e,r,e.dtype,function(i,s){var c=i-s;return c*c})},n.prototype.ceil=function(e){kn(e,"ceil");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=Math.ceil(r[s]);return this.makeOutput(i,e.shape,"float32")},n.prototype.floor=function(e){kn(e,"floor");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=Math.floor(r[s]);return this.makeOutput(i,e.shape,"float32")},n.prototype.sign=function(e){kn(e,"x");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=r[s]<0?-1:r[s]>0?1:0;return this.makeOutput(i,e.shape,"float32")},n.prototype.isNaN=function(e){kn(e,"x");for(var r=this.readSync(e.dataId),i=new Uint8Array(r.length),s=0;s<r.length;++s)Number.isNaN(r[s])&&(i[s]=1);return this.makeOutput(i,e.shape,"bool")},n.prototype.isInf=function(e){kn(e,"x");for(var r=this.readSync(e.dataId),i=new Uint8Array(r.length),s=0;s<r.length;++s)Math.abs(r[s])===1/0&&(i[s]=1);return this.makeOutput(i,e.shape,"bool")},n.prototype.isFinite=function(e){kn(e,"x");for(var r=this.readSync(e.dataId),i=new Uint8Array(r.length),s=0;s<r.length;++s)Number.isFinite(r[s])&&(i[s]=1);return this.makeOutput(i,e.shape,"bool")},n.prototype.round=function(e){kn(e,"round");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s){var c=Math.floor(r[s]);i[s]=r[s]-c<.5?Math.floor(r[s]):r[s]-c>.5?Math.ceil(r[s]):c%2==0?c:c+1}return this.makeOutput(i,e.shape,"float32")},n.prototype.exp=function(e){kn(e,"exp");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=Math.exp(r[s]);return this.makeOutput(i,e.shape,"float32")},n.prototype.expm1=function(e){kn(e,"expm1");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=Math.expm1(r[s]);return this.makeOutput(i,e.shape,"float32")},n.prototype.log=function(e){kn(e,"log");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=Math.log(r[s]);return this.makeOutput(i,e.shape,"float32")},n.prototype.log1p=function(e){kn(e,"log1p");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=Math.log1p(r[s]);return this.makeOutput(i,e.shape,"float32")},n.prototype.sqrt=function(e){kn(e,"sqrt");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=Math.sqrt(r[s]);return this.makeOutput(i,e.shape,"float32")},n.prototype.rsqrt=function(e){kn(e,"rsqrt");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=1/Math.sqrt(r[s]);return this.makeOutput(i,e.shape,"float32")},n.prototype.reciprocal=function(e){kn(e,"reciprocal");for(var r=this.readSync(e.dataId),i=new Float32Array(r.length),s=0;s<r.length;++s)i[s]=1/r[s];return this.makeOutput(i,e.shape,"float32")},n.prototype.linear=function(e){return e},n.prototype.relu=function(e){kn(e,"relu");for(var r=$n(e.shape,e.dtype),i=this.readSync(r.dataId),s=this.readSync(e.dataId),c=0;c<s.length;++c)i[c]=Math.max(0,s[c]);return r},n.prototype.relu6=function(e){kn(e,"relu");for(var r=$n(e.shape,e.dtype),i=this.readSync(r.dataId),s=this.readSync(e.dataId),c=0;c<s.length;++c)i[c]=Math.min(Math.max(0,s[c]),6);return r},n.prototype.prelu=function(e,r){return kn([e,r],"prelu"),this.broadcastedBinaryOp(e,r,e.dtype,function(i,s){return i<0?s*i:i})},n.prototype.elu=function(e){kn(e,"elu");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s){var c=i[s];r[s]=c>=0?c:Math.exp(c)-1}return this.makeOutput(r,e.shape,"float32")},n.prototype.eluDer=function(e,r){kn([e,r],"eluDer");for(var i=new Float32Array(r.size),s=this.readSync(r.dataId),c=this.readSync(e.dataId),l=0;l<s.length;++l){var u=s[l];i[l]=u>=1?c[l]:c[l]*(u+1)}return this.makeOutput(i,r.shape,"float32")},n.prototype.selu=function(e){kn(e,"selu");for(var s=new Float32Array(e.size),c=this.readSync(e.dataId),l=0;l<c.length;++l){var u=c[l];s[l]=u>=0?1.0507009873554805*u:1.7580993408473768*(Math.exp(u)-1)}return this.makeOutput(s,e.shape,"float32")},n.prototype.clip=function(e,r,i){kn(e,"clip");for(var s=new Float32Array(e.size),c=this.readSync(e.dataId),l=0;l<c.length;++l){var u=c[l];s[l]=u>i?i:u<r?r:u}return this.makeOutput(s,e.shape,"float32")},n.prototype.abs=function(e){for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.abs(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.complexAbs=function(e){for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<e.size;++s)r[s]=Math.hypot(i[2*s],i[2*s+1]);return this.makeOutput(r,e.shape,"float32")},n.prototype.int=function(e){kn(e,"int");for(var r=new Int32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=i[s];return this.makeOutput(r,e.shape,"int32")},n.prototype.sigmoid=function(e){kn(e,"sigmoid");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=1/(1+Math.exp(-i[s]));return this.makeOutput(r,e.shape,"float32")},n.prototype.softplus=function(e){kn(e,"softplus");for(var r=Math.log(1.1920928955078125e-7)+2,i=new Float32Array(e.size),s=this.readSync(e.dataId),c=0;c<s.length;++c){var p,l=s[c]>-r,u=s[c]<r,d=Math.exp(s[c]);p=u?d:l?s[c]:Math.log(1+d),i[c]=p}return this.makeOutput(i,e.shape,"float32")},n.prototype.sin=function(e){kn(e,"sin");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.sin(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.cos=function(e){kn(e,"cos");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.cos(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.tan=function(e){kn(e,"tan");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.tan(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.asin=function(e){kn(e,"asin");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.asin(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.acos=function(e){kn(e,"acos");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.acos(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.atan=function(e){kn(e,"atan");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.atan(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.atan2=function(e,r){return kn([e,r],"atan2"),this.broadcastedBinaryOp(e,r,e.dtype,function(i,s){return Math.atan2(i,s)})},n.prototype.sinh=function(e){kn(e,"sinh");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.sinh(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.cosh=function(e){kn(e,"cosh");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.cosh(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.tanh=function(e){kn(e,"tanh");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=t1(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.asinh=function(e){kn(e,"asinh");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.asinh(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.acosh=function(e){kn(e,"acosh");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.acosh(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.atanh=function(e){kn(e,"atanh");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s)r[s]=Math.atanh(i[s]);return this.makeOutput(r,e.shape,"float32")},n.prototype.erf=function(e){kn(e,"erf");for(var r=new Float32Array(e.size),i=this.readSync(e.dataId),s=0;s<i.length;++s){var c=Math.sign(i[s]),l=Math.abs(i[s]),u=1/(1+.3275911*l);r[s]=c*(1-((((1.061405429*u-1.453152027)*u+1.421413741)*u-.284496736)*u+.254829592)*u*Math.exp(-l*l))}return this.makeOutput(r,e.shape,"float32")},n.prototype.step=function(e,r){void 0===r&&(r=0),kn(e,"step");for(var i=new Float32Array(e.size),s=this.readSync(e.dataId),c=0;c<s.length;++c){var l=s[c];i[c]=isNaN(l)?NaN:l>0?1:r}return this.makeOutput(i,e.shape,"float32")},n.prototype.fusedConv2d=function(e){var c=e.bias,l=e.activation,u=e.preluActivationWeights,d=this.conv2d(e.input,e.filter,e.convInfo);return c&&(d=this.add(d,c)),l&&(d=fu(this,d,l,u)),d},n.prototype.conv2d=function(e,r,i){kn([e,r],"conv2d");for(var s=i.filterHeight,c=i.filterWidth,l=i.dilationHeight,u=i.dilationWidth,d=i.padInfo.left,p=i.padInfo.top,M="channelsLast"===i.dataFormat,x=zn(i.outShape,e.dtype),R=e.strides[0],U=M?e.strides[1]:e.strides[2],J=M?e.strides[2]:1,ne=M?1:e.strides[1],ue=x.strides[0],Ie=M?x.strides[1]:x.strides[2],Ae=M?x.strides[2]:1,Oe=M?1:x.strides[1],Fe=this.readSync(e.dataId),et=this.readSync(r.dataId),Ct=x.values,yt=0;yt<i.batchSize;++yt)for(var pt=yt*R,gt=yt*ue,Bt=0;Bt<i.outHeight;++Bt)for(var Ft=gt+Bt*Ie,yn=Bt*i.strideHeight-p,pn=0;pn<s;pn++){var _n=yn+pn*l;if(!(_n<0||_n>=i.inHeight))for(var Dn=pn*r.strides[0],En=pt+_n*U,bn=0;bn<i.outWidth;++bn)for(var Nn=Ft+bn*Ae,Rn=bn*i.strideWidth-d,ur=0;ur<c;ur++){var Tr=Rn+ur*u;if(!(Tr<0||Tr>=i.inWidth))for(var Br=En+Tr*J,Oo=Dn+ur*r.strides[1],Do=0;Do<i.inChannels;++Do){for(var Wo=Fe[Br+Do*ne],ri=0;ri<i.outChannels;++ri)Ct[Nn+ri*Oe]+=Wo*et[Oo+ri];Oo+=i.outChannels}}}return x.toTensor()},n.prototype.conv3d=function(e,r,i){for(var s=i.filterDepth,c=i.filterHeight,l=i.filterWidth,u=i.dilationDepth,d=i.dilationHeight,p=i.dilationWidth,M=i.padInfo.front,x=i.padInfo.left,R=i.padInfo.top,U=zn(i.outShape,e.dtype),J=this.readSync(e.dataId),ne=this.readSync(r.dataId),ue=U.values,Ie=0;Ie<i.batchSize;++Ie)for(var Ae=Ie*e.strides[0],Oe=Ie*U.strides[0],Fe=0;Fe<i.outDepth;++Fe)for(var et=Oe+Fe*U.strides[1],Ct=Fe*i.strideDepth-M,yt=0;yt<s;yt++){var pt=Ct+yt*u;if(!(pt<0||pt>=i.inDepth))for(var gt=yt*r.strides[0],Bt=Ae+pt*e.strides[1],Ft=0;Ft<i.outHeight;++Ft)for(var yn=et+Ft*U.strides[2],pn=Ft*i.strideHeight-R,_n=0;_n<c;_n++){var Dn=pn+_n*d;if(!(Dn<0||Dn>=i.inHeight))for(var En=gt+_n*r.strides[1],bn=Bt+Dn*e.strides[2],Nn=0;Nn<i.outWidth;++Nn)for(var Rn=yn+Nn*i.outChannels,ur=Nn*i.strideWidth-x,Tr=0;Tr<l;Tr++){var Br=ur+Tr*p;if(!(Br<0||Br>=i.inWidth))for(var Do=bn+Br*i.inChannels,Wo=En+Tr*r.strides[2],ri=0;ri<i.inChannels;++ri){for(var Uo=J[Do+ri],oi=0;oi<i.outChannels;++oi)ue[Rn+oi]+=Uo*ne[Wo+oi];Wo+=i.outChannels}}}}return U.toTensor()},n.prototype.conv2dDerInput=function(e,r,i){kn([e,r],"conv2dDerInput");for(var s=zn(i.inShape,"float32"),c=s.values,l=this.readSync(e.dataId),u=this.readSync(r.dataId),d=r.strides,p=d[0],M=d[1],x=d[2],R=i.batchSize,U=i.filterHeight,J=i.filterWidth,ne=i.inChannels,ue=i.inHeight,Ie=i.inWidth,Ae=i.outChannels,Oe=i.outHeight,Fe=i.outWidth,et=i.strideHeight,Ct=i.strideWidth,pt=U-1-i.padInfo.top,gt=J-1-i.padInfo.left,Bt="channelsLast"===i.dataFormat,Ft=s.strides[0],yn=Bt?s.strides[1]:s.strides[2],pn=Bt?s.strides[2]:1,_n=Bt?1:s.strides[1],Dn=e.strides[0],En=Bt?e.strides[1]:e.strides[2],bn=Bt?e.strides[2]:1,Nn=Bt?1:e.strides[1],Rn=0;Rn<R;++Rn)for(var ur=0;ur<ne;++ur)for(var Tr=0;Tr<ue;++Tr)for(var Br=Tr-pt,Oo=Math.max(0,Math.ceil(Br/et)),Do=Math.min(Oe,(U+Br)/et),Wo=0;Wo<Ie;++Wo){for(var ri=Wo-gt,Uo=Math.max(0,Math.ceil(ri/Ct)),oi=Math.min(Fe,(J+ri)/Ct),Ya=0,Qo=Oo;Qo<Do;++Qo)for(var zi=Qo*et-Br,fi=Uo;fi<oi;++fi)for(var wa=Dn*Rn+En*Qo+bn*fi,ia=p*(U-1-zi)+M*(J-1-(fi*Ct-ri))+x*ur,pa=0;pa<Ae;++pa)Ya+=l[wa+Nn*pa]*u[ia+pa];c[Ft*Rn+yn*Tr+pn*Wo+_n*ur]=Ya}return s.toTensor()},n.prototype.conv3dDerInput=function(e,r,i){for(var s=zn(i.inShape,"float32"),c=s.values,l=s.strides,u=l[0],d=l[1],p=l[2],M=l[3],x=this.readSync(e.dataId),R=e.strides,U=R[0],J=R[1],ne=R[2],ue=R[3],Ie=this.readSync(r.dataId),Ae=r.strides,Oe=Ae[0],Fe=Ae[1],et=Ae[2],Ct=Ae[3],yt=i.batchSize,pt=i.filterDepth,gt=i.filterHeight,Bt=i.filterWidth,Ft=i.inChannels,yn=i.inDepth,pn=i.inHeight,_n=i.inWidth,Dn=i.outChannels,En=i.outDepth,bn=i.outHeight,Nn=i.outWidth,Rn=i.strideDepth,ur=i.strideHeight,Tr=i.strideWidth,Br=pt-1-i.padInfo.front,Oo=gt-1-i.padInfo.top,Do=Bt-1-i.padInfo.left,Wo=0;Wo<yt;++Wo)for(var ri=0;ri<Ft;++ri)for(var Uo=0;Uo<yn;++Uo)for(var oi=Uo-Br,Ya=Math.max(0,Math.ceil(oi/Rn)),Qo=Math.min(En,(pt+oi)/Rn),zi=0;zi<pn;++zi)for(var fi=zi-Oo,wa=Math.max(0,Math.ceil(fi/ur)),ia=Math.min(bn,(gt+fi)/ur),pa=0;pa<_n;++pa){for(var v1=pa-Do,F1=Math.max(0,Math.ceil(v1/Tr)),Fc=Math.min(Nn,(Bt+v1)/Tr),y0=0,H1=Ya;H1<Qo;++H1)for(var F2=H1*Rn-oi,d2=wa;d2<ia;++d2)for(var M0=d2*ur-fi,B1=F1;B1<Fc;++B1)for(var Uh=U*Wo+J*H1+ne*d2+ue*B1,C0=Oe*(pt-1-F2)+Fe*(gt-1-M0)+et*(Bt-1-(B1*Tr-v1))+Ct*ri,j1=0;j1<Dn;++j1)y0+=x[Uh+j1]*Ie[C0+j1];c[u*Wo+d*Uo+p*zi+M*pa+ri]=y0}return s.toTensor()},n.prototype.conv2dDerFilter=function(e,r,i){kn([e,r],"conv2dDerFilter");for(var s=i.strideHeight,c=i.strideWidth,l=i.filterHeight,u=i.filterWidth,d="channelsLast"===i.dataFormat,p=zn(i.filterShape,"float32"),M=i.padInfo.left,x=i.padInfo.top,R=this.bufferSync(e),U=this.bufferSync(r),J=0;J<l;++J)for(var ne=Math.max(0,Math.ceil((x-J)/s)),ue=Math.min(i.outHeight,(i.inHeight+x-J)/s),Ie=0;Ie<u;++Ie)for(var Ae=Math.max(0,Math.ceil((M-Ie)/c)),Oe=Math.min(i.outWidth,(i.inWidth+M-Ie)/c),Fe=0;Fe<i.inChannels;++Fe)for(var et=0;et<i.outChannels;++et){for(var Ct=0,yt=0;yt<i.batchSize;++yt)for(var pt=ne;pt<ue;++pt)for(var gt=J+pt*s-x,Bt=Ae;Bt<Oe;++Bt){var Ft=Ie+Bt*c-M;Ct+=d?R.get(yt,gt,Ft,Fe)*U.get(yt,pt,Bt,et):R.get(yt,Fe,gt,Ft)*U.get(yt,et,pt,Bt)}p.set(Ct,J,Ie,Fe,et)}return p.toTensor()},n.prototype.conv3dDerFilter=function(e,r,i){for(var s=i.strideDepth,c=i.strideHeight,l=i.strideWidth,u=i.filterDepth,d=i.filterHeight,p=i.filterWidth,M=zn(i.filterShape,"float32"),x=M.values,R=M.strides,U=R[0],J=R[1],ne=R[2],ue=R[3],Ie=this.readSync(r.dataId),Ae=r.strides,Oe=Ae[0],Fe=Ae[1],et=Ae[2],Ct=Ae[3],yt=this.readSync(e.dataId),pt=e.strides,gt=pt[0],Bt=pt[1],Ft=pt[2],yn=pt[3],pn=i.padInfo.front,_n=i.padInfo.left,Dn=i.padInfo.top,En=0;En<u;++En)for(var bn=Math.max(0,Math.ceil((pn-En)/s)),Nn=Math.min(i.outDepth,(i.inDepth+pn-En)/s),Rn=En*U,ur=0;ur<d;++ur)for(var Tr=Math.max(0,Math.ceil((Dn-ur)/c)),Br=Math.min(i.outHeight,(i.inHeight+Dn-ur)/c),Oo=ur*J+Rn,Do=0;Do<p;++Do)for(var Wo=Math.max(0,Math.ceil((_n-Do)/l)),ri=Math.min(i.outWidth,(i.inWidth+_n-Do)/l),Uo=Do*ne+Oo,oi=0;oi<i.inChannels;++oi)for(var Ya=oi*ue+Uo,Qo=0;Qo<i.outChannels;++Qo){for(var zi=0,fi=0;fi<i.batchSize;++fi)for(var wa=fi*gt,ia=fi*Oe,pa=bn;pa<Nn;++pa)for(var v1=(En+pa*s-pn)*Bt+wa,F1=pa*Fe+ia,Fc=Tr;Fc<Br;++Fc)for(var y0=(ur+Fc*c-Dn)*Ft+v1,H1=Fc*et+F1,F2=Wo;F2<ri;++F2)zi+=yt[(Do+F2*l-_n)*yn+y0+oi]*Ie[F2*Ct+H1+Qo];x[Ya+Qo]=zi}return M.toTensor()},n.prototype.fusedDepthwiseConv2D=function(e){var c=e.bias,l=e.activation,u=e.preluActivationWeights,d=this.depthwiseConv2D(e.input,e.filter,e.convInfo);return c&&(d=this.add(d,c)),l&&(d=fu(this,d,l,u)),d},n.prototype.depthwiseConv2D=function(e,r,i){kn([e,r],"depthwiseConv2D");for(var s=i.filterHeight,c=i.filterWidth,l=i.dilationHeight,u=i.dilationWidth,d=i.padInfo.left,p=i.padInfo.top,M=i.outChannels/i.inChannels,x=zn(i.outShape,e.dtype),R=this.readSync(e.dataId),U=this.readSync(r.dataId),J=x.values,ne=0;ne<i.batchSize;++ne)for(var ue=ne*e.strides[0],Ie=ne*x.strides[0],Ae=0;Ae<i.outHeight;++Ae)for(var Oe=Ie+Ae*x.strides[1],Fe=Ae*i.strideHeight-d,et=0;et<s;++et){var Ct=Fe+et*l;if(!(Ct<0||Ct>=i.inHeight))for(var yt=et*r.strides[0],pt=ue+Ct*e.strides[1],gt=0;gt<i.outWidth;++gt)for(var Bt=Oe+gt*x.strides[2],Ft=gt*i.strideWidth-p,yn=0;yn<c;++yn){var pn=Ft+yn*u;if(!(pn<0||pn>=i.inWidth))for(var Dn=pt+pn*i.inChannels,En=Bt,bn=yt+yn*r.strides[1],Nn=0;Nn<i.inChannels;++Nn){for(var Rn=R[Dn+Nn],ur=0;ur<M;++ur)J[En+ur]+=Rn*U[bn+ur];En+=M,bn+=M}}}return x.toTensor()},n.prototype.depthwiseConv2DDerInput=function(e,r,i){kn([e,r],"depthwiseConv2DDerInput");for(var s=zn(i.inShape,"float32"),c=s.values,l=s.strides,u=l[0],d=l[1],p=l[2],M=this.readSync(e.dataId),x=e.strides,R=x[0],U=x[1],J=x[2],ne=this.readSync(r.dataId),ue=r.strides,Ie=ue[0],Ae=ue[1],Oe=ue[2],Fe=i.batchSize,et=i.filterHeight,Ct=i.filterWidth,yt=i.inChannels,pt=i.inHeight,gt=i.inWidth,Ft=i.outHeight,yn=i.outWidth,pn=i.strideHeight,_n=i.strideWidth,Dn=et-1-i.padInfo.top,En=Ct-1-i.padInfo.left,bn=i.outChannels/yt,Nn=0;Nn<Fe;++Nn)for(var Rn=0;Rn<yt;++Rn)for(var ur=0;ur<pt;++ur)for(var Tr=ur-Dn,Br=Math.max(0,Math.ceil(Tr/pn)),Oo=Math.min(Ft,(et+Tr)/pn),Do=0;Do<gt;++Do){for(var Wo=Do-En,ri=Math.max(0,Math.ceil(Wo/_n)),Uo=Math.min(yn,(Ct+Wo)/_n),oi=0,Ya=Br;Ya<Oo;++Ya)for(var Qo=Ya*pn-Tr,zi=ri;zi<Uo;++zi)for(var fi=R*Nn+U*Ya+J*zi,wa=Ie*(et-1-Qo)+Ae*(Ct-1-(zi*_n-Wo))+Oe*Rn,ia=0;ia<bn;++ia)oi+=M[fi+(Rn*bn+ia)]*ne[wa+ia];c[u*Nn+d*ur+p*Do+Rn]=oi}return s.toTensor()},n.prototype.depthwiseConv2DDerFilter=function(e,r,i){kn([e,r],"depthwiseConv2DDerFilter");for(var s=i.strideHeight,c=i.strideWidth,l=i.filterHeight,u=i.filterWidth,d=zn(i.filterShape,"float32"),p=i.padInfo.left,M=i.padInfo.top,x=i.outChannels/i.inChannels,R=this.bufferSync(e),U=this.bufferSync(r),J=0;J<l;++J)for(var ne=Math.max(0,Math.ceil((M-J)/s)),ue=Math.min(i.outHeight,(i.inHeight+M-J)/s),Ie=0;Ie<u;++Ie)for(var Ae=Math.max(0,Math.ceil((p-Ie)/c)),Oe=Math.min(i.outWidth,(i.inWidth+p-Ie)/c),Fe=0;Fe<i.outChannels;++Fe){for(var et=Math.trunc(Fe/x),Ct=Fe%x,yt=0,pt=0;pt<i.batchSize;++pt)for(var gt=ne;gt<ue;++gt)for(var Bt=J+gt*s-M,Ft=Ae;Ft<Oe;++Ft)yt+=R.get(pt,Bt,Ie+Ft*c-p,et)*U.get(pt,gt,Ft,Fe);d.set(yt,J,Ie,et,Ct)}return d.toTensor()},n.prototype.tile=function(e,r){return kn(e,"tile"),dm(this.bufferSync(e),r)},n.prototype.pad=function(e,r,i){kn(e,"pad");var s=r.map(function(x,R){return x[0]+e.shape[R]+x[1]}),c=r.map(function(x){return x[0]}),l=this.bufferSync(e),u=zn(s,e.dtype);0!==i&&u.values.fill(i);for(var d=0;d<e.size;d++){var p=l.indexToLoc(d),M=p.map(function(x,R){return x+c[R]});u.set.apply(u,[l.get.apply(l,p)].concat(M))}return u.toTensor()},n.prototype.transpose=function(e,r){kn(e,"transpose");for(var i=new Array(e.rank),s=0;s<i.length;s++)i[s]=e.shape[r[s]];var c=this.readSync(e.dataId),l=zn(i,e.dtype),u=this.bufferSync(e);for(s=0;s<e.size;++s){for(var d=u.indexToLoc(s),p=new Array(d.length),M=0;M<p.length;M++)p[M]=d[r[M]];var x=l.locToIndex(p);l.values[x]=c[s]}return l.toTensor()},n.prototype.gather=function(e,r,i){kn([e,r],"gather");var s=e.shape.slice(),c=this.readSync(r.dataId);s[i]=c.length;for(var l=zn(s,e.dtype),u=this.bufferSync(e),d=0;d<l.size;++d){var p=l.indexToLoc(d),M=p.slice();M[i]=c[p[i]];var x=u.locToIndex(M);l.values[d]=u.values[x]}return l.toTensor()},n.prototype.batchToSpaceND=function(e,r,i){kn([e],"batchToSpaceND");var s=r.reduce(function(M,x){return M*x}),c=R3(e.shape,r,s),l=Y3(c.length,r.length),u=w0(e.shape,r,s),d=tm(i,r.length),p=K4(u,i,r.length);return e.reshape(c).transpose(l).reshape(u).slice(d,p)},n.prototype.spaceToBatchND=function(e,r,i){kn([e],"spaceToBatchND");var s=r.reduce(function(x,R){return x*R}),c=[[0,0]];c.push.apply(c,i);for(var l=1+r.length;l<e.shape.length;++l)c.push([0,0]);var u=e.pad(c),d=R3(u.shape,r,s,!1),p=Y3(d.length,r.length,!1),M=w0(u.shape,r,s,!1);return u.reshape(d).transpose(p).reshape(M)},n.prototype.pool=function(e,r,i){kn(e,"pool");for(var s=r.strideHeight,c=r.strideWidth,l=r.dilationHeight,u=r.dilationWidth,d=r.effectiveFilterHeight,p=r.effectiveFilterWidth,M=r.padInfo.top,x=r.padInfo.left,R="max"===i?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,U=this.readSync(e.dataId),J=zn(r.outShape,e.dtype),ne=J.values,ue=r.outShape[1]*r.outShape[2]*r.outShape[3],Ie=r.outShape[2]*r.outShape[3],Ae=r.outShape[3],Oe=0;Oe<r.batchSize;++Oe)for(var Fe=Oe*ue,et=Oe*e.strides[0],Ct=0;Ct<r.inChannels;++Ct)for(var yt=0;yt<r.outHeight;++yt)for(var pt=yt*s-M,gt=Math.max(0,pt),Bt=Math.min(r.inHeight,d+pt),Ft=Fe+yt*Ie,yn=0;yn<r.outWidth;++yn){for(var pn=yn*c-x,_n=Math.max(0,pn),Dn=Math.min(r.inWidth,p+pn),En=R,bn=0,Nn=0,Rn=gt;Rn<Bt;Rn+=l){for(var ur=et+Rn*e.strides[1],Tr=_n;Tr<Dn;Tr+=u){var Br=U[ur+Tr*e.strides[2]+Ct];"max"===i&&Br>En?En=Br:"avg"===i&&(bn+=Br,Nn++)}if(isNaN(En))break}ne[Ft+yn*Ae+Ct]="avg"===i?bn/Nn:En}return J.toTensor()},n.prototype.maxPool=function(e,r){return this.pool(e,r,"max")},n.prototype.maxPoolPositions=function(e,r){for(var i=zn(r.outShape,"int32"),s=r.strideHeight,c=r.strideWidth,l=r.dilationHeight,u=r.dilationWidth,d=r.effectiveFilterHeight,p=r.effectiveFilterWidth,M=r.padInfo.top,x=r.padInfo.left,R=this.bufferSync(e),U=0;U<r.batchSize;++U)for(var J=0;J<r.inChannels;++J)for(var ne=0;ne<r.outHeight;++ne){for(var ue=ne*s-M,Ie=ue;Ie<0;)Ie+=l;for(var Ae=Math.min(r.inHeight,d+ue),Oe=0;Oe<r.outWidth;++Oe){for(var Fe=Oe*c-x,et=Fe;et<0;)et+=u;for(var Ct=Math.min(r.inWidth,p+Fe),yt=Number.NEGATIVE_INFINITY,pt=-1,gt=Ie;gt<Ae;gt+=l)for(var Bt=gt-ue,Ft=et;Ft<Ct;Ft+=u){var yn=Ft-Fe,pn=R.get(U,gt,Ft,J);pn>yt&&(yt=pn,pt=Bt*p+yn)}i.set(pt,U,ne,Oe,J)}}return i.toTensor()},n.prototype.maxPoolBackprop=function(e,r,i,s){kn([r,i],"maxPoolBackprop");for(var c=this.maxPoolPositions(r,s),l=s.strideHeight,u=s.strideWidth,d=s.dilationHeight,p=s.dilationWidth,M=s.effectiveFilterHeight,x=s.effectiveFilterWidth,R=x-1-s.padInfo.left,U=M-1-s.padInfo.top,J=zn(r.shape,"float32"),ne=this.bufferSync(c),ue=this.bufferSync(e),Ie=0;Ie<s.batchSize;++Ie)for(var Ae=0;Ae<s.inChannels;++Ae)for(var Oe=0;Oe<s.inHeight;++Oe)for(var Fe=0;Fe<s.inWidth;++Fe){for(var et=Oe-U,Ct=Fe-R,yt=0,pt=0;pt<M;pt+=d){var gt=(et+pt)/l;if(!(gt<0||gt>=s.outHeight||Math.floor(gt)!==gt))for(var Bt=0;Bt<x;Bt+=p){var Ft=(Ct+Bt)/u;if(!(Ft<0||Ft>=s.outWidth||Math.floor(Ft)!==Ft)){var yn=M*x-1-ne.get(Ie,gt,Ft,Ae)===pt*x+Bt?1:0;0!==yn&&(yt+=ue.get(Ie,gt,Ft,Ae)*yn)}}}J.set(yt,Ie,Oe,Fe,Ae)}return J.toTensor()},n.prototype.avgPoolBackprop=function(e,r,i){kn([e,r],"avgPoolBackprop");for(var s=i.strideHeight,c=i.strideWidth,l=i.filterHeight,u=i.filterWidth,d=i.dilationHeight,p=i.dilationWidth,M=i.effectiveFilterHeight,x=i.effectiveFilterWidth,R=x-1-i.padInfo.left,U=M-1-i.padInfo.top,J=zn(r.shape,"float32"),ne=1/(l*u),ue=this.bufferSync(e),Ie=0;Ie<i.batchSize;++Ie)for(var Ae=0;Ae<i.inChannels;++Ae)for(var Oe=0;Oe<i.inHeight;++Oe)for(var Fe=0;Fe<i.inWidth;++Fe){for(var et=Oe-U,Ct=Fe-R,yt=0,pt=0;pt<M;pt+=d){var gt=(et+pt)/s;if(!(gt<0||gt>=i.outHeight||Math.floor(gt)!==gt))for(var Bt=0;Bt<x;Bt+=p){var Ft=(Ct+Bt)/c;Ft<0||Ft>=i.outWidth||Math.floor(Ft)!==Ft||(yt+=ue.get(Ie,gt,Ft,Ae))}}J.set(yt*ne,Ie,Oe,Fe,Ae)}return J.toTensor()},n.prototype.pool3d=function(e,r,i){kn(e,"pool3d");for(var s=r.strideDepth,c=r.strideHeight,l=r.strideWidth,u=r.dilationDepth,d=r.dilationHeight,p=r.dilationWidth,M=r.effectiveFilterDepth,x=r.effectiveFilterHeight,R=r.effectiveFilterWidth,U=r.padInfo.front,J=r.padInfo.top,ne=r.padInfo.left,ue="max"===i?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,Ie=this.readSync(e.dataId),Ae=zn(r.outShape,e.dtype),Oe=Ae.values,Fe=r.outShape[1]*r.outShape[2]*r.outShape[3]*r.outShape[4],et=r.outShape[2]*r.outShape[3]*r.outShape[4],Ct=r.outShape[3]*r.outShape[4],yt=r.outShape[4],pt=0;pt<r.batchSize;++pt)for(var gt=pt*Fe,Bt=pt*e.strides[0],Ft=0;Ft<r.inChannels;++Ft)for(var yn=0;yn<r.outDepth;++yn){for(var pn=yn*s-U,_n=pn;_n<0;)_n+=u;for(var Dn=Math.min(r.inDepth,M+pn),En=gt+yn*et,bn=0;bn<r.outHeight;++bn){for(var Nn=bn*c-J,Rn=Nn;Rn<0;)Rn+=d;for(var ur=Math.min(r.inHeight,x+Nn),Tr=En+bn*Ct,Br=0;Br<r.outWidth;++Br){for(var Oo=Br*l-ne,Do=Oo;Do<0;)Do+=p;for(var Wo=Math.min(r.inWidth,R+Oo),ri=Tr+Br*yt,Uo=ue,oi=0,Ya=0,Qo=_n;Qo<Dn;Qo+=u){for(var zi=Bt+Qo*e.strides[1],fi=Rn;fi<ur;fi+=d){for(var wa=zi+fi*e.strides[2],ia=Do;ia<Wo;ia+=p){var pa=Ie[wa+ia*e.strides[3]+Ft];if("max"===i&&pa>Uo?Uo=pa:"avg"===i&&(oi+=pa,Ya++),isNaN(Uo))break}if(isNaN(Uo))break}if(isNaN(Uo))break}Oe[ri+Ft]="avg"===i?oi/Ya:Uo}}}return Ae.toTensor()},n.prototype.avgPool3d=function(e,r){return kn(e,"avgPool3d"),this.pool3d(e,r,"avg").toFloat()},n.prototype.avgPool3dBackprop=function(e,r,i){kn([e,r],"avgPool3dBackprop");for(var s=i.strideDepth,c=i.strideHeight,l=i.strideWidth,u=i.filterDepth,d=i.filterHeight,p=i.filterWidth,M=i.dilationDepth,x=i.dilationHeight,R=i.dilationWidth,U=i.effectiveFilterDepth,J=i.effectiveFilterHeight,ne=i.effectiveFilterWidth,ue=U-1-i.padInfo.front,Ie=ne-1-i.padInfo.left,Ae=J-1-i.padInfo.top,Oe=zn(r.shape,"float32"),Fe=1/(u*d*p),et=this.bufferSync(e),Ct=0;Ct<i.batchSize;++Ct)for(var yt=0;yt<i.inChannels;++yt)for(var pt=0;pt<i.inDepth;++pt)for(var gt=0;gt<i.inHeight;++gt)for(var Bt=0;Bt<i.inWidth;++Bt){for(var Ft=pt-ue,yn=gt-Ae,pn=Bt-Ie,_n=0,Dn=0;Dn<U;Dn+=M){var En=(Ft+Dn)/s;if(!(En<0||En>=i.outDepth||Math.floor(En)!==En))for(var bn=0;bn<J;bn+=x){var Nn=(yn+bn)/c;if(!(Nn<0||Nn>=i.outHeight||Math.floor(Nn)!==Nn))for(var Rn=0;Rn<ne;Rn+=R){var ur=(pn+Rn)/l;ur<0||ur>=i.outWidth||Math.floor(ur)!==ur||(_n+=et.get(Ct,En,Nn,ur,yt))}}}Oe.set(_n*Fe,Ct,pt,gt,Bt,yt)}return Oe.toTensor()},n.prototype.maxPool3d=function(e,r){return kn(e,"maxPool3d"),this.pool3d(e,r,"max").toFloat()},n.prototype.maxPool3dPositions=function(e,r){for(var i=zn(r.outShape,"int32"),s=r.strideDepth,c=r.strideHeight,l=r.strideWidth,u=r.dilationDepth,d=r.dilationHeight,p=r.dilationWidth,M=r.effectiveFilterDepth,x=r.effectiveFilterHeight,R=r.effectiveFilterWidth,U=r.padInfo.front,J=r.padInfo.top,ne=r.padInfo.left,ue=this.bufferSync(e),Ie=0;Ie<r.batchSize;++Ie)for(var Ae=0;Ae<r.inChannels;++Ae)for(var Oe=0;Oe<r.outDepth;++Oe){for(var Fe=Oe*s-U,et=Fe;et<0;)et+=u;for(var Ct=Math.min(r.inDepth,M+Fe),yt=0;yt<r.outHeight;++yt){for(var pt=yt*c-J,gt=pt;gt<0;)gt+=d;for(var Bt=Math.min(r.inHeight,x+pt),Ft=0;Ft<r.outWidth;++Ft){for(var yn=Ft*l-ne,pn=yn;pn<0;)pn+=p;for(var _n=Math.min(r.inWidth,R+yn),Dn=Number.NEGATIVE_INFINITY,En=-1,bn=et;bn<Ct;bn+=u)for(var Nn=bn-Fe,Rn=gt;Rn<Bt;Rn+=d)for(var ur=Rn-pt,Tr=pn;Tr<_n;Tr+=p){var Br=Tr-yn,Oo=ue.get(Ie,bn,Rn,Tr,Ae);Oo>=Dn&&(Dn=Oo,En=Nn*x*R+ur*x+Br)}i.set(En,Ie,Oe,yt,Ft,Ae)}}}return i.toTensor()},n.prototype.maxPool3dBackprop=function(e,r,i,s){kn([r,i],"maxPool3dBackprop");for(var c=this.maxPool3dPositions(r,s),l=s.strideDepth,u=s.strideHeight,d=s.strideWidth,p=s.dilationDepth,M=s.dilationHeight,x=s.dilationWidth,R=s.effectiveFilterDepth,U=s.effectiveFilterHeight,J=s.effectiveFilterWidth,ne=R-1-s.padInfo.front,ue=J-1-s.padInfo.left,Ie=U-1-s.padInfo.top,Ae=zn(r.shape,"float32"),Oe=this.bufferSync(c),Fe=this.bufferSync(e),et=0;et<s.batchSize;++et)for(var Ct=0;Ct<s.inChannels;++Ct)for(var yt=0;yt<s.inDepth;++yt)for(var pt=0;pt<s.inHeight;++pt)for(var gt=0;gt<s.inWidth;++gt){for(var Bt=yt-ne,Ft=pt-Ie,yn=gt-ue,pn=0,_n=0;_n<R;_n+=p){var Dn=(Bt+_n)/l;if(!(Dn<0||Dn>=s.outDepth||Math.floor(Dn)!==Dn))for(var En=0;En<U;En+=M){var bn=(Ft+En)/u;if(!(bn<0||bn>=s.outHeight||Math.floor(bn)!==bn))for(var Nn=0;Nn<J;Nn+=x){var Rn=(yn+Nn)/d;if(!(Rn<0||Rn>=s.outWidth||Math.floor(Rn)!==Rn)){var ur=R*U*J-1-Oe.get(et,Dn,bn,Rn,Ct)===_n*U*J+En*J+Nn?1:0;0!==ur&&(pn+=Fe.get(et,Dn,bn,Rn,Ct)*ur)}}}}Ae.set(pn,et,yt,pt,gt,Ct)}return Ae.toTensor()},n.prototype.cast=function(e,r){return nd(e,r,this)},n.prototype.reshape=function(e,r){return k0(e,r)},n.prototype.avgPool=function(e,r){return kn(e,"avgPool"),this.pool(e,r,"avg").toFloat()},n.prototype.resizeBilinear=function(e,r,i,s){kn(e,"resizeBilinear");for(var c=e.shape,l=c[0],u=c[1],d=c[2],p=c[3],M=this.readSync(e.dataId),x=new Float32Array(rr([l,r,i,p])),R=[s&&r>1?u-1:u,s&&i>1?d-1:d],U=[s&&r>1?r-1:r,s&&i>1?i-1:i],J=0,ne=R[0]/U[0],ue=R[1]/U[1],Ie=0;Ie<l;Ie++)for(var Ae=0;Ae<r;Ae++)for(var Oe=ne*Ae,Fe=Math.floor(Oe),et=Oe-Fe,Ct=Math.min(u-1,Math.ceil(Oe)),yt=Ie*e.strides[0]+Fe*e.strides[1],pt=Ie*e.strides[0]+Ct*e.strides[1],gt=0;gt<i;gt++)for(var Bt=ue*gt,Ft=Math.floor(Bt),yn=Bt-Ft,pn=Math.min(d-1,Math.ceil(Bt)),_n=yt+Ft*e.strides[2],Dn=pt+Ft*e.strides[2],En=yt+pn*e.strides[2],bn=pt+pn*e.strides[2],Nn=0;Nn<p;Nn++){var Rn=M[_n+Nn],ur=M[Dn+Nn],Tr=Rn+(M[En+Nn]-Rn)*yn;x[J++]=Tr+(ur+(M[bn+Nn]-ur)*yn-Tr)*et}return xi(x,[l,r,i,p])},n.prototype.resizeBilinearBackprop=function(e,r,i){kn([e,r],"resizeBilinearBackprop");for(var s=r.shape,c=s[0],l=s[1],u=s[2],d=s[3],p=e.shape,M=p[1],x=p[2],R=new Float32Array(c*l*u*d),U=[i&&M>1?l-1:l,i&&x>1?u-1:u],J=[i&&M>1?M-1:M,i&&x>1?x-1:x],ne=U[0]/J[0],ue=U[1]/J[1],Ie=this.readSync(e.dataId),Ae=0,Oe=0;Oe<c;Oe++)for(var Fe=Oe*r.strides[0],et=0;et<M;et++)for(var Ct=et*ne,yt=Math.floor(Ct),pt=Math.min(Math.ceil(Ct),l-1),gt=Fe+yt*r.strides[1],Bt=Fe+pt*r.strides[1],Ft=Ct-yt,yn=1-Ft,pn=0;pn<x;pn++)for(var _n=pn*ue,Dn=Math.floor(_n),En=Math.min(Math.ceil(_n),u-1),bn=_n-Dn,Nn=1-bn,Rn=gt+Dn*r.strides[2],ur=gt+En*r.strides[2],Tr=Bt+Dn*r.strides[2],Br=Bt+En*r.strides[2],Oo=yn*Nn,Do=yn*bn,Wo=Ft*Nn,ri=Ft*bn,Uo=0;Uo<d;Uo++){var oi=Ie[Ae++];R[Rn+Uo]+=oi*Oo,R[ur+Uo]+=oi*Do,R[Tr+Uo]+=oi*Wo,R[Br+Uo]+=oi*ri}return Se(R,[c,u,l,d],r.dtype)},n.prototype.resizeNearestNeighbor=function(e,r,i,s){kn(e,"resizeNearestNeighbor");for(var c=e.shape,l=c[0],u=c[1],d=c[2],p=c[3],M=this.readSync(e.dataId),x=new Float32Array(l*r*i*p),R=[s&&r>1?u-1:u,s&&i>1?d-1:d],U=[s&&r>1?r-1:r,s&&i>1?i-1:i],J=R[0]/U[0],ne=R[1]/U[1],ue=0,Ie=0;Ie<l;Ie++)for(var Ae=Ie*e.strides[0],Oe=0;Oe<r;Oe++)for(var Fe=J*Oe,et=Ae+Math.min(u-1,s?Math.round(Fe):Math.floor(Fe))*e.strides[1],Ct=0;Ct<i;Ct++)for(var yt=ne*Ct,pt=et+Math.min(d-1,s?Math.round(yt):Math.floor(yt))*e.strides[2],gt=0;gt<p;gt++)x[ue++]=M[pt+gt];return xi(x,[l,r,i,p],e.dtype)},n.prototype.resizeNearestNeighborBackprop=function(e,r,i){kn([e,r],"resizeNearestNeighborBackprop");for(var s=r.shape,c=s[0],l=s[1],u=s[2],d=s[3],p=e.shape,M=p[1],x=p[2],R=new Float32Array(c*l*u*d),U=this.readSync(e.dataId),J=[i&&M>1?l-1:l,i&&x>1?u-1:u],ne=[i&&M>1?M-1:M,i&&x>1?x-1:x],ue=J[0]/ne[0],Ie=J[1]/ne[1],Ae=1/ue,Oe=1/Ie,Fe=2*Math.ceil(Ae)+2,et=2*Math.ceil(Oe)+2,Ct=0;Ct<c;Ct++)for(var yt=Ct*r.strides[0],pt=0;pt<l;pt++)for(var gt=yt+pt*r.strides[1],Bt=Math.floor(pt*Ae),Ft=Math.floor(Bt-Fe/2),yn=0;yn<u;yn++)for(var pn=gt+yn*r.strides[2],_n=Math.floor(yn*Oe),Dn=Math.floor(_n-et/2),En=0;En<d;En++){for(var bn=0,Nn=0;Nn<Fe;Nn++){var Rn=Nn+Ft;if(!(Rn<0||Rn>=M)){var ur=yt+Rn*e.strides[1],Tr=Rn*ue;if(pt===Math.min(l-1,i?Math.round(Tr):Math.floor(Tr)))for(var Br=0;Br<et;Br++){var Oo=Br+Dn;if(!(Oo<0||Oo>=x)){var Do=ur+Oo*e.strides[2],Wo=Oo*Ie;yn===Math.min(u-1,i?Math.round(Wo):Math.floor(Wo))&&(bn+=U[Do+En])}}}}R[pn+En]=bn}return Se(R,r.shape,r.dtype)},n.prototype.batchNormalization=function(e,r,i,s,c,l){kn([e,r,i,c,l],"batchNorm");for(var u=this.readSync(e.dataId),d=this.readSync(r.dataId),p=this.readSync(i.dataId),M=c?this.readSync(c.dataId):new Float32Array([1]),x=l?this.readSync(l.dataId):new Float32Array([0]),R=new Float32Array(u.length),U=x.length,J=M.length,ne=p.length,ue=d.length,Ie=0,Ae=0,Oe=0,Fe=0,et=0;et<u.length;++et)R[et]=x[Ie++]+(u[et]-d[Ae++])*M[Oe++]/Math.sqrt(p[Fe++]+s),Ie>=U&&(Ie=0),Ae>=ue&&(Ae=0),Oe>=J&&(Oe=0),Fe>=ne&&(Fe=0);return Se(R,e.shape)},n.prototype.localResponseNormalization4D=function(e,r,i,s,c){kn(e,"localResponseNormalization4D");var l=e.shape[3],u=l-1,d=this.readSync(e.dataId),p=e.size,M=new Float32Array(p);function x(ne){for(var ue=ne%l,Ie=ne-ue+Math.max(0,ue-r),Ae=ne-ue+Math.min(ue+r,u),Oe=0;Ie<=Ae;Ie++){var Fe=d[Ie];Oe+=Fe*Fe}return Oe}for(var R=0;R<p;R++){var U=x(R),J=d[R]*Math.pow(i+s*U,-c);M[R]=J}return Se(M,e.shape)},n.prototype.LRNGrad=function(e,r,i,s,c,l,u){kn(e,"LRNGrad");for(var d=e.shape[3],p=this.readSync(e.dataId),M=this.readSync(r.dataId),x=this.readSync(i.dataId),R=new Float32Array(e.size),U=e.size,J=0;J<U;J++){for(var ne=J%d,ue=J-ne+Math.max(0,ne-s),Ie=J-ne+Math.min(d,ne+s+1),Ae=0,Oe=ue;Oe<Ie;Oe++)Ae+=Math.pow(M[Oe],2);for(Ae=l*Ae+c,Oe=ue;Oe<Ie;Oe++){var Fe=-2*l*u*M[Oe]*x[J]/Ae;J===Oe&&(Fe+=Math.pow(Ae,-u)),R[Oe]+=Fe*=p[J]}}return Se(R,e.shape)},n.prototype.multinomial=function(e,r,i,s){kn(e,"multinomial");for(var c=r?e:K1(e),l=c.shape[0],u=c.shape[1],d=$n([l,i],"int32"),p=this.readSync(d.dataId),M=this.readSync(c.dataId),x=0;x<l;++x){var R=x*u,U=new Float32Array(u-1);U[0]=M[R];for(var J=1;J<U.length;++J)U[J]=U[J-1]+M[R+J];for(var ne=St(s.toString()),ue=x*i,Ie=0;Ie<i;++Ie){var Ae=ne();p[ue+Ie]=U.length;for(var Oe=0;Oe<U.length;Oe++)if(Ae<U[Oe]){p[ue+Ie]=Oe;break}}}return d},n.prototype.oneHot=function(e,r,i,s){kn(e,"oneHot");var c=new Float32Array(e.size*r);c.fill(s);for(var l=this.readSync(e.dataId),u=0;u<e.size;++u)l[u]>=0&&l[u]<r&&(c[u*r+l[u]]=i);return B(c,[e.size,r],"int32")},n.prototype.nonMaxSuppression=function(e,r,i,s,c){return kn(e,"nonMaxSuppression"),ad(this.readSync(e.dataId),this.readSync(r.dataId),i,s,c)},n.prototype.fft=function(e){return this.fftBatch(e,!1)},n.prototype.ifft=function(e){return this.fftBatch(e,!0)},n.prototype.fftBatch=function(e,r){for(var i=e.shape[0],s=e.shape[1],c=zn(e.shape,"float32"),l=zn(e.shape,"float32"),u=Fs(e).as2D(i,s),d=Hs(e).as2D(i,s),p=0;p<i;p++)for(var M=u.slice([p,0],[1,s]),x=d.slice([p,0],[1,s]),R=Oa(M,x),U=this.readSync(this.fftImpl(R,r).dataId),J=0;J<s;J++){var ne=id(U,J);c.values[p*s+J]=ne.real,l.values[p*s+J]=ne.imag}return Oa(c.toTensor(),l.toTensor()).as2D(i,s)},n.prototype.fftImpl=function(e,r){var i=e.as1D(),s=i.size;if(this.isExponentOf2(s)){var c=this.fftRadix2(i,s,r).as2D(e.shape[0],e.shape[1]);return r&&(c=Oa(Fs(c).div(wn(s)),Hs(c).div(wn(s)))),c}var l=this.readSync(e.dataId),u=function(d){for(var p=new Float32Array(d.length/2),M=new Float32Array(d.length/2),x=0;x<d.length;x+=2)p[x/2]=d[x],M[x/2]=d[x+1];return{real:p,imag:M}}(this.fourierTransformByMatmul(l,s,r));return Oa(u.real,u.imag).as2D(e.shape[0],e.shape[1])},n.prototype.isExponentOf2=function(e){return 0==(e&e-1)},n.prototype.fftRadix2=function(e,r,i){if(1===r)return e;var s=this.readSync(e.dataId),c=r/2,l=function(ue){for(var Ie=Math.ceil(ue.length/4),Ae=new Float32Array(Ie),Oe=new Float32Array(Ie),Fe=0;Fe<ue.length;Fe+=4)Ae[Math.floor(Fe/4)]=ue[Fe],Oe[Math.floor(Fe/4)]=ue[Fe+1];return{real:Ae,imag:Oe}}(s),u=Oa(l.real,l.imag).as1D(),d=function(ue){for(var Ie=Math.floor(ue.length/4),Ae=new Float32Array(Ie),Oe=new Float32Array(Ie),Fe=2;Fe<ue.length;Fe+=4)Ae[Math.floor(Fe/4)]=ue[Fe],Oe[Math.floor(Fe/4)]=ue[Fe+1];return{real:Ae,imag:Oe}}(s),p=Oa(d.real,d.imag).as1D();u=this.fftRadix2(u,c,i),p=this.fftRadix2(p,c,i);var M=function(ue,Ie){for(var Ae=new Float32Array(ue/2),Oe=new Float32Array(ue/2),Fe=0;Fe<Math.ceil(ue/2);Fe++){var et=(Ie?2:-2)*Math.PI*(Fe/ue);Ae[Fe]=Math.cos(et),Oe[Fe]=Math.sin(et)}return{real:Ae,imag:Oe}}(r,i),x=Oa(M.real,M.imag).mul(p),R=u.add(x),U=u.sub(x),J=Fs(R).concat(Fs(U)),ne=Hs(R).concat(Hs(U));return Oa(J,ne).as1D()},n.prototype.fourierTransformByMatmul=function(e,r,i){for(var s=new Float32Array(2*r),c=0;c<r;c++){for(var l=0,u=0,d=0;d<r;d++){var p=qg(c*d,r,i),M=id(e,d);l+=M.real*p.real-M.imag*p.imag,u+=M.real*p.imag+M.imag*p.real}i&&(l/=r,u/=r),Qg(s,l,u,c)}return s},n.prototype.depthToSpace=function(e,r,i){at("NHWC"===i,function(){return"Only NHWC dataFormat supported on CPU for depthToSpace. Got "+i}),at(r>1,function(){return"blockSize should be > 1 for depthToSpace, but was: "+r});for(var s=e.shape[0],c=e.shape[1],l=e.shape[2],u=e.shape[3],d=c*r,p=l*r,M=u/(r*r),x=this.readSync(e.dataId),R=new Float32Array(s*d*p*M),U=0,J=0;J<s;++J)for(var ne=0;ne<d;++ne)for(var ue=Math.floor(ne/r),Ie=ne%r,Ae=0;Ae<p;++Ae)for(var Oe=Math.floor(Ae/r),Fe=(Ie*r+Ae%r)*M,et=0;et<M;++et)R[U++]=x[et+Fe+u*(Oe+l*(ue+c*J))];return Se(R,[s,d,p,M])},n.prototype.broadcastedBinaryOp=function(e,r,i,s){var c=zo(e.shape,r.shape),l=zn(c,i),u=this.readSync(e.dataId),d=this.readSync(r.dataId),p=X1(e.shape,c),M=X1(r.shape,c),x=l.values;if(p.length+M.length===0)for(var R=0;R<x.length;++R)x[R]=s(u[R%u.length],d[R%d.length]);else{var U=this.bufferSync(e),J=this.bufferSync(r),ne=function(ue){var Ie=l.indexToLoc(ue),Ae=Ie.slice(-e.rank);p.forEach(function(Ct){return Ae[Ct]=0});var Oe=U.locToIndex(Ae),Fe=Ie.slice(-r.rank);M.forEach(function(Ct){return Fe[Ct]=0});var et=J.locToIndex(Fe);x[ue]=s(u[Oe],d[et])};for(R=0;R<x.length;++R)ne(R)}return l.toTensor()},n.prototype.broadcastedBinaryComplexOp=function(e,r,i){var s=zo(e.shape,r.shape),c=zn(s,"float32"),l=zn(s,"float32"),u=this.readSync(e.dataId),d=this.readSync(r.dataId),p=X1(e.shape,s),M=X1(r.shape,s),x=c.values,R=l.values;if(p.length+M.length===0)for(var U=0;U<x.length;U++){var J=U%u.length,ne=U%d.length,ue=i(u[2*J],u[2*J+1],d[2*ne],d[2*ne+1]);x[U]=ue.real,R[U]=ue.imag}else{var Ie=this.bufferSync(this.data.get(e.dataId).complexTensors.real),Ae=this.bufferSync(this.data.get(r.dataId).complexTensors.real),Oe=function(Fe){var et=c.indexToLoc(Fe),Ct=et.slice(-e.rank);p.forEach(function(Ft){return Ct[Ft]=0});var yt=Ie.locToIndex(Ct),pt=et.slice(-r.rank);M.forEach(function(Ft){return pt[Ft]=0});var gt=Ae.locToIndex(pt),Bt=i(u[2*yt],u[2*yt+1],d[2*gt],d[2*gt+1]);x[Fe]=Bt.real,R[Fe]=Bt.imag};for(U=0;U<x.length;U++)Oe(U)}return this.complex(c.toTensor(),l.toTensor())},n.prototype.split=function(e,r,i){return um(e,r,i)},n.prototype.dispose=function(){},n.prototype.floatPrecision=function(){return 32},n.prototype.epsilon=function(){return 1e-7},n.prototype.cropAndResize=function(e,r,i,s,c,l){for(var u=e.shape,d=u[0],p=u[1],M=u[2],x=u[3],R=r.shape[0],U=s[0],J=s[1],ne=zn([R,U,J,x],"float32"),ue=this.readSync(r.dataId),Ie=this.readSync(i.dataId),Ae=this.readSync(e.dataId),Oe=e.strides,Fe=ne.strides,et=0;et<R;et++){var Ct=4*et,yt=ue[Ct],pt=ue[Ct+1],gt=ue[Ct+2],Bt=ue[Ct+3],Ft=Ie[et];if(!(Ft>=d))for(var yn=U>1?(gt-yt)*(p-1)/(U-1):0,pn=J>1?(Bt-pt)*(M-1)/(J-1):0,_n=0;_n<U;_n++){var Dn=U>1?yt*(p-1)+_n*yn:.5*(yt+gt)*(p-1);if(Dn<0||Dn>p-1)for(var En=0;En<J;En++)for(var bn=0;bn<x;bn++){var Nn=bn+En*Fe[2]+_n*Fe[1]+et*Fe[0];ne.values[Nn]=l}else if("bilinear"===c){var Rn=Math.floor(Dn),ur=Math.ceil(Dn),Tr=Dn-Rn;for(En=0;En<J;En++)if((Qo=J>1?pt*(M-1)+En*pn:.5*(pt+Bt)*(M-1))<0||Qo>M-1)for(bn=0;bn<x;bn++)ne.values[Nn=bn+En*Fe[2]+_n*Fe[1]+et*Fe[0]]=l;else{var Br=Math.floor(Qo),Oo=Math.ceil(Qo),Do=Qo-Br;for(bn=0;bn<x;bn++){var Wo=Ae[Nn=bn+Br*Oe[2]+Rn*Oe[1]+Ft*Oe[0]],ri=Ae[Nn=bn+Oo*Oe[2]+Rn*Oe[1]+Ft*Oe[0]],Uo=Ae[Nn=bn+Br*Oe[2]+ur*Oe[1]+Ft*Oe[0]],oi=Wo+(ri-Wo)*Do,Ya=Uo+(Ae[Nn=bn+Oo*Oe[2]+ur*Oe[1]+Ft*Oe[0]]-Uo)*Do;ne.values[Nn=bn+En*Fe[2]+_n*Fe[1]+et*Fe[0]]=oi+(Ya-oi)*Tr}}}else for(En=0;En<J;++En){var Qo;if((Qo=J>1?pt*(M-1)+En*pn:.5*(pt+Bt)*(M-1))<0||Qo>M-1)for(bn=0;bn<x;bn++)ne.values[Nn=bn+En*Fe[2]+_n*Fe[1]+et*Fe[0]]=l;else{var zi=Math.round(Qo),fi=Math.round(Dn);for(bn=0;bn<x;bn++)ne.values[bn+En*Fe[2]+_n*Fe[1]+et*Fe[0]]=Ae[bn+zi*Oe[2]+fi*Oe[1]+Ft*Oe[0]]}}}}return ne.toTensor()},n.prototype.sparseToDense=function(e,r,i,s){var c=Sl(0,e,i);return this.scatter(e,r,i,c.outputSize,c.sliceSize,c.numUpdates,c.sliceRank,c.strides,s,!1)},n.prototype.gatherND=function(e,r){var i=r.shape,s=i[i.length-1],c=X4(e,r),l=c[0],u=c[1],d=c[2],p=c[3];if(0===u)return xi([],l,e.dtype);for(var M=new _c([u,d],e.dtype),x=this.readSync(r.dataId),R=this.readSync(e.dataId),U=0;U<u;U++){for(var J=[],ne=0,ue=0;ue<s;ue++){var Ie=x[U*s+ue];ne+=Ie*p[ue],J.push(Ie)}if(ne<0||ne>=e.size/d)throw new Error("Invalid indices: "+J+" does not index into "+e.shape);for(var Ae=0;Ae<d;Ae++)M.values[U*d+Ae]=R[ne*d+Ae]}return M.toTensor().reshape(l)},n.prototype.scatterND=function(e,r,i){var s=Sl(0,e,i),c=s.sliceRank,l=s.numUpdates,u=s.sliceSize,d=s.strides,p=s.outputSize,M=wn(0);return this.scatter(e,r,i,p,u,l,c,d,M,!0)},n.prototype.fill=function(e,r,i){var s=Ea(i=i||Ls(r),rr(e));return s.fill(r),Ye.makeTensor(s,e,i,this)},n.prototype.onesLike=function(e){if("string"===e.dtype)throw new Error("onesLike is not supported for string tensors");return this.fill(e.shape,1,e.dtype)},n.prototype.zerosLike=function(e){var r=Ea(e.dtype,rr(e.shape));return this.makeOutput(r,e.shape,e.dtype)},n.prototype.linspace=function(e,r,i){return rd(e,r,i)},n.prototype.scatter=function(e,r,i,s,c,l,u,d,p,M){var x=[s/c,c],R=this.readSync(e.dataId),U=this.readSync(r.dataId);if(0===s)return xi([],i,r.dtype);var J=new _c(x,r.dtype);J.values.fill(this.readSync(p.dataId)[0]);for(var ne=0;ne<l;ne++){for(var ue=[],Ie=0,Ae=0;Ae<u;Ae++){var Oe=R[ne*u+Ae];ue.push(Oe),Ie+=Oe*d[Ae]}if(Ie<0||Ie>=s/c)throw new Error("Invalid indices: "+ue+" does not index into "+i);for(var Fe=0;Fe<c;Fe++)M?J.values[Ie*c+Fe]+=U[ne*c+Fe]:J.values[Ie*c+Fe]=0===r.rank?U[0]:U[ne*c+Fe]}return J.toTensor().reshape(i)},n}(sm);Ye.registerBackend("cpu",function(){return new qy},1);for(var $d=0,Kd=[{kernelName:"NonMaxSuppressionV5",backendName:"cpu",kernelFunc:function(t){var n=t.inputs,r=t.attrs,s=n.boxes,c=n.scores,u=r.maxOutputSize,d=r.iouThreshold,p=r.scoreThreshold,M=r.softNmsSigma,x=t.backend;kn(s,"NonMaxSuppressionWithScore");var R=G3(x.data.get(s.dataId).values,x.data.get(c.dataId).values,u,d,p,M);return[R.selectedIndices,R.selectedScores]}},{kernelName:"Square",backendName:"cpu",kernelFunc:function(t){var r=t.inputs.x,i=t.backend;kn(r,"square");for(var s=i.data.get(r.dataId).values,c=new Float32Array(s.length),l=0;l<s.length;++l){var u=s[l];c[l]=u*u}return{dataId:i.write(c,r.shape,r.dtype),shape:r.shape,dtype:r.dtype}}},{kernelName:K2,backendName:"cpu",kernelFunc:function(t){var n=t.inputs,i=n.a,s=n.b,c=t.backend;kn([i,s],K2);var l=c.data.get(i.dataId).values,u=c.data.get(s.dataId).values,d=function(x,R,U,J,ne,ue){var Ie=zo(x,R),Ae=Ie.length,Oe=Qi(Ie),Fe=Ba(ne,rr(Ie)),et=x.length,Ct=R.length,yt=Qi(x),pt=Qi(R),gt=X1(x,Ie),Bt=X1(R,Ie);if(gt.length+Bt.length===0)for(var Ft=0;Ft<Fe.length;++Ft)Fe[Ft]=ue(U[Ft%U.length],J[Ft%J.length]);else{var yn=function(pn){var _n=a1(pn,Ae,Oe),Dn=_n.slice(-et);gt.forEach(function(Rn){return Dn[Rn]=0});var En=rc(Dn,et,yt),bn=_n.slice(-Ct);Bt.forEach(function(Rn){return bn[Rn]=0});var Nn=rc(bn,Ct,pt);Fe[pn]=ue(U[En],J[Nn])};for(Ft=0;Ft<Fe.length;++Ft)yn(Ft)}return[Fe,Ie]}(i.shape,s.shape,l,u,i.dtype,function(x,R){var U=x-R;return U*U}),M=d[1];return{dataId:c.write(d[0],M,i.dtype),shape:M,dtype:i.dtype}}}];$d<Kd.length;$d++)nr(Kd[$d]);for(var Ol,eM=function(t){this.variableNames=["A"];var n=Bs(),e=t[0],r=t[1];this.outputShape=t,this.userCode="\n void main() {\n ivec3 coords = getOutputCoords();\n int texR = coords[0];\n int texC = coords[1];\n int depth = coords[2];\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2("+r+".0, "+e+".0);\n\n vec4 values = "+n.texture2D+"(A, uv);\n float value;\n if (depth == 0) {\n value = values.r;\n } else if (depth == 1) {\n value = values.g;\n } else if (depth == 2) {\n value = values.b;\n } else if (depth == 3) {\n value = values.a;\n }\n\n setOutput(floor(value * 255.0 + 0.5));\n }\n "},tM=function(t){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0;var n=Bs(),e=t[0],r=t[1];this.outputShape=t,this.userCode="\n void main() {\n ivec3 coords = getOutputCoords();\n int texR = coords[0];\n int texC = coords[1];\n int depth = coords[2];\n\n vec4 result = vec4(0.);\n\n for(int row=0; row<=1; row++) {\n for(int col=0; col<=1; col++) {\n texC = coords[1] + row;\n depth = coords[2] + col;\n\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2("+r+".0, "+e+".0);\n vec4 values = "+n.texture2D+"(A, uv);\n float value;\n if (depth == 0) {\n value = values.r;\n } else if (depth == 1) {\n value = values.g;\n } else if (depth == 2) {\n value = values.b;\n } else if (depth == 3) {\n value = values.a;\n }\n\n result[row * 2 + col] = floor(value * 255.0 + 0.5);\n }\n }\n\n "+n.output+" = result;\n }\n "},Il=0,v8=[{kernelName:"FromPixels",backendName:"webgl",kernelFunc:function(t){var e=t.backend,i=t.inputs.pixels,c=typeof HTMLVideoElement<"u"&&i instanceof HTMLVideoElement,l=typeof HTMLImageElement<"u"&&i instanceof HTMLImageElement,u=c?[i.videoWidth,i.videoHeight]:[i.width,i.height],d=u[0],p=u[1],M=[p,d],x=[p,d,t.attrs.numChannels];(l||c)&&(null==Ol&&(Ol=document.createElement("canvas").getContext("2d")),Ol.canvas.width=d,Ol.canvas.height=p,Ol.drawImage(i,0,0,d,p),i=Ol.canvas);var R=e.makeTensorInfo(M,"int32");e.texData.get(R.dataId).usage=Kn.PIXELS,e.gpgpu.uploadPixelDataToTexture(e.getTexture(R.dataId),i);var U=X().getBool("WEBGL_PACK")?new tM(x):new eM(x),J=e.runWebGLProgram(U,[R],"int32");return e.disposeData(R.dataId),J}},{kernelName:"NonMaxSuppressionV5",backendName:"webgl",kernelFunc:function(t){var n=t.inputs,e=t.backend,r=t.attrs;V1("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");var c=n.scores,u=r.maxOutputSize,d=r.iouThreshold,p=r.scoreThreshold,M=r.softNmsSigma,x=e,R=G3(x.readSync(n.boxes.dataId),x.readSync(c.dataId),u,d,p,M);return[R.selectedIndices,R.selectedScores]}},{kernelName:"Square",backendName:"webgl",kernelFunc:function(t){var r=t.inputs.x,i=t.backend,s=new To(r.shape,"return x * x;");return i.runWebGLProgram(s,[r],r.dtype)}},{kernelName:K2,backendName:"webgl",kernelFunc:function(t){var n=t.inputs,i=n.a,s=n.b,c=t.backend,l=X().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new Z1("return (a - b) * (a - b);",i.shape,s.shape):new Sa("return (a - b) * (a - b);",i.shape,s.shape);return c.compileAndRun(l,[i,s])}}];Il<v8.length;Il++)nr(v8[Il]);for(var Xd=0,y8=[{kernelName:"Square",gradFunc:function(t,n){var e=n[0];return{x:function(){return t.mul(e.toFloat().mul(2))}}}},{kernelName:K2,gradFunc:function(t,n){var e=n[0],r=n[1],i=wn(2);return{a:function(){return Ds(t,Ds(i,ns(e,r)))},b:function(){return Ds(t,Ds(i,ns(r,e)))}}}}];Xd<y8.length;Xd++)Kr(y8[Xd]);var nM=function(){function t(){}return t.prototype.fetch=function(n,e){return fetch(n,e)},t.prototype.now=function(){return performance.now()},t.prototype.encode=function(n,e){if("utf-8"!==e&&"utf8"!==e)throw new Error("Browser's encoder only supports utf-8, but got "+e);return null==this.textEncoder&&(this.textEncoder=new TextEncoder),this.textEncoder.encode(n)},t.prototype.decode=function(n,e){return new TextDecoder(e).decode(n)},t}();X().get("IS_BROWSER")&&X().setPlatform("browser",new nM);var Zd,oM=function(){function t(){this.util=f(90753),this.textEncoder=new this.util.TextEncoder}return t.prototype.fetch=function(n,e){return null!=X().global.fetch?X().global.fetch(n,e):(null==Zd&&(Zd=f(40522)),Zd(n,e))},t.prototype.now=function(){var n=process.hrtime();return 1e3*n[0]+n[1]/1e6},t.prototype.encode=function(n,e){if("utf-8"!==e&&"utf8"!==e)throw new Error("Node built-in encoder only supports utf-8, but got "+e);return this.textEncoder.encode(n)},t.prototype.decode=function(n,e){return 0===n.length?"":new this.util.TextDecoder(e).decode(n)},t}();X().get("IS_NODE")&&X().setPlatform("node",new oM);var Jd={float32:4,int32:4,uint16:2,uint8:1,bool:1};function M8(t,n){for(var e={},r=0,i=function(l){var u=l.name,d=l.dtype,p=l.shape,M=rr(p),x=void 0;if("quantization"in l){var R=l.quantization;if("uint8"!==R.dtype&&"uint16"!==R.dtype)throw new Error("Weight "+l.name+" has unknown quantization dtype "+R.dtype+". Supported quantization dtypes are: 'uint8' and 'uint16'.");var U=Jd[R.dtype],J=t.slice(r,r+M*U),ne="uint8"===R.dtype?new Uint8Array(J):new Uint16Array(J);if("float32"===d)x=Float32Array.from(ne,function(et){return et*R.scale+R.min});else{if("int32"!==d)throw new Error("Unsupported dtype in weight '"+u+"': "+d);x=Int32Array.from(ne,function(et){return Math.round(et*R.scale+R.min)})}r+=M*U}else if("string"===d){var ue=rr(l.shape);x=[];for(var Ie=0;Ie<ue;Ie++){var Ae=new Uint32Array(t.slice(r,r+4))[0];r+=4;var Oe=new Uint8Array(t.slice(r,r+Ae));x.push(Oe),r+=Ae}}else{var Fe=Jd[d];if(J=t.slice(r,r+M*Fe),"float32"===d)x=new Float32Array(J);else if("int32"===d)x=new Int32Array(J);else{if("bool"!==d)throw new Error("Unsupported dtype in weight '"+u+"': "+d);x=new Uint8Array(J)}r+=M*Fe}e[u]=xi(x,p,d)},s=0,c=n;s<c.length;s++)i(c[s]);return e}function iM(t){if(null===t)throw new Error("Invalid input value: "+JSON.stringify(t));var n=0,e=[];t.forEach(function(s){if(n+=s.byteLength,e.push(s.byteLength===s.buffer.byteLength?s:new s.constructor(s)),!(s instanceof Float32Array||s instanceof Int32Array||s instanceof Uint8Array))throw new Error("Unsupported TypedArray subtype: "+s.constructor.name)});var r=new Uint8Array(n),i=0;return e.forEach(function(s){r.set(new Uint8Array(s.buffer),i),i+=s.byteLength}),r.buffer}var Qd=typeof Buffer<"u"&&(typeof Blob>"u"||typeof atob>"u"||typeof btoa>"u");function qd(t){return Qd?Buffer.byteLength(t):new Blob([t]).size}function e6(t){var n=0;t.forEach(function(i){n+=i.byteLength});var e=new Uint8Array(n),r=0;return t.forEach(function(i){e.set(new Uint8Array(i),r),r+=i.byteLength}),e.buffer}function C8(t){for(t=t.trim();t.endsWith("/");)t=t.slice(0,t.length-1);var n=t.split("/");return n[n.length-1]}function Al(t){if(t.modelTopology instanceof ArrayBuffer)throw new Error("Expected JSON model topology, received ArrayBuffer.");return{dateSaved:new Date,modelTopologyType:"JSON",modelTopologyBytes:null==t.modelTopology?0:qd(JSON.stringify(t.modelTopology)),weightSpecsBytes:null==t.weightSpecs?0:qd(JSON.stringify(t.weightSpecs)),weightDataBytes:null==t.weightData?0:t.weightData.byteLength}}var Sc=function(){function t(){this.saveRouters=[],this.loadRouters=[]}return t.getInstance=function(){return null==t.instance&&(t.instance=new t),t.instance},t.registerSaveRouter=function(n){t.getInstance().saveRouters.push(n)},t.registerLoadRouter=function(n){t.getInstance().loadRouters.push(n)},t.getSaveHandlers=function(n){return t.getHandlers(n,"save")},t.getLoadHandlers=function(n,e){return t.getHandlers(n,"load",e)},t.getHandlers=function(n,e,r){var i=[];return("load"===e?t.getInstance().loadRouters:t.getInstance().saveRouters).forEach(function(s){var c=s(n,r);null!==c&&i.push(c)}),i},t}(),Nl="://",M2=function(){function t(){this.managers={}}return t.getInstance=function(){return null==t.instance&&(t.instance=new t),t.instance},t.registerManager=function(n,e){at(null!=n,function(){return"scheme must not be undefined or null."}),n.endsWith(Nl)&&(n=n.slice(0,n.indexOf(Nl))),at(n.length>0,function(){return"scheme must not be an empty string."});var r=t.getInstance();at(null==r.managers[n],function(){return"A model store manager is already registered for scheme '"+n+"'."}),r.managers[n]=e},t.getManager=function(n){var e=this.getInstance().managers[n];if(null==e)throw new Error("Cannot find model manager for scheme '"+n+"'");return e},t.getSchemes=function(){return Object.keys(this.getInstance().managers)},t}();function mu(t){if(-1===t.indexOf(Nl))throw new Error("The url string provided does not contain a scheme. Supported schemes are: "+M2.getSchemes().join(","));return{scheme:t.split(Nl)[0],path:t.split(Nl)[1]}}function b8(t,n,e){return void 0===e&&(e=!1),st(this,void 0,void 0,function(){var r,i,s,c,l,u,d,p,M;return Ln(this,function(x){switch(x.label){case 0:return at(t!==n,function(){return"Old path and new path are the same: '"+t+"'"}),at((r=Sc.getLoadHandlers(t)).length>0,function(){return"Copying failed because no load handler is found for source URL "+t+"."}),at(r.length<2,function(){return"Copying failed because more than one ("+r.length+") load handlers for source URL "+t+"."}),i=r[0],at((s=Sc.getSaveHandlers(n)).length>0,function(){return"Copying failed because no save handler is found for destination URL "+n+"."}),at(s.length<2,function(){return"Copying failed because more than one ("+r.length+") save handlers for destination URL "+n+"."}),c=s[0],l=mu(t).scheme,u=mu(t).path,d=l===mu(t).scheme,[4,i.load()];case 1:return p=x.sent(),e&&d?[4,M2.getManager(l).removeModel(u)]:[3,3];case 2:x.sent(),x.label=3;case 3:return[4,c.save(p)];case 4:return M=x.sent(),!e||d?[3,6]:[4,M2.getManager(l).removeModel(u)];case 5:x.sent(),x.label=6;case 6:return[2,M.modelArtifactsInfo]}})})}var C2="models_store",b2="model_info_store";function L8(){if(!X().getBool("IS_BROWSER"))throw new Error("Failed to obtain IndexedDB factory because the current environmentis not a web browser.");var t=window||self,n=t.indexedDB||t.mozIndexedDB||t.webkitIndexedDB||t.msIndexedDB||t.shimIndexedDB;if(null==n)throw new Error("The current browser does not appear to support IndexedDB.");return n}function pu(t){var n=t.result;n.createObjectStore(C2,{keyPath:"modelPath"}),n.createObjectStore(b2,{keyPath:"modelPath"})}var zl=function(){function t(n){if(this.indexedDB=L8(),null==n||!n)throw new Error("For IndexedDB, modelPath must not be null, undefined or empty.");this.modelPath=n}return t.prototype.save=function(n){return st(this,void 0,void 0,function(){return Ln(this,function(e){if(n.modelTopology instanceof ArrayBuffer)throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");return[2,this.databaseAction(this.modelPath,n)]})})},t.prototype.load=function(){return st(this,void 0,void 0,function(){return Ln(this,function(n){return[2,this.databaseAction(this.modelPath)]})})},t.prototype.databaseAction=function(n,e){var r=this;return new Promise(function(i,s){var c=r.indexedDB.open("tensorflowjs",1);c.onupgradeneeded=function(){return pu(c)},c.onsuccess=function(){var l=c.result;if(null==e){var u=l.transaction(C2,"readonly"),d=u.objectStore(C2).get(r.modelPath);d.onsuccess=function(){if(null==d.result)return l.close(),s(new Error("Cannot find model with path '"+r.modelPath+"' in IndexedDB."));i(d.result.modelArtifacts)},d.onerror=function(J){return l.close(),s(d.error)},u.oncomplete=function(){return l.close()}}else{var p,M=Al(e),x=l.transaction(b2,"readwrite"),R=x.objectStore(b2),U=R.put({modelPath:r.modelPath,modelArtifactsInfo:M});U.onsuccess=function(){var J=(p=l.transaction(C2,"readwrite")).objectStore(C2).put({modelPath:r.modelPath,modelArtifacts:e,modelArtifactsInfo:M});J.onsuccess=function(){return i({modelArtifactsInfo:M})},J.onerror=function(ne){var ue=(R=x.objectStore(b2)).delete(r.modelPath);ue.onsuccess=function(){return l.close(),s(J.error)},ue.onerror=function(Ie){return l.close(),s(J.error)}}},U.onerror=function(J){return l.close(),s(U.error)},x.oncomplete=function(){null==p?l.close():p.oncomplete=function(){return l.close()}}}},c.onerror=function(l){return s(c.error)}})},t.URL_SCHEME="indexeddb://",t}(),t6=function(t){return X().getBool("IS_BROWSER")&&!Array.isArray(t)&&t.startsWith(zl.URL_SCHEME)?(n=t.slice(zl.URL_SCHEME.length),new zl(n)):null;var n};Sc.registerSaveRouter(t6),Sc.registerLoadRouter(t6);var aM=function(){function t(){this.indexedDB=L8()}return t.prototype.listModels=function(){return st(this,void 0,void 0,function(){var n=this;return Ln(this,function(e){return[2,new Promise(function(r,i){var s=n.indexedDB.open("tensorflowjs",1);s.onupgradeneeded=function(){return pu(s)},s.onsuccess=function(){var c=s.result,l=c.transaction(b2,"readonly"),u=l.objectStore(b2).getAll();u.onsuccess=function(){for(var d={},p=0,M=u.result;p<M.length;p++){var x=M[p];d[x.modelPath]=x.modelArtifactsInfo}r(d)},u.onerror=function(d){return c.close(),i(u.error)},l.oncomplete=function(){return c.close()}},s.onerror=function(c){return i(s.error)}})]})})},t.prototype.removeModel=function(n){return st(this,void 0,void 0,function(){var e=this;return Ln(this,function(r){var i;return n=(i=n).startsWith(zl.URL_SCHEME)?i.slice(zl.URL_SCHEME.length):i,[2,new Promise(function(s,c){var l=e.indexedDB.open("tensorflowjs",1);l.onupgradeneeded=function(){return pu(l)},l.onsuccess=function(){var u,d=l.result,p=d.transaction(b2,"readwrite"),M=p.objectStore(b2),x=M.get(n);x.onsuccess=function(){if(null==x.result)return d.close(),c(new Error("Cannot find model with path '"+n+"' in IndexedDB."));var R=M.delete(n),U=function(){var J=(u=d.transaction(C2,"readwrite")).objectStore(C2).delete(n);J.onsuccess=function(){return s(x.result.modelArtifactsInfo)},J.onerror=function(ne){return c(x.error)}};R.onsuccess=U,R.onerror=function(J){return U(),d.close(),c(x.error)}},x.onerror=function(R){return d.close(),c(x.error)},p.oncomplete=function(){null==u?d.close():u.oncomplete=function(){return d.close()}}},l.onerror=function(u){return c(l.error)}})]})})},t}();if(X().getBool("IS_BROWSER"))try{M2.registerManager(zl.URL_SCHEME,new aM)}catch{}var S1="/",Rl="tensorflowjs_models",S8="info",sM="model_topology",cM="weight_specs",lM="weight_data",T8="model_metadata";function w8(t){return{info:[Rl,t,S8].join(S1),topology:[Rl,t,sM].join(S1),weightSpecs:[Rl,t,cM].join(S1),weightData:[Rl,t,lM].join(S1),modelMetadata:[Rl,t,T8].join(S1)}}function uM(t){var n=t.split(S1);if(n.length<3)throw new Error("Invalid key format: "+t);return n.slice(1,n.length-1).join(S1)}var Yl=function(){function t(n){if(!X().getBool("IS_BROWSER")||typeof window>"u"||void 0===window.localStorage)throw new Error("The current environment does not support local storage.");if(this.LS=window.localStorage,null==n||!n)throw new Error("For local storage, modelPath must not be null, undefined or empty.");this.modelPath=n,this.keys=w8(this.modelPath)}return t.prototype.save=function(n){return st(this,void 0,void 0,function(){var e,r,i;return Ln(this,function(s){if(n.modelTopology instanceof ArrayBuffer)throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");e=JSON.stringify(n.modelTopology),r=JSON.stringify(n.weightSpecs),i=Al(n);try{return this.LS.setItem(this.keys.info,JSON.stringify(i)),this.LS.setItem(this.keys.topology,e),this.LS.setItem(this.keys.weightSpecs,r),this.LS.setItem(this.keys.weightData,function(c){if(Qd)return Buffer.from(c).toString("base64");for(var l=new Uint8Array(c),u="",d=0,p=l.length;d<p;d++)u+=String.fromCharCode(l[d]);return btoa(u)}(n.weightData)),this.LS.setItem(this.keys.modelMetadata,JSON.stringify({format:n.format,generatedBy:n.generatedBy,convertedBy:n.convertedBy,userDefinedMetadata:n.userDefinedMetadata})),[2,{modelArtifactsInfo:i}]}catch{throw this.LS.removeItem(this.keys.info),this.LS.removeItem(this.keys.topology),this.LS.removeItem(this.keys.weightSpecs),this.LS.removeItem(this.keys.weightData),this.LS.removeItem(this.keys.modelMetadata),new Error("Failed to save model '"+this.modelPath+"' to local storage: size quota being exceeded is a possible cause of this failure: modelTopologyBytes="+i.modelTopologyBytes+", weightSpecsBytes="+i.weightSpecsBytes+", weightDataBytes="+i.weightDataBytes+".")}return[2]})})},t.prototype.load=function(){return st(this,void 0,void 0,function(){var n,e,r,i,s,c,l;return Ln(this,function(u){if(null==(n=JSON.parse(this.LS.getItem(this.keys.info))))throw new Error("In local storage, there is no model with name '"+this.modelPath+"'");if("JSON"!==n.modelTopologyType)throw new Error("BrowserLocalStorage does not support loading non-JSON model topology yet.");if(e={},null==(r=JSON.parse(this.LS.getItem(this.keys.topology))))throw new Error("In local storage, the topology of model '"+this.modelPath+"' is missing.");if(e.modelTopology=r,null==(i=JSON.parse(this.LS.getItem(this.keys.weightSpecs))))throw new Error("In local storage, the weight specs of model '"+this.modelPath+"' are missing.");if(e.weightSpecs=i,null!=(s=this.LS.getItem(this.keys.modelMetadata))&&(c=JSON.parse(s),e.format=c.format,e.generatedBy=c.generatedBy,e.convertedBy=c.convertedBy,e.userDefinedMetadata=c.userDefinedMetadata),null==(l=this.LS.getItem(this.keys.weightData)))throw new Error("In local storage, the binary weight values of model '"+this.modelPath+"' are missing.");return e.weightData=function(d){if(Qd){var p=Buffer.from(d,"base64");return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}for(var M=atob(d),x=new Uint8Array(M.length),R=0;R<M.length;++R)x.set([M.charCodeAt(R)],R);return x.buffer}(l),[2,e]})})},t.URL_SCHEME="localstorage://",t}(),n6=function(t){return X().getBool("IS_BROWSER")&&!Array.isArray(t)&&t.startsWith(Yl.URL_SCHEME)?(n=t.slice(Yl.URL_SCHEME.length),new Yl(n)):null;var n};Sc.registerSaveRouter(n6),Sc.registerLoadRouter(n6);var dM=function(){function t(){at(X().getBool("IS_BROWSER"),function(){return"Current environment is not a web browser"}),at(typeof window>"u"||void 0!==window.localStorage,function(){return"Current browser does not appear to support localStorage"}),this.LS=window.localStorage}return t.prototype.listModels=function(){return st(this,void 0,void 0,function(){var n,e,r,i,s,c;return Ln(this,function(l){for(n={},e=Rl+S1,r=S1+S8,i=0;i<this.LS.length;++i)(s=this.LS.key(i)).startsWith(e)&&s.endsWith(r)&&(c=uM(s),n[c]=JSON.parse(this.LS.getItem(s)));return[2,n]})})},t.prototype.removeModel=function(n){return st(this,void 0,void 0,function(){var e,r;return Ln(this,function(i){var s;if(n=(s=n).startsWith(Yl.URL_SCHEME)?s.slice(Yl.URL_SCHEME.length):s,e=w8(n),null==this.LS.getItem(e.info))throw new Error("Cannot find model at path '"+n+"'");return r=JSON.parse(this.LS.getItem(e.info)),this.LS.removeItem(e.info),this.LS.removeItem(e.topology),this.LS.removeItem(e.weightSpecs),this.LS.removeItem(e.weightData),[2,r]})})},t}();if(X().getBool("IS_BROWSER"))try{M2.registerManager(Yl.URL_SCHEME,new dM)}catch{}function x8(t){return new Promise(function(n){return setTimeout(n)}).then(t)}var r6=function(){function t(n){if(!X().getBool("IS_BROWSER"))throw new Error("browserDownloads() cannot proceed because the current environment is not a browser.");n.startsWith(t.URL_SCHEME)&&(n=n.slice(t.URL_SCHEME.length)),null!=n&&0!==n.length||(n="model"),this.modelTopologyFileName=n+".json",this.weightDataFileName=n+".weights.bin"}return t.prototype.save=function(n){return st(this,void 0,void 0,function(){var e,s,c,l;return Ln(this,function(u){switch(u.label){case 0:if(typeof document>"u")throw new Error("Browser downloads are not supported in this environment since `document` is not present");if(e=window.URL.createObjectURL(new Blob([n.weightData],{type:"application/octet-stream"})),!(n.modelTopology instanceof ArrayBuffer))return[3,1];throw new Error("BrowserDownloads.save() does not support saving model topology in binary formats yet.");case 1:return s=window.URL.createObjectURL(new Blob([JSON.stringify({modelTopology:n.modelTopology,format:n.format,generatedBy:n.generatedBy,convertedBy:n.convertedBy,weightsManifest:[{paths:["./"+this.weightDataFileName],weights:n.weightSpecs}]})],{type:"application/json"})),(c=this.jsonAnchor??document.createElement("a")).download=this.modelTopologyFileName,c.href=s,[4,x8(function(){return c.dispatchEvent(new MouseEvent("click"))})];case 2:return u.sent(),null==n.weightData?[3,4]:((l=this.weightDataAnchor??document.createElement("a")).download=this.weightDataFileName,l.href=e,[4,x8(function(){return l.dispatchEvent(new MouseEvent("click"))})]);case 3:u.sent(),u.label=4;case 4:return[2,{modelArtifactsInfo:Al(n)}]}})})},t.URL_SCHEME="downloads://",t}(),mM=function(){function t(n){if(null==n||n.length<1)throw new Error("When calling browserFiles, at least 1 file is required, but received "+n);this.files=n}return t.prototype.load=function(){return st(this,void 0,void 0,function(){var n,e,r=this;return Ln(this,function(i){return n=this.files[0],e=this.files.slice(1),[2,new Promise(function(s,c){var l=new FileReader;l.onload=function(u){var d=JSON.parse(u.target.result),p=d.modelTopology;if(null!=p){0===e.length&&s({modelTopology:p});var M=d.weightsManifest;if(null!=M){var x;try{x=r.checkManifestAndWeightFiles(M,e)}catch(ne){return void c(ne)}var R=[],U=[],J=[];M.forEach(function(ne){ne.paths.forEach(function(ue){U.push(ue),J.push(null)}),R.push.apply(R,ne.weights)}),M.forEach(function(ne){ne.paths.forEach(function(ue){var Ie=new FileReader;Ie.onload=function(Ae){var Oe=Ae.target.result,Fe=U.indexOf(ue);J[Fe]=Oe,-1===J.indexOf(null)&&s({modelTopology:p,weightSpecs:R,weightData:e6(J),format:d.format,generatedBy:d.generatedBy,convertedBy:d.convertedBy,userDefinedMetadata:d.userDefinedMetadata})},Ie.onerror=function(Ae){return c("Failed to weights data from file of path '"+ue+"'.")},Ie.readAsArrayBuffer(x[ue])})})}else c(new Error("weightManifest field is missing from file "+n.name))}else c(new Error("modelTopology field is missing from file "+n.name))},l.onerror=function(u){return c("Failed to read model topology and weights manifest JSON from file '"+n.name+"'. BrowserFiles supports loading Keras-style tf.Model artifacts only.")},l.readAsText(n)})]})})},t.prototype.checkManifestAndWeightFiles=function(n,e){for(var r=[],i=e.map(function(u){return C8(u.name)}),s={},c=0,l=n;c<l.length;c++)l[c].paths.forEach(function(u){var d=C8(u);if(-1!==r.indexOf(d))throw new Error("Duplicate file basename found in weights manifest: '"+d+"'");if(r.push(d),-1===i.indexOf(d))throw new Error("Weight file with basename '"+d+"' is not provided.");s[u]=e[i.indexOf(d)]});if(r.length!==e.length)throw new Error("Mismatch in the number of files in weights manifest ("+r.length+") and the number of weight files provided ("+e.length+").");return s},t}();function k8(t,n,e,r){var s;at(null!=(s=t)&&Array.isArray(s)&&s.length>0,function(){return"promises must be a none empty array"}),function(s,c){at(s>=0&&s<=1,function(){return"Progress fraction must be in range [0, 1], but got startFraction "+s}),at(c>=0&&c<=1,function(){return"Progress fraction must be in range [0, 1], but got endFraction "+c}),at(c>=s,function(){return"startFraction must be no more than endFraction, but got startFraction "+s+" and endFraction "+c})}(e=e??0,r=r??1);var i=0;return Promise.all(t.map(function(s){return s.then(function(c){var l=e+ ++i/t.length*(r-e);return n(l),c}),s}))}function D8(t,n){return st(this,void 0,void 0,function(){var e,r,i,s,c,l,u,d,p;return Ln(this,function(M){switch(M.label){case 0:return null==n&&(n={}),e=n.fetchFunc??X().platform.fetch,r=t.map(function(x){return e(x,n.requestInit,{isBinary:!0})}),i=0,s=.5,null!=n.onProgress?[3,2]:[4,Promise.all(r)];case 1:return c=M.sent(),[3,4];case 2:return[4,k8(r,n.onProgress,i,s)];case 3:c=M.sent(),M.label=4;case 4:return l=c.map(function(x){return x.arrayBuffer()}),u=.5,d=1,null!=n.onProgress?[3,6]:[4,Promise.all(l)];case 5:return p=M.sent(),[3,8];case 6:return[4,k8(l,n.onProgress,u,d)];case 7:p=M.sent(),M.label=8;case 8:return[2,p]}})})}function P8(t){var n=this;return function(e,r,i){return void 0===r&&(r=""),st(n,void 0,void 0,function(){var s,c,l,u,d,p,M,x,R,U;return Ln(this,function(J){switch(J.label){case 0:if(s=e.map(function(){return!1}),c={},l=null!=i?i.map(function(){return!1}):[],u=[],e.forEach(function(ne,ue){var Ie=0;ne.weights.forEach(function(Ae){var Fe=Jd["quantization"in Ae?Ae.quantization.dtype:Ae.dtype]*rr(Ae.shape),et=function(){s[ue]=!0,null==c[ue]&&(c[ue]=[]),c[ue].push({manifestEntry:Ae,groupOffset:Ie,sizeBytes:Fe})};null!=i?i.forEach(function(Ct,yt){Ct===Ae.name&&(et(),l[yt]=!0)}):et(),u.push(Ae.name),Ie+=Fe})}),!l.every(function(ne){return ne}))throw d=i.filter(function(ne,ue){return!l[ue]}),new Error("Could not find weights in manifest with names: "+d.join(", ")+". \nManifest JSON has weights with names: "+u.join(", ")+".");return p=s.reduce(function(ne,ue,Ie){return ue&&ne.push(Ie),ne},[]),M=[],p.forEach(function(ne){e[ne].paths.forEach(function(ue){var Ie=r+(r.endsWith("/")?"":"/")+ue;M.push(Ie)})}),[4,t(M)];case 1:return x=J.sent(),R={},U=0,p.forEach(function(ne){for(var ue=e[ne].paths.length,Ie=0,Ae=0;Ae<ue;Ae++)Ie+=x[U+Ae].byteLength;for(var Oe=new ArrayBuffer(Ie),Fe=new Uint8Array(Oe),et=0,Ct=0;Ct<ue;Ct++){var yt=new Uint8Array(x[U+Ct]);Fe.set(yt,et),et+=yt.byteLength}c[ne].forEach(function(pt){var gt=M8(Oe.slice(pt.groupOffset,pt.groupOffset+pt.sizeBytes),[pt.manifestEntry]);for(var Bt in gt)R[Bt]=gt[Bt]}),U+=ue}),[2,R]}})})}}Sc.registerSaveRouter(function(t){return X().getBool("IS_BROWSER")&&!Array.isArray(t)&&t.startsWith(r6.URL_SCHEME)?(void 0===(n=t.slice(r6.URL_SCHEME.length))&&(n="model"),new r6(n)):null;var n});var o6=function(){function t(n,e){if(this.DEFAULT_METHOD="POST",null==e&&(e={}),this.weightPathPrefix=e.weightPathPrefix,this.onProgress=e.onProgress,null!=e.fetchFunc?(at("function"==typeof e.fetchFunc,function(){return"Must pass a function that matches the signature of `fetch` (see https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)"}),this.fetch=e.fetchFunc):this.fetch=X().platform.fetch,at(null!=n&&n.length>0,function(){return"URL path for http must not be null, undefined or empty."}),Array.isArray(n)&&at(2===n.length,function(){return"URL paths for http must have a length of 2, (actual length is "+n.length+")."}),this.path=n,null!=e.requestInit&&null!=e.requestInit.body)throw new Error("requestInit is expected to have no pre-existing body, but has one.");this.requestInit=e.requestInit||{}}return t.prototype.save=function(n){return st(this,void 0,void 0,function(){var e,s;return Ln(this,function(c){switch(c.label){case 0:if(n.modelTopology instanceof ArrayBuffer)throw new Error("BrowserHTTPRequest.save() does not support saving model topology in binary formats yet.");return(e=Object.assign({method:this.DEFAULT_METHOD},this.requestInit)).body=new FormData,e.body.append("model.json",new Blob([JSON.stringify({modelTopology:n.modelTopology,format:n.format,generatedBy:n.generatedBy,convertedBy:n.convertedBy,userDefinedMetadata:n.userDefinedMetadata,weightsManifest:[{paths:["./model.weights.bin"],weights:n.weightSpecs}]})],{type:"application/json"}),"model.json"),null!=n.weightData&&e.body.append("model.weights.bin",new Blob([n.weightData],{type:"application/octet-stream"}),"model.weights.bin"),[4,this.fetch(this.path,e)];case 1:if((s=c.sent()).ok)return[2,{modelArtifactsInfo:Al(n),responses:[s]}];throw new Error("BrowserHTTPRequest.save() failed due to HTTP response status "+s.status+".")}})})},t.prototype.load=function(){return st(this,void 0,void 0,function(){var n,e,r,i,s,c,l,u,d,p,M,x;return Ln(this,function(R){switch(R.label){case 0:return[4,this.fetch(this.path,this.requestInit)];case 1:if(!(n=R.sent()).ok)throw new Error("Request to "+this.path+" failed with status code "+n.status+". Please verify this URL points to the model JSON of the model to load.");R.label=2;case 2:return R.trys.push([2,4,,5]),[4,n.json()];case 3:return e=R.sent(),[3,5];case 4:throw R.sent(),r="Failed to parse model JSON of response from "+this.path+".",this.path.endsWith(".pb")?r+=" Your path contains a .pb file extension. Support for .pb models have been removed in TensorFlow.js 1.0 in favor of .json models. You can re-convert your Python TensorFlow model using the TensorFlow.js 1.0 conversion scripts or you can convert your.pb models with the 'pb2json'NPM script in the tensorflow/tfjs-converter repository.":r+=" Please make sure the server is serving valid JSON for this request.",new Error(r);case 5:if(s=e.weightsManifest,c=e.generatedBy,l=e.convertedBy,u=e.format,d=e.userDefinedMetadata,null==(i=e.modelTopology)&&null==s)throw new Error("The JSON from HTTP path "+this.path+" contains neither model topology or manifest for weights.");return null==s?[3,7]:[4,this.loadWeights(s)];case 6:x=R.sent(),p=x[0],M=x[1],R.label=7;case 7:return[2,{modelTopology:i,weightSpecs:p,weightData:M,userDefinedMetadata:d,generatedBy:c,convertedBy:l,format:u}]}})})},t.prototype.loadWeights=function(n){return st(this,void 0,void 0,function(){var r,i,s,c,l,u,d,M,x;return Ln(this,function(R){switch(R.label){case 0:for(void 0,void 0,J=(U=Array.isArray(this.path)?this.path[1]:this.path).lastIndexOf("/"),ne=U.lastIndexOf("?"),r=[U.substring(0,J)+"/",ne>J?U.substring(ne):""],i=r[0],s=r[1],c=this.weightPathPrefix||i,l=[],u=0,d=n;u<d.length;u++)l.push.apply(l,d[u].weights);return M=[],n.forEach(function(U){U.paths.forEach(function(J){M.push(c+J+s)})}),[4,D8(M,{requestInit:this.requestInit,fetchFunc:this.fetch,onProgress:this.onProgress})];case 1:return x=R.sent(),[2,[l,e6(x)]]}var U,J,ne})})},t.URL_SCHEME_REGEX=/^https?:\/\//,t}();function i6(t){return null!=t.match(o6.URL_SCHEME_REGEX)}var O8=function(t,n){return typeof fetch>"u"?null:(Array.isArray(t)?t.every(function(e){return i6(e)}):i6(t))?a6(t,{onProgress:n}):null};function a6(t,n){return new o6(t,n)}Sc.registerSaveRouter(O8),Sc.registerLoadRouter(O8);var Fl,s6=function(){function t(n){this.modelArtifacts=n}return t.prototype.load=function(){return st(this,void 0,void 0,function(){return Ln(this,function(n){return[2,this.modelArtifacts]})})},t}(),pM=function(){function t(n){this.saveHandler=n}return t.prototype.save=function(n){return st(this,void 0,void 0,function(){return Ln(this,function(e){return[2,this.saveHandler(n)]})})},t}(),I8=Object.freeze({browserFiles:function(t){return new mM(t)},browserHTTPRequest:function(t,n){return a6(t,n)},concatenateArrayBuffers:e6,decodeWeights:M8,encodeWeights:function(t,n){return st(this,void 0,void 0,function(){var e,r,i,s,c,l=this;return Ln(this,function(u){switch(u.label){case 0:for(e=[],r=[],i=Array.isArray(t)?t.map(function(d){return d.name}):Object.keys(t),s=function(d){var p=i[d],M=Array.isArray(t)?t[d].tensor:t[p];if("float32"!==M.dtype&&"int32"!==M.dtype&&"bool"!==M.dtype&&"string"!==M.dtype)throw new Error("Unsupported dtype in weight '"+p+"': "+M.dtype);var x={name:p,shape:M.shape,dtype:M.dtype};if("string"===M.dtype){var R=new Promise(function(U){return st(l,void 0,void 0,function(){var J,ne,ue,Ie,Ae,Oe,Fe;return Ln(this,function(et){switch(et.label){case 0:return[4,M.bytes()];case 1:for(J=et.sent(),ne=J.reduce(function(Ct,yt){return Ct+yt.length},0)+4*J.length,ue=new Uint8Array(ne),Ie=0,Ae=0;Ae<J.length;Ae++)Oe=J[Ae],Fe=new Uint8Array(new Uint32Array([Oe.length]).buffer),ue.set(Fe,Ie),ue.set(Oe,Ie+=4),Ie+=Oe.length;return U(ue),[2]}})})});r.push(R)}else r.push(M.data());null!=n&&(x.group=n),e.push(x)},c=0;c<i.length;++c)s(c);return[4,Promise.all(r)];case 1:return[2,{data:iM(u.sent()),specs:e}]}})})},fromMemory:function(t,n,e,r){return 1===arguments.length?null!=t.modelTopology||null!=t.weightSpecs?new s6(t):(console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."),new s6({modelTopology:t})):(console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."),new s6({modelTopology:t,weightSpecs:n,weightData:e,trainingConfig:r}))},getLoadHandlers:function(t,n){return Sc.getLoadHandlers(t,n)},getModelArtifactsInfoForJSON:Al,getSaveHandlers:function(t){return Sc.getSaveHandlers(t)},http:a6,isHTTPScheme:i6,loadWeights:function(t,n,e,r){return void 0===n&&(n=""),st(this,void 0,void 0,function(){return Ln(this,function(i){return[2,P8(function(s){return D8(s,{requestInit:r})})(t,n,e)]})})},registerLoadRouter:function(t){return Sc.registerLoadRouter(t)},registerSaveRouter:function(t){return Sc.registerSaveRouter(t)},weightsLoaderFactory:P8,withSaveHandler:function(t){return new pM(t)},copyModel:function(t,n){return st(this,void 0,void 0,function(){return Ln(this,function(e){return[2,b8(t,n,!1)]})})},listModels:function(){return st(this,void 0,void 0,function(){var t,n,e,r,i,s,c;return Ln(this,function(l){switch(l.label){case 0:t=M2.getSchemes(),n={},e=0,r=t,l.label=1;case 1:return e<r.length?[4,M2.getManager(i=r[e]).listModels()]:[3,4];case 2:for(c in s=l.sent())n[i+Nl+c]=s[c];l.label=3;case 3:return e++,[3,1];case 4:return[2,n]}})})},moveModel:function(t,n){return st(this,void 0,void 0,function(){return Ln(this,function(e){return[2,b8(t,n,!0)]})})},removeModel:function(t){return st(this,void 0,void 0,function(){var n;return Ln(this,function(e){return n=mu(t),[2,M2.getManager(n.scheme).removeModel(n.path)]})})}}),_M=kt({confusionMatrix_:function(t,n,e){var r=Qe(t,"labels","confusionMatrix"),i=Qe(n,"predictions","confusionMatrix");at(null==e||e>0&&Number.isInteger(e),function(){return"If provided, numClasses must be a positive integer, but got "+e}),at(1===r.rank,function(){return"Expected the rank of labels to be 1, but got "+r.rank}),at(1===i.rank,function(){return"Expected the rank of predictions to be 1, but got "+i.rank}),at(r.shape[0]===i.shape[0],function(){return"Mismatch in the number of examples: "+r.shape[0]+" vs. "+i.shape[0]+". Labels and predictions should have the same number of elements."}),at(e>0&&Number.isInteger(e),function(){return"numClasses is required to be a positive integer, but got "+e});var s=U2(r.asType("int32"),e),c=U2(i.asType("int32"),e);return s.transpose().matMul(c).asType("int32")}}),gM=(Object.freeze({confusionMatrix:_M}),kt({fromPixels_:function(t,n){if(void 0===n&&(n=3),n>4)throw new Error("Cannot construct Tensor with more than 4 channels from pixels.");if(null==t)throw new Error("pixels passed to tf.browser.fromPixels() can not be null");var e=!1,r=!1,i=!1,s=!1,c=!1;if(t.data instanceof Uint8Array)e=!0;else if(typeof ImageData<"u"&&t instanceof ImageData)r=!0;else if(typeof HTMLVideoElement<"u"&&t instanceof HTMLVideoElement)i=!0;else if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement)s=!0;else{if(null==t.getContext)throw new Error("pixels passed to tf.browser.fromPixels() must be either an HTMLVideoElement, HTMLImageElement, HTMLCanvasElement, ImageData in browser, or OffscreenCanvas, ImageData in webworker or {data: Uint32Array, width: number, height: number}, but was "+t.constructor.name);c=!0}if(i&&i&&t.readyState<2)throw new Error("The video element has not loaded data yet. Please wait for `loadeddata` event on the <video> element.");if(null!=ve("FromPixels",Ye.backendName))return Ye.runKernel("FromPixels",{pixels:t},{numChannels:n});var l,u,d=i?[t.videoWidth,t.videoHeight]:[t.width,t.height],p=d[0],M=d[1];if(c?l=t.getContext("2d").getImageData(0,0,p,M).data:r||e?l=t.data:(s||i)&&(null==Fl&&(Fl=document.createElement("canvas").getContext("2d")),Fl.canvas.width=p,Fl.canvas.height=M,Fl.drawImage(t,0,0,p,M),l=Fl.getImageData(0,0,p,M).data),4===n)u=new Int32Array(l);else{var x=p*M;u=new Int32Array(x*n);for(var R=0;R<x;R++)for(var U=0;U<n;++U)u[R*n+U]=l[4*R+U]}return ae(u,[M,p,n],"int32")}})),c6=Object.freeze({toPixels:function(t,n){return st(this,void 0,void 0,function(){var e,r,i,s,c,l,u,d,p,R,U,J,ne,ue,Ie,Ae,Oe,Fe,et,Ct,yt;return Ln(this,function(pt){switch(pt.label){case 0:if(e=Qe(t,"img","toPixels"),t instanceof Ao||(e=e.toInt()),2!==e.rank&&3!==e.rank)throw new Error("toPixels only supports rank 2 or 3 tensors, got rank "+e.rank+".");if(r=e.shape.slice(0,2),i=r[0],s=r[1],(c=2===e.rank?1:e.shape[2])>4||2===c)throw new Error("toPixels only supports depth of size 1, 3 or 4 but got "+c);return[4,e.data()];case 1:return l=pt.sent(),u=e.min(),d=e.max(),[4,Promise.all([u.data(),d.data()])];case 2:if(p=pt.sent(),R=p[0][0],U=p[1][0],u.dispose(),d.dispose(),"float32"===e.dtype){if(R<0||U>1)throw new Error("Tensor values for a float32 Tensor must be in the range [0 - 1] but got range ["+R+" - "+U+"].")}else{if("int32"!==e.dtype)throw new Error("Unsupported type for toPixels: "+e.dtype+". Please use float32 or int32 tensors.");if(R<0||U>255)throw new Error("Tensor values for a int32 Tensor must be in the range [0 - 255] but got range ["+R+" - "+U+"].")}for(J="float32"===e.dtype?255:1,ne=new Uint8ClampedArray(s*i*4),ue=0;ue<i*s;++ue)Ie=void 0,Ae=void 0,Oe=void 0,Fe=void 0,1===c?(Ie=l[ue]*J,Ae=l[ue]*J,Oe=l[ue]*J,Fe=255):3===c?(Ie=l[3*ue]*J,Ae=l[3*ue+1]*J,Oe=l[3*ue+2]*J,Fe=255):4===c&&(Ie=l[4*ue]*J,Ae=l[4*ue+1]*J,Oe=l[4*ue+2]*J,Fe=l[4*ue+3]*J),ne[0+(et=4*ue)]=Math.round(Ie),ne[et+1]=Math.round(Ae),ne[et+2]=Math.round(Oe),ne[et+3]=Math.round(Fe);return null!=n&&(n.width=s,n.height=i,Ct=n.getContext("2d"),yt=new ImageData(ne,s,i),Ct.putImageData(yt,0,0)),e!==t&&e.dispose(),[2,ne]}})})},fromPixels:gM}),A8=function(){function t(){}return t.prototype.getClassName=function(){return this.constructor.className},t.fromConfig=function(n,e){return new n(e)},t}(),N8=function(){function t(){this.classNameMap={}}return t.getMap=function(){return null==t.instance&&(t.instance=new t),t.instance},t.register=function(n){t.getMap().classNameMap[n.className]=[n,n.fromConfig]},t}();function Q1(t){at(null!=t.className,function(){return"Class being registered does not have the static className property defined."}),at("string"==typeof t.className,function(){return"className is required to be a string, but got type "+typeof t.className}),at(t.className.length>0,function(){return"Class being registered has an empty-string as its className, which is disallowed."}),N8.register(t)}function _u(){return 32===Ye.backend.floatPrecision()?.001:.1}function l6(t,n,e){var r=!0;if((Hi(t)||Hi(n))&&(r=!1),Hi(t)&&Hi(n)&&(r=!0),r){var i=t.constructor.name,s=n.constructor.name;if(i!==s)throw new Error("Arrays are of different type. Actual: "+i+". Expected: "+s)}if(Array.isArray(t)&&Array.isArray(n)){var c=qa(t),l=qa(n);if(!yi(c,l))throw new Error("Arrays have different shapes. Actual: ["+c+"]. Expected: ["+l+"]")}var u=Hi(t)?t:Ja(t),d=Hi(n)?n:Ja(n);if(u.length!==d.length)throw new Error("Arrays have different lengths actual: "+u.length+" vs expected: "+d.length+".\nActual: "+u+".\nExpected: "+d+".");for(var p=0;p<d.length;++p){var M=u[p],x=d[p];if(!e(M,x))throw new Error("Arrays differ: actual["+p+"] = "+M+", expected["+p+"] = "+x+".\nActual: "+u+".\nExpected: "+d+".")}}function u6(t,n,e){return!isFinite(t)&&!isFinite(n)||!(isNaN(t)||isNaN(n)||Math.abs(t-n)>e)}Object.freeze({Serializable:A8,SerializationMap:N8,registerClass:Q1}),Object.freeze({TEST_EPSILON_FLOAT16:.1,expectArraysClose:function(t,n,e){return null==e&&(e=_u()),l6(t,n,function(r,i){return u6(r,i,e)})},testEpsilon:_u,expectPromiseToFail:function(t,n){t().then(function(){return n.fail()},function(){return n()})},expectArraysEqual:function(t,n){var e="string"==typeof n||"number"==typeof n||"boolean"==typeof n?[n]:n;return Bi(t)||Bi(t[0])||Bi(n)||Bi(n[0])?l6(t,e,function(r,i){return r==i}):l6(t,n,function(r,i){return u6(r,i,0)})},expectNumbersClose:function(t,n,e){if(null==e&&(e=_u()),!u6(t,n,e))throw new Error("Numbers differ: actual === "+t+", expected === "+n)},expectValuesInRange:function(t,n,e){for(var r=0;r<t.length;r++)if(t[r]<n||t[r]>e)throw new Error("Value out of range:"+t[r]+" low: "+n+", high: "+e)},expectArrayBuffersEqual:function(t,n){expect(new Float32Array(t)).toEqual(new Float32Array(n))}}),Object.freeze({gpgpu_util:A9,webgl_util:Vc,forceHalfFloat:function(){X().set("WEBGL_FORCE_F16_TEXTURES",!0)},MathBackendWebGL:pp,setWebGLContext:$i,GPGPUContext:Gm});var L2=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return dt(n,t),n.prototype.minimize=function(e,r,i){void 0===r&&(r=!1);var s=this.computeGradients(e,i),c=s.value,l=s.grads;if(null!=i){var u=i.map(function(d){return{name:d.name,tensor:l[d.name]}});this.applyGradients(u)}else this.applyGradients(l);return Es(l),r?c:(c.dispose(),null)},Object.defineProperty(n.prototype,"iterations",{get:function(){return null==this.iterations_&&(this.iterations_=0),this.iterations_},enumerable:!0,configurable:!0}),n.prototype.incrementIterations=function(){this.iterations_=this.iterations+1},n.prototype.computeGradients=function(e,r){return function Xg(t,n){at(Xr(t),function(){return"The f passed in variableGrads(f) must be a function"}),at(null==n||Array.isArray(n)&&n.every(function(p){return p instanceof ac}),function(){return"The varList passed in variableGrads(f, varList) must be an array of variables"});var e=null!=n;if(!e)for(var r in n=[],Ye.registeredVariables)n.push(Ye.registeredVariables[r]);var i=e?n.filter(function(p){return!p.trainable}):null,s=n.length;at((n=n.filter(function(p){return p.trainable})).length>0,function(){return"variableGrads() expects at least one of the input variables to be trainable, but none of the "+s+" variables is trainable."});var c=Ye.gradients(t,n,null,!0),l=c.value,u=c.grads;at(u.some(function(p){return null!=p}),function(){return"Cannot find a connection between any variable and the result of the loss function y=f(x). Please make sure the operations that use variables are inside the function f passed to minimize()."}),at(0===l.rank,function(){return"The f passed in variableGrads(f) must return a scalar, but it returned a rank-"+l.rank+" tensor"});var d={};return n.forEach(function(p,M){null!=u[M]&&(d[p.name]=u[M])}),i?.forEach(function(p){return d[p.name]=null}),{value:l,grads:d}}(e,r)},n.prototype.dispose=function(){null!=this.iterations_&&Es(this.iterations_)},n.prototype.saveIterations=function(){return st(this,void 0,void 0,function(){return Ln(this,function(e){return null==this.iterations_&&(this.iterations_=0),[2,{name:"iter",tensor:wn(this.iterations_,"int32")}]})})},n.prototype.getWeights=function(){return st(this,void 0,void 0,function(){return Ln(this,function(e){throw new Error("getWeights() is not implemented for this optimizer yet.")})})},n.prototype.setWeights=function(e){return st(this,void 0,void 0,function(){return Ln(this,function(r){throw new Error("setWeights() is not implemented for this optimizer class "+this.getClassName())})})},n.prototype.extractIterations=function(e){return st(this,void 0,void 0,function(){var r;return Ln(this,function(i){switch(i.label){case 0:return r=this,[4,e[0].tensor.data()];case 1:return r.iterations_=i.sent()[0],[2,e.slice(1)]}})})},n}(A8);Object.defineProperty(L2,Symbol.hasInstance,{value:function(t){return null!=t.minimize&&null!=t.computeGradients&&null!=t.applyGradients}});var Y8=function(t){function n(e,r,i){void 0===i&&(i=null);var s=t.call(this)||this;return s.learningRate=e,s.rho=r,s.epsilon=i,s.accumulatedGrads=[],s.accumulatedUpdates=[],null==i&&(s.epsilon=Ye.backend.epsilon()),s}return dt(n,t),n.prototype.applyGradients=function(e){var r=this;(Array.isArray(e)?e.map(function(i){return i.name}):Object.keys(e)).forEach(function(i,s){var c=Ye.registeredVariables[i];null==r.accumulatedGrads[s]&&(r.accumulatedGrads[s]={originalName:i+"/accum_grad",variable:ir(function(){return Zo(c).variable(!1)})}),null==r.accumulatedUpdates[s]&&(r.accumulatedUpdates[s]={originalName:i+"/accum_var",variable:ir(function(){return Zo(c).variable(!1)})});var l=Array.isArray(e)?e[s].tensor:e[i];if(null!=l){var u=r.accumulatedGrads[s].variable,d=r.accumulatedUpdates[s].variable;ir(function(){var p=u.mul(r.rho).add(l.square().mul(1-r.rho)),M=d.add(r.epsilon).sqrt().div(u.add(r.epsilon).sqrt()).mul(l),x=d.mul(r.rho).add(M.square().mul(1-r.rho));u.assign(p),d.assign(x);var R=M.mul(-r.learningRate).add(c);c.assign(R)})}}),this.incrementIterations()},n.prototype.dispose=function(){null!=this.accumulatedUpdates&&(Es(this.accumulatedGrads.map(function(e){return e.variable})),Es(this.accumulatedUpdates.map(function(e){return e.variable})))},n.prototype.getWeights=function(){return st(this,void 0,void 0,function(){var e;return Ln(this,function(r){switch(r.label){case 0:return e=this.accumulatedGrads.concat(this.accumulatedUpdates),[4,this.saveIterations()];case 1:return[2,[r.sent()].concat(e.map(function(i){return{name:i.originalName,tensor:i.variable}}))]}})})},n.prototype.setWeights=function(e){return st(this,void 0,void 0,function(){var r;return Ln(this,function(i){switch(i.label){case 0:return[4,this.extractIterations(e)];case 1:return e=i.sent(),this.accumulatedGrads=e.slice(0,r=e.length/2).map(function(s){return{originalName:s.name,variable:s.tensor.variable(!1)}}),this.accumulatedUpdates=e.slice(r,2*r).map(function(s){return{originalName:s.name,variable:s.tensor.variable(!1)}}),[2]}})})},n.prototype.getConfig=function(){return{learningRate:this.learningRate,rho:this.rho,epsilon:this.epsilon}},n.fromConfig=function(e,r){return new e(r.learningRate,r.rho,r.epsilon)},n.className="Adadelta",n}(L2);Q1(Y8);var d6=function(t){function n(e,r){void 0===r&&(r=.1);var i=t.call(this)||this;return i.learningRate=e,i.initialAccumulatorValue=r,i.accumulatedGrads=[],i}return dt(n,t),n.prototype.applyGradients=function(e){var r=this;(Array.isArray(e)?e.map(function(i){return i.name}):Object.keys(e)).forEach(function(i,s){var c=Ye.registeredVariables[i];null==r.accumulatedGrads[s]&&(r.accumulatedGrads[s]={originalName:i+"/accumulator",variable:ir(function(){return to(c.shape,r.initialAccumulatorValue).variable(!1)})});var l=Array.isArray(e)?e[s].tensor:e[i];if(null!=l){var u=r.accumulatedGrads[s].variable;ir(function(){var d=u.add(l.square());u.assign(d);var p=l.div(d.add(Ye.backend.epsilon()).sqrt()).mul(-r.learningRate).add(c);c.assign(p)})}}),this.incrementIterations()},n.prototype.dispose=function(){null!=this.accumulatedGrads&&Es(this.accumulatedGrads.map(function(e){return e.variable}))},n.prototype.getWeights=function(){return st(this,void 0,void 0,function(){return Ln(this,function(e){switch(e.label){case 0:return[4,this.saveIterations()];case 1:return[2,[e.sent()].concat(this.accumulatedGrads.map(function(r){return{name:r.originalName,tensor:r.variable}}))]}})})},n.prototype.setWeights=function(e){return st(this,void 0,void 0,function(){return Ln(this,function(r){switch(r.label){case 0:return[4,this.extractIterations(e)];case 1:return e=r.sent(),this.accumulatedGrads=e.map(function(i){return{originalName:i.name,variable:i.tensor.variable(!1)}}),[2]}})})},n.prototype.getConfig=function(){return{learningRate:this.learningRate,initialAccumulatorValue:this.initialAccumulatorValue}},n.fromConfig=function(e,r){return new e(r.learningRate,r.initialAccumulatorValue)},n.className="Adagrad",n}(L2);Q1(d6);var F8=function(t){function n(e,r,i,s){void 0===s&&(s=null);var c=t.call(this)||this;return c.learningRate=e,c.beta1=r,c.beta2=i,c.epsilon=s,c.accumulatedFirstMoment=[],c.accumulatedSecondMoment=[],ir(function(){c.accBeta1=wn(r).variable(),c.accBeta2=wn(i).variable()}),null==s&&(c.epsilon=Ye.backend.epsilon()),c}return dt(n,t),n.prototype.applyGradients=function(e){var r=this,i=Array.isArray(e)?e.map(function(s){return s.name}):Object.keys(e);ir(function(){var s=ns(1,r.accBeta1),c=ns(1,r.accBeta2);i.forEach(function(l,u){var d=Ye.registeredVariables[l];null==r.accumulatedFirstMoment[u]&&(r.accumulatedFirstMoment[u]={originalName:l+"/m",variable:ir(function(){return Zo(d).variable(!1)})}),null==r.accumulatedSecondMoment[u]&&(r.accumulatedSecondMoment[u]={originalName:l+"/v",variable:ir(function(){return Zo(d).variable(!1)})});var p=Array.isArray(e)?e[u].tensor:e[l];if(null!=p){var M=r.accumulatedFirstMoment[u].variable,x=r.accumulatedSecondMoment[u].variable,R=M.mul(r.beta1).add(p.mul(1-r.beta1)),U=x.mul(r.beta2).add(p.square().mul(1-r.beta2)),J=R.div(s),ne=U.div(c);M.assign(R),x.assign(U);var ue=J.div(ne.sqrt().add(r.epsilon)).mul(-r.learningRate).add(d);d.assign(ue)}}),r.accBeta1.assign(r.accBeta1.mul(r.beta1)),r.accBeta2.assign(r.accBeta2.mul(r.beta2))}),this.incrementIterations()},n.prototype.dispose=function(){this.accBeta1.dispose(),this.accBeta2.dispose(),null!=this.accumulatedFirstMoment&&Es(this.accumulatedFirstMoment.map(function(e){return e.variable})),null!=this.accumulatedSecondMoment&&Es(this.accumulatedSecondMoment.map(function(e){return e.variable}))},n.prototype.getWeights=function(){return st(this,void 0,void 0,function(){var e;return Ln(this,function(r){switch(r.label){case 0:return e=this.accumulatedFirstMoment.concat(this.accumulatedSecondMoment),[4,this.saveIterations()];case 1:return[2,[r.sent()].concat(e.map(function(i){return{name:i.originalName,tensor:i.variable}}))]}})})},n.prototype.setWeights=function(e){return st(this,void 0,void 0,function(){var r,i=this;return Ln(this,function(s){switch(s.label){case 0:return[4,this.extractIterations(e)];case 1:return e=s.sent(),ir(function(){i.accBeta1.assign(N0(i.beta1,i.iterations_+1)),i.accBeta2.assign(N0(i.beta2,i.iterations_+1))}),this.accumulatedFirstMoment=e.slice(0,r=e.length/2).map(function(c){return{originalName:c.name,variable:c.tensor.variable(!1)}}),this.accumulatedSecondMoment=e.slice(r,2*r).map(function(c){return{originalName:c.name,variable:c.tensor.variable(!1)}}),[2]}})})},n.prototype.getConfig=function(){return{learningRate:this.learningRate,beta1:this.beta1,beta2:this.beta2,epsilon:this.epsilon}},n.fromConfig=function(e,r){return new e(r.learningRate,r.beta1,r.beta2,r.epsilon)},n.className="Adam",n}(L2);Q1(F8);var H8=function(t){function n(e,r,i,s,c){void 0===s&&(s=null),void 0===c&&(c=0);var l=t.call(this)||this;return l.learningRate=e,l.beta1=r,l.beta2=i,l.epsilon=s,l.decay=c,l.accumulatedFirstMoment=[],l.accumulatedWeightedInfNorm=[],ir(function(){l.iteration=wn(0).variable(),l.accBeta1=wn(r).variable()}),null==s&&(l.epsilon=Ye.backend.epsilon()),l}return dt(n,t),n.prototype.applyGradients=function(e){var r=this,i=Array.isArray(e)?e.map(function(s){return s.name}):Object.keys(e);ir(function(){var s=ns(1,r.accBeta1),c=Kc(-r.learningRate,r.iteration.mul(r.decay).add(1));i.forEach(function(l,u){var d=Ye.registeredVariables[l];null==r.accumulatedFirstMoment[u]&&(r.accumulatedFirstMoment[u]={originalName:l+"/m",variable:Zo(d).variable(!1)}),null==r.accumulatedWeightedInfNorm[u]&&(r.accumulatedWeightedInfNorm[u]={originalName:l+"/v",variable:Zo(d).variable(!1)});var p=Array.isArray(e)?e[u].tensor:e[l];if(null!=p){var M=r.accumulatedFirstMoment[u].variable,x=r.accumulatedWeightedInfNorm[u].variable,R=M.mul(r.beta1).add(p.mul(1-r.beta1)),U=x.mul(r.beta2),J=p.abs(),ne=U.maximum(J);M.assign(R),x.assign(ne);var ue=c.div(s).mul(R.div(ne.add(r.epsilon))).add(d);d.assign(ue)}}),r.iteration.assign(r.iteration.add(1)),r.accBeta1.assign(r.accBeta1.mul(r.beta1))}),this.incrementIterations()},n.prototype.dispose=function(){this.accBeta1.dispose(),this.iteration.dispose(),null!=this.accumulatedFirstMoment&&Es(this.accumulatedFirstMoment.map(function(e){return e.variable})),null!=this.accumulatedWeightedInfNorm&&Es(this.accumulatedWeightedInfNorm.map(function(e){return e.variable}))},n.prototype.getWeights=function(){return st(this,void 0,void 0,function(){return Ln(this,function(e){throw new Error("getWeights() is not implemented for Adamax yet.")})})},n.prototype.setWeights=function(e){return st(this,void 0,void 0,function(){return Ln(this,function(r){throw new Error("setWeights() is not implemented for Adamax yet.")})})},n.prototype.getConfig=function(){return{learningRate:this.learningRate,beta1:this.beta1,beta2:this.beta2,epsilon:this.epsilon,decay:this.decay}},n.fromConfig=function(e,r){return new e(r.learningRate,r.beta1,r.beta2,r.epsilon,r.decay)},n.className="Adamax",n}(L2);Q1(H8);var f6=function(t){function n(e){var r=t.call(this)||this;return r.learningRate=e,r.setLearningRate(e),r}return dt(n,t),n.prototype.applyGradients=function(e){var r=this;(Array.isArray(e)?e.map(function(i){return i.name}):Object.keys(e)).forEach(function(i,s){var c=Array.isArray(e)?e[s].tensor:e[i];if(null!=c){var l=Ye.registeredVariables[i];ir(function(){var u=r.c.mul(c).add(l);l.assign(u)})}}),this.incrementIterations()},n.prototype.setLearningRate=function(e){this.learningRate=e,null!=this.c&&this.c.dispose(),this.c=function Ei(t){return Ye.keep(t)}(wn(-e))},n.prototype.dispose=function(){this.c.dispose()},n.prototype.getWeights=function(){return st(this,void 0,void 0,function(){return Ln(this,function(e){switch(e.label){case 0:return[4,this.saveIterations()];case 1:return[2,[e.sent()]]}})})},n.prototype.setWeights=function(e){return st(this,void 0,void 0,function(){return Ln(this,function(r){switch(r.label){case 0:return[4,this.extractIterations(e)];case 1:if(0!==(e=r.sent()).length)throw new Error("SGD optimizer does not have settable weights.");return[2]}})})},n.prototype.getConfig=function(){return{learningRate:this.learningRate}},n.fromConfig=function(e,r){return new e(r.learningRate)},n.className="SGD",n}(L2);Q1(f6);var B8=function(t){function n(e,r,i){void 0===i&&(i=!1);var s=t.call(this,e)||this;return s.learningRate=e,s.momentum=r,s.useNesterov=i,s.accumulations=[],s.m=wn(s.momentum),s}return dt(n,t),n.prototype.applyGradients=function(e){var r=this;(Array.isArray(e)?e.map(function(i){return i.name}):Object.keys(e)).forEach(function(i,s){var c=Ye.registeredVariables[i];null==r.accumulations[s]&&(r.accumulations[s]={originalName:i+"/momentum",variable:ir(function(){return Zo(c).variable(!1)})});var l=r.accumulations[s].variable,u=Array.isArray(e)?e[s].tensor:e[i];null!=u&&ir(function(){var d,p=r.m.mul(l).add(u);d=r.useNesterov?r.c.mul(u.add(p.mul(r.m))).add(c):r.c.mul(p).add(c),l.assign(p),c.assign(d)})}),this.incrementIterations()},n.prototype.dispose=function(){this.m.dispose(),null!=this.accumulations&&Es(this.accumulations.map(function(e){return e.variable}))},n.prototype.setMomentum=function(e){this.momentum=e},n.prototype.getWeights=function(){return st(this,void 0,void 0,function(){return Ln(this,function(e){switch(e.label){case 0:return[4,this.saveIterations()];case 1:return[2,[e.sent()].concat(this.accumulations.map(function(r){return{name:r.originalName,tensor:r.variable}}))]}})})},n.prototype.setWeights=function(e){return st(this,void 0,void 0,function(){return Ln(this,function(r){switch(r.label){case 0:return[4,this.extractIterations(e)];case 1:return e=r.sent(),this.accumulations=e.map(function(i){return{originalName:i.name,variable:i.tensor.variable(!1)}}),[2]}})})},n.prototype.getConfig=function(){return{learningRate:this.learningRate,momentum:this.momentum,useNesterov:this.useNesterov}},n.fromConfig=function(e,r){return new e(r.learningRate,r.momentum,r.useNesterov)},n.className="Momentum",n}(f6);Q1(B8);var h6=function(t){function n(e,r,i,s,c){void 0===r&&(r=.9),void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=!1);var l=t.call(this)||this;if(l.learningRate=e,l.decay=r,l.momentum=i,l.epsilon=s,l.accumulatedMeanSquares=[],l.accumulatedMoments=[],l.accumulatedMeanGrads=[],l.centered=c,null==s&&(l.epsilon=Ye.backend.epsilon()),null==e)throw new Error("learningRate for RMSPropOptimizer must be defined.");return l}return dt(n,t),n.prototype.applyGradients=function(e){var r=this;(Array.isArray(e)?e.map(function(i){return i.name}):Object.keys(e)).forEach(function(i,s){var c=Ye.registeredVariables[i];null==r.accumulatedMeanSquares[s]&&(r.accumulatedMeanSquares[s]={originalName:i+"/rms",variable:ir(function(){return Zo(c).variable(!1)})}),null==r.accumulatedMoments[s]&&(r.accumulatedMoments[s]={originalName:i+"/momentum",variable:ir(function(){return Zo(c).variable(!1)})}),null==r.accumulatedMeanGrads[s]&&r.centered&&(r.accumulatedMeanGrads[s]={originalName:i+"/mg",variable:ir(function(){return Zo(c).variable(!1)})});var l=Array.isArray(e)?e[s].tensor:e[i];if(null!=l){var u=r.accumulatedMeanSquares[s].variable,d=r.accumulatedMoments[s].variable;ir(function(){var p=u.mul(r.decay).add(l.square().mul(1-r.decay));if(r.centered){var M=r.accumulatedMeanGrads[s].variable,x=M.mul(r.decay).add(l.mul(1-r.decay)),R=d.mul(r.momentum).add(l.mul(r.learningRate).div(p.sub(x.square().add(r.epsilon)).sqrt()));u.assign(p),M.assign(x),d.assign(R);var U=c.sub(R);c.assign(U)}else{var J=u.mul(r.decay).add(l.square().mul(1-r.decay));R=d.mul(r.momentum).add(l.mul(r.learningRate).div(J.add(r.epsilon).sqrt())),u.assign(J),d.assign(R),U=c.sub(R),c.assign(U)}})}}),this.incrementIterations()},n.prototype.dispose=function(){null!=this.accumulatedMeanSquares&&Es(this.accumulatedMeanSquares.map(function(e){return e.variable})),null!=this.accumulatedMeanGrads&&this.centered&&Es(this.accumulatedMeanGrads.map(function(e){return e.variable})),null!=this.accumulatedMoments&&Es(this.accumulatedMoments.map(function(e){return e.variable}))},n.prototype.getWeights=function(){return st(this,void 0,void 0,function(){var e;return Ln(this,function(r){switch(r.label){case 0:return e=this.accumulatedMeanSquares.concat(this.accumulatedMoments),this.centered&&e.push.apply(e,this.accumulatedMeanGrads),[4,this.saveIterations()];case 1:return[2,[r.sent()].concat(e.map(function(i){return{name:i.originalName,tensor:i.variable}}))]}})})},n.prototype.setWeights=function(e){return st(this,void 0,void 0,function(){var r;return Ln(this,function(i){switch(i.label){case 0:return[4,this.extractIterations(e)];case 1:return e=i.sent(),this.accumulatedMeanSquares=e.slice(0,r=this.centered?e.length/3:e.length/2).map(function(s){return{originalName:s.name,variable:s.tensor.variable(!1)}}),this.accumulatedMoments=e.slice(r,2*r).map(function(s){return{originalName:s.name,variable:s.tensor.variable(!1)}}),this.centered&&(this.accumulatedMeanGrads=e.slice(2*r,3*r).map(function(s){return{originalName:s.name,variable:s.tensor.variable(!1)}})),[2]}})})},n.prototype.getConfig=function(){return{learningRate:this.learningRate,decay:this.decay,momentum:this.momentum,epsilon:this.epsilon,centered:this.centered}},n.fromConfig=function(e,r){return new e(r.learningRate,r.decay,r.momentum,r.epsilon,r.centered)},n.className="RMSProp",n}(L2);Q1(h6),function(){function t(){}t.sgd=function(n){return new f6(n)},t.momentum=function(n,e,r){return void 0===r&&(r=!1),new B8(n,e,r)},t.rmsprop=function(n,e,r,i,s){return void 0===e&&(e=.9),void 0===r&&(r=0),void 0===i&&(i=null),void 0===s&&(s=!1),new h6(n,e,r,i,s)},t.adam=function(n,e,r,i){return void 0===n&&(n=.001),void 0===e&&(e=.9),void 0===r&&(r=.999),void 0===i&&(i=null),new F8(n,e,r,i)},t.adadelta=function(n,e,r){return void 0===n&&(n=.001),void 0===e&&(e=.95),void 0===r&&(r=null),new Y8(n,e,r)},t.adamax=function(n,e,r,i,s){return void 0===n&&(n=.002),void 0===e&&(e=.9),void 0===r&&(r=.999),void 0===i&&(i=null),void 0===s&&(s=0),new H8(n,e,r,i,s)},t.adagrad=function(n,e){return void 0===e&&(e=.1),new d6(n,e)}}(),typeof requestAnimationFrame<"u"?requestAnimationFrame:typeof setImmediate<"u"&&setImmediate,Ao.prototype.squaredDifference=function(t){return _p(this,t)},tn=Qy;var m6=function(t,n){return(m6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])})(t,n)};function co(t,n){function e(){this.constructor=t}m6(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var Ws=function(){return Ws=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++)for(var s in e=arguments[r])Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s]);return n},Ws.apply(this,arguments)};function Mr(t,n,e,r){return new(e||(e=Promise))(function(s,c){function l(p){try{d(r.next(p))}catch(M){c(M)}}function u(p){try{d(r.throw(p))}catch(M){c(M)}}function d(p){p.done?s(p.value):function i(s){return s instanceof e?s:new e(function(c){c(s)})}(p.value).then(l,u)}d((r=r.apply(t,n||[])).next())})}function Lr(t,n){var r,i,s,c,e={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return c={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function l(d){return function(p){return function u(d){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(s=2&d[0]?i.return:d[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,d[1])).done)return s;switch(i=0,s&&(d=[2&d[0],s.value]),d[0]){case 0:case 1:s=d;break;case 4:return e.label++,{value:d[1],done:!1};case 5:e.label++,i=d[1],d=[0];continue;case 7:d=e.ops.pop(),e.trys.pop();continue;default:if(!(s=(s=e.trys).length>0&&s[s.length-1])&&(6===d[0]||2===d[0])){e=0;continue}if(3===d[0]&&(!s||d[1]>s[0]&&d[1]<s[3])){e.label=d[1];break}if(6===d[0]&&e.label<s[1]){e.label=s[1],s=d;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(d);break}s[2]&&e.ops.pop(),e.trys.pop();continue}d=n.call(t,e)}catch(p){d=[6,p],i=0}finally{r=s=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,p])}}}function H0(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),i=0;for(n=0;n<e;n++)for(var s=arguments[n],c=0,l=s.length;c<l;c++,i++)r[i]=s[c];return r}var Hl=function(){function t(n,e){if(!J2(n)||!J2(e))throw new Error("Dimensions.constructor - expected width and height to be valid numbers, instead have "+JSON.stringify({width:n,height:e}));this._width=n,this._height=e}return Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),t.prototype.reverse=function(){return new t(1/this.width,1/this.height)},t}();function j0(t,n){return t instanceof Ao&&t.shape.length===n}function W0(t){return j0(t,3)}function S2(t){return j0(t,4)}function G8(t){return t%2==0}function $8(t){return t&&t.width&&t.height}function p6(t){return t.reduce(function(n,e){return n.add(e)},new pi(0,0)).div(new pi(t.length,t.length))}function Bl(t,n,e){return Array(t).fill(0).map(function(r,i){return n+i*e})}function J2(t){return!!t&&t!==1/0&&t!==-1/0&&!isNaN(t)||0===t}function X8(t){return J2(t)&&0<=t&&t<=1}var pi=function(){function t(n,e){this._x=n,this._y=e}return Object.defineProperty(t.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),t.prototype.add=function(n){return new t(this.x+n.x,this.y+n.y)},t.prototype.sub=function(n){return new t(this.x-n.x,this.y-n.y)},t.prototype.mul=function(n){return new t(this.x*n.x,this.y*n.y)},t.prototype.div=function(n){return new t(this.x/n.x,this.y/n.y)},t.prototype.abs=function(){return new t(Math.abs(this.x),Math.abs(this.y))},t.prototype.magnitude=function(){return Math.sqrt(Math.pow(this.x,2)+Math.pow(this.y,2))},t.prototype.floor=function(){return new t(Math.floor(this.x),Math.floor(this.y))},t}(),q1=function(){function t(n,e){void 0===e&&(e=!0);var r=n||{},i=[r.left,r.top,r.right,r.bottom].every(J2),s=[r.x,r.y,r.width,r.height].every(J2);if(!s&&!i)throw new Error("Box.constructor - expected box to be IBoundingBox | IRect, instead have "+JSON.stringify(r));var c=s?[r.x,r.y,r.width,r.height]:[r.left,r.top,r.right-r.left,r.bottom-r.top],l=c[0],u=c[1],d=c[2],p=c[3];t.assertIsValidBox({x:l,y:u,width:d,height:p},"Box.constructor",e),this._x=l,this._y=u,this._width=d,this._height=p}return t.isRect=function(n){return!!n&&[n.x,n.y,n.width,n.height].every(J2)},t.assertIsValidBox=function(n,e,r){if(void 0===r&&(r=!1),!t.isRect(n))throw new Error(e+" - invalid box: "+JSON.stringify(n)+", expected object with properties x, y, width, height");if(!r&&(n.width<0||n.height<0))throw new Error(e+" - width ("+n.width+") and height ("+n.height+") must be positive numbers")},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"area",{get:function(){return this.width*this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return new pi(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRight",{get:function(){return new pi(this.right,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomLeft",{get:function(){return new pi(this.left,this.bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRight",{get:function(){return new pi(this.right,this.bottom)},enumerable:!0,configurable:!0}),t.prototype.round=function(){var n=[this.x,this.y,this.width,this.height].map(function(c){return Math.round(c)});return new t({x:n[0],y:n[1],width:n[2],height:n[3]})},t.prototype.floor=function(){var n=[this.x,this.y,this.width,this.height].map(function(c){return Math.floor(c)});return new t({x:n[0],y:n[1],width:n[2],height:n[3]})},t.prototype.toSquare=function(){var n=this,e=n.x,r=n.y,i=n.width,s=n.height,c=Math.abs(i-s);return i<s&&(e-=c/2,i+=c),s<i&&(r-=c/2,s+=c),new t({x:e,y:r,width:i,height:s})},t.prototype.rescale=function(n){var e=$8(n)?n.width:n,r=$8(n)?n.height:n;return new t({x:this.x*e,y:this.y*r,width:this.width*e,height:this.height*r})},t.prototype.pad=function(n,e){var r=[this.x-n/2,this.y-e/2,this.width+n,this.height+e];return new t({x:r[0],y:r[1],width:r[2],height:r[3]})},t.prototype.clipAtImageBorders=function(n,e){var r=this,s=r.y,c=r.right,l=r.bottom,u=Math.max(r.x,0),d=Math.max(s,0),M=l-d;return new t({x:u,y:d,width:Math.min(c-u,n-u),height:Math.min(M,e-d)}).floor()},t.prototype.shift=function(n,e){return new t({x:this.x+n,y:this.y+e,width:this.width,height:this.height})},t.prototype.padAtBorders=function(n,e){var r=this.width+1,i=this.height+1,l=r,u=i,d=this.left,p=this.top,M=this.right,x=this.bottom;return M>e&&(l=-M+e+r,M=e),x>n&&(u=-x+n+i,x=n),d<1&&(u=2-d,d=1),p<1&&(u=2-p,p=1),{dy:1,edy:u,dx:1,edx:l,y:p,ey:x,x:d,ex:M,w:r,h:i}},t.prototype.calibrate=function(n){return new t({left:this.left+n.left*this.width,top:this.top+n.top*this.height,right:this.right+n.right*this.width,bottom:this.bottom+n.bottom*this.height}).toSquare().round()},t}(),gu=function(t){function n(e,r,i,s,c){return void 0===c&&(c=!1),t.call(this,{left:e,top:r,right:i,bottom:s},c)||this}return co(n,t),n}(q1),Z8=function(){function t(n,e,r,i,s){this._imageDims=new Hl(s.width,s.height),this._score=n,this._classScore=e,this._className=r,this._box=new q1(i).rescale(this._imageDims)}return Object.defineProperty(t.prototype,"score",{get:function(){return this._score},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classScore",{get:function(){return this._classScore},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"box",{get:function(){return this._box},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageDims",{get:function(){return this._imageDims},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.imageDims.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.imageDims.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeBox",{get:function(){return new q1(this._box).rescale(this.imageDims.reverse())},enumerable:!0,configurable:!0}),t.prototype.forSize=function(n,e){return new t(this.score,this.classScore,this.className,this.relativeBox,{width:n,height:e})},t}(),f1=function(t){function n(e,r,i){return t.call(this,e,e,"",r,i)||this}return co(n,t),n.prototype.forSize=function(e,r){var i=t.prototype.forSize.call(this,e,r);return new n(i.score,i.relativeBox,i.imageDims)},n}(Z8);function vu(t,n,e){void 0===e&&(e=!0);var s=Math.max(0,Math.min(t.right,n.right)-Math.max(t.left,n.left))*Math.max(0,Math.min(t.bottom,n.bottom)-Math.max(t.top,n.top));return e?s/(t.area+n.area-s):s/Math.min(t.area,n.area)}function U0(t,n,e,r){void 0===r&&(r=!0);for(var i=n.map(function(l,u){return{score:l,boxIndex:u}}).sort(function(l,u){return l.score-u.score}).map(function(l){return l.boxIndex}),s=[],c=function(){var l=i.pop();s.push(l);for(var u=i,d=[],p=0;p<u.length;p++)d.push(vu(t[l],t[u[p]],r));i=i.filter(function(U,J){return d[J]<=e})};i.length>0;)c();return s}function V0(t,n){return ir(function(){var e=n[0],r=n[1],i=n[2],s=to(H0(t.shape.slice(0,3),[1]),e),c=to(H0(t.shape.slice(0,3),[1]),r),l=to(H0(t.shape.slice(0,3),[1]),i),u=Ia([s,c,l],3);return ns(t,u)})}function _6(t){return 1/(1+Math.exp(-t))}var os,yu=function(t){function n(e,r,i,s,c){return void 0===c&&(c=!1),t.call(this,{x:e,y:r,width:i,height:s},c)||this}return co(n,t),n}(q1),Mu=function(){function t(n,e,r){void 0===r&&(r=new pi(0,0));var i=e.width,s=e.height;this._imgDims=new Hl(i,s),this._shift=r,this._positions=n.map(function(c){return c.mul(new pi(i,s)).add(r)})}return Object.defineProperty(t.prototype,"shift",{get:function(){return new pi(this._shift.x,this._shift.y)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this._imgDims.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this._imgDims.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._positions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativePositions",{get:function(){var n=this;return this._positions.map(function(e){return e.sub(n._shift).div(new pi(n.imageWidth,n.imageHeight))})},enumerable:!0,configurable:!0}),t.prototype.forSize=function(n,e){return new this.constructor(this.relativePositions,{width:n,height:e})},t.prototype.shiftBy=function(n,e){return new this.constructor(this.relativePositions,this._imgDims,new pi(n,e))},t.prototype.shiftByPoint=function(n){return this.shiftBy(n.x,n.y)},t.prototype.align=function(n,e){if(void 0===e&&(e={}),n){var r=n instanceof f1?n.box.floor():new q1(n);return this.shiftBy(r.x,r.y).align(null,e)}var i=Object.assign({},{useDlibAlignment:!1,minBoxPadding:.2},e),c=i.minBoxPadding;return i.useDlibAlignment?this.alignDlib():this.alignMinBbox(c)},t.prototype.alignDlib=function(){var n=this.getRefPointsForAlignment(),r=n[1],i=n[2],s=function(M){return i.sub(M).magnitude()},c=(s(n[0])+s(r))/2,l=Math.floor(c/.45),u=p6(n),d=Math.floor(Math.max(0,u.x-.5*l)),p=Math.floor(Math.max(0,u.y-.43*l));return new yu(d,p,Math.min(l,this.imageWidth+d),Math.min(l,this.imageHeight+p))},t.prototype.alignMinBbox=function(n){var e=function wM(t){var n=t.map(function(l){return l.x}),e=t.map(function(l){return l.y}),r=n.reduce(function(l,u){return u<l?u:l},1/0),i=e.reduce(function(l,u){return u<l?u:l},1/0),s=n.reduce(function(l,u){return l<u?u:l},0),c=e.reduce(function(l,u){return l<u?u:l},0);return new gu(r,i,s,c)}(this.positions);return e.pad(e.width*n,e.height*n)},t.prototype.getRefPointsForAlignment=function(){throw new Error("getRefPointsForAlignment not implemented by base class")},t}(),PM=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.getRefPointsForAlignment=function(){var e=this.positions;return[e[0],e[1],p6([e[3],e[4]])]},n}(Mu),g6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.getJawOutline=function(){return this.positions.slice(0,17)},n.prototype.getLeftEyeBrow=function(){return this.positions.slice(17,22)},n.prototype.getRightEyeBrow=function(){return this.positions.slice(22,27)},n.prototype.getNose=function(){return this.positions.slice(27,36)},n.prototype.getLeftEye=function(){return this.positions.slice(36,42)},n.prototype.getRightEye=function(){return this.positions.slice(42,48)},n.prototype.getMouth=function(){return this.positions.slice(48,68)},n.prototype.getRefPointsForAlignment=function(){return[this.getLeftEye(),this.getRightEye(),this.getMouth()].map(p6)},n}(Mu),J8=function(){function t(n,e){this._label=n,this._distance=e}return Object.defineProperty(t.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),t.prototype.toString=function(n){return void 0===n&&(n=!0),this.label+(n?" ("+function TM(t,n){void 0===n&&(n=2);var e=Math.pow(10,n);return Math.floor(t*e)/e}(this.distance)+")":"")},t}(),Q8=function(t){function n(e,r){var i=t.call(this,e)||this;return i._label=r,i}return co(n,t),n.assertIsValidLabeledBox=function(e,r){if(q1.assertIsValidBox(e,r),!J2(e.label))throw new Error(r+" - expected property label ("+e.label+") to be a number")},Object.defineProperty(n.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),n}(q1),G0=function(){function t(n,e){if("string"!=typeof n)throw new Error("LabeledFaceDescriptors - constructor expected label to be a string");if(!Array.isArray(e)||e.some(function(r){return!(r instanceof Float32Array)}))throw new Error("LabeledFaceDescriptors - constructor expected descriptors to be an array of Float32Array");this._label=n,this._descriptors=e}return Object.defineProperty(t.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"descriptors",{get:function(){return this._descriptors},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return{label:this.label,descriptors:this.descriptors.map(function(n){return Array.from(n)})}},t.fromJSON=function(n){var e=n.descriptors.map(function(r){return new Float32Array(r)});return new t(n.label,e)},t}();function v6(t,n){return Object.assign({},t,{detection:n})}function y6(){var t=window.fetch||function(){throw new Error("fetch - missing fetch implementation for browser environment")};return{Canvas:HTMLCanvasElement,CanvasRenderingContext2D,Image:HTMLImageElement,ImageData,Video:HTMLVideoElement,createCanvasElement:function(){return document.createElement("canvas")},createImageElement:function(){return document.createElement("img")},fetch:t,readFile:function(){throw new Error("readFile - filesystem not available for browser environment")}}}function q8(t){var n="";if(!t)try{t=f(Object(function(){var i=new Error("Cannot find module 'fs'");throw i.code="MODULE_NOT_FOUND",i}()))}catch(r){n=r.toString()}return{readFile:t?function(r){return new Promise(function(i,s){t.readFile(r,function(c,l){return c?s(c):i(l)})})}:function(){throw new Error("readFile - failed to require fs in nodejs environment with error: "+n)}}}function M6(){var t=global.Canvas||global.HTMLCanvasElement,n=global.Image||global.HTMLImageElement,i=global.fetch||function(){throw new Error("fetch - missing fetch implementation for nodejs environment")},s=q8();return Ws({Canvas:t||function c(){},CanvasRenderingContext2D:global.CanvasRenderingContext2D||function c(){},Image:n||function c(){},ImageData:global.ImageData||function c(){},Video:global.HTMLVideoElement||function c(){},createCanvasElement:function(){if(t)return new t;throw new Error("createCanvasElement - missing Canvas implementation for nodejs environment")},createImageElement:function(){if(n)return new n;throw new Error("createImageElement - missing Image implementation for nodejs environment")},fetch:i},s)}function e5(){return"object"==typeof window&&typeof document<"u"&&typeof HTMLImageElement<"u"&&typeof HTMLCanvasElement<"u"&&typeof HTMLVideoElement<"u"&&typeof ImageData<"u"&&typeof CanvasRenderingContext2D<"u"}function t5(){return"object"==typeof global&&typeof process<"u"&&!!process.version}function C6(t){os=t}function b6(){e5()&&C6(y6()),t5()&&C6(M6())}!function(t){function n(e,r,i,s){var c=t.call(this,e,r)||this;return c._score=i,c._classScore=s,c}co(n,t),n.assertIsValidPredictedBox=function(e,r){if(Q8.assertIsValidLabeledBox(e,r),!X8(e.score)||!X8(e.classScore))throw new Error(r+" - expected properties score ("+e.score+") and ("+e.classScore+") to be a number between [0, 1]")},Object.defineProperty(n.prototype,"score",{get:function(){return this._score},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"classScore",{get:function(){return this._classScore},enumerable:!0,configurable:!0})}(Q8);var Us={getEnv:function IM(){if(!os)throw new Error("getEnv - environment is not defined, check isNodejs() and isBrowser()");return os},setEnv:C6,initialize:b6,createBrowserEnv:y6,createFileSystem:q8,createNodejsEnv:M6,monkeyPatch:function AM(t){if(os||b6(),!os)throw new Error("monkeyPatch - environment is not defined, check isNodejs() and isBrowser()");var n=t.Canvas,e=void 0===n?os.Canvas:n,r=t.Image,i=void 0===r?os.Image:r;os.Canvas=e,os.Image=i,os.createCanvasElement=t.createCanvasElement||function(){return new e},os.createImageElement=t.createImageElement||function(){return new i},os.ImageData=t.ImageData||os.ImageData,os.Video=t.Video||os.Video,os.fetch=t.fetch||os.fetch,os.readFile=t.readFile||os.readFile},isBrowser:e5,isNodejs:t5};function L6(t){return Us.isNodejs()||"string"!=typeof t?t:document.getElementById(t)}function T1(t){var n=Us.getEnv(),e=n.Canvas;if(t instanceof n.CanvasRenderingContext2D)return t;var i=L6(t);if(!(i instanceof e))throw new Error("resolveContext2d - expected canvas to be of instance of Canvas");var s=i.getContext("2d");if(!s)throw new Error("resolveContext2d - canvas 2d context is null");return s}b6();var e2=(()=>(function(t){t.TOP_LEFT="TOP_LEFT",t.TOP_RIGHT="TOP_RIGHT",t.BOTTOM_LEFT="BOTTOM_LEFT",t.BOTTOM_RIGHT="BOTTOM_RIGHT"}(e2||(e2={})),e2))(),S6=function t(n){void 0===n&&(n={});var r=n.backgroundColor,i=n.fontColor,s=n.fontSize,c=n.fontStyle,l=n.padding;this.anchorPosition=n.anchorPosition||e2.TOP_LEFT,this.backgroundColor=r||"rgba(0, 0, 0, 0.5)",this.fontColor=i||"rgba(255, 255, 255, 1)",this.fontSize=s||14,this.fontStyle=c||"Georgia",this.padding=l||4};!function(){function t(n,e,r){void 0===r&&(r={}),this.text="string"==typeof n?[n]:n instanceof t?n.text:n,this.anchor=e,this.options=new S6(r)}t.prototype.measureWidth=function(n){var e=this.options.padding;return this.text.map(function(r){return n.measureText(r).width}).reduce(function(r,i){return r<i?i:r},0)+2*e},t.prototype.measureHeight=function(){var n=this.options;return this.text.length*n.fontSize+2*n.padding},t.prototype.getUpperLeft=function(n,e){var r=this.options.anchorPosition,i=r===e2.BOTTOM_RIGHT||r===e2.TOP_RIGHT,s=r===e2.BOTTOM_LEFT||r===e2.BOTTOM_RIGHT,c=this.measureWidth(n),l=this.measureHeight(),u=i?this.anchor.x-c:this.anchor.x,d=s?this.anchor.y-l:this.anchor.y;if(e){var M=e.height;return{x:Math.max(Math.min(u,e.width-c),0),y:Math.max(Math.min(d,M-l),0)}}return{x:u,y:d}},t.prototype.draw=function(n){var e=L6(n),r=T1(e),i=this.options,s=i.backgroundColor,c=i.fontColor,l=i.fontSize,d=i.padding;r.font=l+"px "+i.fontStyle;var p=this.measureWidth(r),M=this.measureHeight();r.fillStyle=s;var x=this.getUpperLeft(r,e);r.fillRect(x.x,x.y,p,M),r.fillStyle=c,this.text.forEach(function(R,U){r.fillText(R,d+x.x,d+x.y+(U+1)*l)})}}();function r5(t){var n=Us.getEnv();return t instanceof n.Image&&t.complete||t instanceof n.Video&&t.readyState>=3}function T6(t){var n=Us.getEnv(),r=n.Video;return t instanceof n.Image?new Hl(t.naturalWidth,t.naturalHeight):t instanceof r?new Hl(t.videoWidth,t.videoHeight):new Hl(t.width,t.height)}function Cu(t){var n=t.width,e=t.height,i=(0,Us.getEnv().createCanvasElement)();return i.width=n,i.height=e,i}function $0(t,n){var e=Us.getEnv().ImageData;if(!(t instanceof e||r5(t)))throw new Error("createCanvasFromMedia - media has not finished loading yet");var r=n||T6(t),i=r.width,s=r.height,c=Cu({width:i,height:s});return t instanceof e?T1(c).putImageData(t,0,0):T1(c).drawImage(t,0,0,i,s),c}function YM(t,n){return Mr(this,void 0,void 0,function(){var e,r,i,s,c,l;return Lr(this,function(u){switch(u.label){case 0:return e=n||Us.getEnv().createCanvasElement(),r=t.shape.slice(S2(t)?1:0),i=r[0],s=r[1],c=r[2],l=ir(function(){return t.as3D(i,s,c).toInt()}),[4,c6.toPixels(l,e)];case 1:return u.sent(),l.dispose(),[2,e]}})})}function o5(t){var n=Us.getEnv();return t instanceof n.Image||t instanceof n.Canvas||t instanceof n.Video}var bu=function(){function t(n,e){var r=this;if(void 0===e&&(e=!1),this._imageTensors=[],this._canvases=[],this._treatAsBatchInput=!1,this._inputDimensions=[],!Array.isArray(n))throw new Error("NetInput.constructor - expected inputs to be an Array of TResolvedNetInput or to be instanceof tf.Tensor4D, instead have "+n);this._treatAsBatchInput=e,this._batchSize=n.length,n.forEach(function(i,s){if(W0(i))return r._imageTensors[s]=i,void(r._inputDimensions[s]=i.shape);if(S2(i)){var c=i.shape[0];if(1!==c)throw new Error("NetInput - tf.Tensor4D with batchSize "+c+" passed, but not supported in input array");return r._imageTensors[s]=i,void(r._inputDimensions[s]=i.shape.slice(1))}var l=i instanceof Us.getEnv().Canvas?i:$0(i);r._canvases[s]=l,r._inputDimensions[s]=[l.height,l.width,3]})}return Object.defineProperty(t.prototype,"imageTensors",{get:function(){return this._imageTensors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canvases",{get:function(){return this._canvases},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBatchInput",{get:function(){return this.batchSize>1||this._treatAsBatchInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"batchSize",{get:function(){return this._batchSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputDimensions",{get:function(){return this._inputDimensions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this._inputSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reshapedInputDimensions",{get:function(){var n=this;return Bl(this.batchSize,0,1).map(function(e,r){return n.getReshapedInputDimensions(r)})},enumerable:!0,configurable:!0}),t.prototype.getInput=function(n){return this.canvases[n]||this.imageTensors[n]},t.prototype.getInputDimensions=function(n){return this._inputDimensions[n]},t.prototype.getInputHeight=function(n){return this._inputDimensions[n][0]},t.prototype.getInputWidth=function(n){return this._inputDimensions[n][1]},t.prototype.getReshapedInputDimensions=function(n){if("number"!=typeof this.inputSize)throw new Error("getReshapedInputDimensions - inputSize not set, toBatchTensor has not been called yet");return function K8(t,n){var e=t.width,r=t.height,i=n/Math.max(r,e);return new Hl(Math.round(e*i),Math.round(r*i))}({width:this.getInputWidth(n),height:this.getInputHeight(n)},this.inputSize)},t.prototype.toBatchTensor=function(n,e){var r=this;return void 0===e&&(e=!0),this._inputSize=n,ir(function(){var i=Bl(r.batchSize,0,1).map(function(c){var l=r.getInput(c);if(l instanceof Ao){var u=S2(l)?l:l.expandDims();return u=function EM(t,n){return void 0===n&&(n=!1),ir(function(){var e=t.shape.slice(1),r=e[0],i=e[1];if(r===i)return t;var s=Math.abs(r-i),c=Math.round(s*(n?.5:1)),l=r>i?2:1,u=function(R){var U=t.shape.slice();return U[l]=R,to(U,0)},d=u(c),p=s-d.shape[l],x=[n&&p?u(p):null,t,d].filter(function(R){return!!R}).map(function(R){return R.toFloat()});return Ia(x,l)})}(u,e),(u.shape[1]!==n||u.shape[2]!==n)&&(u=Wd.resizeBilinear(u,[n,n])),u.as3D(n,n,3)}if(l instanceof Us.getEnv().Canvas)return c6.fromPixels(function FM(t,n,e){void 0===e&&(e=!1);var r=Us.getEnv(),s=r.Canvas;if(!(t instanceof r.Image||t instanceof s))throw new Error("imageToSquare - expected arg0 to be HTMLImageElement | HTMLCanvasElement");var c=T6(t),l=n/Math.max(c.height,c.width),u=l*c.width,d=l*c.height,p=Cu({width:n,height:n}),M=t instanceof s?t:$0(t),x=Math.abs(u-d)/2,R=e&&u<d?x:0,U=e&&d<u?x:0;return T1(p).drawImage(M,R,U,u,d),p}(l,n,e));throw new Error("toBatchTensor - at batchIdx "+c+", expected input to be instanceof tf.Tensor or instanceof HTMLCanvasElement, instead have "+l)});return Lc(i.map(function(c){return c.toFloat()})).as4D(r.batchSize,n,n,3)})},t}();function is(t){return Mr(this,void 0,void 0,function(){var n,e,r;return Lr(this,function(i){switch(i.label){case 0:if(t instanceof bu)return[2,t];if(!(n=Array.isArray(t)?t:[t]).length)throw new Error("toNetInput - empty array passed as input");return e=function(s){return Array.isArray(t)?" at input index "+s+":":""},(r=n.map(L6)).forEach(function(s,c){if(!o5(s)&&!W0(s)&&!S2(s))throw"string"==typeof n[c]?new Error("toNetInput -"+e(c)+" string passed, but could not resolve HTMLElement for element id "+n[c]):new Error("toNetInput -"+e(c)+" expected media to be of type HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | tf.Tensor3D, or to be an element id");if(S2(s)){var l=s.shape[0];if(1!==l)throw new Error("toNetInput -"+e(c)+" tf.Tensor4D with batchSize "+l+" passed, but not supported in input array")}}),[4,Promise.all(r.map(function(s){return o5(s)&&function RM(t){return new Promise(function(n,e){if(t instanceof Us.getEnv().Canvas||r5(t))return n();function r(s){!s.currentTarget||(s.currentTarget.removeEventListener("load",r),s.currentTarget.removeEventListener("error",i),n(s))}function i(s){!s.currentTarget||(s.currentTarget.removeEventListener("load",r),s.currentTarget.removeEventListener("error",i),e(s))}t.addEventListener("load",r),t.addEventListener("error",i)})}(s)}))];case 1:return i.sent(),[2,new bu(r,Array.isArray(t))]}})})}function w6(t,n){return Mr(this,void 0,void 0,function(){var e,r,i,s,c,l;return Lr(this,function(d){switch(d.label){case 0:return e=Us.getEnv().Canvas,r=t,t instanceof e?[3,5]:[4,is(t)];case 1:if((i=d.sent()).batchSize>1)throw new Error("extractFaces - batchSize > 1 not supported");return(s=i.getInput(0))instanceof e?(c=s,[3,4]):[3,2];case 2:return[4,YM(s)];case 3:c=d.sent(),d.label=4;case 4:r=c,d.label=5;case 5:return l=T1(r),[2,n.map(function(p){return p instanceof f1?p.forSize(r.width,r.height).box.floor():p}).map(function(p){return p.clipAtImageBorders(r.width,r.height)}).map(function(p){var M=p.x,x=p.y,R=p.width,U=p.height,J=Cu({width:R,height:U});return T1(J).putImageData(l.getImageData(M,x,R,U),0,0),J})]}})})}function E6(t,n){return Mr(this,void 0,void 0,function(){return Lr(this,function(e){if(!W0(t)&&!S2(t))throw new Error("extractFaceTensors - expected image tensor to be 3D or 4D");if(S2(t)&&t.shape[0]>1)throw new Error("extractFaceTensors - batchSize > 1 not supported");return[2,ir(function(){var r=t.shape.slice(S2(t)?1:0),i=r[0],s=r[1],c=r[2];return n.map(function(d){return d instanceof f1?d.forSize(s,i).box:d}).map(function(d){return d.clipAtImageBorders(s,i)}).map(function(d){var p=d.x,M=d.y,x=d.width,R=d.height;return Jp(t.as3D(i,s,c),[M,p,0],[R,x,c])})})]})})}function HM(t,n){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return[4,(0,Us.getEnv().fetch)(t,n)];case 1:if(!((r=i.sent()).status<400))throw new Error("failed to fetch: ("+r.status+") "+r.statusText+", from url: "+r.url);return[2,r]}})})}function BM(t){return Mr(this,void 0,void 0,function(){return Lr(this,function(n){switch(n.label){case 0:return[4,HM(t)];case 1:return[2,n.sent().json()]}})})}function i5(t,n){var e=n+"-weights_manifest.json";if(!t)return{modelBaseUri:"",manifestUri:e};if("/"===t)return{modelBaseUri:"/",manifestUri:"/"+e};var r=t.startsWith("http://")?"http://":t.startsWith("https://")?"https://":"",i=(t=t.replace(r,"")).split("/").filter(function(l){return l}),s=t.endsWith(".json")?i[i.length-1]:e,c=r+(t.endsWith(".json")?i.slice(0,i.length-1):i).join("/");return{modelBaseUri:c=t.startsWith("/")?"/"+c:c,manifestUri:"/"===c?"/"+s:c+"/"+s}}function jM(t,n){return Mr(this,void 0,void 0,function(){var e,i,s;return Lr(this,function(c){switch(c.label){case 0:return e=i5(t,n),i=e.modelBaseUri,[4,BM(e.manifestUri)];case 1:return s=c.sent(),[2,I8.loadWeights(s,i)]}})})}var t2=function(){function t(n){this._name=n,this._params=void 0,this._paramMappings=[]}return Object.defineProperty(t.prototype,"params",{get:function(){return this._params},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMappings",{get:function(){return this._paramMappings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoaded",{get:function(){return!!this.params},enumerable:!0,configurable:!0}),t.prototype.getParamFromPath=function(n){var e=this.traversePropertyPath(n);return e.obj[e.objProp]},t.prototype.reassignParamFromPath=function(n,e){var r=this.traversePropertyPath(n),i=r.obj,s=r.objProp;i[s].dispose(),i[s]=e},t.prototype.getParamList=function(){var n=this;return this._paramMappings.map(function(e){var r=e.paramPath;return{path:r,tensor:n.getParamFromPath(r)}})},t.prototype.getTrainableParams=function(){return this.getParamList().filter(function(n){return n.tensor instanceof ac})},t.prototype.getFrozenParams=function(){return this.getParamList().filter(function(n){return!(n.tensor instanceof ac)})},t.prototype.variable=function(){var n=this;this.getFrozenParams().forEach(function(e){n.reassignParamFromPath(e.path,e.tensor.variable())})},t.prototype.freeze=function(){var n=this;this.getTrainableParams().forEach(function(e){var r=e.path,i=e.tensor,s=xi(i.dataSync());i.dispose(),n.reassignParamFromPath(r,s)})},t.prototype.dispose=function(n){void 0===n&&(n=!0),this.getParamList().forEach(function(e){if(n&&e.tensor.isDisposed)throw new Error("param tensor has already been disposed for path "+e.path);e.tensor.dispose()}),this._params=void 0},t.prototype.serializeParams=function(){return new Float32Array(this.getParamList().map(function(n){return Array.from(n.tensor.dataSync())}).reduce(function(n,e){return n.concat(e)}))},t.prototype.load=function(n){return Mr(this,void 0,void 0,function(){return Lr(this,function(e){switch(e.label){case 0:return n instanceof Float32Array?(this.extractWeights(n),[2]):[4,this.loadFromUri(n)];case 1:return e.sent(),[2]}})})},t.prototype.loadFromUri=function(n){return Mr(this,void 0,void 0,function(){var e;return Lr(this,function(r){switch(r.label){case 0:if(n&&"string"!=typeof n)throw new Error(this._name+".loadFromUri - expected model uri");return[4,jM(n,this.getDefaultModelName())];case 1:return e=r.sent(),this.loadFromWeightMap(e),[2]}})})},t.prototype.loadFromDisk=function(n){return Mr(this,void 0,void 0,function(){var e,r,i,s,l,u,d,p,M;return Lr(this,function(x){switch(x.label){case 0:if(n&&"string"!=typeof n)throw new Error(this._name+".loadFromDisk - expected model file path");return e=Us.getEnv().readFile,r=i5(n,this.getDefaultModelName()),i=r.manifestUri,s=r.modelBaseUri,l=I8.weightsLoaderFactory(function(R){return Promise.all(R.map(function(U){return e(U).then(function(J){return J.buffer})}))}),p=(d=JSON).parse,[4,e(i)];case 1:return u=p.apply(d,[x.sent().toString()]),[4,l(u,s)];case 2:return M=x.sent(),this.loadFromWeightMap(M),[2]}})})},t.prototype.loadFromWeightMap=function(n){var e=this.extractParamsFromWeigthMap(n),i=e.params;this._paramMappings=e.paramMappings,this._params=i},t.prototype.extractWeights=function(n){var e=this.extractParams(n),i=e.params;this._paramMappings=e.paramMappings,this._params=i},t.prototype.traversePropertyPath=function(n){if(!this.params)throw new Error("traversePropertyPath - model has no loaded params");var e=n.split("/").reduce(function(s,c){if(!s.nextObj.hasOwnProperty(c))throw new Error("traversePropertyPath - object does not have property "+c+", for path "+n);return{obj:s.nextObj,objProp:c,nextObj:s.nextObj[c]}},{nextObj:this.params}),r=e.obj,i=e.objProp;if(!(r&&i&&r[i]instanceof Ao))throw new Error("traversePropertyPath - parameter is not a tensor, for path "+n);return{obj:r,objProp:i}},t}();function Tc(t,n,e){return ir(function(){var r=Rd(t,n.depthwise_filter,n.pointwise_filter,e,"same");return Ro(r,n.bias)})}function x6(t,n,e){return void 0===e&&(e=!1),ir(function(){var r=ua(e?Ro(Xc(t,n.conv0.filters,[2,2],"same"),n.conv0.bias):Tc(t,n.conv0,[2,2])),i=Tc(r,n.conv1,[1,1]),c=Tc(ua(Ro(r,i)),n.conv2,[1,1]);return ua(Ro(r,Ro(i,c)))})}function Lu(t,n,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!0),ir(function(){var i=ua(e?Ro(Xc(t,n.conv0.filters,r?[2,2]:[1,1],"same"),n.conv0.bias):Tc(t,n.conv0,r?[2,2]:[1,1])),s=Tc(i,n.conv1,[1,1]),l=Tc(ua(Ro(i,s)),n.conv2,[1,1]),d=Tc(ua(Ro(i,Ro(s,l))),n.conv3,[1,1]);return ua(Ro(i,Ro(s,Ro(l,d))))})}function h1(t,n,e,r){return void 0===e&&(e="same"),void 0===r&&(r=!1),ir(function(){var i=Ro(Xc(t,n.filters,[1,1],e),n.bias);return r?ua(i):i})}function w1(t,n){Object.keys(t).forEach(function(e){n.some(function(r){return r.originalPath===e})||t[e].dispose()})}function Su(t,n){return function(e,r,i,s){var c=Se(t(e*r*i*i),[i,i,e,r]),l=C(t(r));return n.push({paramPath:s+"/filters"},{paramPath:s+"/bias"}),{filters:c,bias:l}}}function Tu(t,n){return function(e,r,i){var s=B(t(e*r),[e,r]),c=C(t(r));return n.push({paramPath:i+"/weights"},{paramPath:i+"/bias"}),{weights:s,bias:c}}}var a5=function t(n,e,r){this.depthwise_filter=n,this.pointwise_filter=e,this.bias=r};function k6(t,n){return function(e,r,i){var s=Se(t(9*e),[3,3,e,1]),c=Se(t(e*r),[1,1,e,r]),l=C(t(r));return n.push({paramPath:i+"/depthwise_filter"},{paramPath:i+"/pointwise_filter"},{paramPath:i+"/bias"}),new a5(s,c,l)}}function wu(t){return function(n){var e=t(n+"/depthwise_filter",4),r=t(n+"/pointwise_filter",4),i=t(n+"/bias",1);return new a5(e,r,i)}}function T2(t,n){return function(e,r,i){var s=t[e];if(!j0(s,r))throw new Error("expected weightMap["+e+"] to be a Tensor"+r+"D, instead have "+s);return n.push({originalPath:e,paramPath:i||e}),s}}function n2(t){var n=t;return{extractWeights:function e(i){var s=n.slice(0,i);return n=n.slice(i),s},getRemainingWeights:function r(){return n}}}function D6(t,n){var e=Su(t,n),r=k6(t,n);function i(c,l,u,d){return void 0===d&&(d=!1),{conv0:d?e(c,l,3,u+"/conv0"):r(c,l,u+"/conv0"),conv1:r(l,l,u+"/conv1"),conv2:r(l,l,u+"/conv2")}}return{extractDenseBlock3Params:i,extractDenseBlock4Params:function s(c,l,u,d){void 0===d&&(d=!1);var p=i(c,l,u,d);return{conv0:p.conv0,conv1:p.conv1,conv2:p.conv2,conv3:r(l,l,u+"/conv3")}}}}function s5(t){return function(n){return{filters:t(n+"/filters",4),bias:t(n+"/bias",1)}}}function c5(t,n){var e=T2(t,n),r=s5(e),i=wu(e);return{extractDenseBlock3Params:function s(l,u){return void 0===u&&(u=!1),{conv0:u?r(l+"/conv0"):i(l+"/conv0"),conv1:i(l+"/conv1"),conv2:i(l+"/conv2")}},extractDenseBlock4Params:function c(l,u){return void 0===u&&(u=!1),{conv0:u?r(l+"/conv0"):i(l+"/conv0"),conv1:i(l+"/conv1"),conv2:i(l+"/conv2"),conv3:i(l+"/conv3")}}}}var u5=function(t){function n(){return t.call(this,"FaceFeatureExtractor")||this}return co(n,t),n.prototype.forwardInput=function(e){var r=this.params;if(!r)throw new Error("FaceFeatureExtractor - load model before inference");return ir(function(){var l=Lu(V0(e.toBatchTensor(112,!0),[122.782,117.001,104.298]).div(wn(255)),r.dense0,!0);return l=Lu(l,r.dense1),l=Lu(l,r.dense2),l=Lu(l,r.dense3),Y0(l,[7,7],[2,2],"valid")})},n.prototype.forward=function(e){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return r=this.forwardInput,[4,is(e)];case 1:return[2,r.apply(this,[i.sent()])]}})})},n.prototype.getDefaultModelName=function(){return"face_feature_extractor_model"},n.prototype.extractParamsFromWeigthMap=function(e){return function l5(t){var n=[],e=c5(t,n).extractDenseBlock4Params,r={dense0:e("dense0",!0),dense1:e("dense1"),dense2:e("dense2"),dense3:e("dense3")};return w1(t,n),{params:r,paramMappings:n}}(e)},n.prototype.extractParams=function(e){return function WM(t){var n=[],e=n2(t),i=e.getRemainingWeights,s=D6(e.extractWeights,n).extractDenseBlock4Params,c=s(3,32,"dense0",!0),l=s(32,64,"dense1"),u=s(64,128,"dense2"),d=s(128,256,"dense3");if(0!==i().length)throw new Error("weights remaing after extract: "+i().length);return{paramMappings:n,params:{dense0:c,dense1:l,dense2:u,dense3:d}}}(e)},n}(t2);function E1(t,n){return ir(function(){return Ro(z0(t,n.weights),n.bias)})}function P6(t){var n={},e={};return Object.keys(t).forEach(function(r){(r.startsWith("fc")?e:n)[r]=t[r]}),{featureExtractorMap:n,classifierMap:e}}var f5=function(t){function n(e,r){var i=t.call(this,e)||this;return i._faceFeatureExtractor=r,i}return co(n,t),Object.defineProperty(n.prototype,"faceFeatureExtractor",{get:function(){return this._faceFeatureExtractor},enumerable:!0,configurable:!0}),n.prototype.runNet=function(e){var r=this,i=this.params;if(!i)throw new Error(this._name+" - load model before inference");return ir(function(){var s=e instanceof bu?r.faceFeatureExtractor.forwardInput(e):e;return E1(s.as2D(s.shape[0],-1),i.fc)})},n.prototype.dispose=function(e){void 0===e&&(e=!0),this.faceFeatureExtractor.dispose(e),t.prototype.dispose.call(this,e)},n.prototype.loadClassifierParams=function(e){var r=this.extractClassifierParams(e),s=r.paramMappings;this._params=r.params,this._paramMappings=s},n.prototype.extractClassifierParams=function(e){return function d5(t,n,e){var r=[],i=n2(t),c=i.getRemainingWeights,u=Tu(i.extractWeights,r)(n,e,"fc");if(0!==c().length)throw new Error("weights remaing after extract: "+c().length);return{paramMappings:r,params:{fc:u}}}(e,this.getClassifierChannelsIn(),this.getClassifierChannelsOut())},n.prototype.extractParamsFromWeigthMap=function(e){var r=P6(e),s=r.classifierMap;return this.faceFeatureExtractor.loadFromWeightMap(r.featureExtractorMap),function UM(t){var n=[],e=T2(t,n),i={fc:function r(s){return{weights:e(s+"/weights",2),bias:e(s+"/bias",1)}}("fc")};return w1(t,n),{params:i,paramMappings:n}}(s)},n.prototype.extractParams=function(e){var r=this.getClassifierChannelsIn(),i=this.getClassifierChannelsOut(),s=i*r+i,c=e.slice(0,e.length-s),l=e.slice(e.length-s);return this.faceFeatureExtractor.extractWeights(c),this.extractClassifierParams(l)},n}(t2),O6=["neutral","happy","sad","angry","fearful","disgusted","surprised"],VM=function(){function t(n){var e=this;if(7!==n.length)throw new Error("FaceExpressions.constructor - expected probabilities.length to be 7, have: "+n.length);O6.forEach(function(r,i){e[r]=n[i]})}return t.prototype.asSortedArray=function(){var n=this;return O6.map(function(e){return{expression:e,probability:n[e]}}).sort(function(e,r){return r.probability-e.probability})},t}(),h5=function(t){function n(e){return void 0===e&&(e=new u5),t.call(this,"FaceExpressionNet",e)||this}return co(n,t),n.prototype.forwardInput=function(e){var r=this;return ir(function(){return K1(r.runNet(e))})},n.prototype.forward=function(e){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return r=this.forwardInput,[4,is(e)];case 1:return[2,r.apply(this,[i.sent()])]}})})},n.prototype.predictExpressions=function(e){return Mr(this,void 0,void 0,function(){var r,i,s,c,l=this;return Lr(this,function(u){switch(u.label){case 0:return[4,is(e)];case 1:return r=u.sent(),[4,this.forwardInput(r)];case 2:return i=u.sent(),[4,Promise.all(ts(i).map(function(d){return Mr(l,void 0,void 0,function(){var p;return Lr(this,function(M){switch(M.label){case 0:return[4,d.data()];case 1:return p=M.sent(),d.dispose(),[2,p]}})})}))];case 3:return s=u.sent(),i.dispose(),c=s.map(function(d){return new VM(d)}),[2,r.isBatchInput?c:c[0]]}})})},n.prototype.getDefaultModelName=function(){return"face_expression_model"},n.prototype.getClassifierChannelsIn=function(){return 256},n.prototype.getClassifierChannelsOut=function(){return 7},n}(f5);function m5(t,n){return Object.assign({},t,{expressions:n})}function I6(t,n){var e=t.detection.box,r=n.shiftBy(e.x,e.y),i=r.align(),s=t.detection.imageDims,c=new f1(t.detection.score,i.rescale(s.reverse()),s);return Object.assign({},t,{landmarks:r,unshiftedLandmarks:n,alignedRect:c})}function N6(t,n,e){return Ro(Xc(t,n.filters,e,"same"),n.bias)}function z6(t,n,e){void 0===e&&(e=!0);var r=e?ua(t):t;return r=Tc(r,n.separable_conv0,[1,1]),r=Tc(ua(r),n.separable_conv1,[1,1]),r=rs(r,[3,3],[2,2],"same"),Ro(r,N6(t,n.expansion_conv,[2,2]))}var qM=function(t){function n(e){var r=t.call(this,"TinyXception")||this;return r._numMainBlocks=e,r}return co(n,t),n.prototype.forwardInput=function(e){var r=this,i=this.params;if(!i)throw new Error("TinyXception - load model before inference");return ir(function(){var l=V0(e.toBatchTensor(112,!0),[122.782,117.001,104.298]).div(wn(256)),u=ua(N6(l,i.entry_flow.conv_in,[2,2]));return u=z6(u,i.entry_flow.reduction_block_0,!1),u=z6(u,i.entry_flow.reduction_block_1),Bl(r._numMainBlocks,0,1).forEach(function(d){u=function QM(t,n){var e=Tc(ua(t),n.separable_conv0,[1,1]);return e=Tc(ua(e),n.separable_conv1,[1,1]),e=Tc(ua(e),n.separable_conv2,[1,1]),Ro(e,t)}(u,i.middle_flow["main_block_"+d])}),u=z6(u,i.exit_flow.reduction_block),u=ua(Tc(u,i.exit_flow.separable_conv,[1,1]))})},n.prototype.forward=function(e){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return r=this.forwardInput,[4,is(e)];case 1:return[2,r.apply(this,[i.sent()])]}})})},n.prototype.getDefaultModelName=function(){return"tiny_xception_model"},n.prototype.extractParamsFromWeigthMap=function(e){return function JM(t,n){var e=[],r=function ZM(t,n){var e=T2(t,n),r=s5(e),i=wu(e);return{extractConvParams:r,extractSeparableConvParams:i,extractReductionBlockParams:function s(l){return{separable_conv0:i(l+"/separable_conv0"),separable_conv1:i(l+"/separable_conv1"),expansion_conv:r(l+"/expansion_conv")}},extractMainBlockParams:function c(l){return{separable_conv0:i(l+"/separable_conv0"),separable_conv1:i(l+"/separable_conv1"),separable_conv2:i(l+"/separable_conv2")}}}}(t,e),s=r.extractSeparableConvParams,c=r.extractReductionBlockParams,l=r.extractMainBlockParams,M={conv_in:(0,r.extractConvParams)("entry_flow/conv_in"),reduction_block_0:c("entry_flow/reduction_block_0"),reduction_block_1:c("entry_flow/reduction_block_1")},x={};Bl(n,0,1).forEach(function(ne){x["main_block_"+ne]=l("middle_flow/main_block_"+ne)});var J={reduction_block:c("exit_flow/reduction_block"),separable_conv:s("exit_flow/separable_conv")};return w1(t,e),{params:{entry_flow:M,middle_flow:x,exit_flow:J},paramMappings:e}}(e,this._numMainBlocks)},n.prototype.extractParams=function(e){return function XM(t,n){var e=[],r=n2(t),s=r.getRemainingWeights,c=function A6(t,n){var e=Su(t,n),r=k6(t,n);return{extractConvParams:e,extractSeparableConvParams:r,extractReductionBlockParams:function i(c,l,u){return{separable_conv0:r(c,l,u+"/separable_conv0"),separable_conv1:r(l,l,u+"/separable_conv1"),expansion_conv:e(c,l,1,u+"/expansion_conv")}},extractMainBlockParams:function s(c,l){return{separable_conv0:r(c,c,l+"/separable_conv0"),separable_conv1:r(c,c,l+"/separable_conv1"),separable_conv2:r(c,c,l+"/separable_conv2")}}}}(r.extractWeights,e),u=c.extractSeparableConvParams,d=c.extractReductionBlockParams,p=c.extractMainBlockParams,U={conv_in:(0,c.extractConvParams)(3,32,3,"entry_flow/conv_in"),reduction_block_0:d(32,64,"entry_flow/reduction_block_0"),reduction_block_1:d(64,128,"entry_flow/reduction_block_1")},J={};Bl(n,0,1).forEach(function(Ae){J["main_block_"+Ae]=p(128,"middle_flow/main_block_"+Ae)});var Ie={reduction_block:d(128,256,"exit_flow/reduction_block"),separable_conv:u(256,512,"exit_flow/separable_conv")};if(0!==s().length)throw new Error("weights remaing after extract: "+s().length);return{paramMappings:e,params:{entry_flow:U,middle_flow:J,exit_flow:Ie}}}(e,this._numMainBlocks)},n}(t2),jl=(()=>(function(t){t.FEMALE="female",t.MALE="male"}(jl||(jl={})),jl))(),nC=function(t){function n(e){void 0===e&&(e=new qM(2));var r=t.call(this,"AgeGenderNet")||this;return r._faceFeatureExtractor=e,r}return co(n,t),Object.defineProperty(n.prototype,"faceFeatureExtractor",{get:function(){return this._faceFeatureExtractor},enumerable:!0,configurable:!0}),n.prototype.runNet=function(e){var r=this,i=this.params;if(!i)throw new Error(this._name+" - load model before inference");return ir(function(){var s=e instanceof bu?r.faceFeatureExtractor.forwardInput(e):e,c=Y0(s,[7,7],[2,2],"valid").as2D(s.shape[0],-1);return{age:E1(c,i.fc.age).as1D(),gender:E1(c,i.fc.gender)}})},n.prototype.forwardInput=function(e){var r=this;return ir(function(){var i=r.runNet(e);return{age:i.age,gender:K1(i.gender)}})},n.prototype.forward=function(e){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return r=this.forwardInput,[4,is(e)];case 1:return[2,r.apply(this,[i.sent()])]}})})},n.prototype.predictAgeAndGender=function(e){return Mr(this,void 0,void 0,function(){var r,i,s,c,l,u,d=this;return Lr(this,function(p){switch(p.label){case 0:return[4,is(e)];case 1:return r=p.sent(),[4,this.forwardInput(r)];case 2:return i=p.sent(),s=ts(i.age),c=ts(i.gender),l=s.map(function(M,x){return{ageTensor:M,genderTensor:c[x]}}),[4,Promise.all(l.map(function(M){var x=M.ageTensor,R=M.genderTensor;return Mr(d,void 0,void 0,function(){var U,J,ne,ue,Ie;return Lr(this,function(Ae){switch(Ae.label){case 0:return[4,x.data()];case 1:return U=Ae.sent()[0],[4,R.data()];case 2:return J=Ae.sent()[0],ue=(ne=J>.5)?jl.MALE:jl.FEMALE,Ie=ne?J:1-J,x.dispose(),R.dispose(),[2,{age:U,gender:ue,genderProbability:Ie}]}})})}))];case 3:return u=p.sent(),i.age.dispose(),i.gender.dispose(),[2,r.isBatchInput?u:u[0]]}})})},n.prototype.getDefaultModelName=function(){return"age_gender_model"},n.prototype.dispose=function(e){void 0===e&&(e=!0),this.faceFeatureExtractor.dispose(e),t.prototype.dispose.call(this,e)},n.prototype.loadClassifierParams=function(e){var r=this.extractClassifierParams(e),s=r.paramMappings;this._params=r.params,this._paramMappings=s},n.prototype.extractClassifierParams=function(e){return function eC(t){var n=[],e=n2(t),i=e.getRemainingWeights,s=Tu(e.extractWeights,n),c=s(512,1,"fc/age"),l=s(512,2,"fc/gender");if(0!==i().length)throw new Error("weights remaing after extract: "+i().length);return{paramMappings:n,params:{fc:{age:c,gender:l}}}}(e)},n.prototype.extractParamsFromWeigthMap=function(e){var r=P6(e),s=r.classifierMap;return this.faceFeatureExtractor.loadFromWeightMap(r.featureExtractorMap),function tC(t){var n=[],e=T2(t,n);function r(s){return{weights:e(s+"/weights",2),bias:e(s+"/bias",1)}}var i={fc:{age:r("fc/age"),gender:r("fc/gender")}};return w1(t,n),{params:i,paramMappings:n}}(s)},n.prototype.extractParams=function(e){var i=e.slice(0,e.length-1539),s=e.slice(e.length-1539);return this.faceFeatureExtractor.extractWeights(i),this.extractClassifierParams(s)},n}(t2),p5=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.postProcess=function(e,r,i){var s=i.map(function(l){var u=l.width,d=l.height,p=r/Math.max(d,u);return{width:u*p,height:d*p}}),c=s.length;return ir(function(){var l=function(x,R){return Lc([to([68],x),to([68],R)],1).as2D(1,136).as1D()},u=function(x,R){var U=s[x],J=U.width,ne=U.height;return R(J,ne)?Math.abs(J-ne)/2:0};return e.mul(to([c,136],r)).sub(Lc(Array.from(Array(c),function(x,R){return l(function(x){return u(x,function(R,U){return R<U})}(R),function(x){return u(x,function(R,U){return U<R})}(R))}))).div(Lc(Array.from(Array(c),function(x,R){return l(s[R].width,s[R].height)})))})},n.prototype.forwardInput=function(e){var r=this;return ir(function(){var i=r.runNet(e);return r.postProcess(i,e.inputSize,e.inputDimensions.map(function(s){return{height:s[0],width:s[1]}}))})},n.prototype.forward=function(e){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return r=this.forwardInput,[4,is(e)];case 1:return[2,r.apply(this,[i.sent()])]}})})},n.prototype.detectLandmarks=function(e){return Mr(this,void 0,void 0,function(){var r,i,s,c=this;return Lr(this,function(l){switch(l.label){case 0:return[4,is(e)];case 1:return r=l.sent(),i=ir(function(){return ts(c.forwardInput(r))}),[4,Promise.all(i.map(function(u,d){return Mr(c,void 0,void 0,function(){var p,M,x,R,U;return Lr(this,function(J){switch(J.label){case 0:return x=(M=Array).from,[4,u.data()];case 1:return p=x.apply(M,[J.sent()]),R=p.filter(function(ne,ue){return G8(ue)}),U=p.filter(function(ne,ue){return!G8(ue)}),[2,new g6(Array(68).fill(0).map(function(ne,ue){return new pi(R[ue],U[ue])}),{height:r.getInputHeight(d),width:r.getInputWidth(d)})]}})})}))];case 2:return s=l.sent(),i.forEach(function(u){return u.dispose()}),[2,r.isBatchInput?s:s[0]]}})})},n.prototype.getClassifierChannelsOut=function(){return 136},n}(f5),_5=function(t){function n(e){return void 0===e&&(e=new u5),t.call(this,"FaceLandmark68Net",e)||this}return co(n,t),n.prototype.getDefaultModelName=function(){return"face_landmark_68_model"},n.prototype.getClassifierChannelsIn=function(){return 256},n}(p5),iC=function(t){function n(){return t.call(this,"TinyFaceFeatureExtractor")||this}return co(n,t),n.prototype.forwardInput=function(e){var r=this.params;if(!r)throw new Error("TinyFaceFeatureExtractor - load model before inference");return ir(function(){var l=x6(V0(e.toBatchTensor(112,!0),[122.782,117.001,104.298]).div(wn(255)),r.dense0,!0);return l=x6(l,r.dense1),l=x6(l,r.dense2),Y0(l,[14,14],[2,2],"valid")})},n.prototype.forward=function(e){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return r=this.forwardInput,[4,is(e)];case 1:return[2,r.apply(this,[i.sent()])]}})})},n.prototype.getDefaultModelName=function(){return"face_feature_extractor_tiny_model"},n.prototype.extractParamsFromWeigthMap=function(e){return function rC(t){var n=[],e=c5(t,n).extractDenseBlock3Params,r={dense0:e("dense0",!0),dense1:e("dense1"),dense2:e("dense2")};return w1(t,n),{params:r,paramMappings:n}}(e)},n.prototype.extractParams=function(e){return function oC(t){var n=[],e=n2(t),i=e.getRemainingWeights,s=D6(e.extractWeights,n).extractDenseBlock3Params,c=s(3,32,"dense0",!0),l=s(32,64,"dense1"),u=s(64,128,"dense2");if(0!==i().length)throw new Error("weights remaing after extract: "+i().length);return{paramMappings:n,params:{dense0:c,dense1:l,dense2:u}}}(e)},n}(t2),aC=function(t){function n(e){return void 0===e&&(e=new iC),t.call(this,"FaceLandmark68TinyNet",e)||this}return co(n,t),n.prototype.getDefaultModelName=function(){return"face_landmark_68_tiny_model"},n.prototype.getClassifierChannelsIn=function(){return 128},n}(p5);function R6(t,n,e,r,i){void 0===i&&(i="same");var s=n.conv,l=s.bias,u=Xc(t,s.filters,e,i);return u=function cC(t,n){return Ro(Ds(t,n.weights),n.biases)}(u=Ro(u,l),n.scale),r?ua(u):u}function v5(t,n){return R6(t,n,[1,1],!1)}function Y6(t,n){return R6(t,n,[2,2],!0,"valid")}function lC(t,n){function s(l,u,d,p){var M=function r(l,u,d,p){var M=function e(l,u,d){var p=t(l),M=p.length/(u*d*d);if(function V8(t){return t%1!=0}(M))throw new Error("depth has to be an integer: "+M+", weights.length: "+p.length+", numFilters: "+u+", filterSize: "+d);return ir(function(){return y2(Se(p,[u,M,d,d]),[2,3,1,0])})}(l,u,d),x=C(t(u));return n.push({paramPath:p+"/filters"},{paramPath:p+"/bias"}),{filters:M,bias:x}}(l,u,d,p+"/conv"),x=function i(l,u){var d=C(t(l)),p=C(t(l));return n.push({paramPath:u+"/weights"},{paramPath:u+"/biases"}),{weights:d,biases:p}}(u,p+"/scale");return{conv:M,scale:x}}return{extractConvLayerParams:s,extractResidualLayerParams:function c(l,u,d,p,M){return void 0===M&&(M=!1),{conv1:s((M?.5:1)*l,u,d,p+"/conv1"),conv2:s(l,u,d,p+"/conv2")}}}}function dC(t){var n=[],e=function y5(t,n){var e=T2(t,n);function i(c){var l=e(c+"/conv/filters",4),u=e(c+"/conv/bias",1),d=function r(c){return{weights:e(c+"/scale/weights",1),biases:e(c+"/scale/biases",1)}}(c);return{conv:{filters:l,bias:u},scale:d}}return{extractConvLayerParams:i,extractResidualLayerParams:function s(c){return{conv1:i(c+"/conv1"),conv2:i(c+"/conv2")}}}}(t,n),i=e.extractResidualLayerParams,s=(0,e.extractConvLayerParams)("conv32_down"),c=i("conv32_1"),l=i("conv32_2"),u=i("conv32_3"),d=i("conv64_down"),p=i("conv64_1"),M=i("conv64_2"),x=i("conv64_3"),R=i("conv128_down"),U=i("conv128_1"),J=i("conv128_2"),ne=i("conv256_down"),ue=i("conv256_1"),Ie=i("conv256_2"),Ae=i("conv256_down_out"),Oe=t.fc;if(n.push({originalPath:"fc",paramPath:"fc"}),!function SM(t){return j0(t,2)}(Oe))throw new Error("expected weightMap[fc] to be a Tensor2D, instead have "+Oe);var Fe={conv32_down:s,conv32_1:c,conv32_2:l,conv32_3:u,conv64_down:d,conv64_1:p,conv64_2:M,conv64_3:x,conv128_down:R,conv128_1:U,conv128_2:J,conv256_down:ne,conv256_1:ue,conv256_2:Ie,conv256_down_out:Ae,fc:Oe};return w1(t,n),{params:Fe,paramMappings:n}}function x1(t,n){var e=function g5(t,n){return R6(t,n,[1,1],!0)}(t,n.conv1);return e=v5(e,n.conv2),e=Ro(e,t),ua(e)}function Eu(t,n){var e=Y6(t,n.conv1);e=v5(e,n.conv2);var r=Y0(t,2,2,"valid"),i=$n(r.shape),s=r.shape[3]!==e.shape[3];if(r.shape[1]!==e.shape[1]||r.shape[2]!==e.shape[2]){var l=H0(e.shape);l[1]=1;var u=$n(l),d=H0((e=Ia([e,u],1)).shape);d[2]=1;var p=$n(d);e=Ia([e,p],2)}return r=s?Ia([r,i],3):r,e=Ro(r,e),ua(e)}!function(t){co(function n(){return null!==t&&t.apply(this,arguments)||this},t)}(_5);var fC=function(t){function n(){return t.call(this,"FaceRecognitionNet")||this}return co(n,t),n.prototype.forwardInput=function(e){var r=this.params;if(!r)throw new Error("FaceRecognitionNet - load model before inference");return ir(function(){var l=Y6(V0(e.toBatchTensor(150,!0).toFloat(),[122.782,117.001,104.298]).div(wn(256)),r.conv32_down);l=x1(l=rs(l,3,2,"valid"),r.conv32_1),l=x1(l,r.conv32_2),l=x1(l,r.conv32_3),l=x1(l=Eu(l,r.conv64_down),r.conv64_1),l=x1(l,r.conv64_2),l=x1(l,r.conv64_3),l=x1(l=Eu(l,r.conv128_down),r.conv128_1),l=x1(l,r.conv128_2),l=x1(l=Eu(l,r.conv256_down),r.conv256_1);var u=(l=Eu(l=x1(l,r.conv256_2),r.conv256_down_out)).mean([1,2]);return z0(u,r.fc)})},n.prototype.forward=function(e){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return r=this.forwardInput,[4,is(e)];case 1:return[2,r.apply(this,[i.sent()])]}})})},n.prototype.computeFaceDescriptor=function(e){return Mr(this,void 0,void 0,function(){var r,i,s,c=this;return Lr(this,function(l){switch(l.label){case 0:return[4,is(e)];case 1:return r=l.sent(),i=ir(function(){return ts(c.forwardInput(r))}),[4,Promise.all(i.map(function(u){return u.data()}))];case 2:return s=l.sent(),i.forEach(function(u){return u.dispose()}),[2,r.isBatchInput?s:s[0]]}})})},n.prototype.getDefaultModelName=function(){return"face_recognition_model"},n.prototype.extractParamsFromWeigthMap=function(e){return dC(e)},n.prototype.extractParams=function(e){return function uC(t){var n=n2(t),e=n.extractWeights,r=n.getRemainingWeights,i=[],s=lC(e,i),l=s.extractResidualLayerParams,u=(0,s.extractConvLayerParams)(4704,32,7,"conv32_down"),d=l(9216,32,3,"conv32_1"),p=l(9216,32,3,"conv32_2"),M=l(9216,32,3,"conv32_3"),x=l(36864,64,3,"conv64_down",!0),R=l(36864,64,3,"conv64_1"),U=l(36864,64,3,"conv64_2"),J=l(36864,64,3,"conv64_3"),ne=l(147456,128,3,"conv128_down",!0),ue=l(147456,128,3,"conv128_1"),Ie=l(147456,128,3,"conv128_2"),Ae=l(589824,256,3,"conv256_down",!0),Oe=l(589824,256,3,"conv256_1"),Fe=l(589824,256,3,"conv256_2"),et=l(589824,256,3,"conv256_down_out"),Ct=ir(function(){return y2(B(e(32768),[128,256]),[1,0])});if(i.push({paramPath:"fc"}),0!==r().length)throw new Error("weights remaing after extract: "+r().length);return{params:{conv32_down:u,conv32_1:d,conv32_2:p,conv32_3:M,conv64_down:x,conv64_1:R,conv64_2:U,conv64_3:J,conv128_down:ne,conv128_1:ue,conv128_2:Ie,conv256_down:Ae,conv256_1:Oe,conv256_2:Fe,conv256_down_out:et,fc:Ct},paramMappings:i}}(e)},n}(t2);function C5(t,n,e){return Object.assign({},t,{gender:n,genderProbability:e})}var b5=function(){function t(n){var e=void 0===n?{}:n,r=e.minFaceSize,i=e.scaleFactor,s=e.maxNumScales,c=e.scoreThresholds,l=e.scaleSteps;if(this._name="MtcnnOptions",this._minFaceSize=r||20,this._scaleFactor=i||.709,this._maxNumScales=s||10,this._scoreThresholds=c||[.6,.7,.7],this._scaleSteps=l,"number"!=typeof this._minFaceSize||this._minFaceSize<0)throw new Error(this._name+" - expected minFaceSize to be a number > 0");if("number"!=typeof this._scaleFactor||this._scaleFactor<=0||this._scaleFactor>=1)throw new Error(this._name+" - expected scaleFactor to be a number between 0 and 1");if("number"!=typeof this._maxNumScales||this._maxNumScales<0)throw new Error(this._name+" - expected maxNumScales to be a number > 0");if(!Array.isArray(this._scoreThresholds)||3!==this._scoreThresholds.length||this._scoreThresholds.some(function(u){return"number"!=typeof u}))throw new Error(this._name+" - expected scoreThresholds to be an array of numbers of length 3");if(this._scaleSteps&&(!Array.isArray(this._scaleSteps)||this._scaleSteps.some(function(u){return"number"!=typeof u})))throw new Error(this._name+" - expected scaleSteps to be an array of numbers")}return Object.defineProperty(t.prototype,"minFaceSize",{get:function(){return this._minFaceSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scaleFactor",{get:function(){return this._scaleFactor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxNumScales",{get:function(){return this._maxNumScales},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scoreThresholds",{get:function(){return this._scoreThresholds},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scaleSteps",{get:function(){return this._scaleSteps},enumerable:!0,configurable:!0}),t}();function k1(t,n,e){return ir(function(){var r=Xc(t,n.filters,e,"same");return r=Ro(r,n.batch_norm_offset),Ed(r,0,6)})}function MC(t,n,e){var r=t.arraySync(),i=Math.min(r[n][0],r[n][2]),s=Math.min(r[n][1],r[n][3]),c=Math.max(r[n][0],r[n][2]),l=Math.max(r[n][1],r[n][3]),u=Math.min(r[e][0],r[e][2]),d=Math.min(r[e][1],r[e][3]),p=Math.max(r[e][0],r[e][2]),M=Math.max(r[e][1],r[e][3]),x=(c-i)*(l-s),R=(p-u)*(M-d);if(x<=0||R<=0)return 0;var U=Math.max(i,u),J=Math.max(s,d),ne=Math.min(c,p),ue=Math.min(l,M),Ie=Math.max(ne-U,0)*Math.max(ue-J,0);return Ie/(x+R-Ie)}function w2(t,n){return ir(function(){var e=t.shape[0];return{boxPredictionEncoding:l1(h1(t,n.box_encoding_predictor),[e,-1,1,4]),classPrediction:l1(h1(t,n.class_predictor),[e,-1,3])}})}var xu=function(){function t(n){var e=void 0===n?{}:n,r=e.minConfidence,i=e.maxResults;if(this._name="SsdMobilenetv1Options",this._minConfidence=r||.5,this._maxResults=i||100,"number"!=typeof this._minConfidence||this._minConfidence<=0||this._minConfidence>=1)throw new Error(this._name+" - expected minConfidence to be a number between 0 and 1");if("number"!=typeof this._maxResults)throw new Error(this._name+" - expected maxResults to be a number")}return Object.defineProperty(t.prototype,"minConfidence",{get:function(){return this._minConfidence},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxResults",{get:function(){return this._maxResults},enumerable:!0,configurable:!0}),t}(),T5=function(t){function n(){return t.call(this,"SsdMobilenetv1")||this}return co(n,t),n.prototype.forwardInput=function(e){var r=this.params;if(!r)throw new Error("SsdMobilenetv1 - load model before inference");return ir(function(){var i=e.toBatchTensor(512,!1).toFloat(),c=function vC(t,n){return ir(function(){var e=null,r=k1(t,n.conv_0,[2,2]);if([n.conv_1,n.conv_2,n.conv_3,n.conv_4,n.conv_5,n.conv_6,n.conv_7,n.conv_8,n.conv_9,n.conv_10,n.conv_11,n.conv_12,n.conv_13].forEach(function(s,c){var l=c+1,u=function gC(t){return[2,4,6,12].some(function(n){return n===t})?[2,2]:[1,1]}(l);r=function _C(t,n,e){return ir(function(){var r=iu(t,n.filters,e,"same");return r=Dp(r,n.batch_norm_mean,n.batch_norm_variance,n.batch_norm_offset,n.batch_norm_scale,.0010000000474974513),Ed(r,0,6)})}(r,s.depthwise_conv,u),r=k1(r,s.pointwise_conv,[1,1]),11===l&&(e=r)}),null===e)throw new Error("mobileNetV1 - output of conv layer 11 is null");return{out:r,conv11:e}})}(ns(Ds(i,wn(.007843137718737125)),wn(1)),r.mobilenetv1),l=function SC(t,n,e){return ir(function(){var r=k1(t,e.conv_0,[1,1]),i=k1(r,e.conv_1,[2,2]),s=k1(i,e.conv_2,[1,1]),c=k1(s,e.conv_3,[2,2]),l=k1(c,e.conv_4,[1,1]),u=k1(l,e.conv_5,[2,2]),d=k1(u,e.conv_6,[1,1]),p=k1(d,e.conv_7,[2,2]),M=w2(n,e.box_predictor_0),x=w2(t,e.box_predictor_1),R=w2(i,e.box_predictor_2),U=w2(c,e.box_predictor_3),J=w2(u,e.box_predictor_4),ne=w2(p,e.box_predictor_5);return{boxPredictions:Ia([M.boxPredictionEncoding,x.boxPredictionEncoding,R.boxPredictionEncoding,U.boxPredictionEncoding,J.boxPredictionEncoding,ne.boxPredictionEncoding],1),classPredictions:Ia([M.classPrediction,x.classPrediction,R.classPrediction,U.classPrediction,J.classPrediction,ne.classPrediction],1)}})}(c.out,c.conv11,r.prediction_layer);return function LC(t,n,e){return ir(function(){var r=t.shape[0],i=function bC(t,n){var e=function CC(t){var n=ts(y2(t,[1,0])),e=[ns(n[2],n[0]),ns(n[3],n[1])];return{sizes:e,centers:[Ro(n[0],Kc(e[0],wn(2))),Ro(n[1],Kc(e[1],wn(2)))]}}(t),r=e.sizes,i=e.centers,s=ts(y2(n,[1,0])),c=Kc(Ds(xd(Kc(s[2],wn(5))),r[0]),wn(2)),l=Ro(Ds(Kc(s[0],wn(10)),r[0]),i[0]),u=Kc(Ds(xd(Kc(s[3],wn(5))),r[1]),wn(2)),d=Ro(Ds(Kc(s[1],wn(10)),r[1]),i[1]);return y2(Lc([ns(l,c),ns(d,u),Ro(l,c),Ro(d,u)]),[1,0])}(l1(Ll(e.extra_dim,[r,1,1]),[-1,4]),l1(t,[-1,4]));i=l1(i,[r,i.shape[0]/r,4]);var s=bp(d1(n,[0,0,1],[-1,-1,-1])),c=d1(s,[0,0,0],[-1,-1,1]);return c=l1(c,[r,c.shape[1]]),{boxes:ts(i),scores:ts(c)}})}(l.boxPredictions,l.classPredictions,r.output_layer)})},n.prototype.forward=function(e){return Mr(this,void 0,void 0,function(){var r;return Lr(this,function(i){switch(i.label){case 0:return r=this.forwardInput,[4,is(e)];case 1:return[2,r.apply(this,[i.sent()])]}})})},n.prototype.locateFaces=function(e,r){return void 0===r&&(r={}),Mr(this,void 0,void 0,function(){var i,s,c,l,u,d,p,M,x,R,U,J,ne,Ie,Ae,Oe,Fe,et,Ct,yt;return Lr(this,function(pt){switch(pt.label){case 0:return i=new xu(r),s=i.maxResults,c=i.minConfidence,[4,is(e)];case 1:for(l=pt.sent(),u=this.forwardInput(l),M=(d=u.boxes)[0],x=(p=u.scores)[0],R=1;R<d.length;R++)d[R].dispose(),p[R].dispose();return ne=(J=Array).from,[4,x.data()];case 2:return U=ne.apply(J,[pt.sent()]),Ie=function yC(t,n,e,r,i){var c=Math.min(e,t.shape[0]),l=n.map(function(p,M){return{score:p,boxIndex:M}}).filter(function(p){return p.score>i}).sort(function(p,M){return M.score-p.score}),u=function(p){return p<=r?1:0},d=[];return l.forEach(function(p){if(!(d.length>=c)){for(var M=p.score,x=d.length-1;x>=0;--x){var R=MC(t,p.boxIndex,d[x]);if(0!==R&&(p.score*=u(R),p.score<=i))break}M===p.score&&d.push(p.boxIndex)}}),d}(M,U,s,.5,c),Ae=l.getReshapedInputDimensions(0),Fe=(Oe=l.inputSize)/Ae.width,et=Oe/Ae.height,Ct=M.arraySync(),yt=Ie.map(function(gt){var Bt=[Math.max(0,Ct[gt][0]),Math.min(1,Ct[gt][2])].map(function(En){return En*et}),Ft=Bt[0],yn=Bt[1],pn=[Math.max(0,Ct[gt][1]),Math.min(1,Ct[gt][3])].map(function(En){return En*Fe}),_n=pn[0];return new f1(U[gt],new yu(_n,Ft,pn[1]-_n,yn-Ft),{height:l.getInputHeight(0),width:l.getInputWidth(0)})}),M.dispose(),x.dispose(),[2,yt]}})})},n.prototype.getDefaultModelName=function(){return"ssd_mobilenetv1_model"},n.prototype.extractParamsFromWeigthMap=function(e){return function pC(t){var n=[],e=function mC(t,n){var e=T2(t,n);function r(d,p,M){return{filters:e(d+"/Conv2d_"+p+"_pointwise/weights",4,M+"/filters"),batch_norm_offset:e(d+"/Conv2d_"+p+"_pointwise/convolution_bn_offset",1,M+"/batch_norm_offset")}}function i(d){var p="mobilenetv1/conv_"+d,M="MobilenetV1/Conv2d_"+d+"_depthwise",x=p+"/depthwise_conv",R=p+"/pointwise_conv";return{depthwise_conv:{filters:e(M+"/depthwise_weights",4,x+"/filters"),batch_norm_scale:e(M+"/BatchNorm/gamma",1,x+"/batch_norm_scale"),batch_norm_offset:e(M+"/BatchNorm/beta",1,x+"/batch_norm_offset"),batch_norm_mean:e(M+"/BatchNorm/moving_mean",1,x+"/batch_norm_mean"),batch_norm_variance:e(M+"/BatchNorm/moving_variance",1,x+"/batch_norm_variance")},pointwise_conv:r("MobilenetV1",d,R)}}function c(d,p){return{filters:e(d+"/weights",4,p+"/filters"),bias:e(d+"/biases",1,p+"/bias")}}function l(d){return{box_encoding_predictor:c("Prediction/BoxPredictor_"+d+"/BoxEncodingPredictor","prediction_layer/box_predictor_"+d+"/box_encoding_predictor"),class_predictor:c("Prediction/BoxPredictor_"+d+"/ClassPredictor","prediction_layer/box_predictor_"+d+"/class_predictor")}}return{extractMobilenetV1Params:function s(){return{conv_0:r("MobilenetV1",0,"mobilenetv1/conv_0"),conv_1:i(1),conv_2:i(2),conv_3:i(3),conv_4:i(4),conv_5:i(5),conv_6:i(6),conv_7:i(7),conv_8:i(8),conv_9:i(9),conv_10:i(10),conv_11:i(11),conv_12:i(12),conv_13:i(13)}},extractPredictionLayerParams:function u(){return{conv_0:r("Prediction",0,"prediction_layer/conv_0"),conv_1:r("Prediction",1,"prediction_layer/conv_1"),conv_2:r("Prediction",2,"prediction_layer/conv_2"),conv_3:r("Prediction",3,"prediction_layer/conv_3"),conv_4:r("Prediction",4,"prediction_layer/conv_4"),conv_5:r("Prediction",5,"prediction_layer/conv_5"),conv_6:r("Prediction",6,"prediction_layer/conv_6"),conv_7:r("Prediction",7,"prediction_layer/conv_7"),box_predictor_0:l(0),box_predictor_1:l(1),box_predictor_2:l(2),box_predictor_3:l(3),box_predictor_4:l(4),box_predictor_5:l(5)}}}}(t,n),r=e.extractMobilenetV1Params,i=e.extractPredictionLayerParams,s=t["Output/extra_dim"];if(n.push({originalPath:"Output/extra_dim",paramPath:"output_layer/extra_dim"}),!W0(s))throw new Error("expected weightMap['Output/extra_dim'] to be a Tensor3D, instead have "+s);var c={mobilenetv1:r(),prediction_layer:i(),output_layer:{extra_dim:s}};return w1(t,n),{params:c,paramMappings:n}}(e)},n.prototype.extractParams=function(e){return function hC(t){var n=[],e=n2(t),r=e.extractWeights,i=e.getRemainingWeights,s=function L5(t,n){function r(u,d,p,M,x){var R=Se(t(u*d*p*p),[p,p,u,d]),U=C(t(d));return n.push({paramPath:M+"/filters"},{paramPath:M+"/"+(x?"batch_norm_offset":"bias")}),{filters:R,bias:U}}function i(u,d,p,M){var x=r(u,d,p,M,!0);return{filters:x.filters,batch_norm_offset:x.bias}}function s(u,d,p){var M=function e(u,d){var p=Se(t(9*u),[3,3,u,1]),M=C(t(u)),x=C(t(u)),R=C(t(u)),U=C(t(u));return n.push({paramPath:d+"/filters"},{paramPath:d+"/batch_norm_scale"},{paramPath:d+"/batch_norm_offset"},{paramPath:d+"/batch_norm_mean"},{paramPath:d+"/batch_norm_variance"}),{filters:p,batch_norm_scale:M,batch_norm_offset:x,batch_norm_mean:R,batch_norm_variance:U}}(u,p+"/depthwise_conv");return{depthwise_conv:M,pointwise_conv:i(u,d,1,p+"/pointwise_conv")}}return{extractMobilenetV1Params:function c(){return{conv_0:i(3,32,3,"mobilenetv1/conv_0"),conv_1:s(32,64,"mobilenetv1/conv_1"),conv_2:s(64,128,"mobilenetv1/conv_2"),conv_3:s(128,128,"mobilenetv1/conv_3"),conv_4:s(128,256,"mobilenetv1/conv_4"),conv_5:s(256,256,"mobilenetv1/conv_5"),conv_6:s(256,512,"mobilenetv1/conv_6"),conv_7:s(512,512,"mobilenetv1/conv_7"),conv_8:s(512,512,"mobilenetv1/conv_8"),conv_9:s(512,512,"mobilenetv1/conv_9"),conv_10:s(512,512,"mobilenetv1/conv_10"),conv_11:s(512,512,"mobilenetv1/conv_11"),conv_12:s(512,1024,"mobilenetv1/conv_12"),conv_13:s(1024,1024,"mobilenetv1/conv_13")}},extractPredictionLayerParams:function l(){return{conv_0:i(1024,256,1,"prediction_layer/conv_0"),conv_1:i(256,512,3,"prediction_layer/conv_1"),conv_2:i(512,128,1,"prediction_layer/conv_2"),conv_3:i(128,256,3,"prediction_layer/conv_3"),conv_4:i(256,128,1,"prediction_layer/conv_4"),conv_5:i(128,256,3,"prediction_layer/conv_5"),conv_6:i(256,64,1,"prediction_layer/conv_6"),conv_7:i(64,128,3,"prediction_layer/conv_7"),box_predictor_0:{box_encoding_predictor:r(512,12,1,"prediction_layer/box_predictor_0/box_encoding_predictor"),class_predictor:r(512,9,1,"prediction_layer/box_predictor_0/class_predictor")},box_predictor_1:{box_encoding_predictor:r(1024,24,1,"prediction_layer/box_predictor_1/box_encoding_predictor"),class_predictor:r(1024,18,1,"prediction_layer/box_predictor_1/class_predictor")},box_predictor_2:{box_encoding_predictor:r(512,24,1,"prediction_layer/box_predictor_2/box_encoding_predictor"),class_predictor:r(512,18,1,"prediction_layer/box_predictor_2/class_predictor")},box_predictor_3:{box_encoding_predictor:r(256,24,1,"prediction_layer/box_predictor_3/box_encoding_predictor"),class_predictor:r(256,18,1,"prediction_layer/box_predictor_3/class_predictor")},box_predictor_4:{box_encoding_predictor:r(256,24,1,"prediction_layer/box_predictor_4/box_encoding_predictor"),class_predictor:r(256,18,1,"prediction_layer/box_predictor_4/class_predictor")},box_predictor_5:{box_encoding_predictor:r(128,24,1,"prediction_layer/box_predictor_5/box_encoding_predictor"),class_predictor:r(128,18,1,"prediction_layer/box_predictor_5/class_predictor")}}}}}(r,n),l=s.extractPredictionLayerParams,u=(0,s.extractMobilenetV1Params)(),d=l(),M={extra_dim:ae(r(20472),[1,5118,4])};if(n.push({paramPath:"output_layer/extra_dim"}),0!==i().length)throw new Error("weights remaing after extract: "+i().length);return{params:{mobilenetv1:u,prediction_layer:d,output_layer:M},paramMappings:n}}(e)},n}(t2);!function(t){co(function n(){return null!==t&&t.apply(this,arguments)||this},t)}(T5);var EC=[new pi(.738768,.874946),new pi(2.42204,2.65704),new pi(4.30971,7.04493),new pi(10.246,4.59428),new pi(12.6868,11.8741)],xC=[new pi(1.603231,2.094468),new pi(6.041143,7.080126),new pi(2.882459,3.518061),new pi(4.266906,5.178857),new pi(9.041765,10.66308)],w5=[117.001,114.697,97.404],Du=function(t){return"number"==typeof t};function Pu(t){return ir(function(){var n=Ds(t,wn(.10000000149011612));return Ro(ua(ns(t,n)),n)})}function E2(t,n){return ir(function(){var e=$1(t,[[0,0],[1,1],[1,1],[0,0]]);return e=Xc(e,n.conv.filters,[1,1],"valid"),e=ns(e,n.bn.sub),e=Ds(e,n.bn.truediv),Pu(e=Ro(e,n.conv.bias))})}function x2(t,n){return ir(function(){var e=$1(t,[[0,0],[1,1],[1,1],[0,0]]);return e=Rd(e,n.depthwise_filter,n.pointwise_filter,[1,1],"valid"),Pu(e=Ro(e,n.bias))})}var Ou=function(){function t(n){var e=void 0===n?{}:n,r=e.inputSize,i=e.scoreThreshold;if(this._name="TinyYolov2Options",this._inputSize=r||416,this._scoreThreshold=i||.5,"number"!=typeof this._inputSize||this._inputSize%32!=0)throw new Error(this._name+" - expected inputSize to be a number divisible by 32");if("number"!=typeof this._scoreThreshold||this._scoreThreshold<=0||this._scoreThreshold>=1)throw new Error(this._name+" - expected scoreThreshold to be a number between 0 and 1")}return Object.defineProperty(t.prototype,"inputSize",{get:function(){return this._inputSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scoreThreshold",{get:function(){return this._scoreThreshold},enumerable:!0,configurable:!0}),t}(),k5=function(t){function n(e){var r=t.call(this,"TinyYolov2")||this;return function DC(t){if(!t)throw new Error("invalid config: "+t);if("boolean"!=typeof t.withSeparableConvs)throw new Error("config.withSeparableConvs has to be a boolean, have: "+t.withSeparableConvs);if(!Du(t.iouThreshold)||t.iouThreshold<0||t.iouThreshold>1)throw new Error("config.iouThreshold has to be a number between [0, 1], have: "+t.iouThreshold);if(!Array.isArray(t.classes)||!t.classes.length||!t.classes.every(function(n){return"string"==typeof n}))throw new Error("config.classes has to be an array class names: string[], have: "+JSON.stringify(t.classes));if(!Array.isArray(t.anchors)||!t.anchors.length||!t.anchors.map(function(n){return n||{}}).every(function(n){return Du(n.x)&&Du(n.y)}))throw new Error("config.anchors has to be an array of { x: number, y: number }, have: "+JSON.stringify(t.anchors));if(t.meanRgb&&(!Array.isArray(t.meanRgb)||3!==t.meanRgb.length||!t.meanRgb.every(Du)))throw new Error("config.meanRgb has to be an array of shape [number, number, number], have: "+JSON.stringify(t.meanRgb))}(e),r._config=e,r}return co(n,t),Object.defineProperty(n.prototype,"config",{get:function(){return this._config},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"withClassScores",{get:function(){return this.config.withClassScores||this.config.classes.length>1},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"boxEncodingSize",{get:function(){return 5+(this.withClassScores?this.config.classes.length:0)},enumerable:!0,configurable:!0}),n.prototype.runTinyYolov2=function(e,r){var i=E2(e,r.conv0);return i=E2(i=rs(i,[2,2],[2,2],"same"),r.conv1),i=E2(i=rs(i,[2,2],[2,2],"same"),r.conv2),i=E2(i=rs(i,[2,2],[2,2],"same"),r.conv3),i=E2(i=rs(i,[2,2],[2,2],"same"),r.conv4),i=E2(i=rs(i,[2,2],[2,2],"same"),r.conv5),i=E2(i=rs(i,[2,2],[1,1],"same"),r.conv6),h1(i=E2(i,r.conv7),r.conv8,"valid",!1)},n.prototype.runMobilenet=function(e,r){var i=this.config.isFirstLayerConv2d?Pu(h1(e,r.conv0,"valid",!1)):x2(e,r.conv0);return i=x2(i=rs(i,[2,2],[2,2],"same"),r.conv1),i=x2(i=rs(i,[2,2],[2,2],"same"),r.conv2),i=x2(i=rs(i,[2,2],[2,2],"same"),r.conv3),i=x2(i=rs(i,[2,2],[2,2],"same"),r.conv4),i=x2(i=rs(i,[2,2],[2,2],"same"),r.conv5),i=rs(i,[2,2],[1,1],"same"),i=r.conv6?x2(i,r.conv6):i,h1(i=r.conv7?x2(i,r.conv7):i,r.conv8,"valid",!1)},n.prototype.forwardInput=function(e,r){var i=this,s=this.params;if(!s)throw new Error("TinyYolov2 - load model before inference");return ir(function(){var c=e.toBatchTensor(r,!1).toFloat();return c=(c=i.config.meanRgb?V0(c,i.config.meanRgb):c).div(wn(256)),i.config.withSeparableConvs?i.runMobilenet(c,s):i.runTinyYolov2(c,s)})},n.prototype.forward=function(e,r){return Mr(this,void 0,void 0,function(){var i;return Lr(this,function(s){switch(s.label){case 0:return i=this.forwardInput,[4,is(e)];case 1:return[4,i.apply(this,[s.sent(),r])];case 2:return[2,s.sent()]}})})},n.prototype.detect=function(e,r){return void 0===r&&(r={}),Mr(this,void 0,void 0,function(){var i,s,c,l,u,d,p,M,x,R,U,J,Ie=this;return Lr(this,function(Ae){switch(Ae.label){case 0:return i=new Ou(r),s=i.inputSize,c=i.scoreThreshold,[4,is(e)];case 1:return l=Ae.sent(),[4,this.forwardInput(l,s)];case 2:return u=Ae.sent(),d=ir(function(){return ts(u)[0].expandDims()}),p={width:l.getInputWidth(0),height:l.getInputHeight(0)},[4,this.extractBoxes(d,l.getReshapedInputDimensions(0),c)];case 3:return M=Ae.sent(),u.dispose(),d.dispose(),x=M.map(function(Oe){return Oe.box}),R=M.map(function(Oe){return Oe.score}),U=M.map(function(Oe){return Oe.classScore}),J=M.map(function(Oe){return Ie.config.classes[Oe.label]}),[2,U0(x.map(function(Oe){return Oe.rescale(s)}),R,this.config.iouThreshold,!0).map(function(Oe){return new Z8(R[Oe],U[Oe],J[Oe],x[Oe],p)})]}})})},n.prototype.getDefaultModelName=function(){return""},n.prototype.extractParamsFromWeigthMap=function(e){return function IC(t,n){var l,e=[],r=function OC(t,n){var e=T2(t,n);function i(l){return{filters:e(l+"/filters",4),bias:e(l+"/bias",1)}}return{extractConvParams:i,extractConvWithBatchNormParams:function s(l){var u=i(l+"/conv"),d=function r(l){return{sub:e(l+"/sub",1),truediv:e(l+"/truediv",1)}}(l+"/bn");return{conv:u,bn:d}},extractSeparableConvParams:wu(e)}}(t,e),i=r.extractConvParams,s=r.extractConvWithBatchNormParams,c=r.extractSeparableConvParams;if(n.withSeparableConvs){var u=n.filterSizes&&n.filterSizes.length||9;l={conv0:n.isFirstLayerConv2d?i("conv0"):c("conv0"),conv1:c("conv1"),conv2:c("conv2"),conv3:c("conv3"),conv4:c("conv4"),conv5:c("conv5"),conv6:u>7?c("conv6"):void 0,conv7:u>8?c("conv7"):void 0,conv8:i("conv8")}}else l={conv0:s("conv0"),conv1:s("conv1"),conv2:s("conv2"),conv3:s("conv3"),conv4:s("conv4"),conv5:s("conv5"),conv6:s("conv6"),conv7:s("conv7"),conv8:i("conv8")};return w1(t,e),{params:l,paramMappings:e}}(e,this.config)},n.prototype.extractParams=function(e){var r=this.config.filterSizes||n.DEFAULT_FILTER_SIZES,i=r?r.length:void 0;if(7!==i&&8!==i&&9!==i)throw new Error("TinyYolov2 - expected 7 | 8 | 9 convolutional filters, but found "+i+" filterSizes in config");return function x5(t,n,e,r){var x,i=n2(t),c=i.getRemainingWeights,l=[],u=function PC(t,n){var e=Su(t,n),s=k6(t,n);return{extractConvParams:e,extractConvWithBatchNormParams:function i(c,l,u){var d=e(c,l,3,u+"/conv"),p=function r(c,l){var u=C(t(c)),d=C(t(c));return n.push({paramPath:l+"/sub"},{paramPath:l+"/truediv"}),{sub:u,truediv:d}}(l,u+"/bn");return{conv:d,bn:p}},extractSeparableConvParams:s}}(i.extractWeights,l),d=u.extractConvParams,p=u.extractConvWithBatchNormParams,M=u.extractSeparableConvParams;if(n.withSeparableConvs){var R=r[0],U=r[1],J=r[2],ne=r[3],ue=r[4],Ie=r[5],Ae=r[6],Oe=r[7],Fe=r[8];x={conv0:n.isFirstLayerConv2d?d(R,U,3,"conv0"):M(R,U,"conv0"),conv1:M(U,J,"conv1"),conv2:M(J,ne,"conv2"),conv3:M(ne,ue,"conv3"),conv4:M(ue,Ie,"conv4"),conv5:M(Ie,Ae,"conv5"),conv6:Oe?M(Ae,Oe,"conv6"):void 0,conv7:Fe?M(Oe,Fe,"conv7"):void 0,conv8:d(Fe||Oe||Ae,5*e,1,"conv8")}}else J=r[2],ne=r[3],ue=r[4],Ie=r[5],Ae=r[6],Oe=r[7],Fe=r[8],x={conv0:p(R=r[0],U=r[1],"conv0"),conv1:p(U,J,"conv1"),conv2:p(J,ne,"conv2"),conv3:p(ne,ue,"conv3"),conv4:p(ue,Ie,"conv4"),conv5:p(Ie,Ae,"conv5"),conv6:p(Ae,Oe,"conv6"),conv7:p(Oe,Fe,"conv7"),conv8:d(Fe,5*e,1,"conv8")};if(0!==c().length)throw new Error("weights remaing after extract: "+c().length);return{params:x,paramMappings:l}}(e,this.config,this.boxEncodingSize,r)},n.prototype.extractBoxes=function(e,r,i){return Mr(this,void 0,void 0,function(){var s,c,l,u,d,p,M,x,R,U,J,ne,ue,Ie,Ae,Oe,Fe,et,Ct,yt,pt,gt,Bt,Ft,yn,pn,_n,Dn,En,bn=this;return Lr(this,function(Nn){switch(Nn.label){case 0:return s=r.width,c=r.height,l=Math.max(s,c),u=l/s,d=l/c,p=e.shape[1],M=this.config.anchors.length,x=ir(function(){var Rn=e.reshape([p,p,M,bn.boxEncodingSize]);return[Rn.slice([0,0,0,0],[p,p,M,4]),Rn.slice([0,0,0,4],[p,p,M,1]),bn.withClassScores?K1(Rn.slice([0,0,0,5],[p,p,M,bn.config.classes.length]),3):wn(0)]}),R=x[0],J=x[2],ne=[],[4,(U=x[1]).array()];case 1:return ue=Nn.sent(),[4,R.array()];case 2:Ie=Nn.sent(),Ae=0,Nn.label=3;case 3:if(!(Ae<p))return[3,12];Oe=0,Nn.label=4;case 4:if(!(Oe<p))return[3,11];Fe=0,Nn.label=5;case 5:return Fe<M?(et=_6(ue[Ae][Oe][Fe][0]),!i||et>i?(Ct=(Oe+_6(Ie[Ae][Oe][Fe][0]))/p*u,yt=(Ae+_6(Ie[Ae][Oe][Fe][1]))/p*d,pt=Math.exp(Ie[Ae][Oe][Fe][2])*this.config.anchors[Fe].x/p*u,gt=Math.exp(Ie[Ae][Oe][Fe][3])*this.config.anchors[Fe].y/p*d,Bt=Ct-pt/2,Ft=yt-gt/2,yn={row:Ae,col:Oe,anchor:Fe},this.withClassScores?[4,this.extractPredictedClass(J,yn)]:[3,7]):[3,9]):[3,10];case 6:return En=Nn.sent(),[3,8];case 7:En={classScore:1,label:0},Nn.label=8;case 8:_n=(pn=En).classScore,Dn=pn.label,ne.push(Ws({box:new gu(Bt,Ft,Bt+pt,Ft+gt),score:et,classScore:et*_n,label:Dn},yn)),Nn.label=9;case 9:return Fe++,[3,5];case 10:return Oe++,[3,4];case 11:return Ae++,[3,3];case 12:return R.dispose(),U.dispose(),J.dispose(),[2,ne]}})})},n.prototype.extractPredictedClass=function(e,r){return Mr(this,void 0,void 0,function(){var i,s,c,l;return Lr(this,function(u){switch(u.label){case 0:return i=r.row,s=r.col,c=r.anchor,[4,e.array()];case 1:return l=u.sent(),[2,Array(this.config.classes.length).fill(0).map(function(d,p){return l[i][s][c][p]}).map(function(d,p){return{classScore:d,label:p}}).reduce(function(d,p){return d.classScore>p.classScore?d:p})]}})})},n.DEFAULT_FILTER_SIZES=[3,16,32,64,128,256,512,1024,1024],n}(t2),D5=function(t){function n(e){void 0===e&&(e=!0);var i=Object.assign({},{withSeparableConvs:e,iouThreshold:.4,classes:["face"]},e?{anchors:xC,meanRgb:w5}:{anchors:EC,withClassScores:!0});return t.call(this,i)||this}return co(n,t),Object.defineProperty(n.prototype,"withSeparableConvs",{get:function(){return this.config.withSeparableConvs},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"anchors",{get:function(){return this.config.anchors},enumerable:!0,configurable:!0}),n.prototype.locateFaces=function(e,r){return Mr(this,void 0,void 0,function(){return Lr(this,function(s){switch(s.label){case 0:return[4,this.detect(e,r)];case 1:return[2,s.sent().map(function(c){return new f1(c.score,c.relativeBox,{width:c.imageWidth,height:c.imageHeight})})]}})})},n.prototype.getDefaultModelName=function(){return this.withSeparableConvs?"tiny_yolov2_separable_conv_model":"tiny_yolov2_model"},n.prototype.extractParamsFromWeigthMap=function(e){return t.prototype.extractParamsFromWeigthMap.call(this,e)},n}(k5),F6=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._name="TinyFaceDetectorOptions",e}return co(n,t),n}(Ou),q2=function(){function t(){}return t.prototype.then=function(n){return Mr(this,void 0,void 0,function(){var e;return Lr(this,function(r){switch(r.label){case 0:return e=n,[4,this.run()];case 1:return[2,e.apply(void 0,[r.sent()])]}})})},t.prototype.run=function(){return Mr(this,void 0,void 0,function(){return Lr(this,function(n){throw new Error("ComposableTask - run is not implemented")})})},t}();function P5(t,n){return Object.assign({},t,{descriptor:n})}function Iu(t,n,e,r,i){return void 0===i&&(i=function(s){return s.alignedRect}),Mr(this,void 0,void 0,function(){var s,c,l,u,d;return Lr(this,function(p){switch(p.label){case 0:return s=t.map(function(M){return function GM(t){return function OM(t){return t.detection instanceof f1}(t)&&t.landmarks instanceof Mu&&t.unshiftedLandmarks instanceof Mu&&t.alignedRect instanceof f1}(M)?i(M):M.detection}),(l=r)?[3,5]:n instanceof Ao?[4,E6(n,s)]:[3,2];case 1:return u=p.sent(),[3,4];case 2:return[4,w6(n,s)];case 3:u=p.sent(),p.label=4;case 4:l=u,p.label=5;case 5:return[4,e(c=l)];case 6:return d=p.sent(),c.forEach(function(M){return M instanceof Ao&&M.dispose()}),[2,d]}})})}function Au(t,n,e,r,i){return Mr(this,void 0,void 0,function(){var s=this;return Lr(this,function(c){return[2,Iu([t],n,function(l){return Mr(s,void 0,void 0,function(){return Lr(this,function(u){return[2,e(l[0])]})})},r,i)]})})}function zu(t,n){var r=n[1];return{height:Math.floor(n[0]*t),width:Math.floor(r*t)}}var H6=function(t){function n(e,r,i,s){return t.call(this,{left:e,top:r,right:i,bottom:s},!0)||this}return co(n,t),n}(q1);function B6(t){return ir(function(){return Ds(ns(t,wn(127.5)),wn(.0078125))})}function Wl(t,n){return ir(function(){return Ro(ua(t),Ds(n,eu(ua(eu(t)))))})}function j6(t,n,e){return void 0===e&&(e=!1),ir(function(){var r=h1(t,n.conv1,"valid");return r=Wl(r,n.prelu1_alpha),r=Wl(r=h1(r=rs(r,e?[2,2]:[3,3],[2,2],"same"),n.conv2,"valid"),n.prelu2_alpha),Wl(r=h1(r=e?r:rs(r,[3,3],[2,2],"valid"),n.conv3,"valid"),n.prelu3_alpha)})}function Ru(t,n,e,r,i){i.stage1=[];var s=n.map(function(x){return ir(function(){var R={scale:x},U=function HC(t,n){return ir(function(){var e=zu(n,t.shape.slice(1)),c=B6(Wd.resizeBilinear(t,[e.height,e.width]));return y2(c,[0,2,1,3])})}(t,x),J=Date.now(),ne=function FC(t,n){return ir(function(){var e=j6(t,n,!0),r=h1(e,n.conv4_1,"valid"),i=Ms(F0(r,3),3);return{prob:K1(ns(r,i),3),regions:h1(e,n.conv4_2,"valid")}})}(U,r),ue=ne.prob,Ie=ne.regions;return R.pnet=Date.now()-J,{scoresTensor:ts(ts(ue,3)[1])[0],regionsTensor:ts(Ie)[0],scale:x,statsForScale:R}})}),c=s.map(function(x){var R=x.scoresTensor,U=x.regionsTensor,ne=x.statsForScale,ue=function BC(t,n,e,r){for(var i=[],s=t.arraySync(),c=0;c<t.shape[0];c++)for(var l=0;l<t.shape[1];l++)s[c][l]>=r&&i.push(new pi(l,c));return i.map(function(d){var p=new gu(Math.round((2*d.y+1)/e),Math.round((2*d.x+1)/e),Math.round((2*d.y+12)/e),Math.round((2*d.x+12)/e)),M=s[d.y][d.x],x=n.arraySync();return{cell:p,score:M,region:new H6(x[d.y][d.x][0],x[d.y][d.x][1],x[d.y][d.x][2],x[d.y][d.x][3])}})}(R,U,x.scale,e);if(R.dispose(),U.dispose(),!ue.length)return i.stage1.push(ne),[];var Ie=Date.now(),Ae=U0(ue.map(function(Oe){return Oe.cell}),ue.map(function(Oe){return Oe.score}),.5);return ne.nms=Date.now()-Ie,ne.numBoxes=Ae.length,i.stage1.push(ne),Ae.map(function(Oe){return ue[Oe]})}),l=c.reduce(function(x,R){return x.concat(R)},[]),u=[],d=[];if(l.length>0){var p=Date.now(),M=U0(l.map(function(x){return x.cell}),l.map(function(x){return x.score}),.7);i.stage1_nms=Date.now()-p,d=M.map(function(x){return l[x].score}),u=M.map(function(x){return l[x]}).map(function(x){var R=x.cell,U=x.region;return new gu(R.left+U.left*R.width,R.top+U.top*R.height,R.right+U.right*R.width,R.bottom+U.bottom*R.height).toSquare().round()})}return{boxes:u,scores:d}}function I5(t,n,e){var r=e.width,i=e.height;return Mr(this,void 0,void 0,function(){var s,c,l,u=this;return Lr(this,function(d){switch(d.label){case 0:return s=T1(t),[4,Promise.all(n.map(function(p){return Mr(u,void 0,void 0,function(){var M,ne,ue,Ie;return Lr(this,function(Ae){return M=p.padAtBorders(t.height,t.width),Ie=s.getImageData(ne=M.x-1,ue=M.y-1,M.ex-ne,M.ey-ue),[2,Us.isNodejs()?$0(Ie):createImageBitmap(Ie)]})})}))];case 1:return c=d.sent(),l=[],c.forEach(function(p){var x=T1(Cu({width:r,height:i}));x.drawImage(p,0,0,r,i);for(var R=x.getImageData(0,0,r,i).data,U=[],J=0;J<R.length;J+=4)U.push(R[J+2]),U.push(R[J+1]),U.push(R[J]);l.push(U)}),[2,l.map(function(p){return ir(function(){return B6(y2(Se(p,[1,r,i,3]),[0,2,1,3]).toFloat())})})]}})})}function WC(t,n,e,r,i){return Mr(this,void 0,void 0,function(){var s,c,l,u,d,p,M,x,R,U,J,ne,ue,Ie;return Lr(this,function(Ae){switch(Ae.label){case 0:return s=Date.now(),[4,I5(t,n,{width:24,height:24})];case 1:return c=Ae.sent(),i.stage2_extractImagePatches=Date.now()-s,s=Date.now(),l=c.map(function(Oe){var Fe=function jC(t,n){return ir(function(){var e=j6(t,n),s=Wl(E1(l1(e,[e.shape[0],n.fc1.weights.shape[0]]),n.fc1),n.prelu4_alpha),c=E1(s,n.fc2_1),l=Ms(F0(c,1),1),u=K1(ns(c,l),1),d=E1(s,n.fc2_2);return{scores:ts(u,1)[1],regions:d}})}(Oe,r);return Oe.dispose(),Fe}),i.stage2_rnet=Date.now()-s,u=l.length>1?Ia(l.map(function(Oe){return Oe.scores})):l[0].scores,M=(p=Array).from,[4,u.data()];case 2:return d=M.apply(p,[Ae.sent()]),u.dispose(),x=d.map(function(Oe,Fe){return{score:Oe,idx:Fe}}).filter(function(Oe){return Oe.score>e}).map(function(Oe){return Oe.idx}),R=x.map(function(Oe){return n[Oe]}),U=x.map(function(Oe){return d[Oe]}),J=[],ne=[],R.length>0&&(s=Date.now(),ue=U0(R,U,.7),i.stage2_nms=Date.now()-s,Ie=ue.map(function(Oe){var Fe=l[x[Oe]].regions.arraySync();return new H6(Fe[0][0],Fe[0][1],Fe[0][2],Fe[0][3])}),ne=ue.map(function(Oe){return U[Oe]}),J=ue.map(function(Oe,Fe){return R[Oe].calibrate(Ie[Fe])})),l.forEach(function(Oe){Oe.regions.dispose(),Oe.scores.dispose()}),[2,{boxes:J,scores:ne}]}})})}function UC(t,n,e,r,i){return Mr(this,void 0,void 0,function(){var s,c,l,u,d,p,M,x,R,U,J,ne,ue,Ie,Ae;return Lr(this,function(Oe){switch(Oe.label){case 0:return s=Date.now(),[4,I5(t,n,{width:48,height:48})];case 1:return c=Oe.sent(),i.stage3_extractImagePatches=Date.now()-s,s=Date.now(),l=c.map(function(Fe){var et=function A5(t,n){return ir(function(){var e=j6(t,n);e=Wl(e=h1(e=rs(e,[2,2],[2,2],"same"),n.conv4,"valid"),n.prelu4_alpha);var s=Wl(E1(l1(e,[e.shape[0],n.fc1.weights.shape[0]]),n.fc1),n.prelu5_alpha),c=E1(s,n.fc2_1),l=Ms(F0(c,1),1),u=K1(ns(c,l),1),d=E1(s,n.fc2_2),p=E1(s,n.fc2_3);return{scores:ts(u,1)[1],regions:d,points:p}})}(Fe,r);return Fe.dispose(),et}),i.stage3_onet=Date.now()-s,u=l.length>1?Ia(l.map(function(Fe){return Fe.scores})):l[0].scores,M=(p=Array).from,[4,u.data()];case 2:return d=M.apply(p,[Oe.sent()]),u.dispose(),x=d.map(function(Fe,et){return{score:Fe,idx:et}}).filter(function(Fe){return Fe.score>e}).map(function(Fe){return Fe.idx}),R=x.map(function(Fe){var et=l[Fe].regions.arraySync();return new H6(et[0][0],et[0][1],et[0][2],et[0][3])}),U=x.map(function(Fe,et){return n[Fe].calibrate(R[et])}),J=x.map(function(Fe){return d[Fe]}),ne=[],ue=[],Ie=[],U.length>0&&(s=Date.now(),Ae=U0(U,J,.7,!1),i.stage3_nms=Date.now()-s,ne=Ae.map(function(Fe){return U[Fe]}),ue=Ae.map(function(Fe){return J[Fe]}),Ie=Ae.map(function(Fe,et){return Array(5).fill(0).map(function(Ct,yt){var pt=l[Fe].points.arraySync();return new pi(pt[0][yt]*(ne[et].width+1)+ne[et].left,pt[0][yt+5]*(ne[et].height+1)+ne[et].top)})})),l.forEach(function(Fe){Fe.regions.dispose(),Fe.scores.dispose(),Fe.points.dispose()}),[2,{boxes:ne,scores:ue,points:Ie}]}})})}var N5=function(t){function n(){return t.call(this,"Mtcnn")||this}return co(n,t),n.prototype.load=function(e){return Mr(this,void 0,void 0,function(){return Lr(this,function(r){return console.warn("mtcnn is deprecated and will be removed soon"),[2,t.prototype.load.call(this,e)]})})},n.prototype.loadFromDisk=function(e){return Mr(this,void 0,void 0,function(){return Lr(this,function(r){return console.warn("mtcnn is deprecated and will be removed soon"),[2,t.prototype.loadFromDisk.call(this,e)]})})},n.prototype.forwardInput=function(e,r){return void 0===r&&(r={}),Mr(this,void 0,void 0,function(){var i,s,c,l,u,d,p,M,x,R,U,J,ne,ue,Ae,Oe,Fe,et,Ct,yt;return Lr(this,function(pt){switch(pt.label){case 0:if(!(i=this.params))throw new Error("Mtcnn - load model before inference");if(!(s=e.canvases[0]))throw new Error("Mtcnn - inputCanvas is not defined, note that passing tensors into Mtcnn.forwardInput is not supported yet.");return c={},l=Date.now(),u=ir(function(){return function AC(t){return ir(function(){return Lc(ts(t,3).reverse(),3)})}(Ms(c6.fromPixels(s)).toFloat())}),d=function(gt){return u.dispose(),c.total=Date.now()-l,gt},p=u.shape.slice(1),M=p[0],x=p[1],R=new b5(r),U=R.minFaceSize,J=R.scaleFactor,ne=R.maxNumScales,ue=R.scoreThresholds,Ae=(R.scaleSteps||function YC(t,n,e){for(var s=12/t,c=[],l=Math.min(e[0],e[1])*s,u=0;l>=12;)c.push(s*Math.pow(n,u)),l*=n,u+=1;return c}(U,J,[M,x])).filter(function(gt){var Bt=zu(gt,[M,x]);return Math.min(Bt.width,Bt.height)>12}).slice(0,ne),c.scales=Ae,c.pyramid=Ae.map(function(gt){return zu(gt,[M,x])}),Oe=Date.now(),[4,Ru(u,Ae,ue[0],i.pnet,c)];case 1:return Fe=pt.sent(),c.total_stage1=Date.now()-Oe,Fe.boxes.length?(c.stage2_numInputBoxes=Fe.boxes.length,Oe=Date.now(),[4,WC(s,Fe.boxes,ue[1],i.rnet,c)]):[2,d({results:[],stats:c})];case 2:return et=pt.sent(),c.total_stage2=Date.now()-Oe,et.boxes.length?(c.stage3_numInputBoxes=et.boxes.length,Oe=Date.now(),[4,UC(s,et.boxes,ue[2],i.onet,c)]):[2,d({results:[],stats:c})];case 3:return Ct=pt.sent(),c.total_stage3=Date.now()-Oe,yt=Ct.boxes.map(function(gt,Bt){return I6(v6({},new f1(Ct.scores[Bt],new yu(gt.left/x,gt.top/M,gt.width/x,gt.height/M),{height:M,width:x})),new PM(Ct.points[Bt].map(function(Ft){return Ft.sub(new pi(gt.left,gt.top)).div(new pi(gt.width,gt.height))}),{width:gt.width,height:gt.height}))}),[2,d({results:yt,stats:c})]}})})},n.prototype.forward=function(e,r){return void 0===r&&(r={}),Mr(this,void 0,void 0,function(){var i;return Lr(this,function(s){switch(s.label){case 0:return i=this.forwardInput,[4,is(e)];case 1:return[4,i.apply(this,[s.sent(),r])];case 2:return[2,s.sent().results]}})})},n.prototype.forwardWithStats=function(e,r){return void 0===r&&(r={}),Mr(this,void 0,void 0,function(){var i;return Lr(this,function(s){switch(s.label){case 0:return i=this.forwardInput,[4,is(e)];case 1:return[2,i.apply(this,[s.sent(),r])]}})})},n.prototype.getDefaultModelName=function(){return"mtcnn_model"},n.prototype.extractParamsFromWeigthMap=function(e){return function RC(t){var n=[],e=function zC(t,n){var e=T2(t,n);function r(p){return{filters:e(p+"/weights",4,p+"/filters"),bias:e(p+"/bias",1)}}function i(p){return{weights:e(p+"/weights",2),bias:e(p+"/bias",1)}}function s(p){return e(p,1)}function c(p){return{conv1:r(p+"/conv1"),prelu1_alpha:s(p+"/prelu1_alpha"),conv2:r(p+"/conv2"),prelu2_alpha:s(p+"/prelu2_alpha"),conv3:r(p+"/conv3"),prelu3_alpha:s(p+"/prelu3_alpha")}}return{extractPNetParams:function l(){var p=c("pnet"),M=r("pnet/conv4_1"),x=r("pnet/conv4_2");return Ws(Ws({},p),{conv4_1:M,conv4_2:x})},extractRNetParams:function u(){var p=c("rnet"),M=i("rnet/fc1"),x=s("rnet/prelu4_alpha"),R=i("rnet/fc2_1"),U=i("rnet/fc2_2");return Ws(Ws({},p),{fc1:M,prelu4_alpha:x,fc2_1:R,fc2_2:U})},extractONetParams:function d(){var p=c("onet"),M=r("onet/conv4"),x=s("onet/prelu4_alpha"),R=i("onet/fc1"),U=s("onet/prelu5_alpha"),J=i("onet/fc2_1"),ne=i("onet/fc2_2"),ue=i("onet/fc2_3");return Ws(Ws({},p),{conv4:M,prelu4_alpha:x,fc1:R,prelu5_alpha:U,fc2_1:J,fc2_2:ne,fc2_3:ue})}}}(t,n),i=e.extractRNetParams,s=e.extractONetParams,c=(0,e.extractPNetParams)(),l=i(),u=s();return w1(t,n),{params:{pnet:c,rnet:l,onet:u},paramMappings:n}}(e)},n.prototype.extractParams=function(e){return function NC(t){var n=n2(t),r=n.getRemainingWeights,i=[],s=function O5(t,n){var e=Su(t,n),r=Tu(t,n);function i(d,p){var M=C(t(d));return n.push({paramPath:p}),M}function s(d,p,M){return void 0===M&&(M=!1),{conv1:e(d[0],d[1],3,p+"/conv1"),prelu1_alpha:i(d[1],p+"/prelu1_alpha"),conv2:e(d[1],d[2],3,p+"/conv2"),prelu2_alpha:i(d[2],p+"/prelu2_alpha"),conv3:e(d[2],d[3],M?2:3,p+"/conv3"),prelu3_alpha:i(d[3],p+"/prelu3_alpha")}}return{extractPNetParams:function c(){var d=s([3,10,16,32],"pnet"),p=e(32,2,1,"pnet/conv4_1"),M=e(32,4,1,"pnet/conv4_2");return Ws(Ws({},d),{conv4_1:p,conv4_2:M})},extractRNetParams:function l(){var d=s([3,28,48,64],"rnet",!0),p=r(576,128,"rnet/fc1"),M=i(128,"rnet/prelu4_alpha"),x=r(128,2,"rnet/fc2_1"),R=r(128,4,"rnet/fc2_2");return Ws(Ws({},d),{fc1:p,prelu4_alpha:M,fc2_1:x,fc2_2:R})},extractONetParams:function u(){var d=s([3,32,64,64],"onet"),p=e(64,128,2,"onet/conv4"),M=i(128,"onet/prelu4_alpha"),x=r(1152,256,"onet/fc1"),R=i(256,"onet/prelu5_alpha"),U=r(256,2,"onet/fc2_1"),J=r(256,4,"onet/fc2_2"),ne=r(256,10,"onet/fc2_3");return Ws(Ws({},d),{conv4:p,prelu4_alpha:M,fc1:x,prelu5_alpha:R,fc2_1:U,fc2_2:J,fc2_3:ne})}}}(n.extractWeights,i),l=s.extractRNetParams,u=s.extractONetParams,d=(0,s.extractPNetParams)(),p=l(),M=u();if(0!==r().length)throw new Error("weights remaing after extract: "+r().length);return{params:{pnet:d,rnet:p,onet:M},paramMappings:i}}(e)},n}(t2),GC=[new pi(1.603231,2.094468),new pi(6.041143,7.080126),new pi(2.882459,3.518061),new pi(4.266906,5.178857),new pi(9.041765,10.66308)],$C=[117.001,114.697,97.404],KC=function(t){function n(){return t.call(this,{withSeparableConvs:!0,iouThreshold:.4,classes:["face"],anchors:GC,meanRgb:$C,isFirstLayerConv2d:!0,filterSizes:[3,16,32,64,128,256,512]})||this}return co(n,t),Object.defineProperty(n.prototype,"anchors",{get:function(){return this.config.anchors},enumerable:!0,configurable:!0}),n.prototype.locateFaces=function(e,r){return Mr(this,void 0,void 0,function(){return Lr(this,function(s){switch(s.label){case 0:return[4,this.detect(e,r)];case 1:return[2,s.sent().map(function(c){return new f1(c.score,c.relativeBox,{width:c.imageWidth,height:c.imageHeight})})]}})})},n.prototype.getDefaultModelName=function(){return"tiny_face_detector_model"},n.prototype.extractParamsFromWeigthMap=function(e){return t.prototype.extractParamsFromWeigthMap.call(this,e)},n}(k5),li={ssdMobilenetv1:new T5,tinyFaceDetector:new KC,tinyYolov2:new D5,mtcnn:new N5,faceLandmark68Net:new _5,faceLandmark68TinyNet:new aC,faceRecognitionNet:new fC,faceExpressionNet:new h5,ageGenderNet:new nC};function z5(t,n){return Object.assign({},t,{age:n})}var W6=function(t){function n(e,r,i){var s=t.call(this)||this;return s.parentTask=e,s.input=r,s.extractedFaces=i,s}return co(n,t),n}(q2),U6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r,i=this;return Lr(this,function(s){switch(s.label){case 0:return[4,this.parentTask];case 1:return[4,Iu(e=s.sent(),this.input,function(c){return Mr(i,void 0,void 0,function(){return Lr(this,function(l){switch(l.label){case 0:return[4,Promise.all(c.map(function(u){return li.faceExpressionNet.predictExpressions(u)}))];case 1:return[2,l.sent()]}})})},this.extractedFaces)];case 2:return r=s.sent(),[2,e.map(function(c,l){return m5(c,r[l])})]}})})},n.prototype.withAgeAndGender=function(){return new Yu(this,this.input)},n}(W6),Ul=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r;return Lr(this,function(i){switch(i.label){case 0:return[4,this.parentTask];case 1:return(e=i.sent())?[4,Au(e,this.input,function(s){return li.faceExpressionNet.predictExpressions(s)},this.extractedFaces)]:[2];case 2:return r=i.sent(),[2,m5(e,r)]}})})},n.prototype.withAgeAndGender=function(){return new $6(this,this.input)},n}(W6),V6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.withAgeAndGender=function(){return new K6(this,this.input)},n.prototype.withFaceDescriptors=function(){return new J6(this,this.input)},n}(U6),G6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.withAgeAndGender=function(){return new X6(this,this.input)},n.prototype.withFaceDescriptor=function(){return new Q6(this,this.input)},n}(Ul),R5=function(t){function n(e,r,i){var s=t.call(this)||this;return s.parentTask=e,s.input=r,s.extractedFaces=i,s}return co(n,t),n}(q2),Yu=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r,i=this;return Lr(this,function(s){switch(s.label){case 0:return[4,this.parentTask];case 1:return[4,Iu(e=s.sent(),this.input,function(c){return Mr(i,void 0,void 0,function(){return Lr(this,function(l){switch(l.label){case 0:return[4,Promise.all(c.map(function(u){return li.ageGenderNet.predictAgeAndGender(u)}))];case 1:return[2,l.sent()]}})})},this.extractedFaces)];case 2:return r=s.sent(),[2,e.map(function(c,l){var u=r[l],d=u.age;return z5(C5(c,u.gender,u.genderProbability),d)})]}})})},n.prototype.withFaceExpressions=function(){return new U6(this,this.input)},n}(R5),$6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r,i;return Lr(this,function(l){switch(l.label){case 0:return[4,this.parentTask];case 1:return(e=l.sent())?[4,Au(e,this.input,function(u){return li.ageGenderNet.predictAgeAndGender(u)},this.extractedFaces)]:[2];case 2:return r=l.sent(),i=r.age,[2,z5(C5(e,r.gender,r.genderProbability),i)]}})})},n.prototype.withFaceExpressions=function(){return new Ul(this,this.input)},n}(R5),K6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.withFaceExpressions=function(){return new V6(this,this.input)},n.prototype.withFaceDescriptors=function(){return new J6(this,this.input)},n}(Yu),X6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.withFaceExpressions=function(){return new G6(this,this.input)},n.prototype.withFaceDescriptor=function(){return new Q6(this,this.input)},n}($6),Z6=function(t){function n(e,r){var i=t.call(this)||this;return i.parentTask=e,i.input=r,i}return co(n,t),n}(q2),J6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e;return Lr(this,function(i){switch(i.label){case 0:return[4,this.parentTask];case 1:return[4,Iu(e=i.sent(),this.input,function(s){return Promise.all(s.map(function(c){return li.faceRecognitionNet.computeFaceDescriptor(c)}))},null,function(s){return s.landmarks.align(null,{useDlibAlignment:!0})})];case 2:return[2,i.sent().map(function(s,c){return P5(e[c],s)})]}})})},n.prototype.withFaceExpressions=function(){return new V6(this,this.input)},n.prototype.withAgeAndGender=function(){return new K6(this,this.input)},n}(Z6),Q6=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r;return Lr(this,function(i){switch(i.label){case 0:return[4,this.parentTask];case 1:return(e=i.sent())?[4,Au(e,this.input,function(s){return li.faceRecognitionNet.computeFaceDescriptor(s)},null,function(s){return s.landmarks.align(null,{useDlibAlignment:!0})})]:[2];case 2:return r=i.sent(),[2,P5(e,r)]}})})},n.prototype.withFaceExpressions=function(){return new G6(this,this.input)},n.prototype.withAgeAndGender=function(){return new X6(this,this.input)},n}(Z6),Y5=function(t){function n(e,r,i){var s=t.call(this)||this;return s.parentTask=e,s.input=r,s.useTinyLandmarkNet=i,s}return co(n,t),Object.defineProperty(n.prototype,"landmarkNet",{get:function(){return this.useTinyLandmarkNet?li.faceLandmark68TinyNet:li.faceLandmark68Net},enumerable:!0,configurable:!0}),n}(q2),eb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r,i,s,c,l=this;return Lr(this,function(u){switch(u.label){case 0:return[4,this.parentTask];case 1:return e=u.sent(),r=e.map(function(d){return d.detection}),this.input instanceof Ao?[4,E6(this.input,r)]:[3,3];case 2:return s=u.sent(),[3,5];case 3:return[4,w6(this.input,r)];case 4:s=u.sent(),u.label=5;case 5:return i=s,[4,Promise.all(i.map(function(d){return l.landmarkNet.detectLandmarks(d)}))];case 6:return c=u.sent(),i.forEach(function(d){return d instanceof Ao&&d.dispose()}),[2,e.map(function(d,p){return I6(d,c[p])})]}})})},n.prototype.withFaceExpressions=function(){return new V6(this,this.input)},n.prototype.withAgeAndGender=function(){return new K6(this,this.input)},n.prototype.withFaceDescriptors=function(){return new J6(this,this.input)},n}(Y5),F5=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r,i,s,c;return Lr(this,function(l){switch(l.label){case 0:return[4,this.parentTask];case 1:return(e=l.sent())?(r=e.detection,this.input instanceof Ao?[4,E6(this.input,[r])]:[3,3]):[2];case 2:return s=l.sent(),[3,5];case 3:return[4,w6(this.input,[r])];case 4:s=l.sent(),l.label=5;case 5:return[4,this.landmarkNet.detectLandmarks((i=s)[0])];case 6:return c=l.sent(),i.forEach(function(u){return u instanceof Ao&&u.dispose()}),[2,I6(e,c)]}})})},n.prototype.withFaceExpressions=function(){return new G6(this,this.input)},n.prototype.withAgeAndGender=function(){return new X6(this,this.input)},n.prototype.withFaceDescriptor=function(){return new Q6(this,this.input)},n}(Y5),H5=function(t){function n(e,r){void 0===r&&(r=new xu);var i=t.call(this)||this;return i.input=e,i.options=r,i}return co(n,t),n}(q2),tb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r,i,s;return Lr(this,function(c){switch(c.label){case 0:return r=(e=this).input,(i=e.options)instanceof b5?[4,li.mtcnn.forward(r,i)]:[3,2];case 1:return[2,c.sent().map(function(l){return l.detection})];case 2:if(!(s=i instanceof F6?function(l){return li.tinyFaceDetector.locateFaces(l,i)}:i instanceof xu?function(l){return li.ssdMobilenetv1.locateFaces(l,i)}:i instanceof Ou?function(l){return li.tinyYolov2.locateFaces(l,i)}:null))throw new Error("detectFaces - expected options to be instance of TinyFaceDetectorOptions | SsdMobilenetv1Options | MtcnnOptions | TinyYolov2Options");return[2,s(r)]}})})},n.prototype.runAndExtendWithFaceDetections=function(){var e=this;return new Promise(function(r){return Mr(e,void 0,void 0,function(){var i;return Lr(this,function(s){switch(s.label){case 0:return[4,this.run()];case 1:return i=s.sent(),[2,r(i.map(function(c){return v6({},c)}))]}})})})},n.prototype.withFaceLandmarks=function(e){return void 0===e&&(e=!1),new eb(this.runAndExtendWithFaceDetections(),this.input,e)},n.prototype.withFaceExpressions=function(){return new U6(this.runAndExtendWithFaceDetections(),this.input)},n.prototype.withAgeAndGender=function(){return new Yu(this.runAndExtendWithFaceDetections(),this.input)},n}(H5),nb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return co(n,t),n.prototype.run=function(){return Mr(this,void 0,void 0,function(){var e,r;return Lr(this,function(i){switch(i.label){case 0:return[4,new tb(this.input,this.options)];case 1:return e=i.sent(),r=e[0],e.forEach(function(s){s.score>r.score&&(r=s)}),[2,r]}})})},n.prototype.runAndExtendWithFaceDetection=function(){var e=this;return new Promise(function(r){return Mr(e,void 0,void 0,function(){var i;return Lr(this,function(s){switch(s.label){case 0:return[4,this.run()];case 1:return i=s.sent(),[2,r(i?v6({},i):void 0)]}})})})},n.prototype.withFaceLandmarks=function(e){return void 0===e&&(e=!1),new F5(this.runAndExtendWithFaceDetection(),this.input,e)},n.prototype.withFaceExpressions=function(){return new Ul(this.runAndExtendWithFaceDetection(),this.input)},n.prototype.withAgeAndGender=function(){return new $6(this.runAndExtendWithFaceDetection(),this.input)},n}(H5);function q6(t,n){return void 0===n&&(n=new xu),new nb(t,n)}!function(){function t(n,e){void 0===e&&(e=.6),this._distanceThreshold=e;var r=Array.isArray(n)?n:[n];if(!r.length)throw new Error("FaceRecognizer.constructor - expected atleast one input");var i=1,s=function(){return"person "+i++};this._labeledDescriptors=r.map(function(c){if(c instanceof G0)return c;if(c instanceof Float32Array)return new G0(s(),[c]);if(c.descriptor&&c.descriptor instanceof Float32Array)return new G0(s(),[c.descriptor]);throw new Error("FaceRecognizer.constructor - expected inputs to be of type LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array | Array<LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array>")})}Object.defineProperty(t.prototype,"labeledDescriptors",{get:function(){return this._labeledDescriptors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"distanceThreshold",{get:function(){return this._distanceThreshold},enumerable:!0,configurable:!0}),t.prototype.computeMeanDistance=function(n,e){return e.map(function(r){return function B5(t,n){if(t.length!==n.length)throw new Error("euclideanDistance: arr1.length !== arr2.length");var e=Array.from(t),r=Array.from(n);return Math.sqrt(e.map(function(i,s){return i-r[s]}).reduce(function(i,s){return i+Math.pow(s,2)},0))}(r,n)}).reduce(function(r,i){return r+i},0)/(e.length||1)},t.prototype.matchDescriptor=function(n){var e=this;return this.labeledDescriptors.map(function(r){return new J8(r.label,e.computeMeanDistance(n,r.descriptors))}).reduce(function(r,i){return r.distance<i.distance?r:i})},t.prototype.findBestMatch=function(n){var e=this.matchDescriptor(n);return e.distance<this.distanceThreshold?e:new J8("unknown",e.distance)},t.prototype.toJSON=function(){return{distanceThreshold:this.distanceThreshold,labeledDescriptors:this.labeledDescriptors.map(function(n){return n.toJSON()})}},t.fromJSON=function(n){return new t(n.labeledDescriptors.map(function(r){return G0.fromJSON(r)}),n.distanceThreshold)}}();var Vl=typeof self<"u"?self:{};function W5(t,n){e:{for(var e=["CLOSURE_FLAGS"],r=Vl,i=0;i<e.length;i++)if(null==(r=r[e[i]])){e=null;break e}e=r}return null!=(t=e&&e[t])?t:n}function el(){throw Error("Invalid UTF8")}function ef(t,n){return n=String.fromCharCode.apply(null,n),null==t?n:t+n}let Fu,tf;const rb=typeof TextDecoder<"u";let U5;const ob=typeof TextEncoder<"u";function nf(t){if(ob)t=(U5||(U5=new TextEncoder)).encode(t);else{let e=0;const r=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var n=t.charCodeAt(i);if(n<128)r[e++]=n;else{if(n<2048)r[e++]=n>>6|192;else{if(n>=55296&&n<=57343){if(n<=56319&&i<t.length){const s=t.charCodeAt(++i);if(s>=56320&&s<=57343){r[e++]=(n=1024*(n-55296)+s-56320+65536)>>18|240,r[e++]=n>>12&63|128,r[e++]=n>>6&63|128,r[e++]=63&n|128;continue}i--}n=65533}r[e++]=n>>12|224,r[e++]=n>>6&63|128}r[e++]=63&n|128}}t=e===r.length?r:r.subarray(0,e)}return t}function V5(t){Vl.setTimeout(()=>{throw t},0)}var rf,ib=W5(610401301,!1),G5=W5(748402147,!0);function $5(){var t=Vl.navigator;return t&&(t=t.userAgent)?t:""}const K5=Vl.navigator;function X0(t){return X0[" "](t),t}rf=K5&&K5.userAgentData||null,X0[" "]=function(){};const X5={};let Z0=null;function Z5(){if(!Z0){Z0={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),n=["+/=","+/","-_=","-_.","-_"];for(let e=0;e<5;e++){const r=t.concat(n[e].split(""));X5[e]=r;for(let i=0;i<r.length;i++){const s=r[i];void 0===Z0[s]&&(Z0[s]=i)}}}}var sb=typeof Uint8Array<"u",J5=!!(ib&&rf&&rf.brands.length>0||-1==$5().indexOf("Trident")&&-1==$5().indexOf("MSIE"))&&"function"==typeof btoa;const of=/[-_.]/g,cb={"-":"+",_:"/",".":"="};function Q5(t){return cb[t]||""}function q5(t){if(!J5)return function ab(t){const n=t.length;let e=3*n/4;e%3?e=Math.floor(e):-1!="=.".indexOf(t[n-1])&&(e=-1!="=.".indexOf(t[n-2])?e-2:e-1);const r=new Uint8Array(e);let i=0;return function(s,c){function l(d){for(;u<s.length;){const p=s.charAt(u++),M=Z0[p];if(null!=M)return M;if(!/^[\s\xa0]*$/.test(p))throw Error("Unknown base64 encoding at char: "+p)}return d}Z5();let u=0;for(;;){const d=l(-1),p=l(0),M=l(64),x=l(64);if(64===x&&-1===d)break;c(d<<2|p>>4),64!=M&&(c(p<<4&240|M>>2),64!=x&&c(M<<6&192|x))}}(t,function(s){r[i++]=s}),i!==e?r.subarray(0,i):r}(t);t=of.test(t)?t.replace(of,Q5):t,t=atob(t);const n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function J0(t){return sb&&null!=t&&t instanceof Uint8Array}var Gl={};function tl(){return Hu||(Hu=new D1(null,Gl))}function af(t){t_(Gl);var n=t.g;return null==(n=null==n||J0(n)?n:"string"==typeof n?q5(n):null)?n:t.g=n}var D1=class{h(){return new Uint8Array(af(this)||0)}constructor(t,n){if(t_(n),this.g=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}};let Hu,e_;function t_(t){if(t!==Gl)throw Error("illegal external caller")}function sf(t,n){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=n}function cf(t){return sf(t=Error(t),"warning"),t}function $l(t,n){if(null!=t){var e,r=null!==(e=e_)&&void 0!==e?e:e_={},i=r[t]||0;i>=n||(r[t]=i+1,sf(t=Error(),"incident"),V5(t))}}function nl(){return"function"==typeof BigInt}var Kl="function"==typeof Symbol&&"symbol"==typeof Symbol();function m1(t,n,e=!1){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?e&&Symbol.for&&t?Symbol.for(t):null!=t?Symbol(t):Symbol():n}var lb=m1("jas",void 0,!0),lf=m1(void 0,"0di"),Q0=m1(void 0,"1oa"),wc=m1(void 0,Symbol()),Bu=m1(void 0,"0ub"),ub=m1(void 0,"0ubs"),uf=m1(void 0,"0ubsb"),db=m1(void 0,"0actk"),Xl=m1("m_m","Pa",!0),n_=m1();const r_={Ga:{value:0,configurable:!0,writable:!0,enumerable:!1}},o_=Object.defineProperties,kr=Kl?lb:"Ga";var rl;const df=[];function q0(t,n){Kl||kr in t||o_(t,r_),t[kr]|=n}function Na(t,n){Kl||kr in t||o_(t,r_),t[kr]=n}function e3(t){return q0(t,34),t}function t3(t){return q0(t,8192),t}Na(df,7),rl=Object.freeze(df);var ol={};function Ec(t,n){return void 0===n?t.h!==k2&&!!(2&(0|t.v[kr])):!!(2&n)&&t.h!==k2}const k2={};function ff(t,n){if(null!=t)if("string"==typeof t)t=t?new D1(t,Gl):tl();else if(t.constructor!==D1)if(J0(t))t=t.length?new D1(new Uint8Array(t),Gl):tl();else{if(!n)throw Error();t=void 0}return t}class i_{constructor(n,e,r){this.g=n,this.h=e,this.l=r}next(){const n=this.g.next();return n.done||(n.value=this.h.call(this.l,n.value)),n}[Symbol.iterator](){return this}}var fb=Object.freeze({});function a_(t,n,e){const r=128&n?0:-1,i=t.length;var s;(s=!!i)&&(s=null!=(s=t[i-1])&&"object"==typeof s&&s.constructor===Object);const c=i+(s?-1:0);for(n=128&n?1:0;n<c;n++)e(n-r,t[n]);if(s){t=t[i-1];for(const l in t)!isNaN(l)&&e(+l,t[l])}}var hf={};function Zl(t){return 128&t?hf:void 0}function ju(t){return t.Na=!0,t}var s_=ju(t=>"number"==typeof t),c_=ju(t=>"string"==typeof t),hb=ju(t=>"boolean"==typeof t),Wu="function"==typeof Vl.BigInt&&"bigint"==typeof Vl.BigInt(0);function xc(t){var n=t;if(c_(n)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(n))throw Error(String(n))}else if(s_(n)&&!Number.isSafeInteger(n))throw Error(String(n));return Wu?BigInt(t):t=hb(t)?t?"1":"0":c_(t)?t.trim()||"0":String(t)}var mf=ju(t=>Wu?t>=pb&&t<=l_:function u_(t,n){if(t.length>n.length)return!1;if(t.length<n.length||t===n)return!0;for(let e=0;e<t.length;e++){const r=t[e],i=n[e];if(r>i)return!1;if(r<i)return!0}}(t,"-"===t[0]?mb:_b));const mb=Number.MIN_SAFE_INTEGER.toString(),pb=Wu?BigInt(Number.MIN_SAFE_INTEGER):void 0,_b=Number.MAX_SAFE_INTEGER.toString(),l_=Wu?BigInt(Number.MAX_SAFE_INTEGER):void 0;const gb="function"==typeof Uint8Array.prototype.slice;let d_,na=0,$a=0;function f_(t){const n=t>>>0;na=n,$a=(t-n)/4294967296>>>0}function Jl(t){if(t<0){f_(-t);const[n,e]=gf(na,$a);na=n>>>0,$a=e>>>0}else f_(t)}function pf(t){const n=d_||(d_=new DataView(new ArrayBuffer(8)));n.setFloat32(0,+t,!0),$a=0,na=n.getUint32(0,!0)}function h_(t,n){const e=4294967296*n+(t>>>0);return Number.isSafeInteger(e)?e:r2(t,n)}function vb(t,n){return xc(nl()?BigInt.asUintN(64,(BigInt(n>>>0)<<BigInt(32))+BigInt(t>>>0)):r2(t,n))}function m_(t,n){return nl()?xc(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(n))<<BigInt(32))+BigInt.asUintN(32,BigInt(t)))):xc(_f(t,n))}function r2(t,n){if(t>>>=0,(n>>>=0)<=2097151)var e=""+(4294967296*n+t);else nl()?e=""+(BigInt(n)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(e=16777215&(t>>>24|n<<8))+6710656*(n=n>>16&65535),e+=8147497*n,n*=2,t>=1e7&&(e+=t/1e7>>>0,t%=1e7),e>=1e7&&(n+=e/1e7>>>0,e%=1e7),e=n+p_(e)+p_(t));return e}function p_(t){return t=String(t),"0000000".slice(t.length)+t}function _f(t,n){if(2147483648&n)if(nl())t=""+(BigInt(0|n)<<BigInt(32)|BigInt(t>>>0));else{const[e,r]=gf(t,n);t="-"+r2(e,r)}else t=r2(t,n);return t}function Uu(t){if(t.length<16)Jl(Number(t));else if(nl())t=BigInt(t),na=Number(t&BigInt(4294967295))>>>0,$a=Number(t>>BigInt(32)&BigInt(4294967295));else{const n=+("-"===t[0]);$a=na=0;const e=t.length;for(let r=n,i=(e-n)%6+n;i<=e;r=i,i+=6){const s=Number(t.slice(r,i));$a*=1e6,na=1e6*na+s,na>=4294967296&&($a+=Math.trunc(na/4294967296),$a>>>=0,na>>>=0)}if(n){const[r,i]=gf(na,$a);na=r,$a=i}}}function gf(t,n){return n=~n,t?t=1+~t:n+=1,[t,n]}function dc(t){return Array.prototype.slice.call(t)}const n3="function"==typeof BigInt?BigInt.asIntN:void 0,yb="function"==typeof BigInt?BigInt.asUintN:void 0,il=Number.isSafeInteger,Vu=Number.isFinite,Ql=Math.trunc,__=xc(0);function r3(t){if(null!=t&&"number"!=typeof t)throw Error(`Value of float/double field must be a number, found ${typeof t}: ${t}`);return t}function P1(t){return null==t||"number"==typeof t?t:"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}function o3(t){if(null!=t&&"boolean"!=typeof t){var n=typeof t;throw Error(`Expected boolean but got ${"object"!=n?n:t?Array.isArray(t)?"array":n:"null"}: ${t}`)}return t}function g_(t){return null==t||"boolean"==typeof t?t:"number"==typeof t?!!t:void 0}const v_=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function a3(t){switch(typeof t){case"bigint":return!0;case"number":return Vu(t);case"string":return v_.test(t);default:return!1}}function ql(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Vu(t)?0|t:void 0}function y_(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Vu(t)?t>>>0:void 0}function Gu(t){const n=t.length;return("-"===t[0]?n<20||20===n&&t<="-9223372036854775808":n<19||19===n&&t<="9223372036854775807")?t:(Uu(t),_f(na,$a))}function vf(t){if(t=Ql(t),!il(t)){Jl(t);var n=na,e=$a;(t=2147483648&e)&&(e=~e>>>0,0==(n=1+~n>>>0)&&(e=e+1>>>0)),t="number"==typeof(n=h_(n,e))?t?-n:n:t?"-"+n:n}return t}function M_(t){var n=Ql(Number(t));return il(n)?String(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),Gu(t))}function C_(t){var n=Ql(Number(t));return il(n)?xc(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),nl()?xc(n3(64,BigInt(t))):xc(Gu(t)))}function b_(t){return il(t)?t=xc(vf(t)):(t=Ql(t),il(t)?t=String(t):(Jl(t),t=_f(na,$a)),t=xc(t)),t}function $u(t){const n=typeof t;return null==t?t:"bigint"===n?xc(n3(64,t)):a3(t)?"string"===n?C_(t):b_(t):void 0}function L_(t){if("string"!=typeof t)throw Error();return t}function s3(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function Ps(t){return null==t||"string"==typeof t?t:void 0}function yf(t,n,e,r){return null!=t&&t[Xl]===ol?t:Array.isArray(t)?((r=(e=0|t[kr])|32&r|2&r)!==e&&Na(t,r),new n(t)):(e?2&r?((t=n[lf])||(e3((t=new n).v),t=n[lf]=t),n=t):n=new n:n=void 0,n)}function S_(t,n,e){if(n)e:{if(!a3(n=t))throw cf("int64");switch(typeof n){case"string":n=C_(n);break e;case"bigint":n=xc(n3(64,n));break e;default:n=b_(n)}}else n=$u(t);return null==(t=n)?e?__:void 0:t}const Mb={};let Cb=function(){try{return X0(new class extends Map{constructor(){super()}}),!1}catch{return!0}}();class Ku{constructor(){this.g=new Map}get(n){return this.g.get(n)}set(n,e){return this.g.set(n,e),this.size=this.g.size,this}delete(n){return n=this.g.delete(n),this.size=this.g.size,n}clear(){this.g.clear(),this.size=this.g.size}has(n){return this.g.has(n)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(n,e){return this.g.forEach(n,e)}[Symbol.iterator](){return this.entries()}}const bb=Cb?(Object.setPrototypeOf(Ku.prototype,Map.prototype),Object.defineProperties(Ku.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Ku):class extends Map{constructor(){super()}};function T_(t){return t}function Xu(t){if(2&t.J)throw Error("Cannot mutate an immutable Map")}var o2=class extends bb{constructor(t,n,e=T_,r=T_){super(),this.J=0|t[kr],this.K=n,this.S=e,this.fa=this.K?Lb:r;for(let i=0;i<t.length;i++){const s=t[i],c=e(s[0],!1,!0);let l=s[1];n?void 0===l&&(l=null):l=r(s[1],!1,!0,void 0,void 0,this.J),super.set(c,l)}}V(t){return t3(Array.from(super.entries(),t))}clear(){Xu(this),super.clear()}delete(t){return Xu(this),super.delete(this.S(t,!0,!1))}entries(){if(this.K){var t=super.keys();t=new i_(t,Sb,this)}else t=super.entries();return t}values(){if(this.K){var t=super.keys();t=new i_(t,o2.prototype.get,this)}else t=super.values();return t}forEach(t,n){this.K?super.forEach((e,r,i)=>{t.call(n,i.get(r),r,i)}):super.forEach(t,n)}set(t,n){return Xu(this),null==(t=this.S(t,!0,!1))?this:null==n?(super.delete(t),this):super.set(t,this.fa(n,!0,!0,this.K,!1,this.J))}Ma(t){const n=this.S(t[0],!1,!0);t=t[1],t=this.K?void 0===t?null:t:this.fa(t,!1,!0,void 0,!1,this.J),super.set(n,t)}has(t){return super.has(this.S(t,!1,!1))}get(t){t=this.S(t,!1,!1);const n=super.get(t);if(void 0!==n){var e=this.K;return e?((e=this.fa(n,!1,!0,e,this.ra,this.J))!==n&&super.set(t,e),e):n}}[Symbol.iterator](){return this.entries()}};function Lb(t,n,e,r,i,s){return t=yf(t,r,e,s),i&&(t=Lf(t)),t}function Sb(t){return[t,this.get(t)]}let w_;function E_(){return w_||(w_=new o2(e3([]),void 0,void 0,void 0,Mb))}function c3(t){return wc?t[wc]:void 0}function Zu(t,n){for(const e in t)!isNaN(e)&&n(t,+e,t[e])}o2.prototype.toJSON=void 0;var Ju=class{};const Tb={Ka:!0};function wb(t,n){n<100||$l(ub,1)}function l3(t,n,e,r){const i=void 0!==r;r=!!r;var s,c=wc;!i&&Kl&&c&&(s=t[c])&&Zu(s,wb),c=[];var l=t.length;let u;s=4294967295;let d=!1;const p=!!(64&n),M=p?128&n?0:-1:void 0;1&n||(u=l&&t[l-1],null!=u&&"object"==typeof u&&u.constructor===Object?s=--l:u=void 0,!p||128&n||i||(d=!0,s=s-M+M)),n=void 0;for(var x=0;x<l;x++){let J=t[x];if(null!=J&&null!=(J=e(J,r)))if(p&&x>=s){var R;(null!==(R=n)&&void 0!==R?R:n={})[x-M]=J}else c[x]=J}if(u)for(let J in u){var U;if(null==(l=u[J])||null==(l=e(l,r)))continue;let ne;x=+J,p&&!Number.isNaN(x)&&(ne=x+M)<s?c[ne]=l:(null!==(U=n)&&void 0!==U?U:n={})[J]=l}return n&&(d?c.push(n):c[s]=n),i&&wc&&(t=c3(t))&&t instanceof Ju&&(c[wc]=function(J){const ne=new Ju;return Zu(J,(ue,Ie,Ae)=>{ne[Ie]=dc(Ae)}),ne.da=J.da,ne}(t)),c}function Eb(t){return t[0]=u3(t[0]),t[1]=u3(t[1]),t}function u3(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return mf(t)?Number(t):""+t;case"boolean":return t?1:0;case"object":if(Array.isArray(t)){var n=0|t[kr];return 0===t.length&&1&n?void 0:l3(t,n,u3)}if(null!=t&&t[Xl]===ol)return D_(t);if(t instanceof D1){if(null==(n=t.g))t="";else if("string"==typeof n)t=n;else{if(J5){for(var e="",r=0,i=n.length-10240;r<i;)e+=String.fromCharCode.apply(null,n.subarray(r,r+=10240));e+=String.fromCharCode.apply(null,r?n.subarray(r):n),n=btoa(e)}else{void 0===e&&(e=0),Z5(),e=X5[e],r=Array(Math.floor(n.length/3)),i=e[64]||"";let d=0,p=0;for(;d<n.length-2;d+=3){var s=n[d],c=n[d+1],l=n[d+2],u=e[s>>2];r[p++]=u+(s=e[(3&s)<<4|c>>4])+(c=e[(15&c)<<2|l>>6])+(l=e[63&l])}switch(u=0,l=i,n.length-d){case 2:l=e[(15&(u=n[d+1]))<<2]||i;case 1:r[p]=e[(n=n[d])>>2]+e[(3&n)<<4|u>>4]+l+i}n=r.join("")}t=t.g=n}return t}return t instanceof o2?t=0!==t.size?t.V(Eb):void 0:void 0}return t}let x_,k_;function D_(t){return l3(t=t.v,0|t[kr],u3)}function al(t,n){return Mf(t,n[0],n[1])}function Mf(t,n,e,r=0){if(null==t){var i=32;e?(t=[e],i|=128):t=[],n&&(i=-16760833&i|(1023&n)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(i=0|t[kr],G5&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&function(){if(G5)throw Error("carr");$l(db,5)}(),256&i)throw Error("farr");if(64&i)return(i|r)!==i&&Na(t,i|r),t;if(e&&(i|=128,e!==t[0]))throw Error("mid");e:{i|=64;var s=(e=t).length;if(s){var c=s-1;const u=e[c];if(null!=u&&"object"==typeof u&&u.constructor===Object){if((c-=n=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var l in u)(s=+l)<c&&(e[s+n]=u[l],delete u[l]);i=-16760833&i|(1023&c)<<14;break e}}if(n){if((l=Math.max(n,s-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&l)<<14}}}return Na(t,64|i|r),t}function xb(t,n){if("object"!=typeof t)return t;if(Array.isArray(t)){var e=0|t[kr];return 0===t.length&&1&e?void 0:P_(t,e,n)}if(null!=t&&t[Xl]===ol)return bf(t);if(t instanceof o2){if(2&(n=t.J))return t;if(!t.size)return;if(e=e3(t.V()),t.K)for(t=0;t<e.length;t++){const r=e[t];let i=r[1];i=null==i||"object"!=typeof i?void 0:null!=i&&i[Xl]===ol?bf(i):Array.isArray(i)?P_(i,0|i[kr],!!(32&n)):void 0,r[1]=i}return e}return t instanceof D1?t:void 0}function P_(t,n,e){return 2&n||(!e||4096&n||16&n?t=e0(t,n,!1,e&&!(16&n)):(q0(t,34),4&n&&Object.freeze(t))),t}function Cf(t,n,e){return t=new t.constructor(n),e&&(t.h=k2),t.m=k2,t}function bf(t){const n=t.v,e=0|n[kr];return Ec(t,e)?t:Sf(t,n,e)?Cf(t,n):e0(n,e)}function e0(t,n,e,r){var i;return null!==(i=r)&&void 0!==i||(r=!!(34&n)),t=l3(t,n,xb,r),r=32,e&&(r|=2),Na(t,n=16769217&n|r),t}function Lf(t){const n=t.v,e=0|n[kr];return Ec(t,e)?Sf(t,n,e)?Cf(t,n,!0):new t.constructor(e0(n,e,!1)):t}function a2(t){if(t.h!==k2)return!1;var n=t.v;return q0(n=e0(n,0|n[kr]),2048),t.v=n,t.h=void 0,t.m=void 0,!0}function t0(t){if(!a2(t)&&Ec(t,0|t.v[kr]))throw Error()}function sl(t,n){void 0===n&&(n=0|t[kr]),32&n&&!(4096&n)&&Na(t,4096|n)}function Sf(t,n,e){return!!(2&e)||!(!(32&e)||4096&e)&&(Na(n,2|e),t.h=k2,!0)}const O_=xc(0),D2={};function da(t,n,e,r,i){if(null!==(n=s2(t.v,n,e,i))||r&&t.m!==k2)return n}function s2(t,n,e,r){if(-1===n)return null;const i=n+(e?0:-1),s=t.length-1;let c,l;if(!(s<1+(e?0:-1))){if(i>=s)if(c=t[s],null!=c&&"object"==typeof c&&c.constructor===Object)e=c[n],l=!0;else{if(i!==s)return;e=c}else e=t[i];if(r&&null!=e){if(null==(r=r(e)))return r;if(!Object.is(r,e))return l?c[n]=r:t[i]=r,r}return e}}function Ai(t,n,e,r){t0(t),as(t=t.v,0|t[kr],n,e,r)}function as(t,n,e,r,i){var s;const c=e+(i?0:-1);var l=t.length-1;if(l>=1+(i?0:-1)&&c>=l){const u=t[l];if(null!=u&&"object"==typeof u&&u.constructor===Object)return u[e]=r,n}return c<=l?(t[c]=r,n):(void 0!==r&&(e>=(l=(null!==(s=n)&&void 0!==s?s:n=0|t[kr])>>14&1023||536870912)?null!=r&&(t[l+(i?0:-1)]={[e]:r}):t[c]=r),n)}function P2(){return void 0===fb?2:4}function cl(t,n,e,r,i){let s=t.v,c=0|s[kr];r=Ec(t,c)?1:r,i=!!i||3===r,2===r&&a2(t)&&(s=t.v,c=0|s[kr]);let l=(t=wf(s,n))===rl?7:0|t[kr],u=Ef(l,c);var d=!(4&u);if(d){4&u&&(t=dc(t),l=0,u=dl(u,c),c=as(s,c,n,t));let p=0,M=0;for(;p<t.length;p++){const x=e(t[p]);null!=x&&(t[M++]=x)}M<p&&(t.length=M),e=-513&(4|u),u=e&=-1025,u&=-4097}return u!==l&&(Na(t,u),2&u&&Object.freeze(t)),Tf(t,u,s,c,n,r,d,i)}function Tf(t,n,e,r,i,s,c,l){let u=n;return 1===s||4===s&&(2&n||!(16&n)&&32&r)?ll(n)||((n|=!t.length||c&&!(4096&n)||32&r&&!(4096&n||16&n)?2:256)!==u&&Na(t,n),Object.freeze(t)):(2===s&&ll(n)&&(t=dc(t),u=0,n=dl(n,r),r=as(e,r,i,t)),ll(n)||(l||(n|=16),n!==u&&Na(t,n))),2&n||!(4096&n||16&n)||sl(e,r),t}function wf(t,n,e){return t=s2(t,n,e),Array.isArray(t)?t:rl}function Ef(t,n){return 2&n&&(t|=2),1|t}function ll(t){return!!(2&t)&&!!(4&t)||!!(256&t)}function xf(t){return ff(t,!0)}function I_(t){t=dc(t);for(let n=0;n<t.length;n++){const e=t[n]=dc(t[n]);Array.isArray(e[1])&&(e[1]=e3(e[1]))}return t3(t)}function O2(t,n,e,r){t0(t),as(t=t.v,0|t[kr],n,("0"===r?0===Number(e):e===r)?void 0:e)}function ul(t,n,e){if(2&n)throw Error();const r=Zl(n);let i=wf(t,e,r),s=i===rl?7:0|i[kr],c=Ef(s,n);return(2&c||ll(c)||16&c)&&(c===s||ll(c)||Na(i,c),i=dc(i),s=0,c=dl(c,n),as(t,n,e,i,r)),c&=-13,c!==s&&Na(i,c),i}function kf(t,n){var e=k7;return Pf(Df(t=t.v),t,void 0,e)===n?n:-1}function Df(t){var n;if(Kl)return null!==(n=t[Q0])&&void 0!==n?n:t[Q0]=new Map;if(Q0 in t)return t[Q0];const e=new Map;return Object.defineProperty(t,Q0,{value:e}),e}function d3(t,n,e,r,i){const s=Df(t),c=Pf(s,t,n,e,i);return c!==r&&(c&&(n=as(t,n,c,void 0,i)),s.set(e,r)),n}function Pf(t,n,e,r,i){let s=t.get(r);if(null!=s)return s;s=0;for(let c=0;c<r.length;c++){const l=r[c];null!=s2(n,l,i)&&(0!==s&&(e=as(n,e,s,void 0,i)),s=l)}return t.set(r,s),s}function Of(t,n,e){let r=0|t[kr];const i=Zl(r),s=s2(t,e,i);let c;if(null!=s&&s[Xl]===ol){if(!Ec(s))return a2(s),s.v;c=s.v}else Array.isArray(s)&&(c=s);if(c){const l=0|c[kr];2&l&&(c=e0(c,l))}return c=al(c,n),c!==s&&as(t,r,e,c,i),c}function A_(t,n,e,r,i){let s=!1;if(null!=(r=s2(t,r,i,c=>{const l=yf(c,e,!1,n);return s=l!==c&&null!=l,l})))return s&&!Ec(r)&&sl(t,n),r}function ui(t,n,e,r){let i=t.v,s=0|i[kr];if(null==(n=A_(i,s,n,e,r)))return n;if(s=0|i[kr],!Ec(t,s)){const c=Lf(n);c!==n&&(a2(t)&&(i=t.v,s=0|i[kr]),s=as(i,s,e,n=c,r),sl(i,s))}return n}function N_(t,n,e,r,i,s,c,l){var u=Ec(t,e);s=u?1:s,c=!!c||3===s,u=l&&!u,(2===s||u)&&a2(t)&&(e=0|(n=t.v)[kr]);var d=(t=wf(n,i))===rl?7:0|t[kr],p=Ef(d,e);if(l=!(4&p)){var M=t,x=e;const R=!!(2&p);R&&(x|=2);let U=!R,J=!0,ne=0,ue=0;for(;ne<M.length;ne++){const Ie=yf(M[ne],r,!1,x);if(Ie instanceof r){if(!R){const Ae=Ec(Ie);U&&(U=!Ae),J&&(J=Ae)}M[ue++]=Ie}}ue<ne&&(M.length=ue),p|=4,p=J?-4097&p:4096|p,p=U?8|p:-9&p}if(p!==d&&(Na(t,p),2&p&&Object.freeze(t)),u&&!(8&p||!t.length&&(1===s||4===s&&(2&p||!(16&p)&&32&e)))){for(ll(p)&&(t=dc(t),p=dl(p,e),e=as(n,e,i,t)),r=t,u=p,d=0;d<r.length;d++)(M=r[d])!==(p=Lf(M))&&(r[d]=p);u|=8,Na(t,p=u=r.length?4096|u:-4097&u)}return Tf(t,p,n,e,i,s,l,c)}function O1(t,n,e){const r=t.v;return N_(t,r,0|r[kr],n,e,P2(),!1,!0)}function z_(t){return null==t&&(t=void 0),t}function Vr(t,n,e,r,i){return Ai(t,e,r=z_(r),i),r&&!Ec(r)&&sl(t.v),t}function f3(t,n,e,r){e:{var i=r=z_(r);t0(t);const s=t.v;let c=0|s[kr];if(null==i){const l=Df(s);if(Pf(l,s,c,e)!==n)break e;l.set(e,0)}else c=d3(s,c,e,n);as(s,c,n,i)}r&&!Ec(r)&&sl(t.v)}function dl(t,n){return-273&(2&n?2|t:-3&t)}function h3(t,n,e,r){var i=r;t0(t),t=N_(t,r=t.v,0|r[kr],e,n,2,!0),i=i??new e,t.push(i),n=e=t===rl?7:0|t[kr],(i=Ec(i))?(e&=-9,1===t.length&&(e&=-4097)):e|=4096,e!==n&&Na(t,e),i||sl(r)}function Zc(t,n,e){return ql(da(t,n,void 0,e))}function za(t,n){var e;return null!==(e=da(t,n,void 0,void 0,P1))&&void 0!==e?e:0}function c2(t,n,e){if(null!=e){if("number"!=typeof e||!Vu(e))throw cf("int32");e|=0}Ai(t,n,e)}function Or(t,n,e){Ai(t,n,r3(e))}function kc(t,n,e){O2(t,n,s3(e),"")}function Qu(t,n,e){{t0(t);const l=t.v;let u=0|l[kr];if(null==e)as(l,u,n);else{var r=t=e===rl?7:0|e[kr],i=ll(t),s=i||Object.isFrozen(e);for(i||(t=0),s||(e=dc(e),r=0,t=dl(t,u),s=!1),t|=5,t|=null!==(c=4&t?512&t?512:1024&t?1024:0:void 0)&&void 0!==c?c:1024,i=0;i<e.length;i++){var c;const d=e[i],p=L_(d);Object.is(d,p)||(s&&(e=dc(e),r=0,t=dl(t,u),s=!1),e[i]=p)}t!==r&&(s&&(e=dc(e),t=dl(t,u)),Na(e,t)),as(l,u,n,e)}}}function qu(t,n,e){t0(t),cl(t,n,Ps,2,!0).push(L_(e))}var n0=class{constructor(t,n,e){if(this.buffer=t,e&&!n)throw Error();this.g=n}};function m3(t,n){if("string"==typeof t)return new n0(q5(t),n);if(Array.isArray(t))return new n0(new Uint8Array(t),n);if(t.constructor===Uint8Array)return new n0(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new n0(t,!1);if(t.constructor===D1)return n=af(t)||new Uint8Array(0),new n0(n,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new n0(t,!1);throw Error()}function If(t,n){let e,r=0,i=0,s=0;const c=t.h;let l=t.g;do{e=c[l++],r|=(127&e)<<s,s+=7}while(s<32&&128&e);if(s>32)for(i|=(127&e)>>4,s=3;s<32&&128&e;s+=7)e=c[l++],i|=(127&e)<<s;if(fl(t,l),!(128&e))return n(r>>>0,i>>>0);throw Error()}function Af(t){let n=0,e=t.g;const r=e+10,i=t.h;for(;e<r;){const s=i[e++];if(n|=s,0==(128&s))return fl(t,e),!!(127&n)}throw Error()}function I2(t){const n=t.h;let e=t.g,r=n[e++],i=127&r;if(128&r&&(r=n[e++],i|=(127&r)<<7,128&r&&(r=n[e++],i|=(127&r)<<14,128&r&&(r=n[e++],i|=(127&r)<<21,128&r&&(r=n[e++],i|=r<<28,128&r&&128&n[e++]&&128&n[e++]&&128&n[e++]&&128&n[e++]&&128&n[e++])))))throw Error();return fl(t,e),i}function I1(t){return I2(t)>>>0}function p3(t){var n=t.h;const e=t.g;var r=n[e],i=n[e+1];const s=n[e+2];return n=n[e+3],fl(t,t.g+4),t=2*((i=(r<<0|i<<8|s<<16|n<<24)>>>0)>>31)+1,r=i>>>23&255,i&=8388607,255==r?i?NaN:t*(1/0):0==r?1401298464324817e-60*t*i:t*Math.pow(2,r-150)*(i+8388608)}function kb(t){return I2(t)}function fl(t,n){if(t.g=n,n>t.l)throw Error()}function R_(t,n){if(n<0)throw Error();const e=t.g;if((n=e+n)>t.l)throw Error();return t.g=n,e}function Y_(t,n){if(0==n)return tl();var e=R_(t,n);return t.Y&&t.j?e=t.h.subarray(e,e+n):(t=t.h,e=e===(n=e+n)?new Uint8Array(0):gb?t.slice(e,n):new Uint8Array(t.subarray(e,n))),0==e.length?tl():new D1(e,Gl)}var F_=[];function H_(t,n,e,r){if(g3.length){const i=g3.pop();return i.o(r),i.g.init(t,n,e,r),i}return new Db(t,n,e,r)}function Nf(t){t.g.clear(),t.l=-1,t.h=-1,g3.length<100&&g3.push(t)}function B_(t){var n=t.g;if(n.g==n.l)return!1;t.m=t.g.g;var e=I1(t.g);if(n=e>>>3,!((e&=7)>=0&&e<=5)||n<1)throw Error();return t.l=n,t.h=e,!0}function e4(t){switch(t.h){case 0:0!=t.h?e4(t):Af(t.g);break;case 1:fl(t=t.g,t.g+8);break;case 2:if(2!=t.h)e4(t);else{var n=I1(t.g);fl(t=t.g,t.g+n)}break;case 5:fl(t=t.g,t.g+4);break;case 3:for(n=t.l;;){if(!B_(t))throw Error();if(4==t.h){if(t.l!=n)throw Error();break}e4(t)}break;default:throw Error()}}function hl(t,n,e){const r=t.g.l;var i=I1(t.g);let s=(i=t.g.g+i)-r;if(s<=0&&(t.g.l=i,e(n,t,void 0,void 0,void 0),s=i-t.g.g),s)throw Error();return t.g.g=i,t.g.l=r,n}function zf(t){var n=I1(t.g),e=R_(t=t.g,n);if(t=t.h,rb){var r,i=t;(r=tf)||(r=tf=new TextDecoder("utf-8",{fatal:!0})),n=e+n,i=0===e&&n===i.length?i:i.subarray(e,n);try{var s=r.decode(i)}catch(l){if(void 0===Fu){try{r.decode(new Uint8Array([128]))}catch{}try{r.decode(new Uint8Array([97])),Fu=!0}catch{Fu=!1}}throw!Fu&&(tf=void 0),l}}else{n=(s=e)+n,e=[];let l,u=null;for(;s<n;){var c=t[s++];c<128?e.push(c):c<224?s>=n?el():(l=t[s++],c<194||128!=(192&l)?(s--,el()):e.push((31&c)<<6|63&l)):c<240?s>=n-1?el():(l=t[s++],128!=(192&l)||224===c&&l<160||237===c&&l>=160||128!=(192&(r=t[s++]))?(s--,el()):e.push((15&c)<<12|(63&l)<<6|63&r)):c<=244?s>=n-2?el():(l=t[s++],128!=(192&l)||l-144+(c<<28)>>30!=0||128!=(192&(r=t[s++]))||128!=(192&(i=t[s++]))?(s--,el()):(c=(7&c)<<18|(63&l)<<12|(63&r)<<6|63&i,e.push(55296+((c-=65536)>>10&1023),56320+(1023&c)))):el(),e.length>=8192&&(u=ef(u,e),e.length=0)}s=ef(u,e)}return s}function j_(t){const n=I1(t.g);return Y_(t.g,n)}function _3(t,n,e){var r=I1(t.g);for(r=t.g.g+r;t.g.g<r;)e.push(n(t.g))}var Db=class{constructor(t,n,e,r){if(F_.length){const i=F_.pop();i.init(t,n,e,r),t=i}else t=new class{constructor(i,s,c,l){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.init(i,s,c,l)}init(i,s,c,{Y:l=!1,ea:u=!1}={}){this.Y=l,this.ea=u,i&&(i=m3(i,this.ea),this.h=i.buffer,this.j=i.g,this.m=s||0,this.l=void 0!==c?this.m+c:this.h.length,this.g=this.m)}clear(){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.Y=!1}}(t,n,e,r);this.g=t,this.m=this.g.g,this.h=this.l=-1,this.o(r)}o({ha:t=!1}={}){this.ha=t}},g3=[];function W_(t){return t?/^\d+$/.test(t)?(Uu(t),new Rf(na,$a)):null:U_||(U_=new Rf(0,0))}var Rf=class{constructor(t,n){this.h=t>>>0,this.g=n>>>0}};let U_;function V_(t){return t?/^-?\d+$/.test(t)?(Uu(t),new Yf(na,$a)):null:G_||(G_=new Yf(0,0))}var Yf=class{constructor(t,n){this.h=t>>>0,this.g=n>>>0}};let G_;function ml(t,n,e){for(;e>0||n>127;)t.g.push(127&n|128),n=(n>>>7|e<<25)>>>0,e>>>=7;t.g.push(n)}function r0(t,n){for(;n>127;)t.g.push(127&n|128),n>>>=7;t.g.push(n)}function o0(t,n){if(n>=0)r0(t,n);else{for(let e=0;e<9;e++)t.g.push(127&n|128),n>>=7;t.g.push(1)}}function Ff(t){var n=na;t.g.push(n>>>0&255),t.g.push(n>>>8&255),t.g.push(n>>>16&255),t.g.push(n>>>24&255)}function a0(t,n){0!==n.length&&(t.l.push(n),t.h+=n.length)}function Dc(t,n,e){r0(t.g,8*n+e)}function Hf(t,n){return Dc(t,n,2),n=t.g.end(),a0(t,n),n.push(t.h),n}function t4(t,n){var e=n.pop();for(e=t.h+t.g.length()-e;e>127;)n.push(127&e|128),e>>>=7,t.h++;n.push(e),t.h++}function n4(t,n,e){Dc(t,n,2),r0(t.g,e.length),a0(t,t.g.end()),a0(t,e)}function r4(t,n,e,r){null!=e&&(n=Hf(t,n),r(e,t),t4(t,n))}function A1(){const t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var Bf=A1(),jf=A1(),Wf=A1(),Uf=A1(),v3=A1(),$_=A1(),Pb=A1(),o4=A1(),K_=A1(),X_=A1();function Jc(t,n,e){var r=t.v;wc&&wc in r&&(r=r[wc])&&delete r[n.g],n.h?n.j(t,n.h,n.g,e,n.l):n.j(t,n.g,e,n.l)}var Ir=class{constructor(t,n){this.v=Mf(t,n,void 0,2048)}toJSON(){return D_(this)}j(){var t,n=iL,e=this.v,r=n.g,i=wc;if(Kl&&i&&null!=(null===(t=e[i])||void 0===t?void 0:t[r])&&$l(Bu,3),e=n.g,n_&&wc&&void 0===n_&&(i=(r=this.v)[wc])&&(i=i.da))try{i(r,e,Tb)}catch(s){V5(s)}return n.h?n.m(this,n.h,n.g,n.l):n.m(this,n.g,n.defaultValue,n.l)}clone(){const t=this.v,n=0|t[kr];return Sf(this,t,n)?Cf(this,t,!0):new this.constructor(e0(t,n,!1))}};Ir.prototype[Xl]=ol,Ir.prototype.toString=function(){return this.v.toString()};var s0=class{constructor(t,n,e){this.g=t,this.h=n,this.l=!!(t=Bf)&&e===t||!1}};function a4(t,n){return new s0(t,n,Bf)}function Z_(t,n,e,r,i){r4(t,e,e7(n,r),i)}const J_=a4(function(t,n,e,r,i){return 2===t.h&&(hl(t,Of(n,r,e),i),!0)},Z_),Ob=a4(function(t,n,e,r,i){return 2===t.h&&(hl(t,Of(n,r,e),i),!0)},Z_);var s4=Symbol(),c4=Symbol(),l4=Symbol(),Q_=Symbol(),q_=Symbol();let Vf,Gf;function pl(t,n,e,r){var i,s,c=r[t];if(c)return c;(c={}).qa=r,c.T=function(U){switch(typeof U){case"boolean":return x_||(x_=[0,void 0,!0]);case"number":return U>0?void 0:0===U?k_||(k_=[0,void 0]):[-U,void 0];case"string":return[0,U];case"object":return U}}(r[0]);var l=r[1];let u=1;l&&l.constructor===Object&&(c.ba=l,"function"==typeof(l=r[++u])&&(c.ma=!0,null!==(i=Vf)&&void 0!==i||(Vf=l),null!==(s=Gf)&&void 0!==s||(Gf=r[u+1]),l=r[u+=2]));const d={};for(;l&&Array.isArray(l)&&l.length&&"number"==typeof l[0]&&l[0]>0;){for(var p=0;p<l.length;p++)d[l[p]]=l;l=r[++u]}for(p=1;void 0!==l;){var M;let U;"number"==typeof l&&(p+=l,l=r[++u]);var x=void 0;if(l instanceof s0?U=l:(U=J_,u--),null!==(M=U)&&void 0!==M&&M.l){l=r[++u],x=r;var R=u;"function"==typeof l&&(l=l(),x[R]=l),x=l}for(R=p+1,"number"==typeof(l=r[++u])&&l<0&&(R-=l,l=r[++u]);p<R;p++){const J=d[p];x?e(c,p,U,x,J):n(c,p,U,J)}}return r[t]=c}function $f(t){return Array.isArray(t)?t[0]instanceof s0?t:[Ob,t]:[t,void 0]}function e7(t,n){return t instanceof Ir?t.v:Array.isArray(t)?al(t,n):void 0}function Kf(t,n,e,r){const i=e.g;t[n]=r?(s,c,l)=>i(s,c,l,r):i}function y3(t,n,e,r,i){const s=e.g;let c,l;t[n]=(u,d,p)=>s(u,d,p,l||(l=pl(c4,Kf,y3,r).T),c||(c=Xf(r)),i)}function Xf(t){let n=t[l4];if(null!=n)return n;const e=pl(c4,Kf,y3,t);return n=e.ma?(r,i)=>Vf(r,i,e):(r,i)=>{for(;B_(i)&&4!=i.h;){var s=i.l,c=e[s];if(null==c){var l=e.ba;l&&(l=l[s])&&null!=(l=Ab(l))&&(c=e[s]=l)}if(null==c||!c(i,r,s)){var u,d;if(c=(l=i).m,e4(l),l.ha)var p=void 0;else p=l.g.g-c,l.g.g=c,p=Y_(l.g,p);c=void 0,l=r,p&&(null!==(u=(c=null!==(d=l[wc])&&void 0!==d?d:l[wc]=new Ju)[s])&&void 0!==u?u:c[s]=[]).push(p)}}return(r=c3(r))&&(r.da=e.qa[q_]),!0},t[l4]=n,t[q_]=Ib.bind(t),n}function Ib(t,n,e,r){var i=this[c4];const s=this[l4],c=al(void 0,i.T),l=c3(t);if(l){var u=!1,d=i.ba;if(d){if(i=(p,M,x)=>{if(0!==x.length)if(d[M])for(const R of x){p=H_(R);try{u=!0,s(c,p)}finally{Nf(p)}}else r?.(t,M,x)},null==n)Zu(l,i);else if(null!=l){const p=l[n];p&&i(l,n,p)}if(u){let p=0|t[kr];if(2&p&&2048&p&&(null==e||!e.Ka))throw Error();const M=Zl(p),x=(R,U)=>{if(null!=s2(t,R,M)){if(1===e?.Qa)return;throw Error()}null!=U&&(p=as(t,p,R,U,M)),delete l[R]};null==n?a_(c,0|c[kr],(R,U)=>{x(R,U)}):x(n,s2(c,n,M))}}}}function Ab(t){const n=(t=$f(t))[0].g;if(t=t[1]){const e=Xf(t),r=pl(c4,Kf,y3,t).T;return(i,s,c)=>n(i,s,c,r,e)}return n}function M3(t,n,e){t[n]=e.h}function u4(t,n,e,r){let i,s;const c=e.h;t[n]=(l,u,d)=>c(l,u,d,s||(s=pl(s4,M3,u4,r).T),i||(i=t7(r)))}function t7(t){let n=t[Q_];if(!n){const e=pl(s4,M3,u4,t);n=(r,i)=>Zf(r,i,e),t[Q_]=n}return n}function Zf(t,n,e){a_(t,0|t[kr],(r,i)=>{if(null!=i){var s=function(c,l){var u=c[l];if(u)return u;if((u=c.ba)&&(u=u[l])){var d=(u=$f(u))[0].h;if(u=u[1]){const p=t7(u),M=pl(s4,M3,u4,u).T;u=c.ma?Gf(M,p):(x,R,U)=>d(x,R,U,M,p)}else u=d;return c[l]=u}}(e,r);s?s(n,i,r):r<500||$l(uf,3)}}),(t=c3(t))&&Zu(t,(r,i,s)=>{for(a0(n,n.g.end()),r=0;r<s.length;r++)a0(n,af(s[r])||new Uint8Array(0))})}const Nb=xc(0);function c0(t,n){if(Array.isArray(n)){var e=0|n[kr];if(4&e)return n;for(var r=0,i=0;r<n.length;r++){const s=t(n[r]);null!=s&&(n[i++]=s)}return i<r&&(n.length=i),(t=-1537&(5|e))!==e&&Na(n,t),2&t&&Object.freeze(n),n}}function Vs(t,n,e){return new s0(t,n,e)}function _l(t,n,e){return new s0(t,n,e)}function Gs(t,n,e){as(t,0|t[kr],n,e,Zl(0|t[kr]))}var zb=a4(function(t,n,e,r,i){if(2!==t.h)return!1;if(t=dc(t=hl(t,al([void 0,void 0],r),i)),i=Zl(r=0|n[kr]),2&r)throw Error();let s=s2(n,e,i);if(s instanceof o2)0!=(2&s.J)?(s=s.V(),s.push(t),as(n,r,e,s,i)):s.Ma(t);else if(Array.isArray(s)){var c=0|s[kr];8192&c||Na(s,c|=8192),2&c&&(s=I_(s),as(n,r,e,s,i)),s.push(t)}else as(n,r,e,t3([t]),i);return!0},function(t,n,e,r,i){if(n instanceof o2)n.forEach((s,c)=>{r4(t,e,al([c,s],r),i)});else if(Array.isArray(n)){for(let s=0;s<n.length;s++){const c=n[s];Array.isArray(c)&&r4(t,e,al(c,r),i)}t3(n)}});function Jf(t,n,e){null!=(n=P1(n))&&(Dc(t,e,5),t=t.g,pf(n),Ff(t))}function n7(t,n,e){if(null!=(n=function(r){if(null==r)return r;const i=typeof r;if("bigint"===i)return String(n3(64,r));if(a3(r)){if("string"===i)return M_(r);if("number"===i)return vf(r)}}(n))&&("string"==typeof n&&V_(n),null!=n))switch(Dc(t,e,0),typeof n){case"number":t=t.g,Jl(n),ml(t,na,$a);break;case"bigint":e=BigInt.asUintN(64,n),e=new Yf(Number(e&BigInt(4294967295)),Number(e>>BigInt(32))),ml(t.g,e.h,e.g);break;default:e=V_(n),ml(t.g,e.h,e.g)}}function Qf(t,n,e){null!=(n=ql(n))&&null!=n&&(Dc(t,e,0),o0(t.g,n))}function r7(t,n,e){null!=(n=g_(n))&&(Dc(t,e,0),t.g.g.push(n?1:0))}function o7(t,n,e){null!=(n=Ps(n))&&n4(t,e,nf(n))}function i7(t,n,e,r,i){r4(t,e,e7(n,r),i)}function qf(t,n,e){null!=(n=null==n||"string"==typeof n||n instanceof D1?n:void 0)&&n4(t,e,m3(n,!0).buffer)}function a7(t,n,e){null!=(n=y_(n))&&null!=n&&(Dc(t,e,0),r0(t.g,n))}function s7(t,n,e){return(5===t.h||2===t.h)&&(n=ul(n,0|n[kr],e),2==t.h?_3(t,p3,n):n.push(p3(t.g)),!0)}var Ra=Vs(function(t,n,e){return 5===t.h&&(Gs(n,e,p3(t.g)),!0)},Jf,o4),Rb=_l(s7,function(t,n,e){if(null!=(n=c0(P1,n)))for(let c=0;c<n.length;c++){var r=t,s=n[c];null!=s&&(Dc(r,e,5),r=r.g,pf(s),Ff(r))}},o4),d4=_l(s7,function(t,n,e){if(null!=(n=c0(P1,n))&&n.length){Dc(t,e,2),r0(t.g,4*n.length);for(let r=0;r<n.length;r++)e=t.g,pf(n[r]),Ff(e)}},o4),Yb=Vs(function(t,n,e){return 5===t.h&&(Gs(n,e,0===(t=p3(t.g))?void 0:t),!0)},Jf,o4),A2=Vs(function(t,n,e){return 0!==t.h?t=!1:(Gs(n,e,If(t.g,m_)),t=!0),t},n7,$_),f4=Vs(function(t,n,e){return 0!==t.h?n=!1:(Gs(n,e,(t=If(t.g,m_))===Nb?void 0:t),n=!0),n},n7,$_),Fb=Vs(function(t,n,e){return 0!==t.h?t=!1:(Gs(n,e,If(t.g,vb)),t=!0),t},function(t,n,e){if(null!=(n=function(r){if(null==r)return r;var i=typeof r;if("bigint"===i)return String(yb(64,r));if(a3(r)){if("string"===i)return i=Ql(Number(r)),il(i)&&i>=0?r=String(i):(-1!==(i=r.indexOf("."))&&(r=r.substring(0,i)),(i="-"!==r[0]&&((i=r.length)<20||20===i&&r<="18446744073709551615"))||(Uu(r),r=r2(na,$a))),r;if("number"===i)return(r=Ql(r))>=0&&il(r)||(Jl(r),r=h_(na,$a)),r}}(n))&&("string"==typeof n&&W_(n),null!=n))switch(Dc(t,e,0),typeof n){case"number":t=t.g,Jl(n),ml(t,na,$a);break;case"bigint":e=BigInt.asUintN(64,n),e=new Rf(Number(e&BigInt(4294967295)),Number(e>>BigInt(32))),ml(t.g,e.h,e.g);break;default:e=W_(n),ml(t.g,e.h,e.g)}},Pb),ss=Vs(function(t,n,e){return 0===t.h&&(Gs(n,e,I2(t.g)),!0)},Qf,Uf),gl=_l(function(t,n,e){return(0===t.h||2===t.h)&&(n=ul(n,0|n[kr],e),2==t.h?_3(t,I2,n):n.push(I2(t.g)),!0)},function(t,n,e){if(null!=(n=c0(ql,n))&&n.length){e=Hf(t,e);for(let r=0;r<n.length;r++)o0(t.g,n[r]);t4(t,e)}},Uf),l0=Vs(function(t,n,e){return 0===t.h&&(Gs(n,e,0===(t=I2(t.g))?void 0:t),!0)},Qf,Uf),fa=Vs(function(t,n,e){return 0===t.h&&(Gs(n,e,Af(t.g)),!0)},r7,jf),vl=Vs(function(t,n,e){return 0===t.h&&(Gs(n,e,!1===(t=Af(t.g))?void 0:t),!0)},r7,jf),Os=_l(function(t,n,e){return 2===t.h&&(t=zf(t),ul(n,0|n[kr],e).push(t),!0)},function(t,n,e){if(null!=(n=c0(Ps,n)))for(let c=0;c<n.length;c++){var s=n[c];null!=s&&n4(t,e,nf(s))}},Wf),N2=Vs(function(t,n,e){return 2===t.h&&(Gs(n,e,""===(t=zf(t))?void 0:t),!0)},o7,Wf),Ni=Vs(function(t,n,e){return 2===t.h&&(Gs(n,e,zf(t)),!0)},o7,Wf),Cs=function(t,n,e=Bf){return new s0(t,n,e)}(function(t,n,e,r,i){return 2===t.h&&(r=al(void 0,r),ul(n,0|n[kr],e).push(r),hl(t,r,i),!0)},function(t,n,e,r,i){if(Array.isArray(n)){for(let s=0;s<n.length;s++)i7(t,n[s],e,r,i);1&(t=0|n[kr])||Na(n,1|t)}}),Xi=a4(function(t,n,e,r,i,s){if(2!==t.h)return!1;let c=0|n[kr];return d3(n,c,s,e,Zl(c)),hl(t,n=Of(n,r,e),i),!0},i7),c7=Vs(function(t,n,e){return 2===t.h&&(Gs(n,e,j_(t)),!0)},qf,K_),Hb=_l(function(t,n,e){return(0===t.h||2===t.h)&&(n=ul(n,0|n[kr],e),2==t.h?_3(t,I1,n):n.push(I1(t.g)),!0)},function(t,n,e){if(null!=(n=c0(y_,n)))for(let c=0;c<n.length;c++){var r=t,s=n[c];null!=s&&(Dc(r,e,0),r0(r.g,s))}},v3),l7=Vs(function(t,n,e){return 0===t.h&&(Gs(n,e,0===(t=I1(t.g))?void 0:t),!0)},a7,v3),$s=Vs(function(t,n,e){return 0===t.h&&(Gs(n,e,I2(t.g)),!0)},function(t,n,e){null!=(n=ql(n))&&(n=parseInt(n,10),Dc(t,e,0),o0(t.g,n))},X_);class u7{constructor(n,e){var r=Pc;this.g=n,this.h=e,this.m=ui,this.j=Vr,this.defaultValue=void 0,this.l=null!=r.Oa?hf:void 0}register(){X0(this)}}function N1(t,n){return new u7(t,n)}function z2(t,n){return(e,r)=>{{const s={ea:!0};r&&Object.assign(s,r),e=H_(e,void 0,void 0,s);try{const c=new t,l=c.v;Xf(n)(l,e);var i=c}finally{Nf(e)}}return i}}function h4(t){return function(){const n=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const c=this.g;return this.g=[],c}}}};Zf(this.v,n,pl(s4,M3,u4,t)),a0(n,n.g.end());const e=new Uint8Array(n.h),r=n.l,i=r.length;let s=0;for(let c=0;c<i;c++){const l=r[c];e.set(l,s),s+=l.length}return n.l=[e],e}}var u0=class extends Ir{constructor(t){super(t)}},d7=[0,N2,Vs(function(t,n,e){return 2===t.h&&(Gs(n,e,(t=j_(t))===tl()?void 0:t),!0)},function(t,n,e){if(null!=n){if(n instanceof Ir){const r=n.Ra;return void(r?(n=r(n),null!=n&&n4(t,e,m3(n,!0).buffer)):$l(uf,3))}if(Array.isArray(n))return void $l(uf,3)}qf(t,n,e)},K_)];let eh,f7=globalThis.trustedTypes;function h7(t){var n;return void 0===eh&&(eh=function(){let e=null;if(!f7)return e;try{const r=i=>i;e=f7.createPolicy("goog#html",{createHTML:r,createScript:r,createScriptURL:r})}catch{}return e}()),t=(n=eh)?n.createScriptURL(t):t,new class{constructor(e){this.g=e}toString(){return this.g+""}}(t)}function C3(t,...n){if(0===n.length)return h7(t[0]);let e=t[0];for(let r=0;r<n.length;r++)e+=encodeURIComponent(n[r])+t[r+1];return h7(e)}var m7=[0,ss,$s,fa,-1,gl,$s,-1,fa],p7=class extends Ir{constructor(t){super(t)}},_7=[0,fa,Ni,fa,$s,-1,_l(function(t,n,e){return(0===t.h||2===t.h)&&(n=ul(n,0|n[kr],e),2==t.h?_3(t,kb,n):n.push(I2(t.g)),!0)},function(t,n,e){if(null!=(n=c0(ql,n))&&n.length){e=Hf(t,e);for(let r=0;r<n.length;r++)o0(t.g,n[r]);t4(t,e)}},X_),Ni,-1,[0,fa,-1],$s,fa,-1],g7=[0,3,fa,-1,2,[0,[2],ss,Xi,[0,Vs(function(t,n,e){return 0===t.h&&(Gs(n,e,I1(t.g)),!0)},a7,v3)]],[0,$s,fa,$s,fa,$s,fa,Ni,-1],[0,[3,4],Ni,-1,Xi,[0,ss],Xi,[0,$s]],[0]],v7=[0,Ni,-2],y7=class extends Ir{constructor(t){super(t)}},M7=[0],th=[0,ss,fa,1,fa,-4],Pc=class extends Ir{constructor(t){super(t,2)}},cs={};cs[336783863]=[0,Ni,fa,-1,ss,[0,[1,2,3,4,5,6,7,8,9],Xi,M7,Xi,_7,Xi,v7,Xi,th,Xi,m7,Xi,[0,Ni,-2],Xi,[0,Ni,$s],Xi,g7,Xi,[0,$s,-1,fa]],[0,Ni],fa,[0,[1,3],[2,4],Xi,[0,gl],-1,Xi,[0,Os],-1,Cs,[0,Ni,-1]],Ni];var nh=[0,f4,-1,vl,-3,f4,gl,N2,l0,f4,-1,vl,l0,vl,-2,N2];function ra(t,n){qu(t,3,n)}function ni(t,n){qu(t,4,n)}var fc=class extends Ir{constructor(t){super(t,500)}o(t){return Vr(this,0,7,t)}},b3=[-1,{}],C7=[0,Ni,1,b3],b7=[0,Ni,Os,b3];function Qc(t,n){h3(t,1,fc,n)}function ha(t,n){qu(t,10,n)}function Jo(t,n){qu(t,15,n)}var Oc=class extends Ir{constructor(t){super(t,500)}o(t){return Vr(this,0,1001,t)}},L7=[-500,Cs,[-500,N2,-1,Os,-3,[-2,cs,fa],Cs,d7,l0,-1,C7,b7,Cs,[0,N2,vl],N2,nh,l0,Os,987,Os],4,Cs,[-500,Ni,-1,[-1,{}],998,Ni],Cs,[-500,Ni,Os,-1,[-2,{},fa],997,Os,-1],l0,Cs,[-500,Ni,Os,b3,998,Os],Os,l0,C7,b7,Cs,[0,N2,-1,b3],Os,-2,nh,N2,-1,vl,[0,vl,l7],978,b3,Cs,d7];Oc.prototype.g=h4(L7);var Bb=z2(Oc,L7),jb=class extends Ir{constructor(t){super(t)}},S7=class extends Ir{constructor(t){super(t)}g(){return O1(this,jb,1)}},T7=[0,Cs,[0,ss,Ra,Ni,-1]],L3=z2(S7,T7),Wb=class extends Ir{constructor(t){super(t)}},Ub=class extends Ir{constructor(t){super(t)}},rh=class extends Ir{constructor(t){super(t)}l(){return ui(this,Wb,2)}g(){return O1(this,Ub,5)}},w7=z2(class extends Ir{constructor(t){super(t)}},[0,Os,gl,d4,[0,$s,[0,ss,-3],[0,Ra,-3],[0,ss,-1,[0,Cs,[0,ss,-2]]],Cs,[0,Ra,-1,Ni,Ra]],Ni,-1,A2,Cs,[0,ss,Ra],Os,A2]),E7=class extends Ir{constructor(t){super(t)}},d0=z2(class extends Ir{constructor(t){super(t)}},[0,Cs,[0,Ra,-4]]),oh=class extends Ir{constructor(t){super(t)}},S3=z2(class extends Ir{constructor(t){super(t)}},[0,Cs,[0,Ra,-4]]),Vb=class extends Ir{constructor(t){super(t)}},Gb=[0,ss,-1,d4,$s],ih=class extends Ir{constructor(t){super(t)}};ih.prototype.g=h4([0,Ra,-4,A2]);var $b=class extends Ir{constructor(t){super(t)}},Kb=z2(class extends Ir{constructor(t){super(t)}},[0,Cs,[0,1,ss,Ni,T7],A2]),x7=class extends Ir{constructor(t){super(t)}},Xb=class extends Ir{constructor(t){super(t)}na(){return da(this,1,void 0,void 0,xf)??tl()}},Zb=class extends Ir{constructor(t){super(t)}},k7=[1,2],Jb=z2(class extends Ir{constructor(t){super(t)}},[0,Cs,[0,k7,Xi,[0,d4],Xi,[0,c7],ss,Ni],A2]),ah=class extends Ir{constructor(t){super(t)}},D7=[0,Ni,ss,Ra,Os,-1],P7=class extends Ir{constructor(t){super(t)}},Qb=[0,fa,-1],O7=class extends Ir{constructor(t){super(t)}},m4=[1,2,3,4,5,6],p4=class extends Ir{constructor(t){super(t)}g(){return null!=da(this,1,void 0,void 0,xf)}l(){return null!=Ps(da(this,2))}},Ta=class extends Ir{constructor(t){super(t)}g(){var t;return null!==(t=g_(da(this,2)))&&void 0!==t&&t}},sh=[0,c7,Ni,[0,ss,A2,-1],[0,Fb,A2]],Ka=[0,sh,fa,[0,m4,Xi,th,Xi,_7,Xi,m7,Xi,M7,Xi,v7,Xi,g7],$s],_4=class extends Ir{constructor(t){super(t)}},ch=[0,Ka,Ra,-1,ss],I7=N1(502141897,_4);cs[502141897]=ch;var qb=z2(class extends Ir{constructor(t){super(t)}},[0,[0,$s,-1,Rb,Hb],Gb]),A7=class extends Ir{constructor(t){super(t)}},lh=class extends Ir{constructor(t){super(t)}},uh=[0,Ka,Ra,[0,Ka],fa],eL=N1(508968150,lh);cs[508968150]=[0,Ka,ch,uh,Ra,[0,[0,sh]]],cs[508968149]=uh;var f0=class extends Ir{constructor(t){super(t)}l(){return ui(this,ah,2)}g(){Ai(this,2)}},N7=[0,Ka,D7];cs[478825465]=N7;var tL=class extends Ir{constructor(t){super(t)}},dh=class extends Ir{constructor(t){super(t)}},fh=class extends Ir{constructor(t){super(t)}},hh=class extends Ir{constructor(t){super(t)}},z7=class extends Ir{constructor(t){super(t)}},R7=[0,Ka,[0,Ka],N7,-1],mh=[0,Ka,Ra,ss],ph=[0,Ka,Ra],_h=[0,Ka,mh,ph,Ra],nL=N1(479097054,z7);cs[479097054]=[0,Ka,_h,R7],cs[463370452]=R7,cs[464864288]=mh;var rL=N1(462713202,hh);cs[462713202]=_h,cs[474472470]=ph;var Y7=class extends Ir{constructor(t){super(t)}},F7=class extends Ir{constructor(t){super(t)}},H7=class extends Ir{constructor(t){super(t)}},B7=class extends Ir{constructor(t){super(t)}},g4=[0,Ka,Ra,-1,ss],gh=[0,Ka,Ra,fa];B7.prototype.g=h4([0,Ka,ph,[0,Ka],ch,uh,g4,gh]);var j7=class extends Ir{constructor(t){super(t)}},oL=N1(456383383,j7);cs[456383383]=[0,Ka,D7];var W7=class extends Ir{constructor(t){super(t)}},U7=N1(476348187,W7);cs[476348187]=[0,Ka,Qb];var V7=class extends Ir{constructor(t){super(t)}},G7=class extends(null){constructor(t){super(t)}},$7=[0,$s,-1],iL=N1(458105876,class extends Ir{constructor(t){super(t)}g(){let t;var n=this.v;const e=0|n[kr];return t=Ec(this,e),n=function(r,i,s,c){var l=G7;!c&&a2(r)&&(s=0|(i=r.v)[kr]);var u=s2(i,2);if(r=!1,null==u){if(c)return E_();u=[]}else if(u.constructor===o2){if(!(2&u.J)||c)return u;u=u.V()}else Array.isArray(u)?r=!!(2&(0|u[kr])):u=[];if(c){if(!u.length)return E_();r||(r=!0,e3(u))}else r&&(r=!1,t3(u),u=I_(u));return!r&&32&s&&q0(u,32),s=as(i,s,2,c=new o2(u,l,S_,void 0)),r||sl(i,s),c}(this,n,e,t),!t&&G7&&(n.ra=!0),n}});cs[458105876]=[0,$7,zb,[!0,A2,[0,Ni,-1,Os]],[0,gl,fa,$s]];var v4=class extends Ir{constructor(t){super(t)}},K7=N1(458105758,v4);cs[458105758]=[0,Ka,Ni,$7];var vh=class extends Ir{constructor(t){super(t)}},X7=[0,Yb,-1,vl],Z7=class extends Ir{constructor(t){super(t)}},J7=class extends Ir{constructor(t){super(t)}},yh=[1,2];J7.prototype.g=h4([0,yh,Xi,X7,Xi,[0,Cs,X7]]);var Mh=class extends Ir{constructor(t){super(t)}},aL=N1(443442058,Mh);cs[443442058]=[0,Ka,Ni,ss,Ra,Os,-1,fa,Ra],cs[514774813]=g4;var Q7=class extends Ir{constructor(t){super(t)}},sL=N1(516587230,Q7);function y4(t,n){return n=n?n.clone():new ah,void 0!==t.displayNamesLocale?Ai(n,1,s3(t.displayNamesLocale)):void 0===t.displayNamesLocale&&Ai(n,1),void 0!==t.maxResults?c2(n,2,t.maxResults):"maxResults"in t&&Ai(n,2),void 0!==t.scoreThreshold?Or(n,3,t.scoreThreshold):"scoreThreshold"in t&&Ai(n,3),void 0!==t.categoryAllowlist?Qu(n,4,t.categoryAllowlist):"categoryAllowlist"in t&&Ai(n,4),void 0!==t.categoryDenylist?Qu(n,5,t.categoryDenylist):"categoryDenylist"in t&&Ai(n,5),n}function q7(t){const n=Number(t);return Number.isSafeInteger(n)?n:String(t)}function Ch(t,n=-1,e=""){return{categories:t.map(r=>{var i,s,c,l,u,d,p;return{index:null!==(i=null!==(s=Zc(r,1))&&void 0!==s?s:0)&&void 0!==i?i:-1,score:null!==(c=za(r,2))&&void 0!==c?c:0,categoryName:null!==(l=null!==(u=Ps(da(r,3)))&&void 0!==u?u:"")&&void 0!==l?l:"",displayName:null!==(d=null!==(p=Ps(da(r,4)))&&void 0!==p?p:"")&&void 0!==d?d:""}}),headIndex:n,headName:e}}function tg(t){var n,e,r,i,s,c,l=cl(t,3,P1,P2()),u=cl(t,2,ql,P2()),d=cl(t,1,Ps,P2()),p=cl(t,9,Ps,P2());const M={categories:[],keypoints:[]};for(let Ae=0;Ae<l.length;Ae++){var x,R,U;M.categories.push({score:l[Ae],index:null!==(x=u[Ae])&&void 0!==x?x:-1,categoryName:null!==(R=d[Ae])&&void 0!==R?R:"",displayName:null!==(U=p[Ae])&&void 0!==U?U:""})}if((l=null===(n=ui(t,rh,4))||void 0===n?void 0:n.l())&&(M.boundingBox={originX:null!==(e=Zc(l,1,D2))&&void 0!==e?e:0,originY:null!==(r=Zc(l,2,D2))&&void 0!==r?r:0,width:null!==(i=Zc(l,3,D2))&&void 0!==i?i:0,height:null!==(s=Zc(l,4,D2))&&void 0!==s?s:0,angle:0}),null!==(c=ui(t,rh,4))&&void 0!==c&&c.g().length)for(const Ae of ui(t,rh,4).g()){var J,ne,ue,Ie;M.keypoints.push({x:null!==(J=da(Ae,1,void 0,D2,P1))&&void 0!==J?J:0,y:null!==(ne=da(Ae,2,void 0,D2,P1))&&void 0!==ne?ne:0,score:null!==(ue=da(Ae,4,void 0,D2,P1))&&void 0!==ue?ue:0,label:null!==(Ie=Ps(da(Ae,3,void 0,D2)))&&void 0!==Ie?Ie:""})}return M}function T3(t){const n=[];for(const c of O1(t,oh,1)){var e,r,i,s;n.push({x:null!==(e=za(c,1))&&void 0!==e?e:0,y:null!==(r=za(c,2))&&void 0!==r?r:0,z:null!==(i=za(c,3))&&void 0!==i?i:0,visibility:null!==(s=za(c,4))&&void 0!==s?s:0})}return n}function h0(t){const n=[];for(const c of O1(t,E7,1)){var e,r,i,s;n.push({x:null!==(e=za(c,1))&&void 0!==e?e:0,y:null!==(r=za(c,2))&&void 0!==r?r:0,z:null!==(i=za(c,3))&&void 0!==i?i:0,visibility:null!==(s=za(c,4))&&void 0!==s?s:0})}return n}function ng(t){return Array.from(t,n=>n>127?n-256:n)}function bh(t,n){if(t.length!==n.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${n.length}).`);let e=0,r=0,i=0;for(let s=0;s<t.length;s++)e+=t[s]*n[s],r+=t[s]*t[s],i+=n[s]*n[s];if(r<=0||i<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return e/Math.sqrt(r*i)}let M4;cs[516587230]=[0,Ka,g4,gh,Ra],cs[518928384]=gh;const rg=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);function og(t){return C4.apply(this,arguments)}function C4(){return C4=(0,o.Z)(function*(t){if(t)return!0;if(void 0===M4)try{yield WebAssembly.instantiate(rg),M4=!0}catch{M4=!1}return M4}),C4.apply(this,arguments)}function b4(t,n,e){return L4.apply(this,arguments)}function L4(){return L4=(0,o.Z)(function*(t,n,e){return{wasmLoaderPath:`${n}/${t}_${e=`wasm${e?"_module":""}${(yield og(e))?"":"_nosimd"}_internal`}.js`,wasmBinaryPath:`${n}/${t}_${e}.wasm`}}),L4.apply(this,arguments)}var m0=class{};function ig(){var t=navigator;return typeof OffscreenCanvas<"u"&&(!function(n=navigator){return(n=n.userAgent).includes("Safari")&&!n.includes("Chrome")}(t)||!!((t=t.userAgent.match(/Version\/([\d]+).*Safari/))&&t.length>=1&&Number(t[1])>=17))}function ag(t){return S4.apply(this,arguments)}function S4(){return S4=(0,o.Z)(function*(t){if("function"!=typeof importScripts){const n=document.createElement("script");return n.src=t.toString(),n.crossOrigin="anonymous",new Promise((e,r)=>{n.addEventListener("load",()=>{e()},!1),n.addEventListener("error",i=>{r(i)},!1),document.body.appendChild(n)})}try{importScripts(t.toString())}catch(n){if(!(n instanceof TypeError))throw n;{const e=self.import;e?yield e(t.toString()):yield f(91870)(t.toString())}}}),S4.apply(this,arguments)}function sg(t){return void 0!==t.videoWidth?[t.videoWidth,t.videoHeight]:void 0!==t.naturalWidth?[t.naturalWidth,t.naturalHeight]:void 0!==t.displayWidth?[t.displayWidth,t.displayHeight]:[t.width,t.height]}function Dr(t,n,e){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),e(n=t.i.stringToNewUTF8(n)),t.i._free(n)}function cg(t,n,e){if(!t.i.canvas)throw Error("No OpenGL canvas configured.");if(e?t.i._bindTextureToStream(e):t.i._bindTextureToCanvas(),!(e=t.i.canvas.getContext("webgl2")||t.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");t.i.gpuOriginForWebTexturesIsBottomLeft&&e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n),t.i.gpuOriginForWebTexturesIsBottomLeft&&e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1);const[r,i]=sg(n);return!t.l||r===t.i.canvas.width&&i===t.i.canvas.height||(t.i.canvas.width=r,t.i.canvas.height=i),[r,i]}function lg(t,n,e){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(n.length);for(let i=0;i<n.length;i++)r[i]=t.i.stringToNewUTF8(n[i]);n=t.i._malloc(4*r.length),t.i.HEAPU32.set(r,n>>2),e(n);for(const i of r)t.i._free(i);t.i._free(n)}function z1(t,n,e){t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[n]=e}function R2(t,n,e){let r=[];t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[n]=(i,s,c)=>{s?(e(r,c),r=[]):r.push(i)}}function cL(t,n,e,r){return T4.apply(this,arguments)}function T4(){return T4=(0,o.Z)(function*(t,n,e,r){return t=yield(i=(0,o.Z)(function*(s,c,l,u,d){if(c&&(yield ag(c)),!self.ModuleFactory||l&&(yield ag(l),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&d&&((c=self.Module).locateFile=d.locateFile,d.mainScriptUrlOrBlob&&(c.mainScriptUrlOrBlob=d.mainScriptUrlOrBlob)),d=yield self.ModuleFactory(self.Module||d),self.ModuleFactory=self.Module=void 0,new s(d,u)}),function(s,c,l,u,d){return i.apply(this,arguments)})(t,e.wasmLoaderPath,e.assetLoaderPath,n,{locateFile:i=>i.endsWith(".wasm")?e.wasmBinaryPath.toString():e.assetBinaryPath&&i.endsWith(".data")?e.assetBinaryPath.toString():i}),yield t.o(r),t;var i}),T4.apply(this,arguments)}function Lh(t,n){const e=ui(t.baseOptions,p4,1)||new p4;"string"==typeof n?(Ai(e,2,s3(n)),Ai(e,1)):n instanceof Uint8Array&&(Ai(e,1,ff(n,!1)),Ai(e,2)),Vr(t.baseOptions,0,1,e)}function ug(t){try{const n=t.H.length;if(1===n)throw Error(t.H[0].message);if(n>1)throw Error("Encountered multiple errors: "+t.H.map(e=>e.message).join(", "))}finally{t.H=[]}}function gr(t,n){t.C=Math.max(t.C,n)}function w4(t,n){t.B=new fc,kc(t.B,2,"PassThroughCalculator"),ra(t.B,"free_memory"),ni(t.B,"free_memory_unused_out"),ha(n,"free_memory"),Qc(n,t.B)}function yl(t,n){ra(t.B,n),ni(t.B,n+"_unused_out")}function E4(t){t.g.addBoolToStream(!0,"free_memory",t.C)}m0.forVisionTasks=function(t,n=!1){return b4("vision",t??C3``,n)},m0.forTextTasks=function(t,n=!1){return b4("text",t??C3``,n)},m0.forGenAiTasks=function(t,n=!1){return b4("genai",t??C3``,n)},m0.forAudioTasks=function(t,n=!1){return b4("audio",t??C3``,n)},m0.isSimdSupported=function(t=!1){return og(t)};var Sh=class{constructor(t){this.g=t,this.H=[],this.C=0,this.g.setAutoRenderToScreen(!1)}l(t,n=!0){if(n){var e,r,i,s,c,l;const u=t.baseOptions||{};if(null!==(e=t.baseOptions)&&void 0!==e&&e.modelAssetBuffer&&null!==(r=t.baseOptions)&&void 0!==r&&r.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(null!==(i=ui(this.baseOptions,p4,1))&&void 0!==i&&i.g()||null!==(s=ui(this.baseOptions,p4,1))&&void 0!==s&&s.l()||null!==(c=t.baseOptions)&&void 0!==c&&c.modelAssetBuffer||null!==(l=t.baseOptions)&&void 0!==l&&l.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(d,p){let M=ui(d.baseOptions,O7,3);if(!M){var x=M=new O7,R=new y7;f3(x,4,m4,R)}"delegate"in p&&("GPU"===p.delegate?(p=M,x=new p7,f3(p,2,m4,x)):(p=M,x=new y7,f3(p,4,m4,x))),Vr(d.baseOptions,0,3,M)}(this,u),u.modelAssetPath)return fetch(u.modelAssetPath.toString()).then(d=>{if(d.ok)return d.arrayBuffer();throw Error(`Failed to fetch model: ${u.modelAssetPath} (${d.status})`)}).then(d=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(d),!0,!1,!1),Lh(this,"/model.dat"),this.m(),this.L()});if(u.modelAssetBuffer instanceof Uint8Array)Lh(this,u.modelAssetBuffer);else if(u.modelAssetBuffer)return(d=(0,o.Z)(function*(p){const M=[];for(var x=0;;){const{done:R,value:U}=yield p.read();if(R)break;M.push(U),x+=U.length}if(0===M.length)return new Uint8Array(0);if(1===M.length)return M[0];p=new Uint8Array(x),x=0;for(const R of M)p.set(R,x),x+=R.length;return p}),function(p){return d.apply(this,arguments)})(u.modelAssetBuffer).then(d=>{Lh(this,d),this.m(),this.L()})}var d;return this.m(),this.L(),Promise.resolve()}L(){}ca(){let t;if(this.g.ca(n=>{t=Bb(n)}),!t)throw Error("Failed to retrieve CalculatorGraphConfig");return t}setGraph(t,n){this.g.attachErrorListener((e,r)=>{this.H.push(Error(r))}),this.g.Ja(),this.g.setGraph(t,n),this.B=void 0,ug(this)}finishProcessing(){this.g.finishProcessing(),ug(this)}close(){this.B=void 0,this.g.closeGraph()}};function ec(t,n){if(!t)throw Error(`Unable to obtain required WebGL resource: ${n}`);return t}Sh.prototype.close=Sh.prototype.close;class lL{constructor(n,e,r,i){this.g=n,this.h=e,this.m=r,this.l=i}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function dg(t,n,e){const r=t.g;if(e=ec(r.createShader(e),"Failed to create WebGL shader"),r.shaderSource(e,n),r.compileShader(e),!r.getShaderParameter(e,r.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${r.getShaderInfoLog(e)}`);return r.attachShader(t.h,e),e}function fg(t,n){const e=t.g,r=ec(e.createVertexArray(),"Failed to create vertex array");e.bindVertexArray(r);const i=ec(e.createBuffer(),"Failed to create buffer");e.bindBuffer(e.ARRAY_BUFFER,i),e.enableVertexAttribArray(t.O),e.vertexAttribPointer(t.O,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),e.STATIC_DRAW);const s=ec(e.createBuffer(),"Failed to create buffer");return e.bindBuffer(e.ARRAY_BUFFER,s),e.enableVertexAttribArray(t.L),e.vertexAttribPointer(t.L,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,new Float32Array(n?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),e.STATIC_DRAW),e.bindBuffer(e.ARRAY_BUFFER,null),e.bindVertexArray(null),new lL(e,r,i,s)}function x4(t,n){if(t.g){if(n!==t.g)throw Error("Cannot change GL context once initialized")}else t.g=n}function w3(t,n,e,r){return x4(t,n),t.h||(t.m(),t.D()),e?(t.u||(t.u=fg(t,!0)),e=t.u):(t.A||(t.A=fg(t,!1)),e=t.A),n.useProgram(t.h),e.bind(),t.l(),t=r(),e.g.bindVertexArray(null),t}function Y2(t,n,e){return x4(t,n),t=ec(n.createTexture(),"Failed to create texture"),n.bindTexture(n.TEXTURE_2D,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,e??n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,e??n.LINEAR),n.bindTexture(n.TEXTURE_2D,null),t}function k4(t,n,e){x4(t,n),t.B||(t.B=ec(n.createFramebuffer(),"Failed to create framebuffe.")),n.bindFramebuffer(n.FRAMEBUFFER,t.B),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0)}function Th(t){var n;null===(n=t.g)||void 0===n||n.bindFramebuffer(t.g.FRAMEBUFFER,null)}var Ml=class{H(){return"\n precision mediump float;\n varying vec2 vTex;\n uniform sampler2D inputTexture;\n void main() {\n gl_FragColor = texture2D(inputTexture, vTex);\n }\n "}m(){const t=this.g;if(this.h=ec(t.createProgram(),"Failed to create WebGL program"),this.X=dg(this,"\n attribute vec2 aVertex;\n attribute vec2 aTex;\n varying vec2 vTex;\n void main(void) {\n gl_Position = vec4(aVertex, 0.0, 1.0);\n vTex = aTex;\n }",t.VERTEX_SHADER),this.W=dg(this,this.H(),t.FRAGMENT_SHADER),t.linkProgram(this.h),!t.getProgramParameter(this.h,t.LINK_STATUS))throw Error(`Error during program linking: ${t.getProgramInfoLog(this.h)}`);this.O=t.getAttribLocation(this.h,"aVertex"),this.L=t.getAttribLocation(this.h,"aTex")}D(){}l(){}close(){if(this.h){const t=this.g;t.deleteProgram(this.h),t.deleteShader(this.X),t.deleteShader(this.W)}this.B&&this.g.deleteFramebuffer(this.B),this.A&&this.A.close(),this.u&&this.u.close()}},uL=class extends Ml{H(){return"\n precision mediump float;\n uniform sampler2D backgroundTexture;\n uniform sampler2D maskTexture;\n uniform sampler2D colorMappingTexture;\n varying vec2 vTex;\n void main() {\n vec4 backgroundColor = texture2D(backgroundTexture, vTex);\n float category = texture2D(maskTexture, vTex).r;\n vec4 categoryColor = texture2D(colorMappingTexture, vec2(category, 0.0));\n gl_FragColor = mix(backgroundColor, categoryColor, categoryColor.a);\n }\n "}D(){const t=this.g;t.activeTexture(t.TEXTURE1),this.C=Y2(this,t,t.LINEAR),t.activeTexture(t.TEXTURE2),this.j=Y2(this,t,t.NEAREST)}m(){super.m();const t=this.g;this.P=ec(t.getUniformLocation(this.h,"backgroundTexture"),"Uniform location"),this.U=ec(t.getUniformLocation(this.h,"colorMappingTexture"),"Uniform location"),this.M=ec(t.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();const t=this.g;t.uniform1i(this.M,0),t.uniform1i(this.P,1),t.uniform1i(this.U,2)}close(){this.C&&this.g.deleteTexture(this.C),this.j&&this.g.deleteTexture(this.j),super.close()}},wh=class extends Ml{H(){return"\n precision mediump float;\n uniform sampler2D maskTexture;\n uniform sampler2D defaultTexture;\n uniform sampler2D overlayTexture;\n varying vec2 vTex;\n void main() {\n float confidence = texture2D(maskTexture, vTex).r;\n vec4 defaultColor = texture2D(defaultTexture, vTex);\n vec4 overlayColor = texture2D(overlayTexture, vTex);\n // Apply the alpha from the overlay and merge in the default color\n overlayColor = mix(defaultColor, overlayColor, overlayColor.a);\n gl_FragColor = mix(defaultColor, overlayColor, confidence);\n }\n "}D(){const t=this.g;t.activeTexture(t.TEXTURE1),this.j=Y2(this,t),t.activeTexture(t.TEXTURE2),this.C=Y2(this,t)}m(){super.m();const t=this.g;this.M=ec(t.getUniformLocation(this.h,"defaultTexture"),"Uniform location"),this.P=ec(t.getUniformLocation(this.h,"overlayTexture"),"Uniform location"),this.I=ec(t.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();const t=this.g;t.uniform1i(this.I,0),t.uniform1i(this.M,1),t.uniform1i(this.P,2)}close(){this.j&&this.g.deleteTexture(this.j),this.C&&this.g.deleteTexture(this.C),super.close()}};function l2(t,n){switch(n){case 0:return t.g.find(e=>e instanceof Uint8Array);case 1:return t.g.find(e=>e instanceof Float32Array);case 2:return t.g.find(e=>typeof WebGLTexture<"u"&&e instanceof WebGLTexture);default:throw Error(`Type is not supported: ${n}`)}}function Eh(t){var n=l2(t,1);if(!n){if(n=l2(t,0))n=new Float32Array(n).map(r=>r/255);else{n=new Float32Array(t.width*t.height);const r=Cl(t);var e=xh(t);if(k4(e,r,hg(t)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){e=new Float32Array(t.width*t.height*4),r.readPixels(0,0,t.width,t.height,r.RGBA,r.FLOAT,e);for(let i=0,s=0;i<n.length;++i,s+=4)n[i]=e[s]}else r.readPixels(0,0,t.width,t.height,r.RED,r.FLOAT,n)}t.g.push(n)}return n}function hg(t){let n=l2(t,2);if(!n){const e=Cl(t);n=pg(t);const r=Eh(t),i=mg(t);e.texImage2D(e.TEXTURE_2D,0,i,t.width,t.height,0,e.RED,e.FLOAT,r),kh(t)}return n}function Cl(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return t.h||(t.h=ec(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function mg(t){if(t=Cl(t),!D4)if(t.getExtension("EXT_color_buffer_float")&&t.getExtension("OES_texture_float_linear")&&t.getExtension("EXT_float_blend"))D4=t.R32F;else{if(!t.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");D4=t.R16F}return D4}function xh(t){return t.l||(t.l=new Ml),t.l}function pg(t){const n=Cl(t);n.viewport(0,0,t.width,t.height),n.activeTexture(n.TEXTURE0);let e=l2(t,2);return e||(e=Y2(xh(t),n,t.m?n.LINEAR:n.NEAREST),t.g.push(e),t.j=!0),n.bindTexture(n.TEXTURE_2D,e),e}function kh(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}var D4,ls=class{constructor(t,n,e,r,i,s,c){this.g=t,this.m=n,this.j=e,this.canvas=r,this.l=i,this.width=s,this.height=c,this.j&&0==--_g&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Fa(){return!!l2(this,0)}ka(){return!!l2(this,1)}R(){return!!l2(this,2)}ja(){return(n=l2(this,0))||(n=Eh(this),n=new Uint8Array(n.map(e=>Math.round(255*e))),this.g.push(n)),n;var n}ia(){return Eh(this)}N(){return hg(this)}clone(){const t=[];for(const n of this.g){let e;if(n instanceof Uint8Array)e=new Uint8Array(n);else if(n instanceof Float32Array)e=new Float32Array(n);else{if(!(n instanceof WebGLTexture))throw Error(`Type is not supported: ${n}`);{const r=Cl(this),i=xh(this);r.activeTexture(r.TEXTURE1),e=Y2(i,r,this.m?r.LINEAR:r.NEAREST),r.bindTexture(r.TEXTURE_2D,e);const s=mg(this);r.texImage2D(r.TEXTURE_2D,0,s,this.width,this.height,0,r.RED,r.FLOAT,null),r.bindTexture(r.TEXTURE_2D,null),k4(i,r,e),w3(i,r,!1,()=>{pg(this),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.drawArrays(r.TRIANGLE_FAN,0,4),kh(this)}),Th(i),kh(this)}}t.push(e)}return new ls(t,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&Cl(this).deleteTexture(l2(this,2)),_g=-1}};ls.prototype.close=ls.prototype.close,ls.prototype.clone=ls.prototype.clone,ls.prototype.getAsWebGLTexture=ls.prototype.N,ls.prototype.getAsFloat32Array=ls.prototype.ia,ls.prototype.getAsUint8Array=ls.prototype.ja,ls.prototype.hasWebGLTexture=ls.prototype.R,ls.prototype.hasFloat32Array=ls.prototype.ka,ls.prototype.hasUint8Array=ls.prototype.Fa;var _g=250;const dL={color:"white",lineWidth:4,radius:6};function Dh(t){return{...dL,fillColor:(t=t||{}).color,...t}}function u2(t,n){return t instanceof Function?t(n):t}function gg(t,n,e){return Math.max(Math.min(n,e),Math.min(Math.max(n,e),t))}function p0(t){if(!t.l)throw Error("CPU rendering requested but CanvasRenderingContext2D not provided.");return t.l}function E3(t){if(!t.j)throw Error("GPU rendering requested but WebGL2RenderingContext not provided.");return t.j}function vg(t,n,e){if(n.R())e(n.N());else{var r;const i=n.ka()?n.ia():n.ja();t.m=null!==(r=t.m)&&void 0!==r?r:new Ml;const s=E3(t);e((t=new ls([i],n.m,!1,s.canvas,t.m,n.width,n.height)).N()),t.close()}}function yg(t,n,e,r){const i=((l=t).g||(l.g=new uL),l.g),s=E3(t),c=Array.isArray(e)?new ImageData(new Uint8ClampedArray(e),1,1):e;var l;w3(i,s,!0,()=>{(function(u,d,p,M){const x=u.g;if(x.activeTexture(x.TEXTURE0),x.bindTexture(x.TEXTURE_2D,d),x.activeTexture(x.TEXTURE1),x.bindTexture(x.TEXTURE_2D,u.C),x.texImage2D(x.TEXTURE_2D,0,x.RGBA,x.RGBA,x.UNSIGNED_BYTE,p),u.I&&function(R,U){if(R!==U)return!1;R=R.entries(),U=U.entries();for(const[J,ne]of R){R=J;const ue=ne,Ie=U.next();if(Ie.done)return!1;const[Ae,Oe]=Ie.value;if(R!==Ae||ue[0]!==Oe[0]||ue[1]!==Oe[1]||ue[2]!==Oe[2]||ue[3]!==Oe[3])return!1}return!!U.next().done}(u.I,M))x.activeTexture(x.TEXTURE2),x.bindTexture(x.TEXTURE_2D,u.j);else{u.I=M;const R=Array(1024).fill(0);M.forEach((U,J)=>{if(4!==U.length)throw Error(`Color at index ${J} is not a four-channel value.`);R[4*J]=U[0],R[4*J+1]=U[1],R[4*J+2]=U[2],R[4*J+3]=U[3]}),x.activeTexture(x.TEXTURE2),x.bindTexture(x.TEXTURE_2D,u.j),x.texImage2D(x.TEXTURE_2D,0,x.RGBA,256,1,0,x.RGBA,x.UNSIGNED_BYTE,new Uint8Array(R))}})(i,n,c,r),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4);const l=i.g;l.activeTexture(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,null),l.activeTexture(l.TEXTURE1),l.bindTexture(l.TEXTURE_2D,null),l.activeTexture(l.TEXTURE2),l.bindTexture(l.TEXTURE_2D,null)})}function Mg(t,n,e,r){const i=E3(t),s=((u=t).h||(u.h=new wh),u.h),c=Array.isArray(e)?new ImageData(new Uint8ClampedArray(e),1,1):e,l=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r;var u;w3(s,i,!0,()=>{var u=s.g;u.activeTexture(u.TEXTURE0),u.bindTexture(u.TEXTURE_2D,n),u.activeTexture(u.TEXTURE1),u.bindTexture(u.TEXTURE_2D,s.j),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,c),u.activeTexture(u.TEXTURE2),u.bindTexture(u.TEXTURE_2D,s.C),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,l),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.TRIANGLE_FAN,0,4),i.bindTexture(i.TEXTURE_2D,null),(u=s.g).activeTexture(u.TEXTURE0),u.bindTexture(u.TEXTURE_2D,null),u.activeTexture(u.TEXTURE1),u.bindTexture(u.TEXTURE_2D,null),u.activeTexture(u.TEXTURE2),u.bindTexture(u.TEXTURE_2D,null)})}var tc=class{constructor(t,n){typeof CanvasRenderingContext2D<"u"&&t instanceof CanvasRenderingContext2D||t instanceof OffscreenCanvasRenderingContext2D?(this.l=t,this.j=n):this.j=t}ya(t,n){if(t){var e=p0(this);n=Dh(n),e.save();var r=e.canvas,i=0;for(const s of t)e.fillStyle=u2(n.fillColor,{index:i,from:s}),e.strokeStyle=u2(n.color,{index:i,from:s}),e.lineWidth=u2(n.lineWidth,{index:i,from:s}),(t=new Path2D).arc(s.x*r.width,s.y*r.height,u2(n.radius,{index:i,from:s}),0,2*Math.PI),e.fill(t),e.stroke(t),++i;e.restore()}}xa(t,n,e){if(t&&n){var r=p0(this);e=Dh(e),r.save();var i=r.canvas,s=0;for(const c of n){r.beginPath();const l=t[c.end];(n=t[c.start])&&l&&(r.strokeStyle=u2(e.color,{index:s,from:n,to:l}),r.lineWidth=u2(e.lineWidth,{index:s,from:n,to:l}),r.moveTo(n.x*i.width,n.y*i.height),r.lineTo(l.x*i.width,l.y*i.height)),++s,r.stroke()}r.restore()}}ua(t,n){const e=p0(this);n=Dh(n),e.save(),e.beginPath(),e.lineWidth=u2(n.lineWidth,{}),e.strokeStyle=u2(n.color,{}),e.fillStyle=u2(n.fillColor,{}),e.moveTo(t.originX,t.originY),e.lineTo(t.originX+t.width,t.originY),e.lineTo(t.originX+t.width,t.originY+t.height),e.lineTo(t.originX,t.originY+t.height),e.lineTo(t.originX,t.originY),e.stroke(),e.fill(),e.restore()}va(t,n,e=[0,0,0,255]){this.l?function(r,i,s,c){const l=E3(r);vg(r,i,u=>{yg(r,u,s,c),(u=p0(r)).drawImage(l.canvas,0,0,u.canvas.width,u.canvas.height)})}(this,t,e,n):yg(this,t.N(),e,n)}wa(t,n,e){this.l?function(r,i,s,c){const l=E3(r);vg(r,i,u=>{Mg(r,u,s,c),(u=p0(r)).drawImage(l.canvas,0,0,u.canvas.width,u.canvas.height)})}(this,t,n,e):Mg(this,t.N(),n,e)}close(){var t,n,e;null!==(t=this.g)&&void 0!==t&&t.close(),this.g=void 0,null!==(n=this.h)&&void 0!==n&&n.close(),this.h=void 0,null!==(e=this.m)&&void 0!==e&&e.close(),this.m=void 0}};function R1(t,n){switch(n){case 0:return t.g.find(e=>e instanceof ImageData);case 1:return t.g.find(e=>typeof ImageBitmap<"u"&&e instanceof ImageBitmap);case 2:return t.g.find(e=>typeof WebGLTexture<"u"&&e instanceof WebGLTexture);default:throw Error(`Type is not supported: ${n}`)}}function Cg(t){var n=R1(t,0);if(!n){n=_0(t);const e=x3(t),r=new Uint8Array(t.width*t.height*4);k4(e,n,P4(t)),n.readPixels(0,0,t.width,t.height,n.RGBA,n.UNSIGNED_BYTE,r),Th(e),n=new ImageData(new Uint8ClampedArray(r.buffer),t.width,t.height),t.g.push(n)}return n}function P4(t){let n=R1(t,2);if(!n){const e=_0(t);n=O4(t);const r=R1(t,1)||Cg(t);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,r),g0(t)}return n}function _0(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return t.h||(t.h=ec(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function x3(t){return t.l||(t.l=new Ml),t.l}function O4(t){const n=_0(t);n.viewport(0,0,t.width,t.height),n.activeTexture(n.TEXTURE0);let e=R1(t,2);return e||(e=Y2(x3(t),n),t.g.push(e),t.m=!0),n.bindTexture(n.TEXTURE_2D,e),e}function g0(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}function bg(t){const n=_0(t);return w3(x3(t),n,!0,()=>function(e,r){const i=e.canvas;if(i.width===e.width&&i.height===e.height)return r();const s=i.width,c=i.height;return i.width=e.width,i.height=e.height,e=r(),i.width=s,i.height=c,e}(t,()=>{if(n.bindFramebuffer(n.FRAMEBUFFER,null),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),!(t.canvas instanceof OffscreenCanvas))throw Error("Conversion to ImageBitmap requires that the MediaPipe Tasks is initialized with an OffscreenCanvas");return t.canvas.transferToImageBitmap()}))}tc.prototype.close=tc.prototype.close,tc.prototype.drawConfidenceMask=tc.prototype.wa,tc.prototype.drawCategoryMask=tc.prototype.va,tc.prototype.drawBoundingBox=tc.prototype.ua,tc.prototype.drawConnectors=tc.prototype.xa,tc.prototype.drawLandmarks=tc.prototype.ya,tc.lerp=function(t,n,e,r,i){return gg(r*(1-(t-n)/(e-n))+i*(1-(e-t)/(e-n)),r,i)},tc.clamp=gg;var Is=class{constructor(t,n,e,r,i,s,c){this.g=t,this.j=n,this.m=e,this.canvas=r,this.l=i,this.width=s,this.height=c,(this.j||this.m)&&0==--Lg&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ea(){return!!R1(this,0)}la(){return!!R1(this,1)}R(){return!!R1(this,2)}Ca(){return Cg(this)}Ba(){var t=R1(this,1);return t||(P4(this),O4(this),t=bg(this),g0(this),this.g.push(t),this.j=!0),t}N(){return P4(this)}clone(){const t=[];for(const n of this.g){let e;if(n instanceof ImageData)e=new ImageData(n.data,this.width,this.height);else if(n instanceof WebGLTexture){const r=_0(this),i=x3(this);r.activeTexture(r.TEXTURE1),e=Y2(i,r),r.bindTexture(r.TEXTURE_2D,e),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,this.width,this.height,0,r.RGBA,r.UNSIGNED_BYTE,null),r.bindTexture(r.TEXTURE_2D,null),k4(i,r,e),w3(i,r,!1,()=>{O4(this),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.drawArrays(r.TRIANGLE_FAN,0,4),g0(this)}),Th(i),g0(this)}else{if(!(n instanceof ImageBitmap))throw Error(`Type is not supported: ${n}`);P4(this),O4(this),e=bg(this),g0(this)}t.push(e)}return new Is(t,this.la(),this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&R1(this,1).close(),this.m&&_0(this).deleteTexture(R1(this,2)),Lg=-1}};Is.prototype.close=Is.prototype.close,Is.prototype.clone=Is.prototype.clone,Is.prototype.getAsWebGLTexture=Is.prototype.N,Is.prototype.getAsImageBitmap=Is.prototype.Ba,Is.prototype.getAsImageData=Is.prototype.Ca,Is.prototype.hasWebGLTexture=Is.prototype.R,Is.prototype.hasImageBitmap=Is.prototype.la,Is.prototype.hasImageData=Is.prototype.Ea;var Lg=250;function hc(...t){return t.map(([n,e])=>({start:n,end:e}))}const fL=function(t){return class extends t{Ja(){this.i._registerModelResourcesGraphService()}}}((Sg=class{constructor(t,n){this.l=!0,this.i=t,this.g=null,this.h=0,this.m="function"==typeof this.i._addIntToInputStream,void 0!==n?this.i.canvas=n:ig()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}initializeGraph(t){var n=this;return(0,o.Z)(function*(){const e=yield(yield fetch(t)).arrayBuffer();t=!(t.endsWith(".pbtxt")||t.endsWith(".textproto")),n.setGraph(new Uint8Array(e),t)})()}setGraphFromString(t){this.setGraph((new TextEncoder).encode(t),!1)}setGraph(t,n){const e=t.length,r=this.i._malloc(e);this.i.HEAPU8.set(t,r),n?this.i._changeBinaryGraph(e,r):this.i._changeTextGraph(e,r),this.i._free(r)}configureAudio(t,n,e,r,i){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),Dr(this,r||"input_audio",s=>{Dr(this,i=i||"audio_header",c=>{this.i._configureAudio(s,c,t,n??0,e)})})}setAutoResizeCanvas(t){this.l=t}setAutoRenderToScreen(t){this.i._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.i.gpuOriginForWebTexturesIsBottomLeft=t}ca(t){z1(this,"__graph_config__",n=>{t(n)}),Dr(this,"__graph_config__",n=>{this.i._getGraphConfig(n,void 0)}),delete this.i.simpleListeners.__graph_config__}attachErrorListener(t){this.i.errorListener=t}attachEmptyPacketListener(t,n){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[t]=n}addAudioToStream(t,n,e){this.addAudioToStreamWithShape(t,0,0,n,e)}addAudioToStreamWithShape(t,n,e,r,i){const s=4*t.length;this.h!==s&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(s),this.h=s),this.i.HEAPF32.set(t,this.g/4),Dr(this,r,c=>{this.i._addAudioToInputStream(this.g,n,e,c,i)})}addGpuBufferToStream(t,n,e){Dr(this,n,r=>{const[i,s]=cg(this,t,r);this.i._addBoundTextureToStream(r,i,s,e)})}addBoolToStream(t,n,e){Dr(this,n,r=>{this.i._addBoolToInputStream(t,r,e)})}addDoubleToStream(t,n,e){Dr(this,n,r=>{this.i._addDoubleToInputStream(t,r,e)})}addFloatToStream(t,n,e){Dr(this,n,r=>{this.i._addFloatToInputStream(t,r,e)})}addIntToStream(t,n,e){Dr(this,n,r=>{this.i._addIntToInputStream(t,r,e)})}addUintToStream(t,n,e){Dr(this,n,r=>{this.i._addUintToInputStream(t,r,e)})}addStringToStream(t,n,e){Dr(this,n,r=>{Dr(this,t,i=>{this.i._addStringToInputStream(i,r,e)})})}addStringRecordToStream(t,n,e){Dr(this,n,r=>{lg(this,Object.keys(t),i=>{lg(this,Object.values(t),s=>{this.i._addFlatHashMapToInputStream(i,s,Object.keys(t).length,r,e)})})})}addProtoToStream(t,n,e,r){Dr(this,e,i=>{Dr(this,n,s=>{const c=this.i._malloc(t.length);this.i.HEAPU8.set(t,c),this.i._addProtoToInputStream(c,t.length,s,i,r),this.i._free(c)})})}addEmptyPacketToStream(t,n){Dr(this,t,e=>{this.i._addEmptyPacketToInputStream(e,n)})}addBoolVectorToStream(t,n,e){Dr(this,n,r=>{const i=this.i._allocateBoolVector(t.length);if(!i)throw Error("Unable to allocate new bool vector on heap.");for(const s of t)this.i._addBoolVectorEntry(i,s);this.i._addBoolVectorToInputStream(i,r,e)})}addDoubleVectorToStream(t,n,e){Dr(this,n,r=>{const i=this.i._allocateDoubleVector(t.length);if(!i)throw Error("Unable to allocate new double vector on heap.");for(const s of t)this.i._addDoubleVectorEntry(i,s);this.i._addDoubleVectorToInputStream(i,r,e)})}addFloatVectorToStream(t,n,e){Dr(this,n,r=>{const i=this.i._allocateFloatVector(t.length);if(!i)throw Error("Unable to allocate new float vector on heap.");for(const s of t)this.i._addFloatVectorEntry(i,s);this.i._addFloatVectorToInputStream(i,r,e)})}addIntVectorToStream(t,n,e){Dr(this,n,r=>{const i=this.i._allocateIntVector(t.length);if(!i)throw Error("Unable to allocate new int vector on heap.");for(const s of t)this.i._addIntVectorEntry(i,s);this.i._addIntVectorToInputStream(i,r,e)})}addUintVectorToStream(t,n,e){Dr(this,n,r=>{const i=this.i._allocateUintVector(t.length);if(!i)throw Error("Unable to allocate new unsigned int vector on heap.");for(const s of t)this.i._addUintVectorEntry(i,s);this.i._addUintVectorToInputStream(i,r,e)})}addStringVectorToStream(t,n,e){Dr(this,n,r=>{const i=this.i._allocateStringVector(t.length);if(!i)throw Error("Unable to allocate new string vector on heap.");for(const s of t)Dr(this,s,c=>{this.i._addStringVectorEntry(i,c)});this.i._addStringVectorToInputStream(i,r,e)})}addBoolToInputSidePacket(t,n){Dr(this,n,e=>{this.i._addBoolToInputSidePacket(t,e)})}addDoubleToInputSidePacket(t,n){Dr(this,n,e=>{this.i._addDoubleToInputSidePacket(t,e)})}addFloatToInputSidePacket(t,n){Dr(this,n,e=>{this.i._addFloatToInputSidePacket(t,e)})}addIntToInputSidePacket(t,n){Dr(this,n,e=>{this.i._addIntToInputSidePacket(t,e)})}addUintToInputSidePacket(t,n){Dr(this,n,e=>{this.i._addUintToInputSidePacket(t,e)})}addStringToInputSidePacket(t,n){Dr(this,n,e=>{Dr(this,t,r=>{this.i._addStringToInputSidePacket(r,e)})})}addProtoToInputSidePacket(t,n,e){Dr(this,e,r=>{Dr(this,n,i=>{const s=this.i._malloc(t.length);this.i.HEAPU8.set(t,s),this.i._addProtoToInputSidePacket(s,t.length,i,r),this.i._free(s)})})}addBoolVectorToInputSidePacket(t,n){Dr(this,n,e=>{const r=this.i._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(const i of t)this.i._addBoolVectorEntry(r,i);this.i._addBoolVectorToInputSidePacket(r,e)})}addDoubleVectorToInputSidePacket(t,n){Dr(this,n,e=>{const r=this.i._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(const i of t)this.i._addDoubleVectorEntry(r,i);this.i._addDoubleVectorToInputSidePacket(r,e)})}addFloatVectorToInputSidePacket(t,n){Dr(this,n,e=>{const r=this.i._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(const i of t)this.i._addFloatVectorEntry(r,i);this.i._addFloatVectorToInputSidePacket(r,e)})}addIntVectorToInputSidePacket(t,n){Dr(this,n,e=>{const r=this.i._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(const i of t)this.i._addIntVectorEntry(r,i);this.i._addIntVectorToInputSidePacket(r,e)})}addUintVectorToInputSidePacket(t,n){Dr(this,n,e=>{const r=this.i._allocateUintVector(t.length);if(!r)throw Error("Unable to allocate new unsigned int vector on heap.");for(const i of t)this.i._addUintVectorEntry(r,i);this.i._addUintVectorToInputSidePacket(r,e)})}addStringVectorToInputSidePacket(t,n){Dr(this,n,e=>{const r=this.i._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(const i of t)Dr(this,i,s=>{this.i._addStringVectorEntry(r,s)});this.i._addStringVectorToInputSidePacket(r,e)})}attachBoolListener(t,n){z1(this,t,n),Dr(this,t,e=>{this.i._attachBoolListener(e)})}attachBoolVectorListener(t,n){R2(this,t,n),Dr(this,t,e=>{this.i._attachBoolVectorListener(e)})}attachIntListener(t,n){z1(this,t,n),Dr(this,t,e=>{this.i._attachIntListener(e)})}attachIntVectorListener(t,n){R2(this,t,n),Dr(this,t,e=>{this.i._attachIntVectorListener(e)})}attachUintListener(t,n){z1(this,t,n),Dr(this,t,e=>{this.i._attachUintListener(e)})}attachUintVectorListener(t,n){R2(this,t,n),Dr(this,t,e=>{this.i._attachUintVectorListener(e)})}attachDoubleListener(t,n){z1(this,t,n),Dr(this,t,e=>{this.i._attachDoubleListener(e)})}attachDoubleVectorListener(t,n){R2(this,t,n),Dr(this,t,e=>{this.i._attachDoubleVectorListener(e)})}attachFloatListener(t,n){z1(this,t,n),Dr(this,t,e=>{this.i._attachFloatListener(e)})}attachFloatVectorListener(t,n){R2(this,t,n),Dr(this,t,e=>{this.i._attachFloatVectorListener(e)})}attachStringListener(t,n){z1(this,t,n),Dr(this,t,e=>{this.i._attachStringListener(e)})}attachStringVectorListener(t,n){R2(this,t,n),Dr(this,t,e=>{this.i._attachStringVectorListener(e)})}attachProtoListener(t,n,e){z1(this,t,n),Dr(this,t,r=>{this.i._attachProtoListener(r,e||!1)})}attachProtoVectorListener(t,n,e){R2(this,t,n),Dr(this,t,r=>{this.i._attachProtoVectorListener(r,e||!1)})}attachAudioListener(t,n,e){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),z1(this,t,(r,i)=>{r=new Float32Array(r.buffer,r.byteOffset,r.length/4),n(r,i)}),Dr(this,t,r=>{this.i._attachAudioListener(r,e||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends Sg{get ga(){return this.i}pa(t,n,e){Dr(this,n,r=>{const[i,s]=cg(this,t,r);this.ga._addBoundTextureAsImageToStream(r,i,s,e)})}Z(t,n){z1(this,t,n),Dr(this,t,e=>{this.ga._attachImageListener(e)})}aa(t,n){R2(this,t,n),Dr(this,t,e=>{this.ga._attachImageVectorListener(e)})}}));var Sg,p1=class extends fL{};function si(t,n,e){return Ph.apply(this,arguments)}function Ph(){return Ph=(0,o.Z)(function*(t,n,e){var r,i;return(i=(0,o.Z)(function*(s,c,l,u){return cL(s,c,l,u)}),function(s,c,l,u){return i.apply(this,arguments)})(t,null!==(r=e.canvas)&&void 0!==r?r:ig()?void 0:document.createElement("canvas"),n,e)}),Ph.apply(this,arguments)}function Oh(t,n,e,r){if(t.U){var i,s;const d=new ih;if(null!==(i=e)&&void 0!==i&&i.regionOfInterest){if(!t.oa)throw Error("This task doesn't support region-of-interest.");var c=e.regionOfInterest;if(c.left>=c.right||c.top>=c.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(c.left<0||c.top<0||c.right>1||c.bottom>1)throw Error("Expected RectF values to be in [0,1].");Or(d,1,(c.left+c.right)/2),Or(d,2,(c.top+c.bottom)/2),Or(d,4,c.right-c.left),Or(d,3,c.bottom-c.top)}else Or(d,1,.5),Or(d,2,.5),Or(d,4,1),Or(d,3,1);if(null!==(s=e)&&void 0!==s&&s.rotationDegrees){var l,u;if((null===(l=e)||void 0===l?void 0:l.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90\xb0.");if(Or(d,5,-Math.PI*e.rotationDegrees/180),(null===(u=e)||void 0===u?void 0:u.rotationDegrees)%180!=0){const[p,M]=sg(n);e=za(d,3)*M/p,c=za(d,4)*p/M,Or(d,4,e),Or(d,3,c)}}t.g.addProtoToStream(d.g(),"mediapipe.NormalizedRect",t.U,r)}t.g.pa(n,t.X,r??performance.now()),t.finishProcessing()}function _1(t,n,e){var r;if(null!==(r=t.baseOptions)&&void 0!==r&&r.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");Oh(t,n,e,t.C+1)}function g1(t,n,e,r){var i;if(null===(i=t.baseOptions)||void 0===i||!i.g())throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");Oh(t,n,e,r)}function v0(t,n,e,r){var i=n.data;const s=n.width,c=s*(n=n.height);if((i instanceof Uint8Array||i instanceof Float32Array)&&i.length!==c)throw Error("Unsupported channel count: "+i.length/c);return t=new ls([i],e,!1,t.g.i.canvas,t.P,s,n),r?t.clone():t}var Ic=class extends Sh{constructor(t,n,e,r){super(t),this.g=t,this.X=n,this.U=e,this.oa=r,this.P=new Ml}l(t,n=!0){if("runningMode"in t&&Ai(this.baseOptions,2,o3(!!t.runningMode&&"IMAGE"!==t.runningMode)),void 0!==t.canvas&&this.g.i.canvas!==t.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(t,n)}close(){this.P.close(),super.close()}};Ic.prototype.close=Ic.prototype.close;var Ac=class extends Ic{constructor(t,n){super(new p1(t,n),"image_in","norm_rect_in",!1),this.j={detections:[]},Vr(t=this.h=new _4,0,1,n=new Ta),Or(this.h,2,.5),Or(this.h,3,.3)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){var n,e;return"minDetectionConfidence"in t&&Or(this.h,2,null!==(n=t.minDetectionConfidence)&&void 0!==n?n:.5),"minSuppressionThreshold"in t&&Or(this.h,3,null!==(e=t.minSuppressionThreshold)&&void 0!==e?e:.3),this.l(t)}F(t,n){return this.j={detections:[]},_1(this,t,n),this.j}G(t,n,e){return this.j={detections:[]},g1(this,t,e,n),this.j}m(){var t=new Oc;ha(t,"image_in"),ha(t,"norm_rect_in"),Jo(t,"detections");const n=new Pc;Jc(n,I7,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),ra(e,"IMAGE:image_in"),ra(e,"NORM_RECT:norm_rect_in"),ni(e,"DETECTIONS:detections"),e.o(n),Qc(t,e),this.g.attachProtoVectorListener("detections",(r,i)=>{for(const s of r)r=w7(s),this.j.detections.push(tg(r));gr(this,i)}),this.g.attachEmptyPacketListener("detections",r=>{gr(this,r)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Ac.prototype.detectForVideo=Ac.prototype.G,Ac.prototype.detect=Ac.prototype.F,Ac.prototype.setOptions=Ac.prototype.o,Ac.createFromModelPath=function(){var t=(0,o.Z)(function*(n,e){return si(Ac,n,{baseOptions:{modelAssetPath:e}})});return function(n,e){return t.apply(this,arguments)}}(),Ac.createFromModelBuffer=function(t,n){return si(Ac,t,{baseOptions:{modelAssetBuffer:n}})},Ac.createFromOptions=function(t,n){return si(Ac,t,n)};var I4=hc([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),Ih=hc([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),Ah=hc([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),Tg=hc([474,475],[475,476],[476,477],[477,474]),A4=hc([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),Nh=hc([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),wg=hc([469,470],[470,471],[471,472],[472,469]),zh=hc([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),Rh=[...I4,...Ih,...Ah,...A4,...Nh,...zh],Eg=hc([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function xg(t){t.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var ma=class extends Ic{constructor(t,n){super(new p1(t,n),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,Vr(t=this.h=new lh,0,1,n=new Ta),this.A=new A7,Vr(this.h,0,3,this.A),this.u=new _4,Vr(this.h,0,2,this.u),c2(this.u,4,1),Or(this.u,2,.5),Or(this.A,2,.5),Or(this.h,4,.5)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){var n,e,r,i;return"numFaces"in t&&c2(this.u,4,null!==(n=t.numFaces)&&void 0!==n?n:1),"minFaceDetectionConfidence"in t&&Or(this.u,2,null!==(e=t.minFaceDetectionConfidence)&&void 0!==e?e:.5),"minTrackingConfidence"in t&&Or(this.h,4,null!==(r=t.minTrackingConfidence)&&void 0!==r?r:.5),"minFacePresenceConfidence"in t&&Or(this.A,2,null!==(i=t.minFacePresenceConfidence)&&void 0!==i?i:.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in t&&(this.outputFacialTransformationMatrixes=!!t.outputFacialTransformationMatrixes),this.l(t)}F(t,n){return xg(this),_1(this,t,n),this.j}G(t,n,e){return xg(this),g1(this,t,e,n),this.j}m(){var t=new Oc;ha(t,"image_in"),ha(t,"norm_rect"),Jo(t,"face_landmarks");const n=new Pc;Jc(n,eL,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),ra(e,"IMAGE:image_in"),ra(e,"NORM_RECT:norm_rect"),ni(e,"NORM_LANDMARKS:face_landmarks"),e.o(n),Qc(t,e),this.g.attachProtoVectorListener("face_landmarks",(r,i)=>{for(const s of r)r=S3(s),this.j.faceLandmarks.push(T3(r));gr(this,i)}),this.g.attachEmptyPacketListener("face_landmarks",r=>{gr(this,r)}),this.outputFaceBlendshapes&&(Jo(t,"blendshapes"),ni(e,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(r,i)=>{if(this.outputFaceBlendshapes)for(const c of r){var s;r=L3(c),this.j.faceBlendshapes.push(Ch(null!==(s=r.g())&&void 0!==s?s:[]))}gr(this,i)}),this.g.attachEmptyPacketListener("blendshapes",r=>{gr(this,r)})),this.outputFacialTransformationMatrixes&&(Jo(t,"face_geometry"),ni(e,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(r,i)=>{if(this.outputFacialTransformationMatrixes)for(const p of r){var s,c,l,u,d;(r=ui(r=qb(p),Vb,2))&&this.j.facialTransformationMatrixes.push({rows:null!==(s=null!==(c=Zc(r,1))&&void 0!==c?c:0)&&void 0!==s?s:0,columns:null!==(l=null!==(u=Zc(r,2))&&void 0!==u?u:0)&&void 0!==l?l:0,data:null!==(d=cl(r,3,P1,P2()).slice())&&void 0!==d?d:[]})}gr(this,i)}),this.g.attachEmptyPacketListener("face_geometry",r=>{gr(this,r)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};ma.prototype.detectForVideo=ma.prototype.G,ma.prototype.detect=ma.prototype.F,ma.prototype.setOptions=ma.prototype.o,ma.createFromModelPath=function(t,n){return si(ma,t,{baseOptions:{modelAssetPath:n}})},ma.createFromModelBuffer=function(t,n){return si(ma,t,{baseOptions:{modelAssetBuffer:n}})},ma.createFromOptions=function(t,n){return si(ma,t,n)},ma.FACE_LANDMARKS_LIPS=I4,ma.FACE_LANDMARKS_LEFT_EYE=Ih,ma.FACE_LANDMARKS_LEFT_EYEBROW=Ah,ma.FACE_LANDMARKS_LEFT_IRIS=Tg,ma.FACE_LANDMARKS_RIGHT_EYE=A4,ma.FACE_LANDMARKS_RIGHT_EYEBROW=Nh,ma.FACE_LANDMARKS_RIGHT_IRIS=wg,ma.FACE_LANDMARKS_FACE_OVAL=zh,ma.FACE_LANDMARKS_CONTOURS=Rh,ma.FACE_LANDMARKS_TESSELATION=Eg;var Yh=hc([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function N4(t){t.gestures=[],t.landmarks=[],t.worldLandmarks=[],t.handedness=[]}function kg(t){return 0===t.gestures.length?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:t.gestures,landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handedness:t.handedness,handednesses:t.handedness}}function Dg(t,n=!0){const e=[];for(const p of t){var r=L3(p);t=[];for(const M of r.g()){var i,s,c,l,u,d;r=n&&null!=Zc(M,1)?null!==(i=Zc(M,1))&&void 0!==i?i:0:-1,t.push({score:null!==(s=za(M,2))&&void 0!==s?s:0,index:r,categoryName:null!==(c=null!==(l=Ps(da(M,3)))&&void 0!==l?l:"")&&void 0!==c?c:"",displayName:null!==(u=null!==(d=Ps(da(M,4)))&&void 0!==d?d:"")&&void 0!==u?u:""})}e.push(t)}return e}var Nc=class extends Ic{constructor(t,n){super(new p1(t,n),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Vr(t=this.j=new z7,0,1,n=new Ta),this.u=new hh,Vr(this.j,0,2,this.u),this.D=new fh,Vr(this.u,0,3,this.D),this.A=new dh,Vr(this.u,0,2,this.A),this.h=new tL,Vr(this.j,0,3,this.h),Or(this.A,2,.5),Or(this.u,4,.5),Or(this.D,2,.5)}get baseOptions(){return ui(this.j,Ta,1)}set baseOptions(t){Vr(this.j,0,1,t)}o(t){var n,e,r,i,s,c,l;if(c2(this.A,3,null!==(n=t.numHands)&&void 0!==n?n:1),"minHandDetectionConfidence"in t&&Or(this.A,2,null!==(e=t.minHandDetectionConfidence)&&void 0!==e?e:.5),"minTrackingConfidence"in t&&Or(this.u,4,null!==(r=t.minTrackingConfidence)&&void 0!==r?r:.5),"minHandPresenceConfidence"in t&&Or(this.D,2,null!==(i=t.minHandPresenceConfidence)&&void 0!==i?i:.5),t.cannedGesturesClassifierOptions){var u,d=new f0,p=d,M=y4(t.cannedGesturesClassifierOptions,null===(u=ui(this.h,f0,3))||void 0===u?void 0:u.l());Vr(p,0,2,M),Vr(this.h,0,3,d)}else void 0===t.cannedGesturesClassifierOptions&&(null===(s=ui(this.h,f0,3))||void 0===s||s.g());return t.customGesturesClassifierOptions?(Vr(p=d=new f0,0,2,M=y4(t.customGesturesClassifierOptions,null===(c=ui(this.h,f0,4))||void 0===c?void 0:c.l())),Vr(this.h,0,4,d)):void 0===t.customGesturesClassifierOptions&&(null===(l=ui(this.h,f0,4))||void 0===l||l.g()),this.l(t)}Ha(t,n){return N4(this),_1(this,t,n),kg(this)}Ia(t,n,e){return N4(this),g1(this,t,e,n),kg(this)}m(){var t=new Oc;ha(t,"image_in"),ha(t,"norm_rect"),Jo(t,"hand_gestures"),Jo(t,"hand_landmarks"),Jo(t,"world_hand_landmarks"),Jo(t,"handedness");const n=new Pc;Jc(n,nL,this.j);const e=new fc;kc(e,2,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),ra(e,"IMAGE:image_in"),ra(e,"NORM_RECT:norm_rect"),ni(e,"HAND_GESTURES:hand_gestures"),ni(e,"LANDMARKS:hand_landmarks"),ni(e,"WORLD_LANDMARKS:world_hand_landmarks"),ni(e,"HANDEDNESS:handedness"),e.o(n),Qc(t,e),this.g.attachProtoVectorListener("hand_landmarks",(r,i)=>{for(const d of r){r=S3(d);const p=[];for(const M of O1(r,oh,1)){var s,c,l,u;p.push({x:null!==(s=za(M,1))&&void 0!==s?s:0,y:null!==(c=za(M,2))&&void 0!==c?c:0,z:null!==(l=za(M,3))&&void 0!==l?l:0,visibility:null!==(u=za(M,4))&&void 0!==u?u:0})}this.landmarks.push(p)}gr(this,i)}),this.g.attachEmptyPacketListener("hand_landmarks",r=>{gr(this,r)}),this.g.attachProtoVectorListener("world_hand_landmarks",(r,i)=>{for(const d of r){r=d0(d);const p=[];for(const M of O1(r,E7,1)){var s,c,l,u;p.push({x:null!==(s=za(M,1))&&void 0!==s?s:0,y:null!==(c=za(M,2))&&void 0!==c?c:0,z:null!==(l=za(M,3))&&void 0!==l?l:0,visibility:null!==(u=za(M,4))&&void 0!==u?u:0})}this.worldLandmarks.push(p)}gr(this,i)}),this.g.attachEmptyPacketListener("world_hand_landmarks",r=>{gr(this,r)}),this.g.attachProtoVectorListener("hand_gestures",(r,i)=>{this.gestures.push(...Dg(r,!1)),gr(this,i)}),this.g.attachEmptyPacketListener("hand_gestures",r=>{gr(this,r)}),this.g.attachProtoVectorListener("handedness",(r,i)=>{this.handedness.push(...Dg(r)),gr(this,i)}),this.g.attachEmptyPacketListener("handedness",r=>{gr(this,r)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};function Fh(t){return{landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handednesses:t.handedness,handedness:t.handedness}}Nc.prototype.recognizeForVideo=Nc.prototype.Ia,Nc.prototype.recognize=Nc.prototype.Ha,Nc.prototype.setOptions=Nc.prototype.o,Nc.createFromModelPath=function(t,n){return si(Nc,t,{baseOptions:{modelAssetPath:n}})},Nc.createFromModelBuffer=function(t,n){return si(Nc,t,{baseOptions:{modelAssetBuffer:n}})},Nc.createFromOptions=function(t,n){return si(Nc,t,n)},Nc.HAND_CONNECTIONS=Yh;var zc=class extends Ic{constructor(t,n){super(new p1(t,n),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Vr(t=this.h=new hh,0,1,n=new Ta),this.u=new fh,Vr(this.h,0,3,this.u),this.j=new dh,Vr(this.h,0,2,this.j),c2(this.j,3,1),Or(this.j,2,.5),Or(this.u,2,.5),Or(this.h,4,.5)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){var n,e,r,i;return"numHands"in t&&c2(this.j,3,null!==(n=t.numHands)&&void 0!==n?n:1),"minHandDetectionConfidence"in t&&Or(this.j,2,null!==(e=t.minHandDetectionConfidence)&&void 0!==e?e:.5),"minTrackingConfidence"in t&&Or(this.h,4,null!==(r=t.minTrackingConfidence)&&void 0!==r?r:.5),"minHandPresenceConfidence"in t&&Or(this.u,2,null!==(i=t.minHandPresenceConfidence)&&void 0!==i?i:.5),this.l(t)}F(t,n){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],_1(this,t,n),Fh(this)}G(t,n,e){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],g1(this,t,e,n),Fh(this)}m(){var t=new Oc;ha(t,"image_in"),ha(t,"norm_rect"),Jo(t,"hand_landmarks"),Jo(t,"world_hand_landmarks"),Jo(t,"handedness");const n=new Pc;Jc(n,rL,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),ra(e,"IMAGE:image_in"),ra(e,"NORM_RECT:norm_rect"),ni(e,"LANDMARKS:hand_landmarks"),ni(e,"WORLD_LANDMARKS:world_hand_landmarks"),ni(e,"HANDEDNESS:handedness"),e.o(n),Qc(t,e),this.g.attachProtoVectorListener("hand_landmarks",(r,i)=>{for(const s of r)r=S3(s),this.landmarks.push(T3(r));gr(this,i)}),this.g.attachEmptyPacketListener("hand_landmarks",r=>{gr(this,r)}),this.g.attachProtoVectorListener("world_hand_landmarks",(r,i)=>{for(const s of r)r=d0(s),this.worldLandmarks.push(h0(r));gr(this,i)}),this.g.attachEmptyPacketListener("world_hand_landmarks",r=>{gr(this,r)}),this.g.attachProtoVectorListener("handedness",(r,i)=>{var s=this.handedness,c=s.push;const l=[];for(const J of r){r=L3(J);const ne=[];for(const ue of r.g()){var u,d,p,M,x,R,U;ne.push({score:null!==(u=za(ue,2))&&void 0!==u?u:0,index:null!==(d=null!==(p=Zc(ue,1))&&void 0!==p?p:0)&&void 0!==d?d:-1,categoryName:null!==(M=null!==(x=Ps(da(ue,3)))&&void 0!==x?x:"")&&void 0!==M?M:"",displayName:null!==(R=null!==(U=Ps(da(ue,4)))&&void 0!==U?U:"")&&void 0!==R?R:""})}l.push(ne)}c.call(s,...l),gr(this,i)}),this.g.attachEmptyPacketListener("handedness",r=>{gr(this,r)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};zc.prototype.detectForVideo=zc.prototype.G,zc.prototype.detect=zc.prototype.F,zc.prototype.setOptions=zc.prototype.o,zc.createFromModelPath=function(t,n){return si(zc,t,{baseOptions:{modelAssetPath:n}})},zc.createFromModelBuffer=function(t,n){return si(zc,t,{baseOptions:{modelAssetBuffer:n}})},zc.createFromOptions=function(t,n){return si(zc,t,n)},zc.HAND_CONNECTIONS=Yh;var Pg=hc([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);function Hh(t){t.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function Og(t){try{if(!t.D)return t.h;t.D(t.h)}finally{E4(t)}}function k3(t,n){t=S3(t),n.push(T3(t))}var oa=class extends Ic{constructor(t,n){super(new p1(t,n),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,Vr(t=this.j=new B7,0,1,n=new Ta),this.I=new fh,Vr(this.j,0,2,this.I),this.W=new Y7,Vr(this.j,0,3,this.W),this.u=new _4,Vr(this.j,0,4,this.u),this.O=new A7,Vr(this.j,0,5,this.O),this.A=new F7,Vr(this.j,0,6,this.A),this.M=new H7,Vr(this.j,0,7,this.M),Or(this.u,2,.5),Or(this.u,3,.3),Or(this.O,2,.5),Or(this.A,2,.5),Or(this.A,3,.3),Or(this.M,2,.5),Or(this.I,2,.5)}get baseOptions(){return ui(this.j,Ta,1)}set baseOptions(t){Vr(this.j,0,1,t)}o(t){var n,e,r,i,s,c,l;return"minFaceDetectionConfidence"in t&&Or(this.u,2,null!==(n=t.minFaceDetectionConfidence)&&void 0!==n?n:.5),"minFaceSuppressionThreshold"in t&&Or(this.u,3,null!==(e=t.minFaceSuppressionThreshold)&&void 0!==e?e:.3),"minFacePresenceConfidence"in t&&Or(this.O,2,null!==(r=t.minFacePresenceConfidence)&&void 0!==r?r:.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"minPoseDetectionConfidence"in t&&Or(this.A,2,null!==(i=t.minPoseDetectionConfidence)&&void 0!==i?i:.5),"minPoseSuppressionThreshold"in t&&Or(this.A,3,null!==(s=t.minPoseSuppressionThreshold)&&void 0!==s?s:.3),"minPosePresenceConfidence"in t&&Or(this.M,2,null!==(c=t.minPosePresenceConfidence)&&void 0!==c?c:.5),"outputPoseSegmentationMasks"in t&&(this.outputPoseSegmentationMasks=!!t.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in t&&Or(this.I,2,null!==(l=t.minHandLandmarksConfidence)&&void 0!==l?l:.5),this.l(t)}F(t,n,e){const r="function"!=typeof n?n:{};return this.D="function"==typeof n?n:e,Hh(this),_1(this,t,r),Og(this)}G(t,n,e,r){const i="function"!=typeof e?e:{};return this.D="function"==typeof e?e:r,Hh(this),g1(this,t,i,n),Og(this)}m(){var t=new Oc;ha(t,"input_frames_image"),Jo(t,"pose_landmarks"),Jo(t,"pose_world_landmarks"),Jo(t,"face_landmarks"),Jo(t,"left_hand_landmarks"),Jo(t,"left_hand_world_landmarks"),Jo(t,"right_hand_landmarks"),Jo(t,"right_hand_world_landmarks");const n=new Pc,e=new u0;kc(e,1,"type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),function(i,s){if(null!=s)if(Array.isArray(s))Ai(i,2,l3(s,0,u3));else{if(!("string"==typeof s||s instanceof D1||J0(s)))throw Error("invalid value in Any.value field: "+s+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");O2(i,2,ff(s,!1),tl())}}(e,this.j.g());const r=new fc;kc(r,2,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),h3(r,8,u0,e),ra(r,"IMAGE:input_frames_image"),ni(r,"POSE_LANDMARKS:pose_landmarks"),ni(r,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),ni(r,"FACE_LANDMARKS:face_landmarks"),ni(r,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),ni(r,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),ni(r,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),ni(r,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),r.o(n),Qc(t,r),w4(this,t),this.g.attachProtoListener("pose_landmarks",(i,s)=>{k3(i,this.h.poseLandmarks),gr(this,s)}),this.g.attachEmptyPacketListener("pose_landmarks",i=>{gr(this,i)}),this.g.attachProtoListener("pose_world_landmarks",(i,s)=>{var c=this.h.poseWorldLandmarks;i=d0(i),c.push(h0(i)),gr(this,s)}),this.g.attachEmptyPacketListener("pose_world_landmarks",i=>{gr(this,i)}),this.outputPoseSegmentationMasks&&(ni(r,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),yl(this,"pose_segmentation_mask"),this.g.Z("pose_segmentation_mask",(i,s)=>{this.h.poseSegmentationMasks=[v0(this,i,!0,!this.D)],gr(this,s)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",i=>{this.h.poseSegmentationMasks=[],gr(this,i)})),this.g.attachProtoListener("face_landmarks",(i,s)=>{k3(i,this.h.faceLandmarks),gr(this,s)}),this.g.attachEmptyPacketListener("face_landmarks",i=>{gr(this,i)}),this.outputFaceBlendshapes&&(Jo(t,"extra_blendshapes"),ni(r,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(i,s)=>{var c,l=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(i=L3(i),l.push(Ch(null!==(c=i.g())&&void 0!==c?c:[]))),gr(this,s)}),this.g.attachEmptyPacketListener("extra_blendshapes",i=>{gr(this,i)})),this.g.attachProtoListener("left_hand_landmarks",(i,s)=>{k3(i,this.h.leftHandLandmarks),gr(this,s)}),this.g.attachEmptyPacketListener("left_hand_landmarks",i=>{gr(this,i)}),this.g.attachProtoListener("left_hand_world_landmarks",(i,s)=>{var c=this.h.leftHandWorldLandmarks;i=d0(i),c.push(h0(i)),gr(this,s)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",i=>{gr(this,i)}),this.g.attachProtoListener("right_hand_landmarks",(i,s)=>{k3(i,this.h.rightHandLandmarks),gr(this,s)}),this.g.attachEmptyPacketListener("right_hand_landmarks",i=>{gr(this,i)}),this.g.attachProtoListener("right_hand_world_landmarks",(i,s)=>{var c=this.h.rightHandWorldLandmarks;i=d0(i),c.push(h0(i)),gr(this,s)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",i=>{gr(this,i)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};oa.prototype.detectForVideo=oa.prototype.G,oa.prototype.detect=oa.prototype.F,oa.prototype.setOptions=oa.prototype.o,oa.createFromModelPath=function(t,n){return si(oa,t,{baseOptions:{modelAssetPath:n}})},oa.createFromModelBuffer=function(t,n){return si(oa,t,{baseOptions:{modelAssetBuffer:n}})},oa.createFromOptions=function(t,n){return si(oa,t,n)},oa.HAND_CONNECTIONS=Yh,oa.POSE_CONNECTIONS=Pg,oa.FACE_LANDMARKS_LIPS=I4,oa.FACE_LANDMARKS_LEFT_EYE=Ih,oa.FACE_LANDMARKS_LEFT_EYEBROW=Ah,oa.FACE_LANDMARKS_LEFT_IRIS=Tg,oa.FACE_LANDMARKS_RIGHT_EYE=A4,oa.FACE_LANDMARKS_RIGHT_EYEBROW=Nh,oa.FACE_LANDMARKS_RIGHT_IRIS=wg,oa.FACE_LANDMARKS_FACE_OVAL=zh,oa.FACE_LANDMARKS_CONTOURS=Rh,oa.FACE_LANDMARKS_TESSELATION=Eg;var qc=class extends Ic{constructor(t,n){super(new p1(t,n),"input_image","norm_rect",!0),this.j={classifications:[]},Vr(t=this.h=new j7,0,1,n=new Ta)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){return Vr(this.h,0,2,y4(t,ui(this.h,ah,2))),this.l(t)}sa(t,n){return this.j={classifications:[]},_1(this,t,n),this.j}ta(t,n,e){return this.j={classifications:[]},g1(this,t,e,n),this.j}m(){var t=new Oc;ha(t,"input_image"),ha(t,"norm_rect"),Jo(t,"classifications");const n=new Pc;Jc(n,oL,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),ra(e,"IMAGE:input_image"),ra(e,"NORM_RECT:norm_rect"),ni(e,"CLASSIFICATIONS:classifications"),e.o(n),Qc(t,e),this.g.attachProtoListener("classifications",(r,i)=>{this.j=function eg(t){var n;const e={classifications:O1(t,$b,1).map(r=>{var i,s,c,l;return Ch(null!==(i=null===(s=ui(r,S7,4))||void 0===s?void 0:s.g())&&void 0!==i?i:[],null!==(c=Zc(r,2))&&void 0!==c?c:0,null!==(l=Ps(da(r,3)))&&void 0!==l?l:"")})};return null!=(null==(r=da(t,2,void 0,void 0,$u))?r:"bigint"==typeof r?(mf(r)?r=Number(r):(r=n3(64,r),r=mf(r)?Number(r):String(r)),r):a3(r)?"number"==typeof r?vf(r):M_(r):void 0)&&(e.timestampMs=q7(null!==(n=da(t,2,void 0,void 0,$u))&&void 0!==n?n:O_)),e;var r}(Kb(r)),gr(this,i)}),this.g.attachEmptyPacketListener("classifications",r=>{gr(this,r)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};qc.prototype.classifyForVideo=qc.prototype.ta,qc.prototype.classify=qc.prototype.sa,qc.prototype.setOptions=qc.prototype.o,qc.createFromModelPath=function(t,n){return si(qc,t,{baseOptions:{modelAssetPath:n}})},qc.createFromModelBuffer=function(t,n){return si(qc,t,{baseOptions:{modelAssetBuffer:n}})},qc.createFromOptions=function(t,n){return si(qc,t,n)};var Rc=class extends Ic{constructor(t,n){super(new p1(t,n),"image_in","norm_rect",!0),this.h=new W7,this.embeddings={embeddings:[]},Vr(t=this.h,0,1,n=new Ta)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){var n=this.h,e=ui(this.h,P7,2);return e=e?e.clone():new P7,void 0!==t.l2Normalize?Ai(e,1,o3(t.l2Normalize)):"l2Normalize"in t&&Ai(e,1),void 0!==t.quantize?Ai(e,2,o3(t.quantize)):"quantize"in t&&Ai(e,2),Vr(n,0,2,e),this.l(t)}za(t,n){return _1(this,t,n),this.embeddings}Aa(t,n,e){return g1(this,t,e,n),this.embeddings}m(){var t=new Oc;ha(t,"image_in"),ha(t,"norm_rect"),Jo(t,"embeddings_out");const n=new Pc;Jc(n,U7,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),ra(e,"IMAGE:image_in"),ra(e,"NORM_RECT:norm_rect"),ni(e,"EMBEDDINGS:embeddings_out"),e.o(n),Qc(t,e),this.g.attachProtoListener("embeddings_out",(r,i)=>{var s,c;r=Jb(r),this.embeddings={embeddings:O1(s=r,Zb,1).map(l=>{var u,d,p,M,x,R,U;const J={headIndex:null!==(u=null!==(d=Zc(l,3))&&void 0!==d?d:0)&&void 0!==u?u:-1,headName:null!==(p=null!==(M=Ps(da(l,4)))&&void 0!==M?M:"")&&void 0!==p?p:""};var ne=l.v;return void 0!==A_(ne,0|ne[kr],x7,kf(l,1))?(l=cl(l=ui(l,x7,kf(l,1),void 0),1,P1,P2()),J.floatEmbedding=l.slice()):(ne=new Uint8Array(0),J.quantizedEmbedding=null!==(x=null===(R=ui(l,Xb,kf(l,2),void 0))||void 0===R||null===(U=R.na())||void 0===U?void 0:U.h())&&void 0!==x?x:ne),J}),timestampMs:q7(null!==(c=da(s,2,void 0,void 0,$u))&&void 0!==c?c:O_)},gr(this,i)}),this.g.attachEmptyPacketListener("embeddings_out",r=>{gr(this,r)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Rc.cosineSimilarity=function(t,n){if(t.floatEmbedding&&n.floatEmbedding)t=bh(t.floatEmbedding,n.floatEmbedding);else{if(!t.quantizedEmbedding||!n.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=bh(ng(t.quantizedEmbedding),ng(n.quantizedEmbedding))}return t},Rc.prototype.embedForVideo=Rc.prototype.Aa,Rc.prototype.embed=Rc.prototype.za,Rc.prototype.setOptions=Rc.prototype.o,Rc.createFromModelPath=function(t,n){return si(Rc,t,{baseOptions:{modelAssetPath:n}})},Rc.createFromModelBuffer=function(t,n){return si(Rc,t,{baseOptions:{modelAssetBuffer:n}})},Rc.createFromOptions=function(t,n){return si(Rc,t,n)};var Bh=class{constructor(t,n,e){this.confidenceMasks=t,this.categoryMask=n,this.qualityScores=e}close(){var t,n;null!==(t=this.confidenceMasks)&&void 0!==t&&t.forEach(e=>{e.close()}),null===(n=this.categoryMask)||void 0===n||n.close()}};function Ag(t){t.categoryMask=void 0,t.confidenceMasks=void 0,t.qualityScores=void 0}function Ng(t){try{const n=new Bh(t.confidenceMasks,t.categoryMask,t.qualityScores);if(!t.j)return n;t.j(n)}finally{E4(t)}}Bh.prototype.close=Bh.prototype.close;var mc=class extends Ic{constructor(t,n){super(new p1(t,n),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new v4,this.A=new V7,Vr(this.h,0,3,this.A),Vr(t=this.h,0,1,n=new Ta)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){var n,e;return void 0!==t.displayNamesLocale?Ai(this.h,2,s3(t.displayNamesLocale)):"displayNamesLocale"in t&&Ai(this.h,2),"outputCategoryMask"in t&&(this.outputCategoryMask=null!==(n=t.outputCategoryMask)&&void 0!==n&&n),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=null===(e=t.outputConfidenceMasks)||void 0===e||e),super.l(t)}L(){!function Ig(t){var n,e,r;const i=(s=t.ca(),O1(s,fc,1)).filter(s=>{var c;return(null!==(c=Ps(da(s,1)))&&void 0!==c?c:"").includes("mediapipe.tasks.TensorsToSegmentationCalculator")});var s;if(t.u=[],i.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");1===i.length&&(null!==(n=null===(e=ui(i[0],Pc,7))||void 0===e||null===(r=e.j())||void 0===r?void 0:r.g())&&void 0!==n?n:new Map).forEach((s,c)=>{var l;t.u[Number(c)]=null!==(l=Ps(da(s,1)))&&void 0!==l?l:""})}(this)}segment(t,n,e){const r="function"!=typeof n?n:{};return this.j="function"==typeof n?n:e,Ag(this),_1(this,t,r),Ng(this)}La(t,n,e,r){const i="function"!=typeof e?e:{};return this.j="function"==typeof e?e:r,Ag(this),g1(this,t,i,n),Ng(this)}Da(){return this.u}m(){var t=new Oc;ha(t,"image_in"),ha(t,"norm_rect");const n=new Pc;Jc(n,K7,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),ra(e,"IMAGE:image_in"),ra(e,"NORM_RECT:norm_rect"),e.o(n),Qc(t,e),w4(this,t),this.outputConfidenceMasks&&(Jo(t,"confidence_masks"),ni(e,"CONFIDENCE_MASKS:confidence_masks"),yl(this,"confidence_masks"),this.g.aa("confidence_masks",(r,i)=>{this.confidenceMasks=r.map(s=>v0(this,s,!0,!this.j)),gr(this,i)}),this.g.attachEmptyPacketListener("confidence_masks",r=>{this.confidenceMasks=[],gr(this,r)})),this.outputCategoryMask&&(Jo(t,"category_mask"),ni(e,"CATEGORY_MASK:category_mask"),yl(this,"category_mask"),this.g.Z("category_mask",(r,i)=>{this.categoryMask=v0(this,r,!1,!this.j),gr(this,i)}),this.g.attachEmptyPacketListener("category_mask",r=>{this.categoryMask=void 0,gr(this,r)})),Jo(t,"quality_scores"),ni(e,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(r,i)=>{this.qualityScores=r,gr(this,i)}),this.g.attachEmptyPacketListener("quality_scores",r=>{this.categoryMask=void 0,gr(this,r)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};mc.prototype.getLabels=mc.prototype.Da,mc.prototype.segmentForVideo=mc.prototype.La,mc.prototype.segment=mc.prototype.segment,mc.prototype.setOptions=mc.prototype.o,mc.createFromModelPath=function(t,n){return si(mc,t,{baseOptions:{modelAssetPath:n}})},mc.createFromModelBuffer=function(t,n){return si(mc,t,{baseOptions:{modelAssetBuffer:n}})},mc.createFromOptions=function(t,n){return si(mc,t,n)};var jh=class{constructor(t,n,e){this.confidenceMasks=t,this.categoryMask=n,this.qualityScores=e}close(){var t,n;null!==(t=this.confidenceMasks)&&void 0!==t&&t.forEach(e=>{e.close()}),null===(n=this.categoryMask)||void 0===n||n.close()}};jh.prototype.close=jh.prototype.close;var Y1=class extends Ic{constructor(t,n){super(new p1(t,n),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new v4,this.u=new V7,Vr(this.h,0,3,this.u),Vr(t=this.h,0,1,n=new Ta)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){var n,e;return"outputCategoryMask"in t&&(this.outputCategoryMask=null!==(n=t.outputCategoryMask)&&void 0!==n&&n),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=null===(e=t.outputConfidenceMasks)||void 0===e||e),super.l(t)}segment(t,n,e,r){const i="function"!=typeof e?e:{};if(this.j="function"==typeof e?e:r,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,e=this.C+1,r=new J7,n.keypoint&&n.scribble)throw Error("Cannot provide both keypoint and scribble.");if(n.keypoint){var s=new vh;O2(s,3,o3(!0),!1),O2(s,1,r3(n.keypoint.x),0),O2(s,2,r3(n.keypoint.y),0),f3(r,1,yh,s)}else{if(!n.scribble)throw Error("Must provide either a keypoint or a scribble.");{const l=new Z7;for(s of n.scribble)O2(n=new vh,3,o3(!0),!1),O2(n,1,r3(s.x),0),O2(n,2,r3(s.y),0),h3(l,1,vh,n);f3(r,2,yh,l)}}this.g.addProtoToStream(r.g(),"mediapipe.tasks.vision.interactive_segmenter.proto.RegionOfInterest","roi_in",e),_1(this,t,i);e:{try{const l=new jh(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var c=l;break e}this.j(l)}finally{E4(this)}c=void 0}return c}m(){var t=new Oc;ha(t,"image_in"),ha(t,"roi_in"),ha(t,"norm_rect_in");const n=new Pc;Jc(n,K7,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"),ra(e,"IMAGE:image_in"),ra(e,"ROI:roi_in"),ra(e,"NORM_RECT:norm_rect_in"),e.o(n),Qc(t,e),w4(this,t),this.outputConfidenceMasks&&(Jo(t,"confidence_masks"),ni(e,"CONFIDENCE_MASKS:confidence_masks"),yl(this,"confidence_masks"),this.g.aa("confidence_masks",(r,i)=>{this.confidenceMasks=r.map(s=>v0(this,s,!0,!this.j)),gr(this,i)}),this.g.attachEmptyPacketListener("confidence_masks",r=>{this.confidenceMasks=[],gr(this,r)})),this.outputCategoryMask&&(Jo(t,"category_mask"),ni(e,"CATEGORY_MASK:category_mask"),yl(this,"category_mask"),this.g.Z("category_mask",(r,i)=>{this.categoryMask=v0(this,r,!1,!this.j),gr(this,i)}),this.g.attachEmptyPacketListener("category_mask",r=>{this.categoryMask=void 0,gr(this,r)})),Jo(t,"quality_scores"),ni(e,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(r,i)=>{this.qualityScores=r,gr(this,i)}),this.g.attachEmptyPacketListener("quality_scores",r=>{this.categoryMask=void 0,gr(this,r)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Y1.prototype.segment=Y1.prototype.segment,Y1.prototype.setOptions=Y1.prototype.o,Y1.createFromModelPath=function(t,n){return si(Y1,t,{baseOptions:{modelAssetPath:n}})},Y1.createFromModelBuffer=function(t,n){return si(Y1,t,{baseOptions:{modelAssetBuffer:n}})},Y1.createFromOptions=function(t,n){return si(Y1,t,n)};var e1=class extends Ic{constructor(t,n){super(new p1(t,n),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},Vr(t=this.h=new Mh,0,1,n=new Ta)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){return void 0!==t.displayNamesLocale?Ai(this.h,2,s3(t.displayNamesLocale)):"displayNamesLocale"in t&&Ai(this.h,2),void 0!==t.maxResults?c2(this.h,3,t.maxResults):"maxResults"in t&&Ai(this.h,3),void 0!==t.scoreThreshold?Or(this.h,4,t.scoreThreshold):"scoreThreshold"in t&&Ai(this.h,4),void 0!==t.categoryAllowlist?Qu(this.h,5,t.categoryAllowlist):"categoryAllowlist"in t&&Ai(this.h,5),void 0!==t.categoryDenylist?Qu(this.h,6,t.categoryDenylist):"categoryDenylist"in t&&Ai(this.h,6),this.l(t)}F(t,n){return this.j={detections:[]},_1(this,t,n),this.j}G(t,n,e){return this.j={detections:[]},g1(this,t,e,n),this.j}m(){var t=new Oc;ha(t,"input_frame_gpu"),ha(t,"norm_rect"),Jo(t,"detections");const n=new Pc;Jc(n,aL,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.ObjectDetectorGraph"),ra(e,"IMAGE:input_frame_gpu"),ra(e,"NORM_RECT:norm_rect"),ni(e,"DETECTIONS:detections"),e.o(n),Qc(t,e),this.g.attachProtoVectorListener("detections",(r,i)=>{for(const s of r)r=w7(s),this.j.detections.push(tg(r));gr(this,i)}),this.g.attachEmptyPacketListener("detections",r=>{gr(this,r)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};e1.prototype.detectForVideo=e1.prototype.G,e1.prototype.detect=e1.prototype.F,e1.prototype.setOptions=e1.prototype.o,e1.createFromModelPath=function(){var t=(0,o.Z)(function*(n,e){return si(e1,n,{baseOptions:{modelAssetPath:e}})});return function(n,e){return t.apply(this,arguments)}}(),e1.createFromModelBuffer=function(t,n){return si(e1,t,{baseOptions:{modelAssetBuffer:n}})},e1.createFromOptions=function(t,n){return si(e1,t,n)};var z4=class{constructor(t,n,e){this.landmarks=t,this.worldLandmarks=n,this.segmentationMasks=e}close(){var t;null===(t=this.segmentationMasks)||void 0===t||t.forEach(n=>{n.close()})}};function zg(t){t.landmarks=[],t.worldLandmarks=[],t.segmentationMasks=void 0}function Rg(t){try{const n=new z4(t.landmarks,t.worldLandmarks,t.segmentationMasks);if(!t.u)return n;t.u(n)}finally{E4(t)}}z4.prototype.close=z4.prototype.close;var Yc=class extends Ic{constructor(t,n){super(new p1(t,n),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,Vr(t=this.h=new Q7,0,1,n=new Ta),this.A=new H7,Vr(this.h,0,3,this.A),this.j=new F7,Vr(this.h,0,2,this.j),c2(this.j,4,1),Or(this.j,2,.5),Or(this.A,2,.5),Or(this.h,4,.5)}get baseOptions(){return ui(this.h,Ta,1)}set baseOptions(t){Vr(this.h,0,1,t)}o(t){var n,e,r,i,s;return"numPoses"in t&&c2(this.j,4,null!==(n=t.numPoses)&&void 0!==n?n:1),"minPoseDetectionConfidence"in t&&Or(this.j,2,null!==(e=t.minPoseDetectionConfidence)&&void 0!==e?e:.5),"minTrackingConfidence"in t&&Or(this.h,4,null!==(r=t.minTrackingConfidence)&&void 0!==r?r:.5),"minPosePresenceConfidence"in t&&Or(this.A,2,null!==(i=t.minPosePresenceConfidence)&&void 0!==i?i:.5),"outputSegmentationMasks"in t&&(this.outputSegmentationMasks=null!==(s=t.outputSegmentationMasks)&&void 0!==s&&s),this.l(t)}F(t,n,e){const r="function"!=typeof n?n:{};return this.u="function"==typeof n?n:e,zg(this),_1(this,t,r),Rg(this)}G(t,n,e,r){const i="function"!=typeof e?e:{};return this.u="function"==typeof e?e:r,zg(this),g1(this,t,i,n),Rg(this)}m(){var t=new Oc;ha(t,"image_in"),ha(t,"norm_rect"),Jo(t,"normalized_landmarks"),Jo(t,"world_landmarks"),Jo(t,"segmentation_masks");const n=new Pc;Jc(n,sL,this.h);const e=new fc;kc(e,2,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),ra(e,"IMAGE:image_in"),ra(e,"NORM_RECT:norm_rect"),ni(e,"NORM_LANDMARKS:normalized_landmarks"),ni(e,"WORLD_LANDMARKS:world_landmarks"),e.o(n),Qc(t,e),w4(this,t),this.g.attachProtoVectorListener("normalized_landmarks",(r,i)=>{this.landmarks=[];for(const s of r)r=S3(s),this.landmarks.push(T3(r));gr(this,i)}),this.g.attachEmptyPacketListener("normalized_landmarks",r=>{this.landmarks=[],gr(this,r)}),this.g.attachProtoVectorListener("world_landmarks",(r,i)=>{this.worldLandmarks=[];for(const s of r)r=d0(s),this.worldLandmarks.push(h0(r));gr(this,i)}),this.g.attachEmptyPacketListener("world_landmarks",r=>{this.worldLandmarks=[],gr(this,r)}),this.outputSegmentationMasks&&(ni(e,"SEGMENTATION_MASK:segmentation_masks"),yl(this,"segmentation_masks"),this.g.aa("segmentation_masks",(r,i)=>{this.segmentationMasks=r.map(s=>v0(this,s,!0,!this.u)),gr(this,i)}),this.g.attachEmptyPacketListener("segmentation_masks",r=>{this.segmentationMasks=[],gr(this,r)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Yc.prototype.detectForVideo=Yc.prototype.G,Yc.prototype.detect=Yc.prototype.F,Yc.prototype.setOptions=Yc.prototype.o,Yc.createFromModelPath=function(t,n){return si(Yc,t,{baseOptions:{modelAssetPath:n}})},Yc.createFromModelBuffer=function(t,n){return si(Yc,t,{baseOptions:{modelAssetBuffer:n}})},Yc.createFromOptions=function(t,n){return si(Yc,t,n)},Yc.POSE_CONNECTIONS=Pg;const R4="assets/models",Y4="scripts",yr="[FaceDetection]";let Fg=(()=>{class t{constructor(){this.mpDetector=null,this.engineMode="FALLBACK",this.slowFrameCount=0,this.isFirstDetection=!0,this.brightnessCanvas=null,this.frameCount=0,this.isIOS="ios"===g.dV.getPlatform(),this.isBrowser="web"===g.dV.getPlatform()}init(){var e=this;return(0,o.Z)(function*(){const r=g.dV.getPlatform(),i=navigator.hardwareConcurrency||0;if(console.log(`${yr} init \u2014 platform=${r} isIOS=${e.isIOS} isBrowser=${e.isBrowser} cores=${i}`),!e.isIOS&&i>0&&i<4)return console.warn(`${yr} FALLBACK: hardware fraco (${i} cores)`),"FALLBACK";try{const s=e.rejectAfter(13e3,"TIMEOUT_DOWNLOAD");return e.isIOS?(console.log(`${yr} caminho: MediaPipe (iOS)`),yield Promise.race([e.initMediaPipe(),s]),console.log(`${yr} MediaPipe OK`)):(console.log(`${yr} caminho: Face-API (Android/Browser)`),yield Promise.race([e.initFaceAPI(),s]),console.log(`${yr} Face-API OK`)),e.engineMode="AI",console.log(`${yr} engineMode = AI`),"AI"}catch(s){return console.error(`${yr} FALLBACK \u2014 motivo:`,s?.message,s),e.engineMode="FALLBACK","FALLBACK"}})()}initMediaPipe(){var e=this;return(0,o.Z)(function*(){console.log(`${yr} FilesetResolver.forVisionTasks('${Y4}')`);const r=yield m0.forVisionTasks(Y4);console.log(`${yr} FilesetResolver OK \u2192 criando FaceDetector...`),e.mpDetector=yield Ac.createFromOptions(r,{baseOptions:{modelAssetPath:`${Y4}/blaze_face_short_range.tflite`,delegate:"GPU"},runningMode:"VIDEO"}),console.log(`${yr} FaceDetector OK \u2014 runningMode=VIDEO delegate=GPU`)})()}initFaceAPI(){return(0,o.Z)(function*(){console.log(`${yr} tf.ready()...`),yield function L1(){return Ye.ready()}();const e=function B2(){return Ye.backendName}();console.log(`${yr} tf backend = "${e}" (cpu = lento mas funcional)`),console.log(`${yr} carregando tinyFaceDetector de: ${R4}`),yield li.tinyFaceDetector.loadFromUri(R4),console.log(`${yr} tinyFaceDetector carregado`),console.log(`${yr} carregando faceLandmark68TinyNet de: ${R4}`),yield li.faceLandmark68TinyNet.loadFromUri(R4),console.log(`${yr} faceLandmark68TinyNet carregado`)})()}detect(e){var r=this;return(0,o.Z)(function*(){if("AI"!==r.engineMode)return{accepted:!1,message:""};const i=performance.now();r.frameCount++;const s=r.frameCount;try{if(r.isIOS&&r.mpDetector){const c=r.mpDetector.detectForVideo(e,performance.now()).detections;return console.log(`${yr} [frame ${s}] MediaPipe detectForVideo \u2192 ${c.length} face(s)`),r.isFirstDetection=!1,r.validateMediaPipe(c,e,s)}{const c=new F6({inputSize:128,scoreThreshold:.3});let l;if(r.isFirstDetection)console.log(`${yr} [frame ${s}] Face-API: primeira detec\xe7\xe3o (timeout 13000ms)...`),l=yield Promise.race([q6(e,c).withFaceLandmarks(!0),r.rejectAfter(13e3,"TIMEOUT_GPU")]),r.isFirstDetection=!1,console.log(`${yr} [frame ${s}] primeira detec\xe7\xe3o OK \u2192 face=${!!l}`);else{l=yield q6(e,c).withFaceLandmarks(!0);const u=performance.now()-i;if(console.log(`${yr} [frame ${s}] detectSingleFace \u2192 face=${!!l} elapsed=${u.toFixed(0)}ms slowCount=${r.slowFrameCount}`),u>2e3){if(r.slowFrameCount++,console.warn(`${yr} frame lento! slowCount=${r.slowFrameCount}/3`),r.slowFrameCount>=3)throw new Error("SLOW_PERFORMANCE")}else r.slowFrameCount=0}return r.validateFaceAPI(l,e,s)}}catch(c){if(["TIMEOUT_GPU","SLOW_PERFORMANCE","BACKEND_CPU"].some(u=>c?.message?.includes(u))||c?.message?.includes("memory")||c?.message?.includes("gl"))throw console.error(`${yr} [frame ${s}] erro fatal \u2192 FALLBACK:`,c?.message),r.engineMode="FALLBACK",c;return console.warn(`${yr} [frame ${s}] erro n\xe3o-fatal:`,c?.message),{accepted:!1,message:"FACE_CAPTURE.NO_FACE"}}})()}detectFromBase64(e){var r=this;return(0,o.Z)(function*(){if("AI"!==r.engineMode)return{accepted:!1,message:""};r.frameCount++;const i=r.frameCount,s=yield r.base64ToImage(e),c=document.createElement("canvas");c.width=s.naturalWidth,c.height=s.naturalHeight,c.getContext("2d")?.drawImage(s,0,0),console.log(`${yr} [frame ${i}] detectFromBase64 \u2014 img=${s.naturalWidth}x${s.naturalHeight}`);try{if(r.isIOS&&r.mpDetector){const l=r.mpDetector.detect(s).detections;return console.log(`${yr} [frame ${i}] MediaPipe detect \u2192 ${l.length} face(s)`),r.validateMediaPipeImage(l,c,i)}{const l=new F6({inputSize:128,scoreThreshold:.3}),u=yield q6(c,l).withFaceLandmarks(!0);return console.log(`${yr} [frame ${i}] Face-API detectSingleFace (canvas) \u2192 face=${!!u}`),r.validateFaceAPICanvas(u,c,i)}}catch(l){if(["memory","gl"].some(d=>l?.message?.includes(d)))throw console.error(`${yr} [frame ${i}] erro fatal (base64):`,l?.message),r.engineMode="FALLBACK",l;return console.warn(`${yr} [frame ${i}] erro n\xe3o-fatal (base64):`,l?.message),{accepted:!1,message:"FACE_CAPTURE.NO_FACE"}}})()}base64ToImage(e){return new Promise((r,i)=>{const s=new Image;s.onload=()=>r(s),s.onerror=i,s.src=`data:image/jpeg;base64,${e}`})}validateMediaPipeImage(e,r,i){const s=r.width,c=r.height;if(!e?.length)return console.log(`${yr} [frame ${i}] MP: sem face`),di("FACE_CAPTURE.NO_FACE");if(e.length>1)return console.log(`${yr} [frame ${i}] MP: m\xfaltiplas faces (${e.length})`),di("FACE_CAPTURE.ONE_FACE_ONLY");const u=this.isFrontalMP(e[0].keypoints);if(console.log(`${yr} [frame ${i}] MP: frontal=${u}`),!u)return di("FACE_CAPTURE.FACE_FRONT");const d=this.getBrightnessFromCanvas(r);if(console.log(`${yr} [frame ${i}] MP: brightness=${d?.toFixed(1)}`),null!==d&&d<=60)return di("FACE_CAPTURE.TOO_DARK");const p=e[0].boundingBox;if(!p)return di("FACE_CAPTURE.NO_FACE");if(console.log(`${yr} [frame ${i}] MP: bb=${p.width.toFixed(0)}x${p.height.toFixed(0)} img=${s}x${c} ratioW=${(p.width/s).toFixed(2)} ratioH=${(p.height/c).toFixed(2)}`),p.height<.45*c||p.width<.45*s)return di("FACE_CAPTURE.COME_CLOSER");if(p.height>.57*c||p.width>.57*s)return di("FACE_CAPTURE.STEP_BACK");const M=this.isCentered(p.originX,p.originY,p.width,p.height,s,c,.13,.13);if(console.log(`${yr} [frame ${i}] MP: centered=${M}`),!M)return di("FACE_CAPTURE.CENTER_FACE");const x=Math.round(100*e[0].categories[0].score);return console.log(`${yr} [frame ${i}] MP: score=${x}% (m\xedn 89%)`),x<89?di("FACE_CAPTURE.UNCOVER_FACE"):(console.log(`${yr} [frame ${i}] \u2705 MP: ACEITO`),{accepted:!0,message:"FACE_CAPTURE.DONT_MOVE"})}validateFaceAPICanvas(e,r,i){if(!e)return console.log(`${yr} [frame ${i}] FAPI-canvas: sem face`),di("FACE_CAPTURE.NO_FACE");const s=this.isFrontalFaceAPI(e.landmarks);if(console.log(`${yr} [frame ${i}] FAPI-canvas: frontal=${s}`),!s)return di("FACE_CAPTURE.FACE_FRONT");const c=this.getBrightnessFromCanvas(r);if(console.log(`${yr} [frame ${i}] FAPI-canvas: brightness=${c?.toFixed(1)}`),null!==c&&c<=60)return di("FACE_CAPTURE.TOO_DARK");const l=e.detection.box,u=r.width,d=r.height;console.log(`${yr} [frame ${i}] FAPI-canvas: box=${l.width.toFixed(0)}x${l.height.toFixed(0)} img=${u}x${d} ratioW=${(l.width/u).toFixed(2)} ratioH=${(l.height/d).toFixed(2)} score=${Math.round(100*e.detection.score)}%`);const p=d>1.5*u,M=p?u:Math.min(u,d);if(l.height<.35*M||l.width<.35*M)return di("FACE_CAPTURE.COME_CLOSER");if(l.width>.95*M||l.height>.95*M)return di("FACE_CAPTURE.STEP_BACK");const R=this.isCentered(l.x,l.y,l.width,l.height,u,d,.1,p?.2:.13);if(console.log(`${yr} [frame ${i}] FAPI-canvas: centered=${R}`),!R)return di("FACE_CAPTURE.CENTER_FACE");const U=Math.round(100*e.detection.score);return U<60?(console.log(`${yr} [frame ${i}] FAPI-canvas: score baixo ${U}%`),di("FACE_CAPTURE.UNCOVER_FACE")):(console.log(`${yr} [frame ${i}] \u2705 FAPI-canvas: ACEITO`),{accepted:!0,message:"FACE_CAPTURE.DONT_MOVE"})}validateFaceAPI(e,r,i){if(!e)return console.log(`${yr} [frame ${i}] FAPI-video: sem face`),di("FACE_CAPTURE.NO_FACE");const s=this.isFrontalFaceAPI(e.landmarks);if(console.log(`${yr} [frame ${i}] FAPI-video: frontal=${s}`),!s)return di("FACE_CAPTURE.FACE_FRONT");const c=this.getBrightness(r);if(console.log(`${yr} [frame ${i}] FAPI-video: brightness=${c?.toFixed(1)}`),null!==c&&c<=60)return di("FACE_CAPTURE.TOO_DARK");const l=e.detection.box,{w:u,h:d}=this.getVideoDimensions(r);if(console.log(`${yr} [frame ${i}] FAPI-video: box=${l.width.toFixed(0)}x${l.height.toFixed(0)} video=${u}x${d} ratioW=${(l.width/u).toFixed(2)} ratioH=${(l.height/d).toFixed(2)} score=${Math.round(100*e.detection.score)}%`),l.height<.4*d||l.width<.4*u)return di("FACE_CAPTURE.COME_CLOSER");if(l.height>.65*d||l.width>.65*u)return di("FACE_CAPTURE.STEP_BACK");const p=this.isCentered(l.x,l.y,l.width,l.height,u,d,.1,.13);if(console.log(`${yr} [frame ${i}] FAPI-video: centered=${p}`),!p)return di("FACE_CAPTURE.CENTER_FACE");const M=Math.round(100*e.detection.score);return M<60?(console.log(`${yr} [frame ${i}] FAPI-video: score baixo ${M}%`),di("FACE_CAPTURE.UNCOVER_FACE")):(console.log(`${yr} [frame ${i}] \u2705 FAPI-video: ACEITO`),{accepted:!0,message:"FACE_CAPTURE.DONT_MOVE"})}validateMediaPipe(e,r,i){if(!e?.length)return console.log(`${yr} [frame ${i}] MP-video: sem face`),di("FACE_CAPTURE.NO_FACE");if(e.length>1)return console.log(`${yr} [frame ${i}] MP-video: m\xfaltiplas faces`),di("FACE_CAPTURE.ONE_FACE_ONLY");const c=this.isFrontalMP(e[0].keypoints);if(console.log(`${yr} [frame ${i}] MP-video: frontal=${c}`),!c)return di("FACE_CAPTURE.FACE_FRONT");const l=this.getBrightness(r);if(console.log(`${yr} [frame ${i}] MP-video: brightness=${l?.toFixed(1)}`),null!==l&&l<=60)return di("FACE_CAPTURE.TOO_DARK");const u=e[0].boundingBox;if(!u)return di("FACE_CAPTURE.NO_FACE");const{w:d,h:p}=this.getVideoDimensions(r);if(console.log(`${yr} [frame ${i}] MP-video: bb=${u.width.toFixed(0)}x${u.height.toFixed(0)} video=${d}x${p} ratioW=${(u.width/d).toFixed(2)} ratioH=${(u.height/p).toFixed(2)}`),u.height<.45*p||u.width<.45*d)return di("FACE_CAPTURE.COME_CLOSER");if(u.height>.57*p||u.width>.57*d)return di("FACE_CAPTURE.STEP_BACK");const M=this.isCentered(u.originX,u.originY,u.width,u.height,d,p,.13,.13);if(console.log(`${yr} [frame ${i}] MP-video: centered=${M}`),!M)return di("FACE_CAPTURE.CENTER_FACE");const x=Math.round(100*e[0].categories[0].score);return console.log(`${yr} [frame ${i}] MP-video: score=${x}% (m\xedn 89%)`),x<89?di("FACE_CAPTURE.UNCOVER_FACE"):(console.log(`${yr} [frame ${i}] \u2705 MP-video: ACEITO`),{accepted:!0,message:"FACE_CAPTURE.DONT_MOVE"})}isFrontalFaceAPI(e){const r=e.getNose()[3],i=e.getJawOutline(),s=Math.abs(r.x-i[0].x)/Math.abs(r.x-i[16].x);return console.log(`${yr} isFrontal: ratio=${s.toFixed(3)} (esperado 0.6\u20131.5)`),s>.6&&s<1.5}isFrontalMP(e){if(e.length<4)return!1;const r=[...e].sort((U,J)=>U.x-J.x),i=r.slice(0,2),s=r.slice(-2),c=i.reduce((U,J)=>U.y<J.y?U:J),l=i.reduce((U,J)=>U.y>J.y?U:J),u=s.reduce((U,J)=>U.y<J.y?U:J),d=s.reduce((U,J)=>U.y>J.y?U:J),p=Math.hypot(c.x-l.x,c.y-l.y),M=Math.hypot(u.x-d.x,u.y-d.y),x=Math.abs(p-M),R=.6*Math.min(p,M);return console.log(`${yr} isFrontalMP: dL=${p.toFixed(3)} dR=${M.toFixed(3)} diff=${x.toFixed(3)} threshold=${R.toFixed(3)}`),x<R}isCentered(e,r,i,s,c,l,u,d){const p=Math.min(c,l),M=Math.abs(e+i/2-c/2),x=Math.abs(r+s/2-l/2);return console.log(`${yr} isCentered: dx=${M.toFixed(1)} dy=${x.toFixed(1)} maxDx=${(p*u).toFixed(1)} maxDy=${(p*d).toFixed(1)}`),M<=p*u&&x<=p*d}getBrightness(e){this.brightnessCanvas||(this.brightnessCanvas=document.createElement("canvas"),this.brightnessCanvas.width=40,this.brightnessCanvas.height=40);const r=this.brightnessCanvas.getContext("2d",{willReadFrequently:!0});if(!r)return null;r.drawImage(e,0,0,40,40);const i=r.getImageData(0,0,40,40).data;let s=0;for(let c=0;c<i.length;c+=4)s+=.299*i[c]+.587*i[c+1]+.114*i[c+2];return s/(i.length/4)}getBrightnessFromCanvas(e){const r=document.createElement("canvas");r.width=40,r.height=40,r.getContext("2d")?.drawImage(e,0,0,40,40);const i=r.getContext("2d",{willReadFrequently:!0});if(!i)return null;const s=i.getImageData(0,0,40,40).data;let c=0;for(let l=0;l<s.length;l+=4)c+=.299*s[l]+.587*s[l+1]+.114*s[l+2];return c/(s.length/4)}getVideoDimensions(e){let r=e.videoWidth,i=e.videoHeight;if(/firefox/i.test(navigator.userAgent)){const s=r/i,c=e.offsetWidth/e.offsetHeight;s>c?r=i*c:s<c&&(i=r/c)}return{w:r,h:i}}rejectAfter(e,r){return new Promise((i,s)=>setTimeout(()=>s(new Error(r)),e))}destroy(){console.log(`${yr} destroy \u2014 frames processados: ${this.frameCount}`),this.mpDetector?.close(),this.mpDetector=null,this.engineMode="FALLBACK",this.isFirstDetection=!0,this.slowFrameCount=0,this.frameCount=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function di(t){return{accepted:!1,message:t}}const F4=["videoEl"];function pL(t,n){1&t&&(a.\u0275\u0275elementStart(0,"div",17),a.\u0275\u0275element(1,"ion-spinner",18),a.\u0275\u0275elementStart(2,"p"),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275elementEnd()()),2&t&&(a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(4,1,"FACE_CAPTURE.PREPARING_CAPTURE")))}function _L(t,n){1&t&&(a.\u0275\u0275elementStart(0,"div",19)(1,"h2",20),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"p",21),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd()()),2&t&&(a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,2,"FACE_CAPTURE.TITLE")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(6,4,"FACE_CAPTURE.SUBTITLE")))}function gL(t,n){if(1&t){const e=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",22)(1,"app-countdown-circle",23),a.\u0275\u0275listener("done",function(){a.\u0275\u0275restoreView(e);const i=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(i.onCountdownDone())}),a.\u0275\u0275elementEnd()()}if(2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("stepMs",e.isIOS?700:1e3)}}function vL(t,n){if(1&t&&(a.\u0275\u0275elementStart(0,"div",24)(1,"span",25),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd()()),2&t){const e=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275classProp("accepted",e.isAccepted)("refused",!e.isAccepted),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(e.statusMessage)}}function yL(t,n){1&t&&a.\u0275\u0275element(0,"img",26)}let Hg=(()=>{class t{constructor(e,r,i,s,c,l){this.modalCtrl=e,this.translate=r,this.faceDetection=i,this.cdr=s,this.renderer=c,this.ngZone=l,this.state="loading",this.statusMessage="",this.facingMode="user",this.isIOS="ios"===g.dV.getPlatform(),this.isBrowser="web"===g.dV.getPlatform(),this.containerHeight=window.innerHeight,this.stream=null,this.loopTimeout=null,this.mockInterval=null,this.unlistenMetadata=null}get isLoading(){return"loading"===this.state}get isCameraActive(){return"loading"!==this.state}get isAccepted(){return"accepted"===this.state}ngOnInit(){var e=this;return(0,o.Z)(function*(){if(e.setStatus("FACE_CAPTURE.LOADING_AI"),"FALLBACK"===(yield e.faceDetection.init()))return console.warn("[FaceCapture] modo FALLBACK \u2192 fechando modal"),void e.triggerNativeFallback();yield e.startBrowserCamera()})()}ngOnDestroy(){this.stopLoop(),this.stopBrowserCamera(),this.faceDetection.destroy(),this.mockInterval&&clearInterval(this.mockInterval),this.unlistenMetadata?.()}startBrowserCamera(){var e=this;return(0,o.Z)(function*(){e.setStatus("FACE_CAPTURE.STARTING_CAMERA");try{e.stream=yield navigator.mediaDevices.getUserMedia({video:{facingMode:e.facingMode,width:500,height:500},audio:!1}),setTimeout(()=>{const r=e.videoRef?.nativeElement;!r||!e.stream||(console.log("[FaceCapture] srcObject definido, aguardando loadedmetadata..."),e.renderer.setProperty(r,"srcObject",e.stream),e.unlistenMetadata=e.renderer.listen(r,"loadedmetadata",()=>{console.log("[FaceCapture] loadedmetadata OK \u2192 iniciando loop browser"),e.ngZone.run(()=>{e.state="active",e.setStatus("FACE_CAPTURE.NO_FACE")}),e.startDetectionLoopBrowser()}))},50)}catch(r){console.error("[FaceCapture] getUserMedia falhou:",r),e.triggerNativeFallback()}})()}stopBrowserCamera(){this.stream?.getTracks().forEach(e=>e.stop()),this.stream=null}startDetectionLoopBrowser(){var e=this;const r=this.isIOS?500:1e3;this.ngZone.runOutsideAngular(()=>{const i=function(){var s=(0,o.Z)(function*(){const c=e.videoRef?.nativeElement;c&&!c.paused&&4===c.readyState&&c.videoWidth?(yield e.runValidation(()=>e.faceDetection.detect(c)),e.loopTimeout=setTimeout(i,r)):e.loopTimeout=setTimeout(i,r)});return function(){return s.apply(this,arguments)}}();i()})}runValidation(e){var r=this;return(0,o.Z)(function*(){try{const i=yield e();console.log("[FaceCapture] resultado:",i.accepted?"\u2705 ACEITO":`\u274c ${i.message}`),r.ngZone.run(()=>{r.state=i.accepted?"accepted":"active",r.setStatus(i.message)})}catch(i){console.error("[FaceCapture] erro fatal na detec\xe7\xe3o \u2192 fallback:",i?.message),r.ngZone.run(()=>{r.stopLoop(),r.triggerNativeFallback()})}})()}stopLoop(){this.loopTimeout&&(clearTimeout(this.loopTimeout),this.loopTimeout=null)}triggerNativeFallback(){this.stopLoop(),this.stopBrowserCamera(),this.faceDetection.destroy(),this.modalCtrl.dismiss(null)}close(){this.stopLoop(),this.stopBrowserCamera(),this.modalCtrl.dismiss(null)}flipCamera(){var e=this;return(0,o.Z)(function*(){e.stopLoop(),e.stopBrowserCamera(),e.facingMode="user"===e.facingMode?"environment":"user",e.state="loading",e.mark(),yield e.startBrowserCamera()})()}onCountdownDone(){var e=this;return(0,o.Z)(function*(){e.stopLoop();const r=yield e.captureFrame();e.stopBrowserCamera(),e.modalCtrl.dismiss({base64:r??"",validationType:G.x.VALIDATED})})()}simulateRefused(){if("loading"===this.state)return;const e=["FACE_CAPTURE.NO_FACE","FACE_CAPTURE.FACE_FRONT","FACE_CAPTURE.COME_CLOSER","FACE_CAPTURE.CENTER_FACE","FACE_CAPTURE.TOO_DARK"];let r=0;this.mockInterval&&clearInterval(this.mockInterval),this.stopLoop(),this.mockInterval=setInterval(()=>{this.state="active",this.setStatus(e[r++%e.length])},1200)}simulateAccepted(){this.mockInterval&&clearInterval(this.mockInterval),this.stopLoop(),this.state="accepted",this.setStatus("FACE_CAPTURE.DONT_MOVE"),this.mark()}simulateFallback(){this.mockInterval&&clearInterval(this.mockInterval),this.stopLoop(),this.triggerNativeFallback()}captureFrame(){var e=this;return(0,o.Z)(function*(){const r=e.videoRef?.nativeElement;if(!r)return null;const i=e.renderer.createElement("canvas");return e.renderer.setProperty(i,"width",r.videoWidth||500),e.renderer.setProperty(i,"height",r.videoHeight||500),i.getContext("2d")?.drawImage(r,0,0),i.toDataURL("image/png").split(",")[1]})()}setStatus(e){this.statusMessage=e?this.translate.instant(e):"",this.mark()}mark(){this.cdr.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(a.\u0275\u0275directiveInject(m.ModalController),a.\u0275\u0275directiveInject(k.sK),a.\u0275\u0275directiveInject(Fg),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(a.Renderer2),a.\u0275\u0275directiveInject(a.NgZone))},t.\u0275cmp=a.\u0275\u0275defineComponent({type:t,selectors:[["app-face-capture"]],viewQuery:function(e,r){if(1&e&&a.\u0275\u0275viewQuery(F4,5),2&e){let i;a.\u0275\u0275queryRefresh(i=a.\u0275\u0275loadQuery())&&(r.videoRef=i.first)}},decls:17,vars:17,consts:[[1,"face-capture-content"],["class","fc-loading-overlay",4,"ngIf"],["class","fc-header",4,"ngIf"],[1,"fc-body"],[1,"fc-wrapper"],["aria-label","Virar c\xe2mera",1,"fc-btn","fc-btn-rotate",3,"click"],["name","sync-outline"],["aria-label","Fechar",1,"fc-btn","fc-btn-exit",3,"click"],["name","close-outline"],["class","fc-countdown-wrapper",4,"ngIf"],["class","fc-message-wrapper",4,"ngIf"],[1,"fc-video-area"],["autoplay","","playsinline","","muted","",1,"fc-video"],["videoEl",""],["class","fc-mask","src","assets/face-capture/mascara-foto.png","alt","Posicione o rosto",4,"ngIf"],["hidden",""],["detectionCanvas",""],[1,"fc-loading-overlay"],["name","crescent","color","primary"],[1,"fc-header"],[1,"fc-title"],[1,"fc-subtitle"],[1,"fc-countdown-wrapper"],[3,"stepMs","done"],[1,"fc-message-wrapper"],[1,"fc-message"],["src","assets/face-capture/mascara-foto.png","alt","Posicione o rosto",1,"fc-mask"]],template:function(e,r){1&e&&(a.\u0275\u0275elementStart(0,"div",0),a.\u0275\u0275template(1,pL,5,3,"div",1),a.\u0275\u0275template(2,_L,7,6,"div",2),a.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"div",5),a.\u0275\u0275listener("click",function(){return r.flipCamera()}),a.\u0275\u0275element(6,"ion-icon",6),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(7,"div",7),a.\u0275\u0275listener("click",function(){return r.close()}),a.\u0275\u0275element(8,"ion-icon",8),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(9,gL,2,1,"div",9),a.\u0275\u0275template(10,vL,3,5,"div",10),a.\u0275\u0275elementStart(11,"div",11),a.\u0275\u0275element(12,"video",12,13),a.\u0275\u0275template(14,yL,1,0,"img",14),a.\u0275\u0275element(15,"canvas",15,16),a.\u0275\u0275elementEnd()()()()),2&e&&(a.\u0275\u0275styleProp("height",r.containerHeight,"px"),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.isLoading),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!r.isLoading),a.\u0275\u0275advance(7),a.\u0275\u0275property("ngIf",r.isAccepted),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",r.isCameraActive),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("accepted",r.isAccepted)("refused",!r.isAccepted&&r.isCameraActive&&!r.isLoading)("loading",r.isLoading),a.\u0275\u0275advance(1),a.\u0275\u0275styleProp("visibility",r.isLoading?"hidden":"visible"),a.\u0275\u0275classProp("mirrored","user"===r.facingMode),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",r.isCameraActive))},dependencies:[b.NgIf,m.IonIcon,m.IonSpinner,y,k.X$],styles:[".face-capture-content[_ngcontent-%COMP%]{background:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column}.fc-loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:10;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#333;font-size:1rem;font-weight:600}.fc-header[_ngcontent-%COMP%]{flex-shrink:0;padding:24px 24px 12px;text-align:center}.fc-header[_ngcontent-%COMP%] .fc-title[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700;color:#222;margin:0 0 6px}.fc-header[_ngcontent-%COMP%] .fc-subtitle[_ngcontent-%COMP%]{font-size:.95rem;color:#555;margin:0;line-height:1.4}.fc-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;padding:0 24px 24px;gap:16px;overflow:hidden}.fc-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;max-width:420px;margin:0 auto}.fc-btn[_ngcontent-%COMP%]{position:absolute;top:1rem;background:#fff;border:3px solid #d7d7d7;border-radius:50%;box-shadow:0 5px 29px rgba(0,0,0,.5);z-index:5;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer}.fc-btn[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:1.1rem}.fc-btn.fc-btn-rotate[_ngcontent-%COMP%]{left:1rem;color:#6cb52d}.fc-btn.fc-btn-exit[_ngcontent-%COMP%]{right:1rem;color:#b52d2d;font-size:1.2rem}.fc-btn[_ngcontent-%COMP%]:active{filter:brightness(.85)}.fc-countdown-wrapper[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;pointer-events:none}.fc-message-wrapper[_ngcontent-%COMP%]{position:absolute;bottom:12px;left:0;right:0;z-index:3;display:flex;justify-content:center}.fc-message-wrapper[_ngcontent-%COMP%] .fc-message[_ngcontent-%COMP%]{background:rgba(255,255,255,.85);border:3px solid #d7d7d7;border-radius:6px;padding:4px 12px;font-size:.95rem;font-weight:700;text-align:center;box-shadow:0 4px 20px rgba(0,0,0,.5);transition:border-color .2s ease}.fc-message-wrapper[_ngcontent-%COMP%] .fc-message.accepted[_ngcontent-%COMP%]{border-color:#6cb52d}.fc-message-wrapper[_ngcontent-%COMP%] .fc-message.refused[_ngcontent-%COMP%]{border-color:#b52d2d}.fc-video-area[_ngcontent-%COMP%]{position:relative;width:100%;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:#000;transition:box-shadow .25s ease}.fc-video-area.accepted[_ngcontent-%COMP%]{box-shadow:0 0 0 8px #6cb52d}.fc-video-area.refused[_ngcontent-%COMP%]{box-shadow:0 0 0 8px #b52d2d}.fc-video-area.loading[_ngcontent-%COMP%]{box-shadow:none}.fc-video[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:10px}.fc-video.mirrored[_ngcontent-%COMP%]{transform:scaleX(-1)}.fc-mask[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;opacity:.6;border-radius:10px;pointer-events:none}.fc-dev-panel[_ngcontent-%COMP%]{margin-top:12px;padding:10px 16px;background:rgba(0,0,0,.06);border:1px dashed rgba(0,0,0,.2);border-radius:8px;width:100%;max-width:500px}.fc-dev-panel[_ngcontent-%COMP%] .fc-dev-label[_ngcontent-%COMP%]{color:rgba(0,0,0,.4);font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;margin:0 0 8px}.fc-dev-panel[_ngcontent-%COMP%] .fc-dev-btns[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.fc-dev-panel[_ngcontent-%COMP%] .fc-dev-btns[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;min-width:80px;padding:6px 10px;border-radius:6px;border:1px solid rgba(0,0,0,.15);background:rgba(0,0,0,.06);color:#333;font-size:.8rem;cursor:pointer;transition:background .15s}.fc-dev-panel[_ngcontent-%COMP%] .fc-dev-btns[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background:rgba(0,0,0,.15)}"],changeDetection:0}),t})()},96893:(Ge,$,f)=>{f.d($,{_:()=>F});var o=f(45449);function g(Y,I){if(1&Y){const D=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",4)(1,"ion-button",5),o.\u0275\u0275listener("click",function(W){o.\u0275\u0275restoreView(D);const de=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(de.openPickDateModal.emit(W))}),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275elementEnd()()}if(2&Y){const D=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("disabled",D.disabled),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(3,2,"TEXT_RECURRING")," ")}}function h(Y,I){1&Y&&(o.\u0275\u0275elementStart(0,"p",11),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&Y&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"TEXT_SELECTED_THE_EVENT")," "))}function m(Y,I){if(1&Y){const D=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-item",12)(1,"ion-label",13)(2,"span",14),o.\u0275\u0275text(3),o.\u0275\u0275pipe(4,"dateTimeFormat"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(5,"ion-button",15),o.\u0275\u0275listener("click",function(){const de=o.\u0275\u0275restoreView(D).index,K=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(K.removeDate(de))}),o.\u0275\u0275element(6,"ion-icon",16),o.\u0275\u0275elementEnd()()}if(2&Y){const D=I.$implicit,j=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind3(4,1,D.happensAt,j.startDate,j.endDate),"")}}function L(Y,I){if(1&Y&&(o.\u0275\u0275elementStart(0,"div",6),o.\u0275\u0275template(1,h,3,3,"p",7),o.\u0275\u0275elementStart(2,"div",8)(3,"ion-list",9),o.\u0275\u0275template(4,m,7,5,"ion-item",10),o.\u0275\u0275elementEnd()()()),2&Y){const D=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",D.showTitle),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngForOf",D.recurrenceDates)}}function v(Y,I){if(1&Y&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,g,4,4,"div",2),o.\u0275\u0275template(2,L,5,2,"div",3),o.\u0275\u0275elementContainerEnd()),2&Y){const D=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",D.showBtn),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",D.recurrenceDates.length>1)}}function b(Y,I){if(1&Y&&(o.\u0275\u0275elementStart(0,"ion-col",20),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"shortdate"),o.\u0275\u0275elementEnd()),2&Y){const D=I.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,D.happensAt)," ")}}function k(Y,I){if(1&Y&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",17)(2,"div",18)(3,"ion-row"),o.\u0275\u0275template(4,b,3,3,"ion-col",19),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementContainerEnd()),2&Y){const D=o.\u0275\u0275nextContext();o.\u0275\u0275advance(4),o.\u0275\u0275property("ngForOf",D.recurrenceDates)}}let F=(()=>{class Y{constructor(){this.recurrenceDates=[],this.showBtn=!0,this.showTitle=!0,this.showShortDateList=!1,this.disabled=!1,this.openPickDateModal=new o.EventEmitter}ngOnInit(){}removeDate(D){this.recurrenceDates.splice(D,1)}}return Y.\u0275fac=function(D){return new(D||Y)},Y.\u0275cmp=o.\u0275\u0275defineComponent({type:Y,selectors:[["app-list-recurrence-dates"]],inputs:{recurrenceDates:"recurrenceDates",startDate:"startDate",endDate:"endDate",showBtn:"showBtn",showTitle:"showTitle",showShortDateList:"showShortDateList",disabled:"disabled"},outputs:{openPickDateModal:"openPickDateModal"},decls:3,vars:2,consts:[[1,"recurrence_dates"],[4,"ngIf"],["class","recurrence_dates__btn",4,"ngIf"],["class","recurrence_dates__box",4,"ngIf"],[1,"recurrence_dates__btn"],["shape","round",3,"disabled","click"],[1,"recurrence_dates__box"],["class","ion-text-start",4,"ngIf"],[1,"recurrence_dates__box__list"],["lines","none",1,"recurrence_dates__box__list__ion_list"],["role","listitem","class","recurrence_dates__box__list__ion_list__item",4,"ngFor","ngForOf"],[1,"ion-text-start"],["role","listitem",1,"recurrence_dates__box__list__ion_list__item"],[1,"recurrence_dates__box__list__ion_list__item__label"],["tabindex","2"],["fill","clear","aria-label","delete","color","dark",3,"click"],["name","trash","slot","icon-only"],[1,"recurrence_dates__short"],[1,"list_recurrences_dates"],["class","recurrence","sizeLg","5","sizeMd","3","sizeSm","2","sizeXl","5","sizeXs","3",4,"ngFor","ngForOf"],["sizeLg","5","sizeMd","3","sizeSm","2","sizeXl","5","sizeXs","3",1,"recurrence"]],template:function(D,j){1&D&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275template(1,v,3,2,"ng-container",1),o.\u0275\u0275template(2,k,5,1,"ng-container",1),o.\u0275\u0275elementEnd()),2&D&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!j.showShortDateList),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",j.showShortDateList))},styles:[".recurrence_dates[_ngcontent-%COMP%]{text-align:center;padding-top:8px;width:100%}.recurrence_dates__btn[_ngcontent-%COMP%]{text-align:center}.recurrence_dates__btn[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{font-style:normal;font-weight:700;font-size:14px;line-height:20px;text-align:center;letter-spacing:-.5px;color:var(--ion-color-primary);--background: #fff;text-transform:capitalize;--box-shadow: none}.recurrence_dates__box[_ngcontent-%COMP%]{position:relative}.recurrence_dates__box__list[_ngcontent-%COMP%]{min-height:28vh;overflow:auto}.recurrence_dates__box__list__ion_list[_ngcontent-%COMP%]{background:transparent}.recurrence_dates__box__list__ion_list__item[_ngcontent-%COMP%]{--min-height: 32px;background:#ffffff;border-radius:5px;margin-top:8px}.recurrence_dates__box__list__ion_list__item__label[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:.9em;line-height:16px;text-align:center;letter-spacing:-.5px;color:#1e1e1e}.recurrence_dates__short[_ngcontent-%COMP%]{-webkit-margin-start:2em;margin-inline-start:2em}.recurrence_dates__short[_ngcontent-%COMP%] .list_recurrences_dates[_ngcontent-%COMP%]{margin-bottom:10px}.recurrence_dates__short[_ngcontent-%COMP%] .list_recurrences_dates[_ngcontent-%COMP%] .recurrence[_ngcontent-%COMP%]{margin:5px;text-align:center;font-size:.8em;background:#eeeeee;border-radius:5px;font-weight:300}"]}),Y})()},71609:(Ge,$,f)=>{f.d($,{X:()=>k});var o=f(45449),g=f(90603),h=f(35929),m=f(90944);function v(F,Y){1&F&&(o.\u0275\u0275elementStart(0,"div",14),o.\u0275\u0275element(1,"ion-icon",15),o.\u0275\u0275elementEnd())}function b(F,Y){if(1&F){const I=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",9),o.\u0275\u0275listener("click",function(){const W=o.\u0275\u0275restoreView(I).$implicit,de=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(de.selectEnvironment(W.type))}),o.\u0275\u0275elementStart(1,"div",10),o.\u0275\u0275element(2,"ion-icon",11),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",12)(4,"h3"),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"p"),o.\u0275\u0275text(7),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(8,v,2,0,"div",13),o.\u0275\u0275elementEnd()}if(2&F){const I=Y.$implicit,D=o.\u0275\u0275nextContext();o.\u0275\u0275classProp("active",I.type===D.currentEnvironment),o.\u0275\u0275advance(2),o.\u0275\u0275property("name",D.getEnvironmentIcon(I.type))("color",D.getEnvironmentColor(I.type)),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(I.label),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(I.description),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",I.type===D.currentEnvironment)}}let k=(()=>{class F{constructor(I,D){this.modalController=I,this.environmentSwitcher=D,this.environments=[]}ngOnInit(){const I=this.environmentSwitcher.getCurrentEnvironment();this.currentEnvironment=I.type,this.environments=[{type:"dev",label:"Desenvolvimento",description:"Ambiente local de desenvolvimento"},{type:"homol",label:"Homologa\xe7\xe3o",description:"Ambiente de testes e valida\xe7\xe3o"},{type:"prod",label:"Produ\xe7\xe3o",description:"Ambiente de produ\xe7\xe3o"}]}selectEnvironment(I){this.modalController.dismiss({selected:!0,environment:I})}close(){this.modalController.dismiss({selected:!1})}getEnvironmentColor(I){switch(I){case"dev":return"success";case"homol":return"warning";case"prod":return"danger";default:return"medium"}}getEnvironmentIcon(I){switch(I){case"dev":return"code-slash";case"homol":return"flask";case"prod":return"rocket";default:return"help"}}}return F.\u0275fac=function(I){return new(I||F)(o.\u0275\u0275directiveInject(g.ModalController),o.\u0275\u0275directiveInject(h.V))},F.\u0275cmp=o.\u0275\u0275defineComponent({type:F,selectors:[["app-environment-switcher-modal"]],decls:17,vars:1,consts:[["slot","end"],[3,"click"],["slot","icon-only","name","close"],[1,"environment-switcher-modal"],[1,"modal-content"],[1,"warning-message"],["name","warning","color","warning"],[1,"environments-list"],["class","environment-item",3,"active","click",4,"ngFor","ngForOf"],[1,"environment-item",3,"click"],[1,"environment-icon"],[3,"name","color"],[1,"environment-info"],["class","environment-check",4,"ngIf"],[1,"environment-check"],["name","checkmark-circle","color","primary"]],template:function(I,D){1&I&&(o.\u0275\u0275elementStart(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),o.\u0275\u0275text(3,"Selecionar Ambiente"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"ion-buttons",0)(5,"ion-button",1),o.\u0275\u0275listener("click",function(){return D.close()}),o.\u0275\u0275element(6,"ion-icon",2),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(7,"ion-content",3)(8,"div",4)(9,"div",5),o.\u0275\u0275element(10,"ion-icon",6),o.\u0275\u0275elementStart(11,"p")(12,"strong"),o.\u0275\u0275text(13,"Aten\xe7\xe3o:"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(14," Ao trocar de ambiente, todos os dados locais ser\xe3o apagados e voc\xea ser\xe1 desconectado. "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(15,"div",7),o.\u0275\u0275template(16,b,9,7,"div",8),o.\u0275\u0275elementEnd()()()),2&I&&(o.\u0275\u0275advance(16),o.\u0275\u0275property("ngForOf",D.environments))},dependencies:[m.NgForOf,m.NgIf,g.IonButton,g.IonButtons,g.IonContent,g.IonHeader,g.IonIcon,g.IonTitle,g.IonToolbar],styles:[".environment-switcher-modal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{padding:20px}.environment-switcher-modal[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:16px;background-color:rgba(255,193,7,.1);border-radius:8px;margin-bottom:24px}.environment-switcher-modal[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:24px;flex-shrink:0;margin-top:2px}.environment-switcher-modal[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.5;color:var(--ion-text-color)}.environment-switcher-modal[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%] p[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;margin-bottom:4px}.environment-switcher-modal[_ngcontent-%COMP%] .environments-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.environment-switcher-modal[_ngcontent-%COMP%] .environment-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:16px;background-color:var(--ion-color-light);border-radius:12px;cursor:pointer;transition:all .3s ease;border:2px solid transparent}.environment-switcher-modal[_ngcontent-%COMP%] .environment-item[_ngcontent-%COMP%]:hover{background-color:var(--ion-color-light-shade)}.environment-switcher-modal[_ngcontent-%COMP%] .environment-item.active[_ngcontent-%COMP%]{border-color:var(--ion-color-primary);background-color:rgba(var(--ion-color-primary-rgb),.1)}.environment-switcher-modal[_ngcontent-%COMP%] .environment-item[_ngcontent-%COMP%] .environment-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:32px}.environment-switcher-modal[_ngcontent-%COMP%] .environment-item[_ngcontent-%COMP%] .environment-info[_ngcontent-%COMP%]{flex:1}.environment-switcher-modal[_ngcontent-%COMP%] .environment-item[_ngcontent-%COMP%] .environment-info[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 4px;font-size:16px;font-weight:600;color:var(--ion-text-color)}.environment-switcher-modal[_ngcontent-%COMP%] .environment-item[_ngcontent-%COMP%] .environment-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:13px;color:var(--ion-color-medium)}.environment-switcher-modal[_ngcontent-%COMP%] .environment-item[_ngcontent-%COMP%] .environment-check[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:24px}"]}),F})()},64633:(Ge,$,f)=>{f.d($,{AL:()=>h,XA:()=>m.X,Oe:()=>k,le:()=>D,dP:()=>W,US:()=>de,_3:()=>xe,XS:()=>he,$9:()=>Le,Ol:()=>le,zl:()=>gn,sq:()=>mn});var o=f(45449),a=f(90603),g=f(99826);let h=(()=>{class Et{constructor(ft){this.modalCtrl=ft,this.ok=()=>{this.modalCtrl.dismiss()}}ngOnInit(){}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.ModalController))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-cant-create-event-modal"]],decls:21,vars:12,consts:[["mode","md",1,"ion-no-border"],[1,"ion-no-border"],["id","cancreate",1,"ion-text-center"],["tabindex","1"],[1,"ion-padding-horizontal"],[1,"modal-body"],["tabindex","2"],["tabindex","3"],[1,"modal-footer"],["slot","end","mode","ios","shape","round",1,"close",3,"click"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-title",2)(3,"span",3),o.\u0275\u0275text(4),o.\u0275\u0275pipe(5,"translate"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(6,"ion-content",4)(7,"div",5)(8,"ion-text")(9,"p",6),o.\u0275\u0275text(10),o.\u0275\u0275pipe(11,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"p",7),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"translate"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(15,"ion-footer",1)(16,"ion-toolbar",1)(17,"div",8)(18,"ion-button",9),o.\u0275\u0275listener("click",function(){return Tt.ok()}),o.\u0275\u0275text(19),o.\u0275\u0275pipe(20,"translate"),o.\u0275\u0275elementEnd()()()()),2&ft&&(o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(5,4,"MD_CAN_CREATE_EVENT_TITLE")),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(11,6,"MD_CAN_CREATE_EVENT_TEXT_DONT_HAVE_PERMISSION")),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(14,8,"MD_CAN_CREATE_EVENT_TEXT_ASK_COMPANY")),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(20,10,"MD_CAN_CREATE_EVENT_BTN_CLOSE")," "))},dependencies:[a.IonButton,a.IonContent,a.IonFooter,a.IonHeader,a.IonText,a.IonTitle,a.IonToolbar,g.X$],styles:["ion-header[_ngcontent-%COMP%]{background:#fff}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{--background: #fff}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{text-align:center;font-weight:500}ion-content[_ngcontent-%COMP%]{--background: #ffffff}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:relative;padding:1em .5em;overflow-y:scroll;font-size:.9em;text-align:center}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{margin-bottom:16px}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{font-weight:700}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{--background: #fff}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;padding:0 .6em}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.close[_ngcontent-%COMP%]{height:36px;background:transparent;--background: transparent;--box-shadow: none;--border-radius: 32px;--color-activated: #333;--color: #333;--background-activated: #ccc;--background-focused: #eee;--background-focused-opacity: violet}"]}),Et})();var m=f(71609),L=f(90944);function v(Et,cn){if(1&Et){const ft=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-button",9),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ft);const en=o.\u0275\u0275nextContext().$implicit;return o.\u0275\u0275resetView(en.action())}),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()}if(2&Et){const ft=o.\u0275\u0275nextContext().$implicit;let Tt,en,Gt,or;o.\u0275\u0275property("color",null!==(Tt=null==ft?null:ft.color)&&void 0!==Tt?Tt:"primary")("size",null!==(en=ft.size)&&void 0!==en?en:"small")("mode",null!==(Gt=null==ft?null:ft.mode)&&void 0!==Gt?Gt:"ios")("shape",null!==(or=ft.shape)&&void 0!==or?or:"round"),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ft.label," ")}}function b(Et,cn){if(1&Et&&(o.\u0275\u0275elementStart(0,"div",7),o.\u0275\u0275template(1,v,2,5,"ion-button",8),o.\u0275\u0275elementEnd()),2&Et){const ft=cn.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ft.enabled)}}let k=(()=>{class Et{constructor(){}ngOnInit(){}}return Et.\u0275fac=function(ft){return new(ft||Et)},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-error-code-zero"]],inputs:{props:"props"},decls:52,vars:40,consts:[[1,"ion-padding"],[1,"content"],[1,"content__http_erro_code_zero"],[1,"content__http_erro_code_zero__title"],[1,"content__http_erro_code_zero__list"],[1,"content__http_erro_code_zero__footer"],["class","content__http_erro_code_zero__footer__btn",4,"ngFor","ngForOf"],[1,"content__http_erro_code_zero__footer__btn"],[3,"color","size","mode","shape","click",4,"ngIf"],[3,"color","size","mode","shape","click"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"ion-content",0)(1,"div",1)(2,"div",2)(3,"div",3),o.\u0275\u0275text(4),o.\u0275\u0275pipe(5,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"div",4)(7,"ul")(8,"li")(9,"strong"),o.\u0275\u0275text(10),o.\u0275\u0275pipe(11,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"p"),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(15,"li")(16,"strong"),o.\u0275\u0275text(17),o.\u0275\u0275pipe(18,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(19,"p"),o.\u0275\u0275text(20),o.\u0275\u0275pipe(21,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(22,"li")(23,"strong"),o.\u0275\u0275text(24),o.\u0275\u0275pipe(25,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(26,"p"),o.\u0275\u0275text(27),o.\u0275\u0275pipe(28,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(29,"li")(30,"strong"),o.\u0275\u0275text(31),o.\u0275\u0275pipe(32,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(33,"p"),o.\u0275\u0275text(34),o.\u0275\u0275pipe(35,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(36,"li")(37,"strong"),o.\u0275\u0275text(38),o.\u0275\u0275pipe(39,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(40,"p"),o.\u0275\u0275text(41),o.\u0275\u0275pipe(42,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(43,"li")(44,"strong"),o.\u0275\u0275text(45),o.\u0275\u0275pipe(46,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(47,"p"),o.\u0275\u0275text(48),o.\u0275\u0275pipe(49,"translate"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(50,"div",5),o.\u0275\u0275template(51,b,2,1,"div",6),o.\u0275\u0275elementEnd()()()()),2&ft&&(o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(5,14,"MODAL_ERROR_CODE_ZERO.TITLE")," "),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(11,16,"MODAL_ERROR_CODE_ZERO.CASE_ONE")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(14,18,"MODAL_ERROR_CODE_ZERO.CASE_ONE_DESCRIPTION")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(18,20,"MODAL_ERROR_CODE_ZERO.CASE_TWO")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(21,22,"MODAL_ERROR_CODE_ZERO.CASE_TWO_DESCRIPTION")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(25,24,"MODAL_ERROR_CODE_ZERO.CASE_THREE")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(28,26,"MODAL_ERROR_CODE_ZERO.CASE_THREE_DESCRIPTION")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(32,28,"MODAL_ERROR_CODE_ZERO.CASE_FOUR")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(35,30,"MODAL_ERROR_CODE_ZERO.CASE_FOUR_DESCRIPTION")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(39,32,"MODAL_ERROR_CODE_ZERO.CASE_FIVE")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(42,34,"MODAL_ERROR_CODE_ZERO.CASE_FIVE_DESCRIPTION")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(46,36,"MODAL_ERROR_CODE_ZERO.CASE_SIX")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(49,38,"MODAL_ERROR_CODE_ZERO.CASE_SIX_DESCRIPTION")," "),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngForOf",null==Tt.props?null:Tt.props.actionsButton))},dependencies:[L.NgForOf,L.NgIf,a.IonButton,a.IonContent,g.X$],styles:["ion-content[_ngcontent-%COMP%]{--background: transparent !important;display:flex}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{background:transparent;height:100%;display:flex;flex-direction:column;justify-content:flex-end}ion-content[_ngcontent-%COMP%] .content__http_erro_code_zero[_ngcontent-%COMP%]{border-radius:1em;background:#fff;padding:1em}ion-content[_ngcontent-%COMP%] .content__http_erro_code_zero__title[_ngcontent-%COMP%]{display:flex;position:relative;text-align:center;flex-direction:column;justify-content:center;font-size:14px}ion-content[_ngcontent-%COMP%] .content__http_erro_code_zero__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:1em 0}ion-content[_ngcontent-%COMP%] .content__http_erro_code_zero__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:13px!important;padding:.3em}ion-content[_ngcontent-%COMP%] .content__http_erro_code_zero__list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px!important;margin:0;padding:0 0 0 1.1em}ion-content[_ngcontent-%COMP%] .content__http_erro_code_zero__footer[_ngcontent-%COMP%]{height:44px!important;display:flex;align-items:flex-end;justify-content:center}ion-content[_ngcontent-%COMP%] .content__http_erro_code_zero__footer__btn[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),Et})();var F=f(15861),Y=f(47898);const I=function(Et){return{"fix-ios":Et}};let D=(()=>{class Et{constructor(ft,Tt,en,Gt){var or=this;this.footerLegalModalService=ft,this.ngZoneService=Tt,this.platform=en,this.modalCtrl=Gt,this.ok=(0,F.Z)(function*(){yield or.modalCtrl.dismiss()}),this.isPlatformIOs=!!this.platform.is("ios")}ngOnInit(){var ft=this;this.footerLegalModalService.observable.subscribe(function(){var Tt=(0,F.Z)(function*(en){yield ft.ngZoneService.run(()=>{ft.show=en})});return function(en){return Tt.apply(this,arguments)}}())}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(Y.iE),o.\u0275\u0275directiveInject(Y.zf),o.\u0275\u0275directiveInject(a.Platform),o.\u0275\u0275directiveInject(a.ModalController))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-footer-legal-modal"]],decls:47,vars:36,consts:[["mode","md",1,"ion-no-border",2,"padding-top","0"],[1,"ion-no-border",2,"padding-top","0"],["id","terms"],[1,"ion-padding-horizontal"],["role","document","id","nextTag","tabindex","0",1,"modal-body",3,"ngClass"],[1,"topic",3,"innerHTML"],[1,"topic"],[1,"ion-no-border"],[1,"modal-footer"],["slot","end","mode","ios","shape","round",3,"click"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-title",2),o.\u0275\u0275text(3),o.\u0275\u0275pipe(4,"translate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(5,"ion-content",3)(6,"div",4),o.\u0275\u0275element(7,"h2",5),o.\u0275\u0275pipe(8,"translate"),o.\u0275\u0275elementStart(9,"div",6)(10,"ion-label"),o.\u0275\u0275text(11),o.\u0275\u0275pipe(12,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(13,"div",6)(14,"ion-label"),o.\u0275\u0275text(15),o.\u0275\u0275pipe(16,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(17,"div",6)(18,"ion-label"),o.\u0275\u0275text(19),o.\u0275\u0275pipe(20,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(21,"div",6)(22,"ion-label"),o.\u0275\u0275text(23),o.\u0275\u0275pipe(24,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(25,"div",6)(26,"ion-label"),o.\u0275\u0275text(27),o.\u0275\u0275pipe(28,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(29,"div",6)(30,"ion-label"),o.\u0275\u0275text(31),o.\u0275\u0275pipe(32,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(33,"div",6)(34,"ion-label"),o.\u0275\u0275text(35),o.\u0275\u0275pipe(36,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(37,"div",6)(38,"ion-label"),o.\u0275\u0275text(39),o.\u0275\u0275pipe(40,"translate"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(41,"ion-footer",7)(42,"ion-toolbar",7)(43,"div",8)(44,"ion-button",9),o.\u0275\u0275listener("click",function(){return Tt.ok()}),o.\u0275\u0275text(45),o.\u0275\u0275pipe(46,"translate"),o.\u0275\u0275elementEnd()()()()),2&ft&&(o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(4,12,"TEXT_TERMS_OF_USE_AND_PRIVACY"),""),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(34,I,Tt.isPlatformIOs)),o.\u0275\u0275advance(1),o.\u0275\u0275property("innerHTML",o.\u0275\u0275pipeBind1(8,14,"LEGAL_TERMS_TOPIC"),o.\u0275\u0275sanitizeHtml),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(12,16,"LEGAL_TERMS_TOPIC1")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(16,18,"LEGAL_TERMS_TOPIC2")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(20,20,"LEGAL_TERMS_TOPIC3")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(24,22,"LEGAL_TERMS_TOPIC4")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(28,24,"LEGAL_TERMS_TOPIC5")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(32,26,"LEGAL_TERMS_TOPIC6")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(36,28,"LEGAL_TERMS_TOPIC7"),""),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(40,30,"LEGAL_TERMS_TOPIC8"),""),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(46,32,"LEGAL_TERMS_BTN_CLOSE")," "))},dependencies:[L.NgClass,a.IonButton,a.IonContent,a.IonFooter,a.IonHeader,a.IonLabel,a.IonTitle,a.IonToolbar,g.X$],styles:["ion-header[_ngcontent-%COMP%]{background:#fff;height:2.7em!important}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{height:2.6em;--background: #fff}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{text-align:center;font-weight:500}ion-content[_ngcontent-%COMP%]{--background: #fff}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{overflow-y:scroll;text-align:justify;font-size:.9em;padding:16px}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1em;font-weight:500}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{text-align:justify;line-height:21.5px;margin-bottom:16px}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{font-weight:500}ion-footer[_ngcontent-%COMP%]{height:3em!important;padding-top:0;background:#fff}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{height:2.6em;padding-top:0;--background: #fff}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{height:2em;display:flex;align-items:center;justify-content:flex-end;padding:.6em}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{font-size:.9em;--color: #ccc;--background: #fff;height:25px}"]}),Et})();const j=function(Et){return{"fix-ios":Et}};let W=(()=>{class Et{constructor(ft,Tt,en){this.platform=ft,this.modalCtrl=Tt,this.translateService=en,this.reject=()=>{this.modalCtrl.dismiss({accept:!1})},this.accept=()=>{this.modalCtrl.dismiss({accept:!0})},this.isPlatformIOs=!!this.platform.is("ios")}ngOnInit(){this.translateService.get("TEXT_TERMS_OF_USE_AND_PRIVACY").subscribe(ft=>{this.termsOfUseAndPrivacyTranslation=ft})}ionViewDidEnter(){}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.Platform),o.\u0275\u0275directiveInject(a.ModalController),o.\u0275\u0275directiveInject(g.sK))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-legal-modal"]],inputs:{show:"show",onRejectCallback:"onRejectCallback",onSuccessCallback:"onSuccessCallback"},decls:49,vars:39,consts:[["mode","md",1,"ion-no-border","ion-no-margin"],[1,"ion-no-border","ion-no-margin",2,"padding-top","0"],["id","terms"],[1,"ion-padding-horizontal"],["role","document","id","nextTag","tabindex","0",1,"modal-body",3,"ngClass"],[1,"topic",3,"innerHTML"],[1,"topic"],[1,"ion-no-border","ion-no-margin"],[1,"modal-footer"],["mode","ios","shape","round",1,"reject",3,"click"],["mode","ios","shape","round",1,"accept",3,"click"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-title",2),o.\u0275\u0275text(3),o.\u0275\u0275pipe(4,"translate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(5,"ion-content",3)(6,"div",4),o.\u0275\u0275element(7,"h2",5),o.\u0275\u0275pipe(8,"translate"),o.\u0275\u0275elementStart(9,"div",6)(10,"ion-label"),o.\u0275\u0275text(11),o.\u0275\u0275pipe(12,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(13,"div",6)(14,"ion-label"),o.\u0275\u0275text(15),o.\u0275\u0275pipe(16,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(17,"div",6)(18,"ion-label"),o.\u0275\u0275text(19),o.\u0275\u0275pipe(20,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(21,"div",6)(22,"ion-label"),o.\u0275\u0275text(23),o.\u0275\u0275pipe(24,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(25,"div",6)(26,"ion-label"),o.\u0275\u0275text(27),o.\u0275\u0275pipe(28,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(29,"div",6)(30,"ion-label"),o.\u0275\u0275text(31),o.\u0275\u0275pipe(32,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(33,"div",6)(34,"ion-label"),o.\u0275\u0275text(35),o.\u0275\u0275pipe(36,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(37,"div",6)(38,"ion-label"),o.\u0275\u0275text(39),o.\u0275\u0275pipe(40,"translate"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(41,"ion-footer",7)(42,"div",8)(43,"ion-button",9),o.\u0275\u0275listener("click",function(){return Tt.reject()}),o.\u0275\u0275text(44),o.\u0275\u0275pipe(45,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(46,"ion-button",10),o.\u0275\u0275listener("click",function(){return Tt.accept()}),o.\u0275\u0275text(47),o.\u0275\u0275pipe(48,"translate"),o.\u0275\u0275elementEnd()()()),2&ft&&(o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(4,13,"TEXT_TERMS_OF_USE_AND_PRIVACY"),""),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(37,j,Tt.isPlatformIOs)),o.\u0275\u0275advance(1),o.\u0275\u0275property("innerHTML",o.\u0275\u0275pipeBind1(8,15,"LEGAL_TERMS_TOPIC"),o.\u0275\u0275sanitizeHtml),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(12,17,"LEGAL_TERMS_TOPIC1")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(16,19,"LEGAL_TERMS_TOPIC2")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(20,21,"LEGAL_TERMS_TOPIC3")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(24,23,"LEGAL_TERMS_TOPIC4")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(28,25,"LEGAL_TERMS_TOPIC5")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(32,27,"LEGAL_TERMS_TOPIC6")," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(36,29,"LEGAL_TERMS_TOPIC7"),""),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(40,31,"LEGAL_TERMS_TOPIC8"),""),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(45,33,"LEGAL_TERMS_BTN_REJECT")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(48,35,"LEGAL_TERMS_BTN_ACCEPT")," "))},dependencies:[L.NgClass,a.IonButton,a.IonContent,a.IonFooter,a.IonHeader,a.IonLabel,a.IonTitle,a.IonToolbar,g.X$],styles:["ion-header[_ngcontent-%COMP%]{background:#fff;height:2.7em!important;padding-top:0!important}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{height:2.6em;--background: #fff}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{text-align:center;font-weight:500}ion-content[_ngcontent-%COMP%]{--background: #fff}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{padding:16px;overflow-y:scroll;text-align:justify;font-size:.9em}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1em;font-weight:500}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{text-align:justify;line-height:21.5px;margin-bottom:16px}ion-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{font-weight:500}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-footer[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{background:#fff;display:flex;padding:.6em;justify-content:space-between;height:3em;align-items:center}ion-footer[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{font-size:.9em}ion-footer[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.accept[_ngcontent-%COMP%]{--color: #0ec254;background:transparent;--background: transparent;--box-shadow: none;border-radius:32px;height:36px;transition:background-color .1s ease-out;--background-activated: #eef7f2}ion-footer[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] ion-button.reject[_ngcontent-%COMP%]{--color: #c9ccce;background:transparent;--background: transparent;--box-shadow: none;border-radius:32px;height:36px;transition:background-color .1s ease-out;--background-activated: #b9bebc}"]}),Et})(),de=(()=>{class Et{constructor(ft){this.modalCtrl=ft}onCreateEvent(ft){var Tt=this;return(0,F.Z)(function*(){Tt.close("after")})()}createEventInstant(){this.close("instant")}closeModal(){var ft=this;return(0,F.Z)(function*(){ft.modalCtrl.dismiss(null,"cancel")})()}close(ft){var Tt=this;return(0,F.Z)(function*(){return yield(yield Tt.modalCtrl.getTop()).dismiss({typeEvent:ft})})()}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.ModalController))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-modal-event-instant"]],decls:16,vars:10,consts:[["tappable","",1,"ion-no-padding","popover-instant-component",3,"click"],[1,"content-modal-event-instant"],[1,"popover-modal-event-instant"],["lines","none"],["role","button",1,"ion-no-padding","ion-text-wrap",3,"button","detail","click"],["aria-hidden","true","color","primary","slot","start","name","calendar"],["color","dark"],[1,"text"],["aria-hidden","true","color","primary","slot","start","name","flash"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"ion-content",0),o.\u0275\u0275listener("click",function(){return Tt.closeModal()}),o.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"ion-list",3)(4,"ion-item",4),o.\u0275\u0275listener("click",function(Gt){return Tt.onCreateEvent(Gt)}),o.\u0275\u0275element(5,"ion-icon",5),o.\u0275\u0275elementStart(6,"ion-text",6)(7,"span",7),o.\u0275\u0275text(8),o.\u0275\u0275pipe(9,"translate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(10,"ion-item",4),o.\u0275\u0275listener("click",function(){return Tt.createEventInstant()}),o.\u0275\u0275element(11,"ion-icon",8),o.\u0275\u0275elementStart(12,"ion-text",6)(13,"span",7),o.\u0275\u0275text(14),o.\u0275\u0275pipe(15,"translate"),o.\u0275\u0275elementEnd()()()()()()()),2&ft&&(o.\u0275\u0275advance(4),o.\u0275\u0275property("button",!0)("detail",!1),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(9,6,"MODAL_EVENT_INSTANT_EVENT_FOR_LATER")),o.\u0275\u0275advance(2),o.\u0275\u0275property("button",!0)("detail",!1),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(15,8,"MODAL_EVENT_INSTANT_EVENT_INSTANT")))},dependencies:[a.IonContent,a.IonIcon,a.IonItem,a.IonList,a.IonText,g.X$],styles:["ion-content.ios[_ngcontent-%COMP%]{--offset-top: 0px !important}ion-content[_ngcontent-%COMP%]{--background: transparent}.popover-instant-component[_ngcontent-%COMP%] .content-modal-event-instant[_ngcontent-%COMP%]{margin:6em auto;min-width:50%;max-width:90%;height:auto;font-size:1rem}.popover-instant-component[_ngcontent-%COMP%] .popover-modal-event-instant[_ngcontent-%COMP%]{border:solid 1px var(--ion-color-background-tint);display:flex;flex-direction:column;font-size:1em;background:#fff;border-radius:16px;padding:.1rem 1em}.popover-instant-component[_ngcontent-%COMP%] .popover-modal-event-instant[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%]{padding:0}.popover-instant-component[_ngcontent-%COMP%] .popover-modal-event-instant[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{--padding-end: 0;--min-height: 32px;padding:.2em 0}.popover-instant-component[_ngcontent-%COMP%] .popover-modal-event-instant[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:1.2em;margin:0 8px 0 0}.popover-instant-component[_ngcontent-%COMP%] .popover-modal-event-instant[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1rem}.popover-instant-component[_ngcontent-%COMP%] .popover-modal-event-instant[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]::part(native) .item-inner[_ngcontent-%COMP%]{padding:0;--padding-end: 0}"]}),Et})();var K=f(24006),ee=f(55832),De=f(70079),Te=f(37792);function ce(Et,cn){if(1&Et&&(o.\u0275\u0275elementStart(0,"div",40),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Et){const ft=cn.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ft," ")}}function oe(Et,cn){if(1&Et&&(o.\u0275\u0275elementStart(0,"div",38),o.\u0275\u0275template(1,ce,2,1,"div",39),o.\u0275\u0275elementEnd()),2&Et){const ft=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",ft.getInputErrors("phoneNumber"))}}const te=function(){return{mask:"+55 00 00000-0000",len:17}};function ge(Et,cn){if(1&Et){const ft=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"form",27)(1,"ion-row")(2,"ion-col",28)(3,"ion-item",29),o.\u0275\u0275element(4,"ion-input",30),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(5,"ion-col",31)(6,"ion-item",29),o.\u0275\u0275element(7,"ion-input",32),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(8,"ion-col",33)(9,"ion-item",29)(10,"ion-input",34),o.\u0275\u0275listener("ionFocus",function(en){o.\u0275\u0275restoreView(ft);const Gt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Gt.onPhoneNumberFocus(en))})("ionBlur",function(en){o.\u0275\u0275restoreView(ft);const Gt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Gt.onPhoneNumberBlur(en))})("input",function(en){o.\u0275\u0275restoreView(ft);const Gt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Gt.onPhoneNumberChange(en))}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(11,oe,2,1,"div",35),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"ion-col",36)(13,"ion-item",29),o.\u0275\u0275element(14,"ion-textarea",37),o.\u0275\u0275pipe(15,"translate"),o.\u0275\u0275elementEnd()()()()}if(2&Et){const ft=o.\u0275\u0275nextContext();o.\u0275\u0275property("formGroup",ft.form),o.\u0275\u0275advance(3),o.\u0275\u0275property("className","input-holder"),o.\u0275\u0275advance(1),o.\u0275\u0275property("disabled",!0),o.\u0275\u0275advance(2),o.\u0275\u0275property("className","input-holder"),o.\u0275\u0275advance(3),o.\u0275\u0275property("className","input-holder"),o.\u0275\u0275advance(1),o.\u0275\u0275property("required",!0)("value",ft.phoneNumber)("brmasker",o.\u0275\u0275pureFunction0(14,te)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ft.thereWasErrorsAtInput("phoneNumber")),o.\u0275\u0275advance(2),o.\u0275\u0275property("className","input-holder"),o.\u0275\u0275advance(1),o.\u0275\u0275property("required",!0)("placeholder",o.\u0275\u0275pipeBind1(15,12,"MD_BOOKEI_FORM_TEXT_AREA"))}}let xe=(()=>{class Et{constructor(ft,Tt,en,Gt,or,Cr,wr,dr){this.modalCtrl=ft,this.createEventService=Tt,this.fb=en,this.loaderService=Gt,this.bookeiService=or,this.commonService=Cr,this.notificatorService=wr,this.translateConfigService=dr,this.phoneNumber="",this.defaultErrors=[],this.errors=this.defaultErrors,this.subjectDefault="Contato para contratar o Bookei via Visitantes.Online",this.email="",this.onClose=()=>{this.modalCtrl.dismiss()},this.onPhoneNumberChange=er=>{const{value:Jn}=er.target;this.phoneNumber=Jn},this.onPhoneNumberFocus=er=>{this.phoneNumber.trim()||(this.phoneNumber="+55")},this.onPhoneNumberBlur=er=>{"+55"===this.phoneNumber.trim()&&(this.phoneNumber="")},this.thereWasErrors=er=>{let Jn=!1;return er.forEach(Er=>{Er.errors.length&&(Jn=!0)}),Jn},this.getInputErrors=er=>{const Jn=this.errors.find(Er=>Er.input===er);return Jn?Jn.errors:[]},this.thereWasErrorsAtInput=er=>!!this.getInputErrors(er).length,this.handeErrorPostContactUs=er=>{},this.handeSuccessGetAccount=er=>{this.profile=er,this.initForm(),this.setForm(this.profile),this.loaderService.hide()},this.handeErrorGetAccount=er=>{this.loaderService.hide()},this.onSend=()=>{if(!this.form.valid){const Jn={title:this.translateConfigService.translate("MD_BOOKEI_FORM_TOAST_FORM_INVALID_TITLE"),message:this.translateConfigService.translate("MD_BOOKEI_FORM_TOAST_FORM_INVALID_MESSAGE"),type:"error",timeout:5e3};return void this.notificatorService.notify(Jn)}const er=this.validateInputs();if(!this.thereWasErrors(er)){const Jn=this.commonService.clearString(this.form.value.email),Er=this.commonService.clearString(this.phoneNumber),lo={...this.form.value,email:Jn,phone:Er};return this.errors=[],this.bookeiService.selectService("contactUs",lo).then(Gr=>{this.handeSuccessPostContacUs(Gr)}).catch(Gr=>this.handeErrorPostContactUs(Gr))}{this.errors=er;const Jn={title:this.translateConfigService.translate("MD_BOOKEI_FORM_TOAST_FIELD_TITLE"),message:this.translateConfigService.translate("MD_BOOKEI_FORM_TOAST_FIELD_MESSAGE"),type:"error",timeout:1e3};this.notificatorService.notify(Jn)}},this.validateInputs=()=>{const er=[],Jn=this.commonService.clearString(this.email),Er=this.commonService.clearString(this.phoneNumber);return er.push(this.validatePhoneNumberField({phoneNumber:Er})),er.push(this.validateEmailField({email:Jn})),er},this.validateEmailField=er=>{const Jn={input:"email",errors:[]};return er.email&&er.email.length&&(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(er.email).toLowerCase())||Jn.errors.push(this.translateConfigService.translate("MD_BOOKEI_FORM_TEXT_EMAIL_INVALID"))),Jn},this.validatePhoneNumberField=er=>{const Jn={input:"phoneNumber",errors:[]};return er.phoneNumber?er.phoneNumber&&er.phoneNumber.length&&3!==(lo=er.phoneNumber).length&&lo.length<13&&Jn.errors.push(this.translateConfigService.translate("MD_BOOKEI_FORM_TEXT_PHONE_INVALID")):Jn.errors.push(this.translateConfigService.translate("MD_BOOKEI_FORM_TEXT_PHONE_EMPTY")),Jn;var lo},this.validateMessageInput=er=>{const Jn={input:"message",errors:[]};return(!er.message||er.message.length<1)&&Jn.errors.push(this.translateConfigService.translate("MD_BOOKEI_FORM_TEXT_MESSAGE_EMPY")),Jn}}ngOnInit(){this.getProfileCurrent()}initForm(){this.form=this.fb.group({name:["",[K.Validators.required]],email:["",[K.Validators.required,K.Validators.email]],message:["",[K.Validators.required]],phone:["",[K.Validators.required]],subject:this.translateConfigService.translate("MD_BOOKEI_FORM_TEXT_SUBJECT")})}submit(){console.log("Submit",this.form.value),this.onSend()}handeSuccessPostContacUs(ft){this.modalCtrl.dismiss(),this.form.reset();const Tt={title:this.translateConfigService.translate("MD_BOOKEI_FORM_TOAST_SENDMESSAGE_TITLE"),message:this.translateConfigService.translate("MD_BOOKEI_FORM_TOAST_SENDMESSAGE_MESSAGE"),type:"success"};this.notificatorService.notify(Tt)}getProfileCurrent(){this.loaderService.show(this.translateConfigService.translate("MD_BOOKEI_FORM_LOADING_PROFILE"),2e3),this.createEventService.getAccount().then(this.handeSuccessGetAccount).catch(this.handeErrorGetAccount).finally()}setForm(ft){this.form.patchValue({name:ft.fullName,email:ft.email})}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.ModalController),o.\u0275\u0275directiveInject(Y.jc),o.\u0275\u0275directiveInject(K.UntypedFormBuilder),o.\u0275\u0275directiveInject(Y.D1),o.\u0275\u0275directiveInject(ee.l),o.\u0275\u0275directiveInject(Y.v_),o.\u0275\u0275directiveInject(Y.V6),o.\u0275\u0275directiveInject(Y.wK))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-modal-bookei"]],decls:60,vars:28,consts:[[1,"ion-no-border"],[1,"button-holder","modal-bookei","ion-padding-bottom"],[1,"button-holder-back",3,"name","action"],[1,"content-modal-bookei"],[1,"modal-container-modal-bookei"],[1,"line-modal-bookei"],[1,"modal-body"],[1,"container-modal-bookei"],[1,"title"],[1,"description-bookei","P1"],[1,"description-bookei","P2"],[1,"description-bookei","P3"],[1,"description-bookei","P4"],["fixed",""],["size","12"],[1,"topic-title-modal-bookei","mt-4","col"],[1,"item-holder-modal-bookei"],[1,"item-icon"],["color","primary","slot","start","name","mail"],["href","mailto:comercial@bookei.com.br","target","_blank","rel","noopener noreferrer",1,"link","ion-padding-horizontal"],[1,"item-text"],["color","primary","slot","start","name","globe"],["href","https://www.bookei.com.br","target","_blank","rel","noopener noreferrer",1,"link","ion-padding-horizontal"],[3,"formGroup",4,"ngIf"],[1,"ion-justify-content-center","ion-align-items-center"],[1,"button-holder","modal-bookei"],[3,"name","action"],[3,"formGroup"],["size","12",1,"ion-no-padding","ion-no-margin","name"],["lines","none",3,"className"],["type","text","inputmode","text","formControlName","name","readonly","",1,"disabled",3,"disabled"],["size","12",1,"ion-no-padding","ion-no-margin","mail"],["type","email","formControlName","email","inputmode","mail"],["size","12",1,"ion-no-padding","ion-no-margin","tel"],["type","tel","id","phoneNumber","name","phoneNumber","maxlength","17","placeholder","+55 00 00000-0000","formControlName","phone","inputmode","tel",3,"required","value","brmasker","ionFocus","ionBlur","input"],["class","errors",4,"ngIf"],["size","12",1,"ion-no-padding","ion-no-margin","mensagem"],["id","message","name","message","type","text","inputmode","text","formControlName","message",1,"-modal-bookei",3,"required","placeholder"],[1,"errors"],["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title")(3,"div",1)(4,"app-button-custom-component",2),o.\u0275\u0275listener("action",function(){return Tt.onClose()}),o.\u0275\u0275pipe(5,"translate"),o.\u0275\u0275elementEnd()()()()(),o.\u0275\u0275elementStart(6,"ion-content")(7,"div",3)(8,"div",4),o.\u0275\u0275element(9,"div",5),o.\u0275\u0275elementStart(10,"div",6)(11,"div",7)(12,"div",8),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(15,"div",9),o.\u0275\u0275text(16),o.\u0275\u0275pipe(17,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(18,"div",10),o.\u0275\u0275text(19),o.\u0275\u0275pipe(20,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(21,"div",11),o.\u0275\u0275text(22),o.\u0275\u0275pipe(23,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(24,"div",12),o.\u0275\u0275text(25),o.\u0275\u0275pipe(26,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(27,"ion-grid",13)(28,"ion-row")(29,"ion-col",14)(30,"div",15)(31,"span"),o.\u0275\u0275text(32),o.\u0275\u0275pipe(33,"translate"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(34,"ion-row")(35,"ion-col",14)(36,"div",16)(37,"span",17),o.\u0275\u0275element(38,"ion-icon",18),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(39,"a",19)(40,"span",20),o.\u0275\u0275text(41,"comercial@bookei.com.br"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(42,"div",16)(43,"span",17),o.\u0275\u0275element(44,"ion-icon",21),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(45,"a",22)(46,"span",20),o.\u0275\u0275text(47,"https://www.bookei.com.br"),o.\u0275\u0275elementEnd()()()()(),o.\u0275\u0275elementStart(48,"ion-row")(49,"ion-col",14)(50,"div",15)(51,"span"),o.\u0275\u0275text(52),o.\u0275\u0275pipe(53,"translate"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275template(54,ge,16,15,"form",23),o.\u0275\u0275elementStart(55,"ion-row",24)(56,"ion-col",14)(57,"div",25)(58,"app-button-custom-component",26),o.\u0275\u0275listener("action",function(){return Tt.submit()}),o.\u0275\u0275pipe(59,"translate"),o.\u0275\u0275elementEnd()()()()()()()()()),2&ft&&(o.\u0275\u0275advance(4),o.\u0275\u0275property("name",o.\u0275\u0275pipeBind1(5,10,"MD_BOOKEI_FORM_BTN_CLOSE")),o.\u0275\u0275advance(9),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(14,12,"MD_BOOKEI_FORM_TEXT_TITLE")),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(17,14,"MD_BOOKEI_FORM_TEXT_DESCRIPTIONP1")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(20,16,"MD_BOOKEI_FORM_TEXT_DESCRIPTIONP2")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(23,18,"MD_BOOKEI_FORM_TEXT_DESCRIPTIONP3")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(26,20,"MD_BOOKEI_FORM_TEXT_DESCRIPTIONP4")," "),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(33,22,"MD_BOOKEI_FORM_TEXT_ATTENDANCE")),o.\u0275\u0275advance(20),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(53,24,"MD_BOOKEI_FORM_TEXT_CONTACT"),""),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",Tt.profile),o.\u0275\u0275advance(4),o.\u0275\u0275property("name",o.\u0275\u0275pipeBind1(59,26,"MD_BOOKEI_FORM_BTN_SEND")))},dependencies:[L.NgForOf,L.NgIf,a.IonCol,a.IonContent,a.IonGrid,a.IonHeader,a.IonIcon,a.IonInput,a.IonItem,a.IonRow,a.IonTextarea,a.IonTitle,a.IonToolbar,a.TextValueAccessor,K.\u0275NgNoValidate,K.NgControlStatus,K.NgControlStatusGroup,K.RequiredValidator,K.MaxLengthValidator,K.FormGroupDirective,K.FormControlName,De.bS,Te.H,g.X$],styles:["ion-header ion-toolbar{--background: #fff}.line-modal-bookei{height:1px;background:#e6e6e6;width:90%;margin:0 auto}.container-modal-bookei{padding:18px}.container-modal-bookei .title{font-weight:600;line-height:30px;font-size:1.2em;padding-bottom:12px;font-size:initial!important}.container-modal-bookei .description-bookei{margin-top:.3rem;line-height:1.15rem;font-size:.925rem}.button-holder.modal-bookei{display:flex;align-items:center;justify-content:center;padding-bottom:18px;background:#fff;width:100%}.item-holder-modal-bookei{padding:5px;display:flex;align-items:center}.item-holder-modal-bookei .item-icon{height:30px;width:30px;border:solid 1px var(--ion-color-primary);border-radius:50%;display:flex;align-items:center;justify-content:center}.item-holder-modal-bookei .item-icon .link{background:red}.item-holder-modal-bookei a{text-decoration:none!important;color:#000;font-size:600}.topic-title-modal-bookei{font-weight:600;line-height:30px;font-size:1.1rem}ion-textarea.-modal-bookei{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #eee;border-radius:20px;color:#656768;width:100%;padding:0 16px 6px!important;margin-top:18px}.input-holder>.disabled input[type=text]{background-color:#e6e6e6!important;color:#656768!important;opacity:1!important}.content-modal-bookei{height:100vh;background-color:#fff}.content-modal-bookei .modal-container-modal-bookei{margin-top:0;transition:margin-top 1s ease;background-color:#fff;height:100%;overflow:scroll}.content-modal-bookei .modal-container-modal-bookei .modal-title{display:flex;padding-top:1em;justify-content:center}.content-modal-bookei .modal-container-modal-bookei .modal-title .button-holder{justify-content:center;margin:0}.content-modal-bookei .modal-container-modal-bookei .input-holder{margin-top:0!important;width:100%}.content-modal-bookei ion-input:part(native-input){margin:0!important}.errors{width:80%;margin:12px 10% 0;color:#f0181b;text-align:center}\n"],encapsulation:2}),Et})(),he=(()=>{class Et{constructor(ft){this.modalCtrl=ft}ngOnInit(){}confirm(){this.modalCtrl.dismiss(null,"confirm")}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.ModalController))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-not-exist-email"]],decls:13,vars:7,consts:[[1,"ion-padding","custom-padding"],["tabindex","0","role","alertdialog",1,"content"],[1,"content-modal"],[1,"icon"],["aria-label","","alt","icon","src","./assets/icon/icon-mail-error.svg"],["tabindex","1",1,"text"],["tabindex","2"],[1,"btn"],["tabindex","3","mode","ios","shape","round",3,"strong","click"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"ion-content",0)(1,"div",1)(2,"div",2)(3,"div",3),o.\u0275\u0275element(4,"ion-icon",4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"div",5)(6,"ion-text",6),o.\u0275\u0275text(7),o.\u0275\u0275pipe(8,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"div",7)(10,"ion-button",8),o.\u0275\u0275listener("click",function(){return Tt.confirm()}),o.\u0275\u0275text(11),o.\u0275\u0275pipe(12,"translate"),o.\u0275\u0275elementEnd()()()()()),2&ft&&(o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(8,3,"MODAL_NO_EXIST_EMAIL.TEXT")," "),o.\u0275\u0275advance(3),o.\u0275\u0275property("strong",!0),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(12,5,"BTN_CLOSE")," "))},dependencies:[a.IonButton,a.IonContent,a.IonIcon,a.IonText,g.X$],styles:["ion-content[_ngcontent-%COMP%]{--background: transparent !important}ion-content.custom-padding[_ngcontent-%COMP%]{-webkit-padding-end:2em;padding-inline-end:2em;-webkit-padding-start:2em;padding-inline-start:2em}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;display:flex;align-items:center;justify-content:center}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%]{height:auto;width:96%;padding:2em;border-radius:8px;background:rgb(255,255,255);display:flex;flex-direction:column;justify-content:space-between;align-items:center}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:1em}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:3.3em}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:#656768;font-size:1em;font-weight:400;line-height:22px;letter-spacing:0px;text-align:center}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:110px}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{font-size:.9em;line-height:18px;--color: #0ec254;--border-radius: 32px;--background-hover: #0ec254;--background: #ebeaea !important;--background-activated: #0ec254;--background-focused: #0ec254;--ripple-color: deeppink;--color-activated: #fff;--color-hover: #fff;--color-focused: #fff;--padding-top: 8px;--padding-bottom: 8px;height:40px;display:flex;align-items:center}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}"]}),Et})(),Le=(()=>{class Et{constructor(ft){this.modalCtrl=ft}ngOnInit(){}confirm(){this.modalCtrl.dismiss(null,"confirm")}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.ModalController))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-not-receive-code"]],decls:11,vars:4,consts:[[1,"ion-padding","custom-padding"],[1,"content"],[1,"content-modal"],[1,"icon"],["src","./assets/icon/icon-mail-error.svg"],[1,"text"],[3,"innerHTML"],[1,"btn"],["mode","ios","shape","round",3,"strong","click"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"ion-content",0)(1,"div",1)(2,"div",2)(3,"div",3),o.\u0275\u0275element(4,"ion-icon",4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"div",5),o.\u0275\u0275element(6,"ion-text",6),o.\u0275\u0275pipe(7,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"div",7)(9,"ion-button",8),o.\u0275\u0275listener("click",function(){return Tt.confirm()}),o.\u0275\u0275text(10,"Fechar"),o.\u0275\u0275elementEnd()()()()()),2&ft&&(o.\u0275\u0275advance(6),o.\u0275\u0275property("innerHTML",o.\u0275\u0275pipeBind1(7,2,"MODAL_NO_RECEIVE_CODE.TEXT"),o.\u0275\u0275sanitizeHtml),o.\u0275\u0275advance(3),o.\u0275\u0275property("strong",!0))},dependencies:[a.IonButton,a.IonContent,a.IonIcon,a.IonText,g.X$],styles:["ion-content[_ngcontent-%COMP%]{--background: transparent !important}ion-content.custom-padding[_ngcontent-%COMP%]{-webkit-padding-end:2em;padding-inline-end:2em;-webkit-padding-start:2em;padding-inline-start:2em}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;display:flex;align-items:center;justify-content:center}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%]{height:auto;width:96%;padding:2em;border-radius:8px;background:rgb(255,255,255);display:flex;flex-direction:column;justify-content:space-between;align-items:center}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:1em}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:3.3em}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:#656768;font-size:1em;font-weight:400;line-height:22px;letter-spacing:0px;text-align:center}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:110px}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{font-size:.9em;line-height:18px;--color: #0ec254;--border-radius: 32px;--background-hover: #0ec254;--background: #ebeaea !important;--background-activated: #0ec254;--background-focused: #0ec254;--ripple-color: deeppink;--color-activated: #fff;--color-hover: #fff;--color-focused: #fff;--padding-top: 8px;--padding-bottom: 8px;height:40px;display:flex;align-items:center}ion-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .content-modal[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}"]}),Et})();function Ce(Et,cn){1&Et&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementContainerEnd()),2&Et&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_RESUME_CREATE_EVENT_EVENT")," "))}function ie(Et,cn){1&Et&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementContainerEnd()),2&Et&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_RESUME_CREATE_EVENT_EVENT_LG")," "))}function se(Et,cn){1&Et&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementContainerEnd()),2&Et&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_RESUME_CREATE_EVENT_ENTRY")," "))}function me(Et,cn){1&Et&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementContainerEnd()),2&Et&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_RESUME_CREATE_EVENT_EXIT")," "))}function Ne(Et,cn){if(1&Et&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275template(1,se,3,3,"ng-container",10),o.\u0275\u0275template(2,me,3,3,"ng-container",10),o.\u0275\u0275elementEnd()),2&Et){const ft=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","ENTRY"===(null==ft.props?null:ft.props.eventType)||"CLONE_EXIT"===(null==ft.props?null:ft.props.eventType)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","EXIT"===(null==ft.props?null:ft.props.eventType)||"CLONE_ENTRY"===(null==ft.props?null:ft.props.eventType))}}function _e(Et,cn){if(1&Et&&(o.\u0275\u0275elementStart(0,"div",29)(1,"strong"),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"datetransformcustom"),o.\u0275\u0275elementEnd()()),2&Et){const ft=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind2(3,1,null==ft.event?null:ft.event.startAt,"dayMonth"))}}function we(Et,cn){if(1&Et&&(o.\u0275\u0275elementStart(0,"div",30)(1,"strong"),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"datetransformcustom"),o.\u0275\u0275elementEnd()()),2&Et){const ft=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind2(3,1,null==ft.event?null:ft.event.startAt,"hourMinute"))}}function Ee(Et,cn){if(1&Et&&(o.\u0275\u0275elementStart(0,"div",31)(1,"strong"),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"datetransformcustom"),o.\u0275\u0275elementEnd()()),2&Et){const ft=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind2(3,1,null==ft.event?null:ft.event.endAt,"hourMinute"))}}let le=(()=>{class Et{constructor(ft,Tt,en,Gt,or,Cr){this.modalCtrl=ft,this.navigationService=Tt,this.createEventService=en,this.createLogisticEventService=Gt,this.overlayService=or,this.resumeCreateEventInterruptedService=Cr}ngOnInit(){console.log("Modal, this.props",this.props),this.profileCurrent=this.getProfile(),"LOGISTIC"===this.props.target?this.eventLogistic():this.eventVO()}close(){this.modalCtrl.dismiss()}goToCreateEvent(ft){this.modalCtrl.dismiss({...ft}),this.navCreateEvent(ft)}clear(ft){var Tt=this;return(0,F.Z)(function*(){const en=yield Tt.resumeCreateEventInterruptedService.isExistEventCreation();"VO"===ft?.target&&en.vo?(Tt.createEventService.clearCreateEventData(),en.vo=!1):"LOGISTIC"===ft.target&&(""!==en?.logistic?.eventType||en?.logistic?.eventType.length>1)&&(Tt.createLogisticEventService.clearCreateEventData(),en.logistic.eventType=""),(""===en.logistic?.eventType||en.logistic?.eventType)&&!en.vo&&Tt.resumeCreateEventInterruptedService.clearResumeCreationInterrupte();const Gt=setTimeout(()=>{Tt.resumeCreateEventInterruptedService.showModalResumeCreateEventInterrupted(ft),clearTimeout(Gt)},500);Tt.resumeCreateEventInterruptedService.setResumeCreationInterrupte(en),Tt.modalCtrl.dismiss({props:ft,clear:!0})})()}getProfile(){return"VO"===this.props.target?this.resumeCreateEventInterruptedService.getProfileVoCreationInterrupted():this.resumeCreateEventInterruptedService.getProfileLogisticCreationInterrupted()}navCreateEvent(ft){const en={state:{event:null,action:ft.action,eventType:ft.eventType,resumeEventInterrupted:!0}};"VO"===ft?.target?(delete en?.state?.eventType,this.profileVOAndNavigation(en)):this.profileLGAndNavigation(en)}toastMessage(ft,Tt,en){var Gt=this;return(0,F.Z)(function*(){yield(yield Gt.overlayService.toast({message:ft,color:Tt,duration:en,mode:"ios",position:"top"})).present()})()}eventLogistic(){const ft={type:this.createLogisticEventService.getType(),title:this.createLogisticEventService.getTitle(),startAt:this.createLogisticEventService.getStartDate(),endAt:this.createLogisticEventService.getEndDate()};this.event=ft,console.log(this.event)}eventVO(){const ft={title:this.createEventService.getTitle(),startAt:this.createEventService.getStartDate(),endAt:this.createEventService.getEndDate()};this.event=ft,console.log(this.event)}profileVOAndNavigation(ft){this.navigationService.forward(["/create-event-event-name-step"],ft)}profileLGAndNavigation(ft){this.navigationService.forward(["/logistic-events/create/event-name"],ft)}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.ModalController),o.\u0275\u0275directiveInject(Y.f5),o.\u0275\u0275directiveInject(Y.jc),o.\u0275\u0275directiveInject(Y.V),o.\u0275\u0275directiveInject(Y.F0),o.\u0275\u0275directiveInject(Y.NL))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-resume-create-event-interrupted"]],inputs:{props:"props",event:"event"},decls:62,vars:32,consts:[["role","dialog",1,"resume-create-event-container","ion-padding"],[1,"resume-create-event-content"],["aria-hidden","true",1,"icon-alert","ion-text-center"],["slot","icon-only","name","alert-circle","color","warning"],[1,"title","ion-text-center"],["tabindex","0"],[1,"description","ion-text-center"],[1,"event_container"],[1,"header"],[1,"header-title"],[4,"ngIf"],[1,"event_content"],["fixed","",1,"ion-text-center","event_content_grid"],["size","4"],[1,"title"],["slot","start","aria-hidden","true","name","calendar-outline"],[1,"text-icon"],["class","day",4,"ngIf"],["slot","start","aria-hidden","true","name","time-outline"],["class","start",4,"ngIf"],["class","end",4,"ngIf"],[1,"resume-create-event-content__icons"],["mode","ios","fill","clear","color","medium",3,"click"],[1,"",2,"position","relative","display","flex","align-items","center"],["aria-hidden","true"],["color","medium","name","trash"],["color","medium"],["mode","ios","fill","clear",3,"click"],["color","primary","name","play"],[1,"day"],[1,"start"],[1,"end"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),o.\u0275\u0275element(3,"ion-icon",3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div",4)(5,"h1",5),o.\u0275\u0275text(6),o.\u0275\u0275pipe(7,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(8,"div",6)(9,"h4"),o.\u0275\u0275text(10),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"p"),o.\u0275\u0275pipe(12,"translate"),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(15,"div",7)(16,"div",8)(17,"span",9),o.\u0275\u0275template(18,Ce,3,3,"ng-container",10),o.\u0275\u0275template(19,ie,3,3,"ng-container",10),o.\u0275\u0275template(20,Ne,3,2,"span",10),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(21,"div",11)(22,"div",4),o.\u0275\u0275text(23),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(24,"ion-grid",12)(25,"ion-row")(26,"ion-col",13)(27,"div",14),o.\u0275\u0275element(28,"ion-icon",15),o.\u0275\u0275elementStart(29,"span",16),o.\u0275\u0275text(30),o.\u0275\u0275pipe(31,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(32,_e,4,4,"div",17),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(33,"ion-col",13)(34,"div",14),o.\u0275\u0275element(35,"ion-icon",18),o.\u0275\u0275elementStart(36,"span",16),o.\u0275\u0275text(37),o.\u0275\u0275pipe(38,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(39,we,4,4,"div",19),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(40,"ion-col",13)(41,"div",14),o.\u0275\u0275element(42,"ion-icon",18),o.\u0275\u0275elementStart(43,"span",16),o.\u0275\u0275text(44),o.\u0275\u0275pipe(45,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(46,Ee,4,4,"div",20),o.\u0275\u0275elementEnd()()()()()()(),o.\u0275\u0275elementStart(47,"div",21)(48,"ion-button",22),o.\u0275\u0275listener("click",function(){return Tt.clear(Tt.props)}),o.\u0275\u0275elementStart(49,"div",23)(50,"span",24),o.\u0275\u0275element(51,"ion-icon",25),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(52,"span",26),o.\u0275\u0275text(53),o.\u0275\u0275pipe(54,"translate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(55,"ion-button",27),o.\u0275\u0275listener("click",function(){return Tt.goToCreateEvent(Tt.props)}),o.\u0275\u0275elementStart(56,"div",23)(57,"span",24),o.\u0275\u0275element(58,"ion-icon",28),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(59,"span"),o.\u0275\u0275text(60),o.\u0275\u0275pipe(61,"translate"),o.\u0275\u0275elementEnd()()()()),2&ft&&(o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(7,16,"MD_RESUME_CREATE_EVENT_TITLE")),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate(null==Tt.profileCurrent||null==Tt.profileCurrent.company?null:Tt.profileCurrent.company.name),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind1(12,18,"MD_RESUME_CREATE_EVENT_DESCRIPTION")),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(14,20,"MD_RESUME_CREATE_EVENT_DESCRIPTION")," "),o.\u0275\u0275advance(5),o.\u0275\u0275property("ngIf","VO"===(null==Tt.props?null:Tt.props.target)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","LOGISTIC"===(null==Tt.props?null:Tt.props.target)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",(null==Tt.props?null:Tt.props.eventType)&&"LOGISTIC"===Tt.props.target),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",null==Tt.event?null:Tt.event.title," "),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(31,22,"MD_RESUME_CREATE_EVENT_DAY"),""),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",null==Tt.event?null:Tt.event.startAt),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(38,24,"MD_RESUME_CREATE_EVENT_START"),""),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",null==Tt.event?null:Tt.event.startAt),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(45,26,"MD_RESUME_CREATE_EVENT_END"),""),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",null==Tt.event?null:Tt.event.endAt),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate1(" \xa0",o.\u0275\u0275pipeBind1(54,28,"MD_RESUME_CREATE_EVENT_BTN_TO_DISCARD")," "),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate1(" \xa0",o.\u0275\u0275pipeBind1(61,30,"MD_RESUME_CREATE_EVENT_BTN_NEXT")," "))},styles:[".resume-create-event-container[_ngcontent-%COMP%]{display:flex;height:100%;background:#ffffff}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-around;max-width:100%;overflow:scroll}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%] .icon-alert[_ngcontent-%COMP%]{font-size:6rem}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:initial!important;font-weight:initial!important;line-height:initial!important}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1em!important;margin:0;color:#868889}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:#868889;font-weight:600!important}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%] .event_container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{background:rgba(217,217,217,.1215686275);width:110.7%;position:relative;right:1em;height:28.5px;display:flex;align-items:center}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%] .event_container[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{padding:0 0 0 20px;font-size:1.2em;font-weight:600;color:#013a11}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%] .event_container[_ngcontent-%COMP%] .event_content[_ngcontent-%COMP%] > .title[_ngcontent-%COMP%]{font-weight:800!important;font-size:1.4em!important;line-height:3.2em!important;color:#868889!important;max-width:13em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.resume-create-event-container[_ngcontent-%COMP%] .resume-create-event-content[_ngcontent-%COMP%] .event_container[_ngcontent-%COMP%] .event_content[_ngcontent-%COMP%] .event_content_grid[_ngcontent-%COMP%] .text-icon[_ngcontent-%COMP%]{color:#868889!important}.resume-create-event-content__icons[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;padding:0 16px 12px}"]}),Et})();var Ue=f(15439),ke=f.n(Ue);function ze(Et,cn){1&Et&&(o.\u0275\u0275elementStart(0,"h4"),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&Et&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(2,1,"MODAL_SHARE.TITLE_CALENDAR")))}function ye(Et,cn){1&Et&&(o.\u0275\u0275elementStart(0,"h4"),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&Et&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(2,1,"MODAL_SHARE.TITLE")))}function je(Et,cn){1&Et&&(o.\u0275\u0275elementStart(0,"p"),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&Et&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(2,1,"MODAL_SHARE.SUBTITLE_CALENDAR")))}function Ze(Et,cn){1&Et&&(o.\u0275\u0275elementStart(0,"p"),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&Et&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(2,1,"MODAL_SHARE.SUBTITLE")))}function _t(Et,cn){if(1&Et){const ft=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",13)(2,"div",14),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ft);const en=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(en.shareViaCalendar())}),o.\u0275\u0275elementStart(3,"div",15),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"div",16),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(7,"ion-text")(8,"p"),o.\u0275\u0275text(9),o.\u0275\u0275pipe(10,"translate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementContainerEnd()}if(2&Et){const ft=o.\u0275\u0275nextContext();o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1("",ft.currentWeekDayLabel,"."),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(ft.currentDayNumaber),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(10,3,"MODAL_SHARE.BTNS.SHARE_CALENDAR_IOS"))}}function At(Et,cn){if(1&Et){const ft=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",17)(1,"div",18),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ft);const en=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(en.doShare())}),o.\u0275\u0275element(2,"ion-icon",19),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"ion-text")(4,"p"),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd()()()}2&Et&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(6,1,"MODAL_SHARE.BTNS.SHARE_APPS")))}function Vt(Et,cn){if(1&Et){const ft=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",13)(2,"div",20),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ft);const en=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(en.shareViaCalendar("ms-outlook"))}),o.\u0275\u0275element(3,"ion-icon",21),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"ion-text")(5,"p"),o.\u0275\u0275text(6),o.\u0275\u0275pipe(7,"translate"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementContainerEnd()}2&Et&&(o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(7,1,"MODAL_SHARE.BTNS.SHARE_CALENDAR_OUTLOOK")))}function fn(Et,cn){if(1&Et){const ft=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",17)(1,"div",18),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(ft);const en=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(en.doShareEmail("mail"))}),o.\u0275\u0275element(2,"ion-icon",22),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"ion-text")(4,"p"),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd()()()}2&Et&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(6,1,"MODAL_SHARE.BTNS.SHARE_EMAIL")))}let mn=(()=>{class Et{constructor(ft,Tt,en){this.modalCtrl=ft,this.socialSharingService=Tt,this.TranslateConfigService=en,this.calendar=!1,this.currentWeekDayLabel=ke()().format("ddd"),this.currentDayNumaber=ke()().format("D");const Gt=this.TranslateConfigService.getCurrentLang();ke().locale(Gt||"en")}close(ft,Tt="cancel"){this.modalCtrl.dismiss(ft,Tt)}doShare(ft){var Tt=this;return(0,F.Z)(function*(){try{const en=Tt.event,Gt=yield Tt.socialSharingService.shareEvent(en,"OTHERS","events-list",ft);Tt.shareSuccessResponse(Gt),Gt&&Tt.close(null,"cancel")}catch(en){Tt.shareErrorResponse(en)}})()}doShareEmail(ft){var Tt=this;return(0,F.Z)(function*(){try{const en=Tt.event;if(en){const Gt=yield Tt.socialSharingService.shareEvent(en,"OTHERS","events-list",ft);Tt.shareSuccessResponse(Gt),Gt&&Tt.close(null,"cancel")}}catch(en){Tt.shareErrorResponse(en)}})()}shareViaCalendar(ft){var Tt=this;return(0,F.Z)(function*(){try{const en=yield Tt.socialSharingService.shareEvent(Tt.event,"CALENDAR","view-event",ft);Tt.shareSuccessResponse(en),en&&Tt.close(null,"cancel")}catch(en){Tt.shareErrorResponse(en)}})()}shareErrorResponse(ft){}shareSuccessResponse(ft){}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.ModalController),o.\u0275\u0275directiveInject(Y.iX),o.\u0275\u0275directiveInject(Y.wK))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-share-modal"]],inputs:{message:"message",subject:"subject",url:"url",calendar:"calendar",event:"event"},decls:23,vars:11,consts:[[1,"content_modal_share"],["tabindex","5",1,"content_modal_share__btn_close_icon",3,"click"],["slot","icon-only","name","close"],["tabindex","1",1,"content_modal_share__title"],[4,"ngIf"],[1,"content_modal_share__subtitle"],[1,"content_modal_share__actions"],[4,"ngIf","ngIfElse"],["shareViaApps",""],["shareViaEmail",""],[1,"content_modal_share__btns"],[1,"content_modal_share__btns_cancel"],["mode","ios","fill","clear","tabindex","3",3,"click"],[1,"icon_content"],[1,"icon_content__ios-calendar",3,"click"],[1,"icon_content__ios-calendar__day"],[1,"icon_content__ios-calendar__number"],[1,"icon_content_shareLink"],[1,"icon_content_shareLink__email",3,"click"],["slot","icon-only","src","./assets/icon/send.svg"],[1,"icon_content","outlook-calendar",3,"click"],["slot","icon-only","src","./assets/icon/outlook-calendar.svg"],["slot","icon-only","name","mail-outline"]],template:function(ft,Tt){if(1&ft&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275listener("click",function(){return Tt.close()}),o.\u0275\u0275element(2,"ion-icon",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",3)(4,"ion-text"),o.\u0275\u0275template(5,ze,3,3,"h4",4),o.\u0275\u0275template(6,ye,3,3,"h4",4),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(7,"div",5)(8,"ion-text"),o.\u0275\u0275template(9,je,3,3,"p",4),o.\u0275\u0275template(10,Ze,3,3,"p",4),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(11,"div",6),o.\u0275\u0275template(12,_t,11,5,"ng-container",7),o.\u0275\u0275template(13,At,7,3,"ng-template",null,8,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275template(15,Vt,8,3,"ng-container",7),o.\u0275\u0275template(16,fn,7,3,"ng-template",null,9,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(18,"div",10)(19,"div",11)(20,"ion-button",12),o.\u0275\u0275listener("click",function(){return Tt.close()}),o.\u0275\u0275text(21),o.\u0275\u0275pipe(22,"translate"),o.\u0275\u0275elementEnd()()()()),2&ft){const en=o.\u0275\u0275reference(14),Gt=o.\u0275\u0275reference(17);o.\u0275\u0275advance(5),o.\u0275\u0275property("ngIf",Tt.calendar),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!Tt.calendar),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngIf",Tt.calendar),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!Tt.calendar),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",Tt.calendar)("ngIfElse",en),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngIf",Tt.calendar)("ngIfElse",Gt),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(22,9,"BTN_CLOSE")," ")}},dependencies:[L.NgIf,a.IonButton,a.IonIcon,a.IonText,g.X$],styles:[".content_modal_share[_ngcontent-%COMP%]{display:flex;position:relative;flex-direction:column;justify-content:space-between;align-items:center;background:#fff;padding:1em;height:100%}.content_modal_share__title[_ngcontent-%COMP%]{color:#383a3e;text-align:center;font-size:18px;font-family:Nunito;font-style:normal;font-weight:600;line-height:120%}.content_modal_share__subtitle[_ngcontent-%COMP%]{color:#383a3e}.content_modal_share__subtitle[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}.content_modal_share__btn_close_icon[_ngcontent-%COMP%]{position:absolute;top:1em;right:1em}.content_modal_share__btn_close_icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:1.53em;color:#c5c5c5}.content_modal_share__actions[_ngcontent-%COMP%]{display:flex;width:90%;height:116px;justify-content:space-evenly;align-items:center}.content_modal_share__actions.direction-column[_ngcontent-%COMP%]{flex-direction:column!important}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content[_ngcontent-%COMP%], .content_modal_share__actions[_ngcontent-%COMP%] .icon_content_shareLink[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content_shareLink[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#757575;text-align:center;font-size:12px;font-weight:400;padding:8px 0 0;margin:0}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content_shareLink__email[_ngcontent-%COMP%]{width:74px;height:74px;background:var(--ion-color-primary);border-radius:50%;display:flex;justify-content:center;align-items:center;color:#fff}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content_shareLink__email[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:2em}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%]{color:#757575}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content__ios-calendar[_ngcontent-%COMP%]{margin:14px;width:58px;height:58px;background:#eceff1;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;font-family:-apple-system,HelveticaNeue}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content__ios-calendar__day[_ngcontent-%COMP%]{font-size:.8em;font-weight:800;color:#ff3d00;text-transform:uppercase;font-family:-apple-system,HelveticaNeue}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content__ios-calendar__number[_ngcontent-%COMP%]{font-size:2.1em;font-weight:400;color:#424242;font-family:-apple-system,HelveticaNeue}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content.outlook-calendar[_ngcontent-%COMP%]{margin:14px;width:58px;height:58px}.content_modal_share__actions[_ngcontent-%COMP%] .icon_content.outlook-calendar[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:4em}.content_modal_share__actions[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin-bottom:12px;height:42px}.content_modal_share__actions[_ngcontent-%COMP%] ion-button.apps[_ngcontent-%COMP%]{width:289px;min-width:240px}.content_modal_share__actions[_ngcontent-%COMP%] ion-button.email[_ngcontent-%COMP%]{width:240px;max-width:289px}.content_modal_share__btns[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;justify-content:center}.content_modal_share__btns[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{width:118px;height:40px;border-radius:32px}.content_modal_share__btns_cancel[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{background:rgba(153,153,153,.13);--color: #757575;text-align:center;font-size:16px;font-family:Nunito;font-style:normal;font-weight:400;line-height:normal}"]}),Et})();function xn(Et,cn){if(1&Et){const ft=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",10),o.\u0275\u0275listener("click",function(){const Gt=o.\u0275\u0275restoreView(ft).$implicit,or=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(or.walletQrCodeInternalSelect(Gt))}),o.\u0275\u0275elementStart(1,"div",11)(2,"span"),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div",12),o.\u0275\u0275element(5,"ion-icon",13),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(6,"div",14),o.\u0275\u0275text(7),o.\u0275\u0275elementEnd()()}if(2&Et){const ft=cn.$implicit;o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",ft.companyName," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",ft.address," ")}}let gn=(()=>{class Et{constructor(ft){this.modalController=ft,this.walletQrCodeInternalSelect=Tt=>{this.modalController.dismiss(Tt)},this.filterBadWalletsQrcode=Tt=>Tt.filter(en=>en.siteInstance&&en.companyInstance),this.sort=(Tt,en)=>Tt.name<en.name?-1:Tt.name>en.name?1:0,this.back=()=>{this.modalController.dismiss(null)}}set walletsQrcode(ft){ft=this.filterBadWalletsQrcode(ft),this.walletQrCodeInternals=ft.sort(this.sort)}get walletsQrcode(){return this.walletQrCodeInternals}}return Et.\u0275fac=function(ft){return new(ft||Et)(o.\u0275\u0275directiveInject(a.ModalController))},Et.\u0275cmp=o.\u0275\u0275defineComponent({type:Et,selectors:[["app-select-walletqr-modal"]],inputs:{walletsQrcode:"walletsQrcode"},decls:14,vars:5,consts:[[3,"ngClass"],[1,"select-walletqr-modal__content"],[1,"select-walletqr-modal__content__background"],[1,"select-walletqr-modal__content__modal-container"],[1,"select-walletqr-modal__content__modal-container__modal-title"],[1,"select-walletqr-modal__content__modal-container__modal-body"],[1,"select-walletqr-modal__content__modal-container__modal-body__profiles"],["class","select-walletqr-modal__content__modal-container__modal-body__profiles__profile","role","button","button","",3,"click",4,"ngFor","ngForOf"],[1,"select-walletqr-modal__content__modal-container__modal-footer"],[1,"select-walletqr-modal__content__modal-container__modal-footer__reject",3,"click"],["role","button","button","",1,"select-walletqr-modal__content__modal-container__modal-body__profiles__profile",3,"click"],[1,"select-walletqr-modal__content__modal-container__modal-body__profiles__profile__company-name"],[1,"qrcodeicon"],["name","qr-code-outline"],[1,"select-walletqr-modal__content__modal-container__modal-body__profiles__profile__login"]],template:function(ft,Tt){1&ft&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"h6"),o.\u0275\u0275text(6," Selecione um endere\xe7o para acessar "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(7,"div",5)(8,"div",6),o.\u0275\u0275template(9,xn,8,2,"div",7),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(10,"div",8)(11,"button",9),o.\u0275\u0275listener("click",function(){return Tt.back()}),o.\u0275\u0275text(12),o.\u0275\u0275pipe(13,"translate"),o.\u0275\u0275elementEnd()()()()()),2&ft&&(o.\u0275\u0275property("ngClass","select-walletqr-modal"),o.\u0275\u0275advance(9),o.\u0275\u0275property("ngForOf",Tt.walletsQrcode),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(13,3,"BTN_BACK")," "))},dependencies:[L.NgClass,L.NgForOf,a.IonIcon,g.X$],styles:[".select-walletqr-modal[_ngcontent-%COMP%]{width:100vw;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;height:100vh}.select-walletqr-modal[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] .h6[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] .h5[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] .h4[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] .h3[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] .h2[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .select-walletqr-modal[_ngcontent-%COMP%] .h1[_ngcontent-%COMP%]{all:unset}.select-walletqr-modal__content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e!important}.select-walletqr-modal__content__background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:.3;top:0;transition:opacity .5s ease-out}.select-walletqr-modal__content__modal-container[_ngcontent-%COMP%]{height:60vh;background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;margin-top:20vh;transition:margin-top 1s ease}.select-walletqr-modal__content__modal-container__modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500!important;position:absolute;top:0;height:3.5em;line-height:3.5em!important;width:calc(100% - 48px);background-color:#fff}.select-walletqr-modal__content__modal-container__modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em!important;background-color:#fff}.select-walletqr-modal__content__modal-container__modal-body__profiles__profile[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #eee;border-radius:4px;margin-bottom:8px}.select-walletqr-modal__content__modal-container__modal-body__profiles__profile__company-name[_ngcontent-%COMP%]{font-weight:600;display:inline-flex;gap:.5em;vertical-align:sub}.select-walletqr-modal__content__modal-container__modal-body__profiles__profile__login[_ngcontent-%COMP%]{color:#656768!important;font-size:.8em!important}.select-walletqr-modal__content__modal-container__modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff}.select-walletqr-modal__content__modal-container__modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em!important;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.select-walletqr-modal__content__modal-container__modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768!important;transition:background-color .1s ease-out}.select-walletqr-modal__content__modal-container__modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254!important}.select-walletqr-modal__content__modal-container__modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254!important;color:#fff!important;transition:background-color .1s ease-out}"]}),Et})()},34831:(Ge,$,f)=>{f.d($,{f:()=>ce});var o=f(45449),g=f(90603),h=f(47898),m=f(90944),v=f(99826);function b(oe,te){if(1&oe&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&oe){const ge=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ge.props.title," ")}}function k(oe,te){1&oe&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&oe&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_PERMISSION_TEXT_TITLE")," "))}function F(oe,te){if(1&oe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,b,2,1,"div",8),o.\u0275\u0275template(2,k,3,3,"div",8),o.\u0275\u0275elementStart(3,"div",9)(4,"div",10),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementContainerEnd()),2&oe){const ge=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",null==ge.props?null:ge.props.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!(null!=ge.props&&ge.props.title)),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(6,3,"MD_PERMISSION_TEXT_DESC_CALENDAR")," ")}}function Y(oe,te){if(1&oe&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&oe){const ge=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ge.props.title," ")}}function I(oe,te){1&oe&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&oe&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_PERMISSION_TEXT_TITLE")," "))}function D(oe,te){if(1&oe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,Y,2,1,"div",8),o.\u0275\u0275template(2,I,3,3,"div",8),o.\u0275\u0275elementStart(3,"div",9)(4,"div",10),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementContainerEnd()),2&oe){const ge=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",null==ge.props?null:ge.props.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!(null!=ge.props&&ge.props.title)),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(6,3,"MD_PERMISSION_TEXT_DESC_CONTACT")," ")}}function j(oe,te){if(1&oe&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&oe){const ge=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ge.props.title," ")}}function W(oe,te){1&oe&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&oe&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_PERMISSION_TEXT_TITLE")," "))}function de(oe,te){if(1&oe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,j,2,1,"div",8),o.\u0275\u0275template(2,W,3,3,"div",8),o.\u0275\u0275elementStart(3,"div",9)(4,"div",10),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementContainerEnd()),2&oe){const ge=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",null==ge.props?null:ge.props.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!(null!=ge.props&&ge.props.title)),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(6,3,"MD_PERMISSION_TEXT_DESC_GPS")," ")}}function K(oe,te){if(1&oe&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&oe){const ge=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",ge.props.title," ")}}function ee(oe,te){1&oe&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&oe&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_PERMISSION_TEXT_TITLE")," "))}function De(oe,te){if(1&oe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,K,2,1,"div",8),o.\u0275\u0275template(2,ee,3,3,"div",8),o.\u0275\u0275elementStart(3,"div",9)(4,"div",10)(5,"P"),o.\u0275\u0275text(6,"AUTORIZA\xc7\xc3O USO DA DIGITAL"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementContainerEnd()),2&oe){const ge=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",null==ge.props?null:ge.props.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!(null!=ge.props&&ge.props.title))}}function Te(oe,te){if(1&oe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",11),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",9)(4,"div",10)(5,"P"),o.\u0275\u0275text(6,"CONFIGURA\xc7\xc3O DATA \xc9 HORA"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementContainerEnd()),2&oe){const ge=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",ge.props.title?ge.props.title:"Permiss\xe3o de seguran\xe7a"," ")}}let ce=(()=>{class oe{constructor(ge,xe){this.modalCtrl=ge,this.storageService=xe,this.reject=new o.EventEmitter,this.accept=new o.EventEmitter,this.updatePermissionData=he=>{const Le=this.getPermissionStorage(),Ce=[];Le.length>0?Le.map(ie=>(he.find(me=>me.permission!==ie.permission)&&Ce.push(...he),Ce.push(...Le))):Ce.push(...he),this.setPermissionStorage(Ce)}}ngOnInit(){this.storageService.startStorage(),console.log(this.props)}onClose(ge){this.modalCtrl.dismiss(!!ge)}getPermissionStorage(){const ge=localStorage.getItem("permissions_kaccess");return ge?JSON.parse(ge):[]}setPermissionStorage(ge){localStorage.setItem("permissions_kaccess",JSON.stringify(ge))}}return oe.\u0275fac=function(ge){return new(ge||oe)(o.\u0275\u0275directiveInject(g.ModalController),o.\u0275\u0275directiveInject(h.V1))},oe.\u0275cmp=o.\u0275\u0275defineComponent({type:oe,selectors:[["app-modal-permission"]],inputs:{props:"props"},outputs:{reject:"reject",accept:"accept"},decls:16,vars:11,consts:[[1,"permission-modal","show"],[1,"content"],[1,"background"],[1,"modal-container"],[4,"ngIf"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"accept",3,"click"],["class","modal-title",4,"ngIf"],[1,"modal-body"],[1,"topic"],[1,"modal-title"]],template:function(ge,xe){1&ge&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementStart(3,"div",3),o.\u0275\u0275template(4,F,7,5,"ng-container",4),o.\u0275\u0275template(5,D,7,5,"ng-container",4),o.\u0275\u0275template(6,de,7,5,"ng-container",4),o.\u0275\u0275template(7,De,7,2,"ng-container",4),o.\u0275\u0275template(8,Te,7,1,"ng-container",4),o.\u0275\u0275elementStart(9,"div",5)(10,"button",6),o.\u0275\u0275listener("click",function(){return xe.onClose(!1)}),o.\u0275\u0275text(11),o.\u0275\u0275pipe(12,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(13,"button",7),o.\u0275\u0275listener("click",function(){return xe.onClose(!0)}),o.\u0275\u0275text(14),o.\u0275\u0275pipe(15,"translate"),o.\u0275\u0275elementEnd()()()()()),2&ge&&(o.\u0275\u0275advance(4),o.\u0275\u0275property("ngIf","CALENDAR"===xe.props.permission),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","CONTACT"===xe.props.permission),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","GPS"===xe.props.permission),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","FINGEERPRINT"===xe.props.permission),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","SETTINGS"===xe.props.permission),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(12,7,"MD_PERMISSION_BTN_NOT_IAGREE")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(15,9,"MD_PERMISSION_BTN_IAGREE")," "))},dependencies:[m.NgIf,v.X$],styles:[".permission-modal[_ngcontent-%COMP%]{height:0;bottom:0;position:absolute;width:100vw;transition:height .5s ease-in-out;overflow:hidden}.permission-modal.show[_ngcontent-%COMP%]{height:100vh;transition:height .5s ease-out}.permission-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{opacity:.3;transition:opacity .5s ease-out}.permission-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{margin-top:62%;transition:margin-top 1s ease}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:0;top:0;transition:opacity .5s ease-out}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{min-height:36vh;background-color:#fff;width:86vw;margin:50% auto auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;transition:margin-top 1s ease}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%]{margin-bottom:16px}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .topic[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{font-weight:500}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:space-between;align-items:center;overflow:hidden;background-color:#fff}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:.9em;background-color:#fff;color:#e40211;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.permission-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),oe})()},86245:(Ge,$,f)=>{f.d($,{n:()=>Y});var o=f(15861),a=f(45449),h=f(47898),m=f(90944),v=f(90603);function b(I,D){if(1&I){const j=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",7),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(j);const de=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(de.startTimeout(0))}),a.\u0275\u0275element(1,"ion-icon",8),a.\u0275\u0275elementEnd()}}function k(I,D){if(1&I&&(a.\u0275\u0275elementStart(0,"div",9),a.\u0275\u0275element(1,"span",4),a.\u0275\u0275elementEnd()),2&I){const j=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("innerHTML",j.notification.message,a.\u0275\u0275sanitizeHtml)}}function F(I,D){if(1&I){const j=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",10),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(j);const de=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(de.notification.action.customAction())}),a.\u0275\u0275elementStart(1,"a",11),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(3," \xa0 "),a.\u0275\u0275element(4,"span",4),a.\u0275\u0275elementEnd()}if(2&I){const j=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",j.notification.action.label," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",j.notification.message,a.\u0275\u0275sanitizeHtml)}}let Y=(()=>{class I{constructor(j,W){this.notificatorService=j,this.ngZoneService=W,this.initialNotificationState={title:"Aviso",message:"",type:"success",timeout:2500,action:null,cssCustom:""},this.defaultNotificationTime=2500,this.show=!1,this.block=!1,this.notification=this.initialNotificationState}ngOnInit(){var j=this;this.notificatorService.observable.subscribe(function(){var W=(0,o.Z)(function*(de){yield j.addNotification(de)});return function(de){return W.apply(this,arguments)}}())}addNotification(j){var W=this;return(0,o.Z)(function*(){if(W.block)clearTimeout(W.notificationHideEffectTimeoutId),clearTimeout(W.notificationTimeoutId),yield W.startTimeout(0),W.addNotification(j);else{const de={...W.notification,...j};yield W.ngZoneService.run(()=>{W.notification=de,W.show=!0,W.block=!0}),W.notification.timeout=W.notification.timeout?W.notification.timeout:W.defaultNotificationTime,W.startTimeout(W.notification.timeout)}})()}startTimeout(j){var W=this;return(0,o.Z)(function*(){return new Promise(de=>{W.notificationTimeoutId=setTimeout((0,o.Z)(function*(){yield W.ngZoneService.run(()=>{W.show=!1}),W.notificationHideEffectTimeoutId=setTimeout((0,o.Z)(function*(){yield W.ngZoneService.run(()=>{W.block=!1,W.notification=W.initialNotificationState,de({})})}),500)}),j)})})()}}return I.\u0275fac=function(j){return new(j||I)(a.\u0275\u0275directiveInject(h.V6),a.\u0275\u0275directiveInject(h.zf))},I.\u0275cmp=a.\u0275\u0275defineComponent({type:I,selectors:[["app-notificator"]],inputs:{notification:"notification",customAction:"customAction"},decls:7,vars:5,consts:[[3,"ngClass"],[1,"content"],["class","icon",3,"click",4,"ngIf"],[1,"title"],[3,"innerHTML"],["class","message",4,"ngIf"],["class","action",3,"click",4,"ngIf"],[1,"icon",3,"click"],["name","close"],[1,"message"],[1,"action",3,"click"],["mode","ios","fill","clear"]],template:function(j,W){1&j&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275template(2,b,2,0,"div",2),a.\u0275\u0275elementStart(3,"div",3),a.\u0275\u0275element(4,"span",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(5,k,2,1,"div",5),a.\u0275\u0275template(6,F,5,2,"div",6),a.\u0275\u0275elementEnd()()),2&j&&(a.\u0275\u0275property("ngClass","notificator-component "+W.notification.type+(W.show?" show":"")+(W.notification.cssCustom?" "+W.notification.cssCustom:"")),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",W.notification.action),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",W.notification.title,a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!W.notification.action),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",W.notification.action))},dependencies:[m.NgClass,m.NgIf,v.IonIcon],styles:[".notificator-component[_ngcontent-%COMP%]{color:#1e2023;position:fixed;max-height:0;width:100%;border-radius:0;bottom:-155px;padding:0 0 calc(5px + env(safe-area-inset-bottom))!important;left:0;background-color:#fff;box-shadow:-2px 0 8px 2px rgba(0,0,0,.1);font-size:1rem;z-index:20002;display:none;transition:bottom .5s ease}.notificator-component[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:800!important;font-size:initial!important}.notificator-component[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{margin-top:0;font-weight:400}.notificator-component[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{height:2.5em!important;display:flex;align-items:center;-webkit-padding-start:1px;padding-inline-start:1px;justify-content:flex-start}.notificator-component[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline;font-weight:700}.notificator-component[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{color:#fff;text-decoration:underline;margin:0 0 0 .2em;width:5.4em}.notificator-component.error[_ngcontent-%COMP%]{background-color:#f14c3c;color:#fff}.notificator-component.success[_ngcontent-%COMP%]{background-color:#0ec254;color:#fff}.notificator-component.show[_ngcontent-%COMP%]{display:block;max-height:1000px;bottom:0;transition:bottom .5s ease}.notificator-component.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:9px 1em;display:flex;flex-direction:column;align-items:flex-start}.notificator-component.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:absolute;right:.6em;top:.6em}.notificator-component.show[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{margin-top:6px}.notificator-component.toast-max-dates-recurrence.show[_ngcontent-%COMP%], .notificator-component.toast-change-email.show[_ngcontent-%COMP%]{z-index:200101}"]}),I})()},81838:(Ge,$,f)=>{f.d($,{c:()=>j});var o=f(45449),g=f(40776),h=f(47898),m=f(90944),v=f(90603),b=f(99826);function k(W,de){1&W&&(o.\u0275\u0275elementStart(0,"p"),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&W&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(2,1,"COMPONENT_OFFLINE_TEXT_NO_INTERNT_CONNECTION")))}function F(W,de){1&W&&(o.\u0275\u0275elementStart(0,"p"),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&W&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(2,1,"COMPONENT_OFFLINE_TEXT_NO_INTERNT_CONNECTION_SIMPLE")))}const Y=function(W){return{"font-size":W}};function I(W,de){if(1&W&&(o.\u0275\u0275elementStart(0,"div",2)(1,"div",3),o.\u0275\u0275element(2,"ion-icon",4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",5)(4,"ion-text"),o.\u0275\u0275template(5,k,3,3,"p",1),o.\u0275\u0275template(6,F,3,3,"p",1),o.\u0275\u0275elementEnd()()()),2&W){const K=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275property("name",K.icon),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(4,Y,K.isSmallScreen?"0.7em":"")),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",K.isHome),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!K.isHome)}}function D(W,de){if(1&W&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",6)(2,"div",7),o.\u0275\u0275element(3,"ion-icon",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div",9)(5,"p"),o.\u0275\u0275text(6,"Online."),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementContainerEnd()),2&W){const K=o.\u0275\u0275nextContext();o.\u0275\u0275advance(3),o.\u0275\u0275property("name",K.icon),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(2,Y,K.isSmallScreen?"0.7em":""))}}let j=(()=>{class W{constructor(K,ee){this.networkService=K,this.deviceInfo=ee,this.showOffline=!1,this.smallMessage=!1,this.isHome=!1,this.icon="information-circle",this.onReload=new o.EventEmitter,this.subscriptions=[],this.isSmallScreen=this.deviceInfo.isSmallScreen()}ngOnInit(){}ngOnDestroy(){this.subscriptions.forEach(K=>K.unsubscribe())}hideMessageOnline(){setTimeout(()=>{this.showOnline=!1},31e3)}}return W.\u0275fac=function(K){return new(K||W)(o.\u0275\u0275directiveInject(g.S),o.\u0275\u0275directiveInject(h.Hc))},W.\u0275cmp=o.\u0275\u0275defineComponent({type:W,selectors:[["app-offline"]],inputs:{showOffline:"showOffline",smallMessage:"smallMessage",isHome:"isHome",message:"message",icon:"icon"},outputs:{onReload:"onReload"},decls:2,vars:2,consts:[["class","offline_small",4,"ngIf"],[4,"ngIf"],[1,"offline_small"],["tabindex","-1",1,"offline_small__icon"],["color","danger",3,"name"],["tabindex","0","role","alert",1,"offline_small__message",3,"ngStyle"],[1,"offline_small","ok"],[1,"offline_small__icon"],["color","success",3,"name"],[1,"offline_small__message",3,"ngStyle"]],template:function(K,ee){1&K&&(o.\u0275\u0275template(0,I,7,6,"div",0),o.\u0275\u0275template(1,D,7,4,"ng-container",1)),2&K&&(o.\u0275\u0275property("ngIf",ee.showOffline&&ee.smallMessage),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ee.showOffline&&ee.showOnline))},dependencies:[m.NgIf,m.NgStyle,v.IonIcon,v.IonText,b.X$],styles:[".offline_small[_ngcontent-%COMP%]{display:flex;align-content:center;align-items:center;background:#feecf0;color:#e40211;min-height:64px;transition:all 1s ease}.offline_small__icon[_ngcontent-%COMP%]{padding:.3em 8px .3em 16px}.offline_small__icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:2em}.offline_small__message[_ngcontent-%COMP%]{font-size:.8rem;padding-right:8px}.offline_small__message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:auto}.offline_small.ok[_ngcontent-%COMP%]{background:#f4feec;color:#4de402;transition:all 1s ease-in}"]}),W})()},71237:(Ge,$,f)=>{f.d($,{M:()=>v});var o=f(15861),a=f(64633),g=f(45449),m=f(90603),L=f(99826);let v=(()=>{class b{constructor(F){var Y=this;this.modalCtrl=F,this.openFooterLegalModal=(0,o.Z)(function*(){const I=yield Y.modalCtrl.create({component:a.le,cssClass:"legal-modal-start"});yield I.present(),yield I.onDidDismiss()})}}return b.\u0275fac=function(F){return new(F||b)(g.\u0275\u0275directiveInject(m.ModalController))},b.\u0275cmp=g.\u0275\u0275defineComponent({type:b,selectors:[["app-privacy-footer"]],decls:5,vars:3,consts:[[1,"privacy-footer",3,"click"],["role","button"]],template:function(F,Y){1&F&&(g.\u0275\u0275elementStart(0,"div",0),g.\u0275\u0275listener("click",function(){return Y.openFooterLegalModal()}),g.\u0275\u0275elementStart(1,"ion-text",1)(2,"p"),g.\u0275\u0275text(3),g.\u0275\u0275pipe(4,"translate"),g.\u0275\u0275elementEnd()()()),2&F&&(g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(4,1,"TEXT_TERMS_OF_USE_AND_PRIVACY")))},dependencies:[m.IonText,L.X$],styles:[".privacy-footer[_ngcontent-%COMP%]{bottom:24px;text-align:center;width:100vw;left:0;font-size:.9em;color:#656768;padding:1em 0}"]}),b})()},50547:(Ge,$,f)=>{f.d($,{w:()=>b});var o=f(45449),g=f(90603),h=f(90944),L=f(99826);function v(k,F){if(1&k){const Y=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",10),o.\u0275\u0275listener("click",function(){const j=o.\u0275\u0275restoreView(Y).$implicit,W=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(W.profileSelect(j))}),o.\u0275\u0275elementStart(1,"div",11),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",12),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd()()}if(2&k){const Y=F.$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",Y.company.name," "),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",Y.company.site.name," ")}}let b=(()=>{class k{constructor(Y){this.modalController=Y,this.profileSelect=I=>{this.modalController.dismiss(I)},this.filterBadProfiles=I=>I.filter(D=>D.company&&D.company.name&&D.company.site&&D.company.site.name),this.sort=(I,D)=>I.company.name<D.company.name?-1:I.company.name>D.company.name?1:0,this.back=()=>{this.modalController.dismiss(null)}}set profiles(Y){Y=this.filterBadProfiles(Y),this.internalProfiles=Y.sort(this.sort)}get profiles(){return this.internalProfiles}}return k.\u0275fac=function(Y){return new(Y||k)(o.\u0275\u0275directiveInject(g.ModalController))},k.\u0275cmp=o.\u0275\u0275defineComponent({type:k,selectors:[["app-select-profile-modal"]],inputs:{profiles:"profiles"},decls:15,vars:8,consts:[[3,"ngClass"],[1,"select-profile-modal__content"],[1,"select-profile-modal__content__background"],[1,"select-profile-modal__content__modal-container"],[1,"select-profile-modal__content__modal-container__modal-title"],[1,"select-profile-modal__content__modal-container__modal-body"],[1,"select-profile-modal__content__modal-container__modal-body__profiles"],["class","select-profile-modal__content__modal-container__modal-body__profiles__profile","role","button","button","",3,"click",4,"ngFor","ngForOf"],[1,"select-profile-modal__content__modal-container__modal-footer"],[1,"select-profile-modal__content__modal-container__modal-footer__reject",3,"click"],["role","button","button","",1,"select-profile-modal__content__modal-container__modal-body__profiles__profile",3,"click"],[1,"select-profile-modal__content__modal-container__modal-body__profiles__profile__company-name"],[1,"select-profile-modal__content__modal-container__modal-body__profiles__profile__login"]],template:function(Y,I){1&Y&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"h6"),o.\u0275\u0275text(6),o.\u0275\u0275pipe(7,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(8,"div",5)(9,"div",6),o.\u0275\u0275template(10,v,5,2,"div",7),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(11,"div",8)(12,"button",9),o.\u0275\u0275listener("click",function(){return I.back()}),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"translate"),o.\u0275\u0275elementEnd()()()()()),2&Y&&(o.\u0275\u0275property("ngClass","select-profile-modal"),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(7,4,"MD_SELECT_PROFILE_ACCESS_TEXT_TITLE")),o.\u0275\u0275advance(4),o.\u0275\u0275property("ngForOf",I.internalProfiles),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(14,6,"BTN_BACK")," "))},dependencies:[h.NgClass,h.NgForOf,L.X$],styles:[".select-profile-modal[_ngcontent-%COMP%]{width:100vw;transition:height .5s ease-in-out;overflow:hidden;z-index:1000;height:100vh}.select-profile-modal[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] .h6[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] .h5[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] .h4[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] .h3[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] .h2[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .select-profile-modal[_ngcontent-%COMP%] .h1[_ngcontent-%COMP%]{all:unset}.select-profile-modal__content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e!important}.select-profile-modal__content__background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:.3;top:0;transition:opacity .5s ease-out}.select-profile-modal__content__modal-container[_ngcontent-%COMP%]{height:60vh;background-color:#fff;width:86vw;margin:auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;margin-top:20vh;transition:margin-top 1s ease}.select-profile-modal__content__modal-container__modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500!important;position:absolute;top:0;height:3.5em;line-height:3.5em!important;width:calc(100% - 48px);background-color:#fff}.select-profile-modal__content__modal-container__modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em!important;background-color:#fff}.select-profile-modal__content__modal-container__modal-body__profiles__profile[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid #eee;border-radius:4px;margin-bottom:8px}.select-profile-modal__content__modal-container__modal-body__profiles__profile__company-name[_ngcontent-%COMP%]{font-weight:600}.select-profile-modal__content__modal-container__modal-body__profiles__profile__login[_ngcontent-%COMP%]{color:#656768!important}.select-profile-modal__content__modal-container__modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:center;align-items:center;overflow:hidden;background-color:#fff}.select-profile-modal__content__modal-container__modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1em!important;background-color:#fff;color:#656768;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.select-profile-modal__content__modal-container__modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768!important;transition:background-color .1s ease-out}.select-profile-modal__content__modal-container__modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254!important}.select-profile-modal__content__modal-container__modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254!important;color:#fff!important;transition:background-color .1s ease-out}"]}),k})()},202:(Ge,$,f)=>{f.d($,{_:()=>L});var o=f(45449),g=f(90944),m=f(99826);let L=(()=>{class v{constructor(){this.back=()=>{this.onBack()},this.sendVerificationEmail=()=>{this.onSend()}}ngOnInit(){}}return v.\u0275fac=function(k){return new(k||v)},v.\u0275cmp=o.\u0275\u0275defineComponent({type:v,selectors:[["app-send-verification-email-modal"]],inputs:{show:"show",email:"email",onBack:"onBack",onSend:"onSend"},decls:19,vars:14,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[1,"email"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"accept",3,"click"]],template:function(k,F){1&k&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementStart(3,"div",3)(4,"div",4),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"div",5),o.\u0275\u0275text(8),o.\u0275\u0275pipe(9,"translate"),o.\u0275\u0275elementStart(10,"div",6),o.\u0275\u0275text(11),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(12,"div",7)(13,"button",8),o.\u0275\u0275listener("click",function(){return F.back()}),o.\u0275\u0275text(14),o.\u0275\u0275pipe(15,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(16,"button",9),o.\u0275\u0275listener("click",function(){return F.sendVerificationEmail()}),o.\u0275\u0275text(17),o.\u0275\u0275pipe(18,"translate"),o.\u0275\u0275elementEnd()()()()()),2&k&&(o.\u0275\u0275property("ngClass","send-verification-email-modal "+(F.show?"show":"")),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(6,6,"MD_SEND_VERIFICATION_EMAIL_TITLE")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(9,8,"MD_SEND_VERIFICATION_EMAIL_TEXT_DESCRIPTION")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",F.email," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(15,10,"BTN_BACK")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(18,12,"MD_SEND_VERIFICATION_EMAIL_BTN_SEND")," "))},dependencies:[g.NgClass,m.X$],styles:[".send-verification-email-modal[_ngcontent-%COMP%]{height:0;bottom:0;position:absolute;width:100vw;transition:height .5s ease-in-out;overflow:hidden}.send-verification-email-modal.show[_ngcontent-%COMP%]{height:100vh;transition:height .5s ease-out}.send-verification-email-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{opacity:.3;transition:opacity .5s ease-out}.send-verification-email-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{margin-top:35%;transition:margin-top 1s ease}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:0;top:0;transition:opacity .5s ease-out}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{min-height:60vh;background-color:#fff;width:86vw;margin:100% auto auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;transition:margin-top 1s ease}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 7em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .email[_ngcontent-%COMP%]{margin:24px 0;font-weight:600;text-align:center}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:space-between;align-items:center;overflow:hidden;background-color:#fff}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:.9em;background-color:#fff;color:#ccc;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.send-verification-email-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),v})()},58517:(Ge,$,f)=>{f.d($,{x:()=>de});var o=f(45449),g=f(90944),m=f(99826);function L(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_WAITING_FOR_INVITE_APPROVE")," "))}function v(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_WAITING_FOR_RELEASE")," "))}function b(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_RELEASE_DONE")," "))}function k(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_NOT_CHECKIN")," "))}function F(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_FINISHED")," "))}function Y(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_WAITING_FOR_CHECKIN")," "))}function I(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_CHECKIN_DONE")," "))}function D(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_MULTI_CHECKIN")," "))}function j(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_QRCODE_PRINTED")," "))}function W(K,ee){1&K&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&K&&(o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,"MD_STATUS_INVITE_NOT_APPROVED")," "))}let de=(()=>{class K{constructor(){}ngOnInit(){}}return K.\u0275fac=function(De){return new(De||K)},K.\u0275cmp=o.\u0275\u0275defineComponent({type:K,selectors:[["app-status-invite"]],inputs:{status:"status"},decls:14,vars:13,consts:[[1,"status"],[1,"attribute"],["class","value",4,"ngIf"],[1,"value"]],template:function(De,Te){1&De&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(4,L,3,3,"div",2),o.\u0275\u0275template(5,v,3,3,"div",2),o.\u0275\u0275template(6,b,3,3,"div",2),o.\u0275\u0275template(7,k,3,3,"div",2),o.\u0275\u0275template(8,F,3,3,"div",2),o.\u0275\u0275template(9,Y,3,3,"div",2),o.\u0275\u0275template(10,I,3,3,"div",2),o.\u0275\u0275template(11,D,3,3,"div",2),o.\u0275\u0275template(12,j,3,3,"div",2),o.\u0275\u0275template(13,W,3,3,"div",2),o.\u0275\u0275elementEnd()),2&De&&(o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(3,11,"MD_STATUS_INVITE_TITLE")," "),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf","WAITING_FOR_INVITE_APPROVE"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","WAITING_FOR_RELEASE"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","RELEASE_DONE"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","NOT_CHECKIN"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","FINISHED"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!Te.status||"WAITING_FOR_CHECKIN"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","CHECKIN_DONE"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","MULTI_CHECKIN"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","QRCODE_PRINTED"===Te.status),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","INVITE_NOT_APPROVED"===Te.status))},dependencies:[g.NgIf,m.X$],styles:[".status[_ngcontent-%COMP%] .attribute[_ngcontent-%COMP%]{color:#aaa}.status[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{color:#333}"]}),K})()},17029:(Ge,$,f)=>{f.d($,{c:()=>I});var o=f(15861),a=f(45449),h=f(24889),m=f(47898),L=f(90603),v=f(90944),k=f(99826);function F(D,j){if(1&D&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275element(1,"ion-img",3),a.\u0275\u0275elementContainerEnd()),2&D){const W=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("src",W.languageCurrent.flag)("alt",null==W.languageCurrent?null:W.languageCurrent.description)}}function Y(D,j){1&D&&a.\u0275\u0275element(0,"ion-icon",4)}let I=(()=>{class D{constructor(W,de){this.translateConfigService=W,this.popoverCtrl=de,this.languageSelectOnClose=new a.EventEmitter,this.languageCurrent=this.translateConfigService.languageCurrent}presentPopover(W){var de=this;return(0,o.Z)(function*(){const K=yield de.popoverCtrl.create({component:h.gy,arrow:!0,mode:"ios",event:W});yield K.present();const{data:ee}=yield K.onDidDismiss();ee&&(de.languageCurrent=ee,de.languageSelectOnClose.emit(ee))})()}}return D.\u0275fac=function(W){return new(W||D)(a.\u0275\u0275directiveInject(m.wK),a.\u0275\u0275directiveInject(L.PopoverController))},D.\u0275cmp=a.\u0275\u0275defineComponent({type:D,selectors:[["app-translate-btn"]],outputs:{languageSelectOnClose:"languageSelectOnClose"},decls:5,vars:5,consts:[["mode","ios","fill","clear",3,"click"],[4,"ngIf","ngIfElse"],["notSelected",""],[1,"img-flag",2,"padding","0 5px",3,"src","alt"],["name","language-outline"]],template:function(W,de){if(1&W&&(a.\u0275\u0275elementStart(0,"ion-button",0),a.\u0275\u0275listener("click",function(ee){return de.presentPopover(ee)}),a.\u0275\u0275pipe(1,"translate"),a.\u0275\u0275template(2,F,2,2,"ng-container",1),a.\u0275\u0275template(3,Y,1,0,"ng-template",null,2,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275elementEnd()),2&W){const K=a.\u0275\u0275reference(4);a.\u0275\u0275attribute("aria-label",a.\u0275\u0275pipeBind1(1,3,"ACCESSIBILITY.ARIA_LABELS.LANGUAGE")),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",de.languageCurrent)("ngIfElse",K)}},dependencies:[v.NgIf,L.IonButton,L.IonIcon,L.IonImg,k.X$],styles:["ion-img.img-flag[_ngcontent-%COMP%]{width:2.1em}"]}),D})()},97842:(Ge,$,f)=>{f.d($,{p:()=>L});var o=f(45449),g=f(90944),m=f(99826);let L=(()=>{class v{constructor(){this.back=()=>{console.log("back"),this.onBack()},this.accept=()=>{console.log("accept"),this.onAccept()}}ngOnInit(){}}return v.\u0275fac=function(k){return new(k||v)},v.\u0275cmp=o.\u0275\u0275defineComponent({type:v,selectors:[["app-warn-conflict-modal"]],inputs:{show:"show",email:"email",onBack:"onBack",onAccept:"onAccept"},decls:20,vars:16,consts:[[3,"ngClass"],[1,"content"],[1,"background"],[1,"modal-container"],[1,"modal-title"],[1,"modal-body"],[1,"confirm"],[1,"modal-footer"],[1,"reject",3,"click"],[1,"accept",3,"click"]],template:function(k,F){1&k&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementStart(3,"div",3)(4,"div",4),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"div",5),o.\u0275\u0275text(8),o.\u0275\u0275pipe(9,"translate"),o.\u0275\u0275elementStart(10,"div",6),o.\u0275\u0275text(11),o.\u0275\u0275pipe(12,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(13,"div",7)(14,"button",8),o.\u0275\u0275listener("click",function(){return F.back()}),o.\u0275\u0275text(15),o.\u0275\u0275pipe(16,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(17,"button",9),o.\u0275\u0275listener("click",function(){return F.accept()}),o.\u0275\u0275text(18),o.\u0275\u0275pipe(19,"translate"),o.\u0275\u0275elementEnd()()()()()),2&k&&(o.\u0275\u0275property("ngClass","warn-conflict-modal "+(F.show?"show":"")),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(6,6,"MD_WARN_CONFLICT_TEXT_TITLE")),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(9,8,"MD_WARN_CONFLICT_TEXT_DESCRIPTION")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(12,10,"MD_WARN_CONFLICT_TEXT_DO_WANT_TO_PROCEED")),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(16,12,"BTN_BACK")," "),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(19,14,"TEXT_YES")," "))},dependencies:[g.NgClass,m.X$],styles:[".warn-conflict-modal[_ngcontent-%COMP%]{height:0;bottom:0;position:absolute;width:100vw;transition:height .5s ease-in-out;overflow:hidden}.warn-conflict-modal.show[_ngcontent-%COMP%]{height:100vh;transition:height .5s ease-out}.warn-conflict-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{opacity:.3;transition:opacity .5s ease-out}.warn-conflict-modal.show[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{margin-top:35%;transition:margin-top 1s ease}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100vh;position:absolute;width:100vw;top:0;color:#383a3e}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:absolute;height:100vh;width:100vw;background-color:#333;opacity:0;top:0;transition:opacity .5s ease-out}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{min-height:60vh;background-color:#fff;width:86vw;margin:100% auto auto;border-radius:8px;padding:24px;box-shadow:2px 2px rgba(0,0,0,.1);position:relative;transition:margin-top 1s ease}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-align:center;font-weight:500;position:absolute;top:0;height:3.5em;line-height:3.5em;width:calc(100% - 48px);background-color:#fff}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 6em);width:calc(100% - 48px);top:3.5em;overflow-y:scroll;text-align:justify;font-size:.9em;background-color:#fff}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .confirm[_ngcontent-%COMP%]{margin:24px 0;font-weight:600;text-align:center}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:3.5em;width:calc(100% - 48px);line-height:3.5em;display:flex;justify-content:space-between;align-items:center;overflow:hidden;background-color:#fff}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:.9em;background-color:#fff;color:#ccc;padding:.75em 1.25em;border-radius:32px;transition:background-color .1s ease-out}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active{background-color:#eee;color:#656768;transition:background-color .1s ease-out}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]{color:#0ec254}.warn-conflict-modal[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%] button.accept[_ngcontent-%COMP%]:active{background-color:#0ec254;color:#fff;transition:background-color .1s ease-out}"]}),v})()},4490:(Ge,$,f)=>{f.d($,{J:()=>o});const o={version:"2.2.6",androidVersionCode:"1100188",iosCFBundleVersion:"1100188"}},2569:(Ge,$,f)=>{f.d($,{hT:()=>a,W8:()=>g,lK:()=>m,Hc:()=>L,RB:()=>v});var o=f(45449);let a=(()=>{class k{constructor(Y,I,D){this.element=Y,this.elementRef=I,this.renderer=D}ngAfterViewInit(){this.applyFocusWithDelay(),setTimeout(()=>{this.element.nativeElement.focus()},500)}applyFocusWithDelay(){setTimeout(()=>{const Y=this.elementRef.nativeElement;Y&&Y.focus()},this.time)}}return k.\u0275fac=function(Y){return new(Y||k)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2))},k.\u0275dir=o.\u0275\u0275defineDirective({type:k,selectors:[["","appAutoFocus",""]],inputs:{elementId:["applyFocus","elementId"],time:"time"}}),k})(),g=(()=>{class k{constructor(Y){this.elRef=Y}ngOnInit(){const Y=new Image;Y.src=this.imgSrc,Y.onload=()=>{const I=document.createElement("canvas"),D=I.getContext("2d");I.width=Y.width,I.height=Y.height,D.drawImage(Y,0,0);const W=D.getImageData(0,0,I.width,I.height).data,de={};for(let De=0;De<W.length;De+=4){const te=`rgb(${W[De]},${W[De+1]},${W[De+2]})`;de[te]?de[te]++:de[te]=1}let K,ee=0;for(const De in de)de[De]>ee&&(K=De,ee=de[De]);this.elRef.nativeElement.style.backgroundColor=K}}}return k.\u0275fac=function(Y){return new(Y||k)(o.\u0275\u0275directiveInject(o.ElementRef))},k.\u0275dir=o.\u0275\u0275defineDirective({type:k,selectors:[["","appBgcolorFronImg",""]],inputs:{imgSrc:"imgSrc"}}),k})();var h=f(24006);let m=(()=>{class k{constructor(Y){this.ngControl=Y}onModelChange(Y){this.onInputChange(Y,!1)}keydownBackspace(Y){this.onInputChange(Y.target.value,!0)}onInputChange(Y,I){let D=Y.replace(/\D/g,"");D=D.substring(0,4),D=D.replace(/(\d{2})/,"$1/"),D=D.replace(/(\d{2})(\d{1,2})/,"$1/$2"),this.ngControl.valueAccessor.writeValue(D)}}return k.\u0275fac=function(Y){return new(Y||k)(o.\u0275\u0275directiveInject(h.NgControl))},k.\u0275dir=o.\u0275\u0275defineDirective({type:k,selectors:[["","appBirthDateDirective",""]],hostBindings:function(Y,I){1&Y&&o.\u0275\u0275listener("ngModelChange",function(j){return I.onModelChange(j)})("keydown.backspace",function(j){return I.keydownBackspace(j)})}}),k})(),L=(()=>{class k{constructor(Y){this.ngControl=Y,this.onInputChange=I=>{let D=I.replace(/\D/g,"");D=D.replace(/\D/g,""),D=D.substring(0,11),D=D.replace(/(\d{3})(\d)/,"$1.$2"),D=D.replace(/(\d{3})(\d)/,"$1.$2"),D=D.replace(/(\d{3})(\d{1,2})$/,"$1-$2"),this.ngControl.valueAccessor.writeValue(D)}}onModelChange(Y){this.onInputChange(Y)}}return k.\u0275fac=function(Y){return new(Y||k)(o.\u0275\u0275directiveInject(h.NgControl))},k.\u0275dir=o.\u0275\u0275defineDirective({type:k,selectors:[["","appDocumentMask",""]],hostBindings:function(Y,I){1&Y&&o.\u0275\u0275listener("ngModelChange",function(j){return I.onModelChange(j)})}}),k})(),v=(()=>{class k{constructor(Y){this.ngControl=Y,this.onInputChange=I=>{let D=I.split(" ");D=D.map(j=>j.charAt(0).toUpperCase()+j.slice(1)),D=D.join(" "),this.ngControl.valueAccessor.writeValue(D)}}onModelChange(Y){this.onInputChange(Y)}}return k.\u0275fac=function(Y){return new(Y||k)(o.\u0275\u0275directiveInject(h.NgControl))},k.\u0275dir=o.\u0275\u0275defineDirective({type:k,selectors:[["","appFullName",""]],hostBindings:function(Y,I){1&Y&&o.\u0275\u0275listener("ngModelChange",function(j){return I.onModelChange(j)})}}),k})()},72877:(Ge,$,f)=>{f.d($,{Q:()=>o});var o=(()=>{return(a=o||(o={})).Online="Online",a.Offline="Offline",o;var a})()},8162:(Ge,$,f)=>{f.d($,{x:()=>o});var o=(()=>{return(a=o||(o={})).NONE="NONE",a.VALIDATED="VALIDATED",a.FALLBACK="FALLBACK",o;var a})()},69927:(Ge,$,f)=>{f.d($,{Mo:()=>F,X$:()=>k,zg:()=>b});var o=f(15439),a=f.n(o),m=(f(63692),f(45449)),v=f(47898);let b=(()=>{class Y{constructor(D,j){this.momentService=D,this.translateConfigService=j;const W=this.translateConfigService.getCurrentLang()||"en";a().locale(W)}transform(D,j){switch(j){case"startAt":return this.momentService.formatAsEventAt(D);case"dayMonth":return this.formatDayAndMonth(D);case"hourMinute":return this.formatHourAndMinute(D)}}formatHourAndMinute(D){const j=this.inputDate(D);return a()(j).format("HH[h]mm[min]")}formatDayAndMonth(D){const j=this.inputDate(D);return a()(j).format("DD [-] MMM").replace(/\b[a-z]/,K=>K.toUpperCase())}inputDate(D){return new Date(D)}}return Y.\u0275fac=function(D){return new(D||Y)(m.\u0275\u0275directiveInject(v.EM,16),m.\u0275\u0275directiveInject(v.wK,16))},Y.\u0275pipe=m.\u0275\u0275definePipe({name:"datetransformcustom",type:Y,pure:!0}),Y})(),k=(()=>{class Y{constructor(D){this.translateConfigService=D}transform(D,j,W){const de=this.translateConfigService.getCurrentLang()??"en";a().locale(de);const K=a()(D),ee=a()(j,"HH:mm"),De=a()(W,"HH:mm"),ce=`[${this.translateConfigService.translate("OF_DATE_PIPE")}]`,te=K.format(`DD ${ce} MMM ${ce} YYYY`),ge=ee.format("HH:mm").replace(/\b[a-z]/,Ce=>Ce.toUpperCase()),xe=De.format("HH:mm");return`${te} - ${ge} ${this.translateConfigService.translate("TO_DATE_PIPE")} ${xe}`}}return Y.\u0275fac=function(D){return new(D||Y)(m.\u0275\u0275directiveInject(v.wK,16))},Y.\u0275pipe=m.\u0275\u0275definePipe({name:"dateTimeFormat",type:Y,pure:!1}),Y})(),F=(()=>{class Y{constructor(D){this.translateConfigService=D}transform(D,j="DD [-] MMM"){const W=this.translateConfigService.getCurrentLang()||"en";return a().locale(W),D?a()(D).format(j).replace(/\b[a-z]/,ee=>ee.toUpperCase()):""}}return Y.\u0275fac=function(D){return new(D||Y)(m.\u0275\u0275directiveInject(v.wK,16))},Y.\u0275pipe=m.\u0275\u0275definePipe({name:"shortdate",type:Y,pure:!1}),Y})()},44173:(Ge,$,f)=>{f.d($,{V:()=>g});var o=f(45449);let g=(()=>{class h{transform(L,v){if(!L)return null;const b=/falar com:\s*([^A-Za-z]*[A-Za-z\s]+?)(?=\s*Assunto:)/i,k=/Assunto:\s*([\s\S]*?)\s*(?=Meu contato:)/i,F=/Meu contato:\s*([()\d\s-]+)/i;switch(v){case"name":const Y=L.match(b);return Y?Y[1].trim():null;case"subject":const I=L.match(k);return I?I[1].trim():null;case"contact":const D=L.match(F);return D?D[1].trim():null;default:return null}}}return h.\u0275fac=function(L){return new(L||h)},h.\u0275pipe=o.\u0275\u0275definePipe({name:"extractInfo",type:h,pure:!0}),h})()},31765:(Ge,$,f)=>{f.d($,{I:()=>g});var o=f(45449);let g=(()=>{class h{transform(L,v){return((L?L.substring(0,1):"")+(v?v.substring(0,1):"")).toUpperCase()}}return h.\u0275fac=function(L){return new(L||h)},h.\u0275pipe=o.\u0275\u0275definePipe({name:"getInitials",type:h,pure:!0}),h})()},64921:(Ge,$,f)=>{f.d($,{D:()=>Y});var o=f(90944),m=(f(69927),f(44173),f(31765),f(45449));f(90068),f(47898);let Y=(()=>{class I{}return I.\u0275fac=function(j){return new(j||I)},I.\u0275mod=m.\u0275\u0275defineNgModule({type:I}),I.\u0275inj=m.\u0275\u0275defineInjector({imports:[o.CommonModule]}),I})()},90068:(Ge,$,f)=>{f.d($,{h:()=>b});var o=f(15439),a=f.n(o),m=(f(63692),f(45449)),v=f(18228);let b=(()=>{class k{constructor(Y){this.translateConfigService=Y}transform(Y){if(!Y)return"";const I=a()(Y).startOf("day"),D=a()().startOf("day");if(I.isBefore(D,"day"))return I.format("DD/MM/YYYY");const j=I.diff(D,"days"),W=Math.round(j/7),de=I.diff(D,"months");return console.log("RelativeDatePipe Debug:",{originalValue:Y,targetDate:I.format("YYYY-MM-DD"),now:D.format("YYYY-MM-DD"),diffInDays:j,diffInWeeks:W,diffInMonths:de}),0===j?this.translateConfigService.translate("CONFIGS.NOTIFICATION.WEEKDAYS_TODAY"):1===j?this.translateConfigService.translate("CONFIGS.NOTIFICATION.WEEKDAYS_TOMORROW"):j<7?this.translateConfigService.translate(`CONFIGS.NOTIFICATION.REACTIVATE_OPTIONS.${j}D`)||`${j} days`:j<30&&W<=4?this.translateConfigService.translate(`CONFIGS.NOTIFICATION.REACTIVATE_OPTIONS.${W}W`)||`${W} week${W>1?"s":""}`:1===de?this.translateConfigService.translate("CONFIGS.NOTIFICATION.REACTIVATE_OPTIONS.1M")||"1 month":I.format("DD/MM/YYYY")}}return k.\u0275fac=function(Y){return new(Y||k)(m.\u0275\u0275directiveInject(v.w,16))},k.\u0275pipe=m.\u0275\u0275definePipe({name:"relativeDate",type:k,pure:!1}),k})()},71403:(Ge,$,f)=>{f.d($,{s:()=>te});var o=f(15861),a=f(59584),g=f(61737),h=f(68896),m=f(21086),L=f(24850),v=f(27221),b=f(59973),k=f(72986),F=f(26582),Y=f(22868),I=f(18583),D=f(87545),j=f(41177);function W(ge,xe=Number.POSITIVE_INFINITY,he){return xe=(xe||0)<1?Number.POSITIVE_INFINITY:xe,Le=>Le.lift(new de(ge,xe,he))}class de{constructor(xe,he,Le){this.project=xe,this.concurrent=he,this.scheduler=Le}call(xe,he){return he.subscribe(new K(xe,this.project,this.concurrent,this.scheduler))}}class K extends j.Ds{constructor(xe,he,Le,Ce){super(xe),this.project=he,this.concurrent=Le,this.scheduler=Ce,this.index=0,this.active=0,this.hasCompleted=!1,Le<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(xe){const{subscriber:he,result:Le,value:Ce,index:ie}=xe;he.subscribeToProjection(Le,Ce,ie)}_next(xe){const he=this.destination;if(he.closed)return void this._complete();const Le=this.index++;if(this.active<this.concurrent){he.next(xe);try{const{project:Ce}=this,ie=Ce(xe,Le);this.scheduler?this.destination.add(this.scheduler.schedule(K.dispatch,0,{subscriber:this,result:ie,value:xe,index:Le})):this.subscribeToProjection(ie,xe,Le)}catch(Ce){he.error(Ce)}}else this.buffer.push(xe)}subscribeToProjection(xe,he,Le){this.active++,this.destination.add((0,j.ft)(xe,new j.IY(this)))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(xe){this._next(xe)}notifyComplete(){const xe=this.buffer;this.active--,xe&&xe.length>0&&this._next(xe.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var ee=f(92821),De=f(92340),Te=f(45449),ce=f(43807),oe=f(35929);let te=(()=>{class ge{constructor(he,Le,Ce){this.http=he,this.appVersionService=Le,this.environmentSwitcher=Ce,this.baseUrl="",this.voBaseUrl="",this.lgBaseUrl="",this.idValidatorServiceEndPoint="/services/idvalidator",this.idValidatorSecurytVersionEndpoint="/api/idvalidator",this.uaaMobileServiceEndPoint="/services/uaamobile",this.getBaseUrl=()=>this.baseUrl,this.getVoBaseUrl=()=>this.voBaseUrl,this.getLgBaseUrl=()=>this.lgBaseUrl,this.accountDelete=ie=>{const se={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"bearer "+ie})};return this.http.delete(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account",se)},this.objectToQueryString=ie=>Object.keys(ie).map(se=>`${encodeURIComponent(se)}=${encodeURIComponent(ie[se])}`).join("&"),this.updateUrls(),this.environmentSwitcher.environment$.subscribe(ie=>{ie&&this.updateUrls()}),this.getVersionNumber()}updateUrls(){const he=this.environmentSwitcher.getCurrentEnvironment();this.baseUrl=he.protocol+"://"+he.url+":"+he.port,this.voBaseUrl=he.vo_protocol+"://"+he.vo_url+":"+he.vo_port,this.lgBaseUrl=he.lg_protocol+"://"+he.lg_url+":"+he.lg_port}verifyNameDocumentMatch(he,Le,Ce,ie){const se={document:he,firstName:Le,lastName:Ce},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Accept:"application/json",Authorization:"Bearer "+ie})};return this.http.post(this.lgBaseUrl+this.idValidatorServiceEndPoint+"/api/identifyvalidator/match",se,me)}verifyDocument(he){const Le={document:he},Ce=this.httpOptionsHeadersNoToken();return this.http.post(`${this.baseUrl}${this.uaaMobileServiceEndPoint}${this.idValidatorSecurytVersionEndpoint}`,Le,Ce)}verifyForeignDocument(he){const Le={document:he},Ce=this.httpOptionsHeadersNoToken();return this.http.post(`${this.baseUrl}${this.uaaMobileServiceEndPoint}${this.idValidatorSecurytVersionEndpoint}/foreign/check/document`,Le,Ce)}verifyFullName(he,Le,Ce,ie){const se={document:he,firstName:Le,lastName:Ce,foreign:ie},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(`${this.baseUrl}${this.uaaMobileServiceEndPoint}${this.idValidatorSecurytVersionEndpoint}/match/app`,se,me)}verifyForeignFullName(he,Le,Ce,ie){const se={document:he,firstName:Le,lastName:Ce,foreign:ie},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(`${this.baseUrl}${this.uaaMobileServiceEndPoint}${this.idValidatorSecurytVersionEndpoint}/match/app`,se,me)}verifyNameDocumentMatchAll(he,Le,Ce){const ie=[{document:he,name:Le}],se={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Accept:"application/json",Authorization:"Bearer "+Ce})};return this.http.post(this.lgBaseUrl+this.idValidatorServiceEndPoint+"/api/foreign/simple-match-all",ie,se).pipe((0,L.U)(me=>me[0]),(0,v.K)(me=>me))}accountCheck(he,Le,Ce=!1){const ie={deviceId:he,document:Le,foreigner:Ce},se=this.httpOptionsHeadersNoToken();return this.http.post(`${this.baseUrl}${this.uaaMobileServiceEndPoint}/api/v2/account/check`,ie,se)}account(he){const Le=this.httpOptionsHeadersToken(he);return this.http.get(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/",Le)}accountRegister(he,Le,Ce,ie,se,me,Ne="",_e=!1){const we={deviceId:he,document:Le,firstName:Ce,lastName:ie,email:se,langKey:me,companyInvite:Ne,foreigner:_e},Ee={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(`${this.baseUrl}${this.uaaMobileServiceEndPoint}/api/v2/account/register`,we,Ee)}accountActivate(he,Le,Ce,ie=!1){const se={key:he,deviceId:Le,document:Ce,foreigner:ie},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.get(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/activate?"+this.objectToQueryString(se),me)}accountDeviceResetInit(he,Le,Ce=!1,ie){const se={deviceId:he,document:Le,foreigner:Ce},me=this.httpOptionsHeadersNoToken();return ie&&ie?.refId?this.resetPinInit({deviceId:he,foreigner:Ce,refId:ie.refId,firstName:ie.firstName,email:ie.email,langKey:ie.langKey,resetKey:ie.resetKey,document:Le}):this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/device-reset/init",se,me)}accountDeviceMailessResetInit(he,Le,Ce=!1){const ie={deviceId:he,document:Le,foreigner:Ce},se={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/device-reset/mailess-init",ie,se)}accountDeviceResetFinish(he,Le,Ce,ie=!1){const se={key:he,deviceId:Le,document:Ce,foreigner:ie},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/device-reset/finish",se,me)}confirmDeleteAccount(he){const Le={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"bearer "+he})};return this.http.delete(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account",Le).pipe((0,b.X)(3))}removeCompanyAssociation(he){const Le={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/invite/remove/"+he,{companyInstance:he},Le).pipe((0,k.q)(1),(0,b.X)(3))}updateEmail(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/users/update-mail-init",{email:he,refId:Le},Ce)}updateEmailFinish(he){const Le={resetKey:he.verificationCode,email:he.email,refId:he.refId},Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/users/update-mail-finish",Le,Ce)}resetPinInit(he){const Le={refId:he.refId,firstName:he.firstName,email:he.email,langKey:he.langKey,timeZoneOffset:-180,document:he.document,resetKey:he.resetKey,deviceId:he?.deviceId,foreigner:he?.foreigner},Ce=this.httpOptionsHeadersNoToken();return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/pins/reset-init",Le,Ce)}resetPinFinish(he){const Le={newHashedPin:he.newHashedPin,key:he.resetKey},Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/pins/reset-finish",Le,Ce)}getToken(he,Le,Ce,ie=!1){const se={deviceId:he,document:Le,hashedPin:Ce,foreigner:ie},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+"/auth/login",se,me)}getSabugo(){const he={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.get(this.baseUrl+"/api/qrcode/generate/raw",he)}getPrivacyPolicy(he){switch(he){case"pt":he="pt-br";break;case"en":he="en-us";break;case"es":he="es"}const Le={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.get(`${this.baseUrl}/api/terms/company-privacy-policy/?lang=${he}`,Le)}sendMobileToken(he){const Le={mobileToken:he},Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/notify-token",Le,Ce)}getPendingReleases(){const he={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.get(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/pending-releases",he).pipe((0,F.a)(Le=>Le.pipe((0,Y.b)(Ce=>console.log("Retry attempt for pending-releases:",Ce.status)),(0,I.g)(1e3),(0,k.q)(4))),(0,L.U)(Le=>Le&&Array.isArray(Le)?Le:[]),(0,v.K)(Le=>(console.error("getPendingReleases failed after retries:",Le),(0,g._)(()=>Le))))}getPendingEvents(){const he={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.get(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/pending-events",he).pipe((0,F.a)(Le=>Le.pipe((0,Y.b)(Ce=>console.log("Retry attempt for pending-events:",Ce.status)),(0,I.g)(1e3),(0,k.q)(4))),(0,L.U)(Le=>Le&&Array.isArray(Le)?Le:[]),(0,v.K)(Le=>(console.error("getPendingEvents failed after retries:",Le),(0,g._)(()=>Le))))}getPendings(){const he={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.get(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/pending-count",he)}getpendingsReleasesExists(){const he={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.get(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/pending-releases/exists",he)}getSelfReleaseLocator(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(this.getLgBaseUrl()+"/services/"+he+"/api/settings/self-release-locator",Ce).pipe((0,F.a)(ie=>ie.pipe((0,Y.b)(se=>console.log("Retry attempt for self-release-locator:",se.status)),(0,I.g)(1e3),(0,k.q)(4))),(0,L.U)(ie=>(console.warn("[DEBUG getSelfReleaseLocator] RAW response:",JSON.stringify(ie)),ie)),(0,v.K)(ie=>(console.error("getSelfReleaseLocator failed after retries:",ie),(0,g._)(()=>ie))))}doMobileRelease(he,Le,Ce,ie,se){const me={siteInstance:he,companyInstance:Le,locator:Ce,eventId:ie,inviteId:se},Ne={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/account/pending-releases/authorize",me,Ne).pipe((0,F.a)(_e=>_e.pipe((0,Y.b)(we=>console.log("Retry attempt for pending-releases/authorize",we.status)),(0,I.g)(1e3),(0,k.q)(4))),(0,L.U)(_e=>_e&&Array.isArray(_e)?_e:[]),(0,v.K)(_e=>(console.error("doMobileRelease failed after retries:",_e),(0,g._)(()=>_e))))}doLogisticDenySelfInviteWithLocator(he,Le,Ce,ie,se,me){const Ne={geoCoordinates:{lat:Ce,lng:ie},notApprovedNotes:se},_e={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+me})};return this.http.put(`${this.lgBaseUrl}/services/${he}/api/v2/logistics/do-checkin/${Le}/deny-entry`,Ne,_e).pipe((0,F.a)(Ee=>Ee.pipe((0,Y.b)(le=>console.log("Retry attempt for doLogisticDenySelfInviteWithLocator",le.status)),(0,I.g)(1e3),(0,k.q)(4))),(0,L.U)(Ee=>Ee&&Array.isArray(Ee)?Ee:[]),(0,v.K)(Ee=>(console.error("doLogisticDenySelfInviteWithLocator failed after retries:",Ee),(0,g._)(()=>Ee))))}doLogisticAuthorizeSelfInviteWithLocator(he,Le,Ce,ie,se){const me={lat:Ce,lng:ie},Ne={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+se})};return this.http.put(`${this.lgBaseUrl}/services/${he}/api/v2/logistics/do-checkin/${Le}/allow-entry`,me,Ne).pipe((0,F.a)(we=>we.pipe((0,Y.b)(Ee=>console.log("Retry attempt for doLogisticAuthorizeSelfInviteWithLocator",Ee.status)),(0,I.g)(1e3),(0,k.q)(5))),(0,L.U)(we=>we&&Array.isArray(we)?we:[]),(0,v.K)(we=>(console.error("doLogisticAuthorizeSelfInviteWithLocator failed after retries:",we),(0,g._)(()=>we))))}doLogisticMobileRelease(he,Le,Ce,ie,se){const me={lat:Ce,lng:ie},Ne={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+se})};return this.http.put(`${this.lgBaseUrl}/services/${he}/api/v2/logistics/do-checkin/${Le}/allow-entry`,me,Ne).pipe((0,F.a)(we=>we.pipe((0,Y.b)(Ee=>console.log("Retry attempt for doLogisticMobileRelease",Ee.status)),(0,I.g)(1e3),(0,k.q)(5))),(0,L.U)(we=>we&&Array.isArray(we)?we:[]),(0,v.K)(we=>(console.error("doLogisticMobileRelease failed after retries:",we),(0,g._)(()=>we))))}verifyCoordinates(he,Le,Ce,ie){const se={lat:Le,lng:Ce},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+ie})};return this.http.post(this.lgBaseUrl+"/services/"+he+"/api/geo/verify-coordinates",se,me).pipe((0,F.a)(_e=>_e.pipe((0,Y.b)(we=>console.log("Retry attempt for verifyCoordinates",we.status)),(0,I.g)(1e3),(0,k.q)(5))),(0,v.K)(_e=>(console.error("verifyCoordinates failed after retries:",_e),(0,g._)(()=>_e))))}checkSoftLock(he,Le,Ce,ie){const me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+ie})};return this.http.post(this.lgBaseUrl+"/services/"+he+"/api/geo/verify-coordinates",{lat:null,lng:null},me).pipe((0,F.a)(_e=>_e.pipe((0,Y.b)(we=>console.log("Retry attempt for checkSoftLock",we.status)),(0,I.g)(1e3),(0,k.q)(5))),(0,v.K)(_e=>(console.error("checkSoftLock failed after retries:",_e),(0,g._)(()=>_e))))}getInvite(he,Le,Ce){const ie={locator:he,invitationKey:Le},se={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.get(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/v2/invite?"+this.objectToQueryString(ie),se).pipe((0,F.a)(me=>me.pipe((0,Y.b)(Ne=>console.log("Retry attempt for getInvite",Ne.status)),(0,I.g)(1e3),(0,k.q)(5))),(0,v.K)(me=>(console.error("getInvite failed after retries:",me),(0,g._)(()=>me))))}validateCompanyInviteCode(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(`${this.baseUrl}${this.uaaMobileServiceEndPoint}/api/invite/${he}`,Ce)}validateInvite(he,Le,Ce,ie=!1){const se={locator:he,invitationKey:Le,foreigner:ie},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/invite/validate",se,me)}acceptInvite(he,Le,Ce,ie){const se={locator:he,invitationKey:Le,origin:Ce},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+ie})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/invite/accept",se,me)}rejectInvite(he,Le,Ce,ie){const se={locator:he,invitationKey:Le,origin:Ce},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+ie})};return this.http.post(this.baseUrl+this.uaaMobileServiceEndPoint+"/api/invite/reject",se,me)}getUserProfiles(he,Le){const Ce={portal:he,appVersion:this.appVersionNumber},ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.post(this.baseUrl+"/auth/v3/profiles",Ce,ie).pipe((0,F.a)(se=>se.pipe((0,Y.b)(me=>console.log("Retry attempt for getUserProfiles",me.status)),(0,I.g)(1e3),(0,k.q)(5))),(0,L.U)(se=>Array.isArray(se)?se.filter(Ne=>Ne?.company):[]))}getTranslateRolesProfile(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.post(this.baseUrl+"/auth/v3/profiles/translate",he,Ce)}getVersionNumber(){var he=this;return(0,o.Z)(function*(){const Le=De.N.appInfo.version;try{he.appVersionNumber=yield he.appVersionService.getVersionNumber()}catch{he.appVersionNumber=Le}})()}getUserProfileLogin(he,Le,Ce){const se={login:he,portal:Le,appVersion:this.appVersionNumber},me={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return console.log(se),this.http.post(this.baseUrl+"/auth/login/portal/",se,me).pipe((0,b.X)(3),(0,v.K)(Ne=>{if(0===Ne.status||401===Ne.status){const _e=`Request error after 3 attempts. Status code was ${Ne.status} ${JSON.stringify(Ne)}`;return(0,g._)(_e)}return(0,g._)(Ne)}),(0,L.U)(Ne=>Ne))}createEvent(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.post(this.voBaseUrl+"/services/"+Le+"/api/events",he,ie)}createEventV2(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})},me=`${this.voBaseUrl}/services/${Le}/api/events/async/by-id/`,Ne=`${this.voBaseUrl}/services/${Le}/api/events/async/by-id/`;return this.http.post(`${this.voBaseUrl}/services/${Le}/api/events/async`,he,ie).pipe((0,D.w)(_e=>{if(!_e?.id)return(0,g._)(()=>new Error("ID n\xe3o retornado na resposta POST."));const we=Ee=>this.http.get(me+Ee,ie);return we(_e.id).pipe(W(Ee=>Ee.done?h.E:(0,m.of)(Ee).pipe((0,I.g)(2e3),(0,D.w)(()=>we(_e.id)))),(0,ee.h)(1),(0,D.w)(()=>this.http.get(Ne+_e.id+"/event",ie)),(0,v.K)(Ee=>(console.error("Erro ao verificar status ou obter evento completo:",Ee),(0,g._)(()=>Ee))))}))}updateEventV2(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})},me=`${this.voBaseUrl}/services/${Le}/api/events/async/by-id/`,Ne=`${this.voBaseUrl}/services/${Le}/api/events/async/by-id/`;return this.http.put(`${this.voBaseUrl}/services/${Le}/api/v3/events/async`,he,ie).pipe((0,D.w)(_e=>{if(!_e?.id)return(0,g._)(()=>new Error("ID n\xe3o retornado na resposta POST."));const we=Ee=>this.http.get(me+Ee,ie);return we(_e.id).pipe(W(Ee=>Ee.done?h.E:(0,m.of)(Ee).pipe((0,I.g)(2e3),(0,D.w)(()=>we(_e.id)))),(0,ee.h)(1),(0,D.w)(()=>this.http.get(Ne+_e.id+"/event",ie)),(0,v.K)(Ee=>(console.error("Erro ao verificar status ou obter evento completo:",Ee),(0,g._)(()=>Ee))))}))}updateEventAsync(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})},me=`${this.voBaseUrl}/services/${Le}/api/events/async/by-id/`,Ne=`${this.voBaseUrl}/services/${Le}/api/events/async/by-id/`;return this.http.put(`${this.voBaseUrl}/services/${Le}/api/events/async`,he,ie).pipe((0,D.w)(_e=>{if(!_e?.id)return(0,g._)(()=>new Error("ID n\xe3o retornado na resposta POST."));const we=Ee=>this.http.get(me+Ee,ie);return we(_e.id).pipe(W(Ee=>Ee.done?h.E:(0,m.of)(Ee).pipe((0,I.g)(2e3),(0,D.w)(()=>we(_e.id)))),(0,ee.h)(1),(0,D.w)(()=>this.http.get(Ne+_e.id+"/event",ie)),(0,v.K)(Ee=>(console.error("Erro ao verificar status ou obter evento completo:",Ee),(0,g._)(()=>Ee))))}))}updateEvent(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.put(this.voBaseUrl+"/services/"+Le+"/api/v3/events/vo",he,ie)}authorizeEvent(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.put(this.voBaseUrl+"/services/"+Le+"/api/do-events/"+he.id+"/authorize",he,ie)}denyEvent(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.put(this.voBaseUrl+"/services/"+Le+"/api/events/"+he.id+"/deny",he,ie)}authorizeLogisticEvent(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.put(`${this.lgBaseUrl}/services/${Le}/api/v2/logistics/do-events/${he.id}/authorize`,he,ie)}denyLogisticEvent(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.put(`${this.voBaseUrl}/services/${Le}/api/logistics/events/${he.id}/deny`,he,ie)}createGuest(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.post(this.voBaseUrl+"/services/"+Le+"/api/visitors",he,ie)}createPrivateGuest(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.post(this.voBaseUrl+"/services/"+Le+"/api/visitors/hidden",he,ie)}updatePrivateGuest(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Ce})};return this.http.put(this.voBaseUrl+"/services/"+Le+"/api/visitors/hidden",he,ie)}getCompanyGroups(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(this.voBaseUrl+"/services/"+he+"/api/groups/vo",Ce)}getCompanyFloors(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(this.voBaseUrl+"/services/"+he+"/api/floors/?code.specified=true&size=1000",Ce)}getCompanyUser(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return Ce=this.objectToQueryString(Ce),this.http.get(this.voBaseUrl+"/services/"+he+"/api/people/vo?"+Ce,ie)}getCompanyUsers(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return Ce=this.objectToQueryString(Ce),this.http.get(this.voBaseUrl+"/services/"+he+"/api/people/vo?"+Ce,ie)}getCompanyVisitors(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return Ce=this.objectToQueryString(Ce),this.http.get(this.voBaseUrl+"/services/"+he+"/api/visitors?"+Ce,ie)}getCompanyUserPrivateVisitors(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(this.voBaseUrl+"/services/"+he+"/api/visitors/byPhone/"+Ce,ie)}getLogisticsUserThumbnailPhotoOfPendingInviteApproval(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(this.voBaseUrl+"/services/"+he+"/api/invite-pending-approvals/"+Ce+"/thumbnail",ie)}getUserThumbnailPhotoOfPendingRelease(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(this.voBaseUrl+this.idValidatorServiceEndPoint+"/api/photos/"+Ce+"/thumbnail",ie)}getUserThumbnailPhoto(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+he})};return this.http.get(`${this.baseUrl}/services/uaamobile/api/photos/${Le}/thumbnail/colaborator`,Ce)}updatePhoto(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+he})};return this.http.post(`${this.baseUrl}/services/uaamobile/api/photos`,{faceImage:Le.faceImage,colaborator:Le.colaborator,faceImageContentType:"png",refId:Le.refId,validated:Le.validated},Ce)}setLangulageAccount(he,Le){const Ce={langKey:he},ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.put(`${this.baseUrl}${this.uaaMobileServiceEndPoint}/api/account/change-language`,Ce,ie)}getSettingsByCompanyName(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(`${this.voBaseUrl}/services/${he}/api/settings`,Ce).pipe((0,b.X)(3),(0,L.U)(se=>Array.isArray(se)&&se?.length>0?se[0]:null))}parkingTypesGetAll(he,Le){const Ce={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(`${this.voBaseUrl}/services/${he}/api/parking-types/get-all`,Ce)}parkingTypesListOccupations(he,Le,Ce,ie=10){const se={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(`${this.lgBaseUrl}/services/${he}/api/parking-types/list-occupations?parkingTypeId=${Ce}&size=${ie}`,se)}parkingGetSettingsModulesByCompanyID(he,Le,Ce){const ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Le})};return this.http.get(`${this.voBaseUrl}/services/${he}/api/companies/${Ce}`,ie)}getNotificationsConfiguration(){const he={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})},Le=`${this.baseUrl}${this.uaaMobileServiceEndPoint}/api/configurations/notifications`;return console.log("url",Le),this.http.get(Le,he).pipe((0,b.X)(3))}updateNotificationsConfiguration(he){const Le={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(`${this.baseUrl}${this.uaaMobileServiceEndPoint}/api/configurations/notifications`,he,Le)}hasBannnerLog(he){return this.http.post(`${this.baseUrl}/services/uaamobile/api/banner/hasLog/${he}`,{}).pipe((0,b.X)(3))}httpOptionsHeadersNoToken(){return{headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Accept:"application/json"})}}httpOptionsHeadersToken(he){return{headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+he})}}}return ge.\u0275fac=function(he){return new(he||ge)(Te.\u0275\u0275inject(a.HttpClient),Te.\u0275\u0275inject(ce.h),Te.\u0275\u0275inject(oe.V))},ge.\u0275prov=Te.\u0275\u0275defineInjectable({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})()},43807:(Ge,$,f)=>{f.d($,{h:()=>v});var o=f(15861),a=f(35548),g=f(47423),h=f(92340),m=f(45449);let v=(()=>{class b{constructor(){this.plataform=g.dV.getPlatform(),this.hasAndroid="android"===this.plataform,this.hasIOS="ios"===this.plataform,this.hasWeb="web"===this.plataform}getVersionNumber(){var F=this;return(0,o.Z)(function*(){let Y=null;try{return Y=F.hasWeb?h.N.appInfo.version:(yield a.g.getInfo()).version,Y}catch{return Y}})()}getBuildVersion(){var F=this;return(0,o.Z)(function*(){let Y=null;if(!F.hasWeb){try{Y=(yield a.g.getInfo()).build}catch{return Y}return Y}Y=F.hasAndroid?h.N.appInfo.androidVersionCode:h.N.appInfo.iosCFBundleVersion})()}}return b.\u0275fac=function(F){return new(F||b)},b.\u0275prov=m.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},10629:(Ge,$,f)=>{f.d($,{e:()=>L});var o=f(15861),a=f(45449),h=f(49533),m=f(1303);let L=(()=>{class v{constructor(k,F){var Y=this;this.cryptoService=k,this.storageService=F,this.oneSecond=1e3,this.oneMinute=60*this.oneSecond,this.oneHour=60*this.oneMinute,this.intervalOfTimeToLock=12*this.oneHour,this.intervalOfTimeToRenewToken=6*this.oneHour,this.intervalOfTimeToConsiderInvalidToken=24*this.oneHour,this.isAuthenticated=()=>new Promise((I,D)=>{this.storageService.ready().then(j=>!0===j?this.storageService.get("logged"):Promise.resolve(!1)).then(j=>{I(!!j)}).catch(()=>{D(!1)})}),this.setAuthenticated=()=>this.storageService.set("logged","true"),this.needsToValidate=()=>{const I=Date.now();return new Promise((D,j)=>{this.storageService.ready().then(W=>{if(!0===W)return this.storageService.get("lastAccessAt")}).then(W=>{D(I-W>this.intervalOfTimeToLock)}).catch(W=>{console.log("error:",W),j(!1)})})},this.isExpiredToken=(0,o.Z)(function*(){try{if(!(yield Y.storageService.ready()))return!0;const D=yield Y.storageService.get("tokenGeneratedAt");return!D||Date.now()-D>Y.intervalOfTimeToConsiderInvalidToken}catch{return!0}}),this.validatePassword=(I,D)=>{let j=null;return new Promise((W,de)=>{this.storageService.ready().then(K=>!0===K?this.storageService.get("e2872ebbbf66ce5458a11804be66f215ef42d4ce"):Promise.resolve("")).then(K=>(j=K,this.cryptoService.digest(I))).then(K=>{W(!!D||j===K)}).catch(K=>{de(K)})})},this.updateLastAccessAt=()=>this.storageService.set("lastAccessAt",Date.now()),this.updateTokenGeneratedAt=()=>this.storageService.set("tokenGeneratedAt",Date.now()),this.updateSabugoGeneratedAt=()=>this.storageService.set("sabugoGeneratedAt",Date.now()),this.getSabugoGeneratedAt=()=>this.storageService.get("sabugoGeneratedAt"),this.setUUID=I=>this.storageService.set("755dadc3d657cb867ef18bd00ced450787d0376b",I),this.getUUID=(0,o.Z)(function*(){return Y.storageService.get("755dadc3d657cb867ef18bd00ced450787d0376b")}),this.setDocument=I=>this.storageService.set("97650920aa3ba11e34f2fc21b8ced2b1703f377f",I),this.getDocument=()=>this.storageService.get("97650920aa3ba11e34f2fc21b8ced2b1703f377f"),this.setRefId=I=>this.storageService.set("1a4a8f1defc6939f1517194dc75df258ec1458e7",I),this.getRefId=()=>this.storageService.get("1a4a8f1defc6939f1517194dc75df258ec1458e7"),this.setToken=I=>this.storageService.set("11b0537e9bf92e4dc1abdc83ea5d4c220508a07f",I),this.getToken=()=>this.storageService.get("11b0537e9bf92e4dc1abdc83ea5d4c220508a07f"),this.clearToken=()=>this.storageService.remove("11b0537e9bf92e4dc1abdc83ea5d4c220508a07f"),this.setSabugo=I=>this.storageService.set("b6484d800e3e0aa6a899a51861862ac60262222c",I),this.getSabugo=()=>this.storageService.get("b6484d800e3e0aa6a899a51861862ac60262222c"),this.clearSabugo=()=>this.storageService.remove("b6484d800e3e0aa6a899a51861862ac60262222c"),this.setForeigner=I=>this.storageService.set("cc13dca320488753a8b4111d77ab1f5be93cf9fe",I),this.getForeigner=(0,o.Z)(function*(){return Y.storageService.get("cc13dca320488753a8b4111d77ab1f5be93cf9fe")}),this.setLogOff=I=>this.storageService.set("logOff",I),this.getLogOff=()=>this.storageService.get("logOff"),this.setSabugoValitTimeInSeconds=I=>this.storageService.set("sabugoValitTimeInSeconds",I),this.getSabugoValitTimeInSeconds=()=>this.storageService.get("sabugoValitTimeInSeconds"),this.setPlatformEpochSecond=I=>this.storageService.set("platformEpochSecond",I),this.getPlatformEpochSecond=()=>this.storageService.get("platformEpochSecond"),this.setPlatformAndAppTimeDifference=I=>this.storageService.set("platformAndAppTimeDifference",I),this.getPlatformAndAppTimeDifference=()=>this.storageService.get("platformAndAppTimeDifference"),this.getPasswordHash=()=>this.storageService.get("e2872ebbbf66ce5458a11804be66f215ef42d4ce"),this.register=()=>this.storageService.set("logged",!0),this.unregister=()=>this.storageService.clear()}needsToRenewToken(){var k=this;return(0,o.Z)(function*(){try{if(!(yield k.storageService.ready()))return!0;const Y=yield k.storageService.get("tokenGeneratedAt");return!Y||Date.now()-Y>k.intervalOfTimeToRenewToken}catch{return!1}})()}needsToRenewSabugo(){var k=this;return(0,o.Z)(function*(){try{if(!(yield k.storageService.ready()))return!0;const Y=yield k.getSabugoGeneratedAt(),I=yield k.getSabugoValitTimeInSeconds();if(!Y||!I)return!0;return Date.now()-Y>1e3*I/4}catch{return!0}})()}isExpiredSabugo(){var k=this;return(0,o.Z)(function*(){try{if(!(yield k.storageService.ready()))return!0;const Y=yield k.getSabugoGeneratedAt(),I=yield k.getSabugoValitTimeInSeconds();return!Y||!I||Date.now()-Y>1e3*I}catch{return!0}})()}setAccount(k){this.storageService.set("account_data",k)}getAccount(){return this.storageService.get("account_data")}clearAccount(){return this.storageService.remove("account_data")}setPhoto(k){this.storageService.set("photo_base64",k)}getPhoto(){return this.storageService.get("photo_base64")}clearPhoto(){return this.storageService.remove("photo_base64")}}return v.\u0275fac=function(k){return new(k||v)(a.\u0275\u0275inject(h.$),a.\u0275\u0275inject(m.V))},v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},55832:(Ge,$,f)=>{f.d($,{l:()=>F});var o=f(59584),g=f(92340),h=f(21086),m=f(24850),L=f(27221),v=f(45449),k=f(47898);let F=(()=>{class Y{constructor(D,j,W,de,K,ee){this.http=D,this.logService=j,this.portalLoginManagerService=W,this.profileManagerService=de,this.authService=K,this.apiService=ee,this.baseUrl=g.N.protocol+"://"+g.N.url+":"+g.N.port,this.voBaseUrl=g.N.vo_protocol+"://"+g.N.vo_url+":"+g.N.vo_port,this.lgBaseUrl=g.N.lg_protocol+"://"+g.N.lg_url+":"+g.N.lg_port,this.objectToQueryString=De=>Object.keys(De).map(Te=>`${encodeURIComponent(Te)}=${encodeURIComponent(De[Te])}`).join("&")}getActiveBookings(D,j,W){const K={paransPa:{page:W.page,"date.in":W["date.in"],"duration.equals":W["duration.equals"],"locationId.equals":W["locationId.equals"],"siteId.equals":W["siteId.equals"],size:W.size},headers:new o.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+j})};return this.http.get(`${this.voBaseUrl}/services/${D}/api/assets/by-criteria-filtered`,K)}getSettings(D,j){const W={headers:new o.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+j})};return this.http.get(`${this.voBaseUrl}/services/${D}/api/settings`,W)}contactUs(D,j){const W={headers:new o.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+j})};return this.http.post(`${this.voBaseUrl}/api/contact-us/bk`,D,W)}getTokenPortalProfile(D,j){return new Promise((W,de)=>{if(!(D&&D.portal&&D.login&&j))return de();this.portalLoginManagerService.getAccessToken(D.login,D.portal,j).then(K=>W(K)).catch(K=>(this.logService.logError("getTokenPortalProfile::getAccessToken","Erro portalLoginManagerService service",K),de(K)))})}selectService(D,j){const W=this.profileManagerService.getProfile();return new Promise((de,K)=>{this.authService.getToken().then(ee=>this.portalLoginManagerService.getAccessToken(W.login,W.portal,ee)).then(ee=>{const De=W.company.instanceName,Te=ee.access_token;switch(D){case"site":return this.sitesFiltered(De,Te).subscribe(de,K);case"by_criteria_filter":return this.byCriteriaFiltered(De,Te,j).subscribe(de,K);case"contactUs":return console.log(j),this.contactUs(j,Te).subscribe(de,K);case"bookeisInEventDetail":return console.log(j),this.getBookeisInEventDetail(De,Te,j).subscribe(de,K)}}).catch(ee=>K(ee))})}sitesFiltered(D,j){const W={headers:new o.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+j})};return this.http.get(`${this.voBaseUrl}/services/${D}/api/sites/filtered`,W).pipe((0,m.U)(K=>K),(0,L.K)(K=>(0,h.of)(K)))}byCriteriaFiltered(D,j,W){const de={headers:new o.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+j})},K=this.objectToQueryString(W);return this.http.get(`${this.voBaseUrl}/services/${D}/api/assets/by-criteria-filtered?${K}`,de)}getBookeisInEventDetail(D,j,W){const de={headers:new o.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+j})};return this.http.get(`${this.voBaseUrl}/services/${D}/api/bookeis/${W}/event`,de)}httpOptions(D){return{headers:new o.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+D})}}}return Y.\u0275fac=function(D){return new(D||Y)(v.\u0275\u0275inject(o.HttpClient),v.\u0275\u0275inject(k.$V),v.\u0275\u0275inject(k.dj),v.\u0275\u0275inject(k.v4),v.\u0275\u0275inject(k.e8),v.\u0275\u0275inject(k.sM))},Y.\u0275prov=v.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})()},39961:(Ge,$,f)=>{f.d($,{E:()=>I});var o=f(15861),a=f(59584),h=f(92340),m=f(591),L=f(21086),v=f(22868),b=f(24850),k=f(27221),F=f(45449);let I=(()=>{class D{constructor(W){this.http=W,this.locator$=new m.X(""),this.context$=new m.X(""),this.env=h.N,this.env=h.N}checkViabilityMfe(W){var de=this;return(0,o.Z)(function*(){return console.log("DEBUG BootstrapWcService","checkViabilityMfe",W),de.http.get(`${h.N.protocol}://${h.N.url}/api/locator/${W}/base-platform-url/wcApp`,{headers:{cache:"no-cache",pragma:"no-cache"},responseType:"text"}).pipe((0,v.b)(De=>{console.log("DEBUG BootstrapWcService are you here?","checkViabilityMfe",De)})).toPromise()})()}getBasePlatformUrl(W){if(!W)return(0,L.of)("/default/");const de=this.determineHost();return this.getBasePlatformUrlByLocator(W,de).pipe((0,b.U)(K=>{if(console.log("baseUrl",K),!K)return this.context$.next("/default/"),"/default/";let ee=K;return ee.endsWith("/")||(ee+="/"),ee}),(0,v.b)(K=>this.context$.next(K)),(0,k.K)(K=>(this.context$.next("/default/"),(0,L.of)("/default/"))))}getBasePlatformUrlByLocator(W,de){const ee=`https://${de}/services/locator/api/locator/${W}/base-platform-url`,De=new a.HttpHeaders({pragma:"no-cache","cache-control":"no-cache"});return this.http.get(ee,{responseType:"text",headers:De}).pipe((0,b.U)(Te=>Te),(0,k.K)(()=>(0,L.of)("/default/")))}getContextByLocator(){return console.log("getContextByLocator",this.context$.getValue()),this.context$.getValue()}determineHost(){return this.getDefaultHostForEnvironment()}getDefaultHostForEnvironment(){switch(this.env.type){case"prod":return"visitante.in";case"homol":return"h.visitante.in";case"dev":return"sectotemvirtual.cloud.olimpia"}}}return D.\u0275fac=function(W){return new(W||D)(F.\u0275\u0275inject(a.HttpClient))},D.\u0275prov=F.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},49533:(Ge,$,f)=>{f.d($,{$:()=>g});var o=f(45449);let g=(()=>{class h{constructor(){this.defaultAlgorithm="SHA-512",this.digest=(L,v)=>new Promise((b,k)=>{v||(v=this.defaultAlgorithm);const F=(new TextEncoder).encode(L);this.crypto.digest(v,F).then(Y=>{const D=Array.from(new Uint8Array(Y)).map(j=>j.toString(16).padStart(2,"0")).join("");b(D)}).catch(k)}),this.encrypt=()=>{},this.decrypt=()=>{},this.crypto=window.crypto.subtle}}return h.\u0275fac=function(L){return new(L||h)},h.\u0275prov=o.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},29946:(Ge,$,f)=>{f.d($,{N:()=>h});var o=f(591),a=f(45449);let h=(()=>{class m{constructor(){this.logs=[],this.maxLogs=500,this.logsSubject=new o.X([]),this.logs$=this.logsSubject.asObservable(),this.originalConsole={log:console.log,info:console.info,warn:console.warn,error:console.error}}initialize(){this.interceptConsole(),console.log("[DebugConsole] Inicializado")}interceptConsole(){console.log=(...v)=>{this.originalConsole.log.apply(console,v),this.addLog("log",this.formatArgs(v))},console.info=(...v)=>{this.originalConsole.info.apply(console,v),this.addLog("info",this.formatArgs(v))},console.warn=(...v)=>{this.originalConsole.warn.apply(console,v),this.addLog("warn",this.formatArgs(v))},console.error=(...v)=>{this.originalConsole.error.apply(console,v),this.addLog("error",this.formatArgs(v),this.getStackTrace())},window.addEventListener("error",v=>{this.addLog("error",`Uncaught Error: ${v.message}`,v.error?.stack)}),window.addEventListener("unhandledrejection",v=>{this.addLog("error",`Unhandled Promise Rejection: ${v.reason}`,v.reason?.stack)})}addLog(v,b,k,F){const Y={id:this.generateId(),timestamp:new Date,level:v,message:b,stack:k,data:F};this.logs.push(Y),this.logs.length>this.maxLogs&&this.logs.shift(),this.logsSubject.next([...this.logs])}addHttpLog(v,b,k,F,Y,I,D){this.addLog(D?"error":k>=400?"warn":"http",`${v} ${b} - ${k} (${F}ms)`,D?.stack,{method:v,url:b,status:k,duration:F,request:Y,response:I,error:D})}getLogs(){return[...this.logs]}clearLogs(){this.logs=[],this.logsSubject.next([]),console.log("[DebugConsole] Logs limpos")}exportLogs(){return JSON.stringify(this.logs,null,2)}formatArgs(v){return v.map(b=>{if("object"==typeof b)try{return JSON.stringify(b,null,2)}catch{return String(b)}return String(b)}).join(" ")}getStackTrace(){try{throw new Error}catch(v){return v.stack||""}}generateId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275prov=a.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},11814:(Ge,$,f)=>{f.d($,{r:()=>L});var o=f(15861),a=f(47423);const g=(0,a.fo)("Contacts",{web:()=>f.e(627).then(f.bind(f,627)).then(v=>new v.ContactsWeb)});var h=f(45449),m=f(47898);let L=(()=>{class v{constructor(k){this.logTron=k}pickContact(){var k=this;return(0,o.Z)(function*(){if(!a.dV.isNativePlatform())throw new Error("Run in device");const F={projection:{birthday:!1,emails:!0,name:!0,phones:!0}};try{let Y=yield g.checkPermissions();if((!Y||"prompt"===Y.contacts||"prompt-with-rationale"===Y.contacts)&&(Y=yield g.requestPermissions()),"granted"!==Y.contacts)throw new Error("Permiss\xe3o de contatos negada pelo usu\xe1rio.");return yield g.pickContact(F)}catch(Y){return k.logTron.logError("DeviceContactsService::pickContact","Error picking contact",Y),Y}})()}}return v.\u0275fac=function(k){return new(k||v)(h.\u0275\u0275inject(m.$V))},v.\u0275prov=h.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},7389:(Ge,$,f)=>{f.d($,{H:()=>L});var o=f(15861),a=f(47423);const g=(0,a.fo)("Device",{web:()=>f.e(9590).then(f.bind(f,39590)).then(v=>new v.DeviceWeb)});var h=f(45449),m=f(21284);let L=(()=>{class v{constructor(k){var F=this;this.stateService=k,this.smallDeviceMaxHeight=598,this.ultaSmallDeviceMaxHeight=540,this.mediumSmallDeviceMaxHeight=640,this.isIOS=!1,this.isAndroid=!1,this.setDeviceHeight=Y=>{this.deviceHeight=Y},this.getDeviceHeight=()=>this.deviceHeight,this.isSmallScreen=()=>this.deviceHeight<=this.smallDeviceMaxHeight,this.isUltraSmallScreen=()=>this.deviceHeight<=this.ultaSmallDeviceMaxHeight,this.isMediumSmallScreen=()=>this.deviceHeight<=this.mediumSmallDeviceMaxHeight,this.getIframeHeight=()=>{const Y=this.getAvailableHeight();return Y>850?300:Y>740?260:245},this.getIframeHeightStyle=()=>`${this.getIframeHeight()}px`,this.getHeightToolbar=()=>{const Y=typeof document<"u"?document.documentElement.getAttribute("mode"):null;return this.isIOS&&"ios"===Y?44:56},this.getAvailableHeight=()=>{const Y=this.deviceHeight-this.getHeightToolbar();return console.log("getAvailableHeight this.deviceHeight - this.getHeightToolbar()",Y),Y},this.updateDeviceHeightFromWindow=()=>{try{const I=(typeof window<"u"?window:null)?.innerHeight;"number"==typeof I&&I>0&&(this.deviceHeight=I)}catch(Y){console.error("Erro ao atualizar altura do dispositivo:",Y)}},this.getDeviceInfo=(0,o.Z)(function*(){const[Y,I,D,j]=yield Promise.all([F.modelDevice(),F.webViewVersion(),F.osVersion(),F.nameDevice()]),W={model:Y||"",webViewVersion:I||"",osVersion:D||"",name:j||""};return F.stateService.setState({deviceInfo:W}),W}),this.modelDevice=(0,o.Z)(function*(){const{model:Y}=yield g.getInfo();return Y}),this.webViewVersion=(0,o.Z)(function*(){const{webViewVersion:Y}=yield g.getInfo();return Y}),this.osVersion=(0,o.Z)(function*(){const{osVersion:Y}=yield g.getInfo();return Y}),this.nameDevice=(0,o.Z)(function*(){const{name:Y}=yield g.getInfo();return Y}),this.getDeviceHeight(),this.isIOS="ios"===a.dV.getPlatform(),this.isAndroid="android"===a.dV.getPlatform()}}return v.\u0275fac=function(k){return new(k||v)(h.\u0275\u0275inject(m.b))},v.\u0275prov=h.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},35929:(Ge,$,f)=>{f.d($,{V:()=>k});var o=f(15861),a=f(92340),g=f(4490),h=f(591),m=f(45449),v=f(1303);const b={dev:{production:!1,type:"dev",protocol:"http",url:"gatewaymobile.cloud.olimpia",port:"80",vo_protocol:"http",lg_protocol:"http",vo_url:"gateway.cloud.olimpia",lg_url:"gatewaylg.cloud.olimpia",bookei_url:"http://bookeigw.cloud.olimpia",vo_port:"80",lg_port:"80",wc_url:"h.visitante.in",logtron3000_protocol:"http",logtron3000_url:"localhost",logtron3000_port:"3000",logtronKey:"",appInfo:{id:"keyaccesspass",name:"KeyAccess Pass",versionSuffix:"-dev",...g.J},firebase:{apiKey:"AIzaSyDbOtIj4Mjx0ehH9B4R-sR4BaLURI-ucqc",authDomain:"keyaccess-cloud-notifica-7bf72.firebaseapp.com",databaseURL:"https://keyaccess-cloud-notifica-7bf72.firebaseio.com",projectId:"keyaccess-cloud-notifica-7bf72",storageBucket:"keyaccess-cloud-notifica-7bf72.appspot.com",messagingSenderId:"577861577478",appId:"1:577861577478:web:98b5617a47c9224f6e0c87",measurementId:"G-NP3X3HX9QM"}},homol:{type:"homol",production:!0,protocol:"https",url:"fr34kuc450787d0376bh.visitantes.online",port:"443",vo_protocol:"https",lg_protocol:"https",vo_url:"h.visitantes.online",lg_url:"hlg.visitantes.online",bookei_url:"https://h.bookei.online",vo_port:"443",lg_port:"443",wc_url:"h.visitante.in",logtron3000_protocol:"https",logtron3000_url:"7r0u53r52afd3baf35f.visitantes.online",logtron3000_port:"443",logtronKey:"8662c0458964434de5e16c339a65a6e5f5c2798c",appInfo:{id:"keyaccesspass",name:"KeyAccess Pass",versionSuffix:"-homol",...g.J},firebase:{apiKey:"AIzaSyDbOtIj4Mjx0ehH9B4R-sR4BaLURI-ucqc",authDomain:"keyaccess-cloud-notifica-7bf72.firebaseapp.com",databaseURL:"https://keyaccess-cloud-notifica-7bf72.firebaseio.com",projectId:"keyaccess-cloud-notifica-7bf72",storageBucket:"keyaccess-cloud-notifica-7bf72.appspot.com",messagingSenderId:"577861577478",appId:"1:577861577478:web:98b5617a47c9224f6e0c87",measurementId:"G-NP3X3HX9QM"}},prod:{type:"prod",production:!0,protocol:"https",url:"b00bsed450787d0376b.visitantes.online",port:"443",vo_protocol:"https",lg_protocol:"https",vo_url:"andr0m3da0921vo.visitantes.online",lg_url:"andr0m3da0921lg.visitantes.online",bookei_url:"https://bookei.online",vo_port:"443",lg_port:"443",wc_url:"visitante.in",logtron3000_protocol:"https",logtron3000_url:"p4n7135c2afd3baf35f.visitantes.online",logtron3000_port:"443",logtronKey:"8662c0458964434de5e16c339a65a6e5f5c2798c",appInfo:{id:"keyaccesspass",name:"KeyAccess Pass",versionSuffix:"",...g.J},firebase:{apiKey:"AIzaSyDbOtIj4Mjx0ehH9B4R-sR4BaLURI-ucqc",authDomain:"keyaccess-cloud-notifica-7bf72.firebaseapp.com",databaseURL:"https://keyaccess-cloud-notifica-7bf72.firebaseio.com",projectId:"keyaccess-cloud-notifica-7bf72",storageBucket:"keyaccess-cloud-notifica-7bf72.appspot.com",messagingSenderId:"577861577478",appId:"1:577861577478:web:98b5617a47c9224f6e0c87",measurementId:"G-NP3X3HX9QM"},mfeUrl:"http://10.0.0.132:8080"}};let k=(()=>{class F{constructor(I){this.storageService=I,this.STORAGE_KEY="ka_active_environment",this.environmentSubject=new h.X(null),this.environment$=this.environmentSubject.asObservable()}initialize(){var I=this;return(0,o.Z)(function*(){console.log("[EnvironmentSwitcher] Iniciando..."),yield I.storageService.startStorage();const D=I.getDefaultEnvironment();console.log("[EnvironmentSwitcher] Ambiente do BUILD:",D.type);const j=yield I.storageService.get(I.STORAGE_KEY);return console.log("[EnvironmentSwitcher] Ambiente salvo no storage:",j),"prod"===D.type?(I.currentEnvironment=D,yield I.storageService.remove(I.STORAGE_KEY),console.log("[EnvironmentSwitcher] \u2705 PRODU\xc7\xc3O: Usando ambiente do build (storage limpo)"),console.log(`[EnvironmentSwitcher] URL: ${I.currentEnvironment.url}`)):j&&b[j]?(I.currentEnvironment=b[j],console.log(`[EnvironmentSwitcher] \u2705 DEV/HOMOL: Usando ambiente do storage: ${j}`),console.log(`[EnvironmentSwitcher] URL: ${I.currentEnvironment.url}`)):(I.currentEnvironment=D,console.log(`[EnvironmentSwitcher] \u2705 DEV/HOMOL: Usando ambiente do build: ${D.type}`),console.log(`[EnvironmentSwitcher] URL: ${I.currentEnvironment.url}`)),console.log(`[EnvironmentSwitcher] Production flag: ${I.currentEnvironment.production}`),I.environmentSubject.next(I.currentEnvironment),I.currentEnvironment})()}resetToDefaultEnvironment(){var I=this;return(0,o.Z)(function*(){console.log("[EnvironmentSwitcher] Resetando para ambiente do build..."),yield I.storageService.startStorage(),yield I.storageService.remove(I.STORAGE_KEY),I.currentEnvironment=I.getDefaultEnvironment(),console.log(`[EnvironmentSwitcher] \u2705 Resetado para: ${I.currentEnvironment.type}`)})()}switchEnvironment(I){var D=this;return(0,o.Z)(function*(){console.log(`[EnvironmentSwitcher] Trocando para: ${I}`),yield D.storageService.startStorage(),yield D.storageService.set(D.STORAGE_KEY,I),D.currentEnvironment=b[I],console.log(`[EnvironmentSwitcher] Ambiente salvo no storage: ${I}`),console.log(`[EnvironmentSwitcher] Nova URL: ${D.currentEnvironment.url}`),D.environmentSubject.next(D.currentEnvironment)})()}getCurrentEnvironment(){return this.currentEnvironment||this.getDefaultEnvironment()}getAvailableEnvironments(){return["dev","homol","prod"]}getDefaultEnvironment(){const I=a.N.type;if(console.log(`[EnvironmentSwitcher] Ambiente detectado do build: ${I}`),console.log(`[EnvironmentSwitcher] production flag: ${a.N.production}`),b[I])return b[I];console.warn("[EnvironmentSwitcher] Tipo de ambiente n\xe3o encontrado no build, usando detec\xe7\xe3o por hostname");const D=window.location.hostname;return D.includes("localhost")||D.includes("olimpia")?b.dev:D.includes("visitantes.online")&&D.includes("h.")?b.homol:b.prod}}return F.\u0275fac=function(I){return new(I||F)(m.\u0275\u0275inject(v.V))},F.\u0275prov=m.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},14453:(Ge,$,f)=>{f.d($,{E:()=>K});var o=f(15861),a=f(47423);const g=(0,a.fo)("LocalNotifications",{web:()=>f.e(7434).then(f.bind(f,67434)).then(ee=>new ee.LocalNotificationsWeb)});var h=f(28461),m=f(72986),L=f(59973),v=f(8782),b=f(45449),k=f(37566),F=f(21218),Y=f(35262),I=f(76733),D=f(71403),j=f(1303),W=f(10629),de=f(22255);let K=(()=>{class ee{constructor(Te,ce,oe,te,ge,xe,he,Le){var Ce=this;this.notificationsFcmStoreService=Te,this.navigationService=ce,this.pendingRelease=oe,this.logService=te,this.apiService=ge,this.storageService=xe,this.authService=he,this.managerNotificationPersistentService=Le,this.STORAGE_KEY_FcmMobileAT="fcmMobile_KA_AT",this.STORAGE_KEY_KA_FcmMobileToken="ka_fcmMobileToken",this.intervalOfTimeToRenewRequesFMC=v.n.intervalOfTimeToRenewFcm,this.checkPermissionsAndroidLocal=(0,o.Z)(function*(){return(yield g.checkPermissions()).display}),this.requestPermissionsAndroidLocal=(0,o.Z)(function*(){return(yield g.requestPermissions()).display}),this.needsToRenewRequestFCM=()=>{const ie=Date.now();return new Promise((se,me)=>{this.storageService.ready().then(()=>this.storageService.get(this.STORAGE_KEY_FcmMobileAT)).then(Ne=>{se(!Ne||ie-Ne>this.intervalOfTimeToRenewRequesFMC)}).catch(()=>{me(!1)})})},this.createNotificationChannel=(0,o.Z)(function*(){Ce.isAndroid?0===(yield h.bw.listChannels()).channels?.length&&(yield h.bw.createChannel({id:"default_channel",name:"Release pending notifications channel",importance:h.Hw.Max,vibration:!0,description:"Manage your release pending notifications",visibility:h.EE.Public,lights:!0})):console.log("not Android")}),this.onMessage=ie=>{if(console.log("onMessage",{fcm:ie}),this.isAndroid){if(!ie.payload?.notification&&!ie.payload?.notification?.data&&!ie.payload)return;this.onMessageDeviceAndroid(ie)}else if(this.isIOS)return ie.payload?void this.onMessageDeviceIOS(ie):void 0},this.navigationExtras=ie=>({state:{eventId:ie.eid,companyInstanceName:ie.ci}}),this.handlePushNotificationReceived=ie=>{this.onMessage({foreground:!0,background:!1,payload:ie})},this.handlePushNotificationActionPerformed=ie=>{ie&&ie?.etrgt&&ie?.type&&ie?.actionIdentifier?this.managerNotificationPersistentService?.goTo(ie):this.onMessage({foreground:!1,background:!0,payload:ie})},this.updateRequestFcmAtTimestamp=()=>this.storageService.set(this.STORAGE_KEY_FcmMobileAT,Date.now()),this.isAndroid="android"===a.dV.getPlatform(),this.isIOS="ios"===a.dV.getPlatform()}checkPermissionsAndRequestPermission(){var Te=this;return(0,o.Z)(function*(){return Te.isIOS?Te.checkPermissionsIOS():Te.checkPermissionsAndroid()})()}checkPermissionAvalable(){return(0,o.Z)(function*(){const{receive:Te}=yield h.bw.checkPermissions();if("granted"===Te)return!0;{const{receive:ce}=yield h.bw.requestPermissions();return"granted"===ce}})()}requestPermissionAvailable(){return(0,o.Z)(function*(){const{receive:Te}=yield h.bw.requestPermissions();return"granted"===Te})()}getToken(){var Te=this;return(0,o.Z)(function*(){return yield Te.firebaseMessageGetToken()})()}getTokenFcm(){var Te=this;return(0,o.Z)(function*(){if(!(yield Te.isAuthenticated()))return;const{value:oe}=yield Te.firebaseMessageGetToken(),te=Te.getTokenStorage();return Te.tokenFcmBackDiffTokenFcmFirebase(te,oe)?Te.sendMobileToken(oe):console.log("Not SendTkFCM!!"),Te.needsToUpdateFcm(),Te.notTokenFcm(oe,te),oe})()}removeTokenStorage(){localStorage.removeItem(this.STORAGE_KEY_KA_FcmMobileToken),localStorage.removeItem(this.STORAGE_KEY_FcmMobileAT)}setTokenStorage(Te){localStorage.setItem(this.STORAGE_KEY_KA_FcmMobileToken,Te)}getTokenStorage(){return localStorage.getItem(this.STORAGE_KEY_KA_FcmMobileToken)?localStorage.getItem(this.STORAGE_KEY_KA_FcmMobileToken):null}deleteTokenFcm(){var Te=this;return(0,o.Z)(function*(){Te.removeTokenStorage(),yield h.bw.deleteToken()})()}updateToken(){var Te=this;return(0,o.Z)(function*(){Te.addListenerToken().then(ce=>{const oe=ce?.value??null;!oe||oe?.length>0&&Te.apiService.sendMobileToken(oe).pipe((0,m.q)(1),(0,L.X)(3)).subscribe(te=>{Te.updateRequestFcmAtTimestamp(),Te.setTokenStorage(oe)},te=>{Te.removeTokenStorage()})})})()}addListenerToken(){return(0,o.Z)(function*(){return new Promise(function(){var Te=(0,o.Z)(function*(ce){yield h.bw.addListener("tokenReceived",te=>{ce({value:te.token})})});return function(ce){return Te.apply(this,arguments)}}())})()}firebaseMessageGetToken(){var Te=this;return(0,o.Z)(function*(){return new Promise(function(){var ce=(0,o.Z)(function*(oe,te){try{const{token:ge}=yield h.bw.getToken();ge||Te.removeTokenStorage(),ge&&oe({value:ge})}catch(ge){throw Te.removeTokenStorage(),te(ge),new Error("Failed to get FCM token "+JSON.stringify(ge))}});return function(oe,te){return ce.apply(this,arguments)}}())})()}registerPush(){var Te=this;return(0,o.Z)(function*(){yield h.bw.removeAllListeners(),h.bw.addListener("notificationReceived",ce=>Te.handlePushNotificationReceived(ce)),Te.isIOS||h.bw.addListener("notificationLocalActionPerformed",ce=>Te.handlePushNotificationActionPerformed(ce)),h.bw.addListener("notificationActionPerformed",ce=>Te.handlePushNotificationActionPerformed(ce))})()}onMessageDeviceIOS(Te){const ce=Te?.foreground;let te=null,ge=null,xe=null;(ce||"tap"==(ce?Te?.payload.notification.actionId:Te?.payload?.actionId))&&(te=Te.payload?.notification?.data?.type??Te.payload?.notification?.data?.st,ge=Te.payload?.notification?.data?.etrgt,xe=Te.payload?.notification?.data);const he=Te.payload?.notification?.data?.l??null,Le=Te.payload?.notification?.data?.ci??null,Ce=Te.payload?.notification?.data?.si??null,ie=Te.payload?.notification?.data?.eid??null,se=Te.payload?.notification?.data?.iid??null,me=Te.payload?.notification?.data?.rid??null;switch(te){case"CHECKIN_DONE":Te.background?this.navigationService.forward("LOGISTIC"===ge?["/view-logistic-event/"]:["/view-event/"],this.navigationExtras(xe)):this.notificationsFcmStoreService.setState(xe);break;case"NEED_APPROVAL":this.pendingRelease.existsPending=!0,Te.background?this.navigationService.forward(["/push-notifications"]):this.notificationsFcmStoreService.setState(xe);break;case"OPENED":case"RELEASE_DONE":return Te?.background?(this.notificationsFcmStoreService.setState(xe),void this.navigationService.forward([`/modules/wc/start/${he}`],{state:{companyInstanceName:Le,siteInstanceName:Ce,eventId:Number(ie),iid:Number(se),rid:Number(me)}})):void this.notificationsFcmStoreService.setState(xe)}}onMessageDeviceAndroid(Te){const oe=Te.payload?.notification?.data?.etrgt??null,te=Te?.foreground?Te?.payload?.notification:Te?.payload?.notification?.data,ge=Te.payload?.notification?.data?.l??null,xe=Te.payload?.notification?.data?.ci??null,he=Te.payload?.notification?.data?.si??null,Le=Te.payload?.notification?.data?.eid??null,Ce=Te.payload?.notification?.data?.iid??null,ie=Te.payload?.notification?.data?.rid??null;if(Te?.payload)switch(Te.payload?.notification?.data?.type??Te.payload?.notification?.data?.st??null){case"CHECKIN_DONE":return Te?.background?"LOGISTIC"===oe?void this.navigationService.forward(["/view-logistic-event/"],this.navigationExtras(te)):void this.navigationService.forward(["/view-event/"],this.navigationExtras(te)):void this.notificationsFcmStoreService.setState(te);case"NEED_APPROVAL":return this.pendingRelease.existsPending=!0,Te?.background?void this.navigationService.forward(["/push-notifications"]):void this.notificationsFcmStoreService.setState(te);case"OPENED":case"RELEASE_DONE":return Te?.background?(this.notificationsFcmStoreService.setState(te),void this.navigationService.forward([`/modules/wc/start/${ge}`],{state:{companyInstanceName:xe,siteInstanceName:he,eventId:Number(Le),iid:Number(Ce),rid:Number(ie)}})):void this.notificationsFcmStoreService.setState(te)}}checkPermissionsIOS(){var Te=this;return(0,o.Z)(function*(){try{const{receive:ce}=yield h.bw.checkPermissions();if("granted"===ce)return Te.registerPush(),"granted";try{const{receive:oe}=yield h.bw.requestPermissions();return"granted"===oe?(Te.registerPush(),"granted"):ce}catch(oe){return Te.logService.logEvent("fcm::PushNotifications.checkPermissionsIOS","",oe),"denied"}}catch(ce){return Te.logService.logEvent("fcm::PushNotifications.requestPermissionsIOS","",ce),"denied"}})()}checkPermissionsAndroid(){var Te=this;return(0,o.Z)(function*(){try{const ce=yield Te.checkPermissionsAndroidLocal(),oe=yield h.bw.checkPermissions();if("granted"===ce&&"granted"===oe.receive)return Te.registerPush(),"granted";try{const te=yield Te.requestPermissionsAndroidLocal(),ge=yield h.bw.requestPermissions();return"granted"===te&&"granted"===ge.receive?(Te.registerPush(),"granted"):ce}catch(te){return Te.logService.logEvent("fcm::checkPermissionsAndroidLocal","",te),"denied"}}catch(ce){return Te.logService.logEvent("fcm::requestPermissionsAndroidLocal","",ce),"denied"}})()}tokenFcmBackDiffTokenFcmFirebase(Te,ce){return Te!==ce}sendMobileToken(Te){this.apiService.sendMobileToken(Te).pipe((0,m.q)(1),(0,L.X)(3)).subscribe(()=>{this.setTokenStorage(Te),this.logService.logEvent("http::sendMobileTokenSuccess","Send FCM/APNS Token",Te)},oe=>{this.logService.logError("http::sendMobileTokenError","Failed to send mobile tokenFcm",{err:oe})})}notTokenFcm(Te,ce){if(!Te)return this.removeTokenStorage(),this.logService.logError("tokenFcm::error","",""),void((!ce||null==ce)&&this.logService.logError("tokenFcmBackuTokenFcmStorage::error","Empy",""))}needsToUpdateFcm(){var Te=this;return(0,o.Z)(function*(){(yield Te.needsToRenewRequestFCM())&&(Te.removeTokenStorage(),Te.updateToken())})()}isAuthenticated(){var Te=this;return(0,o.Z)(function*(){const ce=yield Te.authService.getRefId();return(yield Te.authService.isAuthenticated())&&ce})()}}return ee.\u0275fac=function(Te){return new(Te||ee)(b.\u0275\u0275inject(k.n),b.\u0275\u0275inject(F.f),b.\u0275\u0275inject(Y.W),b.\u0275\u0275inject(I.$),b.\u0275\u0275inject(D.s),b.\u0275\u0275inject(j.V),b.\u0275\u0275inject(W.e),b.\u0275\u0275inject(de._))},ee.\u0275prov=b.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})()},84432:(Ge,$,f)=>{f.d($,{Ei:()=>o.E,Bs:()=>v,zP:()=>k,bU:()=>Y});var o=f(14453),a=f(15861),g=f(47423);const h=(0,g.fo)("FirebaseAnalytics",{web:()=>f.e(2758).then(f.bind(f,72758)).then(I=>new I.FirebaseAnalyticsWeb)});var m=f(92340),L=f(45449);let v=(()=>{class I{constructor(){}enable(){return(0,a.Z)(function*(){yield h.setEnabled({enabled:!0})})()}disable(){return(0,a.Z)(function*(){yield h.setEnabled({enabled:!1})})()}setCurrentScreen(j){"prod"!==m.N.type&&h.setCurrentScreen({screenName:j})}}return I.\u0275fac=function(j){return new(j||I)},I.\u0275prov=L.\u0275\u0275defineInjectable({token:I,factory:I.\u0275fac,providedIn:"root"}),I})();const b=(0,g.fo)("FirebaseCrashlytics",{web:()=>f.e(288).then(f.bind(f,10288)).then(I=>new I.FirebaseCrashlyticsWeb)});let k=(()=>{class I{constructor(){this.isIOS="ios"===g.dV.getPlatform(),this.setCustomKey=function(){var j=(0,a.Z)(function*(W){yield b.setCustomKey({...W})});return function(W){return j.apply(this,arguments)}}(),this.setUserId=function(){var j=(0,a.Z)(function*(W){yield b.setUserId({userId:W})});return function(W){return j.apply(this,arguments)}}(),this.log=(0,a.Z)(function*(){yield b.log({message:"Test"})}),this.didCrashOnPreviousExecution=(0,a.Z)(function*(){const{crashed:j}=yield b.didCrashOnPreviousExecution();return j}),this.sendUnsentReports=(0,a.Z)(function*(){yield b.sendUnsentReports()}),this.deleteUnsentReports=(0,a.Z)(function*(){yield b.deleteUnsentReports()}),this.recordException=function(){var j=(0,a.Z)(function*(W){yield b.recordException({message:W})});return function(W){return j.apply(this,arguments)}}()}enable(){var j=this;return(0,a.Z)(function*(){const W={enabled:!0};j.isIOS?(yield j.isEnableForIOS())&&(yield b.setEnabled(W)):yield b.setEnabled(W)})()}disable(){return(0,a.Z)(function*(){yield b.setEnabled({enabled:!1})})()}isEnableForIOS(){return(0,a.Z)(function*(){const{enabled:j}=yield b.isEnabled();return j})()}}return I.\u0275fac=function(j){return new(j||I)},I.\u0275prov=L.\u0275\u0275defineInjectable({token:I,factory:I.\u0275fac,providedIn:"root"}),I})();const F=(0,g.fo)("FirebasePerformance",{web:()=>f.e(4602).then(f.bind(f,74602)).then(I=>new I.FirebasePerformanceWeb)});let Y=(()=>{class I{constructor(){}enable(){return(0,a.Z)(function*(){yield F.setEnabled({enabled:!0})})()}disable(){return(0,a.Z)(function*(){yield F.setEnabled({enabled:!1})})()}startTrace(j){return(0,a.Z)(function*(){"prod"!==m.N.type&&(yield F.startTrace({traceName:j}))})()}incrementMetric(j,W){return(0,a.Z)(function*(){"prod"!==m.N.type&&(yield F.incrementMetric({metricName:W||"andre_teste",traceName:j,incrementBy:1}))})()}}return I.\u0275fac=function(j){return new(j||I)},I.\u0275prov=L.\u0275\u0275defineInjectable({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},47898:(Ge,$,f)=>{f.d($,{sM:()=>o.s,hb:()=>a.h,i_:()=>m,e8:()=>L.e,h2:()=>F,lV:()=>I.l,yr:()=>ee,_G:()=>ce,Yv:()=>Le,v_:()=>te,JN:()=>we,SF:()=>Za,jc:()=>Ue,V:()=>ye,$I:()=>je.$,Eo:()=>At,No:()=>fn.N,Qz:()=>Gt,Hc:()=>Cr.H,hX:()=>wr,oG:()=>dr,VN:()=>er.V,xK:()=>lo,Ei:()=>Gr.Ei,Bs:()=>Gr.Bs,zP:()=>Gr.zP,bU:()=>Gr.bU,iE:()=>Qn,OJ:()=>Pr,_1:()=>$r,W_:()=>hi,gc:()=>vn,cX:()=>me,i8:()=>vo,HX:()=>br,iw:()=>cn,D1:()=>wo,bz:()=>Zn,We:()=>uo,$V:()=>fr.$,g5:()=>Vo,cv:()=>ze,_x:()=>_i,FB:()=>nt,dr:()=>Ot,JQ:()=>Zt.J,EM:()=>jn,f5:()=>gn.f,Ks:()=>xt,SL:()=>rt.S,zf:()=>Yt.z,V6:()=>Er,F0:()=>Wt,xJ:()=>dn.W,YY:()=>un.Y,dj:()=>_e,K7:()=>In,v4:()=>Ce,gA:()=>Hr,NL:()=>Mo,nu:()=>bi,np:()=>tr,RQ:()=>Po,ZP:()=>We,H0:()=>zt,ME:()=>Qt,iX:()=>Ht,V1:()=>xn.V,PV:()=>ii,wK:()=>Ze.w,IR:()=>Fi,FW:()=>Xo,Lk:()=>Xa,fj:()=>Wi});var o=f(71403),a=f(43807),g=f(15861),h=f(45449);let m=(()=>{class fe{constructor(P,Q,Pe,Ve){this.logService=P,this.storageService=Q,this.authService=Pe,this.apiService=Ve}getToken(){var P=this;return(0,g.Z)(function*(){const{uuid:Q,document:Pe}=yield P.getUuidAndDocument();return new Promise(Q&&Pe?(Ve,Z)=>{P.authService.needsToRenewToken().then(re=>{if(!re)return console.log("Not Http request TKNL \u{1f645}\u200d\u2642\ufe0f"),P.authService.getToken().then(Ve).catch(Z);{let Xe="";P.authService.getPasswordHash().then(it=>(Xe=it,P.authService.getForeigner())).then(it=>{const bt=!!it;P.apiService.getToken(Q,Pe,Xe,bt).subscribe(mt=>{console.log("Http request TKNL\u{1f4a5}"),P.authService.updateTokenGeneratedAt().then(()=>{mt.refId&&P.authService.setRefId(mt.refId),Ve(mt.access_token)})},mt=>{mt&&401===mt.status?Z({...mt,uuid:Q,document:Pe,foreigner:bt}):(P.logService.logError("http::getToken","",mt),P.authService.isExpiredToken().then(Rt=>{Rt?Z("isExpiredToken"):P.authService.getToken().then(Ve).catch(Z)}).catch(Z))})})}})}:(Ve,Z)=>Z())})()}getUuidAndDocument(){var P=this;return(0,g.Z)(function*(){try{const Q=yield P.storageService.startStorage(),Pe=yield P.authService.getDocument(),Ve=yield P.authService.getUUID(),Z=yield Promise.all([Q,Pe,Ve]);if(yield Z[0])return{document:Z[1],uuid:Z[2]}}catch(Q){throw P.logService.logError("StorageData::storageNotInitialize|document|uuid","",Q),new Error(Q)}})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(fr.$),h.\u0275\u0275inject(xn.V),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(o.s))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var L=f(10629),v=f(66261),b=f(22255);class k{constructor(){this.count=0,this.isPending=!1}}let F=(()=>{class fe extends v.O{constructor(P,Q,Pe,Ve){super(new k),this.apiService=P,this.pendingRelease=Q,this.authService=Pe,this.managerNotificationPersistentService=Ve,this.timeoutPooling=null,this.stopTaskPooling=!1,this.isCallInProgress=!1,this.errorCount=0,this.baseInterval=125e3,this.maxInterval=9e5,this.lastExistsPending=null,this.handleGetPendenciesSuccessResponse=Z=>{this.pendingRelease.existsPending=Z;const re=Z;this.lastExistsPending!==re&&(this.lastExistsPending=re,re||this.managerNotificationPersistentService.stopContinuousVibration())},this.handleGetPendenciesError=Z=>{console.error("Erro ao processar pendencies:",Z),this.stopPooling()}}initialize(){var P=this;return(0,g.Z)(function*(){P.isCallInProgress||P.pendingsReleasesExists()})()}pendingsReleasesExists(){var P=this;return(0,g.Z)(function*(){if(P.isCallInProgress)console.log("Request j\xe1 em andamento, abortando nova chamada.");else{P.isCallInProgress=!0;try{if(!(yield P.isAuthenticated()))return console.log("N\xe3o autenticado, abortando opera\xe7\xe3o."),void P.stopPooling();yield P.fetchPendingReleases(),P.errorCount=0}catch(Q){console.error("Erro ao buscar lan\xe7amentos pendentes:",Q),P.errorCount++}finally{P.isCallInProgress=!1,P.startPooling()}}})()}fetchPendingReleases(){var P=this;return(0,g.Z)(function*(){const Q=yield P.apiService.getpendingsReleasesExists().toPromise();P.handleGetPendenciesSuccessResponse(Q)})()}isAuthenticated(){var P=this;return(0,g.Z)(function*(){const Q=yield P.authService.getRefId();return(yield P.authService.isAuthenticated())&&!!Q})()}startPooling(){if(this.stopTaskPooling||this.isCallInProgress)return;const P=Math.min(this.baseInterval*Math.pow(2,this.errorCount),this.maxInterval);this.timeoutPooling=setTimeout(()=>this.pendingsReleasesExists(),P)}stopPooling(){clearTimeout(this.timeoutPooling),this.stopTaskPooling=!0}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(dn.W),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(b._))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var I=f(55832),D=f(47423);const j=(0,D.fo)("ScreenBrightness",{});var W=f(90603);let de=(()=>{class fe{constructor(P){var Q=this;this.platform=P,this.set=function(){var Pe=(0,g.Z)(function*(Ve){if(Q.platform.is("capacitor")){const Z=Ve;yield j.setBrightness({brightness:Z})}});return function(Ve){return Pe.apply(this,arguments)}}(),this.get=(0,g.Z)(function*(){if(Q.platform.is("capacitor")){const{brightness:Pe}=yield j.getBrightness();return Pe}})}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.Platform))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var K=f(89191);let ee=(()=>{class fe{constructor(){}getPhotoCamera(){var P=this;return(0,g.Z)(function*(){try{return yield P.checkAndRequestCameraPermissions(),P.takePicture(K.oK.Camera)}catch(Q){throw new Error(`Erro ao capturar foto: ${Q.message}`)}})()}getPhotoGalery(){var P=this;return(0,g.Z)(function*(){try{return P.takePicture(K.oK.Photos)}catch(Q){throw new Error(`Erro ao selecionar foto: ${Q.message}`)}})()}checkAndRequestCameraPermissions(){return(0,g.Z)(function*(){if(yield K.V1.requestPermissions(),"granted"!==(yield K.V1.checkPermissions()).camera)throw new Error("Permiss\xe3o da c\xe2mera negada")})()}takePicture(P){return(0,g.Z)(function*(){return K.V1.getPhoto({quality:60,resultType:K.dk.Base64,correctOrientation:!0,width:600,height:600,allowEditing:!1,direction:K.GW.Front,saveToGallery:!1,source:P})})()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var Te=f(56498);let ce=(()=>{class fe{constructor(){this.observer=null,this.observable=null,this.showModal=()=>{this.observer&&this.observer.next(!0)},this.hideModal=()=>{this.observer&&this.observer.next(!1)},this.observable=new Te.y(P=>this.observer=P),this.hideModal()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var oe=f(59584);let te=(()=>{class fe{constructor(){this.clearString=P=>P&&(P=(P="string"==typeof P?P:String(P)).replace("\t","")).trim(),this.objectToQueryString=P=>Object.keys(P).map(Q=>`${encodeURIComponent(Q)}=${encodeURIComponent(P[Q])}`).join("&"),this.objectToQueryStringV2=P=>{let Q="?";return P&&Object.keys(P).forEach((Pe,Ve)=>{const Z=P[Pe];0===Ve?Array.isArray(Z)?Q+=Z.join("&"+Pe+"="):Q+=Pe+"="+P[Pe]:(Q+="&"+Pe+"=",Array.isArray(Z)?Q+=Z.join("&"+Pe+"="):Q+=P[Pe])}),Q}}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),ge=(()=>{class fe{constructor(P,Q,Pe){this.apiService=P,this.http=Q,this.commonService=Pe,this.authorize=(Ve,Z,re,Xe)=>{const it={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})},bt=`${this.apiService.getVoBaseUrl()}/services/${Ve}/api/v2/invites/${re}/authorize`;return this.http.patch(bt,{},it)},this.deny=(Ve,Z,re,Xe)=>{const it={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})},bt={message:Xe},mt=`${this.apiService.getVoBaseUrl()}/services/${Ve}/api/v2/invites/${re}/deny`;return this.http.patch(mt,bt,it)},this.denyDoCheckin=(Ve,Z,re,Xe)=>{const it={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})},bt={message:Xe},mt=`${this.apiService.getVoBaseUrl()}/services/${Ve}/api/do-checkin/${re}/deny`;return this.http.patch(mt,bt,it)},this.authorizeDoCheckin=(Ve,Z,re)=>{const Xe={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})},it=`${this.apiService.getVoBaseUrl()}/services/${Ve}/api/do-checkin/${re}/authorize`;return this.http.patch(it,{},Xe)}}denyOne(P,Q,Pe,Ve){const Z={message:Pe},re={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Q})},Xe=`${this.apiService.getVoBaseUrl()}/services/${P}/api/v2/invites/${Ve}/deny`;return this.http.patch(Xe,Z,re)}denyAll(P,Q,Pe,Ve){const Z={message:Pe},re={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Q})},Xe=`${this.apiService.getVoBaseUrl()}/services/${P}/api/events/${Ve}/deny`;return this.http.patch(Xe,Z,re)}authorizeAllowPartial(P,Q,Pe,Ve){const Z={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Q})},re=`${this.apiService.getVoBaseUrl()}/services/${P}/api/do-events/${Pe}/authorize`;return this.http.put(re,Ve,Z)}authorizeAllowAll(P,Q,Pe,Ve){const Z={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Q})},re=`${this.apiService.getVoBaseUrl()}/services/${P}/api/do-events/${Pe}/authorize`;return this.http.put(re,Ve,Z)}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(oe.HttpClient),h.\u0275\u0275inject(te))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();class xe extends D.Uw{write(lt){var P=this;return(0,g.Z)(function*(){if(typeof navigator>"u"||!navigator.clipboard)throw P.unavailable("Clipboard API not available in this browser");if(void 0!==lt.string)yield P.writeText(lt.string);else if(lt.url)yield P.writeText(lt.url);else{if(!lt.image)throw new Error("Nothing to write");if(!(typeof ClipboardItem<"u"))throw P.unavailable("Writing images to the clipboard is not supported in this browser");try{const Q=yield(yield fetch(lt.image)).blob(),Pe=new ClipboardItem({[Q.type]:Q});yield navigator.clipboard.write([Pe])}catch{throw new Error("Failed to write image")}}})()}read(){var lt=this;return(0,g.Z)(function*(){if(typeof navigator>"u"||!navigator.clipboard)throw lt.unavailable("Clipboard API not available in this browser");if(!(typeof ClipboardItem<"u"))return lt.readText();try{const P=yield navigator.clipboard.read(),Q=P[0].types[0],Pe=yield P[0].getType(Q);return{value:yield lt._getBlobData(Pe,Q),type:Q}}catch{return lt.readText()}})()}readText(){var lt=this;return(0,g.Z)(function*(){if(typeof navigator>"u"||!navigator.clipboard||!navigator.clipboard.readText)throw lt.unavailable("Reading from clipboard not supported in this browser");return{value:yield navigator.clipboard.readText(),type:"text/plain"}})()}writeText(lt){var P=this;return(0,g.Z)(function*(){if(typeof navigator>"u"||!navigator.clipboard||!navigator.clipboard.writeText)throw P.unavailable("Writting to clipboard not supported in this browser");yield navigator.clipboard.writeText(lt)})()}_getBlobData(lt,P){return new Promise((Q,Pe)=>{const Ve=new FileReader;P.includes("image")?Ve.readAsDataURL(lt):Ve.readAsText(lt),Ve.onloadend=()=>{Q(Ve.result)},Ve.onerror=Z=>{Pe(Z)}})}}const he=(0,D.fo)("Clipboard",{web:()=>new xe});let Le=(()=>{class fe{constructor(){}copy(P){return(0,g.Z)(function*(){return yield he.write({string:P})})()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Ce=(()=>{class fe{constructor(){this.getProfile=()=>{const P=localStorage.getItem("company_profile");return P?JSON.parse(P):null},this.setProfile=P=>{localStorage.setItem("company_profile",JSON.stringify(P))},this.setProfileList=P=>{localStorage.setItem("company_profile_list",JSON.stringify(P))},this.setProfileListVOandLG=P=>{localStorage.setItem("company_profile_list_vo_lg",JSON.stringify(P))},this.getProfileList=()=>{const P=localStorage.getItem("company_profile_list");return P?JSON.parse(P):[]},this.getProfileListVOandLG=()=>{const P=localStorage.getItem("company_profile_list_vo_lg");return P?JSON.parse(P):[]},this.clearProfileList=()=>{localStorage.removeItem("company_profile_list")},this.clearProfile=()=>{localStorage.removeItem("company_profile")},this.clearProfileListVOandLG=()=>{localStorage.removeItem("company_profile_list_vo_lg")},this.setProfileLogistic=P=>{localStorage.setItem("company_profile_logistic",JSON.stringify(P))},this.getProfileLogistic=()=>{const P=localStorage.getItem("company_profile_logistic");return P?JSON.parse(P):null},this.clearProfileLogistic=()=>{localStorage.removeItem("company_profile_logistic")},this.setProfileLogisticList=P=>{localStorage.setItem("company_profile_logistic_list",JSON.stringify(P))},this.getProfileLogisticList=()=>{const P=localStorage.getItem("company_profile_logistic_list");return P?JSON.parse(P):[]},this.clearProfileLogisticList=()=>{localStorage.removeItem("company_profile_logistic_list")},this.clearAllProfiles=()=>{this.clearProfileList(),this.clearProfile(),this.clearProfileLogisticList(),this.clearProfileLogistic(),this.clearProfileListVOandLG(),localStorage.removeItem("firstRequestGetProfile")},this.isCollaboratorProfile=(P=null)=>(P||(P=this.getProfile()),!(!P.authorities||!P.authorities.includes("ROLE_COMPANY_COLLABORATOR"))),this.isReceptionistProfile=(P=null)=>(P||(P=this.getProfile()),!(!P.authorities||!P.authorities.includes("ROLE_COMPANY_RECEPTIONIST"))),this.setBasePlatormUrl=P=>{localStorage.setItem("basePlatformUrl",P)},this.gettBasePlatormUrl=()=>localStorage.getItem("basePlatformUrl")||"/",this.clearbasePlatformUrl=()=>{localStorage.removeItem("basePlatformUrl")},this.isLimited2Profile=(P=null)=>(P||(P=this.getProfile()),!(!P.authorities||!P.authorities.includes("ROLE_COMPANY_LIMITED2")))}isExpeditionProfile(P=null){return P||(P=this.getProfile()),!(!P.authorities||!P.authorities.includes("ROLE_LOGI_EXP"))}goodProfilesListAll(){const P=[],Q=this.getProfileList(),Pe=this.getProfileLogisticList();return P.push(...Pe,...Q),P.filter(Z=>Z.login)}getProfilesAbleToCreateEvent(P,Q){const Pe=[];let Ve=null;return P.forEach(re=>{const Xe=re.authorities.includes("ROLE_COMPANY_LIMITED"),it=re.authorities.includes("ROLE_COMPANY_LIMITED2");let bt=null;Q&&(bt=re.authorities.includes("ROLE_LOGI_EXP"));const mt=re.authorities.includes("ROLE_COMPANY_RH"),Rt=re.authorities.includes("ROLE_COMPANY_RECEPTIONIST"),Xt=re.authorities.includes("ROLE_COMPANY_COLLABORATOR");(Rt||Xt||bt||it||Xe&&bt||bt&&mt)&&Pe.push(re)}),Ve=P.every(re=>0===re.authorities.length||1===re.authorities.length&&re.authorities.includes("ROLE_COMPANY_LIMITED")),{limitedProfile:Ve,profiles:Pe}}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var ie=f(24850);let se=(()=>{class fe{constructor(P,Q,Pe){this.apiService=P,this.http=Q,this.commonService=Pe,this.getEvents=(Ve=null,Z,re)=>{const Xe={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})};let it;return re=this.commonService.objectToQueryString(re),it=Ve?this.apiService.getVoBaseUrl()+"/services/"+Ve+"/api/events?"+re:this.apiService.getBaseUrl()+"/api/company/events?"+re,this.http.get(it,Xe)},this.getEvent=(Ve,Z,re,Xe)=>{const it={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+re})};Xe=this.commonService.objectToQueryString(Xe);const bt=this.apiService.getVoBaseUrl(),mt=(new Date).getTime();return this.http.get(`${bt}/services/${Z}/api/events?cacheBuster=${mt}&id.equals=${Ve}`,it).pipe((0,ie.U)(Xt=>Xt.length>0?Xt[0]:null))}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(oe.HttpClient),h.\u0275\u0275inject(te))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),me=(()=>{class fe{constructor(P,Q,Pe){this.apiService=P,this.http=Q,this.commonService=Pe,this.getInvite=(Ve,Z,re)=>{const Xe={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})};re=this.commonService.objectToQueryString(re);const it=this.apiService.getVoBaseUrl()+"/services/"+Ve+"/api/invites?"+re;return this.http.get(it,Xe)}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(oe.HttpClient),h.\u0275\u0275inject(te))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Ne=(()=>{class fe{constructor(P,Q,Pe){this.apiService=P,this.http=Q,this.commonService=Pe,this.getVisitors=(Ve,Z,re)=>{const Xe={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})};re=this.commonService.objectToQueryString(re);const it=this.apiService.getVoBaseUrl()+"/services/"+Ve+"/api/visitors?"+re;return this.http.get(it,Xe)},this.updateVisitor=(Ve,Z,re,Xe)=>{const it={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})};re=this.commonService.objectToQueryString(re);const bt=this.apiService.getVoBaseUrl()+"/services/"+Ve+"/api/visitors?"+re;return this.http.put(bt,Xe,it)}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(oe.HttpClient),h.\u0275\u0275inject(te))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),_e=(()=>{class fe{constructor(P){this.apiService=P}getAccessToken(P,Q,Pe){return new Promise((Ve,Z)=>{const re=this.getAccessTokensFromStorage();if(re){const Xe=this.findAccessTokenInAccessTokens(P,Q,re);Xe?this.isAccessTokenExpired(Xe)?this.getAccessTokenFromRemote(P,Q,Pe).then(()=>{this.getAccessToken(P,Q,Pe).then(Ve,Z)}).catch(Z):Ve(Xe):this.getAccessTokenFromRemote(P,Q,Pe).then(()=>{this.getAccessToken(P,Q,Pe).then(Ve,Z)}).catch(Z)}else this.getAccessTokenFromRemote(P,Q,Pe).then(()=>{this.getAccessToken(P,Q,Pe).then(Ve,Z)}).catch(Z)})}clearPortalProfiles(){localStorage.removeItem("portal_profiles")}getAccessTokensFromStorage(){const P=localStorage.getItem("portal_profiles");return P?JSON.parse(P):null}findAccessTokenInAccessTokens(P,Q,Pe){return Pe.find(Ve=>Ve.login===P&&Ve.portal===Q)}isAccessTokenExpired(P){const Pe=P.createdAt,Ve=1e3*(P.expires_in-10);return(new Date).getTime()>Pe+Ve}getAccessTokenFromRemote(P,Q,Pe){return new Promise((Ve,Z)=>{this.apiService.getUserProfileLogin(P,Q,Pe).subscribe(re=>{this.savePortalLoginToLocalStorage(P,Q,re),Ve(!0)},Z)})}savePortalLoginToLocalStorage(P,Q,Pe){const Ve=(new Date).getTime(),Z={login:P,portal:Q,createdAt:Ve,...Pe};let re=this.getAccessTokensFromStorage();re=re?re.filter(Xe=>Xe.login!==P&&Xe.portal!==Q):[],re.push(Z),localStorage.setItem("portal_profiles",JSON.stringify(re))}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),we=(()=>{class fe{constructor(P,Q,Pe,Ve,Z,re,Xe,it){this.apiService=P,this.authService=Q,this.profileManagerService=Pe,this.eventApiService=Ve,this.inviteApiService=Z,this.visitorApiService=re,this.checkinApiService=Xe,this.portalLoginManagerService=it,this.getContacts=bt=>{const mt=this.profileManagerService.getProfile();return new Promise((Rt,Xt)=>{this.authService.getToken().then(qt=>this.portalLoginManagerService.getAccessToken(mt.login,mt.portal,qt)).then(qt=>this.visitorApiService.getVisitors(mt.company.instanceName,qt.access_token,bt).subscribe(Rt,Xt)).catch(Xt)})},this.updateContact=bt=>{const mt=this.profileManagerService.getProfile();return new Promise((Rt,Xt)=>{this.authService.getToken().then(qt=>this.portalLoginManagerService.getAccessToken(mt.login,mt.portal,qt)).then(qt=>this.visitorApiService.updateVisitor(mt.company.instanceName,qt.access_token,{},bt).subscribe(Rt,Xt)).catch(Xt)})},this.getEvents=(bt,mt=null)=>{if(mt){let Rt=[];return new Promise((Xt,qt)=>{this.authService.getToken().then(Sn=>{this.apiService.getUserProfiles("VO",Sn).subscribe(Wn=>{Rt=Wn;const Un=Rt.find(sr=>sr.company.instanceName===mt);this.portalLoginManagerService.getAccessToken(Un.login,Un.portal,Sn).then(sr=>this.eventApiService.getEvents(mt,sr.access_token,bt).subscribe(Xt,qt)).catch(qt)},qt)})})}return new Promise((Rt,Xt)=>{this.authService.getToken().then(qt=>this.eventApiService.getEvents(null,qt,bt).subscribe(Rt,Xt))})},this.getEvent=(bt,mt,Rt)=>{let Xt=[];return new Promise((qt,Sn)=>{this.authService.getToken().then(Wn=>{this.apiService.getUserProfiles("VO",Wn).subscribe(Un=>{Xt=Un;const sr=Xt.find(hr=>hr.company.instanceName===Rt);this.portalLoginManagerService.getAccessToken(sr.login,sr.portal,Wn).then(hr=>this.eventApiService.getEvent(bt,Rt,hr.access_token,mt).subscribe(qt,Sn)).catch(Sn)},Sn)})})},this.getInvite=(bt,mt=null)=>{if(mt){let Rt=[];return new Promise((Xt,qt)=>{this.authService.getToken().then(Sn=>{this.apiService.getUserProfiles("VO",Sn).subscribe(Wn=>{Rt=Wn;const Un=Rt.find(sr=>sr.company.instanceName===mt);this.portalLoginManagerService.getAccessToken(Un.login,Un.portal,Sn).then(sr=>this.inviteApiService.getInvite(mt,sr.access_token,bt).subscribe(Xt,qt)).catch(qt)},qt)})})}{const Rt=this.profileManagerService.getProfile();return new Promise((Xt,qt)=>{this.authService.getToken().then(Sn=>{const Wn=Rt.company.instanceName;this.portalLoginManagerService.getAccessToken(Rt.login,Rt.portal,Sn).then(Un=>this.inviteApiService.getInvite(Wn,Un.access_token,bt).subscribe(Xt,qt)).catch(qt)})})}},this.authorizeSelfInviteWithLocator=(bt,mt=null,Rt=null,Xt={})=>new Promise((qt,Sn)=>this.checkinApiService.authorize(mt,Rt,bt,Xt).subscribe(qt,Sn)),this.authorizeDoCheckin=(bt,mt,Rt)=>new Promise((Xt,qt)=>this.checkinApiService.authorizeDoCheckin(bt,mt,Rt).subscribe(Xt,qt)),this.denySelfInviteWithLocator=(bt,mt,Rt,Xt)=>new Promise((qt,Sn)=>this.checkinApiService.deny(bt,mt,Rt,Xt).subscribe(qt,Sn)),this.denyDoCheckin=(bt,mt,Rt,Xt)=>new Promise((qt,Sn)=>this.checkinApiService.denyDoCheckin(bt,mt,Rt,Xt).subscribe(qt,Sn)),this.denyOne=(bt,mt,Rt,Xt)=>new Promise((qt,Sn)=>this.checkinApiService.denyOne(bt,mt,Rt,Xt).subscribe(qt,Sn)),this.denyAll=(bt,mt,Rt,Xt)=>new Promise((qt,Sn)=>this.checkinApiService.denyAll(bt,mt,Rt,Xt).subscribe(qt,Sn)),this.denyAllSelfInviteWithLocator=(bt,mt,Rt,Xt)=>new Promise((qt,Sn)=>this.checkinApiService.deny(bt,mt,Rt,Xt).subscribe(qt,Sn)),this.authorizePartial=(bt,mt,Rt,Xt)=>new Promise((qt,Sn)=>this.checkinApiService.authorizeAllowPartial(bt,mt,Rt,Xt).subscribe(qt,Sn)),this.authorizeAll=(bt,mt,Rt,Xt)=>new Promise((qt,Sn)=>this.checkinApiService.authorizeAllowAll(bt,mt,Rt,Xt).subscribe(qt,Sn))}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(Ce),h.\u0275\u0275inject(se),h.\u0275\u0275inject(me),h.\u0275\u0275inject(Ne),h.\u0275\u0275inject(ge),h.\u0275\u0275inject(_e))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var Ee=f(15439),le=f.n(Ee);let Ue=(()=>{class fe{constructor(P,Q,Pe,Ve){this.apiService=P,this.authService=Q,this.profileManagerService=Pe,this.portalLoginManagerService=Ve,this.clearCreateEventData=()=>{this.clearAction(),this.clearTitle(),this.clearStartDate(),this.clearEndDate(),this.clearHosts(),this.clearGuests(),this.clearFloors(),this.clearGroups(),this.clearLocator(),this.clearId(),this.clearSelectedFloor(),this.clearSelectedGroup(),this.clearNeedAuthorization(),this.clearCheckInStartAt(),this.clearTarget(),this.clearApproveEventReview(),this.clearBookings(),this.clearBookeisToCancel(),this.clearInvitesToDelete(),this.clearCompanionAllowed(),this.clearMultiCheckin(),this.clearGeoCoordinates(),this.clearRecurrent(),this.clearRecurrenceDates(),this.clearPeriods(),this.clearMaxInvites(),this.clearMaxDatesRecurrence(),this.clearInterrupted()},this.setEventToEdit=Z=>{Z&&(Z.id&&this.setId(Z.id),this.setTitle(Z.title),this.setStartDate(Z.startAt),this.setEndDate(Z.endAt),this.setHosts(Z.hosts),this.setGuests(Z.guests),this.setNeedAuthorization(!Z.autoRelease),this.setCompanionAllowed(Z.allowCompanion),this.setMultiCheckIn(Z.multiCheckin),this.setCheckInStartAt(Z.checkinStartAt),this.setTarget(Z.target),this.setBookings(this.renameAssetNameBookei(Z.bookeis)),this.setRecurrent(Z?.recurrent),this.setRecurrenceDates(Z.recurrenceDates),this.setPeriods(Z?.periods),this.setMaxInvites(Z?.maxInvites),Z?.floor&&this.setSelectedFloor(Z.floor),Z?.group&&this.setSelectedGroup(Z.group))},this.setAction=Z=>{localStorage.setItem("create_event_action",Z)},this.getAction=()=>localStorage.getItem("create_event_action")||null,this.setApproveEventReview=Z=>{localStorage.setItem("create_event_approve_event_review",Z)},this.getApproveEventReview=()=>localStorage.getItem("create_event_approve_event_review")||null,this.setTarget=Z=>{!Z||localStorage.setItem("create_event_target",Z)},this.getTarget=()=>localStorage.getItem("create_event_target")||null,this.getIsNew=()=>!localStorage.getItem("create_event_event_id"),this.getId=()=>localStorage.getItem("create_event_event_id")||null,this.setId=Z=>{localStorage.setItem("create_event_event_id",Z)},this.clearId=()=>{localStorage.removeItem("create_event_event_id")},this.getTitle=()=>localStorage.getItem("create_event_event_title")||null,this.setTitle=Z=>{localStorage.setItem("create_event_event_title",Z)},this.clearAction=()=>{localStorage.removeItem("create_event_action")},this.clearApproveEventReview=()=>{localStorage.removeItem("create_event_approve_event_review")},this.clearTitle=()=>{localStorage.removeItem("create_event_event_title")},this.getStartDate=()=>localStorage.getItem("create_event_event_start_date")||null,this.setStartDate=Z=>{localStorage.setItem("create_event_event_start_date",Z)},this.clearStartDate=()=>{localStorage.removeItem("create_event_event_start_date")},this.getEndDate=()=>localStorage.getItem("create_event_event_end_date")||null,this.setEndDate=Z=>{localStorage.setItem("create_event_event_end_date",Z)},this.clearEndDate=()=>{localStorage.removeItem("create_event_event_end_date")},this.getLocator=()=>localStorage.getItem("create_event_event_locator")||null,this.setLocator=Z=>{localStorage.setItem("create_event_event_locator",Z)},this.clearLocator=()=>{localStorage.removeItem("create_event_event_locator")},this.getHosts=()=>{const Z=localStorage.getItem("create_event_event_hosts");return Z?JSON.parse(Z):[]},this.setHosts=Z=>{localStorage.setItem("create_event_event_hosts",JSON.stringify(Z))},this.clearHosts=()=>{localStorage.removeItem("create_event_event_hosts")},this.getBookings=()=>{const Z=localStorage.getItem("create_event_event_bookeis");return Z?JSON.parse(Z):[]},this.setBookings=Z=>{localStorage.setItem("create_event_event_bookeis",JSON.stringify(Z))},this.clearBookings=()=>{localStorage.removeItem("create_event_event_bookeis")},this.getBookeisToCancel=()=>{const Z=localStorage.getItem("create_event_event_bookeis_to_cancel");return Z?JSON.parse(Z):[]},this.setBookeisToCancel=Z=>{localStorage.setItem("create_event_event_bookeis_to_cancel",JSON.stringify(Z))},this.clearBookeisToCancel=()=>{localStorage.removeItem("create_event_event_bookeis_to_cancel")},this.getInvitesToDelete=()=>{const Z=localStorage.getItem("create_event_event_invites_to_delete");return Z?JSON.parse(Z):[]},this.setInvitesToDelete=Z=>{localStorage.setItem("create_event_event_invites_to_delete",JSON.stringify(Z))},this.clearInvitesToDelete=()=>{localStorage.removeItem("create_event_event_invites_to_delete")},this.getGuests=()=>{const Z=localStorage.getItem("create_event_event_guests");return Z?JSON.parse(Z):[]},this.setGuests=Z=>{localStorage.setItem("create_event_event_guests",JSON.stringify(Z))},this.clearGuests=()=>{localStorage.removeItem("create_event_event_guests")},this.getFloors=()=>{const Z=localStorage.getItem("create_event_event_floors");return Z?JSON.parse(Z):[]},this.setFloors=Z=>{localStorage.setItem("create_event_event_floors",JSON.stringify(Z))},this.clearFloors=()=>{localStorage.removeItem("create_event_event_floors")},this.getSelectedFloor=()=>{const Z=localStorage.getItem("create_event_event_selected_floor");return Z?JSON.parse(Z):null},this.setSelectedFloor=Z=>{localStorage.setItem("create_event_event_selected_floor",JSON.stringify(Z))},this.clearSelectedFloor=()=>{localStorage.removeItem("create_event_event_selected_floor")},this.getGroups=()=>{const Z=localStorage.getItem("create_event_event_groups");return Z?JSON.parse(Z):[]},this.setGroups=Z=>{localStorage.setItem("create_event_event_groups",JSON.stringify(Z))},this.clearGroups=()=>{localStorage.removeItem("create_event_event_groups")},this.setSelectedGroup=Z=>{localStorage.setItem("create_event_event_selected_group",JSON.stringify(Z))},this.getSelectedGroup=()=>{const Z=localStorage.getItem("create_event_event_selected_group");return Z?JSON.parse(Z):null},this.clearSelectedGroup=()=>{localStorage.removeItem("create_event_event_selected_group")},this.getMultiCheckIn=()=>{const Z=localStorage.getItem("create_event_multi_check_in");return!!Z&&JSON.parse(Z)},this.setMultiCheckIn=Z=>{localStorage.setItem("create_event_multi_check_in",JSON.stringify(Z))},this.clearMultiCheckin=()=>{localStorage.removeItem("create_event_multi_check_in")},this.getCompanionAllowed=()=>{const Z=localStorage.getItem("create_event_companion_allowed");return!!Z&&JSON.parse(Z)},this.setCompanionAllowed=Z=>{localStorage.setItem("create_event_companion_allowed",JSON.stringify(Z))},this.clearCompanionAllowed=()=>{localStorage.removeItem("create_event_companion_allowed")},this.getNeedAuthorization=()=>{const Z=localStorage.getItem("create_event_need_authorization");return!!Z&&JSON.parse(Z)},this.setNeedAuthorization=Z=>{localStorage.setItem("create_event_need_authorization",JSON.stringify(Z))},this.clearNeedAuthorization=()=>{localStorage.removeItem("create_event_need_authorization")},this.getCheckInStartAt=()=>{const Z=localStorage.getItem("create_event_check_in_start_at");return!!Z&&JSON.parse(Z)},this.setCheckInStartAt=Z=>{localStorage.setItem("create_event_check_in_start_at",JSON.stringify(Z))},this.clearCheckInStartAt=()=>{localStorage.removeItem("create_event_check_in_start_at")},this.clearTarget=()=>{localStorage.removeItem("create_event_target")},this.getGeoCoordinates=()=>{const Z=localStorage.getItem("create_event_geo_coordinates");return!!Z&&JSON.parse(Z)},this.setGeoCoordinates=Z=>{localStorage.setItem("create_event_geo_coordinates",JSON.stringify(Z))},this.clearGeoCoordinates=()=>{localStorage.removeItem("create_event_geo_coordinates")},this.clearRecurrent=()=>{localStorage.removeItem("create_event_event_recurrent")},this.setRecurrent=Z=>{!Z||localStorage.setItem("create_event_event_recurrent",JSON.stringify(Z))},this.getRecurrent=()=>{const Z=localStorage.getItem("create_event_event_recurrent");return!!Z&&JSON.parse(Z)},this.clearRecurrenceDates=()=>{localStorage.removeItem("create_event_event_recurrence_dates")},this.setRecurrenceDates=Z=>{localStorage.setItem("create_event_event_recurrence_dates",JSON.stringify(Z||[]))},this.getRecurrenceDates=()=>{const Z=localStorage.getItem("create_event_event_recurrence_dates");return Z?JSON.parse(Z):[]},this.clearPeriods=()=>{localStorage.removeItem("create_event_event_periods")},this.setPeriods=Z=>{localStorage.setItem("create_event_event_periods",JSON.stringify(Z||[]))},this.getPeriods=()=>{const Z=localStorage.getItem("create_event_event_periods");return Z?JSON.parse(Z):[]},this.getMaxInvites=()=>{const Z=localStorage.getItem("create_event_max_invites");return Z&&null!=Z?JSON.parse(Z):0},this.clearMaxInvites=()=>{localStorage.removeItem("create_event_max_invites")},this.getAccount=()=>new Promise((Z,re)=>{this.authService.getToken().then(Xe=>{this.apiService.account(Xe).subscribe(Z,re)}).catch(re)}),this.getCompanyGroups=()=>{const Z=this.profileManagerService.getProfile();return new Promise((re,Xe)=>{this.authService.getToken().then(it=>this.portalLoginManagerService.getAccessToken(Z.login,Z.portal,it)).then(it=>this.apiService.getCompanyGroups(Z.company.instanceName,it.access_token).subscribe(re,Xe)).catch(Xe)})},this.getCompanyFloors=()=>{const Z=this.profileManagerService.getProfile();return new Promise((re,Xe)=>{this.authService.getToken().then(it=>this.portalLoginManagerService.getAccessToken(Z.login,Z.portal,it)).then(it=>this.apiService.getCompanyFloors(Z.company.instanceName,it.access_token).subscribe(re,Xe)).catch(Xe)})},this.getCompanyHosts=(Z,re,Xe,it=!1)=>{console.log(Z);const bt=this.profileManagerService.getProfile();return new Promise((mt,Rt)=>{this.authService.getToken().then(Xt=>this.portalLoginManagerService.getAccessToken(bt.login,bt.portal,Xt)).then(Xt=>{const qt=bt.company.instanceName,Sn=Xt.access_token,Wn={"receptionist.equals":!0,"limited.equals":!0,page:re,size:Xe||15,sort:"name,asc"};return Z.searchTerm&&(Wn["firstName.contains"]=Z.searchTerm.trim(),Wn["document.contains"]=Z.searchTerm.trim(),Wn["lastName.contains"]=Z.searchTerm.trim()),Z.searchTerm&&!it&&(delete Wn.sort,delete Wn.size,delete Wn.page),this.apiService.getCompanyUsers(qt,Sn,Wn).subscribe(mt,Rt)}).catch(Rt)})},this.getCompanyHost=Z=>{const re=this.profileManagerService.getProfile();return new Promise((Xe,it)=>{this.authService.getToken().then(bt=>this.portalLoginManagerService.getAccessToken(re.login,re.portal,bt)).then(bt=>this.apiService.getCompanyUser(re.company.instanceName,bt.access_token,{"refId.equals":Z}).subscribe(Xe,it)).catch(it)})},this.getCompanyGuests=(Z,re,Xe,it=!1)=>{const bt=this.profileManagerService.getProfile();return new Promise((mt,Rt)=>{this.authService.getToken().then(Xt=>this.portalLoginManagerService.getAccessToken(bt.login,bt.portal,Xt)).then(Xt=>{const qt=bt.company.instanceName,Sn=Xt.access_token,Wn=Z.searchTerm,Un=this.getFirstName(Wn),sr=this.getLastName(Wn);return Z={"firstName.contains":Un,"document.contains":Wn,"company.contains":Wn,page:re,size:Xe||15,sort:"firstName,asc"},sr&&(Z["lastName.contains"]=sr),Wn&&!it&&(delete Z.sort,delete Z.size,delete Z.page),this.apiService.getCompanyVisitors(qt,Sn,Z).subscribe(mt,Rt)}).catch(Rt)})},this.getFirstName=Z=>(Z=(Z=Z.trim()).split(" "))[0]?Z[0]:"",this.getLastName=Z=>(Z=(Z=(Z=Z.trim()).split(" ")).filter((re,Xe)=>0!==Xe)).join(" "),this.getPrivateGuestByPhoneNumber=Z=>{const re=this.profileManagerService.getProfile();return new Promise((Xe,it)=>{this.authService.getToken().then(bt=>this.portalLoginManagerService.getAccessToken(re.login,re.portal,bt)).then(bt=>this.apiService.getCompanyUserPrivateVisitors(re.company.instanceName,bt.access_token,Z.phoneNumber).subscribe(Xe,it)).catch(it)})},this.createPrivateGuest=Z=>{const re=this.profileManagerService.getProfile(),Xe={...Z};return new Promise((it,bt)=>{this.authService.getToken().then(mt=>this.portalLoginManagerService.getAccessToken(re.login,re.portal,mt)).then(mt=>this.apiService.createPrivateGuest(Xe,re.company.instanceName,mt.access_token).subscribe(it,bt)).catch(bt)})},this.updatePrivateGuest=Z=>{const re=this.profileManagerService.getProfile(),Xe={...Z};return new Promise((it,bt)=>{this.authService.getToken().then(mt=>this.portalLoginManagerService.getAccessToken(re.login,re.portal,mt)).then(mt=>this.apiService.updatePrivateGuest(Xe,re.company.instanceName,mt.access_token).subscribe(it,bt)).catch(bt)})},this.createEvent=Z=>{const re=this.profileManagerService.getProfile(),Xe=Z.title,it=Z.startAt,bt=Z.endAt,mt=Z.allowCompanion,Rt=Z.autoRelease,Xt=Z.multiCheckin,qt=Z.checkinStartAt,Sn={floor:Z?.floor?.description,floorCode:Z?.floor?.code},Wn=Z.group?{group:Z?.group?.description,groupCode:Z?.group?.code}:{group:null,groupCode:null},hr=[...Z.hosts.map(G=>(G.host=!0,G)),...Z.guests.map(G=>(G.host=!1,G))],Ar=Z.geoCoordinates,eo=!!Z?.recurrent&&Z?.recurrent,fo=Z?.recurrenceDates?Z?.recurrenceDates:[],ko=Z.bookeis?Z.bookeis.map(G=>({assetId:G.id})):[],y={title:Xe,startAt:le()(it).toISOString(),endAt:le()(bt).toISOString(),invites:hr,...Sn,...Wn,bookeis:ko,allowCompanion:mt,autoRelease:Rt,multiCheckin:Xt,checkinStartAt:qt,type:"ONCE",timeZoneOffset:-180,status:"OPENED",geoCoordinates:Ar,recurrent:eo,recurrenceDates:fo};return new Promise((G,Je)=>{this.authService.getToken().then(dt=>this.portalLoginManagerService.getAccessToken(re.login,re.portal,dt)).then(dt=>{const st=re.company.instanceName,Ln=dt.access_token;return this.profileManagerService.isExpeditionProfile()?this.apiService.createEventV2(y,st,Ln).subscribe(G,Je):this.apiService.createEvent(y,st,Ln).subscribe(G,Je)}).catch(Je)})},this.updateEvent=(Z,re="OPENED")=>{const Xe=Z.id,it=this.profileManagerService.getProfile(),bt=Z.title,mt=Z.startAt,Rt=Z.endAt,Xt=Z.allowCompanion,qt=Z.autoRelease,Sn=Z.multiCheckin,Wn=Z.checkinStartAt,Un={floor:Z?.floor?.description,floorCode:Z?.floor?.code},sr=Z.group?{group:Z?.group?.description,groupCode:Z?.group?.code}:{group:null,groupCode:null},eo=[...Z.hosts.map(X=>(X.host=!0,X)),...Z.guests.map(X=>(X.host=!1,X))],fo=Z.geoCoordinates,G=Z.bookeisToCancel?Z.bookeisToCancel.map(X=>X.assetId):[],Je=Z.bookeis?Z.bookeis.map(X=>({assetId:X.assetId})):[],dt=!!Z?.recurrent&&Z?.recurrent,st=Z?.recurrenceDates?Z?.recurrenceDates:[],Ln=Z.locator,Rr=st?.length>0?this.getPeriods():[],A={id:Xe,title:bt,startAt:le()(mt).toISOString(),endAt:le()(Rt).toISOString(),invites:eo,invitesToDelete:Z.invitesToDelete,...sr,...Un,bookeis:Je,bookeisToCancel:G,allowCompanion:Xt,autoRelease:qt,multiCheckin:Sn,checkinStartAt:Wn,type:"ONCE",timeZoneOffset:-180,status:re,geoCoordinates:fo,recurrent:dt,recurrenceDates:st,locator:Ln,periods:Rr};return new Promise((X,_)=>{this.authService.getToken().then(T=>this.portalLoginManagerService.getAccessToken(it.login,it.portal,T)).then(T=>{const O=it.company.instanceName,ve=T.access_token;return this.profileManagerService.isExpeditionProfile()?this.apiService.updateEventV2(A,O,ve).subscribe(X,_):this.apiService.updateEvent(A,O,ve).subscribe(X,_)}).catch(_)})},this.updateEventAsync=(Z,re="OPENED")=>{const Xe=Z.id,it=this.profileManagerService.getProfile(),bt=Z.title,mt=Z.startAt,Rt=Z.endAt,Xt=Z.allowCompanion,qt=Z.autoRelease,Sn=Z.multiCheckin,Wn=Z.checkinStartAt,Un={floor:Z?.floor?.description,floorCode:Z?.floor?.code},sr=Z.group?{group:Z?.group?.description,groupCode:Z?.group?.code}:{group:null,groupCode:null},eo=[...Z.hosts.map(X=>(X.host=!0,X)),...Z.guests.map(X=>(X.host=!1,X))],fo=Z.geoCoordinates,G=Z.bookeisToCancel?Z.bookeisToCancel.map(X=>X.assetId):[],Je=Z.bookeis?Z.bookeis.map(X=>({assetId:X.assetId})):[],dt=!!Z?.recurrent&&Z?.recurrent,st=Z?.recurrenceDates?Z?.recurrenceDates:[],Ln=Z.locator,Rr=st?.length>0?this.getPeriods():[],A={id:Xe,title:bt,startAt:le()(mt).toISOString(),endAt:le()(Rt).toISOString(),invites:eo,invitesToDelete:Z.invitesToDelete,...sr,...Un,bookeis:Je,bookeisToCancel:G,allowCompanion:Xt,autoRelease:qt,multiCheckin:Sn,checkinStartAt:Wn,type:"ONCE",timeZoneOffset:-180,status:re,geoCoordinates:fo,recurrent:dt,recurrenceDates:st,locator:Ln,periods:Rr};return new Promise((X,_)=>{this.authService.getToken().then(T=>this.portalLoginManagerService.getAccessToken(it.login,it.portal,T)).then(T=>{this.apiService.updateEventAsync(A,it.company.instanceName,T.access_token).subscribe(X,_)}).catch(_)})},this.approveEvent=(Z,re="OPENED")=>{const Xe=Z.id,it=this.profileManagerService.getProfile(),bt=Z.title,mt=Z.startAt,Rt=Z.endAt,Xt=Z.allowCompanion,qt=Z.autoRelease,Sn=Z.multiCheckin,Wn=Z.checkinStartAt,Un={floor:Z?.floor?.description,floorCode:Z?.floor?.code},sr=Z.group?{group:Z?.group?.description,groupCode:Z?.group?.code}:{group:null,groupCode:null},eo=[...Z.hosts.map(st=>(st.host=!0,st)),...Z.guests.map(st=>(st.host=!1,st))],fo=Z.geoCoordinates,G=!!Z?.recurrent&&Z?.recurrent,Je=Z?.recurrenceDates?Z?.recurrenceDates:[],dt={id:Xe,title:bt,startAt:le()(mt).toISOString(),endAt:le()(Rt).toISOString(),invites:eo,...sr,...Un,allowCompanion:Xt,autoRelease:qt,multiCheckin:Sn,checkinStartAt:Wn,type:"ONCE",timeZoneOffset:-180,status:re,geoCoordinates:fo,recurrent:G,recurrenceDates:Je};return new Promise((st,Ln)=>{this.authService.getToken().then(Rr=>this.portalLoginManagerService.getAccessToken(it.login,it.portal,Rr)).then(Rr=>this.apiService.authorizeEvent(dt,it.company.instanceName,Rr.access_token).subscribe(st,Ln)).catch(Ln)})},this.denyEvent=Z=>{const re=this.profileManagerService.getProfile();return new Promise((Xe,it)=>{this.authService.getToken().then(bt=>this.portalLoginManagerService.getAccessToken(re.login,re.portal,bt)).then(bt=>this.apiService.denyEvent(Z,re.company.instanceName,bt.access_token).subscribe(Xe,it)).catch(it)})},this.createGuest=Z=>{const re=this.profileManagerService.getProfile(),Xe={...Z};return new Promise((it,bt)=>{this.authService.getToken().then(mt=>this.portalLoginManagerService.getAccessToken(re.login,re.portal,mt)).then(mt=>this.apiService.createGuest(Xe,re.company.instanceName,mt.access_token).subscribe(it,bt)).catch(bt)})},this.deleteEvent=Z=>this.updateEvent(Z,"CANCELED"),this.deleteEventAsync=Z=>this.updateEventAsync(Z,"CANCELED"),this.deleteEventV2=Z=>this.updateEventV2(Z,"CANCELED"),this.disableFields=()=>{const Z=this.getGuests();let re=!1;return Z?.length&&(re=Z.filter(Xe=>"CHECKIN_DONE"===Xe.status||"QRCODE_PRINTED"===Xe.status||"FINISHED"===Xe.status).length>0),re},this.updateEventV2=(Z,re="OPENED")=>{const Xe=Z.id,it=this.profileManagerService.getProfile(),bt=Z.title,mt=Z.startAt,Rt=Z.endAt,Xt=Z.allowCompanion,qt=Z.autoRelease,Sn=Z.multiCheckin,Wn=Z.checkinStartAt,Un=Z.group?{group:Z?.group?.description,groupCode:Z?.group?.code}:{group:null,groupCode:null},sr={floor:Z?.floor?.description,floorCode:Z?.floor?.code},eo=[...Z.hosts.map(Rr=>(Rr.host=!0,Rr)),...Z.guests.map(Rr=>(Rr.host=!1,Rr))],Je=Z?.recurrenceDates?Z?.recurrenceDates:[],Ln={id:Xe,title:bt,startAt:mt,endAt:Rt,invites:eo,...Un,...sr,allowCompanion:Xt,autoRelease:qt,multiCheckin:Sn,checkinStartAt:Wn,type:"ONCE",timeZoneOffset:-180,status:re,geoCoordinates:Z.geoCoordinates,recurrent:!!Z?.recurrent&&Z?.recurrent,recurrenceDates:Je,locator:Z.locator,periods:Je?.length>0?this.getPeriods():[]};return new Promise((Rr,A)=>{this.authService.getToken().then(X=>this.portalLoginManagerService.getAccessToken(it.login,it.portal,X)).then(X=>this.apiService.updateEvent(Ln,it.company.instanceName,X.access_token).subscribe(Rr,A)).catch(A)})}}setMaxInvites(P){!P||localStorage.setItem("create_event_max_invites",JSON.stringify(P))}getMaxDatesRecurrence(){const P=localStorage.getItem("create_event_max_dates_recurrence");return P?JSON.parse(P):0}setMaxDatesRecurrence(P){localStorage.setItem("create_event_max_dates_recurrence",JSON.stringify(P))}clearMaxDatesRecurrence(){localStorage.removeItem("create_event_max_dates_recurrence")}getSettingsCompany(){const P=localStorage.getItem("create_event_settings_company");return P?JSON.parse(P):{allowCompanion:void 0,autoRelease:void 0,bookeiInstance:void 0,checkinEndAt:void 0,checkinMaxAttempts:void 0,checkinStartAt:void 0,companyKaSitecode:void 0,displayOnTotem:void 0,expressEventDefaultDuration:void 0,externalCodeLabel:void 0,fullNamePattern:void 0,id:void 0,locatorPreAuthorizedDefaultValue:void 0,maxDates:void 0,maxInvites:void 0,multiCheckin:void 0,timeZoneOffset:void 0,useLocatorPreAuthorized:void 0,useOwnLocator:void 0,datalakeStartDate:void 0,datalakeLastSyncDate:void 0,usersSiteMigrationDate:void 0,showKaReportOnCo:void 0}}setSettingsCompany(P){localStorage.setItem("create_event_settings_company",JSON.stringify(P))}clearSettingsCompany(){localStorage.removeItem("create_event_settings_company")}clearInterrupted(){localStorage.removeItem("needs_clear_resume_creation_interrupted"),localStorage.removeItem("profile_logistic_creation_interrupted"),localStorage.removeItem("resume_creation_interrupted"),localStorage.removeItem("profile_creation_interrupted")}renameAssetNameBookei(P){return P?P.map(Q=>({name:Q.assetName||Q.name,...Q})):[]}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(Ce),h.\u0275\u0275inject(_e))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var ke=f(39961);let ze=(()=>{class fe{constructor(P,Q,Pe){this.apiService=P,this.http=Q,this.commonService=Pe,this.getCompanyDrivers=(Ve=null,Z,re)=>{const Xe={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})};re=this.commonService.objectToQueryString(re);const it=this.apiService.getLgBaseUrl()+"/services/"+Ve+"/api/logistics/drivers?"+re;return this.http.get(it,Xe)},this.getCompanyAssistants=(Ve=null,Z,re)=>{const Xe={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})};re=this.commonService.objectToQueryString(re);const it=this.apiService.getLgBaseUrl()+"/services/"+Ve+"/api/logistics/assistants?"+re;return this.http.get(it,Xe)},this.comparePendingApprovals=(Ve=null,Z=null,re,Xe={})=>{const it={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+re})};Xe=this.commonService.objectToQueryString(Xe);const bt=this.apiService.getLgBaseUrl()+"/services/"+Ve+"/api/logistics/invite-pending-approvals/"+Z+"/compare?"+Xe;return this.http.get(bt,it)},this.getEvents=(Ve=null,Z,re)=>{const Xe={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})};re=this.commonService.objectToQueryString(re);const it=this.apiService.getLgBaseUrl()+"/services/"+Ve+"/api/logistics/dashboard/app?"+re;return this.http.get(it,Xe)},this.getEventsV2=(Ve=null,Z,re)=>{const Xe={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Z})};re=this.commonService.objectToQueryStringV2(re);const it=this.apiService.getLgBaseUrl()+"/services/"+Ve+"/api/v2/logistics/dashboard/app"+re;return this.http.get(it,Xe)},this.getEvent=(Ve,Z,re,Xe)=>{const it={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+re})};Xe=this.commonService.objectToQueryString(Xe);const bt=this.apiService.getLgBaseUrl()+"/services/"+Z+"/api/logistics/events/"+Ve+"/details"+Xe;return this.http.get(bt,it)}}createEvent(P,Q,Pe){const Ve={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Pe})},Z=this.apiService.getLgBaseUrl()+"/services/"+Q+"/api/v2/logistics/events";return this.http.post(Z,P,Ve)}updateEvent(P,Q,Pe){const Ve={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Pe})},Z=this.apiService.getLgBaseUrl()+"/services/"+Q+"/api/v2/logistics/events/";return this.http.put(Z,P,Ve)}authorizeEvent(P,Q,Pe){const Ve={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Pe})},Z=this.apiService.getLgBaseUrl()+"/services/"+Q+"/api/logistics/events/authorize";return this.http.put(Z,P,Ve)}denyEvent(P,Q,Pe){const Ve={headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Pe})},Z=this.apiService.getLgBaseUrl()+"/services/"+Q+"/api/logistics/events/deny";return this.http.put(Z,P,Ve)}del(P,Q,Pe){const Ve={body:P.geoCoordinates,headers:new oe.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:"Bearer "+Pe})},Z=this.apiService.getLgBaseUrl()+"/services/"+Q+"/api/v2/logistics/events/"+P.id;return this.http.delete(Z,Ve)}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(oe.HttpClient),h.\u0275\u0275inject(te))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),ye=(()=>{class fe{constructor(P,Q,Pe,Ve,Z){this.apiService=P,this.logisticEventApiService=Q,this.authService=Pe,this.profileManagerService=Ve,this.portalLoginManagerService=Z,this.clearCreateEventData=()=>{this.clearId(),this.clearTitle(),this.clearStartDate(),this.clearEndDate(),this.clearDriver(),this.clearAssistants(),this.clearLicensePlateOne(),this.clearLicensePlateTwo(),this.clearNeedAuthorization(),this.clearNotes(),this.clearHasCart(),this.clearType(),this.clearOnFoot(),this.clearLocator(),this.clearUseOwnLocator(),this.clearUseLocatorPreAuthorized(),this.clearLocatorPreAuthorized(),this.clearTarget(),this.clearApproveEventReview(),this.clearMultiCheckin(),this.clearAction(),this.clearRecurrent(),this.clearRecurrenceDates()},this.setEventToEdit=re=>{re.id&&this.setId(re.id),this.setType(re.behavior),this.setTitle(re.title),this.setStartDate(re.startAt),this.setEndDate(re.endAt),this.setDriver(re.driver),this.setAssistants(re.assistants),this.setOnFoot(re.onFoot),this.setHasCart(re.hasCart),this.setLicensePlateOne(re.licensePlateOne),this.setLicensePlateTwo(re.licensePlateTwo),this.setNeedAuthorization(!re.autoRelease),this.setNotes(re.notes),this.setTarget(re.target),this.setLocator(re.locator),this.setUseOwnLocator(re.useOwnLocator),console.warn("[DEBUG setEventToEdit] event.useLocatorPreAuthorized:",re.useLocatorPreAuthorized,"| type:",typeof re.useLocatorPreAuthorized),console.warn("[DEBUG setEventToEdit] event.locatorPreAuthorized:",re.locatorPreAuthorized,"| type:",typeof re.locatorPreAuthorized),this.setUseLocatorPreAuthorized(re.useLocatorPreAuthorized),this.setLocatorPreAuthorized(re.locatorPreAuthorized),this.setMultiCheckIn(!!re?.multiCheckin),this.setRecurrent(re.recurrent),this.setRecurrenceDates(re.recurrenceDates),this.clearInterrupted()},this.setAction=re=>{localStorage.setItem("create_event_action",re)},this.getAction=()=>localStorage.getItem("create_event_action")||null,this.setApproveEventReview=re=>{localStorage.setItem("create_event_logistic_approve_event_review",re)},this.getApproveEventReview=()=>localStorage.getItem("create_event_logistic_approve_event_review")||null,this.clearApproveEventReview=()=>{localStorage.removeItem("create_event_logistic_approve_event_review")},this.setTarget=re=>{localStorage.setItem("create_event_target",re)},this.getTarget=()=>localStorage.getItem("create_event_target")||null,this.getIsNew=()=>!localStorage.getItem("create_logistic_event_event_id"),this.getId=()=>localStorage.getItem("create_logistic_event_event_id")||null,this.setId=re=>{localStorage.setItem("create_logistic_event_event_id",re)},this.clearId=()=>{localStorage.removeItem("create_logistic_event_event_id")},this.setType=re=>{localStorage.setItem("create_logistic_event_event_type",re)},this.getType=()=>localStorage.getItem("create_logistic_event_event_type")||null,this.clearType=()=>{localStorage.removeItem("create_logistic_event_event_type")},this.getTitle=()=>localStorage.getItem("create_logistic_event_event_title")||null,this.setTitle=re=>{localStorage.setItem("create_logistic_event_event_title",re)},this.clearTitle=()=>{localStorage.removeItem("create_logistic_event_event_title")},this.getLicensePlateOne=()=>{const re=localStorage.getItem("create_logistic_event_event_license_plate_one");return re?"null"===re?"":re:""},this.setLicensePlateOne=re=>{localStorage.setItem("create_logistic_event_event_license_plate_one",re)},this.clearLicensePlateOne=()=>{localStorage.removeItem("create_logistic_event_event_license_plate_one")},this.getLicensePlateTwo=()=>{const re=localStorage.getItem("create_logistic_event_event_license_plate_two");return re?"null"===re?"":re:""},this.setLicensePlateTwo=re=>{localStorage.setItem("create_logistic_event_event_license_plate_two",re)},this.clearLicensePlateTwo=()=>{localStorage.removeItem("create_logistic_event_event_license_plate_two")},this.getNotes=()=>localStorage.getItem("create_logistic_event_event_notes")||"",this.setNotes=re=>{localStorage.setItem("create_logistic_event_event_notes",re)},this.clearNotes=()=>{localStorage.removeItem("create_logistic_event_event_notes")},this.getStartDate=()=>localStorage.getItem("create_logistic_event_event_start_date")||null,this.setStartDate=re=>{localStorage.setItem("create_logistic_event_event_start_date",re)},this.clearStartDate=()=>{localStorage.removeItem("create_logistic_event_event_start_date")},this.getEndDate=()=>localStorage.getItem("create_logistic_event_event_end_date")||null,this.setEndDate=re=>{localStorage.setItem("create_logistic_event_event_end_date",re)},this.clearEndDate=()=>{localStorage.removeItem("create_logistic_event_event_end_date")},this.clearAction=()=>{localStorage.removeItem("create_event_action")},this.getLocator=()=>localStorage.getItem("create_logistic_event_event_locator")||"",this.setLocator=re=>{localStorage.setItem("create_logistic_event_event_locator",re)},this.clearLocator=()=>{localStorage.removeItem("create_logistic_event_event_locator")},this.getUseOwnLocator=()=>{const re=localStorage.getItem("create_logistic_event_event_use_own_locator");if(!re||"undefined"===re||"null"===re)return!1;try{return JSON.parse(re)}catch{return!1}},this.setUseOwnLocator=re=>{localStorage.setItem("create_logistic_event_event_use_own_locator",JSON.stringify(re))},this.clearUseOwnLocator=()=>{localStorage.removeItem("create_logistic_event_event_use_own_locator")},this.getMultiCheckIn=()=>{const re=localStorage.getItem("create_logistic_event_multi_check_in");return!!re&&JSON.parse(re)},this.setMultiCheckIn=re=>{localStorage.setItem("create_logistic_event_multi_check_in",JSON.stringify(re))},this.clearMultiCheckin=()=>{localStorage.removeItem("create_logistic_event_multi_check_in")},this.getUseLocatorPreAuthorized=()=>{const re=localStorage.getItem("create_logistic_event_event_use_locator_pre_authorized");return JSON.parse(re)},this.setUseLocatorPreAuthorized=re=>{console.warn("[DEBUG setUseLocatorPreAuthorized] value:",re,"| type:",typeof re),console.warn("[DEBUG setUseLocatorPreAuthorized] caller:",(new Error).stack?.split("\n")[2]?.trim()),localStorage.setItem("create_logistic_event_event_use_locator_pre_authorized",re)},this.clearUseLocatorPreAuthorized=()=>{localStorage.removeItem("create_logistic_event_event_use_locator_pre_authorized")},this.getLocatorPreAuthorized=()=>{const re=localStorage.getItem("create_logistic_event_event_locator_pre_authorized");return JSON.parse(re)},this.setLocatorPreAuthorized=re=>{console.warn("[DEBUG setLocatorPreAuthorized] value:",re,"| type:",typeof re),console.warn("[DEBUG setLocatorPreAuthorized] caller:",(new Error).stack?.split("\n")[2]?.trim()),localStorage.setItem("create_logistic_event_event_locator_pre_authorized",re)},this.clearLocatorPreAuthorized=()=>{localStorage.removeItem("create_logistic_event_event_locator_pre_authorized")},this.clearTarget=()=>{localStorage.removeItem("create_event_target")},this.getDriver=()=>{const re=localStorage.getItem("create_logistic_event_event_driver");return re?JSON.parse(re):null},this.setDriver=re=>{localStorage.setItem("create_logistic_event_event_driver",JSON.stringify(re))},this.clearDriver=()=>{localStorage.removeItem("create_logistic_event_event_driver")},this.getAssistants=()=>{const re=localStorage.getItem("create_logistic_event_event_assistants");return re?JSON.parse(re):[]},this.setAssistants=re=>{localStorage.setItem("create_logistic_event_event_assistants",JSON.stringify(re))},this.clearAssistants=()=>{localStorage.removeItem("create_logistic_event_event_assistants")},this.getOnFoot=()=>{const re=localStorage.getItem("create_logistic_event_on_foot");return!!re&&JSON.parse(re)},this.setOnFoot=re=>{localStorage.setItem("create_logistic_event_on_foot",JSON.stringify(re))},this.clearOnFoot=()=>{localStorage.removeItem("create_logistic_event_on_foot")},this.getHasCart=()=>{const re=localStorage.getItem("create_logistic_event_has_cart");return!!re&&JSON.parse(re)},this.setHasCart=re=>{localStorage.setItem("create_logistic_event_has_cart",JSON.stringify(re))},this.clearHasCart=()=>{localStorage.removeItem("create_logistic_event_has_cart")},this.getNeedAuthorization=()=>{const re=localStorage.getItem("create_logistic_event_need_authorization");return!re||JSON.parse(re)},this.setNeedAuthorization=re=>{localStorage.setItem("create_logistic_event_need_authorization",JSON.stringify(re))},this.clearNeedAuthorization=()=>{localStorage.removeItem("create_logistic_event_need_authorization")},this.clearRecurrent=()=>{localStorage.removeItem("create_logistic_event_recurrent")},this.setRecurrent=re=>{localStorage.setItem("create_logistic_event_recurrent",JSON.stringify(re))},this.getRecurrent=()=>{const re=localStorage.getItem("create_logistic_event_recurrent");return!!re&&JSON.parse(re)},this.clearRecurrenceDates=()=>{localStorage.removeItem("create_logistic_event_recurrence_dates")},this.setRecurrenceDates=re=>{localStorage.setItem("create_logistic_event_recurrence_dates",JSON.stringify(re||[]))},this.getRecurrenceDates=()=>{const re=localStorage.getItem("create_logistic_event_recurrence_dates");return re?JSON.parse(re):[]},this.getAccount=()=>new Promise((re,Xe)=>{this.authService.getToken().then(it=>{this.apiService.account(it).subscribe(re,Xe)}).catch(Xe)}),this.getCompanyDrivers=(re,Xe,it,bt=!1)=>{const mt=this.profileManagerService.getProfileLogistic();return new Promise((Rt,Xt)=>{this.authService.getToken().then(qt=>this.portalLoginManagerService.getAccessToken(mt.login,mt.portal,qt)).then(qt=>{const Sn=mt.company.instanceName,Wn=qt.access_token,Un=re.searchTerm,sr=this.getFirstName(Un),hr=this.getLastName(Un);return re={"firstName.contains":sr,page:Xe,size:it||15,sort:"firstName,asc"},hr&&(re["lastName.contains"]=hr),Un&&!bt&&(delete re.sort,delete re.size,delete re.page),this.logisticEventApiService.getCompanyDrivers(Sn,Wn,re).subscribe(Rt,Xt)}).catch(Xt)})},this.getCompanyAssistants=(re,Xe,it,bt=!1)=>{const mt=this.profileManagerService.getProfileLogistic();return new Promise((Rt,Xt)=>{this.authService.getToken().then(qt=>this.portalLoginManagerService.getAccessToken(mt.login,mt.portal,qt)).then(qt=>{const Sn=mt.company.instanceName,Wn=qt.access_token,Un=re.searchTerm,sr=this.getFirstName(Un),hr=this.getLastName(Un);return re={"firstName.contains":sr,page:Xe,size:it||15,sort:"firstName,asc"},hr&&(re["lastName.contains"]=hr),Un&&!bt&&(delete re.sort,delete re.size,delete re.page),this.logisticEventApiService.getCompanyAssistants(Sn,Wn,re).subscribe(Rt,Xt)}).catch(Xt)})},this.getPrivateGuestByPhoneNumber=re=>{const Xe=this.profileManagerService.getProfileLogistic();return new Promise((it,bt)=>{this.authService.getToken().then(mt=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,mt)).then(mt=>this.apiService.getCompanyUserPrivateVisitors(Xe.company.instanceName,mt.access_token,re.phoneNumber).subscribe(it,bt)).catch(bt)})},this.createPrivateGuest=re=>{const Xe=this.profileManagerService.getProfileLogistic(),it={...re};return new Promise((bt,mt)=>{this.authService.getToken().then(Rt=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,Rt)).then(Rt=>this.apiService.createPrivateGuest(it,Xe.company.instanceName,Rt.access_token).subscribe(bt,mt)).catch(mt)})},this.updatePrivateGuest=re=>{const Xe=this.profileManagerService.getProfileLogistic(),it={...re};return new Promise((bt,mt)=>{this.authService.getToken().then(Rt=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,Rt)).then(Rt=>this.apiService.updatePrivateGuest(it,Xe.company.instanceName,Rt.access_token).subscribe(bt,mt)).catch(mt)})},this.createEvent=re=>{const Xe=this.profileManagerService.getProfileLogistic(),it=re.type,bt=re.title,mt=le()(re.startAt).toISOString(),Rt=le()(re.endAt).toISOString(),dt={behavior:it,autoRelease:re.autoRelease,driver:re.driver?{...re.driver,hasCart:re.hasCart,onFoot:re.onFoot,licensePlateOne:re.licensePlateOne,licensePlateTwo:re.licensePlateTwo}:null,endAt:Rt,notes:re.notes,multiCheckin:re.multiCheckin,startAt:mt,title:bt,assistants:re.assistants,locator:re.locator,locatorPreAuthorized:re.locatorPreAuthorized,useLocatorPreAuthorized:re.useLocatorPreAuthorized,useOwnLocator:re.useOwnLocator,geoCoordinates:re.geoCoordinates};return("EXIT"===re.directionEvent||"CLONE_ENTRY"===re.directionEvent)&&(dt.multiCheckin=!1),new Promise((st,Ln)=>{this.authService.getToken().then(Rr=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,Rr)).then(Rr=>this.logisticEventApiService.createEvent(dt,Xe.company.instanceName,Rr.access_token).subscribe(st,Ln)).catch(Ln)})},this.updateEvent=re=>{const Xe=this.profileManagerService.getProfileLogistic(),it=re.id,bt=re.type,mt=re.title,Rt=le()(re.startAt).toISOString(),Xt=le()(re.endAt).toISOString(),G={id:it,behavior:bt,autoRelease:re.autoRelease,driver:re.driver?{...re.driver,hasCart:re.hasCart,onFoot:re.onFoot,licensePlateOne:re.licensePlateOne,licensePlateTwo:re.licensePlateTwo}:null,endAt:Xt,notes:re.notes,locator:re.locator,startAt:Rt,title:mt,assistants:re.assistants,multiCheckin:re.multiCheckin,geoCoordinates:re.geoCoordinates};return("EXIT"===re.directionEvent||"CLONE_ENTRY"===re.directionEvent)&&(G.multiCheckin=!1),new Promise((Je,dt)=>{this.authService.getToken().then(st=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,st)).then(st=>this.logisticEventApiService.updateEvent(G,Xe.company.instanceName,st.access_token).subscribe(Je,dt)).catch(dt)})},this.getSelectedEventRelatedProfile=(re,Xe)=>re.find(it=>it.company.instanceName===Xe),this.deleteEvent=re=>new Promise((Xe,it)=>{this.getVoProfiles().then(bt=>{const mt=this.getSelectedEventRelatedProfile(bt,re.company.instanceName);this.authService.getToken().then(Rt=>this.portalLoginManagerService.getAccessToken(mt.login,mt.portal,Rt)).then(Rt=>this.logisticEventApiService.del(re,mt.company.instanceName,Rt.access_token).subscribe(Xe,it)).catch(it)})}),this.approveEvent=(re,Xe="OPENED")=>{const it=this.profileManagerService.getProfileLogistic(),bt=re.id,mt=re.type,Rt=re.title,Xt=le()(re.startAt).toISOString(),qt=le()(re.endAt).toISOString(),y={id:bt,behavior:mt,autoRelease:re.autoRelease,driver:re.driver?{...re.driver,hasCart:re.hasCart,onFoot:re.onFoot,licensePlateOne:re.licensePlateOne,licensePlateTwo:re.licensePlateTwo}:null,endAt:qt,notes:re.notes,startAt:Xt,title:Rt,assistants:re.assistants,geoCoordinates:re.geoCoordinates};return new Promise((G,Je)=>{this.authService.getToken().then(dt=>this.portalLoginManagerService.getAccessToken(it.login,it.portal,dt)).then(dt=>this.apiService.authorizeLogisticEvent(y,it.company.instanceName,dt.access_token).subscribe(G,Je)).catch(Je)})},this.denyEvent=re=>{const Xe=this.profileManagerService.getProfileLogistic();return new Promise((it,bt)=>{this.authService.getToken().then(mt=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,mt)).then(mt=>this.apiService.denyLogisticEvent(re,Xe.company.instanceName,mt.access_token).subscribe(it,bt)).catch(bt)})},this.createGuest=re=>{const Xe=this.profileManagerService.getProfileLogistic(),it={...re};return new Promise((bt,mt)=>{this.authService.getToken().then(Rt=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,Rt)).then(Rt=>this.apiService.createGuest(it,Xe.company.instanceName,Rt.access_token).subscribe(bt,mt)).catch(mt)})},this.getVoProfiles=()=>new Promise((re,Xe)=>{this.authService.getToken().then(it=>{this.apiService.getUserProfiles("LG",it).subscribe(re,Xe)})}),this.getFirstName=re=>(re=(re=re.trim()).split(" "))[0]?re[0]:"",this.getLastName=re=>(re=(re=(re=re.trim()).split(" ")).filter((Xe,it)=>0!==it)).join(" ")}clearInterrupted(){localStorage.removeItem("needs_clear_resume_creation_interrupted"),localStorage.removeItem("profile_logistic_creation_interrupted"),localStorage.removeItem("resume_creation_interrupted"),localStorage.removeItem("profile_creation_interrupted")}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(ze),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(Ce),h.\u0275\u0275inject(_e))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var je=f(49533),Ze=f(18228);let At=(()=>{class fe{constructor(P){this.translateConfigService=P,this.format="yyyy-MM-dd'T'HH:mm:ss.sss",this.locale="en-US",this.locale=this.translateConfigService.getDefaultLanguage(),le().locale(this.locale)}openPickerHour(P,Q,Pe){var Ve=this;return(0,g.Z)(function*(){const Z=le()(Q).format("YYYY-MM-DDTHH:mm:ss.SSS"),re=le()(Pe).format("YYYY-MM-DDTHH:mm:ss.SSS"),Xe={format:Ve.format,cancelButtonText:"Cancel",doneButtonText:"Ok",mode:"time",value:"startDate"===P?Z:re,theme:"dark",locale:Ve.locale};try{const{value:it}=yield null.present(Xe);return"startDate"===P?(Q=le()(it),Pe=le()(Q).add(1,"hours").toISOString()):Pe=le()(it),{startDate:Q,endDate:Pe}}catch(it){if("cancel"===it)return}})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(Ze.w))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var fn=f(29946),mn=f(35548),xn=f(1303),gn=f(21218);const Et=(0,D.fo)("Browser",{web:()=>f.e(6874).then(f.bind(f,16874)).then(fe=>new fe.BrowserWeb)});let cn=(()=>{class fe{constructor(P){this.loaderService=P}openUrl(P){this.openUrlExternal(P)}openUrlExternal(P){var Q=this;return(0,g.Z)(function*(){yield Et.open(P);const Pe=Q;try{Q.loaderService.show("")}catch{Pe.loaderService.hide(),console.warn("[BrowserHandler] Erro ao tentar adicionar eventListeners")}})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(wo))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var ft=f(61380);let Tt=(()=>{class fe{constructor(P,Q,Pe,Ve){this.bootstrapWcService=P,this.browserService=Q,this.router=Pe,this.storageService=Ve}canHandle(P){try{return new URL(P.url).searchParams.has("l")}catch{return!1}}handle(P){var Q=this;return(0,g.Z)(function*(){const Pe=P.url;if(!Pe)return;const Z=new URL(Pe).searchParams.get("l");if(!Z)return void console.warn('QueryDeepLinkHandler: par\xe2metro "l" n\xe3o encontrado');const re=yield Q.bootstrapWcService.checkViabilityMfe(Z),Xe="/app"===re||re&&re.includes("app");Z.length>=2&&Xe?(Q.bootstrapWcService.locator$.next(Z),Q.updateIsAvailableSiteStorage(!0),setTimeout(()=>{Q.router.navigate(["modules","wc","start",Z],{replaceUrl:!0})},1e3)):(Q.updateIsAvailableSiteStorage(!1),Q.browserService.openUrl({url:Pe,windowName:"KAccess",presentationStyle:"fullscreen",toolbarColor:"#6CB52D"}))})()}updateIsAvailableSiteStorage(P){var Q=this;return(0,g.Z)(function*(){yield Q.storageService.set("isAvailableSite",P)})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(ke.E),h.\u0275\u0275inject(cn),h.\u0275\u0275inject(ft.Router),h.\u0275\u0275inject(xn.V))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),en=(()=>{class fe{constructor(P,Q,Pe,Ve){this.bootstrapWcService=P,this.browserService=Q,this.router=Pe,this.storageService=Ve}canHandle(P){try{const Q=new URL(P.url),Pe=Q.pathname.replace(/^\/?|\/?$/g,"");return!Q.searchParams.has("l")&&Pe.length>=2}catch{return!1}}handle(P){var Q=this;return(0,g.Z)(function*(){const Pe=P.url;if(!Pe)return;const Z=new URL(Pe).pathname.replace(/^\/?|\/?$/g,""),re=yield Q.bootstrapWcService.checkViabilityMfe(Z);"/app"===re||re&&re.includes("app")?(Q.updateIsAvailableSiteStorage(!0),Q.bootstrapWcService.locator$.next(Z),setTimeout(()=>{Q.router.navigate(["modules","wc","start",Z])},1e3)):(Q.updateIsAvailableSiteStorage(!1),Q.browserService.openUrl({url:Pe,windowName:"KAccess",presentationStyle:"fullscreen",toolbarColor:"#6CB52D"}))})()}updateIsAvailableSiteStorage(P){var Q=this;return(0,g.Z)(function*(){yield Q.storageService.set("isAvailableSite",P)})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(ke.E),h.\u0275\u0275inject(cn),h.\u0275\u0275inject(ft.Router),h.\u0275\u0275inject(xn.V))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Gt=(()=>{class fe{constructor(P,Q,Pe,Ve,Z){this.zone=P,this.storageService=Q,this.navigationService=Pe,this.queryHandler=Ve,this.pathHandler=Z}initializeListenerDeeplink(){mn.g.addListener("appUrlOpen",P=>{console.log("URLOpenListenerEvent initializeListenerDeeplink",P),this.zone.run(()=>{!P?.url||this.processReceiveLink(P)})})}processReceiveLink(P){var Q=this;return(0,g.Z)(function*(){const Pe=P?.url;Pe&&(Pe.includes("keyaccess.com.br")&&Pe.includes("path=invite")||Pe.includes("keyaccess.com.br/app")?yield Q.processReceivedInvite(P):Q.queryHandler.canHandle(P)?yield Q.queryHandler.handle(P):Q.pathHandler.canHandle(P)?yield Q.pathHandler.handle(P):console.warn("DeepLinkService: nenhum handler aplic\xe1vel para",Pe))})()}processReceivedInvite(P){var Q=this;return(0,g.Z)(function*(){const Pe=new URLSearchParams(new URL(P.url).search),Ve={};if(Pe.forEach((Z,re)=>{Ve[re]=Z}),Pe&&Pe.has("l")&&Pe.has("k")){const Z={queryParams:{...Ve,origin:"LINK"}};Q.storageService.set("forward",{route:"/deep",navigationExtras:Z}),setTimeout(()=>{Q.navigationService.forward(["/deep"],Z)},1e3)}})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(h.NgZone),h.\u0275\u0275inject(xn.V),h.\u0275\u0275inject(gn.f),h.\u0275\u0275inject(Tt),h.\u0275\u0275inject(en))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();f(11814);var Cr=f(7389);let wr=(()=>{class fe{constructor(P){this.platform=P,this.getUUID=()=>new Promise((Q,Pe)=>{Q(this.generatorUUid())}),this.hasPermission=()=>new Promise((Q,Pe)=>{this.platform.is("cordova")?this.platform.is("android")?Q(!1):this.platform.is("ios")?Q(!0):Q(!1):Q(!1)})}generatorUUid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,P=>{const Q=16*parseFloat("0."+Math.random().toString().replace("0.","")+(new Date).getTime())|0;return("x"==P?Q:3&Q|8).toString(16)})}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.Platform))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),dr=(()=>{class fe{constructor(){this.observer=null,this.observable=null,this.show=()=>{this.observer&&this.observer.next(!0)},this.hide=()=>{this.observer&&this.observer.next(!1)},this.observable=new Te.y(P=>this.observer=P),this.hide()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var er=f(35929),Jn=f(24889);let Er=(()=>{class fe{constructor(){this.observable=new Te.y(P=>this.observer=P)}notify(P){this.observer.next(P)}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),lo=(()=>{class fe{constructor(P,Q,Pe,Ve,Z,re,Xe,it,bt,mt,Rt){var Xt=this;this.createEventService=P,this.translateConfigService=Q,this.notificatorService=Pe,this.portalLoginManagerService=Ve,this.apiService=Z,this.profileManagerService=re,this.loadCtrl=Xe,this.modalCtrl=it,this.resumeCreateEventInterruptedService=bt,this.logService=mt,this.managerTokenUaamobileService=Rt,this.defaultCreationEvent={title:this.translateConfigService.translate("INSTANT_EVENT_TITLE_CREATE"),checkinStartAt:"15",bookeis:[],allowCompanion:!1,autoRelease:!1,multiCheckin:!1,type:"ONCE",timeZoneOffset:-180,status:"OPENED"},this.handleGetCompanyGroupsSuccessResponse=qt=>{this.createEventService.setGroups(qt);const Sn=this.createEventService.getGroups();return 1===Sn.length&&this.createEventService.setSelectedGroup(Sn[0]),this.createEventService.setSelectedGroup(Sn[0]),Sn},this.handleGetCompanyGroupsErrorResponse=qt=>{this.sendLogTron("error","http::GetCompanyGroupsErrorResponse_InstantEvent","Creating event Instant Get CompanyGroups ErrorResponse",qt)},this.handleGetCompanyFloorsSuccessResponse=qt=>{if(!qt)return[];this.createEventService.setFloors(qt);const Sn=this.createEventService.getFloors();return 1===Sn.length&&this.createEventService.setSelectedFloor(Sn[0]),this.createEventService.setSelectedFloor(Sn[0]),Sn},this.handleGetCompanyFloorsErrorResponse=qt=>{const Sn=this.translateConfigService.translate("PG_CREATE_NAME_STEP_TOAST_FLOORS_TITLE"),Wn=this.translateConfigService.translate("PG_CREATE_NAME_STEP_TOAST_FLOORS_MESSAGE");this.notificatorService.notify({title:Sn,message:Wn,type:"error"}),this.sendLogTron("error","http::GetCompanyFloorsErrorResponse_InstantEvent","Creating event Instant Get CompanyFloors ErrorResponse ",qt)},this.handleGetUserAccountSuccessResponse=function(){var qt=(0,g.Z)(function*(Sn){if(!Sn)return[];Xt.createEventService.getIsNew(),Xt.createEventService.getAction();try{const sr=yield Xt.createEventService.getCompanyHost(Sn.refId);Xt.createEventService.setHosts(sr);const hr=Xt.createEventService.getHosts();return hr.length<2?hr:[]}catch(sr){return void Xt.handleGetUserAccountErrorResponse(sr)}});return function(Sn){return qt.apply(this,arguments)}}(),this.handleGetUserAccountErrorResponse=qt=>{const Sn=this.translateConfigService.translate("PG_CREATE_NAME_STEP_TOAST_GETUSER_TITLE"),Wn=this.translateConfigService.translate("PG_CREATE_NAME_STEP_TOAST_GETUSER_MESSAGE");this.notificatorService.notify({title:Sn,message:Wn,type:"error"}),this.sendLogTron("error","http::GetUserAccountErrorResponse_InstantEvent","Creating event Instant Get UserAccount ErrorResponse",qt)}}createEventVO(){var P=this;return(0,g.Z)(function*(){try{yield(yield P.loadCtrl.create({cssClass:"event-instant",message:P.translateConfigService.translate("INSTANT_EVENT_LOADING_TEXT")})).present();const Pe=yield P.managerTokenUaamobileService.initStartGetTokenUaaMobile(),Ve=P.profileManagerService.getProfile();if(console.log("profile",Ve),!Ve?.login)return void P.sendLogTron("error","http::createEventErrorResponse_InstantEvent","Creating event Instant Get ProfileErrorResponse","profile is not defined");const Z=yield P.getAccessToken(Ve,Pe);if(!Z)return;const re=Ve?.company?.instanceName,Xe=yield P.getCompanyFloors();if(Xe?.length>1){if(!(yield P.handleFloorSelection(Xe)))return void((yield P.loadCtrl.getTop())&&(yield P.loadCtrl.dismiss()))}else 1===Xe?.length&&P.createEventService.setSelectedFloor(Xe[0]);const[it,bt]=yield Promise.all([yield P.getCompanyHosts(),yield P.getCompanyGroups()]);if(!P.validateEventRequirements(Xe,it,bt))return;const mt=yield P.buildEventVO(Xe,bt,it),Rt=yield P.createEvent(mt,re,Z);if(!Rt)return;(yield P.loadCtrl.getTop())&&(yield P.loadCtrl.dismiss()),yield P.showSuccessModal(Rt)}catch(Q){throw console.error(Q),P.clearDataEventStorage("vo"),P.handleErrorCreateEvent(Q),Q}finally{(yield P.loadCtrl.getTop())&&(yield P.loadCtrl.dismiss())}})()}handleFloorSelection(P){var Q=this;return(0,g.Z)(function*(){if(!P?.length)return!1;if(1===P.length)return Q.createEventService.setSelectedFloor(P[0]),!0;const Pe=yield Q.modalCtrl.create({component:Jn.rD,cssClass:"modal-generic-component-event-instant-select-floor",backdropDismiss:!1,componentProps:{props:{title:"Lista de andares",description:"Por favor, selecione o andar para o evento",type:"info",typename:Jn.sX.floorSelection,data:P,actionsButton:[{label:"Cancelar",classCss:"btn_floor_selection__cancel",enabled:!0,action:Z=>{Pe.dismiss({floor:Z})}}]}}});yield Pe.present();const{data:Ve}=yield Pe.onDidDismiss();return!!Ve?.floor&&(Q.createEventService.setSelectedFloor(Ve.floor),!0)})()}getAccessToken(P,Q){var Pe=this;return(0,g.Z)(function*(){try{return(yield Pe.portalLoginManagerService.getAccessToken(P.login,P.portal,Q))?.access_token}catch(Ve){return Pe.sendLogTron("error","http::GetAccessTokenErrorResponse_InstantEvent","Creating event Instant Get AccessTokenErrorResponse",Ve),Ve}})()}validateEventRequirements(P,Q,Pe){if(!P?.length){const Ve={title:this.translateConfigService.translate("PG_CREATE_NAME_STEP_TOAST_COMPANY_HAS_NO_FLOORS_TITLE"),message:this.translateConfigService.translate("PG_CREATE_NAME_STEP_TOAST_COMPANY_HAS_NO_FLOORS_MESSAGE"),type:"error"};return this.notificatorService.notify(Ve),this.sendLogTron("event","http::GetCompanyFloors_InstantEvent","Creating event Instant Get CompanyFloors",{message:"API response OK but empty",data:{floors:P}}),!1}return Q?.length?(Pe?.length||this.sendLogTron("event","http::GetCompanyGroups_InstantEvent","Creating event Instant Get CompanyGroups",{message:"GetCompanyGroups API OK but empty",data:{groups:[]}}),!0):(this.sendLogTron("event","http::GetCompanyHostResponse_InstantEvent","Creating event Instant Get CompanyHost",{message:"GetCompanyHosts API OK but empty",data:{hosts:[]}}),this.handleGetUserAccountErrorResponse({message:"No hosts available"}),!1)}buildEventVO(P,Q,Pe){var Ve=this;return(0,g.Z)(function*(){const Z=Ve.createEventService.getSelectedFloor(),re=Q?.length>0?Ve.createEventService.getSelectedGroup():{group:null,groupCode:null},Xe=Ve.createEventService.getGeoCoordinates(),it=le()().toISOString(),bt=le()().add(1,"hour").toISOString(),mt={...Ve.defaultCreationEvent,startAt:it,endAt:bt,invites:Pe.map(Xt=>({...Xt,company:Xt.company.name,host:!0})),floor:Z.description,floorCode:Z.code,group:re.description,groupCode:re.code,geoCoordinates:{lat:Xe?.lat??null,lng:Xe?.lng??null}};return Ve.profileManagerService.getProfile()?.authorities?.includes("ROLE_COMPANY_LIMITED2")&&(mt.autoRelease=!1),mt})()}showSuccessModal(P){var Q=this;return(0,g.Z)(function*(){const Pe=Q.translateConfigService.translate("INSTANT_EVENT_TITLE_MODAL"),Ve=Q.translateConfigService.translate("INSTANT_EVENT_DESCRIPTION_MODAL"),Z=Q.translateConfigService.translate("INSTANT_EVENT_SUBDESCRIPTION_MODAL"),re={data:P,title:Pe,actionsButton:[{label:Q.translateConfigService.translate("BTN_CLOSE"),enabled:!0,action:()=>{Q.closeModal()}}],description:Ve,subdescription:Z,typename:Jn.sX.eventInstant,img:null,type:"success"},Xe=yield Q.modalCtrl.create({component:Jn.rD,cssClass:"modal-generic-component-event-instant",backdropDismiss:!1,componentProps:{props:re}});yield Xe.present();const{data:it}=yield Xe.onDidDismiss();it?.close&&Q.clearDataEventStorage("vo")})()}closeModal(){var P=this;return(0,g.Z)(function*(){P.modalCtrl.dismiss({close:!0}),P.clearDataEventStorage("vo"),P.createEventService.clearCreateEventData(),P.resumeCreateEventInterruptedService.clearProfileVoCreationInterrupte(),P.resumeCreateEventInterruptedService.clearResumeCreationInterrupte(),P.createEventService.clearGeoCoordinates()})()}getCompanyGroups(){return this.createEventService.getCompanyGroups().then(this.handleGetCompanyGroupsSuccessResponse).catch(this.handleGetCompanyGroupsErrorResponse).finally()}getCompanyFloors(){return this.createEventService.getCompanyFloors().then(this.handleGetCompanyFloorsSuccessResponse).catch(this.handleGetCompanyFloorsErrorResponse)}getCompanyHosts(){return this.createEventService.getAccount().then(this.handleGetUserAccountSuccessResponse).catch(this.handleGetUserAccountErrorResponse)}createEvent(P,Q,Pe){var Ve=this;return(0,g.Z)(function*(){try{return Ve.profileManagerService.isExpeditionProfile()?Ve.apiService.createEventV2(P,Q,Pe).toPromise():Ve.apiService.createEvent(P,Q,Pe).toPromise()}catch(Z){throw Z}})()}clearDataEventStorage(P){"vo"===P&&(this.createEventService.clearCreateEventData(),this.resumeCreateEventInterruptedService.clearProfileVoCreationInterrupte(),this.resumeCreateEventInterruptedService.clearResumeCreationInterrupte(),this.createEventService.clearGeoCoordinates())}handleErrorCreateEvent(P){if(this.sendLogTron("error","errorCreateInstantEvent","Error creating instant event",P),P instanceof oe.HttpErrorResponse){const Q=P&&P?.status?`cod: ${P.status}`:"",Pe=this.translateConfigService.translate("INSTANT_EVENT_TOAST_ERROR_CREATE_TITLE");let Ve=`${this.translateConfigService.translate("INSTANT_EVENT_TOAST_ERROR_CREATE_MESSAGE")} ${Q??""}`;P instanceof oe.HttpErrorResponse&&(Ve=`${this.translateConfigService.translate("INSTANT_EVENT_TOAST_ERROR_CREATE_MESSAGE")} ${Q??""}`),this.notificatorService.notify({title:Pe,message:Ve,timeout:3e3,type:"error"})}}sendLogTron(P,Q,Pe,Ve){"event"!==P?this.logService.logError(Q,Pe,Ve):this.logService.logEvent(Q,Pe,Ve)}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(Ue),h.\u0275\u0275inject(Ze.w),h.\u0275\u0275inject(Er),h.\u0275\u0275inject(_e),h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(Ce),h.\u0275\u0275inject(W.LoadingController),h.\u0275\u0275inject(W.ModalController),h.\u0275\u0275inject(Mo),h.\u0275\u0275inject(fr.$),h.\u0275\u0275inject(nt))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var Gr=f(84432);let Qn=(()=>{class fe{constructor(){this.observer=null,this.observable=null,this.showModal=()=>{this.observer&&this.observer.next(!0)},this.hideModal=()=>{this.observer&&this.observer.next(!1)},this.observable=new Te.y(P=>this.observer=P),this.hideModal()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Pr=(()=>{class fe{constructor(){this.observer=null,this.observable=null,this.show=()=>{this.observer&&this.observer.next(!0)},this.hide=()=>{this.observer&&this.observer.next(!1)},this.observable=new Te.y(P=>this.observer=P),this.hide()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const Zr=(0,D.fo)("Geolocation",{web:()=>f.e(4561).then(f.bind(f,64561)).then(fe=>new fe.GeolocationWeb)});!function go(fe=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},void 0===window.Capacitor||fe?void 0!==window.cordova&&function Nr(fe){fe.CapacitorUtils.Synapse=new Proxy({},{get:(lt,P)=>fe.cordova.plugins[P]})}(window):function jr(fe){fe.CapacitorUtils.Synapse=new Proxy({},{get:(lt,P)=>new Proxy({},{get:(Q,Pe)=>(Ve,Z,re)=>{const Xe=fe.Capacitor.Plugins[P];void 0!==Xe?"function"==typeof Xe[Pe]?(0,g.Z)(function*(){try{const it=yield Xe[Pe](Ve);Z(it)}catch(it){re(it)}})():re(new Error(`Method ${Pe} not found in Capacitor plugin ${P}`)):re(new Error(`Capacitor plugin ${P} not found`))}})})}(window))}();var ro=f(68867),mo=f(14690),ki=f(8929),Yo=f(21086),Ko=f(87545);let wo=(()=>{class fe{constructor(P){this.loadingController=P,this.loaderSubject=new ki.xQ,this.loaderState$=this.loaderSubject.asObservable(),this.isLoading=!1}get parametro(){return this._parametro}set parametro(P){this._parametro=P}show(P,Q){this.loaderSubject.next({show:!0,message:P,duration:Q})}hide(){this.loaderSubject.next({show:!1})}initializeLoader(){const P=this.loaderState$.pipe((0,Ko.w)(Q=>(0,Yo.of)(Q))).subscribe(Q=>{this.changeLoaderState({...Q})});return this.hide(),P}changeLoaderState(P){var Q=this;return(0,g.Z)(function*(){P.show?Q.present(P.message,P.duration):Q.dismiss()})()}present(P){var Q=this;return(0,g.Z)(function*(Pe,Ve=3e3){if(!Q.isLoading)return Q.isLoading=!0,Q.currentLoading=yield Q.loadingController.create({duration:Ve,message:Pe,spinner:"crescent",mode:"ios",cssClass:["loading"]}),Q.currentLoading.present().then(()=>{Q.isLoading||Q.currentLoading.dismiss()}),Q.currentLoading}).apply(this,arguments)}dismiss(){var P=this;return(0,g.Z)(function*(){if(P.isLoading&&(P.isLoading=!1,P.currentLoading&&!(yield P.currentLoading.dismiss()))){const Q=yield P.loadingController.getTop();Q&&Q.dismiss()}})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.LoadingController))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),$r=(()=>{class fe{constructor(P,Q,Pe,Ve){this.locationAccuracy=P,this.androidPermissions=Q,this.loaderService=Pe,this.translateConfigService=Ve,this.maximumAge=1e4,this.getCurrentPositiontimeout=35e3,this.retryCount=0,this.options={enableHighAccuracy:!0,timeout:this.getCurrentPositiontimeout,maximumAge:this.maximumAge}}getCurrentPositionAndRequestPermission(P={loading:!0}){var Q=this;return new Promise(function(){var Pe=(0,g.Z)(function*(Ve,Z){const re="android"===D.dV.getPlatform();if(D.dV.isNativePlatform())if(re)Q.androidPermissions.requestPermissions([Q.androidPermissions.PERMISSION.ACCESS_COARSE_LOCATION,Q.androidPermissions.PERMISSION.ACCESS_FINE_LOCATION,Q.androidPermissions.PERMISSION.ACCESS_LOCATION_EXTRA_COMMANDS,Q.androidPermissions.PERMISSION.ACCESS_NETWORK_STATE]).then(Xe=>{Q.locationAccuracy.request(Q.locationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY).then(()=>{P.loading&&Q.loading(),Q.getCurrentLocation().then(it=>{if(it&&it.coords)return Q.loaderService.hide(),Ve(it)}).catch(it=>{Q.loaderService.hide(),Z(it)})},it=>{console.log("Error requesting location permissions",JSON.stringify(it)),Z(it)})}).catch(Xe=>{Q.retryGetCurrenteLocation(Xe,Z)});else{P?.loading&&Q.loading();try{const Xe=yield Q.requestPermission(),it=Xe?yield Q.getCurrentLocation():Z(Xe);it&&it.coords.latitude&&(Q.loaderService.hide(),Ve(it))}catch(Xe){Q.loaderService.hide(),Z(Xe)}}else try{const Xe=yield Q.getCurrentLocation();Ve(Xe)}catch(Xe){Z(Xe)}});return function(Ve,Z){return Pe.apply(this,arguments)}}())}checkPermission(){var P=this;return Zr.checkPermissions().then(function(){var Q=(0,g.Z)(function*(Pe){return"granted"===Pe.location||"granted"===Pe.coarseLocation||(yield P.requestPermission(),!1)});return function(Pe){return Q.apply(this,arguments)}}())}getCurrentPosition(){return new Promise((P,Q)=>{Zr.getCurrentPosition(this.options).then(Pe=>{P(Pe)}).catch(Pe=>{let Ve="";1===Pe?.code&&(Ve=Pe?.message?Pe.message:"You have not granted permission to access location information."),Q({name:"CurrentPosition Error",message:Ve,code:Pe.code})})})}requestPermission(){return(0,g.Z)(function*(){return Zr.requestPermissions().then(P=>{if("granted"===P.location||"granted"===P.coarseLocation)return!0;throw P})})()}getCurrentLocation(){var P=this;return new Promise(function(){var Q=(0,g.Z)(function*(Pe,Ve){try{const{coords:Z,timestamp:re}=yield P.getCurrentPosition();Pe({coords:Z,timestamp:re})}catch(Z){Ve({name:"CurrentPosition Error",message:Z.message,code:Z.code})}});return function(Pe,Ve){return Q.apply(this,arguments)}}()).finally(()=>{console.log("Finalizado getCurrentLocation")})}retryGetCurrenteLocation(P,Q){return this.retryCount<2?(console.log("Erro ao obter a localiza\xe7\xe3o. Tentando novamente..."),this.retryCount++,void this.getCurrentPositionAndRequestPermission({loading:!1})):(console.log("Falha ao obter a localiza\xe7\xe3o ap\xf3s 3 tentativas"),Q(P))}loading(){const P=this.translateConfigService.translate("LOADING_HOLD_VALIDATING_LOCATION");this.loaderService.show(P)}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(ro.E),h.\u0275\u0275inject(mo.r),h.\u0275\u0275inject(wo),h.\u0275\u0275inject(Ze.w))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),hi=(()=>{class fe{constructor(){this.normalizeName=(P,Q)=>{let Ve=(P+" "+Q).split(" ");return Ve=Ve.map(Z=>this.toLowerCase(Z)),Ve=Ve.map(Z=>this.capitalize(Z)),Ve.join(" ")},this.toLowerCase=P=>P.toLowerCase(),this.capitalize=P=>P.charAt(0).toUpperCase()+P.slice(1)}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const mi=(0,D.fo)("KeepAwake",{web:()=>f.e(9573).then(f.bind(f,59573)).then(fe=>new fe.KeepAwakeWeb)});let vn=(()=>{class fe{constructor(){this.keepAwake=(0,g.Z)(function*(){return yield mi.keepAwake()}),this.allowSleepAgain=(0,g.Z)(function*(){return yield mi.allowSleep()})}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const Eo=(0,D.fo)("Keyboard");var Ur=f(23753);let vo=(()=>{class fe{constructor(P){var Q=this;this.platform=P,this.show=(0,g.Z)(function*(){Q.platform.is("capacitor")&&(yield Eo.show())}),this.hide=(0,g.Z)(function*(){Q.platform.is("capacitor")&&(yield Eo.hide())}),this.isVisible=()=>(console.log("isVisible",this.isKeyboardVisible),this.isKeyboardVisible),this.initKeyboardListeners(),this.onHideObservable=(0,Ur.R)(window,"keyboardDidHide"),this.onShowObservable=(0,Ur.R)(window,"keyboardDidShow")}initKeyboardListeners(){this.platform.is("capacitor")?Eo.removeAllListeners().then(()=>{this.addKeyboardDidShowListener(),this.addKeyboardDidHideListener()}):this.isKeyboardVisible=!1}addKeyboardDidShowListener(){Eo.addListener("keyboardDidShow",P=>{this.keyboardHeightStyle=P.keyboardHeight+"px",this.isKeyboardVisible=!0})}addKeyboardDidHideListener(){Eo.addListener("keyboardDidHide",()=>{this.keyboardHeightStyle="0px",this.isKeyboardVisible=!1})}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.Platform))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),br=(()=>{class fe{constructor(){this.observer=null,this.observable=null,this.showModal=()=>{this.observer&&this.observer.next(!0)},this.hideModal=()=>{this.observer&&this.observer.next(!1)},this.observable=new Te.y(P=>this.observer=P),this.hideModal()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Zn=(()=>{class fe{constructor(P){this.loadingController=P,this.show=(Q,Pe)=>{this.tag=Pe||"",this.loadingController.create({message:Q,spinner:"crescent",mode:"ios",cssClass:["loading"]}).then(Z=>this.onCreateLoadingSuccessResponse(Z,Pe)).catch(this.onCreateLoadingErrorResponse)},this.onCreateLoadingSuccessResponse=(Q,Pe)=>{this.loadings.push({tag:Pe,loadingController:Q}),Q.present().then(this.onLoadingPresentSuccessResponse).catch(this.onLoadingPresentErrorResponse)},this.onCreateLoadingErrorResponse=Q=>{console.log("onCreateLoadingErrorResponse"),console.log(Q)},this.onLoadingPresentSuccessResponse=Q=>{},this.onLoadingPresentErrorResponse=Q=>{console.log("onLoadingPresentErrorResponse"),console.log(Q)},this.hide=(Q,Pe)=>(Q=Q||750,new Promise(Ve=>{setTimeout(()=>{const Z=this.loadings.find(re=>re.tag===Pe);this.loadings=this.loadings.filter(re=>re.tag!==Pe),Z&&Z.loadingController.dismiss(),Ve(!0)},Q)})),this.loadings=[]}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.LoadingController))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),uo=(()=>{class fe{constructor(){this.lock=P=>{this.locks[P]=!0},this.unlock=P=>{this.locks[P]=!1},this.isLocked=P=>!!this.locks[P],this.isUnlocked=P=>!this.locks[P],this.isLock=P=>!this.isUnlocked(P)||(this.lock(P),!1),this.isUnlock=P=>!!this.isLocked(P)&&(this.unlock(P),!0),this.locks={}}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var fr=f(76733);let Vo=(()=>{class fe{constructor(P,Q,Pe,Ve,Z){this.apiService=P,this.authService=Q,this.profileManagerService=Pe,this.logisticEventApiService=Ve,this.portalLoginManagerService=Z,this.getEvents=re=>{const Xe=this.profileManagerService.getProfileLogistic();return new Promise((it,bt)=>{this.authService.getToken().then(mt=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,mt)).then(mt=>this.logisticEventApiService.getEvents(Xe.company.instanceName,mt.access_token,re).subscribe(it,bt)).catch(bt)})},this.getEventsV2=re=>{const Xe=this.profileManagerService.getProfileLogistic();return new Promise((it,bt)=>{this.authService.getToken().then(mt=>this.portalLoginManagerService.getAccessToken(Xe.login,Xe.portal,mt)).then(mt=>this.logisticEventApiService.getEventsV2(Xe.company.instanceName,mt.access_token,re).subscribe(it,bt)).catch(bt)})},this.getEvent=(re,Xe,it)=>{const bt=this.profileManagerService.getProfileLogistic();return new Promise((mt,Rt)=>{this.authService.getToken().then(Xt=>this.portalLoginManagerService.getAccessToken(bt.login,bt.portal,Xt)).then(Xt=>this.logisticEventApiService.getEvent(re,it,Xt.access_token,Xe).subscribe(mt,Rt)).catch(Rt)})}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(Ce),h.\u0275\u0275inject(ze),h.\u0275\u0275inject(_e))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var Fo=f(72986);let _i=(()=>{class fe{constructor(P,Q,Pe,Ve,Z,re){this.authService=P,this.networkService=Q,this.apiService=Pe,this.logService=Ve,this.platform=Z,this.storageService=re,this.isOffline=!1,this.logTimeAgnosticFeatureData=(Xe,it,bt,mt,Rt,Xt)=>{let qt;qt=Xt>0?"App is ahead":Xt<0?"App is behind":"App and platform are even",this.logService.logEvent("logTimeAgnosticFeatureData::function","",{getSabugoRequestStart:Xe,getSabugoRequestEnd:it,requestTimeDifference:Rt,platformEpochMillisecond:bt,appEpochMillisecond:mt,result:qt})}}getSabugo(){var P=this;return(0,g.Z)(function*(){const Q=P.checkStatusNetworkDevice();P.isOffline="Offline"===Q;try{if(!(yield P.isAuthenticated()))return;const{sabugoStorage:Ve,isExpiredSabugo:Z,needsToRenewSabugo:re}=yield P.verifySaguboStatus();if(P.isExpiredSabugo=Z,P.isOffline&&!Z&&Ve||!Z&&Ve&&!re)return Ve;if(Z||!Ve)return new Promise((Xe,it)=>{const bt=P.apiService.getSabugo().pipe((0,Fo.q)(1)).subscribe(function(){var mt=(0,g.Z)(function*(Rt){return Rt&&Rt?.base64File&&(yield P.authService.updateSabugoGeneratedAt(),P.handleNewSabugoResult(Rt)),bt.unsubscribe(),Xe(Rt.base64File)});return function(Rt){return mt.apply(this,arguments)}}(),mt=>(bt.unsubscribe(),it(mt)))});if(re)return Z||P.renewSabugo(),Ve}catch(Pe){throw P.handleErroGetSabugo(Pe),{...Pe,isExpiredSabugo:P.isExpiredSabugo,isOffline:P.isOffline}}finally{console.log("finish S")}})()}renewSabugo(){var P=this;this.apiService.getSabugo().pipe((0,Fo.q)(1)).subscribe(function(){var Q=(0,g.Z)(function*(Pe){Pe&&Pe?.base64File&&(yield P.authService.updateSabugoGeneratedAt(),P.handleNewSabugoResult(Pe))});return function(Pe){return Q.apply(this,arguments)}}(),Q=>(this.handleErroGetSabugo(Q),Q))}handleNewSabugoResult(P){var Q=this;return(0,g.Z)(function*(){Q.applyAndStoreSabugoUpdatePlatformDiff(P)})()}checkStatusNetworkDevice(){return this.networkService.getCurrentNetworkStatus()}reportLogtron(P){var Q=this;return(0,g.Z)(function*(){P&&P?.platformEpochSecond&&Q.logTimeAgnosticFeatureData(P.getSabugoRequestStart,P.getSabugoRequestEnd,P.platformEpochSecond,P.now,P.requestTimeDifference,P.platformAndAppTimeDifference)})()}applyAndStoreSabugoUpdatePlatformDiff(P){var Q=this;return(0,g.Z)(function*(){const Pe=Date.now(),Ve=Date.now(),Z=Math.floor((Ve-Pe)/2),re=1e3*P.platformEpochSecond,Xe=Date.now()-Z,it=Xe-re;yield Q.authService.setSabugoValitTimeInSeconds(P.valitTimeInSeconds),yield Q.authService.setPlatformAndAppTimeDifference(it),yield Q.authService.setPlatformEpochSecond(P.platformEpochSecond),yield Q.authService.updateSabugoGeneratedAt(),yield Q.authService.setSabugo(P.base64File),Q.isExpiredSabugo=!1,P?.reportLogtron&&Q.reportLogtron({getSabugoRequestStart:Pe,getSabugoRequestEnd:Ve,platformEpochSecond:re,now:Xe,requestTimeDifference:Z,platformAndAppTimeDifference:it})})()}handleErroGetSabugo(P){var Q=this;return(0,g.Z)(function*(){const Pe=yield Q.authService.isExpiredSabugo();throw P instanceof oe.HttpErrorResponse?Pe?(Q.isExpiredSabugo=!0,Q.logService.logError("http::getSabugo","",P),P):P&&401===P.status?(Q.logService.logError("http::getSabugo_401","",P),P):(Q.logService.logError("http::getSabugo","",P),P):(Q.logService.logError("error::getSabugo","",P),P)})()}isAuthenticated(){var P=this;return(0,g.Z)(function*(){const Q=yield P.authService.getRefId();return(yield P.authService.isAuthenticated())&&Q})()}verifySaguboStatus(){var P=this;return new Promise((Q,Pe)=>{this.platform.ready().then(()=>{this.storageService.ready().then(function(){var Ve=(0,g.Z)(function*(Z){if(Z)try{const[re,Xe,it]=yield Promise.all([P.authService.getSabugo(),P.authService.isExpiredSabugo(),P.authService.needsToRenewSabugo()]);Q({sabugoStorage:re,isExpiredSabugo:Xe,needsToRenewSabugo:it})}catch(re){Pe(re)}else Pe(new Error("storage not available"))});return function(Z){return Ve.apply(this,arguments)}}())})})}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(rt.S),h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(fr.$),h.\u0275\u0275inject(W.Platform),h.\u0275\u0275inject(xn.V))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var xr=f(26582),It=f(22868),ut=f(18583);let nt=(()=>{class fe{constructor(P,Q,Pe,Ve,Z,re,Xe,it,bt){this.navController=P,this.logService=Q,this.authService=Pe,this.apiService=Ve,this.networkService=Z,this.translateConfigService=re,this.notificatorService=Xe,this.platform=it,this.storageService=bt,this.timeOutDuration=3e4,this.isOffline=!1,this.stopTokenWatcher=()=>{this.tokenWatcherIntervalId&&(clearInterval(this.tokenWatcherIntervalId),this.tokenWatcherIntervalId=null)},this.watchToken=()=>{this.tokenWatcherIntervalId=setInterval(()=>{this.stopTokenWatcher(),this.updateToken().then(()=>{this.watchToken()}).catch(Rt=>Rt)},this.authService.intervalOfTimeToRenewToken)},this.updateToken=()=>this.getToken().then(mt=>this.setTokenStorage(mt)).catch(()=>{}).finally(()=>{}),this.handleErroGetToken=mt=>{const Rt=mt&&mt?.status&&401===mt?.status,Xt="error.account.not-found"===mt?.error?.message,qt="error.account.not-activated"===mt?.error?.message;if(console.log(mt?.error?.detail),Rt){if(this.logService.logEvent("ManagerTokenUaamobileService::status_code_401-state-one",mt.message?mt.message:""),Xt||qt)return this.logService.logEvent("ManagerTokenUaamobileService::status_code_401-state-twoaccountNotFoundoraccountNotActivated"+mt.error.message+"state-two",mt.error.message?mt.error.message:"",mt),this.unregisterDevice(),this.stopTokenWatcher(),mt}else{if(mt instanceof oe.HttpErrorResponse)return this.logService.logError("Http::Error",JSON.stringify(mt.message),mt),mt;this.logService.logError("Error::ManagerTokenUaamobileService:handleErroGetToken","",mt)}return mt},this.unregisterDevice=()=>{this.logService.logEvent("unregisterDevicestate-three"),this.authService.unregister().then(()=>this.navController.navigateRoot(["start"])).then(()=>{this.logService.logEvent("unregisterDevicestate-four")}).catch(mt=>{this.navController.navigateRoot(["start"]),this.logService.logError("unregisterDevicestate-four","",mt)}).finally(()=>{const mt=this.translateConfigService.translate("PG_HOME_TOAST_DEVICE_UNREGISTERED_TITLE"),Rt=this.translateConfigService.translate("PG_HOME_TOAST_DEVICE_UNREGISTERED_MESSAGE");this.showNotification(mt,Rt,"error",1e4),this.cleanStorageAndStopWatcherRemoveAllListener()})}}initStartGetTokenUaaMobile(){var P=this;return(0,g.Z)(function*(){try{const Q=yield P.getToken();return Promise.resolve(Q)}catch(Q){return Promise.reject(Q)}})()}restartGetToken(){return this.initStartGetTokenUaaMobile()}getToken(){var P=this;return(0,g.Z)(function*(){const Q=P.checkStatusNetworkDevice();P.isOffline="Offline"===Q;try{const{tokenStorage:Pe,tokenIsExpired:Ve,needsToRenewToken:Z}=yield P.verifyTokenStatus();if(P.isOffline&&!Ve||!Ve&&Pe&&!Z||!Ve&&!Z)return Pe;if(Ve){const re=yield P.getAuthenticationInfo();if(!re.passwordHash||!re.document||!re.uuid)throw P.cleanStorageAndStopWatcherRemoveAllListener(),new Error("Dados de autentica\xe7\xe3o ausentes");return yield P.getNewToken()}if(Z&&(P.getNewTokenRenew(),P.isCAllRenewToken=!1,!Ve))return Pe}catch(Pe){throw P.handleErroGetToken(Pe),Pe}})()}getNewToken(){var P=this;return(0,g.Z)(function*(){const{tokenIsExpired:Q,tokenStorage:Pe,uuid:Ve,foreigner:Z,document:re,passwordHash:Xe}=yield P.getAuthenticationInfo();if(!Xe||!re||!Ve)return P.logService.logEvent("storage::ManagerTokenUaamobileService::cleanStorageAndStopWatcherRemoveAllListener","not found passwordHash, document or uuid",JSON.stringify({passwordHash:Xe,document:re,uuid:Ve})),P.cleanStorageAndStopWatcherRemoveAllListener(),void P.navController.navigateRoot(["/start"],{replaceUrl:!0});const it=P.apiService.getToken(Ve,re,Xe,Z).pipe((0,Fo.q)(1),(0,Ko.w)(function(){var mt=(0,g.Z)(function*(Rt){return Rt});return function(Rt){return mt.apply(this,arguments)}}())),bt=new Promise((mt,Rt)=>{const Xt=P.timeOutDuration;setTimeout(()=>{Rt({codeError:"timeout",tokenStorage:Pe,tokenIsExpired:Q,networkStatusDevice:P.isOffline,message:`Timeout: Token request is taking longer than usual ${Xt}ms.`})},Xt)});try{const Rt=yield Promise.race([it.toPromise(),bt]);if(Rt&&Rt?.access_token)return P.setDataStorage(Rt),Rt.access_token}catch(mt){return P.handleErroGetToken(mt),mt}})()}getNewTokenRenew(){var P=this;return(0,g.Z)(function*(){if(P.isCAllRenewToken)return;const{uuid:Q,foreigner:Pe,document:Ve,passwordHash:Z}=yield P.getAuthenticationInfo();if(!Ve&&!Q&&!Z)throw P.stopTokenWatcher(),P.cleanStorageAndStopWatcherRemoveAllListener(),"STORAGE:CLEAN";P.isCAllRenewToken=!0,P.apiService.getToken(Q,Ve,Z,Pe).pipe((0,xr.a)(re=>re.pipe((0,It.b)(Xe=>console.log("Retry attempt for getToken",Xe.status)),(0,ut.g)(1e3),(0,Fo.q)(4)))).subscribe({next:re=>{re?.access_token&&P.setDataStorage(re),P.isCAllRenewToken=!1},error:re=>{P.isCAllRenewToken=!1,P.handleErroGetToken(re)}})})()}showNotification(P,Q,Pe,Ve=5e3){this.notificatorService.notify({title:P,message:Q,type:Pe,timeout:Ve})}getAuthenticationInfo(){var P=this;return(0,g.Z)(function*(){return new Promise((Q,Pe)=>{P.platform.ready().then(()=>{P.storageService.startStorage().then((0,g.Z)(function*(){try{const Ve=yield Promise.all([P.authService.getDocument(),P.authService.getUUID(),P.authService.getForeigner(),P.authService.getPasswordHash(),P.authService.getToken(),P.authService.isExpiredToken(),P.authService.needsToRenewToken()]);return Q({document:Ve[0],uuid:Ve[1],foreigner:!!Ve[2],passwordHash:Ve[3],tokenStorage:Ve[4],tokenIsExpired:Ve[5],needsToRenewToken:Ve[6]})}catch(Ve){return Pe(Ve)}}))})})})()}setDataStorage(P){var Q=this;return(0,g.Z)(function*(){yield Q.setTokenStorage(P.access_token),yield Q.authService.updateTokenGeneratedAt(),yield Q.authService.setRefId(P.refId)})()}setTokenStorage(P){var Q=this;return(0,g.Z)(function*(){yield Q.authService.setToken(P)})()}checkStatusNetworkDevice(){return this.networkService.getCurrentNetworkStatus()}cleanStorageAndStopWatcherRemoveAllListener(){this.stopTokenWatcher(),mn.g.removeAllListeners().then(()=>{}),localStorage.removeItem("store_current_config"),localStorage.removeItem("firstRequestGetProfile"),localStorage.removeItem("basePlatformUrl"),localStorage.removeItem("ka_fcmMobileToken")}verifyTokenStatus(){var P=this;return(0,g.Z)(function*(){return new Promise((Q,Pe)=>{P.platform.ready().then(()=>{P.storageService.startStorage().then(function(){var Ve=(0,g.Z)(function*(Z){if(Z)try{const[re,Xe,it]=yield Promise.all([P.authService.getToken(),P.authService.isExpiredToken(),P.authService.needsToRenewToken()]);Q({tokenStorage:re,tokenIsExpired:Xe,needsToRenewToken:it})}catch(re){Pe(re)}else Pe(new Error("storage not available"))});return function(Z){return Ve.apply(this,arguments)}}())})})})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.NavController),h.\u0275\u0275inject(fr.$),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(rt.S),h.\u0275\u0275inject(Ze.w),h.\u0275\u0275inject(Er),h.\u0275\u0275inject(W.Platform),h.\u0275\u0275inject(xn.V))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Ot=(()=>{class fe{constructor(P,Q){this.modalCtrl=P,this.deviceInfoService=Q,this.isModalIsOpen=!1}openModal(P){var Q=this;return(0,g.Z)(function*(){if(!1===Q.isModalIsOpen){Q.modal=yield Q.modalCtrl.create({...P}),Q.modal.present().then(()=>{Q.isModalIsOpen=!0}),Q.modal.onDidDismiss().then(()=>{Q.isModalIsOpen=!1});const{data:Pe}=yield Q.modal.onDidDismiss();if(Pe)return Pe}})()}getCssClass(P,Q){const Pe=this.deviceInfoService.isSmallScreen(),Ve=this.deviceInfoService.isMediumSmallScreen();return{cssClass:Pe?`${P} -small`:Ve?`${P} -medium`:`${P} class-default`,calcHeigth:`calc(${Q})`}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.ModalController),h.\u0275\u0275inject(Cr.H))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var Zt=f(71003);let jn=(()=>{class fe{constructor(){le().locale("pt-BR")}formatAs(P,Q){return le()(P).format(Q)}formatAsCheckinAt(P){return le()(P).format("HH[h]mm[min]")}formatAsEventAt(P){const Q=le()(P).toISOString();return le()(Q).format("DD/MM/YYYY [\xe0s] HH[h]mm[min]")}formatAsEventFromTo(P,Q){return le()(P).format("DD/MM/YYYY HH[h]mm[min]")+" - "+le()(Q).format("HH[h]mm[min]")}formatDateHourEndAt(P,Q){return le()(P).format("DD/MM/YYYY")+" \xe1s "+le()(Q).format("HH[h]mm[min]")}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),xt=(()=>{class fe{constructor(P){this.router=P}navigateTo(P){this.router.navigate([P])}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(ft.Router))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var rt=f(40776),Yt=f(96841);f(37566);let Wt=(()=>{class fe{constructor(P,Q,Pe){this.loadingCtrl=P,this.alertCtrl=Q,this.toastCtrl=Pe}alert(P){var Q=this;return(0,g.Z)(function*(){const Pe=yield Q.alertCtrl.create(P);return yield Pe.present(),Pe})()}loading(P){var Q=this;return(0,g.Z)(function*(){const Pe=yield Q.loadingCtrl.create({message:"Carregando...",...P});return yield Pe.present(),Pe})()}toast(P){var Q=this;return(0,g.Z)(function*(){const Pe=yield Q.toastCtrl.create({position:"bottom",duration:3e3,...P});return yield Pe.present(),Pe})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.LoadingController),h.\u0275\u0275inject(W.AlertController),h.\u0275\u0275inject(W.ToastController))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var dn=f(35262),un=f(23925),On=f(53695);let In=(()=>{class fe{constructor(){}enable(){return(0,g.Z)(function*(){try{On.J.removeAllListeners().then((0,g.Z)(function*(){yield On.J.disable()})),console.log("disable ScreenShot")}catch(P){console.log("disable ScreenShot"+P)}})()}disable(){return(0,g.Z)(function*(){try{On.J.removeAllListeners().then((0,g.Z)(function*(){yield On.J.enable()})),console.log("Enable ScreenShot")}catch(P){console.log("Enable ScreenShot"+P)}})()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Hr=(()=>{class fe{constructor(){var P=this;this.init=function(){var Q=(0,g.Z)(function*(Pe){P.key=yield P.generateKey(Pe)});return function(Pe){return Q.apply(this,arguments)}}(),this.str2ab=Q=>{const Pe=new ArrayBuffer(Q.length),Ve=new Uint8Array(Pe);for(let Z=0,re=Q.length;Z<re;Z++)Ve[Z]=Q.charCodeAt(Z);return Pe},this.generateKey=function(){var Q=(0,g.Z)(function*(Pe){return yield crypto.subtle.importKey("raw",Pe,{name:"AES-GCM",length:128},!0,["encrypt"])});return function(Pe){return Q.apply(this,arguments)}}(),this.formatOutputBuffer=(Q,Pe)=>{const Z=new ArrayBuffer(4+Q.byteLength+2+Pe.byteLength),re=new Uint8Array(Z);let Xe=0;re[Xe++]="P".charCodeAt(0),re[Xe++]="C".charCodeAt(0),re[Xe++]=12,re[Xe++]=0;for(let it=0;it<12;Xe++,it++)re[Xe]=Q[it];re[Xe++]=Pe.byteLength%256,re[Xe++]=Math.floor(Pe.byteLength/256);for(let it=0;it<Pe.byteLength;Xe++,it++)re[Xe]=Pe[it];return re},this.encrypt=function(){var Q=(0,g.Z)(function*(Pe,Ve,Z){if(null==P.key)return null;{const re=new Uint8Array(12),Xe={name:"aes-gcm",iv:crypto.getRandomValues(re),tagLength:128},it=Math.floor(Date.now()/1e3),bt=Math.floor(it+Ve),mt=it.toString()+bt.toString()+Pe,Rt=yield crypto.subtle.encrypt(Xe,P.key,(new TextEncoder).encode(mt));return P.formatOutputBuffer(re,new Uint8Array(Rt))}});return function(Pe,Ve,Z){return Q.apply(this,arguments)}}(),this.key=null}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var xo=f(92340),Ho=f(64633),io=f(8782);let Mo=(()=>{class fe{constructor(P,Q,Pe,Ve,Z){this.modalHelperService=P,this.apiService=Q,this.authService=Pe,this.companyService=Ve,this.logisticCompanyService=Z,this.intervalOfTimeToClearEventInResume=io.n.intervalOfTimeToClearEventInResume,this.getEvent=re=>{const Xe={};let it=null;const bt=re.event.id,mt=re.event.instanceName;return"VO"===re.target?it=this.companyService.getEvent(bt,Xe,mt):"LOGISTIC"===re.target&&(it=this.logisticCompanyService.getEvent(bt,Xe,mt)),it}}showModalResumeCreateEventInterrupted(P){this.resumeCreateEventInterrupted(P)}getResumeCreationInterrupted(){return JSON.parse(localStorage.getItem("resume_creation_interrupted"))||{logistic:{eventType:""},vo:!1,action:"",event:null}}setResumeCreationInterrupte(P){localStorage.setItem("resume_creation_interrupted",JSON.stringify(P)),this.setneedsToClearEventResumed()}clearResumeCreationInterrupte(){localStorage.removeItem("resume_creation_interrupted")}getProfileVoCreationInterrupted(){const P=localStorage.getItem("profile_creation_interrupted");return P?JSON.parse(P):null}setProfileVoCreationInterrupte(P){localStorage.setItem("profile_creation_interrupted",JSON.stringify(P))}clearProfileVoCreationInterrupte(){localStorage.removeItem("profile_creation_interrupted")}getProfileLogisticCreationInterrupted(){const P=localStorage.getItem("profile_logistic_creation_interrupted");return P?JSON.parse(P):null}setProfileLogisticCreationInterrupte(P){localStorage.setItem("profile_logistic_creation_interrupted",JSON.stringify(P))}clearProfileLogisticCreationInterrupte(){localStorage.removeItem("profile_logistic_creation_interrupted")}isExistEventCreation(){return this.isEventInitialition()}clearAll(){this.clearProfileLogisticCreationInterrupte(),this.clearProfileVoCreationInterrupte(),this.clearResumeCreationInterrupte(),this.clearneedsToClearEventResumed()}resumeCreateEventInterrupted(P){var Q=this;return(0,g.Z)(function*(){if(!(yield Q.isExistEvent(P)))return void Q.clearAll();const Ve=Q.needsToClearEventResumed();if(Ve)return console.log("isEventInitialition",Ve),void Q.clearAll();const{vo:Z,logistic:re}=Q.isExistEventCreation();if(Z||re.eventType)if(!Z&&""===re.eventType||"ALL"!==P.target){if(!Z||"VO"!==P.target&&"ALL"!==P.target||Q.showResumeEventVO({target:"VO",canCreateEvent:P.canCreateEvent,action:P.action,event:P.event}),re&&"EXIT"!==re.eventType&&("LOGISTIC"===P.target||"ALL"===P.target)){const it={target:"LOGISTIC",eventType:re.eventType,canCreateEvent:P.canCreateEvent,action:P.action,event:P.event};setTimeout(()=>{Q.showResumeLogisticEvent(it)})}"EXIT"!==re.eventType||"LOGISTIC"!==P.target&&"ALL"!==P.target||Q.showResumeLogisticEvent({target:"LOGISTIC",eventType:re.eventType,canCreateEvent:P.canCreateEvent,action:P.action,event:P.event})}else Q.showAllModals(P);else Q.clearResumeCreationInterrupte()})()}modalResumeCreationEvent(P){var Q=this;return(0,g.Z)(function*(){const Pe={component:Ho.Ol,componentProps:{props:P},cssClass:"resume-create-interrupted-modal",backdropDismiss:!1},Ve=yield Q.modalHelperService.openModal(Pe);if(Ve){const{vo:Z,logistic:re,action:Xe,event:it}=Q.isExistEventCreation();Ve.clear&&Q.clearAll(),Q.setResumeCreationInterrupte({logistic:{eventType:re.eventType},vo:Z,action:Xe,event:it})}})()}isEventInitialition(){return this.getResumeCreationInterrupted()}showResumeLogisticEvent(P){return this.modalResumeCreationEvent({target:P.target,eventType:P.eventType,canCreateEvent:P.canCreateEvent,action:P.action,event:P.event})}showResumeEventVO(P){return this.modalResumeCreationEvent({target:P.target,eventType:"",canCreateEvent:P.canCreateEvent,action:P.action,event:P.event})}showAllModals(P){const Q=this.getResumeCreationInterrupted();if(Q.vo)setTimeout(()=>{this.showResumeEventVO({target:"VO",eventType:"",canCreateEvent:!1,action:P.action,event:P.event}).then(()=>{})},1e3);else{if(""===Q.logistic.eventType||!Q.logistic.eventType)return;"EXIT"===Q.logistic.eventType?setTimeout(()=>{this.showResumeLogisticEvent({target:"LOGISTIC",eventType:"EXIT",canCreateEvent:!1,action:P.action,event:P.event})},1500):"ENTRY"===Q.logistic.eventType&&setTimeout(()=>{this.showResumeLogisticEvent({target:"LOGISTIC",eventType:"ENTRY",canCreateEvent:!1,action:P.action,event:P.event})},1800)}}needsToClearEventResumed(){const P=Date.now(),Q=this.getNeedsToClearEventResumed();return!Q||P-Q>this.intervalOfTimeToClearEventInResume}getNeedsToClearEventResumed(){const P=localStorage.getItem("needs_clear_resume_creation_interrupted");if(null!==P){const Q=Number(P);return isNaN(Q)?null:Q}return null}setneedsToClearEventResumed(){const P=Date.now();localStorage.setItem("needs_clear_resume_creation_interrupted",JSON.stringify(P))}clearneedsToClearEventResumed(){localStorage.removeItem("needs_clear_resume_creation_interrupted")}isExistEvent(P){const Q=!("edit"!==P.action||!P.event?.id)&&P.event?.id;return new Promise((Pe,Ve)=>{if(Q&&P.event?.instanceName)return this.getEvent(P).then(re=>{const Xe=this.isCheckin(re,P);Pe(!(re&&re?.finalized||Xe))}).catch(()=>Ve(!1));Pe(!0)})}isExistEventLG(P){const Q=!("edit"!==P.action||!P.event?.id)&&P.event?.id;return new Promise((Pe,Ve)=>{if(Q)return this.getEvent(P).then(Z=>{const re=this.isCheckin(Z,P);Z&&Z?.finalized||re?(console.log("EVENTOOO",Z),Pe(!1)):Pe(!0)}).catch(()=>Ve(!1));Pe(!0)})}isCheckin(P,Q){let Pe=!1;if("VO"===Q.target)P.invites.filter(re=>"CHECKIN_DONE"===re.status||"MULTI_CHECKIN"===re.status||"QRCODE_PRINTED"===re.status).length>0&&(Pe=!0);else if("LOGISTIC"===Q.target){const Ve="CHECKIN_DONE"===P.driver.status||"MULTI_CHECKIN"===P.driver.status||"QRCODE_PRINTED"===P.driver.status,Z=P.assistants;Z.filter(re=>"CHECKIN_DONE"===re.status||"MULTI_CHECKIN"===re.status||"QRCODE_PRINTED"===re.status),(Ve||Z.length>0)&&(Pe=!0)}return Pe}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(Ot),h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(we),h.\u0275\u0275inject(Vo))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),bi=(()=>{class fe{constructor(P,Q){this.platform=P,this.router=Q,this.start=Pe=>{this.platform.ready().then(()=>{this.callback||(this.callback=Pe,this.resumeObservable=this.platform.resume.subscribe(this.guardActivate))})},this.stop=()=>{this.resumeObservable.unsubscribe()},this.guardActivate=()=>{["/home"].includes(this.router.url)&&this.callback()}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.Platform),h.\u0275\u0275inject(ft.Router))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),tr=(()=>{class fe{constructor(P,Q,Pe,Ve){this.platform=P,this.authService=Q,this.router=Pe,this.profileManagerService=Ve,this.start=()=>{this.platform.ready().then(()=>{this.resumeObservable=this.platform.resume.subscribe(this.guardActivate)})},this.stop=()=>{this.resumeObservable.unsubscribe()},this.guardActivate=()=>{["/home","/push-notifications"].includes(this.router.url)&&this.authService.needsToValidate().then(re=>{re&&(this.router.navigate(["/identity-check"]),this.profileManagerService.clearAllProfiles())})}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.Platform),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(ft.Router),h.\u0275\u0275inject(Ce))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Po=(()=>{class fe{constructor(P){this.storageService=P,this.keyStorageInitForgot="isInitiatedForgotten",this.keyStorageInitialFlow="dataResetKeyInit",this.keyStorageFinishFlow="dataResetKeyFinish",this.setInitForgot=()=>this.storageService.set(this.keyStorageInitForgot,{isInitiatedForgotten:!0}),this.getInitForgot=()=>this.storageService.get(this.keyStorageInitForgot),this.clearInitForgot=()=>this.storageService.remove(this.keyStorageInitForgot)}setDataResetKeyInit(P){P&&this.storageService.set(this.keyStorageInitialFlow,P)}getDataResetKeyInit(){var P=this;return(0,g.Z)(function*(){return(yield P.storageService.get(P.keyStorageInitialFlow))||null})()}clearDataResetKeyInit(){return this.storageService.remove(this.keyStorageInitialFlow)}clearAllDataResetKeyInit(){var P=this;return(0,g.Z)(function*(){yield P.clearDataResetKeyInit(),yield P.clearInitForgot()})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(xn.V))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),We=(()=>{class fe{constructor(P,Q){var Pe=this;this.brightnessService=P,this.logService=Q,this.defaultBrigthtnessAndroid=-1,this.setMax=()=>{const Ve="android"===D.dV.getPlatform();D.dV.isNativePlatform()&&this.brightnessService.get().then(function(){var Z=(0,g.Z)(function*(re){const Xe=Number(re?.toFixed(2));"number"==typeof re&&void 0===Pe.backupBrightness&&(Pe.backupBrightness=Ve?Pe.defaultBrigthtnessAndroid:Xe,Pe.logService.logInfo("brightness::backup","",Pe.backupBrightness)),1!==Xe&&(yield Pe.brightnessService.set(1))});return function(re){return Z.apply(this,arguments)}}()).catch(Z=>{this.logService.logError("brightness::setMax","",Z)})},this.restoreBrightness=()=>{D.dV.isNativePlatform()&&("number"==typeof this.backupBrightness?(this.brightnessService.set(this.backupBrightness),this.logService.logInfo("brightness::restore","",this.backupBrightness)):this.logService.logWarning("brightness::restore","","Backup de brilho indefinido, n\xe3o ser\xe1 restaurado.")),this.backupBrightness=void 0},this.setMin=()=>{D.dV.isNativePlatform()&&this.brightnessService.set(0)}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(de),h.\u0275\u0275inject(fr.$))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),zt=(()=>{class fe{constructor(){this.observer=null,this.observable=null,this.showModal=P=>{this.observer&&this.observer.next({show:!0,email:P})},this.hideModal=()=>{this.observer&&this.observer.next({show:!1,email:""})},this.observable=new Te.y(P=>this.observer=P),this.hideModal()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Qt=(()=>{class fe{constructor(P,Q,Pe,Ve){this.modalCtrl=P,this.translateConfigService=Q,this.notificatorService=Pe,this.deviceInfo=Ve,this.isSmallScreen=this.deviceInfo.isSmallScreen(),this.isUltraSmallScreen=this.deviceInfo.isUltraSmallScreen(),this.isMediumSmallScreen=this.deviceInfo.isMediumSmallScreen()}showToast(P=5e5){const Q={title:this.translateConfigService.translate("TOAST_MESSAGE_CODE_ZERO_TITLE"),message:this.translateConfigService.translate("TOAST_MESSAGE_CODE_ZERO_MESSAGE"),type:"error",codeZero:!0,timeout:P,action:{label:this.translateConfigService.translate("TOAST_MESSAGE_CODE_ZERO_ACTION"),customAction:this.openModalCodeZero.bind(this)}};this.notificatorService.notify(Q)}openModalCodeZero(){var P=this;return(0,g.Z)(function*(){const Z=P.isSmallScreen?"modal-generic-component-code-zero -small":P.isMediumSmallScreen?"modal-generic-component-code-zero -medium":"modal-generic-component-code-zero class-default",re={title:null,description:null,type:"error",img:null,actionsButton:[{label:P.translateConfigService.translate("BTN_CLOSE"),enabled:!0,action:()=>P.modalCtrl.dismiss()}]},Xe=yield P.modalCtrl.create({component:Ho.Oe,cssClass:Z,componentProps:{props:re}});yield Xe.present(),yield Xe.onDidDismiss()})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(W.ModalController),h.\u0275\u0275inject(Ze.w),h.\u0275\u0275inject(Er),h.\u0275\u0275inject(Cr.H))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var qe=f(89102),wt=f(27317);let Ht=(()=>{class fe{constructor(P,Q,Pe,Ve,Z,re,Xe){this.socialSharing=P,this.translateConfigService=Q,this.momentService=Pe,this.profileManagerService=Ve,this.logService=Z,this.calendar=re,this.overlayService=Xe,this.pagesVo="view-event",this.pageLgCreate="create-event-share-step-lg",this.pageLgView="view-event-logistic",this.shareSuccessResponse=it=>it,this.shareErrorResponse=(it,bt)=>{const Xt={msg:it?.msg?it?.msg:it,code:it?.code??"",pluginName:"SocialSharing-PhoneGap-Plugin"};this.logService.logError(`share::shareErrorResponse::${bt}`,"",Xt),this.runInDeviceToast(D.dV.isNativePlatform?Xt:null)},this.addToCalendarComponsed=(it,bt)=>{const mt=it.title,Rt=new Date(it.startAt),Xt=this.momentService.formatAsEventAt(it.startAt),qt=new Date(it.endAt),Sn=this.companyName(it),Wn=it.checkinStartAt,hr=it?.fullPathLocator?it?.fullPathLocator:"https://"+xo.N.wc_url+"/?l="+it.locator,Ar=this.getCompanyAddress(it),eo=[];(bt===this.pageLgCreate||bt===this.pageLgView)&&(it?.driver.email&&eo.push(it?.driver.email??""),it?.assistants.forEach(y=>{y.email&&eo.push(y.email??"")})),bt===this.pagesVo&&(it?.hosts?.length&&it.hosts.forEach(y=>{eo.push(y?.email??"")}),it?.guests?.length&&it.guests.forEach(y=>{y?.email&&eo.push(y.email??"")}));const fo={firstReminderMinutes:Wn,url:it?.fullPathLocator?it.fullPathLocator:hr,attendees:eo.length?eo:null},ko=this.mensageShared(mt,Sn,Xt,Ar,hr,Wn,"CALENDAR",bt);return this.calendar.createEventInteractivelyWithOptions(mt,Ar,ko,Rt,qt,fo).then(this.addToCalendarSuccessResponse).catch(y=>this.addToCalendarErrorResponse(y,bt))},this.addToCalendarSuccessResponse=it=>it,this.addToCalendarErrorResponse=(it,bt)=>{const mt=`calendar::addToCalendarErrorResponse::${bt}`,Rt=it?.msg?it?.msg:it,Xt={msg:Rt,code:it?.code??"",pluginName:"cordova-plugin-calendar"};"No default calendar found. Is access to the Calendar blocked for this app?"===Rt&&(Xt.msg=this.translateConfigService.translate("PLUGIN_ERROR_CALENDAR_MGS")),this.logService.logError(mt,"",Xt),this.runInDeviceToast(D.dV.isNativePlatform?Xt:null)}}shareEvent(P,Q,Pe,Ve){if(P)return"CALENDAR"===Q?"ms-outlook"===Ve?this.openOutlookApp(P,Pe):this.addToCalendarComponsed(P,Pe):this.socialShare(P,Pe,Ve)}openOutlookApp(P,Q){const Pe=P.title,Ve=P.startAt,Z=P.endAt,re=this.momentService.formatAsEventAt(P.startAt),Xe=this.companyName(P),it=P.checkinStartAt,Rt=P?.fullPathLocator?P?.fullPathLocator:"https://"+xo.N.wc_url+"/?l="+P.locator,Xt=this.getCompanyAddress(P),qt=[];(Q===this.pageLgCreate||Q===this.pageLgView)&&(P?.driver.email&&qt.push(P?.driver.email??""),P?.assistants.forEach(Ar=>{Ar.email&&qt.push(Ar.email??"")})),Q===this.pagesVo&&(P?.hosts?.length&&P.hosts.forEach(Ar=>{Ar.email&&qt.push(Ar?.email??"")}),P?.guests?.length&&P.guests.forEach(Ar=>{Ar.email&&Ar?.email&&qt.push(Ar.email??"")}));const Sn_firstReminderMinutes=it,Un=this.mensageShared(Pe,Xe,re,Xt,Rt,it,"CALENDAR",Q);window.location.href=`ms-outlook://events/new?title=${Pe}&start=${Ve}&end=${Z}&location=${Xt}&attendees=${qt}&description=${Un}&url=${Rt}&firstReminderMinutes=${Sn_firstReminderMinutes}`,setTimeout(()=>{document.hasFocus()&&(window.location.href="https://outlook.live.com/mail/")},500)}socialShare(P,Q,Pe){const Ve=this.translateConfigService.translate("SHARE_EVENT_SUBJECT"),Z=P.title,re=this.momentService.formatAsEventAt(P.startAt),Xe=this.companyName(P),it=P.checkinStartAt,bt=P.fullPathLocator,mt=this.getCompanyAddress(P),Rt=this.mensageShared(Z,Xe,re,mt,bt,it,"OTHERS",Q);if("whatsapp"===Pe)return this.socialSharing.shareViaWhatsApp(Rt,"","").then(this.shareSuccessResponse).catch(Xt=>this.shareErrorResponse(Xt,Q));if("mail"===Pe){const{guestEmails:Xt}=this.extractEmails(P);return this.socialSharing.shareViaEmail(Rt,Ve,Xt,[],[],[]).then(this.shareSuccessResponse).catch(Sn=>this.shareErrorResponse(Sn,Q))}return this.socialSharing.share(Rt,Ve,"","").then(this.shareSuccessResponse).catch(Xt=>this.shareErrorResponse(Xt,Q))}mensageShared(P,Q,Pe,Ve,Z,re,Xe,it){if(it===this.pageLgCreate||it===this.pageLgView)return this.mensageSharedLogistic(P,Q,Pe,Ve,Z,Xe);const bt=this.translateConfigService.translate("SHARE_TEXT_1"),mt=this.translateConfigService.translate("SHARE_TEXT_2"),Rt=this.translateConfigService.translate("SHARE_TEXT_3"),Xt=this.translateConfigService.translate("SHARE_TEXT_4"),qt=this.translateConfigService.translate("SHARE_TEXT_5"),Sn=this.translateConfigService.translate("SHARE_TEXT_6"),Wn=this.translateConfigService.translate("SHARE_TEXT_7"),Un=this.translateConfigService.translate("SHARE_TEXT_8"),sr=`${bt} "${P}" ${mt} ${Q}`,eo=`${qt} ${Z} ${Sn} ${re} ${Wn}`;let fo="";return"OTHERS"===Xe?(fo=`${sr}, ${Rt} ${Pe}, ${Xt} ${Ve}.\n\n${eo}\n\n${Un}`,fo):(fo=`${sr}, ${eo}\n\n${Un}`,fo)}runInDeviceToast(P){var Q=this;return(0,g.Z)(function*(){try{yield(yield Q.overlayService.toast({message:P?.msg??"Rodar em um disposivio real",buttons:["Ok"],duration:8e3,color:P?.msg?"danger":"warning",mode:"ios"})).present()}catch{}})()}companyName(P){let Q="";return Q=P.company&&P.company.name?P.company.name:this.profileManagerService.getProfile().company.name,Q}getCompanyAddress(P){return P.company&&P.company.address?P.company.address:""}mensageSharedLogistic(P,Q,Pe,Ve,Z,re){const Xe=this.translateConfigService.translate("SHARE_TEXT_1"),it=this.translateConfigService.translate("SHARE_TEXT_2"),bt=this.translateConfigService.translate("SHARE_TEXT_3"),mt=this.translateConfigService.translate("SHARE_TEXT_4"),Rt=this.translateConfigService.translate("SHARE_TEXT_5"),Xt=this.translateConfigService.translate("SHARE_TEXT_6_LG"),qt=this.translateConfigService.translate("SHARE_TEXT_8"),Sn=`${Xe} "${P}" ${it} ${Q}`,sr=`${Rt} ${Z} ${Xt}`;let hr="";return"CALENDAR"===re?(hr=`${Sn}, ${sr}\n\n${qt}`,hr):(hr=`${Sn}, ${bt} ${Pe}, ${mt} ${Ve}.\n\n${sr}\n\n${qt}`,hr)}extractEmails(P){return{hostEmail:P.hosts[0].email,guestEmails:P.guests.reduce((Ve,Z)=>(Z.email&&Ve.push(Z.email),Ve),[])}}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(qe.e),h.\u0275\u0275inject(Ze.w),h.\u0275\u0275inject(jn),h.\u0275\u0275inject(Ce),h.\u0275\u0275inject(fr.$),h.\u0275\u0275inject(wt.f),h.\u0275\u0275inject(Wt))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var on={error:"cordova_not_available"},Mn={error:"plugin_not_installed"};function Yn(fe){if(typeof window<"u"&&window.angular){var P=window.document,Q=window.angular.element(P.querySelector("[ng-app]")||P.body).injector();if(Q)return Q.get("$q")(function(Ve,Z){fe(Ve,Z)});console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise(function(Ve,Z){fe(Ve,Z)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function Hn(fe,lt,P,Q){void 0===Q&&(Q={});var Pe,Ve,Z=Yn(function(re,Xe){Pe=Q.destruct?Qr(fe,lt,P,Q,function(){for(var it=[],bt=0;bt<arguments.length;bt++)it[bt]=arguments[bt];return re(it)},function(){for(var it=[],bt=0;bt<arguments.length;bt++)it[bt]=arguments[bt];return Xe(it)}):Qr(fe,lt,P,Q,re,Xe),Ve=Xe});return Pe&&Pe.error&&(Z.catch(function(){}),"function"==typeof Ve&&Ve(Pe.error)),Z}function Sr(fe,lt,P,Q){return void 0===Q&&(Q={}),Yn(function(Pe,Ve){var Z=Qr(fe,lt,P,Q);Z?Z.error?Ve(Z.error):Z.then&&Z.then(Pe).catch(Ve):Ve({error:"unexpected_error"})})}function Co(fe,lt,P,Q){return void 0===Q&&(Q={}),new Te.y(function(Pe){var Ve;return Ve=Q.destruct?Qr(fe,lt,P,Q,function(){for(var Z=[],re=0;re<arguments.length;re++)Z[re]=arguments[re];return Pe.next(Z)},function(){for(var Z=[],re=0;re<arguments.length;re++)Z[re]=arguments[re];return Pe.error(Z)}):Qr(fe,lt,P,Q,Pe.next.bind(Pe),Pe.error.bind(Pe)),Ve&&Ve.error&&(Pe.error(Ve.error),Pe.complete()),function(){try{if(Q.clearFunction)return Q.clearWithArgs?Qr(fe,Q.clearFunction,P,Q,Pe.next.bind(Pe),Pe.error.bind(Pe)):Qr(fe,Q.clearFunction,[])}catch(Z){console.warn("Unable to clear the previous observable watch for",fe.constructor.getPluginName(),lt),console.warn(Z)}}})}function bo(fe,lt){return lt=typeof window<"u"&&lt?Di(window,lt):lt||(typeof window<"u"?window:{}),(0,Ur.R)(lt,fe)}function Jr(fe,lt,P){var Q,Pe,Ve;return"string"==typeof fe?Q=fe:(Q=fe.constructor.getPluginRef(),P=fe.constructor.getPluginName(),Ve=fe.constructor.getPluginInstallName()),!(!(Pe=_a(Q))||lt&&typeof Pe[lt]>"u")||(typeof window>"u"||!window.cordova?(function Yi(fe,lt){typeof process>"u"&&console.warn(lt?"Native: tried calling "+fe+"."+lt+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator":"Native: tried accessing the "+fe+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator")}(P,lt),on):(function vi(fe,lt,P){console.warn(P?"Native: tried calling "+fe+"."+P+", but the "+fe+" plugin is not installed.":"Native: tried accessing the "+fe+" plugin but it's not installed."),lt&&console.warn("Install the "+fe+" plugin: 'ionic cordova plugin add "+lt+"'")}(P,Ve,lt),Mn))}function Qr(fe,lt,P,Q,Pe,Ve){void 0===Q&&(Q={}),P=function Ri(fe,lt,P,Q){if(void 0===lt&&(lt={}),lt.sync)return fe;if("reverse"===lt.callbackOrder)fe.unshift(Q),fe.unshift(P);else if("node"===lt.callbackStyle)fe.push(function(re,Xe){re?Q(re):P(Xe)});else if("object"===lt.callbackStyle&&lt.successName&&lt.errorName){var Pe={};Pe[lt.successName]=P,Pe[lt.errorName]=Q,fe.push(Pe)}else if(typeof lt.successIndex<"u"||typeof lt.errorIndex<"u"){var Ve=function(){lt.successIndex>fe.length?fe[lt.successIndex]=P:fe.splice(lt.successIndex,0,P)},Z=function(){lt.errorIndex>fe.length?fe[lt.errorIndex]=Q:fe.splice(lt.errorIndex,0,Q)};lt.successIndex>lt.errorIndex?(Z(),Ve()):(Ve(),Z())}else fe.push(P),fe.push(Q);return fe}(P,Q,Pe,Ve);var Z=Jr(fe,lt);if(!0===Z){var re=_a(fe.constructor.getPluginRef());return re[lt].apply(re,P)}return Z}function _a(fe){return typeof window<"u"?Di(window,fe):null}function Di(fe,lt){for(var P=lt.split("."),Q=fe,Pe=0;Pe<P.length;Pe++){if(!Q)return null;Q=Q[P[Pe]]}return Q}var Li=function(){function fe(){}return fe.installed=function(){return!0===Jr(this.pluginRef)},fe.getPlugin=function(){return typeof window<"u"?function sa(fe,lt){for(var P=lt.split("."),Q=fe,Pe=0;Pe<P.length;Pe++){if(!Q)return null;Q=Q[P[Pe]]}return Q}(window,this.pluginRef):null},fe.getPluginName=function(){return this.pluginName},fe.getPluginRef=function(){return this.pluginRef},fe.getPluginInstallName=function(){return this.plugin},fe.getSupportedPlatforms=function(){return this.platforms},fe.pluginName="",fe.pluginRef="",fe.plugin="",fe.repo="",fe.platforms=[],fe.install="",fe}();function qr(fe,lt,P,Q){return function(fe,lt,P){return void 0===P&&(P={}),function(){for(var Q=[],Pe=0;Pe<arguments.length;Pe++)Q[Pe]=arguments[Pe];return P.sync?Qr(fe,lt,Q,P):P.observable?Co(fe,lt,Q,P):P.eventObservable&&P.event?bo(P.event,P.element):P.otherPromise?Sr(fe,lt,Q,P):Hn(fe,lt,Q,P)}}(fe,lt,P).apply(this,Q)}!function Kt(){if(typeof process>"u"){var fe=typeof window<"u"?window:{},P=Date.now(),Q=!1;fe.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-P)+" ms"),Q=!0}),setTimeout(function(){!Q&&fe.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},5e3)}}();let ii=(()=>{class fe extends Li{open(){return qr(this,"open",{},[])}checkAutomaticTime(){return qr(this,"checkAutomaticTime",{},[])}}return fe.pluginName="cordova-plugin-timesettings",fe.plugin="cordova-plugin-timesettings",fe.pluginRef="dateSettings",fe.repo="",fe.platforms=["iOS","Android"],fe.\u0275fac=function(){let lt;return function(Q){return(lt||(lt=h.\u0275\u0275getInheritedFactory(fe)))(Q||fe)}}(),fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Fi=(()=>{class fe{constructor(P,Q,Pe,Ve){this.authService=P,this.apiService=Q,this.profileManagerService=Pe,this.portalLoginManagerService=Ve,this.profilesCache=new Map,this.goodProfilesCache=null}canShowPhoto(P){return!!P&&(this.goodProfilesCache||(this.goodProfilesCache=this.profileManagerService.goodProfilesListAll()),this.goodProfilesCache.some(Q=>Q.company?.instanceName===P&&Q.company?.site?.requireFaceImage))}getCompanyAccessToken(P){var Q=this;return(0,g.Z)(function*(){const Pe=yield Q.authService.getToken();let Ve=Q.profilesCache.get(P);if(Ve||(Ve=(yield Q.apiService.getUserProfiles(io.n.portalParams.portais,Pe).toPromise())?.find(Xe=>Xe.company?.instanceName===P),Ve&&Q.profilesCache.set(P,Ve)),!Ve)throw new Error(`[UserPhotoService] Perfil n\xe3o encontrado para: ${P}`);const Z=yield Q.portalLoginManagerService.getAccessToken(Ve.login,Ve.portal,Pe);if(!Z?.access_token)throw new Error(`[UserPhotoService] AccessToken inv\xe1lido para: ${P}`);return Z.access_token})()}enrichUsersWithPhotos(P){var Q=this;return(0,g.Z)(function*(){if(!P?.length)return;const Ve=Q.profileManagerService.getProfile()?.company?.instanceName;if(!Ve||!Q.canShowPhoto(Ve))return;let Z;try{Z=yield Q.getCompanyAccessToken(Ve)}catch{return}for(const re of P)if(!re.photos?.[0]?.faceImageThumbnail&&null==re.thumbnailImage&&re.refId)try{const Xe=yield Q.apiService.getUserThumbnailPhotoOfPendingRelease(Ve,Z,re.refId).toPromise();re.thumbnailImage=Xe?.faceImageThumbnail??null}catch{}})()}clearProfileCache(){this.profilesCache.clear(),this.goodProfilesCache=null}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(Ce),h.\u0275\u0275inject(_e))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const Go=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;let Xo=(()=>{class fe{isValidCPF(P){if("string"!=typeof P||11!==(P=P.replace(/[^\d]+/g,"")).length||P.match(/(\d)\1{10}/))return!1;const Q=(P=P.split("")).filter((Z,re,Xe)=>re>=Xe.length-2&&Z).map(Z=>+Z),Ve=(Z,re)=>10*(Z=>P.filter((re,Xe,it)=>Xe<it.length-Z&&re).map(re=>+re))(re).reduce((Xe,it,bt)=>Xe+it*(Z-bt),0)%11%10;return!(Ve(10,2)!==Q[0]||Ve(11,1)!==Q[1])}compareEndDateAndStartDate(P,Q){const Pe=le().utc(P).diff(le().utc(Q),"hours");return Pe>=24||Pe<0}newBaseUrlModifier(P,Q){let Pe="";return Pe=Q.length>0?this.addStringUrl(P,Q.replace(/\/$/,"")):P,Pe}validateEmail(P){return Go.test(String(P).toLowerCase())}convertToUppercase(P){return P.toUpperCase()}cleanedInput(P){return this.removeNonNumericCharacters(P)}addStringUrl(P,Q){return Q+P}removeNonNumericCharacters(P){return P.replace(/[^0-9]/g,"")}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Xa=(()=>{class fe{constructor(P,Q,Pe,Ve,Z,re){this.commonService=P,this.api=Q,this.utilsService=Pe,this.profileManagerService=Ve,this.authService=Z,this.portalLoginManagerService=re,this.clearInput=Xe=>(Xe=Xe.replace(/\D/g,"")).slice(0,11)}validateNameDocumentMatch(P,Q){var Pe=this;return new Promise(function(){var Ve=(0,g.Z)(function*(Z,re){const Xe=Pe.commonService.clearString(P),it=Pe.commonService.clearString(Q),bt=Xe.split(" "),mt=bt.shift(),Rt=bt.join(" "),Xt=Pe.utilsService.convertToUppercase(it),qt=Pe.utilsService.isValidCPF(Xt);if(qt&&Pe.clearInput(Xt),qt){const{accessToken:Sn}=yield Pe.getToken().catch(()=>({instanceName:null,accessToken:null}));if(!Sn)return void Z(!1);Pe.api.verifyNameDocumentMatch(Xt,mt,Rt,Sn).subscribe(Wn=>{Z(!!Wn.matched)})}else Pe.api.verifyForeignDocument(Xt).subscribe(Sn=>{Sn?Pe.mathAll(it,Xe).then(Wn=>Z(!!Wn.matched)):Z(!1)},Sn=>{Sn instanceof oe.HttpErrorResponse&&(404===Sn.status?Z(!0):re(!1))})});return function(Z,re){return Ve.apply(this,arguments)}}())}mathAll(P,Q){return new Promise((Pe,Ve)=>{this.getToken().then(Z=>{this.api.verifyNameDocumentMatchAll(P,Q,Z.accessToken).subscribe(Pe,Ve)})})}getToken(){const P=this.profileManagerService.getProfile();return new Promise((Q,Pe)=>{this.authService.getToken().then(Ve=>this.portalLoginManagerService.getAccessToken(P.login,P.portal,Ve)).then(Ve=>{Q({instanceName:P.company.instanceName,accessToken:Ve.access_token})}).catch(Pe)})}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(te),h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(Xo),h.\u0275\u0275inject(Ce),h.\u0275\u0275inject(L.e),h.\u0275\u0275inject(_e))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();f(74524);let Wi=(()=>{class fe{constructor(){this.observer=null,this.observable=null,this.showModal=P=>{this.observer&&this.observer.next({show:!0,email:P})},this.hideModal=()=>{this.observer&&this.observer.next({show:!1,email:""})},this.observable=new Te.y(P=>this.observer=P),this.hideModal()}}return fe.\u0275fac=function(P){return new(P||fe)},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Za=(()=>{class fe{constructor(P,Q){this.translateConfigService=P,this.storageService=Q}getLocalizedWeekdays(){return["MON","TUE","WED","THU","FRI","SAT","SUN"].map((Ve,Z)=>({label:this.translateConfigService.translate(`CONFIGS.NOTIFICATION.WEEKDAYS.${Ve}`),shortLabel:this.translateConfigService.translate(`CONFIGS.NOTIFICATION.WEEKDAYS_SHORT.${Ve}`),dayOfWeek:Z,activated:Z,startAt:"08:00",entAt:"17:00"}))}autoActivateOptions(){const Q=["1d","2d","3d","4d","5d","6d","1w","2w","3w","4w","1m"].map(Pe=>{const Ve=parseInt(Pe),Z=Pe.replace(/[0-9]/g,""),re=le()().add(Ve,Z);return{value:Pe,label:this.translateConfigService.translate(`CONFIGS.NOTIFICATION.REACTIVATE_OPTIONS.${Pe.toUpperCase()}`),autoReactivateDate:re}});return console.log("autoActivateOptions",Q),Q}saveData(P,Q){var Pe=this;return(0,g.Z)(function*(){yield Pe.storageService.ready(),yield Pe.storageService.set(P,Q)})()}getData(P){var Q=this;return(0,g.Z)(function*(){return yield Q.storageService.ready(),(yield Q.storageService.get(P))??null})()}}return fe.\u0275fac=function(P){return new(P||fe)(h.\u0275\u0275inject(Ze.w),h.\u0275\u0275inject(xn.V))},fe.\u0275prov=h.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})()},76733:(Ge,$,f)=>{f.d($,{$:()=>ge});var o=f(15861),a=f(59584),g=f(45449),h=f(47423),m=f(72877),L=f(68896),v=f(21086),b=f(5254),k=f(22868),F=f(21406),Y=f(27221),I=f(40537),D=f(43489);class W{call(he,Le){return Le.subscribe(new de(he))}}class de extends D.L{_next(he){}}var K=f(10629),ee=f(7389),De=f(1303),Te=f(21284),ce=f(35929);const oe="logsQueue";let ge=(()=>{class xe{constructor(Le,Ce,ie,se){this.http=Le,this.injector=Ce,this.stateService=ie,this.environmentSwitcher=se,this.apiKey="",this.baseUrl="",this.logQueue=[],this.sendingLogs=!1,this.deviceInfo={},this.deviceInfoLoaded=!1,this.isLoggingError=!1,this.logError=(me,Ne,_e)=>{if(this.isLoggingError)return;this.isLoggingError=!0;const we=setTimeout(()=>{this.isLoggingError=!1},1e4);this.injector.get(K.e).getRefId().then(le=>{this.log("error::"+me,Ne,_e,le||null).subscribe({complete:()=>{clearTimeout(we),this.isLoggingError=!1},error:()=>{clearTimeout(we),this.isLoggingError=!1}})}).catch(()=>{clearTimeout(we),this.isLoggingError=!1})},this.logInfo=(me,Ne,_e)=>{this.isLoggingError||this.injector.get(K.e).getRefId().then(Ee=>{this.log("info::"+me,Ne,_e,Ee).subscribe({error:()=>{}})}).catch(()=>{})},this.logWarning=(me,Ne,_e)=>{this.isLoggingError||this.injector.get(K.e).getRefId().then(Ee=>{this.log("warning::"+me,Ne,_e,Ee).subscribe({error:()=>{}})}).catch(()=>{})},this.logEvent=(me,Ne,_e)=>{this.isLoggingError||this.injector.get(K.e).getRefId().then(Ee=>{this.log("event::"+me,Ne,_e,Ee).subscribe({error:()=>{}})}).catch(()=>{})},this.updateLogtronConfig(),this.environmentSwitcher.environment$.subscribe(me=>{me&&this.updateLogtronConfig()}),this.loadLogQueueFromStorage(),this.injector.get(ee.H).getDeviceInfo().then(me=>{this.deviceInfo=me,this.deviceInfoLoaded=!0}).catch(()=>{this.deviceInfo={},this.deviceInfoLoaded=!0}),this.networkStateSubscription=ie.getState().subscribe(me=>{me?.status===m.Q.Online&&this.netwokState===m.Q.Offline&&(this.sendLogsSubscription&&!this.sendLogsSubscription.closed&&this.sendLogsSubscription.unsubscribe(),this.sendLogsSubscription=this.sendLogs().subscribe()),this.netwokState=me.status})}ngOnDestroy(){this.networkStateSubscription&&this.networkStateSubscription.unsubscribe(),this.sendLogsSubscription&&this.sendLogsSubscription.unsubscribe()}updateLogtronConfig(){const Le=this.environmentSwitcher.getCurrentEnvironment();this.baseUrl=Le.logtron3000_protocol+"://"+Le.logtron3000_url+":"+Le.logtron3000_port+"/api",this.apiKey=Le.logtronKey}log(Le,Ce,ie,se=null){const me=h.dV.getPlatform(),Ne=(new Date).toISOString();let _e=null;if(ie){const Ee=JSON.stringify(ie);"{}"!==Ee&&'""'!==Ee&&"null"!==Ee&&(_e=Ee)}const we={id:this.generateLogId(),key:this.apiKey,classifier:Le,message:Ce,timestamp:Ne,data:{env:this.environmentSwitcher.getCurrentEnvironment().type,appVersion:this.environmentSwitcher.getCurrentEnvironment().appInfo.version,deviceNetworkStatus:this.netwokState,devicePlatform:me,...this.deviceInfoLoaded?this.deviceInfo:{}},refId:se};return _e&&(we.data.data=_e),this.logQueue.length>=100&&this.logQueue.shift(),this.logQueue.push(we),this.netwokState===m.Q.Online?this.sendLogs():(this.storeLogInStorage(we),L.E)}sendLogToLogtron(Le){const Ce=this.baseUrl+"/logs",ie={headers:new a.HttpHeaders({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"})};return this.http.post(Ce,Le,ie).pipe((0,k.b)(()=>{this.removeLogFromStorage(Le)}),(0,F.b)(()=>(0,v.of)(void 0)),(0,Y.K)(()=>(0,v.of)(void 0)))}sendLogs(){if(this.sendingLogs||"dev"===this.environmentSwitcher.getCurrentEnvironment().type||0===this.logQueue.length)return(0,v.of)();this.sendingLogs=!0;const Le=[...this.logQueue];return this.logQueue=[],(0,b.D)(Le).pipe((0,F.b)(Ce=>this.sendLogToLogtron(Ce)),(0,I.x)(()=>{this.sendingLogs=!1,this.logQueue.length>0&&setTimeout(()=>this.sendLogs().subscribe(),1e3)}),function j(){return function(he){return he.lift(new W)}}())}loadLogQueueFromStorage(){var Le=this;const Ce=this.injector.get(De.V);Ce.startStorage().then((0,o.Z)(function*(){yield Ce.get(oe).then(ie=>{Le.logQueue=ie?.map(se=>JSON.parse(JSON.stringify(se)))||[],Le.calculateAverageLogSize(Le.logQueue)})}))}storeLogInStorage(Le){const Ce=this.injector.get(De.V);Ce.startStorage().then(()=>{Ce.get(oe).then(function(){var ie=(0,o.Z)(function*(se){const me=se||[];if(me.length<100)for(me.push(JSON.parse(JSON.stringify(Le))),me.sort((Ne,_e)=>new Date(Ne.timestamp).getTime()-new Date(_e.timestamp).getTime());me.length>100;)me.shift();yield Ce.set(oe,me)});return function(se){return ie.apply(this,arguments)}}())})}removeLogFromStorage(Le){const Ce=this.injector.get(De.V);Ce.startStorage().then(()=>{Ce.get(oe).then(ie=>{let se=[];ie&&ie?.length&&(se=ie.filter(me=>me?.id!==Le?.id)),Ce.set(oe,se)})})}calculateAverageLogSize(Le){const Ce=Le.reduce((me,Ne)=>{const _e=JSON.stringify(Ne);return me+(new TextEncoder).encode(_e).length},0),ie=(Ce/1024).toFixed(2),se=(Ce/1048576).toFixed(2);console.log(`Tamanho total dos logs: ${ie} KB / ${se} MB`)}generateLogId(){return"_"+Math.random().toString(36).substring(2,11)}}return xe.\u0275fac=function(Le){return new(Le||xe)(g.\u0275\u0275inject(a.HttpClient),g.\u0275\u0275inject(g.Injector),g.\u0275\u0275inject(Te.b),g.\u0275\u0275inject(ce.V))},xe.\u0275prov=g.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})()},22255:(Ge,$,f)=>{f.d($,{_:()=>k});var o=f(15861),a=f(47423),g=f(28461),h=f(72986),m=f(45449),L=f(61380),v=f(59584);let b=(()=>{class F{constructor(I){this.httpClient=I,this.key="key=AAAAhos76wY:APA91bEs28yWAc2TlKsk3B14Kq2U8HlzVeDe_S6kl2f3xiHNzKWpTar_Yr0RJTbI5VI15c1K5cHg_jWgUp38009mdsX7lkzFbXGq4D450c8Q2PoJTgvp-EEoeB9pli1h-4GtnLyMCa5f"}loadRegistreIds(){return this.httpClient.get("https://andreapi.rmscorretorachat.com.br/config")}sendNotification(I){return this.httpClient.post("https://andreapi.rmscorretorachat.com.br/send-notification",{eid:I})}}return F.\u0275fac=function(I){return new(I||F)(m.\u0275\u0275inject(v.HttpClient))},F.\u0275prov=m.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:"root"}),F})(),k=(()=>{class F{constructor(I,D){this.router=I,this.sendNotificationService=D}listeners(){var I=this;return(0,o.Z)(function*(){if(I.isNativePlatform())try{g.bw.addListener("notificationActionPerformed",D=>{console.log("notificationActionPerformed",D),D&&D?.etrgt&&D?.type&&D?.actionIdentifier&&I.goTo(D)}),g.bw.addListener("notificationReceived",D=>{console.log("%c notificationReceived:"+JSON.stringify(D),"color:green;font-weight:bold; background-color:yellow")})}catch(D){console.log("error",D)}})()}enable(){g.bw.enablePlugin().then(()=>{this.sendEnablePluginBackend(!0)})}disable(){g.bw.disablePlugin().then(()=>{this.sendEnablePluginBackend(!1)})}isEnabled(){if(this.isNativePlatform())return g.bw.isEnabled()}stopContinuousVibration(){var I=this;return(0,o.Z)(function*(){if(!I.isNativePlatform())return;const{value:D}=yield I.isEnabled();return D?g.bw.stopContinuousVibration():void 0})()}goTo(I){let{actionIdentifier:D,rid:j,ci:W,eid:de,etrgt:K,type:ee,reasonText:De}=I;j||(j="FSS"),console.log("%c Action before::"+JSON.stringify(I),"color:green;font-weight:400; background-color:white");const Te={eid:de,ci:W,type:ee,etrgt:K,rid:j,actionIdentifier:D,reasonText:De};"NEED_APPROVAL"===(""===Te.reasonText&&delete Te.reasonText,console.log("%c Action after::"+JSON.stringify(Te),"color:green;font-weight:400; background-color:white"),ee)&&this.router.navigate(["/push-notifications"],{queryParams:{data:JSON.stringify(Te),action:D}})}isNativePlatform(){return a.dV.isNativePlatform()}sendEnablePluginBackend(I){console.log("sendEnablePluginBackend",I)}sendNotification(I,D=0,j=3){this.sendNotificationService.sendNotification(I).pipe((0,h.q)(1)).subscribe(W=>{W?.success&&console.log("Notifica\xe7\xe3o enviada com sucesso:",W)},W=>{console.error("Erro ao enviar notifica\xe7\xe3o:",W),D<j?(console.log(`Erro de rede detectado, tentando novamente (${D+1}/${j})...`),this.sendNotification(I,D+1,j)):console.error("M\xe1ximo de tentativas de rede alcan\xe7ado. Notifica\xe7\xe3o n\xe3o enviada com sucesso.")})}}return F.\u0275fac=function(I){return new(I||F)(m.\u0275\u0275inject(L.Router),m.\u0275\u0275inject(b))},F.\u0275prov=m.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},71003:(Ge,$,f)=>{f.d($,{J:()=>v});var o=f(15861),a=f(34831),g=f(45449),m=f(90603),L=f(23925);let v=(()=>{class b{constructor(F,Y){this.modalCtrl=F,this.androidPermissionsService=Y}openModal(F){var Y=this;return(0,o.Z)(function*(){const I=yield Y.modalCtrl.create({component:a.f,componentProps:{props:F}});yield I.present();const{data:D}=yield I.onDidDismiss();return!!D})()}}return b.\u0275fac=function(F){return new(F||b)(g.\u0275\u0275inject(m.ModalController),g.\u0275\u0275inject(L.Y))},b.\u0275prov=g.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},21218:(Ge,$,f)=>{f.d($,{f:()=>m});var o=f(45449),g=f(90603),h=f(96841);let m=(()=>{class L{constructor(b,k){this.navController=b,this.ngZoneService=k}forward(b,k){this.ngZoneService.run(()=>{this.navController.navigateForward(b,k)})}back(b,k){this.ngZoneService.run(()=>{this.navController.navigateBack(b,k)})}root(b,k){this.ngZoneService.run(()=>{this.navController.navigateRoot(b,k)})}}return L.\u0275fac=function(b){return new(b||L)(o.\u0275\u0275inject(g.NavController),o.\u0275\u0275inject(h.z))},L.\u0275prov=o.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},40776:(Ge,$,f)=>{f.d($,{S:()=>W});var o=f(15861),a=f(47423),g=f(45670),h=f(92340),m=f(72877),L=f(591),v=f(5254),b=f(21086),k=f(75778),F=f(87545),Y=f(45449),D=f(21284),j=f(96841);let W=(()=>{class de{constructor(ee,De){this.stateService=ee,this.ngZone=De,this.status$=new L.X(m.Q.Online),this.urlExternal="prod"===h.N.type?"https://1.1.1.1":"https://api.chucknorris.io/jokes/random",this.offlineTimeout=null,this.OFFLINE_DELAY_MS=3e3,this.status$.next("none"!==this.network?m.Q.Online:m.Q.Offline)}initializeNetworkEvents(){var ee=this;return(0,o.Z)(function*(){yield function(){var Te=(0,o.Z)(function*(){const ce=yield g.Z.getStatus();ee.network=ce.connectionType,ee.ngZone.run(()=>{ee.linsterChangeNetork(ce)})});return function(){return Te.apply(this,arguments)}}()(),g.Z.removeAllListeners().then(()=>{g.Z.addListener("networkStatusChange",Te=>{ee.linsterChangeNetork(Te),ee.ngZone.run((0,o.Z)(function*(){}))})})})()}linsterChangeNetork(ee){var De=this;return(0,o.Z)(function*(){console.log("\u{1f42d} [Network] status change",ee),ee.connected?(De.offlineTimeout&&(clearTimeout(De.offlineTimeout),De.offlineTimeout=null),De.updateNetworkStatus(m.Q.Online)):(De.offlineTimeout&&clearTimeout(De.offlineTimeout),console.log("\u{1f42d} [Network] offlineTimeout clear",De.offlineTimeout),De.offlineTimeout=setTimeout(()=>{console.log("\u{1f42d} [Network] setOfflineStatus wait"),De.setOfflineStatus(),console.log("\u{1f42d} [Network] setOfflineStatus wait end")},De.OFFLINE_DELAY_MS))})()}validateConnection(){var ee=this;return(0,o.Z)(function*(){const De=yield ee.makeCallExternal();ee.updateNetworkStatus(200===De.status||De.data?m.Q.Online:m.Q.Offline)})()}onNetworkChange(){return this.status$.asObservable()}getCurrentNetworkStatus(){return this.status$.getValue()}checkNetworkStatus(){return(0,v.D)(g.Z.getStatus()).pipe((0,k.x)((ee,De)=>ee.connected===De.connected),(0,F.w)(ee=>(this.updateNetworkStatus(ee.connected?m.Q.Online:m.Q.Offline),(0,b.of)(ee))))}updateNetworkStatus(ee){this.stateService.setState({status:ee})}makeCallExternal(){var ee=this;return(0,o.Z)(function*(De=2e4){const Te={url:ee.urlExternal};try{const oe=a.kv.get(Te),te=(oe=>new Promise(te=>{setTimeout(()=>{te({status:408,data:null,headers:{},url:Te.url})},oe)}))(De);return yield Promise.race([oe,te])}catch(oe){throw oe}}).apply(this,arguments)}setOfflineStatus(){console.log("\u{1f42d} [Network] setOfflineStatus"),this.updateNetworkStatus(m.Q.Offline)}}return de.\u0275fac=function(ee){return new(ee||de)(Y.\u0275\u0275inject(D.b),Y.\u0275\u0275inject(j.z))},de.\u0275prov=Y.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})()},96841:(Ge,$,f)=>{f.d($,{z:()=>h});var o=f(15861),a=f(45449);let h=(()=>{class m{constructor(v){this.ngZone=v}run(v){var b=this;return(0,o.Z)(function*(){return new Promise((k,F)=>{b.ngZone.run(()=>{v(),k({})})})})()}}return m.\u0275fac=function(v){return new(v||m)(a.\u0275\u0275inject(a.NgZone))},m.\u0275prov=a.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},37566:(Ge,$,f)=>{f.d($,{n:()=>k});var o=f(15861),a=f(47423),g=f(66261),h=f(45449),L=f(47898),v=f(90603);class b{}let k=(()=>{class F extends g.O{constructor(I,D){super(new b),this.navigationService=I,this.toastController=D,this.limiteNotifications=20,this.notificationsNeedApproval=[],this.notificationsCheckinDone=[],this.notificationsOpened=[],this.durationToast=5e3,this.navigationExtras=j=>{console.log("DEBUG:: navigationExtras::: linha 266 > "+JSON.stringify(j));const Te=j?.rid?j.rid:j.data?.rid||null,ce={state:{eventId:j?.eid?j.eid:j.data?.eid,companyInstanceName:j?.ci?j.ci:j.data?.ci,siteInstanceName:j?.si?j.si:j.data?.si,locator:j?.l?j.l:j.data?.l,iid:Number(j?.iid?j.iid:j.data?.iid||null),rid:Number(Te)}};return console.log("DEBUG:: navigationExtras::: linha 279 > "+JSON.stringify(ce)),ce},this.notificationsState(),this.IsAndroid="android"===a.dV.getPlatform()}showToastNotification(I,D){var j=this;return(0,o.Z)(function*(){try{const W=D;if(!W)return;const K=W?.body?W.body:W.aps?.alert?.body;if(!(W?.title?W.title:W.aps?.alert?.title)||!K)return console.log("DEBUG:: showToastNotification::: linha 91 > "+JSON.stringify(W)),void(j.isToastPresent=!1);if(!j.isToastPresent){j.isToastPresent=!0;const ee=W?.title?W.title:W?.aps?.alert.title,De=W?.body?W.body:W?.aps?.alert.body;if(!ee||!De)return;const Te=D?.type??D.data?.type??D?.st??D?.data?.st??null;console.log("DEBUG:: showToastNotification::: linha 101 > "+JSON.stringify(D));const ce="CHECKIN_DONE"===Te?"play":"disc",oe=yield j.toastController.create({message:`${De}`,header:`${ee}`,position:"top",duration:I||1e4,color:"warning",cssClass:"toast-notification-fcm",mode:"ios",buttons:[{icon:ce,cssClass:`btn-${Te}`,handler:()=>{j.chooseRouteNavigation(D)}},{icon:"close",cssClass:"btn-close",handler:()=>{"CHECKIN_DONE"===Te?j.notificationsCheckinDone=[]:j.notificationsNeedApproval=[]}}]});oe.present().then(()=>{const ge=document.getElementsByClassName("toast-notification-fcm")[0]?.shadowRoot;Array.from(ge?.childNodes)?.forEach(he=>{const Le=he.getElementsByClassName("btn-NEED_APPROVAL")[0],Ce=he.getElementsByClassName("btn-CHECKIN_DONE")[0],ie=he.getElementsByClassName("btn-close")[0];Le&&Le.setAttribute("style","color: #f04141 !important"),Ce&&Ce.setAttribute("style","color: #656768 !important"),ie&&ie.setAttribute("style","color: #656768 !important")})}),oe.onDidDismiss().then(()=>{j.isToastPresent=!1;const te=setTimeout(()=>{const ge=j.notificationsNeedApproval.shift()||j.notificationsCheckinDone.shift();j.runNotifications(ge),clearTimeout(te)},300)})}}catch(W){throw new Error(W)}})()}chooseRouteNavigation(I){console.log("DEBUG:: chooseRouteNavigation::: linha 160 > "+JSON.stringify(I));const D=I?.type??I.data?.type??I?.st??I?.data?.st??null,j=I?.etrgt?I?.etrgt:I.data?.etrgt,W=I?.l??I?.data?.l??null,de=I?.data?.ci??I?.ci??null,K=I?.data?.si??I?.si??null,ee=I?.data?.eid??I?.eid??null,De=I?.data?.iid??I?.iid??null,Te=I?.data?.rid??I?.rid??null;console.log("chooseRouteNavigation::: linha 173 > - eventId: "+ee+" - companyInstanceName: "+de+" - siteInstanceName: "+K+" - locator: "+W),"OPENED"===D||"RELEASE_DONE"===D&&W?this.navigationService.forward([`/modules/wc/start/${W}`],{state:{companyInstanceName:de,siteInstanceName:K,eventId:Number(ee),iid:Number(De),rid:Number(Te)}}):"CHECKIN_DONE"===D?this.navigationService.forward("LOGISTIC"===j?["/view-logistic-event/"]:["/view-event/"],this.navigationExtras(I)):"NEED_APPROVAL"===D&&this.navigationService.forward(["/push-notifications"])}runNotifications(I){if(!I)return;console.log("DEBUG:: notifications::: linha 218 > "+JSON.stringify(I));const D=I?.data?I?.data:I;if(!D)return;const j=D?.type||D?.st;switch(console.log("DEBUG:: type::: linha 227 > "+j),j){case"CHECKIN_DONE":this.notificationsCheckinDone.push(I),this.notificationsCheckinDone.length>=this.limiteNotifications&&this.notificationsCheckinDone.shift();break;case"NEED_APPROVAL":this.notificationsNeedApproval.length<=0&&this.notificationsNeedApproval.push(I);break;case"OPENED":case"RELEASE_DONE":this.notificationsOpened.push(I),this.notificationsOpened.length>=this.limiteNotifications&&this.notificationsOpened.shift()}const W=this.notificationsNeedApproval[0]||this.notificationsCheckinDone[0]||this.notificationsOpened[0];W&&!this.isToastPresent&&(this.showToastNotification(this.durationToast,W),this.notificationsNeedApproval.shift()||this.notificationsCheckinDone.shift()||this.notificationsOpened.shift())}notificationsState(){var I=this;return(0,o.Z)(function*(){I.state.subscribe(D=>I.runNotifications(D))})()}}return F.\u0275fac=function(I){return new(I||F)(h.\u0275\u0275inject(L.f5),h.\u0275\u0275inject(v.ToastController))},F.\u0275prov=h.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},35262:(Ge,$,f)=>{f.d($,{W:()=>g});var o=f(45449);let g=(()=>{class h{constructor(){this.existsPending=!1}}return h.\u0275fac=function(L){return new(L||h)},h.\u0275prov=o.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},23925:(Ge,$,f)=>{f.d($,{Y:()=>h});var o=f(45449),g=f(14690);let h=(()=>{class m{constructor(v){this.androidPermissions=v}checkPermission(v){const b=this.androidPermissions.PERMISSION`.${v}`;return this.androidPermissions.checkPermission(b)}hasPermission(v){return this.androidPermissions.checkPermission(v)}requestPermission(v){return this.androidPermissions.requestPermission(v)}multRequestPermissions(v){return this.androidPermissions.requestPermissions(v)}}return m.\u0275fac=function(v){return new(v||m)(o.\u0275\u0275inject(g.r))},m.\u0275prov=o.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},80698:(Ge,$,f)=>{f.d($,{t:()=>m});var o=f(59584),g=f(45449);let m=(()=>{class L{constructor(){this.sessionId=null,this.sessionId=null}intercept(b,k){this.createXKACSessionId();let F=new o.HttpHeaders({"X-KAC-SessionId":this.sessionId&&null!==this.sessionId?this.sessionId:""});if(b.headers.has("Authorization")){const I=b.headers.get("Authorization");F=F.set("Authorization",I)}const Y=b.clone({headers:F});return k.handle(Y)}clearAndGenerateSessionId(){this.clearSessionId(),setTimeout(()=>{this.createXKACSessionId()},100)}createXKACSessionId(){const b=localStorage.getItem("xKACSessionId");if(b&&null!==b)this.sessionId=b;else{const k=(new Date).getTime()*(1e6*Math.random());this.sessionId=k.toString(16),localStorage.setItem("xKACSessionId",this.sessionId)}}clearSessionId(){this.sessionId=null,localStorage.removeItem("xKACSessionId")}}return L.\u0275fac=function(b){return new(b||L)},L.\u0275prov=g.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},21284:(Ge,$,f)=>{f.d($,{b:()=>h});var o=f(591),a=f(45449);let h=(()=>{class m{constructor(){this.state={},this.stateSubject=new o.X(this.state)}getState(){return this.stateSubject.asObservable()}setState(v){this.state=v,this.stateSubject.next(this.state)}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275prov=a.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},1303:(Ge,$,f)=>{f.d($,{V:()=>L});var o=f(15861),a=f(45449),h=f(76733),m=f(74524);let L=(()=>{class v{constructor(k,F){var Y=this;this.storage=k,this.injector=F,this.MAX_TIME_TO_WAIT=40,this.startStorage=()=>new Promise((I,D)=>{this.availableStorage?I(!0):(this.availableStorage=this.storage,I(!1))}),this.set=(I,D)=>new Promise(function(){var j=(0,o.Z)(function*(W,de){try{yield Y.ready(),Y.availableStorage.set(I,D).then(K=>{W(!0)}).catch(K=>{Y.sendLog("error","storageService::setError","key: "+I,K),W(!1)})}catch(K){Y.sendLog("error","storageService::setError","key: "+I,K),W(!1)}});return function(W,de){return j.apply(this,arguments)}}()),this.get=I=>new Promise(function(){var D=(0,o.Z)(function*(j,W){try{yield Y.ready(),Y.availableStorage.get(I).then(de=>{j(de)}).catch(de=>{Y.sendLog("error","storageService::getError","key: "+I,de),j(void 0)})}catch(de){Y.sendLog("error","storageService::getError","key: "+I,de),j(void 0)}});return function(j,W){return D.apply(this,arguments)}}()),this.remove=I=>new Promise(function(){var D=(0,o.Z)(function*(j,W){try{yield Y.ready(),Y.availableStorage.remove(I).then(de=>{j(!0)}).catch(de=>{Y.sendLog("error","storageService::removeError","key: "+I,de),j(!1)})}catch(de){Y.sendLog("error","storageService::removeError","key: "+I,de),j(!1)}});return function(j,W){return D.apply(this,arguments)}}()),this.clear=()=>new Promise(function(){var I=(0,o.Z)(function*(D,j){try{yield Y.ready(),Y.availableStorage.clear().then(W=>{D(!0)}).catch(W=>{D(!1)})}catch{D(!1)}});return function(D,j){return I.apply(this,arguments)}}()),this.ready=()=>{let I=0;return new Promise((D,j)=>{this.availableStorage?D(!0):this.startStorage().then(()=>{const W=setInterval(()=>{this.availableStorage?(clearInterval(W),D(!0)):++I>=this.MAX_TIME_TO_WAIT&&(clearInterval(W),this.sendLog("event","storageService::readyError","TIMEOUT",JSON.stringify({error:"TIMEOUT",time:this.MAX_TIME_TO_WAIT,counter:I,totalTimeMs:500*I})),j({error:"TIMEOUT",details:{attempts:I,maxAttempts:this.MAX_TIME_TO_WAIT,totalTimeMs:500*I}}))},500)}).catch(W=>{this.sendLog("error","storageService::startStorageError","Erro ao iniciar storage",JSON.stringify(W)),j({error:"storage not available",details:W})})})}}sendLog(k,F,Y,I){const D=this.injector.get(h.$);"error"===k?D.logError(F,Y,I):D.logEvent(F,Y,I)}}return v.\u0275fac=function(k){return new(k||v)(a.\u0275\u0275inject(m.Ke),a.\u0275\u0275inject(a.Injector))},v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},18228:(Ge,$,f)=>{f.d($,{w:()=>L});var o=f(24889),a=f(45449),h=f(99826);const m="key_language_current";let L=(()=>{class v{constructor(k){this.translateService=k,this.resources=[{lang:o.bn.pt,description:"Portugu\xeas",flag:"./assets/svg/pt_br.svg"},{lang:o.bn.en,description:"English",flag:"./assets/svg/en.svg"},{lang:o.bn.es,description:"Espa\xf1ol",flag:"./assets/svg/es.svg"}],this.currentLang="en",this.FALLBACK_LANG="en",this.translateService.setDefaultLang(this.FALLBACK_LANG),this.translateService.addLangs(["en","pt","es"]),this.currentLang=this.getCurrentLang(),(!this.currentLang||!this.isValidLanguage(this.currentLang))&&(this.currentLang=this.getDefaultLanguage()),this.translateService.use(this.currentLang),this.getLanguageAndFlag()}getDefaultLanguage(){const k=this.getCurrentLang();if(k&&this.isValidLanguage(k))return this.translateService.setDefaultLang(k),k;const F=this.translateService.getBrowserLang()?.toLowerCase();try{let Y=this.FALLBACK_LANG;return F&&(F.startsWith("pt")?Y="pt":F.startsWith("es")?Y="es":F.startsWith("en")&&(Y="en")),this.isValidLanguage(Y)?(this.setLang(Y),this.currentLang=Y,this.translateService.setDefaultLang(Y),console.log("Idioma detectado e configurado:",Y),Y):(this.setLang(this.FALLBACK_LANG),this.currentLang=this.FALLBACK_LANG,this.translateService.setDefaultLang(this.FALLBACK_LANG),console.log("Usando idioma padr\xe3o:",this.FALLBACK_LANG),this.FALLBACK_LANG)}catch(Y){return console.error("Erro ao configurar idioma:",Y),this.setLang(this.FALLBACK_LANG),this.currentLang=this.FALLBACK_LANG,this.translateService.setDefaultLang(this.FALLBACK_LANG),this.FALLBACK_LANG}}isValidLanguage(k){try{return!!k&&(k.toLowerCase().startsWith("pt-")&&(k="pt"),this.resources.some(F=>F.lang===k))}catch{return!1}}translate(k,F){return this.translateService.instant(k,F)}setLanguage(k){this.translateService.use(k),this.setLang(k),this.currentLang=k,this.getLanguageAndFlag();let F=k;return"pt"===F&&(F="pt-br"),F}getCurrentLang(){return localStorage.getItem(m)||""}clearLang(){localStorage.removeItem(m)}setLang(k){localStorage.setItem(m,k)}getLanguageAndFlag(){const k=this.getDefaultLanguage()||this.currentLang?this.currentLang:"en";return"pt"===k&&(this.languageCurrent={lang:o.bn.pt,description:"Portugu\xeas",flag:"./assets/svg/pt_br.svg"}),"en"===k&&(this.languageCurrent={lang:o.bn.en,description:"English",flag:"./assets/svg/en.svg"}),"es"===k&&(this.languageCurrent={lang:o.bn.es,description:"Espa\xf1ol",flag:"./assets/svg/es.svg"}),this.languageCurrent}}return v.\u0275fac=function(k){return new(k||v)(a.\u0275\u0275inject(h.sK))},v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},66261:(Ge,$,f)=>{f.d($,{O:()=>h});var o=f(591),a=f(75778),g=f(24850);class h{constructor(L){this.stateSubject=new o.X(L)}getSnapshot(){return this.stateSubject.getValue()}get state(){return this.stateSubject.asObservable()}select(L){return this.stateSubject.pipe((0,g.U)(b=>b[L]),(0,a.x)())}setState(L){const v=this.getSnapshot(),b=Object.assign({},v,L);this.stateSubject.next(b)}}},56741:(Ge,$,f)=>{f.r($);var o=f(11481),a=f(45449),g=f(61380),h=f(47898);let m=(()=>{class q{constructor(E,V,Me){this.authService=E,this.notificatorService=V,this.router=Me}canActivate(E,V){return new Promise((Me,Be)=>{this.authService.isAuthenticated().then(ht=>{if(ht)return this.authService.needsToValidate();this.router.navigate(["/start"]),Me(!1)}).then(ht=>{if(!ht)return this.authService.getLogOff();this.router.navigate(["/identity-check"]),Me(!1)}).then(ht=>{ht&&this.router.navigate(["/identity-check"]),Me(!ht)}).catch(ht=>{Me(!0)})})}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(h.e8),a.\u0275\u0275inject(h.V6),a.\u0275\u0275inject(g.Router))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})(),L=(()=>{class q{constructor(E,V){this.authService=E,this.router=V}canActivate(E,V){return new Promise((Me,Be)=>{this.authService.isAuthenticated().then(ht=>{ht?(this.router.navigate(["/home"]),Me(!1)):Me(!0)}).catch(ht=>{Me(!0)})})}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(h.e8),a.\u0275\u0275inject(g.Router))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();var v=f(47423);let b=(()=>{class q{constructor(E){this.preventScreenShotService=E}canActivate(E,V){const Me=V.url.includes("home");return Me?"android"===v.dV.getPlatform()?this.preventScreenShotService.disable():v.dV.getPlatform():"android"===v.dV.getPlatform()&&!Me||v.dV.getPlatform(),!0}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(h.K7))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})(),k=(()=>{class q{constructor(E,V){this.titleService=E,this.translate=V}resolve(E){this.checkResolveData(E)}checkResolveData(E){let V;V=E.data&&E.data?.title?`Aplicativo Key Access - ${this.translate.translate(E.data?.title)}`:"Aplicativo Key Access - ",this.titleService.setTitle(`${V}`)}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(o.Dx),a.\u0275\u0275inject(h.wK))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();var F=f(15861),Y=f(82687),I=f(90944),D=f(90603),j=f(92216),W=f(99826);function de(q,N){if(1&q){const E=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-button",12),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(E);const Me=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Me.navigateToPendingLiberations())}),a.\u0275\u0275elementStart(1,"div",13)(2,"div",14)(3,"div",15),a.\u0275\u0275element(4,"div",16),a.\u0275\u0275elementEnd()()()()}}function K(q,N){1&q&&(a.\u0275\u0275elementStart(0,"ion-tab-bar",17)(1,"ion-tab-button",18),a.\u0275\u0275element(2,"ion-icon",19),a.\u0275\u0275elementStart(3,"ion-label"),a.\u0275\u0275text(4),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(6,"ion-tab-button",20),a.\u0275\u0275element(7,"ion-icon",21),a.\u0275\u0275elementStart(8,"ion-label"),a.\u0275\u0275text(9),a.\u0275\u0275pipe(10,"translate"),a.\u0275\u0275elementEnd()()()),2&q&&(a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(5,2,"PG_LG_ENTRY")," "),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(10,4,"PG_LG_EXIT")))}const De=[{path:"",redirectTo:"start",pathMatch:"full"},{path:"start",loadChildren:()=>f.e(1366).then(f.bind(f,31366)).then(q=>q.StartPageModule),canActivate:[L],data:{title:"ACCESSIBILITY.TITLES.START"},resolve:[k]},{path:"identity-validator",loadChildren:()=>f.e(144).then(f.bind(f,40144)).then(q=>q.IdentityValidatorPageModule),data:{title:"ACCESSIBILITY.TITLES.CPF"},resolve:[k]},{path:"identity-validator-full-name",loadChildren:()=>f.e(5235).then(f.bind(f,95235)).then(q=>q.IdentityValidatorFullNamePageModule),canActivate:[],data:{title:"ACCESSIBILITY.TITLES.FULLNAME"},resolve:[k]},{path:"identity-validator-birth-date",loadChildren:()=>f.e(3592).then(f.bind(f,73592)).then(q=>q.IdentityValidatorBirthDatePageModule),canActivate:[L]},{path:"identity-validator-email",loadChildren:()=>f.e(3169).then(f.bind(f,53169)).then(q=>q.IdentityValidatorEmailPageModule),canActivate:[L],data:{title:"ACCESSIBILITY.TITLES.EMAIL"},resolve:[k]},{path:"identity-validator-code",loadChildren:()=>f.e(3794).then(f.bind(f,13794)).then(q=>q.IdentityValidatorCodePageModule),data:{title:"ACCESSIBILITY.TITLES.CODE"},resolve:[k]},{path:"identity-validator-company-code",loadChildren:()=>f.e(1100).then(f.bind(f,31100)).then(q=>q.IdentityValidatorCompanyCodePageModule),data:{title:"ACCESSIBILITY.TITLES.COMPANY_CODE"},resolve:[k]},{path:"identity-insert-password",loadChildren:()=>f.e(1654).then(f.bind(f,11654)).then(q=>q.IdentityInsertPasswordPageModule),data:{title:"ACCESSIBILITY.TITLES.INSERT_PASSWORD"},resolve:[k],canActivate:[]},{path:"identity-insert-password-confirmation",loadChildren:()=>f.e(2170).then(f.bind(f,82170)).then(q=>q.IdentityInsertPasswordConfirmationPageModule),data:{title:"ACCESSIBILITY.TITLES.CONFIRMATION_PASSWORD"},resolve:[k],canActivate:[]},{path:"home",loadChildren:()=>f.e(3467).then(f.bind(f,3467)).then(q=>q.HomePageModule),data:{title:"ACCESSIBILITY.TITLES.HOME"},resolve:[k],canActivate:[m,b]},{path:"identity-check",loadChildren:()=>f.e(5926).then(f.bind(f,25926)).then(q=>q.IdentityCheckPageModule),data:{title:"ACCESSIBILITY.TITLES.PIN"},resolve:[k]},{path:"push-notifications",loadChildren:()=>f.e(1707).then(f.bind(f,41707)).then(q=>q.PushNotificationsPageModule),data:{title:"ACCESSIBILITY.TITLES.PENDING_RELEASE"},resolve:[k],canActivate:[m,b]},{path:"deep",loadChildren:()=>f.e(8706).then(f.bind(f,48706)).then(q=>q.DeepPageModule),canActivate:[m,b]},{path:"create-event-event-name-step",loadChildren:()=>f.e(2794).then(f.bind(f,52794)).then(q=>q.CreateEventEventNameStepPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_NAME"},resolve:[k],canActivate:[b]},{path:"create-event-event-start-date-time",loadChildren:()=>f.e(4752).then(f.bind(f,54752)).then(q=>q.CreateEventEventStartDateTimePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_DATE"},resolve:[k],canActivate:[b]},{path:"create-event-event-share-step",loadChildren:()=>f.e(3929).then(f.bind(f,63929)).then(q=>q.CreateEventEventShareStepPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_SHARE"},resolve:[k]},{path:"create-event-event-hosts",loadChildren:()=>f.e(5256).then(f.bind(f,5256)).then(q=>q.CreateEventEventHostsPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_HOSTS"},resolve:[k]},{path:"create-event-event-bookei",loadChildren:()=>f.e(8496).then(f.bind(f,48496)).then(q=>q.CreateEventEventBookeiPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_BOOKEI"},resolve:[k]},{path:"create-event-event-guests",loadChildren:()=>f.e(2023).then(f.bind(f,52023)).then(q=>q.CreateEventEventGuestsPageModule),data:{title:"Convidados"},resolve:[k]},{path:"create-event-event-options",loadChildren:()=>f.e(1363).then(f.bind(f,91363)).then(q=>q.CreateEventEventOptionsPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_OPTIONS"},resolve:[k]},{path:"create-event-event-resume",loadChildren:()=>f.e(928).then(f.bind(f,30928)).then(q=>q.CreateEventEventResumePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_RESUME"},resolve:[k]},{path:"events",loadChildren:()=>f.e(5221).then(f.bind(f,25221)).then(q=>q.EventsPageModule),canActivate:[m,b],data:{title:"ACCESSIBILITY.TITLES.EVENT_LIST"},resolve:[k]},{path:"view-event",loadChildren:()=>f.e(8663).then(f.bind(f,68663)).then(q=>q.ViewEventPageModule),canActivate:[m,b],data:{title:"ACCESSIBILITY.TITLES.EVENT_DETAIL"},resolve:[k]},{path:"view-logistic-event",loadChildren:()=>f.e(5904).then(f.bind(f,35904)).then(q=>q.ViewEventPageModule),canActivate:[m,b],data:{title:"ACCESSIBILITY.TITLES.EVENT_DETAIL_LG"},resolve:[k]},{path:"contacts",loadChildren:()=>f.e(7092).then(f.bind(f,57092)).then(q=>q.ContactsPageModule),canActivate:[m,b],data:{title:"ACCESSIBILITY.TITLES.CONTACTS"},resolve:[k]},{path:"insert-company-invite-code",loadChildren:()=>f.e(5189).then(f.bind(f,25189)).then(q=>q.InsertCompanyInviteCodePageModule),canActivate:[m,b],data:{title:"ACCESSIBILITY.TITLES.INVITE_COMPANY"},resolve:[k]},{path:"identity-validator-company-code",loadChildren:()=>f.e(1100).then(f.bind(f,31100)).then(q=>q.IdentityValidatorCompanyCodePageModule)},{path:"foreign-document",loadChildren:()=>f.e(2087).then(f.bind(f,12087)).then(q=>q.ForeignDocumentPageModule)},{path:"account",loadChildren:()=>f.e(492).then(f.bind(f,60492)).then(q=>q.AccountPageModule),canActivate:[m,b],data:{title:"ACCESSIBILITY.TITLES.ACCOUNT"},resolve:[k]},{path:"logistic-events",component:(()=>{class q{constructor(E,V,Me,Be,ht,Mt){var jt=this;this.navigationService=E,this.enterExitIonTabsManagerService=V,this.ngZoneService=Me,this.pendingRelease=Be,this.apiService=ht,this.locationNav=Mt,this.faQrCodeIcon=Y.rtB,this.showIonTabs=!0,this.existPendings=!1,this.navigateToQRCode=()=>{this.navigationService.forward(["/home"])},this.navigateToPendingLiberations=()=>{this.navigationService.forward(["/push-notifications"])},this.enterExitIonTabsManagerService.observable.subscribe(function(){var nn=(0,F.Z)(function*(Bn){yield jt.ngZoneService.run(()=>{jt.showIonTabs=Bn})});return function(Bn){return nn.apply(this,arguments)}}())}ngOnInit(){}ionViewDidEnter(){}back(){this.locationNav.back()}ionViewDidLeave(){}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275directiveInject(h.f5),a.\u0275\u0275directiveInject(h.oG),a.\u0275\u0275directiveInject(h.zf),a.\u0275\u0275directiveInject(h.xJ),a.\u0275\u0275directiveInject(h.sM),a.\u0275\u0275directiveInject(I.Location))},q.\u0275cmp=a.\u0275\u0275defineComponent({type:q,selectors:[["app-logistic-events"]],decls:18,vars:6,consts:[["mode","md",1,"ion-no-border"],["mode","md"],["slot","start"],[1,"back-button",3,"click"],["slot","icon-only","name","arrow-back"],["slot","end"],["color","danger","class","pulsate-fwd",3,"click",4,"ngIf"],[3,"click"],[3,"icon"],["auto-hide","false"],["slot","icon-only","mode","ios","name","menu"],["slot","top","class","tabs-log-entrace-exit",4,"ngIf"],["color","danger",1,"pulsate-fwd",3,"click"],[1,"circle"],[1,"circle_two"],[1,"sub"],[1,"center"],["slot","top",1,"tabs-log-entrace-exit"],["tab","entrance","mode","md"],["name","arrow-up"],["tab","exit","mode","md"],["name","arrow-down"]],template:function(E,V){1&E&&(a.\u0275\u0275elementStart(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-buttons",2)(3,"button",3),a.\u0275\u0275listener("click",function(){return V.back()}),a.\u0275\u0275element(4,"ion-icon",4),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(5,"ion-title",2),a.\u0275\u0275text(6),a.\u0275\u0275pipe(7,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(8,"ion-buttons",5),a.\u0275\u0275template(9,de,5,0,"ion-button",6),a.\u0275\u0275elementStart(10,"ion-button",7),a.\u0275\u0275listener("click",function(){return V.navigateToQRCode()}),a.\u0275\u0275element(11,"fa-icon",8),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(12,"ion-menu-toggle",9)(13,"ion-button"),a.\u0275\u0275element(14,"ion-icon",10),a.\u0275\u0275elementEnd()()()()(),a.\u0275\u0275elementStart(15,"ion-content")(16,"ion-tabs"),a.\u0275\u0275template(17,K,11,6,"ion-tab-bar",11),a.\u0275\u0275elementEnd()()),2&E&&(a.\u0275\u0275advance(6),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(7,4,"PG_LG_HEADER_TITLE")," "),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",V.pendingRelease.existsPending),a.\u0275\u0275advance(2),a.\u0275\u0275property("icon",V.faQrCodeIcon),a.\u0275\u0275advance(6),a.\u0275\u0275property("ngIf",V.showIonTabs))},dependencies:[I.NgIf,D.IonButton,D.IonButtons,D.IonContent,D.IonHeader,D.IonIcon,D.IonLabel,D.IonMenuToggle,D.IonTabBar,D.IonTabButton,D.IonTitle,D.IonToolbar,D.IonTabs,j.BN,W.X$],styles:["ion-content[_ngcontent-%COMP%]{--background: #f1f1f1}ion-content[_ngcontent-%COMP%] ion-tabs[_ngcontent-%COMP%] ion-tab-bar.ios.tabs-log-entrace-exit.ios[_ngcontent-%COMP%]{top:14px!important}ion-content.ios[_ngcontent-%COMP%]{--offset-top: 0px !important}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{font-family:Nunito,sans-serif}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{letter-spacing:1px;font-size:1.1rem;margin-left:-20px}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:24px;padding:0;width:24px;margin:0;font-size:19px;color:#656768}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-button.hover[_ngcontent-%COMP%]{background:#fff}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-buttons[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{margin:0 5px;width:40px;height:40px;border-radius:50%;background:transparent}ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-buttons[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:2.2em;color:rgba(60,60,60,.93)}ion-tab-bar[_ngcontent-%COMP%]{border-top:1px #cccccc solid;box-shadow:2px 2px 8px rgba(67,60,98,.1);padding-top:0}ion-tab-bar[_ngcontent-%COMP%] ion-tab-button[_ngcontent-%COMP%]{width:50%;min-width:50%;max-width:50%}.circle[_ngcontent-%COMP%]{position:relative}.circle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;width:15px;height:15px;background:#6cb52d;display:flex;justify-content:center;align-items:center;border-radius:20px;left:-7px;z-index:1;color:#fff;font-weight:600;padding:2px;font-size:6px!important}.circle[_ngcontent-%COMP%] .circle_two[_ngcontent-%COMP%]{height:20px;width:20px;background:var(--ion-color-danger);overflow:visible;display:flex;align-items:center;justify-content:center;border-radius:50%}.circle[_ngcontent-%COMP%] .circle_two[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{position:relative;height:12px;width:12px;background:var(--ion-color-danger);border-radius:50%;border:solid 1px #fff;display:flex;align-items:center;justify-content:center;align-content:center}.circle[_ngcontent-%COMP%] .circle_two[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{background:#fff;width:4px;height:4px;position:relative;border-radius:50%}.pulsate-fwd[_ngcontent-%COMP%]{animation:pulsate-fwd .5s ease-in-out infinite both;outline:none}@keyframes pulsate-fwd{0%{transform:scale(1)}50%{transform:scale(1.5)}to{transform:scale(1)}}"]}),q})(),canActivate:[b],children:[{path:"",pathMatch:"full",redirectTo:"entrance"},{path:"entrance",loadChildren:()=>f.e(5963).then(f.bind(f,15963)).then(q=>q.EntrancePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_ENTRY"},resolve:[k]},{path:"exit",loadChildren:()=>f.e(2416).then(f.bind(f,12416)).then(q=>q.ExitPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_EXIT"},resolve:[k]}]},{path:"logistic-events/create",children:[{path:"event-name",loadChildren:()=>f.e(7426).then(f.bind(f,37426)).then(q=>q.EventNamePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_NAME_LG"},resolve:[k]},{path:"event-date-time",loadChildren:()=>f.e(8074).then(f.bind(f,68074)).then(q=>q.EventDateTimePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_NAME_LG"},resolve:[k]},{path:"event-driver",loadChildren:()=>f.e(2714).then(f.bind(f,72714)).then(q=>q.EventDriverPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_DRIVER"},resolve:[k]},{path:"event-transport-type",loadChildren:()=>f.e(3400).then(f.bind(f,43400)).then(q=>q.EventTransportTypePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_TRANSPORT"},resolve:[k]},{path:"event-first-license-plate",loadChildren:()=>f.e(580).then(f.bind(f,70580)).then(q=>q.EventFirstLicensePlatePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_FIRST_LICENSE"},resolve:[k]},{path:"event-second-license-plate",loadChildren:()=>f.e(3201).then(f.bind(f,23201)).then(q=>q.EventSecondLicensePlatePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_SECOND_LICENSE"},resolve:[k]},{path:"event-assistants",loadChildren:()=>f.e(5356).then(f.bind(f,15356)).then(q=>q.EventAssistantsPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_ASSISTANT"},resolve:[k]},{path:"event-options",loadChildren:()=>f.e(3445).then(f.bind(f,43445)).then(q=>q.EventOptionsPageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_OPTIONS_LG"},resolve:[k]},{path:"event-resume",loadChildren:()=>f.e(1545).then(f.bind(f,1545)).then(q=>q.EventResumePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_RESUME_LG"},resolve:[k]},{path:"event-share",loadChildren:()=>f.e(9774).then(f.bind(f,29774)).then(q=>q.EventSharePageModule),data:{title:"ACCESSIBILITY.TITLES.EVENT_SHARE_LG"},resolve:[k]}]},{path:"privacy-policy",loadChildren:()=>f.e(5606).then(f.bind(f,35606)).then(q=>q.PrivacyPolicyPageModule),data:{title:"ACCESSIBILITY.TITLES.PRIVACY_POLIC"},resolve:[k]},{path:"delete-account",loadChildren:()=>f.e(6199).then(f.bind(f,16199)).then(q=>q.DeleteAccountPageModule),data:{title:"ACCESSIBILITY.TITLES.DELETE_ACCOUNT"},resolve:[k]},{path:"configuration",children:[{path:"",loadChildren:()=>f.e(9634).then(f.bind(f,99634)).then(q=>q.ConfigurationPageModule),data:{title:"ACCESSIBILITY.TITLES.CONFIGURATION"},resolve:[k]},{path:"notification",loadChildren:()=>f.e(8859).then(f.bind(f,98859)).then(q=>q.NotificationPageModule),data:{title:"ACCESSIBILITY.TITLES.NOTIFICATION"},resolve:[k]}]},{path:"has-company",loadChildren:()=>f.e(4301).then(f.bind(f,84301)).then(q=>q.HasCompanyRoutingModule)},{path:"modules",loadChildren:()=>f.e(9346).then(f.bind(f,59346)).then(q=>q.modulesRoutes),canActivate:[m]},{path:"remove-company-association",loadChildren:()=>f.e(8847).then(f.bind(f,58847)).then(q=>q.RemoveCompanyAssociationPageModule)},{path:"**",redirectTo:"home"}];let Te=(()=>{class q{}return q.\u0275fac=function(E){return new(E||q)},q.\u0275mod=a.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=a.\u0275\u0275defineInjector({imports:[g.RouterModule.forRoot(De,{preloadingStrategy:g.PreloadAllModules,onSameUrlNavigation:"reload",relativeLinkResolution:"legacy"}),g.RouterModule]}),q})();var ce=f(52671);const oe=(0,v.fo)("ScreenOrientation",{web:()=>f.e(8501).then(f.bind(f,48501)).then(q=>new q.ScreenOrientationWeb)}),te=(0,v.fo)("SplashScreen",{web:()=>f.e(2680).then(f.bind(f,92680)).then(q=>new q.SplashScreenWeb)});var ge=(()=>{return(q=ge||(ge={})).Dark="DARK",q.Light="LIGHT",q.Default="DEFAULT",ge;var q})(),xe=(()=>{return(q=xe||(xe={})).None="NONE",q.Slide="SLIDE",q.Fade="FADE",xe;var q})();const Ce=(0,v.fo)("StatusBar");var ie=f(53509),se=f(92340),me=f(64633),Ne=f(72986),_e=f(40537),we=f(8782),Ee=f(50547),le=f(21284),Ue=f(80698),ke=f(22255),ze=f(35453),ye=f(81838),je=f(86245);function Ze(q,N){if(1&q){const E=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-item",5),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(E);const Me=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Me.onOpenViewEvents())}),a.\u0275\u0275element(1,"ion-icon",21),a.\u0275\u0275elementStart(2,"ion-label"),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275elementEnd()()}2&q&&(a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(4,2,"MENU_EVENTS")," "))}function _t(q,N){if(1&q){const E=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-item",5),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(E);const Me=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Me.onOpenViewLogisticEvents())}),a.\u0275\u0275element(1,"ion-icon",21),a.\u0275\u0275elementStart(2,"ion-label"),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(5,"ion-ripple-effect"),a.\u0275\u0275elementEnd()}2&q&&(a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(4,2,"MENU_LOGISTIC_EVENTS")," "))}function At(q,N){if(1&q){const E=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"ion-item",5),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(E);const Me=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Me.gotToCheckinDigital())}),a.\u0275\u0275element(2,"ion-icon",22),a.\u0275\u0275elementStart(3,"ion-label"),a.\u0275\u0275text(4),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementContainerEnd()}2&q&&(a.\u0275\u0275advance(1),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(5,2,"MENU_CHECKIN_DIGITAL")," "))}function Vt(q,N){if(1&q){const E=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-item",5),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(E);const Me=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Me.onOpenViewContacts())}),a.\u0275\u0275element(1,"ion-icon",23),a.\u0275\u0275elementStart(2,"ion-label"),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275elementEnd()()}2&q&&(a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(4,2,"MENU_CONTACTS")," "))}function fn(q,N){if(1&q){const E=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"ion-item",5),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(E);const Me=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Me.navigateToPushNotifications())}),a.\u0275\u0275element(1,"ion-icon",24),a.\u0275\u0275elementStart(2,"ion-label"),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275elementEnd()()}2&q&&(a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(4,2,"MENU_PENDENG_RELEASES")," "))}function mn(q,N){if(1&q&&a.\u0275\u0275element(0,"app-offline",27),2&q){const E=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("smallMessage",!0)("showOffline","Offline"==(null==E.connectionStatus?null:E.connectionStatus.status))}}const xn=function(q,N){return{show:q,hide:N}};function gn(q,N){if(1&q&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",25),a.\u0275\u0275template(2,mn,1,2,"app-offline",26),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()),2&q){const E=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction2(2,xn,"Offline"==(null==E.connectionStatus?null:E.connectionStatus.status),"Online"==(null==E.connectionStatus?null:E.connectionStatus.status))),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","Offline"==(null==E.connectionStatus?null:E.connectionStatus.status))}}function Et(q,N){if(1&q&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,gn,3,5,"ng-container",11),a.\u0275\u0275elementContainerEnd()),2&q){const E=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!(null==E.connectionStatus||!E.connectionStatus.status))}}const cn=function(q){return{"ios-fix":q}};let ft=(()=>{class q{constructor(E,V,Me,Be,ht,Mt,jt,nn,Bn,Xn,Yr,vr,mr,zr,No,$o,Ci,ea,ji,Ts,ws,Ki,wi,ps,Ua,ka,Da,_s,gs,sc,lr,Jt,pr,so){var Cn=this;this.platform=E,this.navigationService=V,this.storageService=Me,this.authService=Be,this.apiService=ht,this.loadingService=Mt,this.deviceInfo=jt,this.menuController=nn,this.profileManagerService=Bn,this.modalController=Xn,this.notificatorService=Yr,this.appVersionService=vr,this.loaderService=mr,this.linkExternalService=zr,this.bookeiService=No,this.networkService=$o,this.authLoginTokenService=Ci,this.preventScreenShotService=ea,this.resumeCreateEventInterruptedService=ji,this.translateConfigService=Ts,this.deeplinkService=ws,this.router=Ki,this.stateService=wi,this.firebaseCrashlyticsService=ps,this.firebaseAnalyticsService=Ua,this.firebasePerformanceService=ka,this.sessionAddFlowService=Da,this.logService=_s,this.ngZone=gs,this.managerNotificationPersistentService=sc,this.navigationsharedService=lr,this.qrCodeService=Jt,this.environmentSwitcher=pr,this.debugConsole=so,this.voProfiles=[],this.lgProfiles=[],this.profiles=[],this.walletsQrcode=[],this.isAvailableSite=!1,this.intervalOfTimeToRenewRequestProfile=we.n.intervalOfTimeToRenewRequestProfile,this.routerCurrentPage="",this.isSecretButtonVisible=!1,this.maxTaps=10,this.isBookeiAvaliable=!1,this.subscriptions=[],this.tapCount=0,this.onMenuWillOpen=(0,F.Z)(function*(){Cn.sessionAddFlowService.clearSessionId(),Cn.authLoginToken=yield Cn.authLoginTokenService.getToken(),Cn.loadQrCodes(),Cn.needsToRenewRequestProfile().then(hn=>{if(!hn){const Gn=Cn.profileManagerService.getProfileList(),po=Cn.profileManagerService.getProfileLogisticList();return Cn.voProfiles=Gn&&Gn?.length>0?Gn.filter(Wr=>"VO"===Wr?.portal):[],void(Cn.lgProfiles=po&&po?.length>0?po.filter(Wr=>"LG"===Wr?.portal):[])}Cn.apiService.getUserProfiles(we.n.portalParams.portais,Cn.authLoginToken).subscribe(Cn.processGetVOAndLGUserProfilesSuccessResponse,Cn.processGetVOAndLGUserProfilesErrorResponse)})}),this.processGetVOAndLGUserProfilesSuccessResponse=hn=>{this.voProfiles=hn&&hn?.length>0?hn.filter(Gn=>"VO"===Gn?.portal):[],this.lgProfiles=hn&&hn?.length>0?hn.filter(Gn=>"LG"===Gn?.portal):[],this.updateRequestProfileAtTimestamp(),this.profileManagerService.setProfileList(this.voProfiles),this.profileManagerService.setProfileLogisticList(this.lgProfiles)},this.processGetVOAndLGUserProfilesErrorResponse=()=>{const hn=this.profileManagerService.getProfileList(),Gn=this.profileManagerService.getProfileLogisticList();this.voProfiles=hn&&hn?.length>0?hn.filter(po=>"VO"===po.portal):[],this.lgProfiles=Gn&&Gn?.length>0?Gn.filter(po=>"LG"===po?.portal):[]},this.activateDeepLinks=()=>{this.deeplinkService.initializeListenerDeeplink()},this.startStorage=()=>{this.storageService.startStorage().then(this.onStartStorageSuccessResponse).catch(this.onStartStorageErrorResponse)},this.onStartStorageSuccessResponse=()=>{},this.onStartStorageErrorResponse=hn=>{this.logService.logError("onStartStorageErrorResponse","",{response:hn})},this.setStatusBarState=(0,F.Z)(function*(){const hn="#6CB52D";"web"!==v.dV.getPlatform()&&(yield Ce.show({animation:xe.Fade}),"ios"===v.dV.getPlatform()&&Ce.setStyle({style:ge.Light}),"android"===v.dV.getPlatform()&&(ie.M.enable(),yield Ce.setBackgroundColor({color:hn}),yield ie.M.setBackgroundColor({color:hn})))}),this.blockScreenOrientation=(0,F.Z)(function*(){try{yield oe.lock({type:ce.F.PORTRAIT}),Cn.onBlockScreenOrientationSuccessResponse(!0)}catch(hn){Cn.onBlockScreenOrientationErrorResponse(hn)}}),this.onBlockScreenOrientationSuccessResponse=hn=>{console.log(hn)},this.onBlockScreenOrientationErrorResponse=hn=>{this.logService.logError("onBlockScreenOrientationErrorResponse","",hn)},this.onOpenViewEvents=(0,F.Z)(function*(){Cn.menuController.close(),Cn.navigationService.forward(["/events"])}),this.onOpenViewPrivacyPolicy=(0,F.Z)(function*(){Cn.menuController.close(),Cn.navigationService.forward(["/privacy-policy"])}),this.getNonLimitedProfiles=()=>{const hn=[];return this.voProfiles.forEach(Gn=>{Gn.authorities&&Gn.authorities.includes("ROLE_COMPANY_LIMITED")?1!==Gn.authorities.length&&hn.push(Gn):hn.push(Gn)}),hn},this.thereAreVOProfiles=()=>!!this.getVOProfiles().length,this.thereAreExpeditionProfiles=()=>!!this.getExpeditionProfiles().length,this.getVOProfiles=()=>{const hn=[];return this.voProfiles.forEach(Gn=>{Gn.authorities&&(Gn.authorities.includes("ROLE_COMPANY_LIMITED")||Gn.authorities.includes("ROLE_COMPANY_LIMITED2")||Gn.authorities.includes("ROLE_COMPANY_COLLABORATOR")||Gn.authorities.includes("ROLE_COMPANY_RECEPTIONIST"))&&hn.push(Gn)}),hn},this.getExpeditionProfiles=()=>{const hn=[];return this.lgProfiles.forEach(Gn=>{Gn.authorities&&Gn.authorities.includes("ROLE_LOGI_EXP")&&hn.push(Gn)}),hn},this.thereAreNonLimitedProfiles=()=>!!this.getNonLimitedProfiles().length,this.onOpenViewLogisticEvents=(0,F.Z)(function*(){const hn=yield Cn.resumeCreateEvent();if(Cn.menuController.close(),hn)return;Cn.profileManagerService.clearProfile();const Gn=Cn.profileManagerService.getProfileLogistic();Cn.profileManagerService.setProfile(Gn);const po=Cn.getExpeditionProfiles();Cn.profileManagerService.setProfileLogisticList(po);const Wr=Cn.resumeCreateEventInterruptedService.getResumeCreationInterrupted();if(!Wr.logistic.eventType&&!Wr.vo)if(po&&po.length>1){const cc=yield Cn.modalController.create({component:Ee.w,componentProps:{profiles:Cn.getExpeditionProfiles()},backdropDismiss:!1});cc.onDidDismiss().then(c1=>{c1.data?Cn.selectProfileModalOnProfileSelectToListLogisticEventsCallback(c1.data):Cn.selectProfileModalOnProfileBackCallbackToListLogisticEvents()}),yield cc.present()}else if(po[0])Cn.selectProfileModalOnProfileSelectToListLogisticEventsCallback(po[0]);else{Cn.loadingService.hide(0,"on-create-event");const cc={title:Cn.translateConfigService.translate("TOAST_NO_ACCESS_PROFILE_TITLE"),message:Cn.translateConfigService.translate("TOAST_NO_ACCESS_PROFILE_MESSAGE"),type:"error",timeout:5e3};Cn.notificatorService.notify(cc)}}),this.selectProfileModalOnProfileSelectToListLogisticEventsCallback=hn=>{this.setProfileCurrentCorrect(hn),this.navigationService.forward(["/logistic-events"])},this.selectProfileModalOnProfileBackCallbackToListLogisticEvents=()=>{},this.onOpenInsertCompanyCode=(0,F.Z)(function*(){Cn.menuController.close(),Cn.navigationService.forward(["/insert-company-invite-code"])}),this.onOpenViewContacts=(0,F.Z)(function*(){if(Cn.menuController.close(),Cn.voProfiles&&Cn.voProfiles.length>1){const hn=yield Cn.modalController.create({component:Ee.w,componentProps:{profiles:Cn.voProfiles},backdropDismiss:!1});hn.onDidDismiss().then(Gn=>{Gn.data?Cn.selectProfileModalToViewContactsOnProfileSelectCallback(Gn.data):Cn.selectProfileModalToViewContactsOnProfileBackCallback()}),yield hn.present()}else Cn.voProfiles[0]&&Cn.selectProfileModalToViewContactsOnProfileSelectCallback(Cn.voProfiles[0])}),this.selectProfileModalToViewContactsOnProfileSelectCallback=hn=>{if(hn?.login)this.setProfileCurrentCorrect(hn),this.navigationService.forward(["/contacts"]);else{const Gn=this.translateConfigService.translate("TOAST_NO_PERMISSION_MESSAGE_LIST_CONTACTS");this.notificatorService.notify({title:"",message:Gn,type:"error",timeout:1e4})}},this.selectProfileModalToViewContactsOnProfileBackCallback=()=>{},this.processGetUserProfileLoginErrorResponse=hn=>{console.log("processGetUserProfileLoginErrorResponse"),console.log("response:",hn)},this.navigateToPushNotifications=()=>{this.menuController.close(),this.navigationService.forward(["/push-notifications"]),this.managerNotificationPersistentService.stopContinuousVibration()},this.navigateToQRCode=()=>{this.menuController.close(),this.navigationService.forward(["/home"])},this.account=()=>{this.menuController.close(),this.navigationService.forward(["/account"])},this.logOff=()=>{this.menuController.close().then(()=>{this.authService.setLogOff(!0),this.navigationService.back(["/identity-check"],{queryParams:{menuLogoff:!0},replaceUrl:!0})}).catch(hn=>{this.authService.setLogOff(!0),this.navigationService.back(["/identity-check"],{queryParams:{menuLogoff:!0},replaceUrl:!0}),this.logService.logError("logOff","Erro ao deslogar",hn)}).finally(()=>{this.profileManagerService.clearAllProfiles()})},this.openModalForContact=(0,F.Z)(function*(){const hn=yield Cn.modalController.create({component:me._3,componentProps:{props:{isBookei:Cn.isBookeiAvaliable}}});hn.onDidDismiss().then(Cn.onModalDismissCallback),yield hn.present()}),this.onOpenViewModalBookeiOnSelectSite=(0,F.Z)(function*(){if(Cn.menuController.close(),Cn.voProfiles&&Cn.voProfiles.length>1){const hn=yield Cn.modalController.create({component:Ee.w,componentProps:{profiles:Cn.voProfiles}});hn.onDidDismiss().then(function(){var Gn=(0,F.Z)(function*(po){if(po.data){Cn.setProfileCurrentCorrect(po.data);const Wr=yield Cn.tokenProfile(po.data);Cn.autLoginPortalToken=Wr||"",Cn.selectProfileModalToViewBookeiProfileSelectCallback(po.data)}else Cn.selectProfileModalToViewBookeiOnProfileBackCallback()});return function(po){return Gn.apply(this,arguments)}}()),yield hn.present()}else if(Cn.voProfiles[0]){const hn=yield Cn.tokenProfile(Cn.voProfiles[0]);Cn.autLoginPortalToken=hn||"",Cn.selectProfileModalToViewBookeiProfileSelectCallback(Cn.voProfiles[0])}else Cn.loadingService.hide(0,"on-create-event")}),this.selectProfileModalToViewBookeiProfileSelectCallback=function(){var hn=(0,F.Z)(function*(Gn){Cn.loaderService.show(Cn.translateConfigService.translate("LOADING_DATA_COMPANY")),Cn.profileManagerService.setProfile(Gn),Cn.setBasePlatormUrl(Gn),Cn.autLoginPortalToken?Gn?Cn.getSettings(Gn.company.instanceName,Cn.autLoginPortalToken).then(Cn.handeSuccessGetSettings).catch(Cn.handeErrorGetSettings).finally((0,F.Z)(function*(){Cn.loaderService.hide(),Cn.isBookeiAvaliable?Cn.bookeiInBrowser():yield Cn.openModalForContact()})):(Cn.loaderService.hide(),Cn.notificatorService.notify({title:"Erro servi\xe7o",message:"",type:"error",timeout:5e3})):Cn.loaderService.hide()});return function(Gn){return hn.apply(this,arguments)}}(),this.selectProfileModalToViewBookeiOnProfileBackCallback=()=>{},this.handeErrorGetTokenProfile=hn=>{this.loaderService.hide(),this.logService.logError("handeErrorGetTokenProfile","Erro http get token app.component",{response:hn})},this.handeSuccessGetSettings=hn=>(this.settings=hn[0],hn&&!hn[0].bookeiInstance?(this.isBookeiAvaliable=!1,this.isBookeiAvaliable):hn&&hn[0].bookeiInstance?(this.isBookeiAvaliable=!0,this.isBookeiAvaliable):(this.isBookeiAvaliable=!1,this.isBookeiAvaliable)),this.handeErrorGetSettings=hn=>{this.loaderService.hide();const Gn={title:"",message:this.translateConfigService.translate("TOAST_ERROR_LOADING_PROFILE_SETTINGS_MESSAGE"),type:"error",timeout:5e3};this.notificatorService.notify(Gn),this.logService.logError("handeErrorGetSettings","",{response:hn})},this.needsToRenewRequestProfile=()=>{const hn=Date.now();return new Promise((Gn,po)=>{this.storageService.ready().then(Wr=>{if(!0===Wr)return this.storageService.get("requestProfileListMenu")}).then(Wr=>{Gn(!Wr||hn-Wr>this.intervalOfTimeToRenewRequestProfile)}).catch(Wr=>{this.logService.logError("storage::needsToRenewRequestProfile","error renew request profile",{response:Wr}),po(!1)})})},this.updateRequestProfileAtTimestamp=()=>this.storageService.set("requestProfileListMenu",Date.now()),this.getAllProfiles=hn=>{this.apiService.getUserProfiles(we.n.portalParams.portais,this.authLoginToken).pipe((0,Ne.q)(1),(0,_e.x)(()=>{hn&&hn?.target.complete()})).subscribe(this.processGetVOAndLGUserProfilesSuccessResponse,this.processGetVOAndLGUserProfilesErrorResponse)},this.loadQrCodes=(0,F.Z)(function*(){const hn=yield Cn.qrCodeService.getQRCodes();Cn.walletsQrcode=hn}),window.angularNavigate=hn=>{this.navigationsharedService.navigateTo(hn)},this.translateConfigService.getDefaultLanguage(),this.language=this.translateConfigService.getCurrentLang(),this.initializeApp(),this.router.events.subscribe(hn=>{hn instanceof g.NavigationEnd&&(this.routerCurrentPage=hn.url)})}setupDebugGesture(){"prod"!==this.environmentSwitcher.getCurrentEnvironment().type&&document.addEventListener("click",()=>{this.tapCount++,1===this.tapCount&&(this.tapTimeout=setTimeout(()=>{this.tapCount=0},1e3)),5===this.tapCount&&(clearTimeout(this.tapTimeout),this.tapCount=0,this.toggleDebugConsole())})}toggleDebugConsole(){const E=this.environmentSwitcher.getCurrentEnvironment();if(E.production&&"prod"===E.type)return void console.log("[DebugConsole] Toggle bloqueado em produ\xe7\xe3o");const Me="false"===localStorage.getItem("ka_debug_console_enabled")?"true":"false";localStorage.setItem("ka_debug_console_enabled",Me),this.notificatorService.notify({title:"Debug Console",message:"true"===Me?"\u{1f41b} DevTools ATIVADO":"\u{1f512} DevTools DESATIVADO",type:"true"===Me?"success":"info",timeout:2e3}),setTimeout(()=>{window.location.reload()},500)}initializeApp(){var E=this;return(0,F.Z)(function*(){yield E.platform.ready(),E.deviceInfo.updateDeviceHeightFromWindow();const Me=E.deviceInfo.getDeviceHeight();(!Me||Me<=0)&&E.deviceInfo.setDeviceHeight(E.platform.height()),E.initializePlugins(),E.loaderService.initializeLoader(),E.initializePlugins(),yield E.environmentSwitcher.initialize(),console.log("[App] Ambiente ativo:",E.environmentSwitcher.getCurrentEnvironment().type),E.setupDebugGesture();const Be=E.environmentSwitcher.getCurrentEnvironment();"prod"!==Be.type?(E.debugConsole.initialize(),console.log("[App] Debug Console inicializado para ambiente:",Be.type)):(console.log("[App] Debug Console BLOQUEADO em produ\xe7\xe3o"),localStorage.setItem("ka_debug_console_enabled","false")),yield E.deviceInfo.getDeviceInfo(),yield te.hide(),E.deviceInfo.setDeviceHeight(E.platform.height()),E.loaderService.initializeLoader()})()}initializePlugins(){this.initializeStorage(),this.blockScreenOrientation(),this.getVersionApp(),this.setStatusBarState(),"android"===v.dV.getPlatform()&&this.preventScreenShotService.enable(),this.initializeNetworkEvents(),"web"!==v.dV.getPlatform()&&this.firebaseInitialize()}ngOnDestroy(){this.subscriptions.forEach(E=>E.unsubscribe),this.interval&&clearInterval(this.interval)}openWalletQrCodeWCRemoteEntry(){var E=this;return(0,F.Z)(function*(){E.menuController.close();const V=yield E.qrCodeService.getQRCodes();if(E.walletsQrcode=V,V&&V.length>1){const Me=yield E.modalController.create({component:me.zl,componentProps:{walletsQrcode:V},backdropDismiss:!1});Me.onDidDismiss().then(Be=>{Be.data&&E.selectProfileModalToViewWalletQrCodeWCRemoteEntry(Be.data)}),yield Me.present()}else E.walletsQrcode[0]&&E.selectProfileModalToViewWalletQrCodeWCRemoteEntry(E.walletsQrcode[0])})()}selectProfileModalToViewWalletQrCodeWCRemoteEntry(E){const V=E.locator;V&&this.navigationService.forward([`/modules/wc/start/${V}`],{state:{qrCode:E}})}onOpenTos(){var E=this;return(0,F.Z)(function*(){E.menuController.close(),yield(yield E.modalController.create({component:me.le,cssClass:"legal-modal-start"})).present()})()}goToBookei(){var E=this;return(0,F.Z)(function*(){E.getAllProfiles(),E.onOpenViewModalBookeiOnSelectSite()})()}gotToCheckinDigital(){this.menuController.close(),this.getAllProfiles(),this.openWalletQrCodeWCRemoteEntry()}getURLBookei(E){let V="";return V=`${se.N.bookei_url}/sso/${E}/app?bookeiInstance=${this.settings.bookeiInstance}`,V}navigateToConfiguration(){this.menuController.close(),this.navigationService.forward(["/configuration/notification"])}doRefresh(E){var V=this;return(0,F.Z)(function*(){console.log("Begin async operation");try{V.authLoginToken=yield V.authLoginTokenService.getToken(),V.getAllProfiles(E)}catch(Me){console.log(Me),E.target.complete()}})()}onModalDismissCallback(E){}bookeiInBrowser(){var E=this;return(0,F.Z)(function*(){E.menuController.close();const V=E.autLoginPortalToken?E.autLoginPortalToken:"token";E.platform.is("capacitor")?E.linkExternalService.openUrl({url:E.getURLBookei(V)}):window.open(E.getURLBookei(V))})()}tokenProfile(E){var V=this;return(0,F.Z)(function*(){try{const Me=yield V.bookeiService.getTokenPortalProfile(E,V.authLoginToken),{access_token:Be}=Me;return V.autLoginPortalToken=Be}catch(Me){V.handeErrorGetTokenProfile(Me)}})()}getSettings(E,V){return new Promise((Me,Be)=>{this.bookeiService.getSettings(E,V).subscribe(Me,Be)})}initializeStorage(){this.startStorage(),this.storageService.ready().then(()=>{this.activateDeepLinks()}).catch(E=>{this.logService.logError("plugin_storage","error initializing storage",{error:E})})}getVersionApp(){var E=this;return(0,F.Z)(function*(){const V=yield E.appVersionService.getVersionNumber();E.versionAPP=V+se.N.appInfo.versionSuffix,E.buildNumber=yield E.appVersionService.getBuildVersion()})()}setBasePlatormUrl(E){this.profileManagerService.setBasePlatormUrl(E&&E.company&&E.company.site&&E.company.site.basePlatformUrl?E.company.site.basePlatformUrl:"/")}initializeNetworkEvents(){this.networkService.initializeNetworkEvents();const E=[],V=this.stateService.getState().subscribe(Me=>{this.ngZone.run(()=>{console.log("\u{1f42d} [AppComponent] state network \u{1f42d} ngzone",Me),this.connectionStatus=Me})});return E.push(V),()=>{E.forEach(Me=>Me.unsubscribe()),clearInterval(this.interval)}}resumeCreateEvent(E){var V=this;return(0,F.Z)(function*(){let Me=!1;const{logistic:Be,vo:ht,action:Mt,event:jt}=V.resumeCreateEventInterruptedService.getResumeCreationInterrupted();let nn=null;return nn=Be.eventType&&(["ENTRY","EXIT","CLONE_EXIT","CLONE_ENTRY"].includes(Be.eventType)||"LOGISTIC"===E)?"LOGISTIC":"VO",V.resumeCreateEventInterruptedService.showModalResumeCreateEventInterrupted({target:nn,eventType:E||"",canCreateEvent:!0,action:Mt,event:{id:jt?.id?jt.id:"",instanceName:jt?.instanceName?jt.instanceName:""}}),(""!==Be.eventType||Be.eventType.length>1||ht)&&(Me=!0),Me})()}setProfileCurrentCorrect(E){E?.authorities.includes("ROLE_LOGI_EXP")?(this.profileManagerService.setProfileLogistic(E),this.profileManagerService.setProfile(E),this.resumeCreateEventInterruptedService.setProfileLogisticCreationInterrupte(E)):(this.profileManagerService.setProfile(E),this.resumeCreateEventInterruptedService.setProfileVoCreationInterrupte(E))}firebaseInitialize(){var E=this;return(0,F.Z)(function*(){yield E.firebaseCrashlyticsService.disable(),yield E.firebaseAnalyticsService.enable(),yield E.firebasePerformanceService.enable()})()}getIsAvailableSiteStorage(){var E=this;return(0,F.Z)(function*(){return yield E.storageService.get("isAvailableSite")})()}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275directiveInject(D.Platform),a.\u0275\u0275directiveInject(h.f5),a.\u0275\u0275directiveInject(h.V1),a.\u0275\u0275directiveInject(h.e8),a.\u0275\u0275directiveInject(h.sM),a.\u0275\u0275directiveInject(h.bz),a.\u0275\u0275directiveInject(h.Hc),a.\u0275\u0275directiveInject(D.MenuController),a.\u0275\u0275directiveInject(h.v4),a.\u0275\u0275directiveInject(D.ModalController),a.\u0275\u0275directiveInject(h.V6),a.\u0275\u0275directiveInject(h.hb),a.\u0275\u0275directiveInject(h.D1),a.\u0275\u0275directiveInject(h.iw),a.\u0275\u0275directiveInject(h.lV),a.\u0275\u0275directiveInject(h.SL),a.\u0275\u0275directiveInject(h.i_),a.\u0275\u0275directiveInject(h.K7),a.\u0275\u0275directiveInject(h.NL),a.\u0275\u0275directiveInject(h.wK),a.\u0275\u0275directiveInject(h.Qz),a.\u0275\u0275directiveInject(g.Router),a.\u0275\u0275directiveInject(le.b),a.\u0275\u0275directiveInject(h.zP),a.\u0275\u0275directiveInject(h.Bs),a.\u0275\u0275directiveInject(h.bU),a.\u0275\u0275directiveInject(Ue.t),a.\u0275\u0275directiveInject(h.$V),a.\u0275\u0275directiveInject(h.zf),a.\u0275\u0275directiveInject(ke._),a.\u0275\u0275directiveInject(h.Ks),a.\u0275\u0275directiveInject(ze.oT),a.\u0275\u0275directiveInject(h.VN),a.\u0275\u0275directiveInject(h.No))},q.\u0275cmp=a.\u0275\u0275defineComponent({type:q,selectors:[["app-root"]],decls:63,vars:45,consts:[["side","end","contentId","content1",3,"ionWillOpen"],["mode","ios"],["color","primary","mode","ios"],["slot","fixed","pullFactor","0.8","pullMin","60","pullMax","120",1,"refresher-menu",3,"ionRefresh"],["lines","none"],["button","",1,"ion-activatable",3,"detail","click"],["slot","start","name","qr-code"],["class","ion-activatable","button","",3,"detail","click",4,"ngIf"],[1,"bookei",3,"ngClass"],["src","./../assets/bookei.svg",1,"bookei-icon"],[1,"bookei-label"],[4,"ngIf"],["button","","class","ion-activatable",3,"detail","click",4,"ngIf"],["slot","start","aria-hidden","true","name","code","mode","ios"],["slot","start","aria-hidden","true","name","person","mode","ios"],["slot","start","aria-hidden","true","name","newspaper-outline","mode","ios"],["slot","start","aria-hidden","true","src","./assets/icon/n_alarm.svg","mode","ios"],["slot","start","aria-hidden","true","name","log-out","mode","ios"],["button","",1,"version","ion-text-center",3,"detail"],["id","content1",3,"swipeGesture"],["role","alert"],["slot","start","aria-hidden","true","name","calendar-outline","mode","ios"],["slot","start","mode","ios","aria-hidden","true","name","wallet-outline"],["slot","start","aria-hidden","true","name","people","mode","ios"],["slot","start","aria-hidden","true","name","notifications-outline","mode","ios"],[1,"offline_small",3,"ngClass"],[3,"smallMessage","showOffline",4,"ngIf"],[3,"smallMessage","showOffline"]],template:function(E,V){if(1&E&&(a.\u0275\u0275elementStart(0,"ion-app")(1,"ion-menu",0),a.\u0275\u0275listener("ionWillOpen",function(){return V.onMenuWillOpen()}),a.\u0275\u0275elementStart(2,"ion-header",1)(3,"ion-toolbar",2)(4,"ion-title"),a.\u0275\u0275text(5,"KeyAccess"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(6,"ion-content")(7,"ion-refresher",3),a.\u0275\u0275listener("ionRefresh",function(Be){return V.doRefresh(Be)}),a.\u0275\u0275element(8,"ion-refresher-content"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(9,"ion-list",4)(10,"ion-item",5),a.\u0275\u0275listener("click",function(){return V.navigateToQRCode()}),a.\u0275\u0275element(11,"ion-icon",6),a.\u0275\u0275elementStart(12,"ion-label"),a.\u0275\u0275text(13),a.\u0275\u0275pipe(14,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(15,Ze,5,4,"ion-item",7),a.\u0275\u0275template(16,_t,6,4,"ion-item",7),a.\u0275\u0275elementStart(17,"ion-item",5),a.\u0275\u0275listener("click",function(){return V.goToBookei()}),a.\u0275\u0275elementStart(18,"div",8),a.\u0275\u0275element(19,"ion-icon",9),a.\u0275\u0275elementStart(20,"ion-label",10),a.\u0275\u0275text(21),a.\u0275\u0275pipe(22,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275template(23,At,6,4,"ng-container",11),a.\u0275\u0275template(24,Vt,5,4,"ion-item",12),a.\u0275\u0275template(25,fn,5,4,"ion-item",12),a.\u0275\u0275elementStart(26,"ion-item",5),a.\u0275\u0275listener("click",function(){return V.onOpenInsertCompanyCode()}),a.\u0275\u0275element(27,"ion-icon",13),a.\u0275\u0275elementStart(28,"ion-label"),a.\u0275\u0275text(29),a.\u0275\u0275pipe(30,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(31,"ion-item",5),a.\u0275\u0275listener("click",function(){return V.account()}),a.\u0275\u0275element(32,"ion-icon",14),a.\u0275\u0275elementStart(33,"ion-label"),a.\u0275\u0275text(34),a.\u0275\u0275pipe(35,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(36,"ion-item",5),a.\u0275\u0275listener("click",function(){return V.onOpenTos()}),a.\u0275\u0275element(37,"ion-icon",15),a.\u0275\u0275elementStart(38,"ion-label"),a.\u0275\u0275text(39),a.\u0275\u0275pipe(40,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(41,"ion-item",5),a.\u0275\u0275listener("click",function(){return V.onOpenViewPrivacyPolicy()}),a.\u0275\u0275element(42,"ion-icon",15),a.\u0275\u0275elementStart(43,"ion-label"),a.\u0275\u0275text(44),a.\u0275\u0275pipe(45,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(46,"ion-item",5),a.\u0275\u0275listener("click",function(){return V.navigateToConfiguration()}),a.\u0275\u0275element(47,"ion-icon",16),a.\u0275\u0275elementStart(48,"ion-label"),a.\u0275\u0275text(49),a.\u0275\u0275pipe(50,"translate"),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275elementStart(51,"ion-footer",1)(52,"ion-item",5),a.\u0275\u0275listener("click",function(){return V.logOff()}),a.\u0275\u0275element(53,"ion-icon",17),a.\u0275\u0275elementStart(54,"ion-label"),a.\u0275\u0275text(55),a.\u0275\u0275pipe(56,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(57,"ion-item",18)(58,"ion-label"),a.\u0275\u0275text(59),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275element(60,"ion-router-outlet",19),a.\u0275\u0275template(61,Et,2,1,"ng-container",11),a.\u0275\u0275element(62,"app-notificator",20),a.\u0275\u0275elementEnd()),2&E){let Me;a.\u0275\u0275advance(10),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(14,27,"MENU_QRCODE")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",V.thereAreVOProfiles()),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",V.thereAreExpeditionProfiles()),a.\u0275\u0275advance(1),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction1(43,cn,V.platform.is("ios"))),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(22,29,"MENU_RESERVATIONS")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",(null!==(Me=null==V.walletsQrcode?null:V.walletsQrcode.length)&&void 0!==Me?Me:0)>0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",V.thereAreVOProfiles()),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",V.thereAreVOProfiles()||V.thereAreExpeditionProfiles()),a.\u0275\u0275advance(1),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(30,31,"MENU_ASSOCIATE_COMPANY")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(35,33,"MENU_ACCOUNT_DETAILS")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(40,35,"MENU_TERMS_OF_USE")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(45,37,"MENU_PRIVACY_POLICY")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(50,39,"MENU_NOTIFICATIONS")," "),a.\u0275\u0275advance(3),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(56,41,"MENU_LOGOFF")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("detail",!1),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate2(" V.",V.versionAPP," - ",V.buildNumber," "),a.\u0275\u0275advance(1),a.\u0275\u0275property("swipeGesture",!1),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","/home"!==V.routerCurrentPage)}},dependencies:[I.NgClass,I.NgIf,D.IonApp,D.IonContent,D.IonFooter,D.IonHeader,D.IonIcon,D.IonItem,D.IonLabel,D.IonList,D.IonMenu,D.IonRefresher,D.IonRefresherContent,D.IonRippleEffect,D.IonTitle,D.IonToolbar,D.IonRouterOutlet,ye.c,je.n,W.X$],styles:[".version[_ngcontent-%COMP%]{font-size:.8em}fa-icon[_ngcontent-%COMP%]{height:24px;padding:1px 5px;width:24px;margin:12px 32px 12px 0;font-size:19px}fa-icon[_ngcontent-%COMP%] .svg-inline--fa[_ngcontent-%COMP%]{color:#fff!important}.bookei[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:16px!important}.bookei[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{padding-right:28px!important}.bookei[_ngcontent-%COMP%] .bookei-icon[_ngcontent-%COMP%]{font-size:27.5px;position:relative;top:.3rem}.ios-fix.bookei[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{padding-right:16px!important}.ios-fix.fa-icon-qrcode[_ngcontent-%COMP%]{margin:12px 16px 12px 0!important}.offline_small[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;z-index:29999;opacity:0;transform:translateY(100%);transition:opacity .3s ease,transform .3s ease;background:#feecf0;min-height:64px}.offline_small.show[_ngcontent-%COMP%]{opacity:1;transform:translateY(0)}.offline_small.hide[_ngcontent-%COMP%]{opacity:0;transform:translateY(100%);transition:all .5s ease-out;background:#feecf0;min-height:64px}"]}),q})();var Tt=f(69270),en=f(14690),Gt=f(68867),or=f(89102),Cr=f(59584),wr=f(27317),dr=f(37340);function Jn(q){return new a.\u0275RuntimeError(3e3,!1)}function ct(){return typeof window<"u"&&typeof window.document<"u"}function xt(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function rt(q){switch(q.length){case 0:return new dr.ZN;case 1:return q[0];default:return new dr.ZE(q)}}function Yt(q,N,E,V,Me=new Map,Be=new Map){const ht=[],Mt=[];let jt=-1,nn=null;if(V.forEach(Bn=>{const Xn=Bn.get("offset"),Yr=Xn==jt,vr=Yr&&nn||new Map;Bn.forEach((mr,zr)=>{let No=zr,$o=mr;if("offset"!==zr)switch(No=N.normalizePropertyName(No,ht),$o){case dr.k1:$o=Me.get(zr);break;case dr.l3:$o=Be.get(zr);break;default:$o=N.normalizeStyleValue(zr,No,$o,ht)}vr.set(No,$o)}),Yr||Mt.push(vr),nn=vr,jt=Xn}),ht.length)throw function Zn(q){return new a.\u0275RuntimeError(3502,!1)}();return Mt}function $t(q,N,E,V){switch(N){case"start":q.onStart(()=>V(E&&Wt(E,"start",q)));break;case"done":q.onDone(()=>V(E&&Wt(E,"done",q)));break;case"destroy":q.onDestroy(()=>V(E&&Wt(E,"destroy",q)))}}function Wt(q,N,E){const Be=dn(q.element,q.triggerName,q.fromState,q.toState,N||q.phaseName,E.totalTime??q.totalTime,!!E.disabled),ht=q._data;return null!=ht&&(Be._data=ht),Be}function dn(q,N,E,V,Me="",Be=0,ht){return{element:q,triggerName:N,fromState:E,toState:V,phaseName:Me,totalTime:Be,disabled:!!ht}}function un(q,N,E){let V=q.get(N);return V||q.set(N,V=E),V}function Pn(q){const N=q.indexOf(":");return[q.substring(1,N),q.slice(N+1)]}let On=(q,N)=>!1,In=(q,N,E)=>[],Fn=null;function Hr(q){const N=q.parentNode||q.host;return N===Fn?null:N}(xt()||typeof Element<"u")&&(ct()?(Fn=(()=>document.documentElement)(),On=(q,N)=>{for(;N;){if(N===q)return!0;N=Hr(N)}return!1}):On=(q,N)=>q.contains(N),In=(q,N,E)=>{if(E)return Array.from(q.querySelectorAll(N));const V=q.querySelector(N);return V?[V]:[]});let Ho=null,io=!1;const tr=On,Po=In;let ot=(()=>{class q{validateStyleProperty(E){return function Mo(q){Ho||(Ho=function Zi(){return typeof document<"u"?document.body:null}()||{},io=!!Ho.style&&"WebkitAppearance"in Ho.style);let N=!0;return Ho.style&&!function yo(q){return"ebkit"==q.substring(1,6)}(q)&&(N=q in Ho.style,!N&&io&&(N="Webkit"+q.charAt(0).toUpperCase()+q.slice(1)in Ho.style)),N}(E)}matchesElement(E,V){return!1}containsElement(E,V){return tr(E,V)}getParentElement(E){return Hr(E)}query(E,V,Me){return Po(E,V,Me)}computeStyle(E,V,Me){return Me||""}animate(E,V,Me,Be,ht,Mt=[],jt){return new dr.ZN(Me,Be)}}return q.\u0275fac=function(E){return new(E||q)},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac}),q})(),Pt=(()=>{class q{}return q.NOOP=new ot,q})();const wt="ng-enter",Ht="ng-leave",Kt="ng-trigger",on=".ng-trigger",Mn="ng-animating",Yn=".ng-animating";function Hn(q){if("number"==typeof q)return q;const N=q.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:Sr(parseFloat(N[1]),N[2])}function Sr(q,N){return"s"===N?1e3*q:q}function Co(q,N,E){return q.hasOwnProperty("duration")?q:function bo(q,N,E){let Me,Be=0,ht="";if("string"==typeof q){const Mt=q.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Mt)return N.push(Jn()),{duration:0,delay:0,easing:""};Me=Sr(parseFloat(Mt[1]),Mt[2]);const jt=Mt[3];null!=jt&&(Be=Sr(parseFloat(jt),Mt[4]));const nn=Mt[5];nn&&(ht=nn)}else Me=q;if(!E){let Mt=!1,jt=N.length;Me<0&&(N.push(function Er(){return new a.\u0275RuntimeError(3100,!1)}()),Mt=!0),Be<0&&(N.push(function lo(){return new a.\u0275RuntimeError(3101,!1)}()),Mt=!0),Mt&&N.splice(jt,0,Jn())}return{duration:Me,delay:Be,easing:ht}}(q,N,E)}function Jr(q,N={}){return Object.keys(q).forEach(E=>{N[E]=q[E]}),N}function gi(q){const N=new Map;return Object.keys(q).forEach(E=>{N.set(E,q[E])}),N}function Bo(q,N=new Map,E){if(E)for(let[V,Me]of E)N.set(V,Me);for(let[V,Me]of q)N.set(V,Me);return N}function _a(q,N,E){return E?N+":"+E+";":""}function Di(q){let N="";for(let E=0;E<q.style.length;E++){const V=q.style.item(E);N+=_a(0,V,q.style.getPropertyValue(V))}for(const E in q.style)q.style.hasOwnProperty(E)&&!E.startsWith("_")&&(N+=_a(0,va(E),q.style[E]));q.setAttribute("style",N)}function vi(q,N,E){q.style&&(N.forEach((V,Me)=>{const Be=Fa(Me);E&&!E.has(Me)&&E.set(Me,q.style[Be]),q.style[Be]=V}),xt()&&Di(q))}function Yi(q,N){q.style&&(N.forEach((E,V)=>{const Me=Fa(V);q.style[Me]=""}),xt()&&Di(q))}function ci(q){return Array.isArray(q)?1==q.length?q[0]:(0,dr.vP)(q):q}const sa=new RegExp("{{\\s*(.+?)\\s*}}","g");function qo(q){let N=[];if("string"==typeof q){let E;for(;E=sa.exec(q);)N.push(E[1]);sa.lastIndex=0}return N}function Li(q,N,E){const V=q.toString(),Me=V.replace(sa,(Be,ht)=>{let Mt=N[ht];return null==Mt&&(E.push(function Qn(q){return new a.\u0275RuntimeError(3003,!1)}()),Mt=""),Mt.toString()});return Me==V?q:Me}function qr(q){const N=[];let E=q.next();for(;!E.done;)N.push(E.value),E=q.next();return N}const ga=/-+([a-z0-9])/g;function Fa(q){return q.replace(ga,(...N)=>N[1].toUpperCase())}function va(q){return q.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ii(q,N,E){switch(N.type){case 7:return q.visitTrigger(N,E);case 0:return q.visitState(N,E);case 1:return q.visitTransition(N,E);case 2:return q.visitSequence(N,E);case 3:return q.visitGroup(N,E);case 4:return q.visitAnimate(N,E);case 5:return q.visitKeyframes(N,E);case 6:return q.visitStyle(N,E);case 8:return q.visitReference(N,E);case 9:return q.visitAnimateChild(N,E);case 10:return q.visitAnimateRef(N,E);case 11:return q.visitQuery(N,E);case 12:return q.visitStagger(N,E);default:throw function Pr(q){return new a.\u0275RuntimeError(3004,!1)}()}}function Fi(q,N){return window.getComputedStyle(q)[N]}function lt(q,N){const E=[];return"string"==typeof q?q.split(/\s*,\s*/).forEach(V=>function P(q,N,E){if(":"==q[0]){const jt=function Q(q,N){switch(q){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(E,V)=>parseFloat(V)>parseFloat(E);case":decrement":return(E,V)=>parseFloat(V)<parseFloat(E);default:return N.push(function Eo(q){return new a.\u0275RuntimeError(3016,!1)}()),"* => *"}}(q,E);if("function"==typeof jt)return void N.push(jt);q=jt}const V=q.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==V||V.length<4)return E.push(function vn(q){return new a.\u0275RuntimeError(3015,!1)}()),N;const Me=V[1],Be=V[2],ht=V[3];N.push(Z(Me,ht));"<"==Be[0]&&!("*"==Me&&"*"==ht)&&N.push(Z(ht,Me))}(V,E,N)):E.push(q),E}const Pe=new Set(["true","1"]),Ve=new Set(["false","0"]);function Z(q,N){const E=Pe.has(q)||Ve.has(q),V=Pe.has(N)||Ve.has(N);return(Me,Be)=>{let ht="*"==q||q==Me,Mt="*"==N||N==Be;return!ht&&E&&"boolean"==typeof Me&&(ht=Me?Pe.has(q):Ve.has(q)),!Mt&&V&&"boolean"==typeof Be&&(Mt=Be?Pe.has(N):Ve.has(N)),ht&&Mt}}const Xe=new RegExp("s*:selfs*,?","g");function it(q,N,E,V){return new mt(q).build(N,E,V)}class mt{constructor(N){this._driver=N}build(N,E,V){const Me=new qt(E);return this._resetContextStyleTimingState(Me),ii(this,ci(N),Me)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles=new Map,N.collectedStyles.set("",new Map),N.currentTime=0}visitTrigger(N,E){let V=E.queryCount=0,Me=E.depCount=0;const Be=[],ht=[];return"@"==N.name.charAt(0)&&E.errors.push(function Nr(){return new a.\u0275RuntimeError(3006,!1)}()),N.definitions.forEach(Mt=>{if(this._resetContextStyleTimingState(E),0==Mt.type){const jt=Mt,nn=jt.name;nn.toString().split(/\s*,\s*/).forEach(Bn=>{jt.name=Bn,Be.push(this.visitState(jt,E))}),jt.name=nn}else if(1==Mt.type){const jt=this.visitTransition(Mt,E);V+=jt.queryCount,Me+=jt.depCount,ht.push(jt)}else E.errors.push(function go(){return new a.\u0275RuntimeError(3007,!1)}())}),{type:7,name:N.name,states:Be,transitions:ht,queryCount:V,depCount:Me,options:null}}visitState(N,E){const V=this.visitStyle(N.styles,E),Me=N.options&&N.options.params||null;if(V.containsDynamicStyles){const Be=new Set,ht=Me||{};V.styles.forEach(Mt=>{Mt instanceof Map&&Mt.forEach(jt=>{qo(jt).forEach(nn=>{ht.hasOwnProperty(nn)||Be.add(nn)})})}),Be.size&&(qr(Be.values()),E.errors.push(function Zr(q,N){return new a.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:N.name,style:V,options:Me?{params:Me}:null}}visitTransition(N,E){E.queryCount=0,E.depCount=0;const V=ii(this,ci(N.animation),E);return{type:1,matchers:lt(N.expr,E.errors),animation:V,queryCount:E.queryCount,depCount:E.depCount,options:Un(N.options)}}visitSequence(N,E){return{type:2,steps:N.steps.map(V=>ii(this,V,E)),options:Un(N.options)}}visitGroup(N,E){const V=E.currentTime;let Me=0;const Be=N.steps.map(ht=>{E.currentTime=V;const Mt=ii(this,ht,E);return Me=Math.max(Me,E.currentTime),Mt});return E.currentTime=Me,{type:3,steps:Be,options:Un(N.options)}}visitAnimate(N,E){const V=function Wn(q,N){if(q.hasOwnProperty("duration"))return q;if("number"==typeof q)return sr(Co(q,N).duration,0,"");const E=q;if(E.split(/\s+/).some(Be=>"{"==Be.charAt(0)&&"{"==Be.charAt(1))){const Be=sr(0,0,"");return Be.dynamic=!0,Be.strValue=E,Be}const Me=Co(E,N);return sr(Me.duration,Me.delay,Me.easing)}(N.timings,E.errors);E.currentAnimateTimings=V;let Me,Be=N.styles?N.styles:(0,dr.oB)({});if(5==Be.type)Me=this.visitKeyframes(Be,E);else{let ht=N.styles,Mt=!1;if(!ht){Mt=!0;const nn={};V.easing&&(nn.easing=V.easing),ht=(0,dr.oB)(nn)}E.currentTime+=V.duration+V.delay;const jt=this.visitStyle(ht,E);jt.isEmptyStep=Mt,Me=jt}return E.currentAnimateTimings=null,{type:4,timings:V,style:Me,options:null}}visitStyle(N,E){const V=this._makeStyleAst(N,E);return this._validateStyleAst(V,E),V}_makeStyleAst(N,E){const V=[],Me=Array.isArray(N.styles)?N.styles:[N.styles];for(let Mt of Me)"string"==typeof Mt?Mt===dr.l3?V.push(Mt):E.errors.push(new a.\u0275RuntimeError(3002,!1)):V.push(gi(Mt));let Be=!1,ht=null;return V.forEach(Mt=>{if(Mt instanceof Map&&(Mt.has("easing")&&(ht=Mt.get("easing"),Mt.delete("easing")),!Be))for(let jt of Mt.values())if(jt.toString().indexOf("{{")>=0){Be=!0;break}}),{type:6,styles:V,easing:ht,offset:N.offset,containsDynamicStyles:Be,options:null}}_validateStyleAst(N,E){const V=E.currentAnimateTimings;let Me=E.currentTime,Be=E.currentTime;V&&Be>0&&(Be-=V.duration+V.delay),N.styles.forEach(ht=>{"string"!=typeof ht&&ht.forEach((Mt,jt)=>{const nn=E.collectedStyles.get(E.currentQuerySelector),Bn=nn.get(jt);let Xn=!0;Bn&&(Be!=Me&&Be>=Bn.startTime&&Me<=Bn.endTime&&(E.errors.push(function ki(q,N,E,V,Me){return new a.\u0275RuntimeError(3010,!1)}()),Xn=!1),Be=Bn.startTime),Xn&&nn.set(jt,{startTime:Be,endTime:Me}),E.options&&function aa(q,N,E){const V=N.params||{},Me=qo(q);Me.length&&Me.forEach(Be=>{V.hasOwnProperty(Be)||E.push(function Gr(q){return new a.\u0275RuntimeError(3001,!1)}())})}(Mt,E.options,E.errors)})})}visitKeyframes(N,E){const V={type:5,styles:[],options:null};if(!E.currentAnimateTimings)return E.errors.push(function Yo(){return new a.\u0275RuntimeError(3011,!1)}()),V;let Be=0;const ht=[];let Mt=!1,jt=!1,nn=0;const Bn=N.steps.map($o=>{const Ci=this._makeStyleAst($o,E);let ea=null!=Ci.offset?Ci.offset:function Sn(q){if("string"==typeof q)return null;let N=null;if(Array.isArray(q))q.forEach(E=>{if(E instanceof Map&&E.has("offset")){const V=E;N=parseFloat(V.get("offset")),V.delete("offset")}});else if(q instanceof Map&&q.has("offset")){const E=q;N=parseFloat(E.get("offset")),E.delete("offset")}return N}(Ci.styles),ji=0;return null!=ea&&(Be++,ji=Ci.offset=ea),jt=jt||ji<0||ji>1,Mt=Mt||ji<nn,nn=ji,ht.push(ji),Ci});jt&&E.errors.push(function Ko(){return new a.\u0275RuntimeError(3012,!1)}()),Mt&&E.errors.push(function wo(){return new a.\u0275RuntimeError(3200,!1)}());const Xn=N.steps.length;let Yr=0;Be>0&&Be<Xn?E.errors.push(function $r(){return new a.\u0275RuntimeError(3202,!1)}()):0==Be&&(Yr=1/(Xn-1));const vr=Xn-1,mr=E.currentTime,zr=E.currentAnimateTimings,No=zr.duration;return Bn.forEach(($o,Ci)=>{const ea=Yr>0?Ci==vr?1:Yr*Ci:ht[Ci],ji=ea*No;E.currentTime=mr+zr.delay+ji,zr.duration=ji,this._validateStyleAst($o,E),$o.offset=ea,V.styles.push($o)}),V}visitReference(N,E){return{type:8,animation:ii(this,ci(N.animation),E),options:Un(N.options)}}visitAnimateChild(N,E){return E.depCount++,{type:9,options:Un(N.options)}}visitAnimateRef(N,E){return{type:10,animation:this.visitReference(N.animation,E),options:Un(N.options)}}visitQuery(N,E){const V=E.currentQuerySelector,Me=N.options||{};E.queryCount++,E.currentQuery=N;const[Be,ht]=function Rt(q){const N=!!q.split(/\s*,\s*/).find(E=>":self"==E);return N&&(q=q.replace(Xe,"")),q=q.replace(/@\*/g,on).replace(/@\w+/g,E=>on+"-"+E.slice(1)).replace(/:animating/g,Yn),[q,N]}(N.selector);E.currentQuerySelector=V.length?V+" "+Be:Be,un(E.collectedStyles,E.currentQuerySelector,new Map);const Mt=ii(this,ci(N.animation),E);return E.currentQuery=null,E.currentQuerySelector=V,{type:11,selector:Be,limit:Me.limit||0,optional:!!Me.optional,includeSelf:ht,animation:Mt,originalSelector:N.selector,options:Un(N.options)}}visitStagger(N,E){E.currentQuery||E.errors.push(function hi(){return new a.\u0275RuntimeError(3013,!1)}());const V="full"===N.timings?{duration:0,delay:0,easing:"full"}:Co(N.timings,E.errors,!0);return{type:12,animation:ii(this,ci(N.animation),E),timings:V,options:null}}}class qt{constructor(N){this.errors=N,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Un(q){return q?(q=Jr(q)).params&&(q.params=function Xt(q){return q?Jr(q):null}(q.params)):q={},q}function sr(q,N,E){return{duration:q,delay:N,easing:E}}function hr(q,N,E,V,Me,Be,ht=null,Mt=!1){return{type:1,element:q,keyframes:N,preStyleProps:E,postStyleProps:V,duration:Me,delay:Be,totalTime:Me+Be,easing:ht,subTimeline:Mt}}class Ar{constructor(){this._map=new Map}get(N){return this._map.get(N)||[]}append(N,E){let V=this._map.get(N);V||this._map.set(N,V=[]),V.push(...E)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const ko=new RegExp(":enter","g"),G=new RegExp(":leave","g");function Je(q,N,E,V,Me,Be=new Map,ht=new Map,Mt,jt,nn=[]){return(new dt).buildKeyframes(q,N,E,V,Me,Be,ht,Mt,jt,nn)}class dt{buildKeyframes(N,E,V,Me,Be,ht,Mt,jt,nn,Bn=[]){nn=nn||new Ar;const Xn=new Ln(N,E,nn,Me,Be,Bn,[]);Xn.options=jt;const Yr=jt.delay?Hn(jt.delay):0;Xn.currentTimeline.delayNextStep(Yr),Xn.currentTimeline.setStyles([ht],null,Xn.errors,jt),ii(this,V,Xn);const vr=Xn.timelines.filter(mr=>mr.containsAnimation());if(vr.length&&Mt.size){let mr;for(let zr=vr.length-1;zr>=0;zr--){const No=vr[zr];if(No.element===E){mr=No;break}}mr&&!mr.allowOnlyTimelineStyles()&&mr.setStyles([Mt],null,Xn.errors,jt)}return vr.length?vr.map(mr=>mr.buildKeyframes()):[hr(E,[],[],[],0,Yr,"",!1)]}visitTrigger(N,E){}visitState(N,E){}visitTransition(N,E){}visitAnimateChild(N,E){const V=E.subInstructions.get(E.element);if(V){const Me=E.createSubContext(N.options),Be=E.currentTimeline.currentTime,ht=this._visitSubInstructions(V,Me,Me.options);Be!=ht&&E.transformIntoNewTimeline(ht)}E.previousNode=N}visitAnimateRef(N,E){const V=E.createSubContext(N.options);V.transformIntoNewTimeline(),this._applyAnimationRefDelays([N.options,N.animation.options],E,V),this.visitReference(N.animation,V),E.transformIntoNewTimeline(V.currentTimeline.currentTime),E.previousNode=N}_applyAnimationRefDelays(N,E,V){for(const Be of N){const ht=Be?.delay;if(ht){var Me;const Mt="number"==typeof ht?ht:Hn(Li(ht,null!==(Me=Be?.params)&&void 0!==Me?Me:{},E.errors));V.delayNextStep(Mt)}}}_visitSubInstructions(N,E,V){let Be=E.currentTimeline.currentTime;const ht=null!=V.duration?Hn(V.duration):null,Mt=null!=V.delay?Hn(V.delay):null;return 0!==ht&&N.forEach(jt=>{const nn=E.appendInstructionToTimeline(jt,ht,Mt);Be=Math.max(Be,nn.duration+nn.delay)}),Be}visitReference(N,E){E.updateOptions(N.options,!0),ii(this,N.animation,E),E.previousNode=N}visitSequence(N,E){const V=E.subContextCount;let Me=E;const Be=N.options;if(Be&&(Be.params||Be.delay)&&(Me=E.createSubContext(Be),Me.transformIntoNewTimeline(),null!=Be.delay)){6==Me.previousNode.type&&(Me.currentTimeline.snapshotCurrentStyles(),Me.previousNode=st);const ht=Hn(Be.delay);Me.delayNextStep(ht)}N.steps.length&&(N.steps.forEach(ht=>ii(this,ht,Me)),Me.currentTimeline.applyStylesToKeyframe(),Me.subContextCount>V&&Me.transformIntoNewTimeline()),E.previousNode=N}visitGroup(N,E){const V=[];let Me=E.currentTimeline.currentTime;const Be=N.options&&N.options.delay?Hn(N.options.delay):0;N.steps.forEach(ht=>{const Mt=E.createSubContext(N.options);Be&&Mt.delayNextStep(Be),ii(this,ht,Mt),Me=Math.max(Me,Mt.currentTimeline.currentTime),V.push(Mt.currentTimeline)}),V.forEach(ht=>E.currentTimeline.mergeTimelineCollectedStyles(ht)),E.transformIntoNewTimeline(Me),E.previousNode=N}_visitTiming(N,E){if(N.dynamic){const V=N.strValue;return Co(E.params?Li(V,E.params,E.errors):V,E.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,E){const V=E.currentAnimateTimings=this._visitTiming(N.timings,E),Me=E.currentTimeline;V.delay&&(E.incrementTime(V.delay),Me.snapshotCurrentStyles());const Be=N.style;5==Be.type?this.visitKeyframes(Be,E):(E.incrementTime(V.duration),this.visitStyle(Be,E),Me.applyStylesToKeyframe()),E.currentAnimateTimings=null,E.previousNode=N}visitStyle(N,E){const V=E.currentTimeline,Me=E.currentAnimateTimings;!Me&&V.hasCurrentStyleProperties()&&V.forwardFrame();const Be=Me&&Me.easing||N.easing;N.isEmptyStep?V.applyEmptyStep(Be):V.setStyles(N.styles,Be,E.errors,E.options),E.previousNode=N}visitKeyframes(N,E){const V=E.currentAnimateTimings,Me=E.currentTimeline.duration,Be=V.duration,Mt=E.createSubContext().currentTimeline;Mt.easing=V.easing,N.styles.forEach(jt=>{Mt.forwardTime((jt.offset||0)*Be),Mt.setStyles(jt.styles,jt.easing,E.errors,E.options),Mt.applyStylesToKeyframe()}),E.currentTimeline.mergeTimelineCollectedStyles(Mt),E.transformIntoNewTimeline(Me+Be),E.previousNode=N}visitQuery(N,E){const V=E.currentTimeline.currentTime,Me=N.options||{},Be=Me.delay?Hn(Me.delay):0;Be&&(6===E.previousNode.type||0==V&&E.currentTimeline.hasCurrentStyleProperties())&&(E.currentTimeline.snapshotCurrentStyles(),E.previousNode=st);let ht=V;const Mt=E.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!Me.optional,E.errors);E.currentQueryTotal=Mt.length;let jt=null;Mt.forEach((nn,Bn)=>{E.currentQueryIndex=Bn;const Xn=E.createSubContext(N.options,nn);Be&&Xn.delayNextStep(Be),nn===E.element&&(jt=Xn.currentTimeline),ii(this,N.animation,Xn),Xn.currentTimeline.applyStylesToKeyframe(),ht=Math.max(ht,Xn.currentTimeline.currentTime)}),E.currentQueryIndex=0,E.currentQueryTotal=0,E.transformIntoNewTimeline(ht),jt&&(E.currentTimeline.mergeTimelineCollectedStyles(jt),E.currentTimeline.snapshotCurrentStyles()),E.previousNode=N}visitStagger(N,E){const V=E.parentContext,Me=E.currentTimeline,Be=N.timings,ht=Math.abs(Be.duration),Mt=ht*(E.currentQueryTotal-1);let jt=ht*E.currentQueryIndex;switch(Be.duration<0?"reverse":Be.easing){case"reverse":jt=Mt-jt;break;case"full":jt=V.currentStaggerTime}const Bn=E.currentTimeline;jt&&Bn.delayNextStep(jt);const Xn=Bn.currentTime;ii(this,N.animation,E),E.previousNode=N,V.currentStaggerTime=Me.currentTime-Xn+(Me.startTime-V.currentTimeline.startTime)}}const st={};class Ln{constructor(N,E,V,Me,Be,ht,Mt,jt){this._driver=N,this.element=E,this.subInstructions=V,this._enterClassName=Me,this._leaveClassName=Be,this.errors=ht,this.timelines=Mt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=st,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=jt||new Rr(this._driver,E,0),Mt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,E){if(!N)return;const V=N;let Me=this.options;null!=V.duration&&(Me.duration=Hn(V.duration)),null!=V.delay&&(Me.delay=Hn(V.delay));const Be=V.params;if(Be){let ht=Me.params;ht||(ht=this.options.params={}),Object.keys(Be).forEach(Mt=>{(!E||!ht.hasOwnProperty(Mt))&&(ht[Mt]=Li(Be[Mt],ht,this.errors))})}}_copyOptions(){const N={};if(this.options){const E=this.options.params;if(E){const V=N.params={};Object.keys(E).forEach(Me=>{V[Me]=E[Me]})}}return N}createSubContext(N=null,E,V){const Me=E||this.element,Be=new Ln(this._driver,Me,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Me,V||0));return Be.previousNode=this.previousNode,Be.currentAnimateTimings=this.currentAnimateTimings,Be.options=this._copyOptions(),Be.updateOptions(N),Be.currentQueryIndex=this.currentQueryIndex,Be.currentQueryTotal=this.currentQueryTotal,Be.parentContext=this,this.subContextCount++,Be}transformIntoNewTimeline(N){return this.previousNode=st,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,E,V){const Me={duration:E??N.duration,delay:this.currentTimeline.currentTime+(V??0)+N.delay,easing:""},Be=new A(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,Me,N.stretchStartingKeyframe);return this.timelines.push(Be),Me}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,E,V,Me,Be,ht){let Mt=[];if(Me&&Mt.push(this.element),N.length>0){N=(N=N.replace(ko,"."+this._enterClassName)).replace(G,"."+this._leaveClassName);let nn=this._driver.query(this.element,N,1!=V);0!==V&&(nn=V<0?nn.slice(nn.length+V,nn.length):nn.slice(0,V)),Mt.push(...nn)}return!Be&&0==Mt.length&&ht.push(function mi(q){return new a.\u0275RuntimeError(3014,!1)}()),Mt}}class Rr{constructor(N,E,V,Me){this._driver=N,this.element=E,this.startTime=V,this._elementTimelineStylesLookup=Me,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(E),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(E,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(N){const E=1===this._keyframes.size&&this._pendingStyles.size;this.duration||E?(this.forwardTime(this.currentTime+N),E&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,E){return this.applyStylesToKeyframe(),new Rr(this._driver,N,E||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,E){this._localTimelineStyles.set(N,E),this._globalTimelineStyles.set(N,E),this._styleSummary.set(N,{time:this.currentTime,value:E})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&this._previousKeyframe.set("easing",N);for(let[E,V]of this._globalTimelineStyles)this._backFill.set(E,V||dr.l3),this._currentKeyframe.set(E,dr.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,E,V,Me){E&&this._previousKeyframe.set("easing",E);const Be=Me&&Me.params||{},ht=function _(q,N){const E=new Map;let V;return q.forEach(Me=>{if("*"===Me){V=V||N.keys();for(let Be of V)E.set(Be,dr.l3)}else Bo(Me,E)}),E}(N,this._globalTimelineStyles);for(let[jt,nn]of ht){const Bn=Li(nn,Be,V);var Mt;this._pendingStyles.set(jt,Bn),this._localTimelineStyles.has(jt)||this._backFill.set(jt,null!==(Mt=this._globalTimelineStyles.get(jt))&&void 0!==Mt?Mt:dr.l3),this._updateStyle(jt,Bn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((N,E)=>{this._currentKeyframe.set(E,N)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((N,E)=>{this._currentKeyframe.has(E)||this._currentKeyframe.set(E,N)}))}snapshotCurrentStyles(){for(let[N,E]of this._localTimelineStyles)this._pendingStyles.set(N,E),this._updateStyle(N,E)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let E in this._currentKeyframe)N.push(E);return N}mergeTimelineCollectedStyles(N){N._styleSummary.forEach((E,V)=>{const Me=this._styleSummary.get(V);(!Me||E.time>Me.time)&&this._updateStyle(V,E.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,E=new Set,V=1===this._keyframes.size&&0===this.duration;let Me=[];this._keyframes.forEach((Mt,jt)=>{const nn=Bo(Mt,new Map,this._backFill);nn.forEach((Bn,Xn)=>{Bn===dr.k1?N.add(Xn):Bn===dr.l3&&E.add(Xn)}),V||nn.set("offset",jt/this.duration),Me.push(nn)});const Be=N.size?qr(N.values()):[],ht=E.size?qr(E.values()):[];if(V){const Mt=Me[0],jt=new Map(Mt);Mt.set("offset",0),jt.set("offset",1),Me=[Mt,jt]}return hr(this.element,Me,Be,ht,this.duration,this.startTime,this.easing,!1)}}class A extends Rr{constructor(N,E,V,Me,Be,ht,Mt=!1){super(N,E,ht.delay),this.keyframes=V,this.preStyleProps=Me,this.postStyleProps=Be,this._stretchStartingKeyframe=Mt,this.timings={duration:ht.duration,delay:ht.delay,easing:ht.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:E,duration:V,easing:Me}=this.timings;if(this._stretchStartingKeyframe&&E){const Be=[],ht=V+E,Mt=E/ht,jt=Bo(N[0]);jt.set("offset",0),Be.push(jt);const nn=Bo(N[0]);nn.set("offset",X(Mt)),Be.push(nn);const Bn=N.length-1;for(let Xn=1;Xn<=Bn;Xn++){let Yr=Bo(N[Xn]);const vr=Yr.get("offset");Yr.set("offset",X((E+vr*V)/ht)),Be.push(Yr)}V=ht,E=0,Me="",N=Be}return hr(this.element,N,this.preStyleProps,this.postStyleProps,V,E,Me,!0)}}function X(q,N=3){const E=Math.pow(10,N-1);return Math.round(q*E)/E}class O{}const Lt=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class an extends O{normalizePropertyName(N,E){return Fa(N)}normalizeStyleValue(N,E,V,Me){let Be="";const ht=V.toString().trim();if(Lt.has(E)&&0!==V&&"0"!==V)if("number"==typeof V)Be="px";else{const Mt=V.match(/^[+-]?[\d\.]+([a-z]*)$/);Mt&&0==Mt[1].length&&Me.push(function jr(q,N){return new a.\u0275RuntimeError(3005,!1)}())}return ht+Be}}function nr(q,N,E,V,Me,Be,ht,Mt,jt,nn,Bn,Xn,Yr){return{type:0,element:q,triggerName:N,isRemovalTransition:Me,fromState:E,fromStyles:Be,toState:V,toStyles:ht,timelines:Mt,queriedElements:jt,preStyleProps:nn,postStyleProps:Bn,totalTime:Xn,errors:Yr}}const Kr={};class Io{constructor(N,E,V){this._triggerName=N,this.ast=E,this._stateStyles=V}match(N,E,V,Me){return function Ui(q,N,E,V,Me){return q.some(Be=>Be(N,E,V,Me))}(this.ast.matchers,N,E,V,Me)}buildStyles(N,E,V){let Me=this._stateStyles.get("*");return void 0!==N&&(Me=this._stateStyles.get(N?.toString())||Me),Me?Me.buildStyles(E,V):new Map}build(N,E,V,Me,Be,ht,Mt,jt,nn,Bn){var Xn;const Yr=[],vr=this.ast.options&&this.ast.options.params||Kr,zr=this.buildStyles(V,Mt&&Mt.params||Kr,Yr),No=jt&&jt.params||Kr,$o=this.buildStyles(Me,No,Yr),Ci=new Set,ea=new Map,ji=new Map,Ts="void"===Me,ws={params:Ma(No,vr),delay:null===(Xn=this.ast.options)||void 0===Xn?void 0:Xn.delay},Ki=Bn?[]:Je(N,E,this.ast.animation,Be,ht,zr,$o,ws,nn,Yr);let wi=0;if(Ki.forEach(Ua=>{wi=Math.max(Ua.duration+Ua.delay,wi)}),Yr.length)return nr(E,this._triggerName,V,Me,Ts,zr,$o,[],[],ea,ji,wi,Yr);Ki.forEach(Ua=>{const ka=Ua.element,Da=un(ea,ka,new Set);Ua.preStyleProps.forEach(gs=>Da.add(gs));const _s=un(ji,ka,new Set);Ua.postStyleProps.forEach(gs=>_s.add(gs)),ka!==E&&Ci.add(ka)});const ps=qr(Ci.values());return nr(E,this._triggerName,V,Me,Ts,zr,$o,Ki,ps,ea,ji,wi)}}function Ma(q,N){const E=Jr(N);for(const V in q)q.hasOwnProperty(V)&&null!=q[V]&&(E[V]=q[V]);return E}class oo{constructor(N,E,V){this.styles=N,this.defaultParams=E,this.normalizer=V}buildStyles(N,E){const V=new Map,Me=Jr(this.defaultParams);return Object.keys(N).forEach(Be=>{const ht=N[Be];null!==ht&&(Me[Be]=ht)}),this.styles.styles.forEach(Be=>{"string"!=typeof Be&&Be.forEach((ht,Mt)=>{ht&&(ht=Li(ht,Me,E));const jt=this.normalizer.normalizePropertyName(Mt,E);ht=this.normalizer.normalizeStyleValue(Mt,jt,ht,E),V.set(jt,ht)})}),V}}class bs{constructor(N,E,V){this.name=N,this.ast=E,this._normalizer=V,this.transitionFactories=[],this.states=new Map,E.states.forEach(Me=>{this.states.set(Me.name,new oo(Me.style,Me.options&&Me.options.params||{},V))}),ho(this.states,"true","1"),ho(this.states,"false","0"),E.transitions.forEach(Me=>{this.transitionFactories.push(new Io(N,Me,this.states))}),this.fallbackTransition=function at(q,N,E){return new Io(q,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ht,Mt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,E,V,Me){return this.transitionFactories.find(ht=>ht.match(N,E,V,Me))||null}matchStyles(N,E,V){return this.fallbackTransition.buildStyles(N,E,V)}}function ho(q,N,E){q.has(N)?q.has(E)||q.set(E,q.get(N)):q.has(E)&&q.set(N,q.get(E))}const Ks=new Ar;class Ja{constructor(N,E,V){this.bodyNode=N,this._driver=E,this._normalizer=V,this._animations=new Map,this._playersById=new Map,this.players=[]}register(N,E){const V=[],Be=it(this._driver,E,V,[]);if(V.length)throw function uo(q){return new a.\u0275RuntimeError(3503,!1)}();this._animations.set(N,Be)}_buildPlayer(N,E,V){const Me=N.element,Be=Yt(0,this._normalizer,0,N.keyframes,E,V);return this._driver.animate(Me,Be,N.duration,N.delay,N.easing,[],!0)}create(N,E,V={}){const Me=[],Be=this._animations.get(N);let ht;const Mt=new Map;if(Be?(ht=Je(this._driver,E,Be,wt,Ht,new Map,new Map,V,Ks,Me),ht.forEach(Bn=>{const Xn=un(Mt,Bn.element,new Map);Bn.postStyleProps.forEach(Yr=>Xn.set(Yr,null))})):(Me.push(function fr(){return new a.\u0275RuntimeError(3300,!1)}()),ht=[]),Me.length)throw function Vo(q){return new a.\u0275RuntimeError(3504,!1)}();Mt.forEach((Bn,Xn)=>{Bn.forEach((Yr,vr)=>{Bn.set(vr,this._driver.computeStyle(Xn,vr,dr.l3))})});const nn=rt(ht.map(Bn=>{const Xn=Mt.get(Bn.element);return this._buildPlayer(Bn,new Map,Xn)}));return this._playersById.set(N,nn),nn.onDestroy(()=>this.destroy(N)),this.players.push(nn),nn}destroy(N){const E=this._getPlayer(N);E.destroy(),this._playersById.delete(N);const V=this.players.indexOf(E);V>=0&&this.players.splice(V,1)}_getPlayer(N){const E=this._playersById.get(N);if(!E)throw function Fo(q){return new a.\u0275RuntimeError(3301,!1)}();return E}listen(N,E,V,Me){const Be=dn(E,"","","");return $t(this._getPlayer(N),V,Be,Me),()=>{}}command(N,E,V,Me){if("register"==V)return void this.register(N,Me[0]);if("create"==V)return void this.create(N,E,Me[0]||{});const Be=this._getPlayer(N);switch(V){case"play":Be.play();break;case"pause":Be.pause();break;case"reset":Be.reset();break;case"restart":Be.restart();break;case"finish":Be.finish();break;case"init":Be.init();break;case"setPosition":Be.setPosition(parseFloat(Me[0]));break;case"destroy":this.destroy(N)}}}const rr="ng-animate-queued",ai="ng-animate-disabled",nc=[],n1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pi="__ng_removed";class Ba{constructor(N,E=""){this.namespaceId=E;const V=N&&N.hasOwnProperty("value");if(this.value=function r1(q){return q??null}(V?N.value:N),V){const Be=Jr(N);delete Be.value,this.options=Be}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(N){const E=N.params;if(E){const V=this.options.params;Object.keys(E).forEach(Me=>{null==V[Me]&&(V[Me]=E[Me])})}}}const Ea="void",Ns=new Ba(Ea);class xa{constructor(N,E,V){this.id=N,this.hostElement=E,this._engine=V,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+N,Mi(E,this._hostClassName)}listen(N,E,V,Me){if(!this._triggers.has(E))throw function _i(q,N){return new a.\u0275RuntimeError(3302,!1)}();if(null==V||0==V.length)throw function xr(q){return new a.\u0275RuntimeError(3303,!1)}();if(!function Hc(q){return"start"==q||"done"==q}(V))throw function It(q,N){return new a.\u0275RuntimeError(3400,!1)}();const Be=un(this._elementListeners,N,[]),ht={name:E,phase:V,callback:Me};Be.push(ht);const Mt=un(this._engine.statesByElement,N,new Map);return Mt.has(E)||(Mi(N,Kt),Mi(N,Kt+"-"+E),Mt.set(E,Ns)),()=>{this._engine.afterFlush(()=>{const jt=Be.indexOf(ht);jt>=0&&Be.splice(jt,1),this._triggers.has(E)||Mt.delete(E)})}}register(N,E){return!this._triggers.has(N)&&(this._triggers.set(N,E),!0)}_getTrigger(N){const E=this._triggers.get(N);if(!E)throw function ut(q){return new a.\u0275RuntimeError(3401,!1)}();return E}trigger(N,E,V,Me=!0){const Be=this._getTrigger(E),ht=new Hi(this.id,E,N);let Mt=this._engine.statesByElement.get(N);Mt||(Mi(N,Kt),Mi(N,Kt+"-"+E),this._engine.statesByElement.set(N,Mt=new Map));let jt=Mt.get(E);const nn=new Ba(V,this.id);if(!(V&&V.hasOwnProperty("value"))&&jt&&nn.absorbOptions(jt.options),Mt.set(E,nn),jt||(jt=Ns),nn.value!==Ea&&jt.value===nn.value){if(!function Js(q,N){const E=Object.keys(q),V=Object.keys(N);if(E.length!=V.length)return!1;for(let Me=0;Me<E.length;Me++){const Be=E[Me];if(!N.hasOwnProperty(Be)||q[Be]!==N[Be])return!1}return!0}(jt.params,nn.params)){const zr=[],No=Be.matchStyles(jt.value,jt.params,zr),$o=Be.matchStyles(nn.value,nn.params,zr);zr.length?this._engine.reportError(zr):this._engine.afterFlush(()=>{Yi(N,No),vi(N,$o)})}return}const Yr=un(this._engine.playersByElement,N,[]);Yr.forEach(zr=>{zr.namespaceId==this.id&&zr.triggerName==E&&zr.queued&&zr.destroy()});let vr=Be.matchTransition(jt.value,nn.value,N,nn.params),mr=!1;if(!vr){if(!Me)return;vr=Be.fallbackTransition,mr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:E,transition:vr,fromState:jt,toState:nn,player:ht,isFallbackTransition:mr}),mr||(Mi(N,rr),ht.onStart(()=>{Qi(N,rr)})),ht.onDone(()=>{let zr=this.players.indexOf(ht);zr>=0&&this.players.splice(zr,1);const No=this._engine.playersByElement.get(N);if(No){let $o=No.indexOf(ht);$o>=0&&No.splice($o,1)}}),this.players.push(ht),Yr.push(ht),ht}deregister(N){this._triggers.delete(N),this._engine.statesByElement.forEach(E=>E.delete(N)),this._elementListeners.forEach((E,V)=>{this._elementListeners.set(V,E.filter(Me=>Me.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const E=this._engine.playersByElement.get(N);E&&(E.forEach(V=>V.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,E){const V=this._engine.driver.query(N,on,!0);V.forEach(Me=>{if(Me[Pi])return;const Be=this._engine.fetchNamespacesByElement(Me);Be.size?Be.forEach(ht=>ht.triggerLeaveAnimation(Me,E,!1,!0)):this.clearElementCache(Me)}),this._engine.afterFlushAnimationsDone(()=>V.forEach(Me=>this.clearElementCache(Me)))}triggerLeaveAnimation(N,E,V,Me){const Be=this._engine.statesByElement.get(N),ht=new Map;if(Be){const Mt=[];if(Be.forEach((jt,nn)=>{if(ht.set(nn,jt.value),this._triggers.has(nn)){const Bn=this.trigger(N,nn,Ea,Me);Bn&&Mt.push(Bn)}}),Mt.length)return this._engine.markElementAsRemoved(this.id,N,!0,E,ht),V&&rt(Mt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const E=this._elementListeners.get(N),V=this._engine.statesByElement.get(N);if(E&&V){const Me=new Set;E.forEach(Be=>{const ht=Be.name;if(Me.has(ht))return;Me.add(ht);const jt=this._triggers.get(ht).fallbackTransition,nn=V.get(ht)||Ns,Bn=new Ba(Ea),Xn=new Hi(this.id,ht,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:ht,transition:jt,fromState:nn,toState:Bn,player:Xn,isFallbackTransition:!0})})}}removeNode(N,E){const V=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,E),this.triggerLeaveAnimation(N,E,!0))return;let Me=!1;if(V.totalAnimations){const Be=V.players.length?V.playersByQueriedElement.get(N):[];if(Be&&Be.length)Me=!0;else{let ht=N;for(;ht=ht.parentNode;)if(V.statesByElement.get(ht)){Me=!0;break}}}if(this.prepareLeaveAnimationListeners(N),Me)V.markElementAsRemoved(this.id,N,!1,E);else{const Be=N[Pi];(!Be||Be===n1)&&(V.afterFlush(()=>this.clearElementCache(N)),V.destroyInnerAnimations(N),V._onRemovalComplete(N,E))}}insertNode(N,E){Mi(N,this._hostClassName)}drainQueuedTransitions(N){const E=[];return this._queue.forEach(V=>{const Me=V.player;if(Me.destroyed)return;const Be=V.element,ht=this._elementListeners.get(Be);ht&&ht.forEach(Mt=>{if(Mt.name==V.triggerName){const jt=dn(Be,V.triggerName,V.fromState.value,V.toState.value);jt._data=N,$t(V.player,Mt.phase,jt,Mt.callback)}}),Me.markedForDestroy?this._engine.afterFlush(()=>{Me.destroy()}):E.push(V)}),this._queue=[],E.sort((V,Me)=>{const Be=V.transition.ast.depCount,ht=Me.transition.ast.depCount;return 0==Be||0==ht?Be-ht:this._engine.driver.containsElement(V.element,Me.element)?1:-1})}destroy(N){this.players.forEach(E=>E.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}elementContainsData(N){let E=!1;return this._elementListeners.has(N)&&(E=!0),E=!!this._queue.find(V=>V.element===N)||E,E}}class Zs{constructor(N,E,V){this.bodyNode=N,this.driver=E,this._normalizer=V,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Me,Be)=>{}}_onRemovalComplete(N,E){this.onRemovalComplete(N,E)}get queuedPlayers(){const N=[];return this._namespaceList.forEach(E=>{E.players.forEach(V=>{V.queued&&N.push(V)})}),N}createNamespace(N,E){const V=new xa(N,E,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,E)?this._balanceNamespaceList(V,E):(this.newHostElements.set(E,V),this.collectEnterElement(E)),this._namespaceLookup[N]=V}_balanceNamespaceList(N,E){const V=this._namespaceList,Me=this.namespacesByHostElement;if(V.length-1>=0){let ht=!1,Mt=this.driver.getParentElement(E);for(;Mt;){const jt=Me.get(Mt);if(jt){const nn=V.indexOf(jt);V.splice(nn+1,0,N),ht=!0;break}Mt=this.driver.getParentElement(Mt)}ht||V.unshift(N)}else V.push(N);return Me.set(E,N),N}register(N,E){let V=this._namespaceLookup[N];return V||(V=this.createNamespace(N,E)),V}registerTrigger(N,E,V){let Me=this._namespaceLookup[N];Me&&Me.register(E,V)&&this.totalAnimations++}destroy(N,E){if(!N)return;const V=this._fetchNamespace(N);this.afterFlush(()=>{this.namespacesByHostElement.delete(V.hostElement),delete this._namespaceLookup[N];const Me=this._namespaceList.indexOf(V);Me>=0&&this._namespaceList.splice(Me,1)}),this.afterFlushAnimationsDone(()=>V.destroy(E))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const E=new Set,V=this.statesByElement.get(N);if(V)for(let Me of V.values())if(Me.namespaceId){const Be=this._fetchNamespace(Me.namespaceId);Be&&E.add(Be)}return E}trigger(N,E,V,Me){if(Bi(E)){const Be=this._fetchNamespace(N);if(Be)return Be.trigger(E,V,Me),!0}return!1}insertNode(N,E,V,Me){if(!Bi(E))return;const Be=E[Pi];if(Be&&Be.setForRemoval){Be.setForRemoval=!1,Be.setForMove=!0;const ht=this.collectedLeaveElements.indexOf(E);ht>=0&&this.collectedLeaveElements.splice(ht,1)}if(N){const ht=this._fetchNamespace(N);ht&&ht.insertNode(E,V)}Me&&this.collectEnterElement(E)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,E){E?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Mi(N,ai)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),Qi(N,ai))}removeNode(N,E,V,Me){if(Bi(E)){const Be=N?this._fetchNamespace(N):null;if(Be?Be.removeNode(E,Me):this.markElementAsRemoved(N,E,!1,Me),V){const ht=this.namespacesByHostElement.get(E);ht&&ht.id!==N&&ht.removeNode(E,Me)}}else this._onRemovalComplete(E,Me)}markElementAsRemoved(N,E,V,Me,Be){this.collectedLeaveElements.push(E),E[Pi]={namespaceId:N,setForRemoval:Me,hasAnimation:V,removedBeforeQueried:!1,previousTriggersValues:Be}}listen(N,E,V,Me,Be){return Bi(E)?this._fetchNamespace(N).listen(E,V,Me,Be):()=>{}}_buildInstruction(N,E,V,Me,Be){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,V,Me,N.fromState.options,N.toState.options,E,Be)}destroyInnerAnimations(N){let E=this.driver.query(N,on,!0);E.forEach(V=>this.destroyActiveAnimationsForElement(V)),0!=this.playersByQueriedElement.size&&(E=this.driver.query(N,Yn,!0),E.forEach(V=>this.finishActiveQueriedAnimationOnElement(V)))}destroyActiveAnimationsForElement(N){const E=this.playersByElement.get(N);E&&E.forEach(V=>{V.queued?V.markedForDestroy=!0:V.destroy()})}finishActiveQueriedAnimationOnElement(N){const E=this.playersByQueriedElement.get(N);E&&E.forEach(V=>V.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return rt(this.players).onDone(()=>N());N()})}processLeaveNode(N){var E;const V=N[Pi];if(V&&V.setForRemoval){if(N[Pi]=n1,V.namespaceId){this.destroyInnerAnimations(N);const Me=this._fetchNamespace(V.namespaceId);Me&&Me.clearElementCache(N)}this._onRemovalComplete(N,V.setForRemoval)}null!==(E=N.classList)&&void 0!==E&&E.contains(ai)&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(Me=>{this.markElementAsDisabled(Me,!1)})}flush(N=-1){let E=[];if(this.newHostElements.size&&(this.newHostElements.forEach((V,Me)=>this._balanceNamespaceList(V,Me)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let V=0;V<this.collectedEnterElements.length;V++)Mi(this.collectedEnterElements[V],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const V=[];try{E=this._flushAnimations(V,N)}finally{for(let Me=0;Me<V.length;Me++)V[Me]()}}else for(let V=0;V<this.collectedLeaveElements.length;V++)this.processLeaveNode(this.collectedLeaveElements[V]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(V=>V()),this._flushFns=[],this._whenQuietFns.length){const V=this._whenQuietFns;this._whenQuietFns=[],E.length?rt(E).onDone(()=>{V.forEach(Me=>Me())}):V.forEach(Me=>Me())}}reportError(N){throw function nt(q){return new a.\u0275RuntimeError(3402,!1)}()}_flushAnimations(N,E){const V=new Ar,Me=[],Be=new Map,ht=[],Mt=new Map,jt=new Map,nn=new Map,Bn=new Set;this.disabledNodes.forEach(lr=>{Bn.add(lr);const Jt=this.driver.query(lr,".ng-animate-queued",!0);for(let pr=0;pr<Jt.length;pr++)Bn.add(Jt[pr])});const Xn=this.bodyNode,Yr=Array.from(this.statesByElement.keys()),vr=Xr(Yr,this.collectedEnterElements),mr=new Map;let zr=0;vr.forEach((lr,Jt)=>{const pr=wt+zr++;mr.set(Jt,pr),lr.forEach(so=>Mi(so,pr))});const No=[],$o=new Set,Ci=new Set;for(let lr=0;lr<this.collectedLeaveElements.length;lr++){const Jt=this.collectedLeaveElements[lr],pr=Jt[Pi];pr&&pr.setForRemoval&&(No.push(Jt),$o.add(Jt),pr.hasAnimation?this.driver.query(Jt,".ng-star-inserted",!0).forEach(so=>$o.add(so)):Ci.add(Jt))}const ea=new Map,ji=Xr(Yr,Array.from($o));ji.forEach((lr,Jt)=>{const pr=Ht+zr++;ea.set(Jt,pr),lr.forEach(so=>Mi(so,pr))}),N.push(()=>{vr.forEach((lr,Jt)=>{const pr=mr.get(Jt);lr.forEach(so=>Qi(so,pr))}),ji.forEach((lr,Jt)=>{const pr=ea.get(Jt);lr.forEach(so=>Qi(so,pr))}),No.forEach(lr=>{this.processLeaveNode(lr)})});const Ts=[],ws=[];for(let lr=this._namespaceList.length-1;lr>=0;lr--)this._namespaceList[lr].drainQueuedTransitions(E).forEach(pr=>{const so=pr.player,Cn=pr.element;if(Ts.push(so),this.collectedEnterElements.length){const ba=Cn[Pi];if(ba&&ba.setForMove){if(ba.previousTriggersValues&&ba.previousTriggersValues.has(pr.triggerName)){const Vc=ba.previousTriggersValues.get(pr.triggerName),_r=this.statesByElement.get(pr.element);if(_r&&_r.has(pr.triggerName)){const vs=_r.get(pr.triggerName);vs.value=Vc,_r.set(pr.triggerName,vs)}}return void so.destroy()}}const hn=!Xn||!this.driver.containsElement(Xn,Cn),Gn=ea.get(Cn),po=mr.get(Cn),Wr=this._buildInstruction(pr,V,po,Gn,hn);if(Wr.errors&&Wr.errors.length)return void ws.push(Wr);if(hn)return so.onStart(()=>Yi(Cn,Wr.fromStyles)),so.onDestroy(()=>vi(Cn,Wr.toStyles)),void Me.push(so);if(pr.isFallbackTransition)return so.onStart(()=>Yi(Cn,Wr.fromStyles)),so.onDestroy(()=>vi(Cn,Wr.toStyles)),void Me.push(so);const cc=[];Wr.timelines.forEach(ba=>{ba.stretchStartingKeyframe=!0,this.disabledNodes.has(ba.element)||cc.push(ba)}),Wr.timelines=cc,V.append(Cn,Wr.timelines),ht.push({instruction:Wr,player:so,element:Cn}),Wr.queriedElements.forEach(ba=>un(Mt,ba,[]).push(so)),Wr.preStyleProps.forEach((ba,Vc)=>{if(ba.size){let _r=jt.get(Vc);_r||jt.set(Vc,_r=new Set),ba.forEach((vs,H2)=>_r.add(H2))}}),Wr.postStyleProps.forEach((ba,Vc)=>{let _r=nn.get(Vc);_r||nn.set(Vc,_r=new Set),ba.forEach((vs,H2)=>_r.add(H2))})});if(ws.length){const lr=[];ws.forEach(Jt=>{lr.push(function Zt(q,N){return new a.\u0275RuntimeError(3505,!1)}())}),Ts.forEach(Jt=>Jt.destroy()),this.reportError(lr)}const Ki=new Map,wi=new Map;ht.forEach(lr=>{const Jt=lr.element;V.has(Jt)&&(wi.set(Jt,Jt),this._beforeAnimationBuild(lr.player.namespaceId,lr.instruction,Ki))}),Me.forEach(lr=>{const Jt=lr.element;this._getPreviousPlayers(Jt,!1,lr.namespaceId,lr.triggerName,null).forEach(so=>{un(Ki,Jt,[]).push(so),so.destroy()})});const ps=No.filter(lr=>Wa(lr,jt,nn)),Ua=new Map;Ls(Ua,this.driver,Ci,nn,dr.l3).forEach(lr=>{Wa(lr,jt,nn)&&ps.push(lr)});const Da=new Map;vr.forEach((lr,Jt)=>{Ls(Da,this.driver,new Set(lr),jt,dr.k1)}),ps.forEach(lr=>{var Jt,pr;const so=Ua.get(lr),Cn=Da.get(lr);Ua.set(lr,new Map([...Array.from(null!==(Jt=so?.entries())&&void 0!==Jt?Jt:[]),...Array.from(null!==(pr=Cn?.entries())&&void 0!==pr?pr:[])]))});const _s=[],gs=[],sc={};ht.forEach(lr=>{const{element:Jt,player:pr,instruction:so}=lr;if(V.has(Jt)){if(Bn.has(Jt))return pr.onDestroy(()=>vi(Jt,so.toStyles)),pr.disabled=!0,pr.overrideTotalTime(so.totalTime),void Me.push(pr);let Cn=sc;if(wi.size>1){let Gn=Jt;const po=[];for(;Gn=Gn.parentNode;){const Wr=wi.get(Gn);if(Wr){Cn=Wr;break}po.push(Gn)}po.forEach(Wr=>wi.set(Wr,Cn))}const hn=this._buildAnimation(pr.namespaceId,so,Ki,Be,Da,Ua);if(pr.setRealPlayer(hn),Cn===sc)_s.push(pr);else{const Gn=this.playersByElement.get(Cn);Gn&&Gn.length&&(pr.parentPlayer=rt(Gn)),Me.push(pr)}}else Yi(Jt,so.fromStyles),pr.onDestroy(()=>vi(Jt,so.toStyles)),gs.push(pr),Bn.has(Jt)&&Me.push(pr)}),gs.forEach(lr=>{const Jt=Be.get(lr.element);if(Jt&&Jt.length){const pr=rt(Jt);lr.setRealPlayer(pr)}}),Me.forEach(lr=>{lr.parentPlayer?lr.syncPlayerEvents(lr.parentPlayer):lr.destroy()});for(let lr=0;lr<No.length;lr++){const Jt=No[lr],pr=Jt[Pi];if(Qi(Jt,Ht),pr&&pr.hasAnimation)continue;let so=[];if(Mt.size){let hn=Mt.get(Jt);hn&&hn.length&&so.push(...hn);let Gn=this.driver.query(Jt,Yn,!0);for(let po=0;po<Gn.length;po++){let Wr=Mt.get(Gn[po]);Wr&&Wr.length&&so.push(...Wr)}}const Cn=so.filter(hn=>!hn.destroyed);Cn.length?ei(this,Jt,Cn):this.processLeaveNode(Jt)}return No.length=0,_s.forEach(lr=>{this.players.push(lr),lr.onDone(()=>{lr.destroy();const Jt=this.players.indexOf(lr);this.players.splice(Jt,1)}),lr.play()}),_s}elementContainsData(N,E){let V=!1;const Me=E[Pi];return Me&&Me.setForRemoval&&(V=!0),this.playersByElement.has(E)&&(V=!0),this.playersByQueriedElement.has(E)&&(V=!0),this.statesByElement.has(E)&&(V=!0),this._fetchNamespace(N).elementContainsData(E)||V}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,E,V,Me,Be){let ht=[];if(E){const Mt=this.playersByQueriedElement.get(N);Mt&&(ht=Mt)}else{const Mt=this.playersByElement.get(N);if(Mt){const jt=!Be||Be==Ea;Mt.forEach(nn=>{nn.queued||!jt&&nn.triggerName!=Me||ht.push(nn)})}}return(V||Me)&&(ht=ht.filter(Mt=>!(V&&V!=Mt.namespaceId||Me&&Me!=Mt.triggerName))),ht}_beforeAnimationBuild(N,E,V){const Be=E.element,ht=E.isRemovalTransition?void 0:N,Mt=E.isRemovalTransition?void 0:E.triggerName;for(const jt of E.timelines){const nn=jt.element,Bn=nn!==Be,Xn=un(V,nn,[]);this._getPreviousPlayers(nn,Bn,ht,Mt,E.toState).forEach(vr=>{const mr=vr.getRealPlayer();mr.beforeDestroy&&mr.beforeDestroy(),vr.destroy(),Xn.push(vr)})}Yi(Be,E.fromStyles)}_buildAnimation(N,E,V,Me,Be,ht){const Mt=E.triggerName,jt=E.element,nn=[],Bn=new Set,Xn=new Set,Yr=E.timelines.map(mr=>{const zr=mr.element;Bn.add(zr);const No=zr[Pi];if(No&&No.removedBeforeQueried)return new dr.ZN(mr.duration,mr.delay);const $o=zr!==jt,Ci=function Vi(q){const N=[];return ja(q,N),N}((V.get(zr)||nc).map(Ki=>Ki.getRealPlayer())).filter(Ki=>!!Ki.element&&Ki.element===zr),ea=Be.get(zr),ji=ht.get(zr),Ts=Yt(0,this._normalizer,0,mr.keyframes,ea,ji),ws=this._buildPlayer(mr,Ts,Ci);if(mr.subTimeline&&Me&&Xn.add(zr),$o){const Ki=new Hi(N,Mt,zr);Ki.setRealPlayer(ws),nn.push(Ki)}return ws});nn.forEach(mr=>{un(this.playersByQueriedElement,mr.element,[]).push(mr),mr.onDone(()=>function ds(q,N,E){let V=q.get(N);if(V){if(V.length){const Me=V.indexOf(E);V.splice(Me,1)}0==V.length&&q.delete(N)}return V}(this.playersByQueriedElement,mr.element,mr))}),Bn.forEach(mr=>Mi(mr,Mn));const vr=rt(Yr);return vr.onDestroy(()=>{Bn.forEach(mr=>Qi(mr,Mn)),vi(jt,E.toStyles)}),Xn.forEach(mr=>{un(Me,mr,[]).push(vr)}),vr}_buildPlayer(N,E,V){return E.length>0?this.driver.animate(N.element,E,N.duration,N.delay,N.easing,V):new dr.ZN(N.duration,N.delay)}}class Hi{constructor(N,E,V){this.namespaceId=N,this.triggerName=E,this.element=V,this._player=new dr.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(N){this._containsRealPlayer||(this._player=N,this._queuedCallbacks.forEach((E,V)=>{E.forEach(Me=>$t(N,V,void 0,Me))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const E=this._player;E.triggerCallback&&N.onStart(()=>E.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,E){un(this._queuedCallbacks,N,[]).push(E)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const E=this._player;E.triggerCallback&&E.triggerCallback(N)}}function Bi(q){return q&&1===q.nodeType}function Bc(q,N){const E=q.style.display;return q.style.display=N??"none",E}function Ls(q,N,E,V,Me){const Be=[];E.forEach(jt=>Be.push(Bc(jt)));const ht=[];V.forEach((jt,nn)=>{const Bn=new Map;jt.forEach(Xn=>{const Yr=N.computeStyle(nn,Xn,Me);Bn.set(Xn,Yr),(!Yr||0==Yr.length)&&(nn[Pi]=Ti,ht.push(nn))}),q.set(nn,Bn)});let Mt=0;return E.forEach(jt=>Bc(jt,Be[Mt++])),ht}function Xr(q,N){const E=new Map;if(q.forEach(Mt=>E.set(Mt,[])),0==N.length)return E;const Me=new Set(N),Be=new Map;function ht(Mt){if(!Mt)return 1;let jt=Be.get(Mt);if(jt)return jt;const nn=Mt.parentNode;return jt=E.has(nn)?nn:Me.has(nn)?1:ht(nn),Be.set(Mt,jt),jt}return N.forEach(Mt=>{const jt=ht(Mt);1!==jt&&E.get(jt).push(Mt)}),E}function Mi(q,N){var E;null===(E=q.classList)||void 0===E||E.add(N)}function Qi(q,N){var E;null===(E=q.classList)||void 0===E||E.remove(N)}function ei(q,N,E){rt(E).onDone(()=>q.processLeaveNode(N))}function ja(q,N){for(let E=0;E<q.length;E++){const V=q[E];V instanceof dr.ZE?ja(V.players,N):N.push(V)}}function Wa(q,N,E){const V=E.get(q);if(!V)return!1;let Me=N.get(q);return Me?V.forEach(Be=>Me.add(Be)):N.set(q,V),E.delete(q),!0}class zs{constructor(N,E,V){this.bodyNode=N,this._driver=E,this._normalizer=V,this._triggerCache={},this.onRemovalComplete=(Me,Be)=>{},this._transitionEngine=new Zs(N,E,V),this._timelineEngine=new Ja(N,E,V),this._transitionEngine.onRemovalComplete=(Me,Be)=>this.onRemovalComplete(Me,Be)}registerTrigger(N,E,V,Me,Be){const ht=N+"-"+Me;let Mt=this._triggerCache[ht];if(!Mt){const jt=[],Bn=it(this._driver,Be,jt,[]);if(jt.length)throw function br(q,N){return new a.\u0275RuntimeError(3404,!1)}();Mt=function As(q,N,E){return new bs(q,N,E)}(Me,Bn,this._normalizer),this._triggerCache[ht]=Mt}this._transitionEngine.registerTrigger(E,Me,Mt)}register(N,E){this._transitionEngine.register(N,E)}destroy(N,E){this._transitionEngine.destroy(N,E)}onInsert(N,E,V,Me){this._transitionEngine.insertNode(N,E,V,Me)}onRemove(N,E,V,Me){this._transitionEngine.removeNode(N,E,Me||!1,V)}disableAnimations(N,E){this._transitionEngine.markElementAsDisabled(N,E)}process(N,E,V,Me){if("@"==V.charAt(0)){const[Be,ht]=Pn(V);this._timelineEngine.command(Be,E,ht,Me)}else this._transitionEngine.trigger(N,E,V,Me)}listen(N,E,V,Me,Be){if("@"==V.charAt(0)){const[ht,Mt]=Pn(V);return this._timelineEngine.listen(ht,E,Mt,Be)}return this._transitionEngine.listen(N,E,V,Me,Be)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let o1=(()=>{class q{constructor(E,V,Me){this._element=E,this._startStyles=V,this._endStyles=Me,this._state=0;let Be=q.initialStylesByElement.get(E);Be||q.initialStylesByElement.set(E,Be=new Map),this._initialStyles=Be}start(){this._state<1&&(this._startStyles&&vi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vi(this._element,this._initialStyles),this._endStyles&&(vi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(q.initialStylesByElement.delete(this._element),this._startStyles&&(Yi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yi(this._element,this._endStyles),this._endStyles=null),vi(this._element,this._initialStyles),this._state=3)}}return q.initialStylesByElement=new WeakMap,q})();function rc(q){let N=null;return q.forEach((E,V)=>{(function a1(q){return"display"===q||"position"===q})(V)&&(N=N||new Map,N.set(V,E))}),N}class W1{constructor(N,E,V,Me){this.element=N,this.keyframes=E,this.options=V,this._specialStyles=Me,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=V.duration,this._delay=V.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const N=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,N,this.options),this._finalKeyframe=N.length?N[N.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(N){const E=[];return N.forEach(V=>{E.push(Object.fromEntries(V))}),E}_triggerWebAnimation(N,E,V){return N.animate(this._convertKeyframesToObject(E),V)}onStart(N){this._originalOnStartFns.push(N),this._onStartFns.push(N)}onDone(N){this._originalOnDoneFns.push(N),this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(N=>N()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}setPosition(N){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=N*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N=new Map;this.hasStarted()&&this._finalKeyframe.forEach((V,Me)=>{"offset"!==Me&&N.set(Me,this._finished?V:Fi(this.element,Me))}),this.currentSnapshot=N}triggerCallback(N){const E="start"===N?this._onStartFns:this._onDoneFns;E.forEach(V=>V()),E.length=0}}class y1{validateStyleProperty(N){return!0}validateAnimatableStyleProperty(N){return!0}matchesElement(N,E){return!1}containsElement(N,E){return tr(N,E)}getParentElement(N){return Hr(N)}query(N,E,V){return Po(N,E,V)}computeStyle(N,E,V){return window.getComputedStyle(N)[E]}animate(N,E,V,Me,Be,ht=[]){const jt={duration:V,delay:Me,fill:0==Me?"both":"forwards"};Be&&(jt.easing=Be);const nn=new Map,Bn=ht.filter(vr=>vr instanceof W1);(function ya(q,N){return 0===q||0===N})(V,Me)&&Bn.forEach(vr=>{vr.currentSnapshot.forEach((mr,zr)=>nn.set(zr,mr))});let Xn=function Ri(q){return q.length?q[0]instanceof Map?q:q.map(N=>gi(N)):[]}(E).map(vr=>Bo(vr));Xn=function Ha(q,N,E){if(E.size&&N.length){let V=N[0],Me=[];if(E.forEach((Be,ht)=>{V.has(ht)||Me.push(ht),V.set(ht,Be)}),Me.length)for(let Be=1;Be<N.length;Be++){let ht=N[Be];Me.forEach(Mt=>ht.set(Mt,Fi(q,Mt)))}}return N}(N,Xn,nn);const Yr=function So(q,N){let E=null,V=null;return Array.isArray(N)&&N.length?(E=rc(N[0]),N.length>1&&(V=rc(N[N.length-1]))):N instanceof Map&&(E=rc(N)),E||V?new o1(q,E,V):null}(N,Xn);return new W1(N,Xn,jt,Yr)}}let fs=(()=>{class q extends dr._j{constructor(E,V){super(),this._nextAnimationId=0,this._renderer=E.createRenderer(V.body,{id:"0",encapsulation:a.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(E){const V=this._nextAnimationId.toString();this._nextAnimationId++;const Me=Array.isArray(E)?(0,dr.vP)(E):E;return s1(this._renderer,null,V,"register",[Me]),new M1(V,this._renderer)}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(a.RendererFactory2),a.\u0275\u0275inject(I.DOCUMENT))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac}),q})();class M1 extends dr.LC{constructor(N,E){super(),this._id=N,this._renderer=E}create(N,E){return new Ss(this._id,N,E||{},this._renderer)}}class Ss{constructor(N,E,V,Me){this.id=N,this.element=E,this._renderer=Me,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",V)}_listen(N,E){return this._renderer.listen(this.element,`@@${this.id}:${N}`,E)}_command(N,...E){return s1(this._renderer,this.element,this.id,N,E)}onDone(N){this._listen("done",N)}onStart(N){this._listen("start",N)}onDestroy(N){this._listen("destroy",N)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(N){this._command("setPosition",N)}getPosition(){var N,E;return null!==(N=null===(E=this._renderer.engine.players[+this.id])||void 0===E?void 0:E.getPosition())&&void 0!==N?N:0}}function s1(q,N,E,V,Me){return q.setProperty(N,`@@${E}:${V}`,Me)}const pc="@.disabled";let C1=(()=>{class q{constructor(E,V,Me){this.delegate=E,this.engine=V,this._zone=Me,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),V.onRemovalComplete=(Be,ht)=>{const Mt=ht?.parentNode(Be);Mt&&ht.removeChild(Mt,Be)}}createRenderer(E,V){const Be=this.delegate.createRenderer(E,V);if(!(E&&V&&V.data&&V.data.animation)){let Bn=this._rendererCache.get(Be);return Bn||(Bn=new oc("",Be,this.engine,()=>this._rendererCache.delete(Be)),this._rendererCache.set(Be,Bn)),Bn}const ht=V.id,Mt=V.id+"-"+this._currentId;this._currentId++,this.engine.register(Mt,E);const jt=Bn=>{Array.isArray(Bn)?Bn.forEach(jt):this.engine.registerTrigger(ht,Mt,E,Bn.name,Bn)};return V.data.animation.forEach(jt),new _c(this,Mt,Be,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(E,V,Me){E>=0&&E<this._microtaskId?this._zone.run(()=>V(Me)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Be=>{const[ht,Mt]=Be;ht(Mt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([V,Me]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(a.RendererFactory2),a.\u0275\u0275inject(zs),a.\u0275\u0275inject(a.NgZone))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac}),q})();class oc{constructor(N,E,V,Me){this.namespaceId=N,this.delegate=E,this.engine=V,this._onDestroy=Me,this.destroyNode=this.delegate.destroyNode?Be=>E.destroyNode(Be):null}get data(){return this.delegate.data}destroy(){var N;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(N=this._onDestroy)||void 0===N||N.call(this)}createElement(N,E){return this.delegate.createElement(N,E)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,E){this.delegate.appendChild(N,E),this.engine.onInsert(this.namespaceId,E,N,!1)}insertBefore(N,E,V,Me=!0){this.delegate.insertBefore(N,E,V),this.engine.onInsert(this.namespaceId,E,N,Me)}removeChild(N,E,V){this.engine.onRemove(this.namespaceId,E,this.delegate,V)}selectRootElement(N,E){return this.delegate.selectRootElement(N,E)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,E,V,Me){this.delegate.setAttribute(N,E,V,Me)}removeAttribute(N,E,V){this.delegate.removeAttribute(N,E,V)}addClass(N,E){this.delegate.addClass(N,E)}removeClass(N,E){this.delegate.removeClass(N,E)}setStyle(N,E,V,Me){this.delegate.setStyle(N,E,V,Me)}removeStyle(N,E,V){this.delegate.removeStyle(N,E,V)}setProperty(N,E,V){"@"==E.charAt(0)&&E==pc?this.disableAnimations(N,!!V):this.delegate.setProperty(N,E,V)}setValue(N,E){this.delegate.setValue(N,E)}listen(N,E,V){return this.delegate.listen(N,E,V)}disableAnimations(N,E){this.engine.disableAnimations(N,E)}}class _c extends oc{constructor(N,E,V,Me,Be){super(E,V,Me,Be),this.factory=N,this.namespaceId=E}setProperty(N,E,V){"@"==E.charAt(0)?"."==E.charAt(1)&&E==pc?this.disableAnimations(N,V=void 0===V||!!V):this.engine.process(this.namespaceId,N,E.slice(1),V):this.delegate.setProperty(N,E,V)}listen(N,E,V){if("@"==E.charAt(0)){const Me=function hs(q){switch(q){case"body":return document.body;case"document":return document;case"window":return window;default:return q}}(N);let Be=E.slice(1),ht="";return"@"!=Be.charAt(0)&&([Be,ht]=function tn(q){const N=q.indexOf(".");return[q.substring(0,N),q.slice(N+1)]}(Be)),this.engine.listen(this.namespaceId,Me,Be,ht,Mt=>{this.factory.scheduleListenerCallback(Mt._data||-1,V,Mt)})}return this.delegate.listen(N,E,V)}}const gc=[{provide:dr._j,useClass:fs},{provide:O,useFactory:function Ao(){return new an}},{provide:zs,useClass:(()=>{class q extends zs{constructor(E,V,Me,Be){super(E.body,V,Me)}ngOnDestroy(){this.flush()}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(I.DOCUMENT),a.\u0275\u0275inject(Pt),a.\u0275\u0275inject(O),a.\u0275\u0275inject(a.ApplicationRef))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac}),q})()},{provide:a.RendererFactory2,useFactory:function Wc(q,N,E){return new C1(q,N,E)},deps:[o.se,zs,a.NgZone]}],ic=[{provide:Pt,useFactory:()=>new y1},{provide:a.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...gc],Uc=[{provide:Pt,useClass:ot},{provide:a.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...gc];let vc=(()=>{class q{static withConfig(E){return{ngModule:q,providers:E.disableAnimations?Uc:ic}}}return q.\u0275fac=function(E){return new(E||q)},q.\u0275mod=a.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=a.\u0275\u0275defineInjector({providers:ic,imports:[o.b2]}),q})();var yc=f(74524),ti=f(59973),ms=f(92198),be=f(24850),Re=f(22868),$e=f(29946);let tt=(()=>{class q{constructor(E){this.debugConsole=E,this.allowedDomains=[],this.allowedDomains=this.extractDomainsFromEnvironment()}intercept(E,V){if(!this.shouldLogRequest(E.url))return V.handle(E);const Me=Date.now();return V.handle(E).pipe((0,Re.b)({next:Be=>{if(Be instanceof Cr.HttpResponse){const ht=Date.now()-Me;try{this.debugConsole.addHttpLog(E.method,E.url,Be.status,ht,this.sanitizeRequest(E),this.sanitizeResponse(Be))}catch(Mt){console.warn("DebugHttpInterceptor: Failed to log success",Mt)}}},error:Be=>{const ht=Date.now()-Me;try{this.debugConsole.addHttpLog(E.method,E.url,Be.status||0,ht,this.sanitizeRequest(E),null,{message:Be.message,status:Be.status,statusText:Be.statusText,error:Be.error})}catch(Mt){console.warn("DebugHttpInterceptor: Failed to log error",Mt)}}}))}sanitizeRequest(E){return{method:E.method,url:E.url,headers:this.headersToObject(E.headers),body:E.body,params:E.params.keys().reduce((V,Me)=>(V[Me]=E.params.get(Me),V),{})}}sanitizeResponse(E){return{status:E.status,statusText:E.statusText,headers:this.headersToObject(E.headers),body:E.body}}headersToObject(E){const V={};return E.keys().forEach(Me=>{V[Me]=E.get(Me)}),V}extractDomainsFromEnvironment(){const E=[];if(se.N.url&&E.push(se.N.url),se.N.vo_url&&E.push(se.N.vo_url),se.N.lg_url&&E.push(se.N.lg_url),se.N.wc_url&&E.push(se.N.wc_url),se.N.logtron3000_url&&E.push(se.N.logtron3000_url),se.N.bookei_url){const V=se.N.bookei_url.match(/https?:\/\/([^\/]+)/);V&&E.push(V[1])}return E}shouldLogRequest(E){return![/^http:\/\/localhost/i,/^http:\/\/127\.0\.0\.1/i,/^http:\/\/10\./i,/^http:\/\/192\.168\./i,/capacitor:\/\//i,/ionic:\/\//i,/\.js$/i,/\.css$/i,/\.map$/i,/\.json$/i,/\.svg$/i,/\.png$/i,/\.jpg$/i,/\.jpeg$/i,/\.gif$/i,/\.woff/i,/\.ttf/i,/assets\//i,/node_modules\//i].some(Me=>Me.test(E))&&(0===this.allowedDomains.length||this.allowedDomains.some(Me=>E.includes(Me)))}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject($e.N))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac}),q})();var vt=f(87545),Ye=f(27221);let sn=(()=>{class q{constructor(E,V,Me,Be){this.utilsService=E,this.profileManagerService=V,this.http=Me,this.logService=Be,this.intervalOfTimeToRenew=3e5,this.lg_baseUrl=`${se.N.lg_protocol}://${se.N.lg_url}:${se.N.lg_port}`,this.vo_baseUrl=`${se.N.vo_protocol}://${se.N.vo_url}:${se.N.vo_port}`,this.cache={}}intercept(E,V){const{portal:Me,profile:Be,url:ht}=this.basesUrls(E);if(!Me)return V.handle(E);if(E.url.replace(ht,"").match(/^\/services\/(site|company)(\d|\w)+\/(.*)$/)&&Me){const nn=this.getProfileSelectedCompanyState(Me),Xn=!!(nn?.company&&nn?.company?.site&&nn?.company?.site?.instanceName)&&this.cache&&this.cache[nn?.company?.site?.instanceName]&&this.cache[nn?.company?.site?.instanceName][Be]&&this.cache[nn?.company?.site?.instanceName][Be].timestamp>0||!1,Yr=Xn&&this.cache[nn?.company?.site?.instanceName][Be]?.timestamp||Date.now();return!Xn||this.isExpired(Yr)?this.getBaseUrlPlatform(nn?.company.site.instanceName,ht,Be).pipe((0,vt.w)(vr=>{const mr=vr&&vr?.baseUrl?vr.baseUrl:"/";return this.createCache(nn?.company.site.instanceName,Be,mr),V.handle(this.addBaseUrl(E,mr))}),(0,Ye.K)(vr=>(this.logService.logError("http:Error","Interceptor",vr),V.handle(this.addBaseUrl(E,Xn&&this.cache[nn?.company?.site?.instanceName][Be]?.baseUrl||"/default"))))):V.handle(this.addBaseUrl(E,this.cache[nn?.company?.site?.instanceName][Be]?.baseUrl||"/"))}return V.handle(E)}getBaseUrlPlatform(E,V,Me){return this.http.get(`${V}/auth/base-platform-url/instance/${E}/profile/${Me}`)}addBaseUrl(E,V){const{url:Me,portal:Be}=this.basesUrls(E),ht=E.url.replace(Me,""),Mt=this.utilsService.newBaseUrlModifier(ht,V);return Be?E.clone({url:Me+Mt}):E}basesUrls(E){return E.url.includes(this.vo_baseUrl)?{portal:"VO",url:this.vo_baseUrl,profile:"voapp"}:E.url.includes(this.lg_baseUrl)?{portal:"LG",url:this.lg_baseUrl,profile:"lgapp"}:E.url.includes(se.N.wc_url)?{portal:"VO",url:se.N.wc_url,profile:"voapp"}:{portal:null,url:E.url,profile:""}}getProfileSelectedCompanyState(E){let V=null;return"LG"===E?(V=this.profileManagerService.getProfileLogistic(),V||(V=this.profileManagerService.getProfile())):(V=this.profileManagerService.getProfile(),V||(V=this.profileManagerService.getProfileLogistic())),V}isExpired(E){return Date.now()>E+this.intervalOfTimeToRenew}createCache(E,V,Me){this.cache[E]?this.cache[E][V]={baseUrl:Me,timestamp:Date.now()}:this.cache[E]={[V]:{baseUrl:Me,timestamp:Date.now()}}}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(h.FW),a.\u0275\u0275inject(h.v4),a.\u0275\u0275inject(Cr.HttpClient),a.\u0275\u0275inject(h.$V))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac}),q})();var Tn=f(591),cr=f(5254),Kn=f(61737);const ao=[{provide:Cr.HTTP_INTERCEPTORS,useClass:(()=>{class q{constructor(E,V){this.authService=E,this.managerTokenUaamobileService=V,this.isRefreshingToken=!1,this.refreshTokenSubject=new Tn.X(null),this.needsToken=Me=>{const Be=[/generate/gi,/terms/gi,/notify-token/gi,/pending-releases/gi,/pending-events/gi,/pending-count/gi,/api\/banner\/hasLog/gi,/api\/invite\/remove\/[a-zA-Z0-9-]+/gi,/api\/users\/update-mail-init/gi,/api\/users\/update-mail-finish/gi,/api\/account\/change-language/gi,/^.*\/api\/account\/?(\?.*)?$/gi,/validate-document/gi,/base-platform-url\/wcApp/gi,/api\/configurations\/notifications/gi,/csrf/gi],ht=[/api\/account\/check/gi,/api\/v2\/account\/register/gi,/api\/account\/register/gi,/api\/account\/activate/gi,/api\/account\/device-reset\/init/gi,/api\/account\/device-reset\/mailess-init/gi,/api\/account\/device-reset\/finish/gi];for(let Mt=0;Mt<ht.length;Mt++)if(-1!==Me.url.search(ht[Mt]))return!1;for(let Mt=0;Mt<Be.length;Mt++)if(-1!==Me.url.search(Be[Mt]))return Mt=Be.length,!0;return!1},this.doWithToken=(Me,Be)=>(0,cr.D)(this.authService.getToken()).pipe((0,vt.w)(ht=>(Me=Me.clone({setHeaders:{Authorization:"Bearer "+ht}}),Be.handle(Me).pipe((0,Re.b)(()=>{}),(0,Ye.K)(Mt=>Mt instanceof Cr.HttpErrorResponse&&401===Mt.status?this.handle401Error(Mt,Me,Be):(0,Kn._)(Mt))))))}intercept(E,V){return this.needsToken(E)?this.doWithToken(E,V):this.doWithoutToken(E,V)}doWithoutToken(E,V){return V.handle(E)}handle401Error(E,V,Me){if(this.isRefreshingToken)return this.refreshTokenSubject.pipe((0,ms.h)(Be=>null!==Be),(0,Ne.q)(1),(0,vt.w)(Be=>Me.handle(this.addToken(V,Me))));{this.refreshTokenSubject.next(null),this.isRefreshingToken=!0;const ht="error.account.not-found"===E?.error?.message,Mt="error.account.not-activated"===E?.error?.message;return!E||!E?.status||401!==E?.status||Mt||ht?(0,Kn._)(E):(0,cr.D)(this.managerTokenUaamobileService.getNewToken()).pipe((0,vt.w)(jt=>{jt&&console.log("new tkn",jt);const nn=V.clone({setHeaders:{Authorization:`Bearer ${jt}`}});return Me.handle(nn)}),(0,_e.x)(()=>{this.isRefreshingToken=!1}))}}addToken(E,V){return(0,cr.D)(this.managerTokenUaamobileService.initStartGetTokenUaaMobile()).pipe((0,vt.w)(Me=>{if(Me)return E.clone({setHeaders:{Authorization:`Bearer ${Me}`}}),V.handle(E)}))}}return q.\u0275fac=function(E){return new(E||q)(a.\u0275\u0275inject(h.e8),a.\u0275\u0275inject(h.FB))},q.\u0275prov=a.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})(),multi:!0},{provide:Cr.HTTP_INTERCEPTORS,useClass:sn,multi:!0},{provide:Cr.HTTP_INTERCEPTORS,useClass:Ue.t,multi:!0},{provide:Cr.HTTP_INTERCEPTORS,useClass:tt,multi:!0}],$i=function _o(){const q="key_language_current",N="en",E=["en","pt","es"],V=localStorage.getItem(q);if(V&&E.includes(V))return V;const Me=navigator.language?.toLowerCase();let Be=N;return Me&&(Me.startsWith("pt")?Be="pt":Me.startsWith("es")?Be="es":Me.startsWith("en")&&(Be="en")),E.includes(Be)?(localStorage.setItem(q,Be),Be):(localStorage.setItem(q,N),N)}(),Ii=[ao,or.e,wr.f,en.r,Gt.E,h.V6,k];class Qa{constructor(N,E,V){this.httpHandler=N,this.prefix=E,this.suffix=V}getTranslation(N){const E=new Cr.HttpRequest("GET",`${this.prefix}${N}${this.suffix}`);return this.httpHandler.handle(E).pipe((0,ti.X)(3),(0,ms.h)(V=>V instanceof Cr.HttpResponse),(0,be.U)(V=>V.body))}}const Ca={defaultLanguage:$i,loader:{provide:W.Zw,useFactory:function ca(q){return new Qa(q,"./assets/i18n/",".json")},deps:[Cr.HttpBackend]}};let qi=(()=>{class q{}return q.\u0275fac=function(E){return new(E||q)},q.\u0275mod=a.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=a.\u0275\u0275defineInjector({providers:[...Ii,{provide:g.RouteReuseStrategy,useClass:D.IonicRouteStrategy},h.dr],imports:[o.b2,vc,D.IonicModule.forRoot(),yc.Fw.forRoot({name:"__kaappofflinedblite",storeName:"_keyaccesspass"}),Cr.HttpClientModule,W.aw.forRoot(Ca),Tt.I,o.b2,D.IonicModule,Tt.I]}),q})(),Vn=(()=>{class q{}return q.\u0275fac=function(E){return new(E||q)},q.\u0275mod=a.\u0275\u0275defineNgModule({type:q,bootstrap:[ft]}),q.\u0275inj=a.\u0275\u0275defineInjector({imports:[qi,Te]}),q})();se.N.production&&(0,a.enableProdMode)(),o.q6().bootstrapModule(Vn).catch(q=>console.log({bootstrapError:q}))},92340:(Ge,$,f)=>{f.d($,{N:()=>a});const a={type:"homol",production:!0,protocol:"https",url:"fr34kuc450787d0376bh.visitantes.online",port:"443",vo_protocol:"https",lg_protocol:"https",vo_url:"h.visitantes.online",lg_url:"hlg.visitantes.online",bookei_url:"https://h.bookei.online",vo_port:"443",lg_port:"443",wc_url:"h.visitante.in",logtron3000_protocol:"https",logtron3000_url:"7r0u53r52afd3baf35f.visitantes.online",logtron3000_port:"443",logtronKey:"8662c0458964434de5e16c339a65a6e5f5c2798c",appInfo:{id:"keyaccesspass",name:"KeyAccess Pass",versionSuffix:"-homol",...f(4490).J},firebase:{apiKey:"AIzaSyDbOtIj4Mjx0ehH9B4R-sR4BaLURI-ucqc",authDomain:"keyaccess-cloud-notifica-7bf72.firebaseapp.com",databaseURL:"https://keyaccess-cloud-notifica-7bf72.firebaseio.com",projectId:"keyaccess-cloud-notifica-7bf72",storageBucket:"keyaccess-cloud-notifica-7bf72.appspot.com",messagingSenderId:"577861577478",appId:"1:577861577478:web:98b5617a47c9224f6e0c87",measurementId:"G-NP3X3HX9QM"}}},98246:(Ge,$,f)=>{function m(_e,we,Ee,le){var ze,Ue=arguments.length,ke=Ue<3?we:null===le?le=Object.getOwnPropertyDescriptor(we,Ee):le;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ke=Reflect.decorate(_e,we,Ee,le);else for(var ye=_e.length-1;ye>=0;ye--)(ze=_e[ye])&&(ke=(Ue<3?ze(ke):Ue>3?ze(we,Ee,ke):ze(we,Ee))||ke);return Ue>3&&ke&&Object.defineProperty(we,Ee,ke),ke}f.d($,{F5:()=>Ne,zF:()=>me});var xe=f(45449),he=f(3259);const Le=["qrcElement"];var Ce=(()=>{return(_e=Ce||(Ce={})).URL="url",_e.IMG="img",_e.CANVAS="canvas",Ce;var _e})(),ie=(()=>{return(_e=ie||(ie={})).LOW="L",_e.MEDIUM="M",_e.QUARTILE="Q",_e.HIGH="H",ie;var _e})();const se={elementType:Ce.URL,cssClass:"qrcode",value:"https://www.techiediaries.com",version:"",errorCorrectionLevel:ie.MEDIUM,margin:4,scale:4,width:10,colorDark:"#000",colorLight:"#FFF"};let me=(()=>{let _e=class{constructor(Ee){this.renderer=Ee,this.elementType=se.elementType,this.cssClass=se.cssClass,this.value=se.value,this.version=se.version,this.errorCorrectionLevel=se.errorCorrectionLevel,this.margin=se.margin,this.scale=se.scale,this.width=se.width,this.colorDark=se.colorDark,this.colorLight=se.colorLight}ngOnChanges(){this.createQRCode()}createQRCode(){if(!this.value)return;let Ee;this.elementType===Ce.CANVAS?(Ee=this.renderer.createElement("canvas"),this.toCanvas(Ee).then(()=>{this.renderElement(Ee)}).catch(le=>{this.removeElementChildren(),console.error(le)})):(Ee=this.renderer.createElement("img"),this.toDataURL().then(le=>{Ee.setAttribute("src",le),this.alt&&Ee.setAttribute("alt",this.alt),this.renderElement(Ee)}).catch(le=>{this.removeElementChildren(),console.error(le)}))}toDataURL(){return he.toDataURL(this.value,{version:this.version,errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,width:this.width,color:{dark:this.colorDark,light:this.colorLight}})}toCanvas(Ee){return he.toCanvas(Ee,this.value,{version:this.version,errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,width:this.width,color:{dark:this.colorDark,light:this.colorLight}})}renderElement(Ee){this.removeElementChildren(),this.renderer.appendChild(this.qrcElement.nativeElement,Ee)}removeElementChildren(){for(const Ee of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,Ee)}};return _e.\u0275fac=function(Ee){return new(Ee||_e)(xe.\u0275\u0275directiveInject(xe.Renderer2))},_e.\u0275cmp=xe.\u0275\u0275defineComponent({type:_e,selectors:[["ngx-qrcode"]],viewQuery:function(Ee,le){if(1&Ee&&xe.\u0275\u0275viewQuery(Le,5),2&Ee){let Ue;xe.\u0275\u0275queryRefresh(Ue=xe.\u0275\u0275loadQuery())&&(le.qrcElement=Ue.first)}},inputs:{elementType:"elementType",cssClass:"cssClass",value:"value",version:"version",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",colorDark:"colorDark",colorLight:"colorLight",alt:"alt"},features:[xe.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[["qrcElement",""]],template:function(Ee,le){1&Ee&&xe.\u0275\u0275element(0,"div",null,0),2&Ee&&xe.\u0275\u0275classMap(le.cssClass)},encapsulation:2,changeDetection:0}),m([(0,xe.Input)()],_e.prototype,"elementType",void 0),m([(0,xe.Input)()],_e.prototype,"cssClass",void 0),m([(0,xe.Input)()],_e.prototype,"alt",void 0),m([(0,xe.Input)()],_e.prototype,"value",void 0),m([(0,xe.Input)()],_e.prototype,"version",void 0),m([(0,xe.Input)()],_e.prototype,"errorCorrectionLevel",void 0),m([(0,xe.Input)()],_e.prototype,"margin",void 0),m([(0,xe.Input)()],_e.prototype,"scale",void 0),m([(0,xe.Input)()],_e.prototype,"width",void 0),m([(0,xe.Input)()],_e.prototype,"colorDark",void 0),m([(0,xe.Input)()],_e.prototype,"colorLight",void 0),m([(0,xe.ViewChild)("qrcElement")],_e.prototype,"qrcElement",void 0),_e})(),Ne=(()=>{let _e=class{};return _e.\u0275fac=function(Ee){return new(Ee||_e)},_e.\u0275mod=xe.\u0275\u0275defineNgModule({type:_e}),_e.\u0275inj=xe.\u0275\u0275defineInjector({}),_e})()},70079:(Ge,$,f)=>{f.d($,{bS:()=>m,CR:()=>h,Tx:()=>L});var o=f(90944),a=f(45449),g=f(24006),h=function v(){this.type="alfa",this.decimal=2,this.decimalCaracter=",",this.userCaracters=!1,this.numberAndTousand=!1,this.moneyInitHasInt=!0},m=function(){function v(b,k){this.controlContainer=b,this.elementRef=k,this.brmasker=new h}return v.prototype.inputKeyup=function(b){var k=this.returnValue(b.target.value);this.setValueInFormControl(k)},v.prototype.onNgModelChange=function(b){var k=this.returnValue(b);k&&this.setValueInFormControl(k,!1)},v.prototype.ngOnInit=function(){this.brmasker.type||(this.brmasker.type="all"),this.brmasker.decimal||(this.brmasker.decimal=2),void 0===this.brmasker.moneyInitHasInt&&(this.brmasker.moneyInitHasInt=!0),this.brmasker.decimalCaracter||(this.brmasker.decimalCaracter=","),this.controlContainer?this.formControlName?this.brmasker.form=this.controlContainer.control.get(this.formControlName):console.warn("Missing FormControlName directive from host element of the component"):console.warn("Can't find parent FormGroup directive"),this.initialValue()},v.prototype.initialValue=function(){var b=this.returnValue(this.elementRef.nativeElement.value);this.setValueInFormControl(b)},v.prototype.verifyFormControl=function(){return this.brmasker.form instanceof g.FormControl},v.prototype.setValueInFormControl=function(b,k){this.verifyFormControl()?(this.brmasker.form.setValue(b,{emitViewToModelChange:k}),this.brmasker.form.updateValueAndValidity()):this.elementRef.nativeElement.value=b},v.prototype.writeCreateValue=function(b,k){return void 0===k&&(k=new h),b&&k.phone?b.replace(/^(?:(?:\+|00)?(55)\s?)?(?:\(?([1-9][0-9])\)?\s?)?(?:((?:9\d|[2-9])\d{3})\-?(\d{4}))$/gi,"$1 ($2) $3-$4"):b&&k.phoneNotDDD?this.phoneNotDDDMask(b):b&&k.money?this.writeValueMoney(b,k):b&&k.person?this.writeValuePerson(b):b&&k.percent?this.writeValuePercent(b):this.brmasker.userCaracters?this.usingSpecialCharacters(b,this.brmasker.mask,this.brmasker.len):b&&k.mask?(this.brmasker.mask=k.mask,k.len&&(this.brmasker.len=k.len),this.onInput(b)):b},v.prototype.writeValuePercent=function(b){return b.replace(/\D/gi,""),b.replace(/%/gi,""),b.replace(/([0-9]{0})$/gi,"%$1")},v.prototype.writeValuePerson=function(b){return b.length<=11?b.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/gi,"$1.$2.$3-$4"):b.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/gi,"$1.$2.$3/$4-$5")},v.prototype.writeValueMoney=function(b,k){return void 0===k&&(k=new h),this.moneyMask(b,k)},v.prototype.returnValue=function(b){if(this.brmasker.mask||(this.brmasker.mask=""),b){var k=b;return"alfa"===this.brmasker.type&&(k=k.replace(/\d/gi,"")),"num"===this.brmasker.type&&(k=k.replace(/\D/gi,"")),this.brmasker.money?this.moneyMask(this.onInput(k),this.brmasker):this.brmasker.phone?this.phoneMask(k):this.brmasker.phoneNotDDD?this.phoneNotDDDMask(k):this.brmasker.person?this.peapollMask(k):this.brmasker.percent?this.percentMask(k):this.brmasker.numberAndTousand?this.thousand(k):this.brmasker.userCaracters?this.usingSpecialCharacters(k,this.brmasker.mask,this.brmasker.len):this.onInput(k)}return""},v.prototype.applyCpfMask=function(b){return(b=(b=(b=b.replace(/\D/gi,"")).replace(/(\d{3})(\d)/gi,"$1.$2")).replace(/(\d{3})(\d)/gi,"$1.$2")).replace(/(\d{3})(\d{1,2})$/gi,"$1-$2")},v.prototype.applyCnpjMask=function(b){return(b=(b=(b=(b=(b=b.replace(/\D/gi,"")).replace(/(\d{2})(\d)/gi,"$1.$2")).replace(/(\d{3})(\d)/gi,"$1.$2")).replace(/(\d{3})(\d)/gi,"$1/$2")).replace(/(\d{4})(\d{1,4})$/gi,"$1-$2")).replace(/(\d{2})(\d{1,2})$/gi,"$1$2")},v.prototype.percentMask=function(b){var k=b;return(k=(k=k.replace(/\D/gi,"")).replace(/%/gi,"")).replace(/([0-9]{0})$/gi,"%$1")},v.prototype.phoneMask=function(b){var k=b;return k.length>14||11===k.length?(this.brmasker.len=15,this.brmasker.mask="(99) 99999-9999",k=(k=(k=(k=k.replace(/\D/gi,"")).replace(/(\d{2})(\d)/gi,"$1 $2")).replace(/(\d{5})(\d)/gi,"$1-$2")).replace(/(\d{4})(\d)/gi,"$1$2")):(this.brmasker.len=14,this.brmasker.mask="(99) 9999-9999",k=(k=(k=(k=k.replace(/\D/gi,"")).replace(/(\d{2})(\d)/gi,"$1 $2")).replace(/(\d{4})(\d)/gi,"$1-$2")).replace(/(\d{4})(\d)/gi,"$1$2")),this.onInput(k)},v.prototype.phoneNotDDDMask=function(b){var k=b;return k.length>9?(this.brmasker.len=10,this.brmasker.mask="99999-9999",k=(k=(k=k.replace(/\D/gi,"")).replace(/(\d{5})(\d)/gi,"$1-$2")).replace(/(\d{4})(\d)/gi,"$1$2")):(this.brmasker.len=9,this.brmasker.mask="9999-9999",k=(k=(k=k.replace(/\D/gi,"")).replace(/(\d{4})(\d)/gi,"$1-$2")).replace(/(\d{4})(\d)/gi,"$1$2")),this.onInput(k)},v.prototype.peapollMask=function(b){var k=b;return k.length>=14?14===k.length&&k.indexOf("-")>0?(this.brmasker.len=14,this.brmasker.mask="999.999.999-99",k=this.applyCpfMask(k)):(this.brmasker.len=18,this.brmasker.mask="99.999.999/9999-99",k=this.applyCnpjMask(k)):(this.brmasker.len=14,this.brmasker.mask="999.999.999-99",k=this.applyCpfMask(k)),this.onInput(k)},v.prototype.moneyMask=function(b,k){var F=k.decimal||this.brmasker.decimal;if(1===(b=b.replace(/\D/gi,"").replace(new RegExp("([0-9]{"+F+"})$","g"),k.decimalCaracter+"$1")).length&&!this.brmasker.moneyInitHasInt){var Y=Array(F-1).fill(0);return"0"+k.decimalCaracter+Y.join("")+b}return b.length===F+1?"0"+b:b.length>F+2&&"0"===b.charAt(0)?b.substr(1):(k.thousand&&b.length>Number(4)+Number(k.decimal)&&(b=b.replace(new RegExp("([0-9]{3})"+k.decimalCaracter+"([0-9]{"+k.decimal+"}$)","g"),k.thousand+"$1"+k.decimalCaracter+"$2")),k.thousand&&b.length>Number(8)+Number(k.decimal)&&(b=b.replace(new RegExp("([0-9]{3})"+k.thousand+"([0-9]{3})"+k.decimalCaracter+"([0-9]{"+k.decimal+"}$)","g"),k.thousand+"$1"+k.thousand+"$2"+k.decimalCaracter+"$3")),b)},v.prototype.onInput=function(b){return this.formatField(b,this.brmasker.mask,this.brmasker.len)},v.prototype.usingSpecialCharacters=function(b,k,F){F||(F=99999999999);for(var D=b.toString().replace(/\-|\.|\,| /gi,""),j=0,W="",de=D.length,K=0;K<de;K++)K<F&&("-"===k.charAt(K)||"."===k.charAt(K)||","===k.charAt(K)?(W+=k.charAt(K),de++):(W+=D.charAt(j),j++));return W},v.prototype.thousand=function(b){var Y=b.replace(/\D/gi,"").toString().split("").reverse().join("").match(/\d{1,3}/g);if(Y)return Y.join(""+(this.brmasker.thousand||".")).split("").reverse().join("")},v.prototype.formatField=function(b,k,F){F||(F=99999999999);for(var D=b.toString().replace(/\_|\-|\.|\/|\(|\)|\,|\*|\+|\@|\#|\$|\&|\%|\:| /gi,""),j=0,W="",de=D.length,K=0;K<de;K++)K<F&&("-"===k.charAt(K)||"."===k.charAt(K)||"/"===k.charAt(K)||"_"===k.charAt(K)||"("===k.charAt(K)||")"===k.charAt(K)||" "===k.charAt(K)||","===k.charAt(K)||"*"===k.charAt(K)||"+"===k.charAt(K)||"@"===k.charAt(K)||"#"===k.charAt(K)||":"===k.charAt(K)||"$"===k.charAt(K)||"&"===k.charAt(K)||"%"===k.charAt(K)?(W+=k.charAt(K),de++):(W+=D.charAt(j),j++));return W},v.\u0275fac=function(k){return new(k||v)(a.\u0275\u0275directiveInject(g.FormGroupDirective,13),a.\u0275\u0275directiveInject(a.ElementRef))},v.\u0275dir=a.\u0275\u0275defineDirective({type:v,selectors:[["","brmasker",""]],hostBindings:function(k,F){1&k&&a.\u0275\u0275listener("keyup",function(I){return F.inputKeyup(I)})("ngModelChange",function(I){return F.onNgModelChange(I)})},inputs:{brmasker:"brmasker",formControlName:"formControlName"}}),v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:function(b){return v.\u0275fac(b)}}),v}();m.ctorParameters=function(){return[{type:g.FormGroupDirective,decorators:[{type:a.Optional},{type:a.Host},{type:a.SkipSelf}]},{type:a.ElementRef}]},m.propDecorators={brmasker:[{type:a.Input}],formControlName:[{type:a.Input}],inputKeyup:[{type:a.HostListener,args:["keyup",["$event"]]}],onNgModelChange:[{type:a.HostListener,args:["ngModelChange",["$event"]]}]};var L=function(){function v(){}return v.\u0275fac=function(k){return new(k||v)},v.\u0275mod=a.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=a.\u0275\u0275defineInjector({imports:[o.CommonModule]}),v}();L.ctorParameters=function(){return[]}},74901:Ge=>{var $={single_source_shortest_paths:function(f,o,a){var g={},h={};h[o]=0;var L,v,b,k,F,I,m=$.PriorityQueue.make();for(m.push(o,0);!m.empty();)for(b in k=(L=m.pop()).cost,F=f[v=L.value]||{})F.hasOwnProperty(b)&&(I=k+F[b],(typeof h[b]>"u"||h[b]>I)&&(h[b]=I,m.push(b,I),g[b]=v));if(typeof a<"u"&&typeof h[a]>"u"){var W=["Could not find a path from ",o," to ",a,"."].join("");throw new Error(W)}return g},extract_shortest_path_from_predecessor_list:function(f,o){for(var a=[],g=o;g;)a.push(g),g=f[g];return a.reverse(),a},find_path:function(f,o,a){var g=$.single_source_shortest_paths(f,o,a);return $.extract_shortest_path_from_predecessor_list(g,a)},PriorityQueue:{make:function(f){var g,o=$.PriorityQueue,a={};for(g in f=f||{},o)o.hasOwnProperty(g)&&(a[g]=o[g]);return a.queue=[],a.sorter=f.sorter||o.default_sorter,a},default_sorter:function(f,o){return f.cost-o.cost},push:function(f,o){this.queue.push({value:f,cost:o}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ge.exports=$},37609:function(Ge,$,f){var o=f(45449),a=f(90603),g=f(33291),h=this&&this.__assign||function(){return h=Object.assign||function(I){for(var D,j=1,W=arguments.length;j<W;j++)for(var de in D=arguments[j])Object.prototype.hasOwnProperty.call(D,de)&&(I[de]=D[de]);return I},h.apply(this,arguments)},m=this&&this.__decorate||function(I,D,j,W){var ee,de=arguments.length,K=de<3?D:null===W?W=Object.getOwnPropertyDescriptor(D,j):W;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)K=Reflect.decorate(I,D,j,W);else for(var De=I.length-1;De>=0;De--)(ee=I[De])&&(K=(de<3?ee(K):de>3?ee(D,j,K):ee(D,j))||K);return de>3&&K&&Object.defineProperty(D,j,K),K},L=this&&this.__metadata||function(I,D){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(I,D)};Object.defineProperty($,"__esModule",{value:!0}),f(45449);var b=f(90603),k=f(27834),F=f(33291),Y=function(){function I(D,j){this.modalCtrl=D,this.calSvc=j}return I.prototype.openCalendar=function(D,j){void 0===j&&(j={});var W=this.calSvc.safeOpt(D);return this.modalCtrl.create(h({component:k.CalendarModal,componentProps:{options:W}},j)).then(function(de){return de.present(),de.onDidDismiss().then(function(K){return K.data?Promise.resolve(K.data):Promise.reject("cancelled")})})},(I=m([L("design:paramtypes",[b.ModalController,F.CalendarService])],I)).\u0275fac=function(j){return new(j||I)(o.\u0275\u0275inject(a.ModalController),o.\u0275\u0275inject(g.CalendarService))},I.\u0275prov=o.\u0275\u0275defineInjectable({token:I,factory:function(D){return I.\u0275fac(D)}}),I}();$.CalendarController=Y},25254:(Ge,$)=>{Object.defineProperty($,"__esModule",{value:!0}),$.CalendarMonth=function g(){},$.CalendarResult=function g(){},$.CalendarComponentMonthChange=function g(){}},17637:function(Ge,$,f){var o=f(45449);f(27834),f(2329),f(76537),f(90990),f(98899),f(90944),f(90603),f(24006),Object.defineProperty($,"__esModule",{value:!0}),f(45449);var I=f(24006),D=f(90944),j=f(90603),W=f(37609),de=f(46153),K=f(33291);function De(ce,oe){return new W.CalendarController(ce,oe)}f(47751),$.calendarController=De;var Te=function(){function ce(){}var oe;return oe=ce,ce.forRoot=function(te){return void 0===te&&(te={}),{ngModule:oe,providers:[{provide:de.DEFAULT_CALENDAR_OPTIONS,useValue:te}]}},ce.\u0275fac=function(ge){return new(ge||ce)},ce.\u0275mod=o.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=o.\u0275\u0275defineInjector({providers:[K.CalendarService,{provide:W.CalendarController,useFactory:De,deps:[j.ModalController,K.CalendarService]}],imports:[D.CommonModule,j.IonicModule,I.FormsModule]}),ce}();$.CalendarModule=Te},2329:function(Ge,$,f){var o=f(45449),a=f(90944),g=f(90603);function h(F,Y){if(1&F&&(o.\u0275\u0275elementStart(0,"li"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&F){var I=Y.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(I)}}var m=this&&this.__decorate||function(F,Y,I,D){var de,j=arguments.length,W=j<3?Y:null===D?D=Object.getOwnPropertyDescriptor(Y,I):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(F,Y,I,D);else for(var K=F.length-1;K>=0;K--)(de=F[K])&&(W=(j<3?de(W):j>3?de(Y,I,W):de(Y,I))||W);return j>3&&W&&Object.defineProperty(Y,I,W),W},L=this&&this.__metadata||function(F,Y){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,Y)};Object.defineProperty($,"__esModule",{value:!0});var v=f(45449),b=f(5411),k=function(){function F(){this._weekArray=b.defaults.WEEKS_FORMAT,this._displayWeekArray=this._weekArray,this._weekStart=0,this.color=b.defaults.COLOR}return Object.defineProperty(F.prototype,"weekArray",{set:function(Y){Y&&7===Y.length&&(this._weekArray=Y.slice(),this.adjustSort())},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"weekStart",{set:function(Y){(0===Y||1===Y)&&(this._weekStart=Y,this.adjustSort())},enumerable:!0,configurable:!0}),F.prototype.adjustSort=function(){if(1===this._weekStart){var Y=this._weekArray.slice();Y.push(Y.shift()),this._displayWeekArray=Y.slice()}else 0===this._weekStart&&(this._displayWeekArray=this._weekArray.slice())},m([v.Input(),L("design:type",String)],F.prototype,"color",void 0),m([v.Input(),L("design:type",Array),L("design:paramtypes",[Array])],F.prototype,"weekArray",null),m([v.Input(),L("design:type",Number),L("design:paramtypes",[Number])],F.prototype,"weekStart",null),(F=m([L("design:paramtypes",[])],F)).\u0275fac=function(I){return new(I||F)},F.\u0275cmp=o.\u0275\u0275defineComponent({type:F,selectors:[["ion-calendar-week"]],inputs:{color:"color",weekArray:"weekArray",weekStart:"weekStart"},decls:3,vars:5,consts:[["no-border-top",""],[4,"ngFor","ngForOf"]],template:function(I,D){1&I&&(o.\u0275\u0275elementStart(0,"ion-toolbar",0)(1,"ul"),o.\u0275\u0275template(2,h,2,1,"li",1),o.\u0275\u0275elementEnd()()),2&I&&(o.\u0275\u0275classMap("week-toolbar "+D.color),o.\u0275\u0275advance(1),o.\u0275\u0275classMap("week-title "+D.color),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",D._displayWeekArray))},dependencies:[a.NgForOf,g.IonToolbar],styles:["[_nghost-%COMP%] .toolbar-background-md[_ngcontent-%COMP%], [_nghost-%COMP%] .toolbar-background-ios[_ngcontent-%COMP%] {\n background: transparent; }\n\n[_nghost-%COMP%] .week-toolbar[_ngcontent-%COMP%] {\n --padding-start: 0;\n --padding-end: 0;\n --padding-bottom: 0;\n --padding-top: 0; }\n [_nghost-%COMP%] .week-toolbar.primary[_ngcontent-%COMP%] {\n --background: var(--ion-color-primary); }\n [_nghost-%COMP%] .week-toolbar.secondary[_ngcontent-%COMP%] {\n --background: var(--ion-color-secondary); }\n [_nghost-%COMP%] .week-toolbar.danger[_ngcontent-%COMP%] {\n --background: var(--ion-color-danger); }\n [_nghost-%COMP%] .week-toolbar.dark[_ngcontent-%COMP%] {\n --background: var(--ion-color-dark); }\n [_nghost-%COMP%] .week-toolbar.light[_ngcontent-%COMP%] {\n --background: var(--ion-color-light); }\n [_nghost-%COMP%] .week-toolbar.transparent[_ngcontent-%COMP%] {\n --background: transparent; }\n [_nghost-%COMP%] .week-toolbar.toolbar-md[_ngcontent-%COMP%] {\n min-height: 44px; }\n\n[_nghost-%COMP%] .week-title[_ngcontent-%COMP%] {\n margin: 0;\n height: 44px;\n width: 100%;\n padding: 15px 0;\n color: #fff;\n font-size: 0.9em; }\n [_nghost-%COMP%] .week-title.light[_ngcontent-%COMP%], [_nghost-%COMP%] .week-title.transparent[_ngcontent-%COMP%] {\n color: #9e9e9e; }\n [_nghost-%COMP%] .week-title[_ngcontent-%COMP%] li[_ngcontent-%COMP%] {\n list-style-type: none;\n display: block;\n float: left;\n width: 14%;\n text-align: center; }\n [_nghost-%COMP%] .week-title[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-of-type(7n), [_nghost-%COMP%] .week-title[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-of-type(7n + 1) {\n width: 15%; }"]}),F}();$.CalendarWeekComponent=k},90990:function(Ge,$,f){var o=f(45449),a=f(33291),g=f(90944),h=f(90603),m=f(24006),L=f(2329),v=f(76537),b=f(98899);function k(te,ge){if(1&te){var xe=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-button",5),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(xe);var Ce=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ce.switchView())}),o.\u0275\u0275pipe(1,"date"),o.\u0275\u0275text(2),o.\u0275\u0275element(3,"ion-icon",6),o.\u0275\u0275elementEnd()}if(2&te){var he=o.\u0275\u0275nextContext();o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind2(1,3,he.getDate(he.monthOpt.original.time),he.MONTH_DATE_FORMAT)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",he._monthFormat(he.monthOpt.original.time)," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("name","days"===he._view?he._compatibleIcons.caretDown:he._compatibleIcons.caretUp)}}function F(te,ge){if(1&te&&(o.\u0275\u0275elementStart(0,"div",7),o.\u0275\u0275pipe(1,"date"),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd()),2&te){var xe=o.\u0275\u0275nextContext();o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind2(1,2,xe.getDate(xe.monthOpt.original.time),xe.MONTH_DATE_FORMAT)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",xe._monthFormat(xe.monthOpt.original.time)," ")}}function Y(te,ge){if(1&te){var xe=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-button",8),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(xe);var Ce=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ce.prev())}),o.\u0275\u0275element(1,"ion-icon",9),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(2,"ion-button",10),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(xe);var Ce=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ce.next())}),o.\u0275\u0275element(3,"ion-icon",9),o.\u0275\u0275elementEnd()}if(2&te){var he=o.\u0275\u0275nextContext();o.\u0275\u0275property("disabled",!he.canBack()),o.\u0275\u0275advance(1),o.\u0275\u0275property("name",he._compatibleIcons.chevronBack),o.\u0275\u0275advance(1),o.\u0275\u0275property("disabled",!he.canNext()),o.\u0275\u0275advance(1),o.\u0275\u0275property("name",he._compatibleIcons.chevronForward)}}function I(te,ge){if(1&te){var xe=o.\u0275\u0275getCurrentView();o.\u0275\u0275element(0,"ion-calendar-week",11),o.\u0275\u0275elementStart(1,"ion-calendar-month",12),o.\u0275\u0275listener("ngModelChange",function(Ce){o.\u0275\u0275restoreView(xe);var ie=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ie._calendarMonthValue=Ce)})("change",function(Ce){o.\u0275\u0275restoreView(xe);var ie=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ie.onChanged(Ce))})("swipe",function(Ce){o.\u0275\u0275restoreView(xe);var ie=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ie.swipeEvent(Ce))})("select",function(Ce){o.\u0275\u0275restoreView(xe);var ie=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ie.select.emit(Ce))})("selectStart",function(Ce){o.\u0275\u0275restoreView(xe);var ie=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ie.selectStart.emit(Ce))})("selectEnd",function(Ce){o.\u0275\u0275restoreView(xe);var ie=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ie.selectEnd.emit(Ce))}),o.\u0275\u0275elementEnd()}if(2&te){var he=o.\u0275\u0275nextContext();o.\u0275\u0275property("weekArray",he._d.weekdays)("weekStart",he._d.weekStart),o.\u0275\u0275advance(1),o.\u0275\u0275property("componentMode",!0)("ngModel",he._calendarMonthValue)("month",he.monthOpt)("readonly",he.readonly)("pickMode",he._d.pickMode)("color",he._d.color)}}function D(te,ge){if(1&te){var xe=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-calendar-month-picker",13),o.\u0275\u0275listener("select",function(Ce){o.\u0275\u0275restoreView(xe);var ie=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(ie.monthOnSelect(Ce))}),o.\u0275\u0275elementEnd()}if(2&te){var he=o.\u0275\u0275nextContext();o.\u0275\u0275property("color",he._d.color)("monthFormat",null==he._options?null:he._options.monthPickerFormat)("month",he.monthOpt)}}var j=this&&this.__decorate||function(te,ge,xe,he){var ie,Le=arguments.length,Ce=Le<3?ge:null===he?he=Object.getOwnPropertyDescriptor(ge,xe):he;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ce=Reflect.decorate(te,ge,xe,he);else for(var se=te.length-1;se>=0;se--)(ie=te[se])&&(Ce=(Le<3?ie(Ce):Le>3?ie(ge,xe,Ce):ie(ge,xe))||Ce);return Le>3&&Ce&&Object.defineProperty(ge,xe,Ce),Ce},W=this&&this.__metadata||function(te,ge){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(te,ge)};Object.defineProperty($,"__esModule",{value:!0});var de=f(45449),K=f(33291),ee=f(24006),De=f(15439),Te=f(5411),ce=f(36161);$.ION_CAL_VALUE_ACCESSOR={provide:ee.NG_VALUE_ACCESSOR,useExisting:de.forwardRef(function(){return oe}),multi:!0};var oe=function(){function te(ge){this.calSvc=ge,this._view="days",this._calendarMonthValue=[null,null],this._showToggleButtons=!0,this._showMonthPicker=!0,this.format=Te.defaults.DATE_FORMAT,this.type="string",this.readonly=!1,this.change=new de.EventEmitter,this.monthChange=new de.EventEmitter,this.select=new de.EventEmitter,this.selectStart=new de.EventEmitter,this.selectEnd=new de.EventEmitter,this.MONTH_DATE_FORMAT="MMMM yyyy",this._onChanged=function(){},this._onTouched=function(){},this._compatibleIcons=ce.isIonIconsV4()?{caretDown:"md-arrow-dropdown",caretUp:"md-arrow-dropup",chevronBack:"ios-arrow-back",chevronForward:"ios-arrow-forward"}:{caretDown:"caret-down-outline",caretUp:"caret-up-outline",chevronBack:"chevron-back-outline",chevronForward:"chevron-forward-outline"}}return Object.defineProperty(te.prototype,"showToggleButtons",{get:function(){return this._showToggleButtons},set:function(ge){this._showToggleButtons=ge},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"showMonthPicker",{get:function(){return this._showMonthPicker},set:function(ge){this._showMonthPicker=ge},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"options",{get:function(){return this._options},set:function(ge){this._options=ge,this.initOpt(),this.monthOpt&&this.monthOpt.original&&(this.monthOpt=this.createMonth(this.monthOpt.original.time))},enumerable:!0,configurable:!0}),te.prototype.ngOnInit=function(){this.initOpt(),this.monthOpt=this.createMonth((new Date).getTime())},te.prototype.getViewDate=function(){return this._handleType(this.monthOpt.original.time)},te.prototype.getDate=function(ge){return new Date(ge)},te.prototype.setViewDate=function(ge){this.monthOpt=this.createMonth(this._payloadToTimeNumber(ge))},te.prototype.switchView=function(){this._view="days"===this._view?"month":"days"},te.prototype.prev=function(){"days"===this._view?this.backMonth():this.prevYear()},te.prototype.next=function(){"days"===this._view?this.nextMonth():this.nextYear()},te.prototype.prevYear=function(){if(1970!==De(this.monthOpt.original.time).year()){var ge=De(this.monthOpt.original.time).subtract(1,"year").valueOf();this.monthOpt=this.createMonth(ge)}},te.prototype.nextYear=function(){var ge=De(this.monthOpt.original.time).add(1,"year").valueOf();this.monthOpt=this.createMonth(ge)},te.prototype.nextMonth=function(){var ge=De(this.monthOpt.original.time).add(1,"months").valueOf();this.monthChange.emit({oldMonth:this.calSvc.multiFormat(this.monthOpt.original.time),newMonth:this.calSvc.multiFormat(ge)}),this.monthOpt=this.createMonth(ge)},te.prototype.canNext=function(){return!this._d.to||"days"!==this._view||this.monthOpt.original.time<De(this._d.to).valueOf()},te.prototype.backMonth=function(){var ge=De(this.monthOpt.original.time).subtract(1,"months").valueOf();this.monthChange.emit({oldMonth:this.calSvc.multiFormat(this.monthOpt.original.time),newMonth:this.calSvc.multiFormat(ge)}),this.monthOpt=this.createMonth(ge)},te.prototype.canBack=function(){return!this._d.from||"days"!==this._view||this.monthOpt.original.time>De(this._d.from).valueOf()},te.prototype.monthOnSelect=function(ge){this._view="days";var xe=De(this.monthOpt.original.time).month(ge).valueOf();this.monthChange.emit({oldMonth:this.calSvc.multiFormat(this.monthOpt.original.time),newMonth:this.calSvc.multiFormat(xe)}),this.monthOpt=this.createMonth(xe)},te.prototype.onChanged=function(ge){switch(this._d.pickMode){case Te.pickModes.SINGLE:var xe=this._handleType(ge[0].time);this._onChanged(xe),this.change.emit(xe);break;case Te.pickModes.RANGE:if(ge[0]&&ge[1]){var he={from:this._handleType(ge[0].time),to:this._handleType(ge[1].time)};this._onChanged(he),this.change.emit(he)}break;case Te.pickModes.MULTI:for(var Le=[],Ce=0;Ce<ge.length;Ce++)ge[Ce]&&ge[Ce].time&&Le.push(this._handleType(ge[Ce].time));this._onChanged(Le),this.change.emit(Le)}},te.prototype.swipeEvent=function(ge){var xe=ge.deltaX<0;xe&&this.canNext()?this.nextMonth():!xe&&this.canBack()&&this.backMonth()},te.prototype._payloadToTimeNumber=function(ge){return("string"===this.type?De(ge,this.format):De(ge)).valueOf()},te.prototype._monthFormat=function(ge){return De(ge).format(this._d.monthFormat.replace(/y/g,"Y"))},te.prototype.initOpt=function(){this._options&&"boolean"==typeof this._options.showToggleButtons&&(this.showToggleButtons=this._options.showToggleButtons),this._options&&"boolean"==typeof this._options.showMonthPicker&&(this.showMonthPicker=this._options.showMonthPicker,"days"!==this._view&&!this.showMonthPicker&&(this._view="days")),this._d=this.calSvc.safeOpt(this._options||{})},te.prototype.createMonth=function(ge){return this.calSvc.createMonthsByPeriod(ge,1,this._d)[0]},te.prototype._createCalendarDay=function(ge){return this.calSvc.createCalendarDay(this._payloadToTimeNumber(ge),this._d)},te.prototype._handleType=function(ge){var xe=De(ge);switch(this.type){case"string":return xe.format(this.format);case"js-date":return xe.toDate();case"moment":return xe;case"time":return xe.valueOf();case"object":return xe.toObject()}return xe},te.prototype.writeValue=function(ge){this._writeValue(ge),ge&&(this.monthOpt=this.createMonth(this._calendarMonthValue[0]?this._calendarMonthValue[0].time:(new Date).getTime()))},te.prototype.registerOnChange=function(ge){this._onChanged=ge},te.prototype.registerOnTouched=function(ge){this._onTouched=ge},te.prototype._writeValue=function(ge){var xe=this;if(ge)switch(this._d.pickMode){case"single":this._calendarMonthValue[0]=this._createCalendarDay(ge);break;case"range":ge.from&&(this._calendarMonthValue[0]=ge.from?this._createCalendarDay(ge.from):null),ge.to&&(this._calendarMonthValue[1]=ge.to?this._createCalendarDay(ge.to):null);break;case"multi":this._calendarMonthValue=Array.isArray(ge)?ge.map(function(he){return xe._createCalendarDay(he)}):[null,null]}else this._calendarMonthValue=[null,null]},j([de.Input(),W("design:type",String)],te.prototype,"format",void 0),j([de.Input(),W("design:type",String)],te.prototype,"type",void 0),j([de.Input(),W("design:type",Object)],te.prototype,"readonly",void 0),j([de.Output(),W("design:type",de.EventEmitter)],te.prototype,"change",void 0),j([de.Output(),W("design:type",de.EventEmitter)],te.prototype,"monthChange",void 0),j([de.Output(),W("design:type",de.EventEmitter)],te.prototype,"select",void 0),j([de.Output(),W("design:type",de.EventEmitter)],te.prototype,"selectStart",void 0),j([de.Output(),W("design:type",de.EventEmitter)],te.prototype,"selectEnd",void 0),j([de.Input(),W("design:type",Object),W("design:paramtypes",[Object])],te.prototype,"options",null),(te=j([W("design:paramtypes",[K.CalendarService])],te)).\u0275fac=function(xe){return new(xe||te)(o.\u0275\u0275directiveInject(a.CalendarService))},te.\u0275cmp=o.\u0275\u0275defineComponent({type:te,selectors:[["ion-calendar"]],inputs:{format:"format",type:"type",readonly:"readonly",options:"options"},outputs:{change:"change",monthChange:"monthChange",select:"select",selectStart:"selectStart",selectEnd:"selectEnd"},features:[o.\u0275\u0275ProvidersFeature([$.ION_CAL_VALUE_ACCESSOR])],decls:8,vars:5,consts:[[1,"title"],[3,"ngIf","ngIfElse"],["title",""],[3,"ngIf"],["monthPicker",""],["type","button","fill","clear",1,"switch-btn",3,"click"],[1,"arrow-dropdown",3,"name"],[1,"switch-btn"],["type","button","fill","clear",1,"back",3,"disabled","click"],["slot","icon-only","size","small",3,"name"],["type","button","fill","clear",1,"forward",3,"disabled","click"],["color","transparent",3,"weekArray","weekStart"],[3,"componentMode","ngModel","month","readonly","pickMode","color","ngModelChange","change","swipe","select","selectStart","selectEnd"],[3,"color","monthFormat","month","select"]],template:function(xe,he){if(1&xe&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275template(1,k,4,6,"ng-template",1),o.\u0275\u0275template(2,F,3,5,"ng-template",null,2,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275template(4,Y,4,4,"ng-template",3),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(5,I,2,8,"ng-template",1),o.\u0275\u0275template(6,D,1,3,"ng-template",null,4,o.\u0275\u0275templateRefExtractor)),2&xe){var Le=o.\u0275\u0275reference(3),Ce=o.\u0275\u0275reference(7);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",he._showMonthPicker)("ngIfElse",Le),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngIf",he._showToggleButtons),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf","days"===he._view)("ngIfElse",Ce)}},dependencies:[g.NgIf,h.IonButton,h.IonIcon,m.NgControlStatus,m.NgModel,L.CalendarWeekComponent,v.MonthComponent,b.MonthPickerComponent,g.DatePipe],styles:["[_nghost-%COMP%] {\n padding: 10px 20px;\n box-sizing: border-box;\n display: inline-block;\n background-color: #fff;\n width: 100%; }\n [_nghost-%COMP%] .title[_ngcontent-%COMP%] {\n padding: 0 40px 0 40px;\n overflow: hidden; }\n [_nghost-%COMP%] .title[_ngcontent-%COMP%] .back[_ngcontent-%COMP%], [_nghost-%COMP%] .title[_ngcontent-%COMP%] .forward[_ngcontent-%COMP%], [_nghost-%COMP%] .title[_ngcontent-%COMP%] .switch-btn[_ngcontent-%COMP%] {\n display: block;\n position: relative;\n float: left;\n min-height: 32px;\n margin: 0;\n padding: 0;\n --padding-start: 0;\n --padding-end: 0;\n font-size: 15px; }\n [_nghost-%COMP%] .title[_ngcontent-%COMP%] .back[_ngcontent-%COMP%], [_nghost-%COMP%] .title[_ngcontent-%COMP%] .forward[_ngcontent-%COMP%] {\n color: #757575; }\n [_nghost-%COMP%] .title[_ngcontent-%COMP%] .back[_ngcontent-%COMP%] {\n margin-left: -100%;\n left: -40px;\n width: 40px; }\n [_nghost-%COMP%] .title[_ngcontent-%COMP%] .forward[_ngcontent-%COMP%] {\n margin-left: -40px;\n right: -40px;\n width: 40px; }\n [_nghost-%COMP%] .title[_ngcontent-%COMP%] .switch-btn[_ngcontent-%COMP%] {\n --margin-top: 0;\n --margin-bottom: 0;\n --margin-start: auto;\n --margin-end: auto;\n width: 100%;\n text-align: center;\n line-height: 32px;\n color: #757575; }\n [_nghost-%COMP%] .title[_ngcontent-%COMP%] .switch-btn[_ngcontent-%COMP%] .arrow-dropdown[_ngcontent-%COMP%] {\n margin-left: 5px; }"]}),te}();$.CalendarComponent=oe},27834:function(Ge,$,f){var o=f(45449),a=f(90603),g=f(33291),h=f(90944),m=f(24006),L=f(2329),v=f(76537),b=["months"];function k(ie,se){if(1&ie&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ie){var me=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(me._d.closeLabel)}}function F(ie,se){1&ie&&o.\u0275\u0275element(0,"ion-icon",13)}function Y(ie,se){if(1&ie&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ie){var me=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(me._d.clearLabel)}}function I(ie,se){if(1&ie){var me=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-button",14),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(me);var we=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(we.clear())}),o.\u0275\u0275template(1,Y,2,1,"span",3),o.\u0275\u0275elementEnd()}if(2&ie){var Ne=o.\u0275\u0275nextContext();o.\u0275\u0275property("disabled",!Ne.canClear()),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",""!==Ne._d.clearLabel)}}function D(ie,se){if(1&ie&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ie){var me=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(me._d.doneLabel)}}function j(ie,se){1&ie&&o.\u0275\u0275element(0,"ion-icon",17)}function W(ie,se){if(1&ie){var me=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ion-button",15),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(me);var we=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(we.done())}),o.\u0275\u0275template(1,D,2,1,"span",3),o.\u0275\u0275template(2,j,1,0,"ion-icon",16),o.\u0275\u0275elementEnd()}if(2&ie){var Ne=o.\u0275\u0275nextContext();o.\u0275\u0275property("disabled",!Ne.canDone()),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",""!==Ne._d.doneLabel&&!Ne._d.doneIcon),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Ne._d.doneIcon)}}function de(ie,se){if(1&ie){var me=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",18)(1,"h4",19),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"ion-calendar-month",20),o.\u0275\u0275listener("change",function(le){o.\u0275\u0275restoreView(me);var Ue=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ue.onChange(le))})("ngModelChange",function(le){o.\u0275\u0275restoreView(me);var Ue=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(Ue.datesTemp=le)}),o.\u0275\u0275elementEnd()()}if(2&ie){var Ne=se.$implicit,_e=se.index,we=o.\u0275\u0275nextContext();o.\u0275\u0275attribute("id","month-"+_e),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(we._monthFormat(Ne.original.date)),o.\u0275\u0275advance(1),o.\u0275\u0275property("month",Ne)("pickMode",we._d.pickMode)("isSaveHistory",we._d.isSaveHistory)("id",we._d.id)("color",we._d.color)("ngModel",we.datesTemp)}}var K=[[["","sub-header",""]]],ee=function(ie){return{"multi-selection":ie}},De=["[sub-header]"],Te=this&&this.__decorate||function(ie,se,me,Ne){var Ee,_e=arguments.length,we=_e<3?se:null===Ne?Ne=Object.getOwnPropertyDescriptor(se,me):Ne;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)we=Reflect.decorate(ie,se,me,Ne);else for(var le=ie.length-1;le>=0;le--)(Ee=ie[le])&&(we=(_e<3?Ee(we):_e>3?Ee(se,me,we):Ee(se,me))||we);return _e>3&&we&&Object.defineProperty(se,me,we),we},ce=this&&this.__metadata||function(ie,se){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ie,se)};Object.defineProperty($,"__esModule",{value:!0});var oe=f(45449),te=f(90603),ge=f(33291),xe=f(15439),he=f(5411),Ce=function(){function ie(se,me,Ne,_e,we,Ee){this._renderer=se,this._elementRef=me,this.params=Ne,this.modalCtrl=_e,this.ref=we,this.calSvc=Ee,this.ionPage=!0,this.datesTemp=[null,null],this._scrollLock=!0}return ie.prototype.ngOnInit=function(){this.init(),this.initDefaultDate()},ie.prototype.ngAfterViewInit=function(){this.findCssClass(),this._d.canBackwardsSelected&&this.backwardsMonth(),this.scrollToDefaultDate()},ie.prototype.init=function(){this._d=this.calSvc.safeOpt(this.options),this._d.showAdjacentMonthDay=!1,this.step=this._d.step,this.step<this.calSvc.DEFAULT_STEP&&(this.step=this.calSvc.DEFAULT_STEP),this.calendarMonths=this.calSvc.createMonthsByPeriod(xe(this._d.from).valueOf(),this.findInitMonthNumber(this._d.defaultScrollTo)+this.step,this._d)},ie.prototype.initDefaultDate=function(){var se=this,me=this._d,_e=me.defaultDate,we=me.defaultDateRange,Ee=me.defaultDates;switch(me.pickMode){case he.pickModes.SINGLE:_e&&(this.datesTemp[0]=this.calSvc.createCalendarDay(this._getDayTime(_e),this._d));break;case he.pickModes.RANGE:we&&(we.from&&(this.datesTemp[0]=this.calSvc.createCalendarDay(this._getDayTime(we.from),this._d)),we.to&&(this.datesTemp[1]=this.calSvc.createCalendarDay(this._getDayTime(we.to),this._d)));break;case he.pickModes.MULTI:Ee&&Ee.length&&(this.datesTemp=Ee.map(function(le){return se.calSvc.createCalendarDay(se._getDayTime(le),se._d)}));break;default:this.datesTemp=[null,null]}},ie.prototype.findCssClass=function(){var se=this,me=this._d.cssClass;me&&me.split(" ").forEach(function(Ne){""!==Ne.trim()&&se._renderer.addClass(se._elementRef.nativeElement,Ne)})},ie.prototype.onChange=function(se){var me=this._d,Ne=me.pickMode,_e=me.autoDone;this.datesTemp=se,this.ref.detectChanges(),Ne!==he.pickModes.MULTI&&_e&&this.canDone()&&this.done(),this.repaintDOM()},ie.prototype.onCancel=function(){this.modalCtrl.dismiss(null,"cancel")},ie.prototype.done=function(){this.modalCtrl.dismiss(this.calSvc.wrapResult(this.datesTemp,this._d.pickMode),"done")},ie.prototype.canDone=function(){if(!Array.isArray(this.datesTemp))return!1;var se=this._d,Ne=se.defaultEndDateToStartDate;switch(se.pickMode){case he.pickModes.SINGLE:return!(!this.datesTemp[0]||!this.datesTemp[0].time);case he.pickModes.RANGE:return Ne?!(!this.datesTemp[0]||!this.datesTemp[0].time):!!(this.datesTemp[0]&&this.datesTemp[1]&&this.datesTemp[0].time&&this.datesTemp[1].time);case he.pickModes.MULTI:return this.datesTemp.length>0&&this.datesTemp.every(function(_e){return!!_e&&!!_e.time});default:return!1}},ie.prototype.clear=function(){this.datesTemp=[null,null]},ie.prototype.canClear=function(){return!!this.datesTemp[0]},ie.prototype.nextMonth=function(se){var me,Ne=this.calendarMonths.length,_e=this.calendarMonths[Ne-1],we=xe(_e.original.time).add(1,"M").valueOf(),Ee=this._d.to?xe(this._d.to).subtract(1,"M"):0;Ne<=0||0!==Ee&&xe(_e.original.time).isAfter(Ee)?se.target.disabled=!0:((me=this.calendarMonths).push.apply(me,this.calSvc.createMonthsByPeriod(we,3,this._d)),se.target.complete(),this.repaintDOM())},ie.prototype.backwardsMonth=function(){var se,me=this.calendarMonths[0];if(me.original.time<=0)this._d.canBackwardsSelected=!1;else{var Ne=this.actualFirstTime=xe(me.original.time).subtract(3,"M").valueOf();(se=this.calendarMonths).unshift.apply(se,this.calSvc.createMonthsByPeriod(Ne,3,this._d)),this.ref.detectChanges(),this.repaintDOM()}},ie.prototype.scrollToDate=function(se){var me=this,Ne=this.findInitMonthNumber(se),_e=this.monthsEle.nativeElement.children["month-"+Ne];setTimeout(function(){var Ee=_e?_e.offsetTop:0;-1!==Ne&&0!==Ee&&me.content.scrollByPoint(0,Ee,128)},300)},ie.prototype.scrollToDefaultDate=function(){this.scrollToDate(this._d.defaultScrollTo)},ie.prototype.onScroll=function(se){var me=this;if(this._d.canBackwardsSelected){var Ne=se.detail;Ne.scrollTop<=200&&Ne.velocityY<0&&this._scrollLock&&this.content.getScrollElement().then(function(_e){me._scrollLock=!1;var we=_e.scrollHeight;me.backwardsMonth(),setTimeout(function(){me.content.scrollByPoint(0,_e.scrollHeight-we,0).then(function(){me._scrollLock=!0})},180)})}},ie.prototype.repaintDOM=function(){var se=this;return this.content.getScrollElement().then(function(me){me.style.zIndex="2",me.style.zIndex="initial",se.monthsEle.nativeElement.style.zIndex="2",se.monthsEle.nativeElement.style.zIndex="initial"})},ie.prototype.findInitMonthNumber=function(se){var me=xe(this.actualFirstTime?this.actualFirstTime:this._d.from),Ne=xe(se);return Ne.isAfter(me)?(this.showYearPicker&&(me=xe(new Date(this.year,0,1))),Ne.diff(me,"month")):-1},ie.prototype._getDayTime=function(se){return xe(xe(se).format("YYYY-MM-DD")).valueOf()},ie.prototype._monthFormat=function(se){return xe(se).format(this._d.monthFormat.replace(/y/g,"Y"))},ie.prototype.trackByIndex=function(se,me){return me.original?me.original.time:se},Te([oe.ViewChild(te.IonContent),ce("design:type",te.IonContent)],ie.prototype,"content",void 0),Te([oe.ViewChild("months"),ce("design:type",oe.ElementRef)],ie.prototype,"monthsEle",void 0),Te([oe.HostBinding("class.ion-page"),ce("design:type",Object)],ie.prototype,"ionPage",void 0),Te([oe.Input(),ce("design:type",Object)],ie.prototype,"options",void 0),(ie=Te([ce("design:paramtypes",[oe.Renderer2,oe.ElementRef,te.NavParams,te.ModalController,oe.ChangeDetectorRef,ge.CalendarService])],ie)).\u0275fac=function(me){return new(me||ie)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(a.NavParams),o.\u0275\u0275directiveInject(a.ModalController),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(g.CalendarService))},ie.\u0275cmp=o.\u0275\u0275defineComponent({type:ie,selectors:[["ion-calendar-modal"]],viewQuery:function(me,Ne){var _e;1&me&&(o.\u0275\u0275viewQuery(te.IonContent,5),o.\u0275\u0275viewQuery(b,5)),2&me&&(o.\u0275\u0275queryRefresh(_e=o.\u0275\u0275loadQuery())&&(Ne.content=_e.first),o.\u0275\u0275queryRefresh(_e=o.\u0275\u0275loadQuery())&&(Ne.monthsEle=_e.first))},hostVars:2,hostBindings:function(me,Ne){2&me&&o.\u0275\u0275classProp("ion-page",Ne.ionPage)},inputs:{options:"options"},ngContentSelectors:De,decls:19,vars:15,consts:[[3,"color"],["slot","start"],["type","button","slot","icon-only","fill","clear",3,"click"],[4,"ngIf"],["name","close",4,"ngIf"],["slot","end"],["type","button","fill","clear",3,"disabled","click",4,"ngIf"],["type","button","slot","icon-only","fill","clear",3,"disabled","click",4,"ngIf"],[3,"color","weekArray","weekStart"],[1,"calendar-page",3,"scrollEvents","ngClass","ionScroll"],["months",""],["ngFor","",3,"ngForOf","ngForTrackBy"],["threshold","25%",3,"ionInfinite"],["name","close"],["type","button","fill","clear",3,"disabled","click"],["type","button","slot","icon-only","fill","clear",3,"disabled","click"],["name","checkmark",4,"ngIf"],["name","checkmark"],[1,"month-box"],[1,"text-center","month-title"],[3,"month","pickMode","isSaveHistory","id","color","ngModel","change","ngModelChange"]],template:function(me,Ne){1&me&&(o.\u0275\u0275projectionDef(K),o.\u0275\u0275elementStart(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-buttons",1)(3,"ion-button",2),o.\u0275\u0275listener("click",function(){return Ne.onCancel()}),o.\u0275\u0275template(4,k,2,1,"span",3),o.\u0275\u0275template(5,F,1,0,"ion-icon",4),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(6,"ion-title"),o.\u0275\u0275text(7),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"ion-buttons",5),o.\u0275\u0275template(9,I,2,2,"ion-button",6),o.\u0275\u0275template(10,W,3,3,"ion-button",7),o.\u0275\u0275elementEnd()(),o.\u0275\u0275projection(11),o.\u0275\u0275element(12,"ion-calendar-week",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(13,"ion-content",9),o.\u0275\u0275listener("ionScroll",function(we){return Ne.onScroll(we)}),o.\u0275\u0275elementStart(14,"div",null,10),o.\u0275\u0275template(16,de,4,8,"ng-template",11),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(17,"ion-infinite-scroll",12),o.\u0275\u0275listener("ionInfinite",function(we){return Ne.nextMonth(we)}),o.\u0275\u0275element(18,"ion-infinite-scroll-content"),o.\u0275\u0275elementEnd()()),2&me&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("color",Ne._d.color),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngIf",""!==Ne._d.closeLabel&&!Ne._d.closeIcon),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Ne._d.closeIcon),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(Ne._d.title),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",!!Ne._d.clearLabel),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!Ne._d.autoDone),o.\u0275\u0275advance(2),o.\u0275\u0275property("color",Ne._d.color)("weekArray",Ne._d.weekdays)("weekStart",Ne._d.weekStart),o.\u0275\u0275advance(1),o.\u0275\u0275property("scrollEvents",!0)("ngClass",o.\u0275\u0275pureFunction1(13,ee,"multi"===Ne._d.pickMode)),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngForOf",Ne.calendarMonths)("ngForTrackBy",Ne.trackByIndex))},dependencies:[h.NgClass,h.NgForOf,h.NgIf,a.IonButton,a.IonButtons,a.IonContent,a.IonHeader,a.IonIcon,a.IonInfiniteScroll,a.IonInfiniteScrollContent,a.IonTitle,a.IonToolbar,m.NgControlStatus,m.NgModel,L.CalendarWeekComponent,v.MonthComponent],styles:["[_nghost-%COMP%] ion-select[_ngcontent-%COMP%] {\n max-width: unset; }\n [_nghost-%COMP%] ion-select[_ngcontent-%COMP%] .select-icon[_ngcontent-%COMP%] > .select-icon-inner[_ngcontent-%COMP%], [_nghost-%COMP%] ion-select[_ngcontent-%COMP%] .select-text[_ngcontent-%COMP%] {\n color: #fff !important; }\n [_nghost-%COMP%] ion-select.select-ios[_ngcontent-%COMP%] {\n max-width: unset; }\n\n[_nghost-%COMP%] .calendar-page[_ngcontent-%COMP%] {\n background-color: #fbfbfb; }\n\n[_nghost-%COMP%] .month-box[_ngcontent-%COMP%] {\n display: inline-block;\n width: 100%;\n padding-bottom: 1em;\n border-bottom: 1px solid #f1f1f1; }\n\n[_nghost-%COMP%] h4[_ngcontent-%COMP%] {\n font-weight: 400;\n font-size: 1.1rem;\n display: block;\n text-align: center;\n margin: 1rem 0 0;\n color: #929292; }"]}),ie}();$.CalendarModal=Ce},47751:(Ge,$,f)=>{Object.defineProperty($,"__esModule",{value:!0});var o=f(27834),a=f(2329),g=f(76537),h=f(90990),m=f(98899);$.CALENDAR_COMPONENTS=[o.CalendarModal,a.CalendarWeekComponent,g.MonthComponent,h.CalendarComponent,m.MonthPickerComponent]},98899:function(Ge,$,f){var o=f(45449),a=f(90944);function g(F,Y){if(1&F){var I=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",1)(1,"button",2),o.\u0275\u0275listener("click",function(){var ee=o.\u0275\u0275restoreView(I).index,De=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(De._onSelect(ee))}),o.\u0275\u0275pipe(2,"date"),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()()}if(2&F){var D=Y.$implicit,j=Y.index,W=o.\u0275\u0275nextContext();o.\u0275\u0275classProp("this-month",j===W._thisMonth.getMonth()&&W.month.original.year===W._thisMonth.getFullYear()),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind2(2,4,W.getDate(j),W.MONTH_FORMAT)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(D)}}var h=this&&this.__decorate||function(F,Y,I,D){var de,j=arguments.length,W=j<3?Y:null===D?D=Object.getOwnPropertyDescriptor(Y,I):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(F,Y,I,D);else for(var K=F.length-1;K>=0;K--)(de=F[K])&&(W=(j<3?de(W):j>3?de(Y,I,W):de(Y,I))||W);return j>3&&W&&Object.defineProperty(Y,I,W),W},m=this&&this.__metadata||function(F,Y){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,Y)};Object.defineProperty($,"__esModule",{value:!0});var L=f(45449),v=f(25254),b=f(5411),k=function(){function F(){this.color=b.defaults.COLOR,this.select=new L.EventEmitter,this._thisMonth=new Date,this._monthFormat=b.defaults.MONTH_FORMAT,this.MONTH_FORMAT="MMMM"}return Object.defineProperty(F.prototype,"monthFormat",{get:function(){return this._monthFormat},set:function(Y){Array.isArray(Y)&&12===Y.length&&(this._monthFormat=Y)},enumerable:!0,configurable:!0}),F.prototype._onSelect=function(Y){this.select.emit(Y)},F.prototype.getDate=function(Y){return new Date(this._thisMonth.getFullYear(),Y,1)},h([L.Input(),m("design:type",v.CalendarMonth)],F.prototype,"month",void 0),h([L.Input(),m("design:type",Object)],F.prototype,"color",void 0),h([L.Output(),m("design:type",L.EventEmitter)],F.prototype,"select",void 0),h([L.Input(),m("design:type",Array),m("design:paramtypes",[Array])],F.prototype,"monthFormat",null),(F=h([m("design:paramtypes",[])],F)).\u0275fac=function(I){return new(I||F)},F.\u0275cmp=o.\u0275\u0275defineComponent({type:F,selectors:[["ion-calendar-month-picker"]],inputs:{color:"color",monthFormat:"monthFormat",month:"month"},outputs:{select:"select"},decls:2,vars:3,consts:[["class","month-packer-item",3,"this-month",4,"ngFor","ngForOf"],[1,"month-packer-item"],["type","button",3,"click"]],template:function(I,D){1&I&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,g,4,7,"div",0),o.\u0275\u0275elementEnd()),2&I&&(o.\u0275\u0275classMap("month-picker "+D.color),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",D._monthFormat))},dependencies:[a.NgForOf,a.DatePipe],styles:["[_nghost-%COMP%] .month-picker[_ngcontent-%COMP%] {\n margin: 20px 0;\n display: inline-block;\n width: 100%; }\n\n[_nghost-%COMP%] .month-packer-item[_ngcontent-%COMP%] {\n width: 25%;\n box-sizing: border-box;\n float: left;\n height: 50px;\n padding: 5px; }\n [_nghost-%COMP%] .month-packer-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border-radius: 32px;\n width: 100%;\n height: 100%;\n font-size: 0.9em;\n background-color: transparent; }\n\n[_nghost-%COMP%] .month-picker.primary[_ngcontent-%COMP%] .month-packer-item.this-month[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 1px solid var(--ion-color-primary); }\n\n[_nghost-%COMP%] .month-picker.primary[_ngcontent-%COMP%] .month-packer-item.active[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n background-color: var(--ion-color-primary);\n color: #fff; }\n\n[_nghost-%COMP%] .month-picker.secondary[_ngcontent-%COMP%] .month-packer-item.this-month[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 1px solid var(--ion-color-secondary); }\n\n[_nghost-%COMP%] .month-picker.secondary[_ngcontent-%COMP%] .month-packer-item.active[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n background-color: var(--ion-color-secondary);\n color: #fff; }\n\n[_nghost-%COMP%] .month-picker.danger[_ngcontent-%COMP%] .month-packer-item.this-month[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 1px solid var(--ion-color-danger); }\n\n[_nghost-%COMP%] .month-picker.danger[_ngcontent-%COMP%] .month-packer-item.active[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n background-color: var(--ion-color-danger);\n color: #fff; }\n\n[_nghost-%COMP%] .month-picker.dark[_ngcontent-%COMP%] .month-packer-item.this-month[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 1px solid var(--ion-color-dark); }\n\n[_nghost-%COMP%] .month-picker.dark[_ngcontent-%COMP%] .month-packer-item.active[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n background-color: var(--ion-color-dark);\n color: #fff; }\n\n[_nghost-%COMP%] .month-picker.light[_ngcontent-%COMP%] .month-packer-item.this-month[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 1px solid var(--ion-color-light); }\n\n[_nghost-%COMP%] .month-picker.light[_ngcontent-%COMP%] .month-packer-item.active[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n background-color: var(--ion-color-light);\n color: #9e9e9e; }\n\n[_nghost-%COMP%] .month-picker.transparent[_ngcontent-%COMP%] {\n background-color: transparent; }\n [_nghost-%COMP%] .month-picker.transparent[_ngcontent-%COMP%] .month-packer-item.this-month[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 1px solid var(--ion-color-light); }\n [_nghost-%COMP%] .month-picker.transparent[_ngcontent-%COMP%] .month-packer-item.active[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n background-color: var(--ion-color-light);\n color: #9e9e9e; }\n\n[_nghost-%COMP%] .month-picker.cal-color[_ngcontent-%COMP%] .month-packer-item.this-month[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 1px solid; }\n\n[_nghost-%COMP%] .month-picker.cal-color[_ngcontent-%COMP%] .month-packer-item.active[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n color: #fff; }"]}),F}();$.MonthPickerComponent=k},76537:function(Ge,$,f){var o=f(45449),a=f(90944);function g(ee,De){if(1&ee&&(o.\u0275\u0275elementStart(0,"small"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ee){var Te=o.\u0275\u0275nextContext(2).$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(null==Te?null:Te.subTitle)}}function h(ee,De){if(1&ee){var Te=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"button",6),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(Te);var ge=o.\u0275\u0275nextContext().$implicit,xe=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(xe.onSelected(ge))}),o.\u0275\u0275pipe(2,"date"),o.\u0275\u0275elementStart(3,"p"),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(5,g,2,1,"small",5),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementContainerEnd()}if(2&ee){var ce=o.\u0275\u0275nextContext().$implicit,oe=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275classMap("days-btn "+ce.cssClass),o.\u0275\u0275classProp("today",ce.isToday)("marked",ce.marked)("last-month-day",ce.isLastMonth)("next-month-day",ce.isNextMonth)("on-selected",oe.isSelected(ce.time)),o.\u0275\u0275property("disabled",ce.disable),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind2(2,16,oe.getDayLabel(ce),oe.DAY_DATE_FORMAT)),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(ce.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ce.subTitle)}}function m(ee,De){if(1&ee&&(o.\u0275\u0275elementStart(0,"div",4),o.\u0275\u0275template(1,h,6,19,"ng-container",5),o.\u0275\u0275elementEnd()),2&ee){var Te=De.$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Te)}}function L(ee,De){if(1&ee&&(o.\u0275\u0275elementStart(0,"div",2),o.\u0275\u0275template(1,m,2,1,"ng-template",3),o.\u0275\u0275elementEnd()),2&ee){var Te=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",Te.month.days)("ngForTrackBy",Te.trackByTime)}}function v(ee,De){if(1&ee&&(o.\u0275\u0275elementStart(0,"small"),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ee){var Te=o.\u0275\u0275nextContext(2).$implicit;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(null==Te?null:Te.subTitle)}}function b(ee,De){if(1&ee){var Te=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"button",6),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(Te);var ge=o.\u0275\u0275nextContext().$implicit,xe=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(xe.onSelected(ge))}),o.\u0275\u0275elementStart(2,"p"),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(4,v,2,1,"small",5),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementContainerEnd()}if(2&ee){var ce=o.\u0275\u0275nextContext().$implicit,oe=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275classMap("days-btn "+ce.cssClass),o.\u0275\u0275classProp("today",ce.isToday)("marked",ce.marked)("last-month-day",ce.isLastMonth)("next-month-day",ce.isNextMonth)("is-first",ce.isFirst)("is-last",ce.isLast)("on-selected",oe.isSelected(ce.time)),o.\u0275\u0275property("disabled",ce.disable),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(ce.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",ce.subTitle)}}function k(ee,De){if(1&ee&&(o.\u0275\u0275elementStart(0,"div",4),o.\u0275\u0275template(1,b,5,19,"ng-container",5),o.\u0275\u0275elementEnd()),2&ee){var Te=De.$implicit,ce=o.\u0275\u0275nextContext(2);o.\u0275\u0275classProp("startSelection",ce.isStartSelection(Te))("endSelection",ce.isEndSelection(Te))("is-first-wrap",null==Te?null:Te.isFirst)("is-last-wrap",null==Te?null:Te.isLast)("between",ce.isBetween(Te)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Te)}}function F(ee,De){if(1&ee&&(o.\u0275\u0275elementStart(0,"div",2),o.\u0275\u0275template(1,k,2,11,"ng-template",3),o.\u0275\u0275elementEnd()),2&ee){var Te=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",Te.month.days)("ngForTrackBy",Te.trackByTime)}}var Y=this&&this.__decorate||function(ee,De,Te,ce){var ge,oe=arguments.length,te=oe<3?De:null===ce?ce=Object.getOwnPropertyDescriptor(De,Te):ce;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)te=Reflect.decorate(ee,De,Te,ce);else for(var xe=ee.length-1;xe>=0;xe--)(ge=ee[xe])&&(te=(oe<3?ge(te):oe>3?ge(De,Te,te):ge(De,Te))||te);return oe>3&&te&&Object.defineProperty(De,Te,te),te},I=this&&this.__metadata||function(ee,De){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ee,De)};Object.defineProperty($,"__esModule",{value:!0});var D=f(45449),j=f(24006),W=f(25254),de=f(5411);$.MONTH_VALUE_ACCESSOR={provide:j.NG_VALUE_ACCESSOR,useExisting:D.forwardRef(function(){return K}),multi:!0};var K=function(){function ee(De){this.ref=De,this.componentMode=!1,this.readonly=!1,this.color=de.defaults.COLOR,this.change=new D.EventEmitter,this.select=new D.EventEmitter,this.selectStart=new D.EventEmitter,this.selectEnd=new D.EventEmitter,this._date=[null,null],this._isInit=!1,this.DAY_DATE_FORMAT="MMMM dd, yyyy"}return Object.defineProperty(ee.prototype,"_isRange",{get:function(){return this.pickMode===de.pickModes.RANGE},enumerable:!0,configurable:!0}),ee.prototype.ngAfterViewInit=function(){this._isInit=!0},Object.defineProperty(ee.prototype,"value",{get:function(){return this._date},enumerable:!0,configurable:!0}),ee.prototype.writeValue=function(De){Array.isArray(De)&&(this._date=De)},ee.prototype.registerOnChange=function(De){this._onChanged=De},ee.prototype.registerOnTouched=function(De){this._onTouched=De},ee.prototype.trackByTime=function(De,Te){return Te?Te.time:De},ee.prototype.isEndSelection=function(De){return!(!De||this.pickMode!==de.pickModes.RANGE||!this._isInit||null===this._date[1])&&this._date[1].time===De.time},ee.prototype.getDayLabel=function(De){return new Date(De.time)},ee.prototype.isBetween=function(De){return!(!De||this.pickMode!==de.pickModes.RANGE||!this._isInit||null===this._date[0]||null===this._date[1])&&De.time<this._date[1].time&&De.time>this._date[0].time},ee.prototype.isStartSelection=function(De){return!(!De||this.pickMode!==de.pickModes.RANGE||!this._isInit||null===this._date[0])&&this._date[0].time===De.time&&null!==this._date[1]},ee.prototype.isSelected=function(De){return!!Array.isArray(this._date)&&(this.pickMode===de.pickModes.MULTI?-1!==this._date.findIndex(function(Te){return null!==Te&&Te.time===De}):null!==this._date[0]?De===this._date[0].time:null!==this._date[1]?De===this._date[1].time:void 0)},ee.prototype.onSelected=function(De){if(!this.readonly){if(De.selected=!0,this.select.emit(De),this.pickMode===de.pickModes.SINGLE)return this._date[0]=De,void this.change.emit(this._date);if(this.pickMode===de.pickModes.RANGE)return null===this._date[0]?(this._date[0]=De,this.selectStart.emit(De)):null===this._date[1]?this._date[0].time<De.time?(this._date[1]=De,this.selectEnd.emit(De)):(this._date[1]=this._date[0],this.selectEnd.emit(this._date[0]),this._date[0]=De,this.selectStart.emit(De)):this._date[0].time>De.time?(this._date[0]=De,this.selectStart.emit(De)):this._date[1].time<De.time?(this._date[1]=De,this.selectEnd.emit(De)):(this._date[0]=De,this.selectStart.emit(De),this._date[1]=null),void this.change.emit(this._date);if(this.pickMode===de.pickModes.MULTI){var Te=this._date.findIndex(function(ce){return null!==ce&&ce.time===De.time});-1===Te?this._date.push(De):this._date.splice(Te,1),this.change.emit(this._date.filter(function(ce){return null!==ce}))}}},Y([D.Input(),I("design:type",Object)],ee.prototype,"componentMode",void 0),Y([D.Input(),I("design:type",W.CalendarMonth)],ee.prototype,"month",void 0),Y([D.Input(),I("design:type",String)],ee.prototype,"pickMode",void 0),Y([D.Input(),I("design:type",Boolean)],ee.prototype,"isSaveHistory",void 0),Y([D.Input(),I("design:type",Object)],ee.prototype,"id",void 0),Y([D.Input(),I("design:type",Object)],ee.prototype,"readonly",void 0),Y([D.Input(),I("design:type",String)],ee.prototype,"color",void 0),Y([D.Output(),I("design:type",D.EventEmitter)],ee.prototype,"change",void 0),Y([D.Output(),I("design:type",D.EventEmitter)],ee.prototype,"select",void 0),Y([D.Output(),I("design:type",D.EventEmitter)],ee.prototype,"selectStart",void 0),Y([D.Output(),I("design:type",D.EventEmitter)],ee.prototype,"selectEnd",void 0),(ee=Y([I("design:paramtypes",[D.ChangeDetectorRef])],ee)).\u0275fac=function(Te){return new(Te||ee)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},ee.\u0275cmp=o.\u0275\u0275defineComponent({type:ee,selectors:[["ion-calendar-month"]],hostVars:2,hostBindings:function(Te,ce){2&Te&&o.\u0275\u0275classProp("component-mode",ce.componentMode)},inputs:{componentMode:"componentMode",readonly:"readonly",color:"color",month:"month",pickMode:"pickMode",isSaveHistory:"isSaveHistory",id:"id"},outputs:{change:"change",select:"select",selectStart:"selectStart",selectEnd:"selectEnd"},features:[o.\u0275\u0275ProvidersFeature([$.MONTH_VALUE_ACCESSOR])],decls:4,vars:4,consts:[[3,"ngIf","ngIfElse"],["rangeBox",""],[1,"days-box"],["ngFor","",3,"ngForOf","ngForTrackBy"],[1,"days"],[4,"ngIf"],["type","button",3,"disabled","click"]],template:function(Te,ce){if(1&Te&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,L,2,2,"ng-template",0),o.\u0275\u0275template(2,F,2,2,"ng-template",null,1,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementEnd()),2&Te){var oe=o.\u0275\u0275reference(3);o.\u0275\u0275classMap(ce.color),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ce._isRange)("ngIfElse",oe)}},dependencies:[a.NgForOf,a.NgIf,a.DatePipe],styles:["[_nghost-%COMP%] {\n display: inline-block;\n width: 100%; }\n [_nghost-%COMP%] .days-box[_ngcontent-%COMP%] {\n padding: 0.5rem; }\n [_nghost-%COMP%] .days[_ngcontent-%COMP%]:nth-of-type(7n), [_nghost-%COMP%] .days[_ngcontent-%COMP%]:nth-of-type(7n + 1) {\n width: 15%; }\n [_nghost-%COMP%] .days[_ngcontent-%COMP%] {\n width: 14%;\n float: left;\n text-align: center;\n height: 36px;\n margin-bottom: 5px; }\n [_nghost-%COMP%] .days[_ngcontent-%COMP%] .marked[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-weight: 500; }\n [_nghost-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%] {\n border: none; }\n [_nghost-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 1.3em; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] small[_ngcontent-%COMP%], [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: var(--ion-color-primary); }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-weight: 700; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .last-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .next-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.25); }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-primary);\n color: #fff; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n display: block; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-primary); }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n display: block; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-primary); }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]:after {\n background-color: transparent; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-primary);\n width: 100%;\n border-radius: 0;\n position: relative; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 100%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: block;\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n -webkit-transition-property: background-color;\n -moz-transition-property: background-color;\n -ms-transition-property: background-color;\n -o-transition-property: background-color;\n transition-property: background-color;\n -webkit-transition-duration: 180ms;\n -moz-transition-duration: 180ms;\n -ms-transition-duration: 180ms;\n -o-transition-duration: 180ms;\n transition-duration: 180ms;\n -webkit-transition-timing-function: ease-out;\n -moz-transition-timing-function: ease-out;\n -ms-transition-timing-function: ease-out;\n -o-transition-timing-function: ease-out;\n transition-timing-function: ease-out; }\n [_nghost-%COMP%] .primary[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]::before {\n --ion-color-primary: transparent; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] small[_ngcontent-%COMP%], [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: var(--ion-color-secondary); }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-weight: 700; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .last-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .next-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.25); }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-secondary);\n color: #fff; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n display: block; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-secondary); }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n display: block; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-secondary); }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]:after {\n background-color: transparent; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-secondary);\n width: 100%;\n border-radius: 0;\n position: relative; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 100%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: block;\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n -webkit-transition-property: background-color;\n -moz-transition-property: background-color;\n -ms-transition-property: background-color;\n -o-transition-property: background-color;\n transition-property: background-color;\n -webkit-transition-duration: 180ms;\n -moz-transition-duration: 180ms;\n -ms-transition-duration: 180ms;\n -o-transition-duration: 180ms;\n transition-duration: 180ms;\n -webkit-transition-timing-function: ease-out;\n -moz-transition-timing-function: ease-out;\n -ms-transition-timing-function: ease-out;\n -o-transition-timing-function: ease-out;\n transition-timing-function: ease-out; }\n [_nghost-%COMP%] .secondary[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]::before {\n --ion-color-primary: transparent; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] small[_ngcontent-%COMP%], [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: var(--ion-color-danger); }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-weight: 700; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .last-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .next-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.25); }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-danger);\n color: #fff; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n display: block; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-danger); }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n display: block; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-danger); }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]:after {\n background-color: transparent; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-danger);\n width: 100%;\n border-radius: 0;\n position: relative; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 100%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: block;\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n -webkit-transition-property: background-color;\n -moz-transition-property: background-color;\n -ms-transition-property: background-color;\n -o-transition-property: background-color;\n transition-property: background-color;\n -webkit-transition-duration: 180ms;\n -moz-transition-duration: 180ms;\n -ms-transition-duration: 180ms;\n -o-transition-duration: 180ms;\n transition-duration: 180ms;\n -webkit-transition-timing-function: ease-out;\n -moz-transition-timing-function: ease-out;\n -ms-transition-timing-function: ease-out;\n -o-transition-timing-function: ease-out;\n transition-timing-function: ease-out; }\n [_nghost-%COMP%] .danger[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]::before {\n --ion-color-primary: transparent; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] small[_ngcontent-%COMP%], [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: var(--ion-color-dark); }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-weight: 700; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .last-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .next-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.25); }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-dark);\n color: #fff; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n display: block; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-dark); }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n display: block; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-dark); }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]:after {\n background-color: transparent; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-dark);\n width: 100%;\n border-radius: 0;\n position: relative; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 100%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: block;\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n -webkit-transition-property: background-color;\n -moz-transition-property: background-color;\n -ms-transition-property: background-color;\n -o-transition-property: background-color;\n transition-property: background-color;\n -webkit-transition-duration: 180ms;\n -moz-transition-duration: 180ms;\n -ms-transition-duration: 180ms;\n -o-transition-duration: 180ms;\n transition-duration: 180ms;\n -webkit-transition-timing-function: ease-out;\n -moz-transition-timing-function: ease-out;\n -ms-transition-timing-function: ease-out;\n -o-transition-timing-function: ease-out;\n transition-timing-function: ease-out; }\n [_nghost-%COMP%] .dark[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]::before {\n --ion-color-primary: transparent; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] small[_ngcontent-%COMP%], [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: var(--ion-color-light); }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-weight: 700; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .last-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .next-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.25); }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #a0a0a0; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-light);\n color: #a0a0a0; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n display: block; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-light); }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n display: block; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before {\n background-color: var(--ion-color-light); }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]:after {\n background-color: transparent; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n background-color: var(--ion-color-light);\n width: 100%;\n border-radius: 0;\n position: relative; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 100%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: block;\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #a0a0a0; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #a0a0a0; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #a0a0a0; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .light[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .light[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n -webkit-transition-property: background-color;\n -moz-transition-property: background-color;\n -ms-transition-property: background-color;\n -o-transition-property: background-color;\n transition-property: background-color;\n -webkit-transition-duration: 180ms;\n -moz-transition-duration: 180ms;\n -ms-transition-duration: 180ms;\n -o-transition-duration: 180ms;\n transition-duration: 180ms;\n -webkit-transition-timing-function: ease-out;\n -moz-transition-timing-function: ease-out;\n -ms-transition-timing-function: ease-out;\n -o-transition-timing-function: ease-out;\n transition-timing-function: ease-out; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]::before {\n --ion-color-primary: transparent; }\n [_nghost-%COMP%] .light[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #565656; }\n [_nghost-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 36px;\n width: 36px;\n display: block;\n margin: 0 auto;\n padding: 0;\n height: 36px;\n background-color: transparent;\n position: relative;\n z-index: 2;\n outline: 0; }\n [_nghost-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 1.2em;\n color: #333;\n text-align: center; }\n [_nghost-%COMP%] button.days-btn[disabled][_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.25); }\n [_nghost-%COMP%] button.days-btn.on-selected[_ngcontent-%COMP%] small[_ngcontent-%COMP%] {\n transition: bottom 0.3s;\n bottom: -14px; }\n [_nghost-%COMP%] button.days-btn[_ngcontent-%COMP%] small[_ngcontent-%COMP%] {\n overflow: hidden;\n display: block;\n left: 0;\n right: 0;\n bottom: -5px;\n position: absolute;\n z-index: 1;\n text-align: center;\n font-weight: 200; }\n [_nghost-%COMP%] .days.startSelection[_ngcontent-%COMP%]:nth-child(7n):before, [_nghost-%COMP%] .days.between[_ngcontent-%COMP%]:nth-child(7n) button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .days.between[_ngcontent-%COMP%] button.days-btn.is-last[_ngcontent-%COMP%] {\n border-radius: 0 36px 36px 0; }\n [_nghost-%COMP%] .days.startSelection[_ngcontent-%COMP%]:nth-child(7n):before.on-selected, [_nghost-%COMP%] .days.between[_ngcontent-%COMP%]:nth-child(7n) button.days-btn.on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] .days.between[_ngcontent-%COMP%] button.days-btn.is-last.on-selected[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .days.endSelection[_ngcontent-%COMP%]:nth-child(7n + 1):before, [_nghost-%COMP%] .days.between[_ngcontent-%COMP%]:nth-child(7n + 1) button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .days.between.is-first-wrap[_ngcontent-%COMP%] button.days-btn.is-first[_ngcontent-%COMP%], [_nghost-%COMP%] button.days-btn.is-first[_ngcontent-%COMP%] {\n border-radius: 36px 0 0 36px; }\n [_nghost-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn.is-first[_ngcontent-%COMP%], [_nghost-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn.is-first[_ngcontent-%COMP%], [_nghost-%COMP%] button.days-btn.is-first.on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] button.days-btn.is-last.on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn.is-last[_ngcontent-%COMP%], [_nghost-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn.is-last[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .startSelection.is-last-wrap[_ngcontent-%COMP%]::before, [_nghost-%COMP%] .startSelection.is-last-wrap[_ngcontent-%COMP%]::after {\n border-radius: 0 36px 36px 0; }\n [_nghost-%COMP%] .endSelection.is-first-wrap[_ngcontent-%COMP%]::before, [_nghost-%COMP%] .endSelection.is-first-wrap[_ngcontent-%COMP%]::after {\n border-radius: 36px 0 0 36px; }\n .component-mode[_nghost-%COMP%] .days.between[_ngcontent-%COMP%] button.days-btn.is-last[_ngcontent-%COMP%], .component-mode[_nghost-%COMP%] .days.between[_ngcontent-%COMP%] button.days-btn.is-first[_ngcontent-%COMP%] {\n border-radius: 0; }\n .component-mode[_nghost-%COMP%] .days.startSelection.is-last-wrap[_ngcontent-%COMP%]::before, .component-mode[_nghost-%COMP%] .days.startSelection.is-last-wrap[_ngcontent-%COMP%]::after {\n border-radius: 0; }\n .component-mode[_nghost-%COMP%] .days.endSelection.is-first-wrap[_ngcontent-%COMP%]::before, .component-mode[_nghost-%COMP%] .days.endSelection.is-first-wrap[_ngcontent-%COMP%]::after {\n border-radius: 0; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-weight: 700; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .last-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .next-month-day[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.25); }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .today.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%], [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .marked.on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%], [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n display: block; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] {\n position: relative; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 50%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n display: block; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%]:after {\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]:after {\n background-color: transparent; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n width: 100%;\n border-radius: 0;\n position: relative; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%]:after {\n height: 36px;\n width: 100%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: block;\n background-color: white;\n opacity: 0.25; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n border-radius: 50%; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .days[_ngcontent-%COMP%] .on-selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #fff; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .endSelection[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .between[_ngcontent-%COMP%] button.days-btn[_ngcontent-%COMP%] {\n -webkit-transition-property: background-color;\n -moz-transition-property: background-color;\n -ms-transition-property: background-color;\n -o-transition-property: background-color;\n transition-property: background-color;\n -webkit-transition-duration: 180ms;\n -moz-transition-duration: 180ms;\n -ms-transition-duration: 180ms;\n -o-transition-duration: 180ms;\n transition-duration: 180ms;\n -webkit-transition-timing-function: ease-out;\n -moz-transition-timing-function: ease-out;\n -ms-transition-timing-function: ease-out;\n -o-transition-timing-function: ease-out;\n transition-timing-function: ease-out; }\n [_nghost-%COMP%] .cal-color[_ngcontent-%COMP%] .startSelection.endSelection[_ngcontent-%COMP%]::before {\n --ion-color-primary: transparent; }"]}),ee}();$.MonthComponent=K},5411:(Ge,$)=>{Object.defineProperty($,"__esModule",{value:!0}),$.defaults={DATE_FORMAT:"YYYY-MM-DD",COLOR:"primary",WEEKS_FORMAT:["S","M","T","W","T","F","S"],MONTH_FORMAT:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"]},$.pickModes={SINGLE:"single",RANGE:"range",MULTI:"multi"}},10866:(Ge,$,f)=>{var o=f(98899);Object.defineProperty($,"__esModule",{value:!0}),function a(F){for(var Y in F)$.hasOwnProperty(Y)||($[Y]=F[Y])}(f(25254));var g=f(27834);$.CalendarModal=g.CalendarModal;var h=f(2329);$.CalendarWeekComponent=h.CalendarWeekComponent;var m=f(76537);$.MonthComponent=m.MonthComponent;var L=f(46153);$.DEFAULT_CALENDAR_OPTIONS=L.DEFAULT_CALENDAR_OPTIONS;var v=f(90990);$.CalendarComponent=v.CalendarComponent;var b=f(17637);$.CalendarModule=b.CalendarModule;var k=f(37609);$.CalendarController=k.CalendarController,$.MonthPickerComponent=o.MonthPickerComponent},46153:(Ge,$,f)=>{Object.defineProperty($,"__esModule",{value:!0});var o=f(45449);$.DEFAULT_CALENDAR_OPTIONS=new o.InjectionToken("DEFAULT_CALENDAR_MODAL_OPTIONS")},33291:function(Ge,$,f){var o=f(45449),a=this&&this.__assign||function(){return a=Object.assign||function(D){for(var j,W=1,de=arguments.length;W<de;W++)for(var K in j=arguments[W])Object.prototype.hasOwnProperty.call(j,K)&&(D[K]=j[K]);return D},a.apply(this,arguments)},g=this&&this.__decorate||function(D,j,W,de){var De,K=arguments.length,ee=K<3?j:null===de?de=Object.getOwnPropertyDescriptor(j,W):de;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ee=Reflect.decorate(D,j,W,de);else for(var Te=D.length-1;Te>=0;Te--)(De=D[Te])&&(ee=(K<3?De(ee):K>3?De(j,W,ee):De(j,W))||ee);return K>3&&ee&&Object.defineProperty(j,W,ee),ee},h=this&&this.__metadata||function(D,j){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(D,j)},m=this&&this.__param||function(D,j){return function(W,de){j(W,de,D)}};Object.defineProperty($,"__esModule",{value:!0});var L=f(45449),v=f(15439),b=f(5411),k=f(46153),F=function(D){return!0===D||!1===D};$.\u02750=F;var I=function(){function D(j){this.defaultOpts=j}return Object.defineProperty(D.prototype,"DEFAULT_STEP",{get:function(){return 12},enumerable:!0,configurable:!0}),D.prototype.safeOpt=function(j){void 0===j&&(j={});var K=a({},this.defaultOpts,j),ee=K.from,De=void 0===ee?new Date:ee,Te=K.to,oe=K.weekStart,ge=K.step,he=K.id,Ce=K.cssClass,se=K.closeLabel,Ne=K.doneLabel,we=K.monthFormat,le=K.title,ke=K.defaultTitle,ye=K.defaultSubtitle,Ze=K.autoDone,At=K.canBackwardsSelected,fn=K.closeIcon,xn=K.doneIcon,Et=K.showYearPicker,ft=K.isSaveHistory,en=K.pickMode,or=K.color,wr=K.weekdays,er=K.daysConfig,Er=K.disableWeeks,Gr=K.showAdjacentMonthDay,Pr=K.defaultEndDateToStartDate,Nr=K.clearLabel;return{id:void 0===he?"":he,from:De,to:void 0===Te?0:Te,pickMode:void 0===en?b.pickModes.SINGLE:en,autoDone:void 0!==Ze&&Ze,color:void 0===or?b.defaults.COLOR:or,cssClass:void 0===Ce?"":Ce,weekStart:void 0===oe?0:oe,closeLabel:void 0===se?"CANCEL":se,closeIcon:void 0!==fn&&fn,doneLabel:void 0===Ne?"DONE":Ne,doneIcon:void 0!==xn&&xn,canBackwardsSelected:void 0!==At&&At,isSaveHistory:void 0!==ft&&ft,disableWeeks:void 0===Er?[]:Er,monthFormat:void 0===we?"MMM YYYY":we,title:void 0===le?"CALENDAR":le,weekdays:void 0===wr?b.defaults.WEEKS_FORMAT:wr,daysConfig:void 0===er?[]:er,step:void 0===ge?this.DEFAULT_STEP:ge,showYearPicker:void 0!==Et&&Et,defaultTitle:void 0===ke?"":ke,defaultSubtitle:void 0===ye?"":ye,defaultScrollTo:j.defaultScrollTo||De,defaultDate:j.defaultDate||null,defaultDates:j.defaultDates||null,defaultDateRange:j.defaultDateRange||null,showAdjacentMonthDay:void 0===Gr||Gr,defaultEndDateToStartDate:void 0!==Pr&&Pr,clearLabel:void 0===Nr?null:Nr}},D.prototype.createOriginalCalendar=function(j){var W=new Date(j),de=W.getFullYear(),K=W.getMonth();return{year:de,month:K,firstWeek:new Date(de,K,1).getDay(),howManyDays:v(j).daysInMonth(),time:new Date(de,K,1).getTime(),date:new Date(j)}},D.prototype.findDayConfig=function(j,W){return W.daysConfig.length<=0?null:W.daysConfig.find(function(de){return j.isSame(de.date,"day")})},D.prototype.createCalendarDay=function(j,W,de){var K=v(j),ee=v(j),De=v().isSame(K,"days"),Te=this.findDayConfig(K,W),ce=v(W.from).valueOf(),oe=v(W.to).valueOf(),te=!0,ge=-1!==W.disableWeeks.indexOf(K.toDate().getDay());ce>0&&oe>0?te=W.canBackwardsSelected?!v(K).isBefore(ce)&&te:!K.isBetween(ce,oe,"days","[]"):ce>0&&0===oe&&(te=!W.canBackwardsSelected&&!K.add(1,"day").isAfter(ce));var he;he=Te&&F(Te.disable)?Te.disable:ge||te;var Le=new Date(j).getDate().toString();Te&&Te.title?Le=Te.title:W.defaultTitle&&(Le=W.defaultTitle);var Ce="";return Te&&Te.subTitle?Ce=Te.subTitle:W.defaultSubtitle&&(Ce=W.defaultSubtitle),{time:j,isToday:De,title:Le,subTitle:Ce,selected:!1,isLastMonth:ee.month()<de,isNextMonth:ee.month()>de,marked:Te&&Te.marked||!1,cssClass:Te&&Te.cssClass||"",disable:he,isFirst:1===ee.date(),isLast:ee.date()===ee.daysInMonth()}},D.prototype.createCalendarMonth=function(j,W){for(var de=new Array(6).fill(null),K=j.howManyDays,ee=j.firstWeek;ee<K+j.firstWeek;ee++){var De=new Date(j.year,j.month,ee-j.firstWeek+1).getTime();de[ee]=this.createCalendarDay(De,W)}if(1===W.weekStart&&(null===de[0]?de.shift():de.unshift.apply(de,new Array(6).fill(null))),W.showAdjacentMonthDay){for(var ce=de.map(function(Le){return!!Le}),oe=v(j.time).month(),te=ce.indexOf(!0)-1,ge=ce.lastIndexOf(!0)+1;te>=0;te--){var xe=v(de[te+1].time).clone().subtract(1,"d");de[te]=this.createCalendarDay(xe.valueOf(),W,oe)}if(ce.length%7!=0||!ce[ce.length-1])for(;ge<de.length+ge%7;ge++){var he=v(de[ge-1].time).clone().add(1,"d");de[ge]=this.createCalendarDay(he.valueOf(),W,oe)}}return{days:de,original:j}},D.prototype.createMonthsByPeriod=function(j,W,de){for(var K=[],ee=new Date(j),De=new Date(ee.getFullYear(),ee.getMonth(),1).getTime(),Te=0;Te<W;Te++){var ce=v(De).add(Te,"M").valueOf(),oe=this.createOriginalCalendar(ce);K.push(this.createCalendarMonth(oe,de))}return K},D.prototype.wrapResult=function(j,W){var K,de=this;switch(W){case b.pickModes.SINGLE:K=this.multiFormat(j[0].time);break;case b.pickModes.RANGE:K={from:this.multiFormat(j[0].time),to:this.multiFormat((j[1]||j[0]).time)};break;case b.pickModes.MULTI:K=j.map(function(ee){return de.multiFormat(ee.time)});break;default:K=j}return K},D.prototype.multiFormat=function(j){var W=v(j);return{time:W.valueOf(),unix:W.unix(),dateObj:W.toDate(),string:W.format(b.defaults.DATE_FORMAT),years:W.year(),months:W.month()+1,date:W.date()}},(D=g([m(0,L.Optional()),m(0,L.Inject(k.DEFAULT_CALENDAR_OPTIONS)),h("design:paramtypes",[Object])],D)).\u0275fac=function(W){return new(W||D)(o.\u0275\u0275inject(k.DEFAULT_CALENDAR_OPTIONS,8))},D.\u0275prov=o.\u0275\u0275defineInjectable({token:D,factory:function(j){return D.\u0275fac(j)}}),D}();$.CalendarService=I},36161:(Ge,$)=>{Object.defineProperty($,"__esModule",{value:!0});var f=function(){if(typeof window>"u")return new Map;var a=window;return a.Ionicons=a.Ionicons||{},a.Ionicons.map=a.Ionicons.map||new Map,a.Ionicons.map};$.\u02750=f,$.isIonIconsV4=function(){return!!f().get("md-arrow-dropdown")}},55021:function(Ge){Ge.exports=function(){"use strict";function $(b){return $.result?$.result:b&&"function"==typeof b.getSerializer?$.result=b.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function f(b,k){return(f.result=f.result||{})[k]?f.result[k]:b&&"function"==typeof b.getDriver?f.result[k]=b.getDriver(k):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function o(b){return f(b,b.WEBSQL)}var g=new Promise(function(b,k){typeof sqlitePlugin<"u"?b():typeof cordova>"u"?k(new Error("cordova is not defined.")):document.addEventListener("deviceready",function(){return b()},!1)}).catch(function(){return Promise.resolve()});function h(){return g.then(function(){if(typeof sqlitePlugin<"u"&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")})}var L={_driver:"cordovaSQLiteDriver",_initStorage:function m(b){var k=this,F={db:null};if(b)for(var Y in b)F[Y]="string"!=typeof b[Y]?b[Y].toString():b[Y];var I=h().then(function(W){return new Promise(function(de,K){try{F.location=F.location||"default",F.db=W({name:F.name,version:String(F.version),description:F.description,size:F.size,location:F.location})}catch(ee){K(ee)}F.db.transaction(function(ee){ee.executeSql("CREATE TABLE IF NOT EXISTS "+F.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){k._dbInfo=F,de()},function(De,Te){K(Te)})})})}),D=$(k),j=o(k);return Promise.all([D,j,I]).then(function(W){return F.serializer=W[0],I})},_support:function(){return h().then(function(k){return!!k}).catch(function(){return!1})}};return function v(b){var k=["clear","getItem","iterate","key","keys","length","removeItem","setItem"];function F(D,j){D[j]=function(){var W=this,de=arguments;return o(W).then(function(K){return K[j].apply(W,de)})}}for(var Y=0,I=k.length;Y<I;Y++)F(b,k[Y])}(L),L}()},94424:Ge=>{Ge.exports=function a(g,h,m){function L(k,F){if(!h[k]){if(!g[k]){if(v)return v(k,!0);var I=new Error("Cannot find module '"+k+"'");throw I.code="MODULE_NOT_FOUND",I}var D=h[k]={exports:{}};g[k][0].call(D.exports,function(j){return L(g[k][1][j]||j)},D,D.exports,a,g,h,m)}return h[k].exports}for(var v=void 0,b=0;b<m.length;b++)L(m[b]);return L}({1:[function(a,g,h){"use strict";var m=a(2);function L(){}var v={},b=["REJECTED"],k=["FULFILLED"],F=["PENDING"];function Y(ce){if("function"!=typeof ce)throw new TypeError("resolver must be a function");this.state=F,this.queue=[],this.outcome=void 0,ce!==L&&W(this,ce)}function I(ce,oe,te){this.promise=ce,"function"==typeof oe&&(this.onFulfilled=oe,this.callFulfilled=this.otherCallFulfilled),"function"==typeof te&&(this.onRejected=te,this.callRejected=this.otherCallRejected)}function D(ce,oe,te){m(function(){var ge;try{ge=oe(te)}catch(xe){return v.reject(ce,xe)}ge===ce?v.reject(ce,new TypeError("Cannot resolve promise with itself")):v.resolve(ce,ge)})}function j(ce){var oe=ce&&ce.then;if(ce&&"object"==typeof ce&&"function"==typeof oe)return function(){oe.apply(ce,arguments)}}function W(ce,oe){var te=!1;function ge(Ce){te||(te=!0,v.reject(ce,Ce))}function xe(Ce){te||(te=!0,v.resolve(ce,Ce))}var Le=de(function he(){oe(xe,ge)});"error"===Le.status&&ge(Le.value)}function de(ce,oe){var te={};try{te.value=ce(oe),te.status="success"}catch(ge){te.status="error",te.value=ge}return te}g.exports=h=Y,Y.prototype.catch=function(ce){return this.then(null,ce)},Y.prototype.then=function(ce,oe){if("function"!=typeof ce&&this.state===k||"function"!=typeof oe&&this.state===b)return this;var te=new this.constructor(L);return this.state!==F?D(te,this.state===k?ce:oe,this.outcome):this.queue.push(new I(te,ce,oe)),te},I.prototype.callFulfilled=function(ce){v.resolve(this.promise,ce)},I.prototype.otherCallFulfilled=function(ce){D(this.promise,this.onFulfilled,ce)},I.prototype.callRejected=function(ce){v.reject(this.promise,ce)},I.prototype.otherCallRejected=function(ce){D(this.promise,this.onRejected,ce)},v.resolve=function(ce,oe){var te=de(j,oe);if("error"===te.status)return v.reject(ce,te.value);var ge=te.value;if(ge)W(ce,ge);else{ce.state=k,ce.outcome=oe;for(var xe=-1,he=ce.queue.length;++xe<he;)ce.queue[xe].callFulfilled(oe)}return ce},v.reject=function(ce,oe){ce.state=b,ce.outcome=oe;for(var te=-1,ge=ce.queue.length;++te<ge;)ce.queue[te].callRejected(oe);return ce},h.resolve=function K(ce){return ce instanceof this?ce:v.resolve(new this(L),ce)},h.reject=function ee(ce){var oe=new this(L);return v.reject(oe,ce)},h.all=function De(ce){var oe=this;if("[object Array]"!==Object.prototype.toString.call(ce))return this.reject(new TypeError("must be an array"));var te=ce.length,ge=!1;if(!te)return this.resolve([]);for(var xe=new Array(te),he=0,Le=-1,Ce=new this(L);++Le<te;)ie(ce[Le],Le);return Ce;function ie(se,me){oe.resolve(se).then(function Ne(_e){xe[me]=_e,++he===te&&!ge&&(ge=!0,v.resolve(Ce,xe))},function(_e){ge||(ge=!0,v.reject(Ce,_e))})}},h.race=function Te(ce){var oe=this;if("[object Array]"!==Object.prototype.toString.call(ce))return this.reject(new TypeError("must be an array"));var te=ce.length,ge=!1;if(!te)return this.resolve([]);for(var xe=-1,he=new this(L);++xe<te;)oe.resolve(ce[xe]).then(function(ie){ge||(ge=!0,v.resolve(he,ie))},function(ie){ge||(ge=!0,v.reject(he,ie))});return he}},{2:2}],2:[function(a,g,h){(function(m){"use strict";var v,L=m.MutationObserver||m.WebKitMutationObserver;if(L){var b=0,k=new L(j),F=m.document.createTextNode("");k.observe(F,{characterData:!0}),v=function(){F.data=b=++b%2}}else if(!m.setImmediate&&typeof m.MessageChannel<"u"){var Y=new m.MessageChannel;Y.port1.onmessage=j,v=function(){Y.port2.postMessage(0)}}else v="document"in m&&"onreadystatechange"in m.document.createElement("script")?function(){var de=m.document.createElement("script");de.onreadystatechange=function(){j(),de.onreadystatechange=null,de.parentNode.removeChild(de),de=null},m.document.documentElement.appendChild(de)}:function(){setTimeout(j,0)};var I,D=[];function j(){I=!0;for(var de,K,ee=D.length;ee;){for(K=D,D=[],de=-1;++de<ee;)K[de]();ee=D.length}I=!1}g.exports=function W(de){1===D.push(de)&&!I&&v()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(a,g,h){(function(m){"use strict";"function"!=typeof m.Promise&&(m.Promise=a(1))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{1:1}],4:[function(a,g,h){"use strict";var m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ct){return typeof ct}:function(ct){return ct&&"function"==typeof Symbol&&ct.constructor===Symbol&&ct!==Symbol.prototype?"symbol":typeof ct};var b=function v(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{}}();function I(ct,xt){ct=ct||[],xt=xt||{};try{return new Blob(ct,xt)}catch(Wt){if("TypeError"!==Wt.name)throw Wt;for(var Yt=new(typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder),$t=0;$t<ct.length;$t+=1)Yt.append(ct[$t]);return Yt.getBlob(xt.type)}}typeof Promise>"u"&&typeof a<"u"&&a(3);var D=Promise;function j(ct,xt){xt&&ct.then(function(rt){xt(null,rt)},function(rt){xt(rt)})}function W(ct,xt,rt){"function"==typeof xt&&ct.then(xt),"function"==typeof rt&&ct.catch(rt)}var K,ee,de="local-forage-detect-blob-support",De=Object.prototype.toString;function Te(ct){for(var xt=ct.length,rt=new ArrayBuffer(xt),Yt=new Uint8Array(rt),$t=0;$t<xt;$t++)Yt[$t]=ct.charCodeAt($t);return rt}function oe(ct){return"boolean"==typeof K?D.resolve(K):function ce(ct){return new D(function(xt){var rt=I([""]);ct.objectStore(de).put(rt,"key"),ct.onabort=function(Yt){Yt.preventDefault(),Yt.stopPropagation(),xt(!1)},ct.oncomplete=function(){var Yt=navigator.userAgent.match(/Chrome\/(\d+)/),$t=navigator.userAgent.match(/Edge\//);xt($t||!Yt||parseInt(Yt[1],10)>=43)}}).catch(function(){return!1})}(ct).then(function(xt){return K=xt})}function xe(ct,xt){return new D(function(rt,Yt){if(ct.db){if(!xt)return rt(ct.db);(function te(ct){var xt=ee[ct.name],rt={};rt.promise=new D(function(Yt){rt.resolve=Yt}),xt.deferredOperations.push(rt),xt.dbReady=xt.dbReady?xt.dbReady.then(function(){return rt.promise}):rt.promise})(ct),ct.db.close()}var $t=[ct.name];xt&&$t.push(ct.version);var Wt=b.open.apply(b,$t);xt&&(Wt.onupgradeneeded=function(dn){var un=Wt.result;try{un.createObjectStore(ct.storeName),dn.oldVersion<=1&&un.createObjectStore(de)}catch(Pn){if("ConstraintError"!==Pn.name)throw Pn;console.warn('The database "'+ct.name+'" has been upgraded from version '+dn.oldVersion+" to version "+dn.newVersion+', but the storage "'+ct.storeName+'" already exists.')}}),Wt.onerror=function(){Yt(Wt.error)},Wt.onsuccess=function(){rt(Wt.result),function ge(ct){var rt=ee[ct.name].deferredOperations.pop();rt&&rt.resolve()}(ct)}})}function se(ct){return I([Te(atob(ct.data))],{type:ct.type})}function me(ct){return ct&&ct.__local_forage_encoded_blob}function Ne(ct){var xt=this,rt=xt._initReady().then(function(){var Yt=ee[xt._dbInfo.name];if(Yt&&Yt.dbReady)return Yt.dbReady});return W(rt,ct,ct),rt}var Ze={_driver:"asyncStorage",_initStorage:function _e(ct){var xt=this,rt={db:null};if(ct)for(var Yt in ct)rt[Yt]=ct[Yt];ee||(ee={});var $t=ee[rt.name];$t||(ee[rt.name]=$t={forages:[],db:null,dbReady:null,deferredOperations:[]}),$t.forages.push(xt),xt._initReady||(xt._initReady=xt.ready,xt.ready=Ne);var Wt=[];function dn(){return D.resolve()}for(var un=0;un<$t.forages.length;un++){var Pn=$t.forages[un];Pn!==xt&&Wt.push(Pn._initReady().catch(dn))}var On=$t.forages.slice(0);return D.all(Wt).then(function(){return rt.db=$t.db,function he(ct){return xe(ct,!1)}(rt)}).then(function(In){return rt.db=In,function Ce(ct,xt){if(!ct.db)return!0;var rt=!ct.db.objectStoreNames.contains(ct.storeName),$t=ct.version>ct.db.version;if(ct.version<ct.db.version&&(ct.version!==xt&&console.warn('The database "'+ct.name+"\" can't be downgraded from version "+ct.db.version+" to version "+ct.version+"."),ct.version=ct.db.version),$t||rt){if(rt){var Wt=ct.db.version+1;Wt>ct.version&&(ct.version=Wt)}return!0}return!1}(rt,xt._defaultConfig.version)?function Le(ct){return xe(ct,!0)}(rt):In}).then(function(In){rt.db=$t.db=In,xt._dbInfo=rt;for(var Fn=0;Fn<On.length;Fn++){var Hr=On[Fn];Hr!==xt&&(Hr._dbInfo.db=rt.db,Hr._dbInfo.version=rt.version)}})},iterate:function Ee(ct,xt){var rt=this,Yt=new D(function($t,Wt){rt.ready().then(function(){var dn=rt._dbInfo,Pn=dn.db.transaction(dn.storeName,"readonly").objectStore(dn.storeName).openCursor(),On=1;Pn.onsuccess=function(){var In=Pn.result;if(In){var Fn=In.value;me(Fn)&&(Fn=se(Fn));var Hr=ct(Fn,In.key,On++);void 0!==Hr?$t(Hr):In.continue()}else $t()},Pn.onerror=function(){Wt(Pn.error)}}).catch(Wt)});return j(Yt,xt),Yt},getItem:function we(ct,xt){var rt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var Yt=new D(function($t,Wt){rt.ready().then(function(){var dn=rt._dbInfo,Pn=dn.db.transaction(dn.storeName,"readonly").objectStore(dn.storeName).get(ct);Pn.onsuccess=function(){var On=Pn.result;void 0===On&&(On=null),me(On)&&(On=se(On)),$t(On)},Pn.onerror=function(){Wt(Pn.error)}}).catch(Wt)});return j(Yt,xt),Yt},setItem:function le(ct,xt,rt){var Yt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var $t=new D(function(Wt,dn){var un;Yt.ready().then(function(){return un=Yt._dbInfo,"[object Blob]"===De.call(xt)?oe(un.db).then(function(Pn){return Pn?xt:function ie(ct){return new D(function(xt,rt){var Yt=new FileReader;Yt.onerror=rt,Yt.onloadend=function($t){var Wt=btoa($t.target.result||"");xt({__local_forage_encoded_blob:!0,data:Wt,type:ct.type})},Yt.readAsBinaryString(ct)})}(xt)}):xt}).then(function(Pn){var On=un.db.transaction(un.storeName,"readwrite"),In=On.objectStore(un.storeName);null===Pn&&(Pn=void 0),On.oncomplete=function(){void 0===Pn&&(Pn=null),Wt(Pn)},On.onabort=On.onerror=function(){dn(Fn.error?Fn.error:Fn.transaction.error)};var Fn=In.put(Pn,ct)}).catch(dn)});return j($t,rt),$t},removeItem:function Ue(ct,xt){var rt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var Yt=new D(function($t,Wt){rt.ready().then(function(){var dn=rt._dbInfo,un=dn.db.transaction(dn.storeName,"readwrite"),On=un.objectStore(dn.storeName).delete(ct);un.oncomplete=function(){$t()},un.onerror=function(){Wt(On.error)},un.onabort=function(){Wt(On.error?On.error:On.transaction.error)}}).catch(Wt)});return j(Yt,xt),Yt},clear:function ke(ct){var xt=this,rt=new D(function(Yt,$t){xt.ready().then(function(){var Wt=xt._dbInfo,dn=Wt.db.transaction(Wt.storeName,"readwrite"),Pn=dn.objectStore(Wt.storeName).clear();dn.oncomplete=function(){Yt()},dn.onabort=dn.onerror=function(){$t(Pn.error?Pn.error:Pn.transaction.error)}}).catch($t)});return j(rt,ct),rt},length:function ze(ct){var xt=this,rt=new D(function(Yt,$t){xt.ready().then(function(){var Wt=xt._dbInfo,un=Wt.db.transaction(Wt.storeName,"readonly").objectStore(Wt.storeName).count();un.onsuccess=function(){Yt(un.result)},un.onerror=function(){$t(un.error)}}).catch($t)});return j(rt,ct),rt},key:function ye(ct,xt){var rt=this,Yt=new D(function($t,Wt){ct<0?$t(null):rt.ready().then(function(){var dn=rt._dbInfo,un=dn.db.transaction(dn.storeName,"readonly").objectStore(dn.storeName),Pn=!1,On=un.openCursor();On.onsuccess=function(){var In=On.result;In?0===ct||Pn?$t(In.key):(Pn=!0,In.advance(ct)):$t(null)},On.onerror=function(){Wt(On.error)}}).catch(Wt)});return j(Yt,xt),Yt},keys:function je(ct){var xt=this,rt=new D(function(Yt,$t){xt.ready().then(function(){var Wt=xt._dbInfo,un=Wt.db.transaction(Wt.storeName,"readonly").objectStore(Wt.storeName).openCursor(),Pn=[];un.onsuccess=function(){var On=un.result;On?(Pn.push(On.key),On.continue()):Yt(Pn)},un.onerror=function(){$t(un.error)}}).catch($t)});return j(rt,ct),rt}},_t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vt=/^~~local_forage_type~([^~]+)~/,fn="__lfsc__:",mn=fn.length,xn="arbf",gn="blob",dr=mn+xn.length,er=Object.prototype.toString;function Jn(ct){var Yt,Wt,dn,un,Pn,xt=.75*ct.length,rt=ct.length,$t=0;"="===ct[ct.length-1]&&(xt--,"="===ct[ct.length-2]&&xt--);var On=new ArrayBuffer(xt),In=new Uint8Array(On);for(Yt=0;Yt<rt;Yt+=4)Wt=_t.indexOf(ct[Yt]),dn=_t.indexOf(ct[Yt+1]),un=_t.indexOf(ct[Yt+2]),Pn=_t.indexOf(ct[Yt+3]),In[$t++]=Wt<<2|dn>>4,In[$t++]=(15&dn)<<4|un>>2,In[$t++]=(3&un)<<6|63&Pn;return On}function Er(ct){var Yt,xt=new Uint8Array(ct),rt="";for(Yt=0;Yt<xt.length;Yt+=3)rt+=_t[xt[Yt]>>2],rt+=_t[(3&xt[Yt])<<4|xt[Yt+1]>>4],rt+=_t[(15&xt[Yt+1])<<2|xt[Yt+2]>>6],rt+=_t[63&xt[Yt+2]];return xt.length%3==2?rt=rt.substring(0,rt.length-1)+"=":xt.length%3==1&&(rt=rt.substring(0,rt.length-2)+"=="),rt}var Qn={serialize:function lo(ct,xt){var rt="";if(ct&&(rt=er.call(ct)),ct&&("[object ArrayBuffer]"===rt||ct.buffer&&"[object ArrayBuffer]"===er.call(ct.buffer))){var Yt,$t=fn;ct instanceof ArrayBuffer?(Yt=ct,$t+=xn):(Yt=ct.buffer,"[object Int8Array]"===rt?$t+="si08":"[object Uint8Array]"===rt?$t+="ui08":"[object Uint8ClampedArray]"===rt?$t+="uic8":"[object Int16Array]"===rt?$t+="si16":"[object Uint16Array]"===rt?$t+="ur16":"[object Int32Array]"===rt?$t+="si32":"[object Uint32Array]"===rt?$t+="ui32":"[object Float32Array]"===rt?$t+="fl32":"[object Float64Array]"===rt?$t+="fl64":xt(new Error("Failed to get type for BinaryArray"))),xt($t+Er(Yt))}else if("[object Blob]"===rt){var Wt=new FileReader;Wt.onload=function(){var dn="~~local_forage_type~"+ct.type+"~"+Er(this.result);xt(fn+gn+dn)},Wt.readAsArrayBuffer(ct)}else try{xt(JSON.stringify(ct))}catch(dn){console.error("Couldn't convert value into a JSON string: ",ct),xt(null,dn)}},deserialize:function Gr(ct){if(ct.substring(0,mn)!==fn)return JSON.parse(ct);var Yt,xt=ct.substring(dr),rt=ct.substring(mn,dr);if(rt===gn&&Vt.test(xt)){var $t=xt.match(Vt);Yt=$t[1],xt=xt.substring($t[0].length)}var Wt=Jn(xt);switch(rt){case xn:return Wt;case gn:return I([Wt],{type:Yt});case"si08":return new Int8Array(Wt);case"ui08":return new Uint8Array(Wt);case"uic8":return new Uint8ClampedArray(Wt);case"si16":return new Int16Array(Wt);case"ur16":return new Uint16Array(Wt);case"si32":return new Int32Array(Wt);case"ui32":return new Uint32Array(Wt);case"fl32":return new Float32Array(Wt);case"fl64":return new Float64Array(Wt);default:throw new Error("Unkown type: "+rt)}},stringToBuffer:Jn,bufferToString:Er};var Ko={_driver:"webSQLStorage",_initStorage:function Pr(ct){var xt=this,rt={db:null};if(ct)for(var Yt in ct)rt[Yt]="string"!=typeof ct[Yt]?ct[Yt].toString():ct[Yt];var $t=new D(function(Wt,dn){try{rt.db=openDatabase(rt.name,String(rt.version),rt.description,rt.size)}catch(un){return dn(un)}rt.db.transaction(function(un){un.executeSql("CREATE TABLE IF NOT EXISTS "+rt.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){xt._dbInfo=rt,Wt()},function(Pn,On){dn(On)})})});return rt.serializer=Qn,$t},iterate:function Nr(ct,xt){var rt=this,Yt=new D(function($t,Wt){rt.ready().then(function(){var dn=rt._dbInfo;dn.db.transaction(function(un){un.executeSql("SELECT * FROM "+dn.storeName,[],function(Pn,On){for(var In=On.rows,Fn=In.length,Hr=0;Hr<Fn;Hr++){var xo=In.item(Hr),yo=xo.value;if(yo&&(yo=dn.serializer.deserialize(yo)),void 0!==(yo=ct(yo,xo.key,Hr+1)))return void $t(yo)}$t()},function(Pn,On){Wt(On)})})}).catch(Wt)});return j(Yt,xt),Yt},getItem:function jr(ct,xt){var rt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var Yt=new D(function($t,Wt){rt.ready().then(function(){var dn=rt._dbInfo;dn.db.transaction(function(un){un.executeSql("SELECT * FROM "+dn.storeName+" WHERE key = ? LIMIT 1",[ct],function(Pn,On){var In=On.rows.length?On.rows.item(0).value:null;In&&(In=dn.serializer.deserialize(In)),$t(In)},function(Pn,On){Wt(On)})})}).catch(Wt)});return j(Yt,xt),Yt},setItem:function go(ct,xt,rt){var Yt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var $t=new D(function(Wt,dn){Yt.ready().then(function(){void 0===xt&&(xt=null);var un=xt,Pn=Yt._dbInfo;Pn.serializer.serialize(xt,function(On,In){In?dn(In):Pn.db.transaction(function(Fn){Fn.executeSql("INSERT OR REPLACE INTO "+Pn.storeName+" (key, value) VALUES (?, ?)",[ct,On],function(){Wt(un)},function(Hr,xo){dn(xo)})},function(Fn){Fn.code===Fn.QUOTA_ERR&&dn(Fn)})})}).catch(dn)});return j($t,rt),$t},removeItem:function Zr(ct,xt){var rt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var Yt=new D(function($t,Wt){rt.ready().then(function(){var dn=rt._dbInfo;dn.db.transaction(function(un){un.executeSql("DELETE FROM "+dn.storeName+" WHERE key = ?",[ct],function(){$t()},function(Pn,On){Wt(On)})})}).catch(Wt)});return j(Yt,xt),Yt},clear:function ro(ct){var xt=this,rt=new D(function(Yt,$t){xt.ready().then(function(){var Wt=xt._dbInfo;Wt.db.transaction(function(dn){dn.executeSql("DELETE FROM "+Wt.storeName,[],function(){Yt()},function(un,Pn){$t(Pn)})})}).catch($t)});return j(rt,ct),rt},length:function mo(ct){var xt=this,rt=new D(function(Yt,$t){xt.ready().then(function(){var Wt=xt._dbInfo;Wt.db.transaction(function(dn){dn.executeSql("SELECT COUNT(key) as c FROM "+Wt.storeName,[],function(un,Pn){var On=Pn.rows.item(0).c;Yt(On)},function(un,Pn){$t(Pn)})})}).catch($t)});return j(rt,ct),rt},key:function ki(ct,xt){var rt=this,Yt=new D(function($t,Wt){rt.ready().then(function(){var dn=rt._dbInfo;dn.db.transaction(function(un){un.executeSql("SELECT key FROM "+dn.storeName+" WHERE id = ? LIMIT 1",[ct+1],function(Pn,On){var In=On.rows.length?On.rows.item(0).key:null;$t(In)},function(Pn,On){Wt(On)})})}).catch(Wt)});return j(Yt,xt),Yt},keys:function Yo(ct){var xt=this,rt=new D(function(Yt,$t){xt.ready().then(function(){var Wt=xt._dbInfo;Wt.db.transaction(function(dn){dn.executeSql("SELECT key FROM "+Wt.storeName,[],function(un,Pn){for(var On=[],In=0;In<Pn.rows.length;In++)On.push(Pn.rows.item(In).key);Yt(On)},function(un,Pn){$t(Pn)})})}).catch($t)});return j(rt,ct),rt}};var Zn={_driver:"localStorageWrapper",_initStorage:function wo(ct){var rt={};if(ct)for(var Yt in ct)rt[Yt]=ct[Yt];return rt.keyPrefix=rt.name+"/",rt.storeName!==this._defaultConfig.storeName&&(rt.keyPrefix+=rt.storeName+"/"),this._dbInfo=rt,rt.serializer=Qn,D.resolve()},iterate:function mi(ct,xt){var rt=this,Yt=rt.ready().then(function(){for(var $t=rt._dbInfo,Wt=$t.keyPrefix,dn=Wt.length,un=localStorage.length,Pn=1,On=0;On<un;On++){var In=localStorage.key(On);if(0===In.indexOf(Wt)){var Fn=localStorage.getItem(In);if(Fn&&(Fn=$t.serializer.deserialize(Fn)),void 0!==(Fn=ct(Fn,In.substring(dn),Pn++)))return Fn}}});return j(Yt,xt),Yt},getItem:function hi(ct,xt){var rt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var Yt=rt.ready().then(function(){var $t=rt._dbInfo,Wt=localStorage.getItem($t.keyPrefix+ct);return Wt&&(Wt=$t.serializer.deserialize(Wt)),Wt});return j(Yt,xt),Yt},setItem:function br(ct,xt,rt){var Yt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var $t=Yt.ready().then(function(){void 0===xt&&(xt=null);var Wt=xt;return new D(function(dn,un){var Pn=Yt._dbInfo;Pn.serializer.serialize(xt,function(On,In){if(In)un(In);else try{localStorage.setItem(Pn.keyPrefix+ct,On),dn(Wt)}catch(Fn){("QuotaExceededError"===Fn.name||"NS_ERROR_DOM_QUOTA_REACHED"===Fn.name)&&un(Fn),un(Fn)}})})});return j($t,rt),$t},removeItem:function vo(ct,xt){var rt=this;"string"!=typeof ct&&(console.warn(ct+" used as a key, but it is not a string."),ct=String(ct));var Yt=rt.ready().then(function(){localStorage.removeItem(rt._dbInfo.keyPrefix+ct)});return j(Yt,xt),Yt},clear:function $r(ct){var xt=this,rt=xt.ready().then(function(){for(var Yt=xt._dbInfo.keyPrefix,$t=localStorage.length-1;$t>=0;$t--){var Wt=localStorage.key($t);0===Wt.indexOf(Yt)&&localStorage.removeItem(Wt)}});return j(rt,ct),rt},length:function Ur(ct){var rt=this.keys().then(function(Yt){return Yt.length});return j(rt,ct),rt},key:function vn(ct,xt){var rt=this,Yt=rt.ready().then(function(){var Wt,$t=rt._dbInfo;try{Wt=localStorage.key(ct)}catch{Wt=null}return Wt&&(Wt=Wt.substring($t.keyPrefix.length)),Wt});return j(Yt,xt),Yt},keys:function Eo(ct){var xt=this,rt=xt.ready().then(function(){for(var Yt=xt._dbInfo,$t=localStorage.length,Wt=[],dn=0;dn<$t;dn++)0===localStorage.key(dn).indexOf(Yt.keyPrefix)&&Wt.push(localStorage.key(dn).substring(Yt.keyPrefix.length));return Wt});return j(rt,ct),rt}},uo={},fr={INDEXEDDB:"asyncStorage",LOCALSTORAGE:"localStorageWrapper",WEBSQL:"webSQLStorage"},Fo=["clear","getItem","iterate","key","keys","length","removeItem","setItem"],_i={description:"",driver:[fr.INDEXEDDB,fr.WEBSQL,fr.LOCALSTORAGE].slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},xr={};xr[fr.INDEXEDDB]=function k(){try{return!(!b||typeof openDatabase<"u"&&typeof navigator<"u"&&navigator.userAgent&&/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent))&&b&&"function"==typeof b.open&&typeof IDBKeyRange<"u"}catch{return!1}}(),xr[fr.WEBSQL]=function F(){return"function"==typeof openDatabase}(),xr[fr.LOCALSTORAGE]=function Y(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&localStorage.setItem}catch{return!1}}();var It=Array.isArray||function(ct){return"[object Array]"===Object.prototype.toString.call(ct)};function ut(ct,xt){ct[xt]=function(){var rt=arguments;return ct.ready().then(function(){return ct[xt].apply(ct,rt)})}}function nt(){for(var ct=1;ct<arguments.length;ct++){var xt=arguments[ct];if(xt)for(var rt in xt)xt.hasOwnProperty(rt)&&(arguments[0][rt]=It(xt[rt])?xt[rt].slice():xt[rt])}return arguments[0]}function Ot(ct){for(var xt in fr)if(fr.hasOwnProperty(xt)&&fr[xt]===ct)return!0;return!1}var jn=new(function(){function ct(xt){(function L(ct,xt){if(!(ct instanceof xt))throw new TypeError("Cannot call a class as a function")})(this,ct),this.INDEXEDDB=fr.INDEXEDDB,this.LOCALSTORAGE=fr.LOCALSTORAGE,this.WEBSQL=fr.WEBSQL,this._defaultConfig=nt({},_i),this._config=nt({},this._defaultConfig,xt),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver)}return ct.prototype.config=function(rt){if("object"===(typeof rt>"u"?"undefined":m(rt))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var Yt in rt)"storeName"===Yt&&(rt[Yt]=rt[Yt].replace(/\W/g,"_")),this._config[Yt]=rt[Yt];return"driver"in rt&&rt.driver&&this.setDriver(this._config.driver),!0}return"string"==typeof rt?this._config[rt]:this._config},ct.prototype.defineDriver=function(rt,Yt,$t){var Wt=new D(function(dn,un){try{var Pn=rt._driver,On=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver"),In=new Error("Custom driver name already in use: "+rt._driver);if(!rt._driver)return void un(On);if(Ot(rt._driver))return void un(In);for(var Fn=Fo.concat("_initStorage"),Hr=0;Hr<Fn.length;Hr++){var xo=Fn[Hr];if(!xo||!rt[xo]||"function"!=typeof rt[xo])return void un(On)}var yo=D.resolve(!0);"_support"in rt&&(yo=rt._support&&"function"==typeof rt._support?rt._support():D.resolve(!!rt._support)),yo.then(function(Ho){xr[Pn]=Ho,uo[Pn]=rt,dn()},un)}catch(Ho){un(Ho)}});return W(Wt,Yt,$t),Wt},ct.prototype.driver=function(){return this._driver||null},ct.prototype.getDriver=function(rt,Yt,$t){var Wt=this,dn=D.resolve().then(function(){if(!Ot(rt)){if(uo[rt])return uo[rt];throw new Error("Driver not found.")}switch(rt){case Wt.INDEXEDDB:return Ze;case Wt.LOCALSTORAGE:return Zn;case Wt.WEBSQL:return Ko}});return W(dn,Yt,$t),dn},ct.prototype.getSerializer=function(rt){var Yt=D.resolve(Qn);return W(Yt,rt),Yt},ct.prototype.ready=function(rt){var Yt=this,$t=Yt._driverSet.then(function(){return null===Yt._ready&&(Yt._ready=Yt._initDriver()),Yt._ready});return W($t,rt,rt),$t},ct.prototype.setDriver=function(rt,Yt,$t){var Wt=this;It(rt)||(rt=[rt]);var dn=this._getSupportedDrivers(rt);function un(){Wt._config.driver=Wt.driver()}var On=null!==this._driverSet?this._driverSet.catch(function(){return D.resolve()}):D.resolve();return this._driverSet=On.then(function(){var In=dn[0];return Wt._dbInfo=null,Wt._ready=null,Wt.getDriver(In).then(function(Fn){Wt._driver=Fn._driver,un(),Wt._wrapLibraryMethodsWithReady(),Wt._initDriver=function Pn(In){return function(){var Fn=0;return function Hr(){for(;Fn<In.length;){var xo=In[Fn];return Fn++,Wt._dbInfo=null,Wt._ready=null,Wt.getDriver(xo).then(function(Ho){return Wt._extend(Ho),un(),Wt._ready=Wt._initStorage(Wt._config),Wt._ready}).catch(Hr)}un();var yo=new Error("No available storage method found.");return Wt._driverSet=D.reject(yo),Wt._driverSet}()}}(dn)})}).catch(function(){un();var In=new Error("No available storage method found.");return Wt._driverSet=D.reject(In),Wt._driverSet}),W(this._driverSet,Yt,$t),this._driverSet},ct.prototype.supports=function(rt){return!!xr[rt]},ct.prototype._extend=function(rt){nt(this,rt)},ct.prototype._getSupportedDrivers=function(rt){for(var Yt=[],$t=0,Wt=rt.length;$t<Wt;$t++){var dn=rt[$t];this.supports(dn)&&Yt.push(dn)}return Yt},ct.prototype._wrapLibraryMethodsWithReady=function(){for(var rt=0;rt<Fo.length;rt++)ut(this,Fo[rt])},ct.prototype.createInstance=function(rt){return new ct(rt)},ct}());g.exports=jn},{3:3}]},{},[4])(4)},27088:function(Ge,$,f){!function(o){"use strict";o.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(g){return/^nm$/i.test(g)},meridiem:function(g,h,m){return g<12?m?"vm":"VM":m?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(g){return g+(1===g||8===g||g>=20?"ste":"de")},week:{dow:1,doy:4}})}(f(15439))},52502:function(Ge,$,f){!function(o){"use strict";var a=function(v){return 0===v?0:1===v?1:2===v?2:v%100>=3&&v%100<=10?3:v%100>=11?4:5},g={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},h=function(v){return function(b,k,F,Y){var I=a(b),D=g[v][a(b)];return 2===I&&(D=D[k?0:1]),D.replace(/%d/i,b)}},m=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar-dz",{months:m,monthsShort:m,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(v){return"\u0645"===v},meridiem:function(v,b,k){return v<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:h("s"),ss:h("s"),m:h("m"),mm:h("m"),h:h("h"),hh:h("h"),d:h("d"),dd:h("d"),M:h("M"),MM:h("M"),y:h("y"),yy:h("y")},postformat:function(v){return v.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(f(15439))},30128:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(f(15439))},84519:function(Ge,$,f){!function(o){"use strict";var a={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},g=function(b){return 0===b?0:1===b?1:2===b?2:b%100>=3&&b%100<=10?3:b%100>=11?4:5},h={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},m=function(b){return function(k,F,Y,I){var D=g(k),j=h[b][g(k)];return 2===D&&(j=j[F?0:1]),j.replace(/%d/i,k)}},L=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar-ly",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(b){return"\u0645"===b},meridiem:function(b,k,F){return b<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:m("s"),ss:m("s"),m:m("m"),mm:m("m"),h:m("h"),hh:m("h"),d:m("d"),dd:m("d"),M:m("M"),MM:m("M"),y:m("y"),yy:m("y")},preparse:function(b){return b.replace(/\u060c/g,",")},postformat:function(b){return b.replace(/\d/g,function(k){return a[k]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(f(15439))},65443:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(f(15439))},14523:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},g={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};o.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(m){return"\u0645"===m},meridiem:function(m,L,v){return m<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(m){return m.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return g[L]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(L){return g[L]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(f(15439))},17642:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},g={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};o.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(m){return"\u0645"===m},meridiem:function(m,L,v){return m<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(m){return m.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return g[L]}).replace(/\u060c/g,",")},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(f(15439))},68592:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(f(15439))},17038:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},g={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},h=function(k){return 0===k?0:1===k?1:2===k?2:k%100>=3&&k%100<=10?3:k%100>=11?4:5},m={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},L=function(k){return function(F,Y,I,D){var j=h(F),W=m[k][h(F)];return 2===j&&(W=W[Y?0:1]),W.replace(/%d/i,F)}},v=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar",{months:v,monthsShort:v,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(k){return"\u0645"===k},meridiem:function(k,F,Y){return k<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(k){return k.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(F){return g[F]}).replace(/\u060c/g,",")},postformat:function(k){return k.replace(/\d/g,function(F){return a[F]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(f(15439))},51213:function(Ge,$,f){!function(o){"use strict";var a={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};o.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(h){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(h)},meridiem:function(h,m,L){return h<4?"gec\u0259":h<12?"s\u0259h\u0259r":h<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(h){if(0===h)return h+"-\u0131nc\u0131";var m=h%10;return h+(a[m]||a[h%100-m]||a[h>=100?100:null])},week:{dow:1,doy:7}})}(f(15439))},69191:function(Ge,$,f){!function(o){"use strict";function g(m,L,v){return"m"===v?L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===v?L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":m+" "+function a(m,L){var v=m.split("_");return L%10==1&&L%100!=11?v[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?v[1]:v[2]}({ss:L?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[v],+m)}o.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:g,mm:g,h:g,hh:g,d:"\u0434\u0437\u0435\u043d\u044c",dd:g,M:"\u043c\u0435\u0441\u044f\u0446",MM:g,y:"\u0433\u043e\u0434",yy:g},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(m){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(m)},meridiem:function(m,L,v){return m<4?"\u043d\u043e\u0447\u044b":m<12?"\u0440\u0430\u043d\u0456\u0446\u044b":m<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(m,L){switch(L){case"M":case"d":case"DDD":case"w":case"W":return m%10!=2&&m%10!=3||m%100==12||m%100==13?m+"-\u044b":m+"-\u0456";case"D":return m+"-\u0433\u0430";default:return m}},week:{dow:1,doy:7}})}(f(15439))},90322:function(Ge,$,f){!function(o){"use strict";o.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(g){var h=g%10,m=g%100;return 0===g?g+"-\u0435\u0432":0===m?g+"-\u0435\u043d":m>10&&m<20?g+"-\u0442\u0438":1===h?g+"-\u0432\u0438":2===h?g+"-\u0440\u0438":7===h||8===h?g+"-\u043c\u0438":g+"-\u0442\u0438"},week:{dow:1,doy:7}})}(f(15439))},28042:function(Ge,$,f){!function(o){"use strict";o.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(f(15439))},65903:function(Ge,$,f){!function(o){"use strict";var a={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},g={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};o.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(m){return m.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(m,L){return 12===m&&(m=0),"\u09b0\u09be\u09a4"===L?m<4?m:m+12:"\u09ad\u09cb\u09b0"===L||"\u09b8\u0995\u09be\u09b2"===L?m:"\u09a6\u09c1\u09aa\u09c1\u09b0"===L?m>=3?m:m+12:"\u09ac\u09bf\u0995\u09be\u09b2"===L||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===L?m+12:void 0},meridiem:function(m,L,v){return m<4?"\u09b0\u09be\u09a4":m<6?"\u09ad\u09cb\u09b0":m<12?"\u09b8\u0995\u09be\u09b2":m<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":m<18?"\u09ac\u09bf\u0995\u09be\u09b2":m<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(f(15439))},59620:function(Ge,$,f){!function(o){"use strict";var a={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},g={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};o.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(m){return m.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(m,L){return 12===m&&(m=0),"\u09b0\u09be\u09a4"===L&&m>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===L&&m<5||"\u09ac\u09bf\u0995\u09be\u09b2"===L?m+12:m},meridiem:function(m,L,v){return m<4?"\u09b0\u09be\u09a4":m<10?"\u09b8\u0995\u09be\u09b2":m<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":m<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(f(15439))},69645:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},g={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};o.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(m){return m.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(m,L){return 12===m&&(m=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===L&&m>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===L&&m<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===L?m+12:m},meridiem:function(m,L,v){return m<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":m<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":m<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":m<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(f(15439))},45020:function(Ge,$,f){!function(o){"use strict";function a(W,de,K){return W+" "+function m(W,de){return 2===de?function L(W){var de={m:"v",b:"v",d:"z"};return void 0===de[W.charAt(0)]?W:de[W.charAt(0)]+W.substring(1)}(W):W}({mm:"munutenn",MM:"miz",dd:"devezh"}[K],W)}function h(W){return W>9?h(W%10):W}var v=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],b=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,D=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];o.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:D,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:D,monthsRegex:b,monthsShortRegex:b,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:v,longMonthsParse:v,shortMonthsParse:v,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:a,h:"un eur",hh:"%d eur",d:"un devezh",dd:a,M:"ur miz",MM:a,y:"ur bloaz",yy:function g(W){switch(h(W)){case 1:case 3:case 4:case 5:case 9:return W+" bloaz";default:return W+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(W){return W+(1===W?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(W){return"g.m."===W},meridiem:function(W,de,K){return W<12?"a.m.":"g.m."}})}(f(15439))},64792:function(Ge,$,f){!function(o){"use strict";function g(m,L,v){var b=m+" ";switch(v){case"ss":return b+(1===m?"sekunda":2===m||3===m||4===m?"sekunde":"sekundi");case"mm":return b+(1===m?"minuta":2===m||3===m||4===m?"minute":"minuta");case"h":return"jedan sat";case"hh":return b+(1===m?"sat":2===m||3===m||4===m?"sata":"sati");case"dd":return b+(1===m?"dan":"dana");case"MM":return b+(1===m?"mjesec":2===m||3===m||4===m?"mjeseca":"mjeseci");case"yy":return b+(1===m?"godina":2===m||3===m||4===m?"godine":"godina")}}o.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:g,m:function a(m,L,v,b){if("m"===v)return L?"jedna minuta":b?"jednu minutu":"jedne minute"},mm:g,h:g,hh:g,d:"dan",dd:g,M:"mjesec",MM:g,y:"godinu",yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(f(15439))},47980:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(g,h){var m=1===g?"r":2===g?"n":3===g?"r":4===g?"t":"\xe8";return("w"===h||"W"===h)&&(m="a"),g+m},week:{dow:1,doy:4}})}(f(15439))},47322:function(Ge,$,f){!function(o){"use strict";var a={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},g="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),h=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],m=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function L(k){return k>1&&k<5&&1!=~~(k/10)}function v(k,F,Y,I){var D=k+" ";switch(Y){case"s":return F||I?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return F||I?D+(L(k)?"sekundy":"sekund"):D+"sekundami";case"m":return F?"minuta":I?"minutu":"minutou";case"mm":return F||I?D+(L(k)?"minuty":"minut"):D+"minutami";case"h":return F?"hodina":I?"hodinu":"hodinou";case"hh":return F||I?D+(L(k)?"hodiny":"hodin"):D+"hodinami";case"d":return F||I?"den":"dnem";case"dd":return F||I?D+(L(k)?"dny":"dn\xed"):D+"dny";case"M":return F||I?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return F||I?D+(L(k)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):D+"m\u011bs\xedci";case"y":return F||I?"rok":"rokem";case"yy":return F||I?D+(L(k)?"roky":"let"):D+"lety"}}o.defineLocale("cs",{months:a,monthsShort:g,monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:v,ss:v,m:v,mm:v,h:v,hh:v,d:v,dd:v,M:v,MM:v,y:v,yy:v},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},90365:function(Ge,$,f){!function(o){"use strict";o.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(g){return g+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(g)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(g)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(f(15439))},32092:function(Ge,$,f){!function(o){"use strict";o.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(g){var m="";return g>20?m=40===g||50===g||60===g||80===g||100===g?"fed":"ain":g>0&&(m=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][g]),g+m},week:{dow:1,doy:4}})}(f(15439))},77387:function(Ge,$,f){!function(o){"use strict";o.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},29459:function(Ge,$,f){!function(o){"use strict";function a(h,m,L,v){var b={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return m?b[L][0]:b[L][1]}o.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},73694:function(Ge,$,f){!function(o){"use strict";function a(h,m,L,v){var b={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return m?b[L][0]:b[L][1]}o.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},54307:function(Ge,$,f){!function(o){"use strict";function a(h,m,L,v){var b={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[h+" Tage",h+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[h+" Monate",h+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[h+" Jahre",h+" Jahren"]};return m?b[L][0]:b[L][1]}o.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},39659:function(Ge,$,f){!function(o){"use strict";var a=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],g=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];o.defineLocale("dv",{months:a,monthsShort:a,weekdays:g,weekdaysShort:g,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(m){return"\u0789\u078a"===m},meridiem:function(m,L,v){return m<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(m){return m.replace(/\u060c/g,",")},postformat:function(m){return m.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(f(15439))},3460:function(Ge,$,f){!function(o){"use strict";o.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(h,m){return h?"string"==typeof m&&/D/.test(m.substring(0,m.indexOf("MMMM")))?this._monthsGenitiveEl[h.month()]:this._monthsNominativeEl[h.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(h,m,L){return h>11?L?"\u03bc\u03bc":"\u039c\u039c":L?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(h){return"\u03bc"===(h+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(h,m){var L=this._calendarEl[h],v=m&&m.hours();return function a(h){return typeof Function<"u"&&h instanceof Function||"[object Function]"===Object.prototype.toString.call(h)}(L)&&(L=L.apply(m)),L.replace("{}",v%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(f(15439))},94369:function(Ge,$,f){!function(o){"use strict";o.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:0,doy:4}})}(f(15439))},60530:function(Ge,$,f){!function(o){"use strict";o.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")}})}(f(15439))},9998:function(Ge,$,f){!function(o){"use strict";o.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(f(15439))},13391:function(Ge,$,f){!function(o){"use strict";o.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(f(15439))},75414:function(Ge,$,f){!function(o){"use strict";o.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")}})}(f(15439))},19615:function(Ge,$,f){!function(o){"use strict";o.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:0,doy:6}})}(f(15439))},21248:function(Ge,$,f){!function(o){"use strict";o.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(f(15439))},13767:function(Ge,$,f){!function(o){"use strict";o.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(f(15439))},84530:function(Ge,$,f){!function(o){"use strict";o.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(g){return"p"===g.charAt(0).toLowerCase()},meridiem:function(g,h,m){return g>11?m?"p.t.m.":"P.T.M.":m?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(f(15439))},18944:function(Ge,$,f){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),g="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],m=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,b){return v?/-MMM-/.test(b)?g[v.month()]:a[v.month()]:a},monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(f(15439))},29116:function(Ge,$,f){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),g="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],m=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,b){return v?/-MMM-/.test(b)?g[v.month()]:a[v.month()]:a},monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(f(15439))},83609:function(Ge,$,f){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),g="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],m=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,b){return v?/-MMM-/.test(b)?g[v.month()]:a[v.month()]:a},monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(f(15439))},86866:function(Ge,$,f){!function(o){"use strict";var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),g="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),h=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],m=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,b){return v?/-MMM-/.test(b)?g[v.month()]:a[v.month()]:a},monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(f(15439))},96725:function(Ge,$,f){!function(o){"use strict";function a(h,m,L,v){var b={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[h+"sekundi",h+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[h+" minuti",h+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[h+" tunni",h+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[h+" kuu",h+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[h+" aasta",h+" aastat"]};return m?b[L][2]?b[L][2]:b[L][1]:v?b[L][0]:b[L][1]}o.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d p\xe4eva",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},67931:function(Ge,$,f){!function(o){"use strict";o.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(f(15439))},56417:function(Ge,$,f){!function(o){"use strict";var a={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},g={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};o.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(m){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(m)},meridiem:function(m,L,v){return m<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(m){return m.replace(/[\u06f0-\u06f9]/g,function(L){return g[L]}).replace(/\u060c/g,",")},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(f(15439))},20944:function(Ge,$,f){!function(o){"use strict";var a="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),g=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",a[7],a[8],a[9]];function h(v,b,k,F){var Y="";switch(k){case"s":return F?"muutaman sekunnin":"muutama sekunti";case"ss":Y=F?"sekunnin":"sekuntia";break;case"m":return F?"minuutin":"minuutti";case"mm":Y=F?"minuutin":"minuuttia";break;case"h":return F?"tunnin":"tunti";case"hh":Y=F?"tunnin":"tuntia";break;case"d":return F?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Y=F?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return F?"kuukauden":"kuukausi";case"MM":Y=F?"kuukauden":"kuukautta";break;case"y":return F?"vuoden":"vuosi";case"yy":Y=F?"vuoden":"vuotta"}return function m(v,b){return v<10?b?g[v]:a[v]:v}(v,F)+" "+Y}o.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:h,ss:h,m:h,mm:h,h,hh:h,d:h,dd:h,M:h,MM:h,y:h,yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},61766:function(Ge,$,f){!function(o){"use strict";o.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(g){return g},week:{dow:1,doy:4}})}(f(15439))},95867:function(Ge,$,f){!function(o){"use strict";o.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},16848:function(Ge,$,f){!function(o){"use strict";o.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(g,h){switch(h){default:case"M":case"Q":case"D":case"DDD":case"d":return g+(1===g?"er":"e");case"w":case"W":return g+(1===g?"re":"e")}}})}(f(15439))},77773:function(Ge,$,f){!function(o){"use strict";o.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(g,h){switch(h){default:case"M":case"Q":case"D":case"DDD":case"d":return g+(1===g?"er":"e");case"w":case"W":return g+(1===g?"re":"e")}},week:{dow:1,doy:4}})}(f(15439))},1636:function(Ge,$,f){!function(o){"use strict";var h=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,m=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];o.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:h,monthsShortRegex:h,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(v,b){switch(b){case"D":return v+(1===v?"er":"");default:case"M":case"Q":case"DDD":case"d":return v+(1===v?"er":"e");case"w":case"W":return v+(1===v?"re":"e")}},week:{dow:1,doy:4}})}(f(15439))},14940:function(Ge,$,f){!function(o){"use strict";var a="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),g="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");o.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(m,L){return m?/-MMM-/.test(L)?g[m.month()]:a[m.month()]:a},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(m){return m+(1===m||8===m||m>=20?"ste":"de")},week:{dow:1,doy:4}})}(f(15439))},91402:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(b){return b+(1===b?"d":b%10==2?"na":"mh")},week:{dow:1,doy:4}})}(f(15439))},46924:function(Ge,$,f){!function(o){"use strict";o.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(b){return b+(1===b?"d":b%10==2?"na":"mh")},week:{dow:1,doy:4}})}(f(15439))},16398:function(Ge,$,f){!function(o){"use strict";o.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(g){return 0===g.indexOf("un")?"n"+g:"en "+g},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(f(15439))},72457:function(Ge,$,f){!function(o){"use strict";function a(h,m,L,v){var b={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[h+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",h+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[h+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",h+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[h+" \u0935\u0930\u093e\u0902\u0928\u0940",h+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[h+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",h+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[h+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",h+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[h+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",h+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return v?b[L][0]:b[L][1]}o.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(h,m){return"D"===m?h+"\u0935\u0947\u0930":h},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(h,m){return 12===h&&(h=0),"\u0930\u093e\u0924\u0940"===m?h<4?h:h+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===m?h:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===m?h>12?h:h+12:"\u0938\u093e\u0902\u091c\u0947"===m?h+12:void 0},meridiem:function(h,m,L){return h<4?"\u0930\u093e\u0924\u0940":h<12?"\u0938\u0915\u093e\u0933\u0940\u0902":h<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":h<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(f(15439))},52545:function(Ge,$,f){!function(o){"use strict";function a(h,m,L,v){var b={s:["thoddea sekondamni","thodde sekond"],ss:[h+" sekondamni",h+" sekond"],m:["eka mintan","ek minut"],mm:[h+" mintamni",h+" mintam"],h:["eka voran","ek vor"],hh:[h+" voramni",h+" voram"],d:["eka disan","ek dis"],dd:[h+" disamni",h+" dis"],M:["eka mhoinean","ek mhoino"],MM:[h+" mhoineamni",h+" mhoine"],y:["eka vorsan","ek voros"],yy:[h+" vorsamni",h+" vorsam"]};return v?b[L][0]:b[L][1]}o.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(h,m){return"D"===m?h+"er":h},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(h,m){return 12===h&&(h=0),"rati"===m?h<4?h:h+12:"sokallim"===m?h:"donparam"===m?h>12?h:h+12:"sanje"===m?h+12:void 0},meridiem:function(h,m,L){return h<4?"rati":h<12?"sokallim":h<16?"donparam":h<20?"sanje":"rati"}})}(f(15439))},42641:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},g={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};o.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(m){return m.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(m,L){return 12===m&&(m=0),"\u0ab0\u0abe\u0aa4"===L?m<4?m:m+12:"\u0ab8\u0ab5\u0abe\u0ab0"===L?m:"\u0aac\u0aaa\u0acb\u0ab0"===L?m>=10?m:m+12:"\u0ab8\u0abe\u0a82\u0a9c"===L?m+12:void 0},meridiem:function(m,L,v){return m<4?"\u0ab0\u0abe\u0aa4":m<10?"\u0ab8\u0ab5\u0abe\u0ab0":m<17?"\u0aac\u0aaa\u0acb\u0ab0":m<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(f(15439))},7536:function(Ge,$,f){!function(o){"use strict";o.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(g){return 2===g?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":g+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(g){return 2===g?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":g+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(g){return 2===g?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":g+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(g){return 2===g?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":g%10==0&&10!==g?g+" \u05e9\u05e0\u05d4":g+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(g){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(g)},meridiem:function(g,h,m){return g<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":g<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":g<12?m?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":g<18?m?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(f(15439))},96335:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},g={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},h=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];o.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:h,longMonthsParse:h,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(v){return v.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(b){return g[b]})},postformat:function(v){return v.replace(/\d/g,function(b){return a[b]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(v,b){return 12===v&&(v=0),"\u0930\u093e\u0924"===b?v<4?v:v+12:"\u0938\u0941\u092c\u0939"===b?v:"\u0926\u094b\u092a\u0939\u0930"===b?v>=10?v:v+12:"\u0936\u093e\u092e"===b?v+12:void 0},meridiem:function(v,b,k){return v<4?"\u0930\u093e\u0924":v<10?"\u0938\u0941\u092c\u0939":v<17?"\u0926\u094b\u092a\u0939\u0930":v<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(f(15439))},7458:function(Ge,$,f){!function(o){"use strict";function a(h,m,L){var v=h+" ";switch(L){case"ss":return v+(1===h?"sekunda":2===h||3===h||4===h?"sekunde":"sekundi");case"m":return m?"jedna minuta":"jedne minute";case"mm":return v+(1===h?"minuta":2===h||3===h||4===h?"minute":"minuta");case"h":return m?"jedan sat":"jednog sata";case"hh":return v+(1===h?"sat":2===h||3===h||4===h?"sata":"sati");case"dd":return v+(1===h?"dan":"dana");case"MM":return v+(1===h?"mjesec":2===h||3===h||4===h?"mjeseca":"mjeseci");case"yy":return v+(1===h?"godina":2===h||3===h||4===h?"godine":"godina")}}o.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(f(15439))},56540:function(Ge,$,f){!function(o){"use strict";var a="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function g(L,v,b,k){var F=L;switch(b){case"s":return k||v?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return F+(k||v)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(k||v?" perc":" perce");case"mm":return F+(k||v?" perc":" perce");case"h":return"egy"+(k||v?" \xf3ra":" \xf3r\xe1ja");case"hh":return F+(k||v?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(k||v?" nap":" napja");case"dd":return F+(k||v?" nap":" napja");case"M":return"egy"+(k||v?" h\xf3nap":" h\xf3napja");case"MM":return F+(k||v?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(k||v?" \xe9v":" \xe9ve");case"yy":return F+(k||v?" \xe9v":" \xe9ve")}return""}function h(L){return(L?"":"[m\xfalt] ")+"["+a[this.day()]+"] LT[-kor]"}o.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(L){return"u"===L.charAt(1).toLowerCase()},meridiem:function(L,v,b){return L<12?!0===b?"de":"DE":!0===b?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return h.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return h.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},65283:function(Ge,$,f){!function(o){"use strict";o.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(g){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(g)},meridiem:function(g){return g<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":g<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":g<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(g,h){switch(h){case"DDD":case"w":case"W":case"DDDo":return 1===g?g+"-\u056b\u0576":g+"-\u0580\u0564";default:return g}},week:{dow:1,doy:7}})}(f(15439))},98780:function(Ge,$,f){!function(o){"use strict";o.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(g,h){return 12===g&&(g=0),"pagi"===h?g:"siang"===h?g>=11?g:g+12:"sore"===h||"malam"===h?g+12:void 0},meridiem:function(g,h,m){return g<11?"pagi":g<15?"siang":g<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(f(15439))},14205:function(Ge,$,f){!function(o){"use strict";function a(m){return m%100==11||m%10!=1}function g(m,L,v,b){var k=m+" ";switch(v){case"s":return L||b?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return a(m)?k+(L||b?"sek\xfandur":"sek\xfandum"):k+"sek\xfanda";case"m":return L?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return a(m)?k+(L||b?"m\xedn\xfatur":"m\xedn\xfatum"):L?k+"m\xedn\xfata":k+"m\xedn\xfatu";case"hh":return a(m)?k+(L||b?"klukkustundir":"klukkustundum"):k+"klukkustund";case"d":return L?"dagur":b?"dag":"degi";case"dd":return a(m)?L?k+"dagar":k+(b?"daga":"d\xf6gum"):L?k+"dagur":k+(b?"dag":"degi");case"M":return L?"m\xe1nu\xf0ur":b?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return a(m)?L?k+"m\xe1nu\xf0ir":k+(b?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):L?k+"m\xe1nu\xf0ur":k+(b?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return L||b?"\xe1r":"\xe1ri";case"yy":return a(m)?k+(L||b?"\xe1r":"\xe1rum"):k+(L||b?"\xe1r":"\xe1ri")}}o.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:g,ss:g,m:g,mm:g,h:"klukkustund",hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},29985:function(Ge,$,f){!function(o){"use strict";o.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(g){return(/^[0-9].+$/.test(g)?"tra":"in")+" "+g},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(f(15439))},34211:function(Ge,$,f){!function(o){"use strict";o.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(f(15439))},31003:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(g,h){return"\u5143"===h[1]?1:parseInt(h[1]||g,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(g){return"\u5348\u5f8c"===g},meridiem:function(g,h,m){return g<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(g){return g.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(g){return this.week()!==g.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(g,h){switch(h){case"y":return 1===g?"\u5143\u5e74":g+"\u5e74";case"d":case"D":case"DDD":return g+"\u65e5";default:return g}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(f(15439))},60420:function(Ge,$,f){!function(o){"use strict";o.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(g,h){return 12===g&&(g=0),"enjing"===h?g:"siyang"===h?g>=11?g:g+12:"sonten"===h||"ndalu"===h?g+12:void 0},meridiem:function(g,h,m){return g<11?"enjing":g<15?"siyang":g<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(f(15439))},40851:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(g){return g.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(h,m,L){return"\u10d8"===L?m+"\u10e8\u10d8":m+L+"\u10e8\u10d8"})},past:function(g){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(g)?g.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(g)?g.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):g},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(g){return 0===g?g:1===g?g+"-\u10da\u10d8":g<20||g<=100&&g%20==0||g%100==0?"\u10db\u10d4-"+g:g+"-\u10d4"},week:{dow:1,doy:7}})}(f(15439))},16074:function(Ge,$,f){!function(o){"use strict";var a={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};o.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(h){return h+(a[h]||a[h%10]||a[h>=100?100:null])},week:{dow:1,doy:7}})}(f(15439))},53343:function(Ge,$,f){!function(o){"use strict";var a={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},g={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};o.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(m){return"\u179b\u17d2\u1784\u17b6\u1785"===m},meridiem:function(m,L,v){return m<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(m){return m.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},week:{dow:1,doy:4}})}(f(15439))},44799:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},g={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};o.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(m){return m.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(m,L){return 12===m&&(m=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===L?m<4?m:m+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===L?m:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===L?m>=10?m:m+12:"\u0cb8\u0c82\u0c9c\u0cc6"===L?m+12:void 0},meridiem:function(m,L,v){return m<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":m<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":m<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":m<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(m){return m+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(f(15439))},13549:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(g,h){switch(h){case"d":case"D":case"DDD":return g+"\uc77c";case"M":return g+"\uc6d4";case"w":case"W":return g+"\uc8fc";default:return g}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(g){return"\uc624\ud6c4"===g},meridiem:function(g,h,m){return g<12?"\uc624\uc804":"\uc624\ud6c4"}})}(f(15439))},63775:function(Ge,$,f){!function(o){"use strict";function a(m,L,v,b){var k={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[m+" san\xeeye",m+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[m+" deq\xeeqe",m+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[m+" saet",m+" saetan"],d:["rojek","rojek\xea"],dd:[m+" roj",m+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[m+" hefte",m+" hefteyan"],M:["mehek","mehek\xea"],MM:[m+" meh",m+" mehan"],y:["salek","salek\xea"],yy:[m+" sal",m+" salan"]};return L?k[v][0]:k[v][1]}o.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(m,L,v){return m<12?v?"bn":"BN":v?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,w:a,ww:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(m,L){var v=L.toLowerCase();return v.includes("w")||v.includes("m")?m+".":m+function g(m){var L=(m=""+m).substring(m.length-1),v=m.length>1?m.substring(m.length-2):"";return 12==v||13==v||"2"!=L&&"3"!=L&&"50"!=v&&"70"!=L&&"80"!=L?"\xea":"y\xea"}(m)},week:{dow:1,doy:4}})}(f(15439))},91037:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},g={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},h=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];o.defineLocale("ku",{months:h,monthsShort:h,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(L){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(L)},meridiem:function(L,v,b){return L<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(v){return g[v]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(v){return a[v]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(f(15439))},93125:function(Ge,$,f){!function(o){"use strict";var a={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};o.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(h){return h+(a[h]||a[h%10]||a[h>=100?100:null])},week:{dow:1,doy:7}})}(f(15439))},69586:function(Ge,$,f){!function(o){"use strict";function a(v,b,k,F){var Y={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return b?Y[k][0]:Y[k][1]}function m(v){if(v=parseInt(v,10),isNaN(v))return!1;if(v<0)return!0;if(v<10)return 4<=v&&v<=7;if(v<100){var b=v%10;return m(0===b?v/10:b)}if(v<1e4){for(;v>=10;)v/=10;return m(v)}return m(v/=1e3)}o.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function g(v){return m(v.substr(0,v.indexOf(" ")))?"a "+v:"an "+v},past:function h(v){return m(v.substr(0,v.indexOf(" ")))?"viru "+v:"virun "+v},s:"e puer Sekonnen",ss:"%d Sekonnen",m:a,mm:"%d Minutten",h:a,hh:"%d Stonnen",d:a,dd:"%d Deeg",M:a,MM:"%d M\xe9int",y:a,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},32349:function(Ge,$,f){!function(o){"use strict";o.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(g){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===g},meridiem:function(g,h,m){return g<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(g){return"\u0e97\u0eb5\u0ec8"+g}})}(f(15439))},92400:function(Ge,$,f){!function(o){"use strict";var a={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function h(k,F,Y,I){return F?L(Y)[0]:I?L(Y)[1]:L(Y)[2]}function m(k){return k%10==0||k>10&&k<20}function L(k){return a[k].split("_")}function v(k,F,Y,I){var D=k+" ";return 1===k?D+h(0,F,Y[0],I):F?D+(m(k)?L(Y)[1]:L(Y)[0]):I?D+L(Y)[1]:D+(m(k)?L(Y)[1]:L(Y)[2])}o.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function g(k,F,Y,I){return F?"kelios sekund\u0117s":I?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:v,m:h,mm:v,h,hh:v,d:h,dd:v,M:h,MM:v,y:h,yy:v},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(k){return k+"-oji"},week:{dow:1,doy:4}})}(f(15439))},39991:function(Ge,$,f){!function(o){"use strict";var a={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function g(b,k,F){return F?k%10==1&&k%100!=11?b[2]:b[3]:k%10==1&&k%100!=11?b[0]:b[1]}function h(b,k,F){return b+" "+g(a[F],b,k)}function m(b,k,F){return g(a[F],b,k)}o.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function L(b,k){return k?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:h,m,mm:h,h:m,hh:h,d:m,dd:h,M:m,MM:h,y:m,yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},28477:function(Ge,$,f){!function(o){"use strict";var a={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(h,m){return 1===h?m[0]:h>=2&&h<=4?m[1]:m[2]},translate:function(h,m,L){var v=a.words[L];return 1===L.length?m?v[0]:v[1]:h+" "+a.correctGrammaticalCase(h,v)}};o.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mjesec",MM:a.translate,y:"godinu",yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(f(15439))},55118:function(Ge,$,f){!function(o){"use strict";o.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(f(15439))},15943:function(Ge,$,f){!function(o){"use strict";o.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(g){var h=g%10,m=g%100;return 0===g?g+"-\u0435\u0432":0===m?g+"-\u0435\u043d":m>10&&m<20?g+"-\u0442\u0438":1===h?g+"-\u0432\u0438":2===h?g+"-\u0440\u0438":7===h||8===h?g+"-\u043c\u0438":g+"-\u0442\u0438"},week:{dow:1,doy:7}})}(f(15439))},13849:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(g,h){return 12===g&&(g=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===h&&g>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===h||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===h?g+12:g},meridiem:function(g,h,m){return g<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":g<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":g<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":g<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(f(15439))},31977:function(Ge,$,f){!function(o){"use strict";function a(h,m,L,v){switch(L){case"s":return m?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return h+(m?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return h+(m?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return h+(m?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return h+(m?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return h+(m?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return h+(m?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return h}}o.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(h){return"\u04ae\u0425"===h},meridiem:function(h,m,L){return h<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(h,m){switch(m){case"d":case"D":case"DDD":return h+" \u04e9\u0434\u04e9\u0440";default:return h}}})}(f(15439))},66184:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},g={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function h(L,v,b,k){var F="";if(v)switch(b){case"s":F="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":F="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":F="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":F="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":F="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":F="%d \u0924\u093e\u0938";break;case"d":F="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":F="%d \u0926\u093f\u0935\u0938";break;case"M":F="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":F="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":F="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":F="%d \u0935\u0930\u094d\u0937\u0947"}else switch(b){case"s":F="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":F="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":F="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":F="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":F="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":F="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":F="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":F="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":F="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":F="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":F="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":F="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return F.replace(/%d/i,L)}o.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:h,ss:h,m:h,mm:h,h,hh:h,d:h,dd:h,M:h,MM:h,y:h,yy:h},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(v){return g[v]})},postformat:function(L){return L.replace(/\d/g,function(v){return a[v]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(L,v){return 12===L&&(L=0),"\u092a\u0939\u093e\u091f\u0947"===v||"\u0938\u0915\u093e\u0933\u0940"===v?L:"\u0926\u0941\u092a\u093e\u0930\u0940"===v||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===v||"\u0930\u093e\u0924\u094d\u0930\u0940"===v?L>=12?L:L+12:void 0},meridiem:function(L,v,b){return L>=0&&L<6?"\u092a\u0939\u093e\u091f\u0947":L<12?"\u0938\u0915\u093e\u0933\u0940":L<17?"\u0926\u0941\u092a\u093e\u0930\u0940":L<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(f(15439))},64524:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(g,h){return 12===g&&(g=0),"pagi"===h?g:"tengahari"===h?g>=11?g:g+12:"petang"===h||"malam"===h?g+12:void 0},meridiem:function(g,h,m){return g<11?"pagi":g<15?"tengahari":g<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(f(15439))},70485:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(g,h){return 12===g&&(g=0),"pagi"===h?g:"tengahari"===h?g>=11?g:g+12:"petang"===h||"malam"===h?g+12:void 0},meridiem:function(g,h,m){return g<11?"pagi":g<15?"tengahari":g<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(f(15439))},36681:function(Ge,$,f){!function(o){"use strict";o.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(f(15439))},52024:function(Ge,$,f){!function(o){"use strict";var a={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},g={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};o.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(m){return m.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},week:{dow:1,doy:4}})}(f(15439))},42688:function(Ge,$,f){!function(o){"use strict";o.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},68914:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},g={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};o.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(m){return m.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(m,L){return 12===m&&(m=0),"\u0930\u093e\u0924\u093f"===L?m<4?m:m+12:"\u092c\u093f\u0939\u093e\u0928"===L?m:"\u0926\u093f\u0909\u0901\u0938\u094b"===L?m>=10?m:m+12:"\u0938\u093e\u0901\u091d"===L?m+12:void 0},meridiem:function(m,L,v){return m<3?"\u0930\u093e\u0924\u093f":m<12?"\u092c\u093f\u0939\u093e\u0928":m<16?"\u0926\u093f\u0909\u0901\u0938\u094b":m<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(f(15439))},52272:function(Ge,$,f){!function(o){"use strict";var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),g="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),h=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],m=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;o.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(v,b){return v?/-MMM-/.test(b)?g[v.month()]:a[v.month()]:a},monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(v){return v+(1===v||8===v||v>=20?"ste":"de")},week:{dow:1,doy:4}})}(f(15439))},11758:function(Ge,$,f){!function(o){"use strict";var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),g="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),h=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],m=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;o.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(v,b){return v?/-MMM-/.test(b)?g[v.month()]:a[v.month()]:a},monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(v){return v+(1===v||8===v||v>=20?"ste":"de")},week:{dow:1,doy:4}})}(f(15439))},41510:function(Ge,$,f){!function(o){"use strict";o.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},52797:function(Ge,$,f){!function(o){"use strict";o.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(g,h){var m=1===g?"r":2===g?"n":3===g?"r":4===g?"t":"\xe8";return("w"===h||"W"===h)&&(m="a"),g+m},week:{dow:1,doy:4}})}(f(15439))},37944:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},g={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};o.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(m){return m.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(m,L){return 12===m&&(m=0),"\u0a30\u0a3e\u0a24"===L?m<4?m:m+12:"\u0a38\u0a35\u0a47\u0a30"===L?m:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===L?m>=10?m:m+12:"\u0a38\u0a3c\u0a3e\u0a2e"===L?m+12:void 0},meridiem:function(m,L,v){return m<4?"\u0a30\u0a3e\u0a24":m<10?"\u0a38\u0a35\u0a47\u0a30":m<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":m<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(f(15439))},1605:function(Ge,$,f){!function(o){"use strict";var a="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),g="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),h=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function m(b){return b%10<5&&b%10>1&&~~(b/10)%10!=1}function L(b,k,F){var Y=b+" ";switch(F){case"ss":return Y+(m(b)?"sekundy":"sekund");case"m":return k?"minuta":"minut\u0119";case"mm":return Y+(m(b)?"minuty":"minut");case"h":return k?"godzina":"godzin\u0119";case"hh":return Y+(m(b)?"godziny":"godzin");case"ww":return Y+(m(b)?"tygodnie":"tygodni");case"MM":return Y+(m(b)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Y+(m(b)?"lata":"lat")}}o.defineLocale("pl",{months:function(b,k){return b?/D MMMM/.test(k)?g[b.month()]:a[b.month()]:a},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:h,longMonthsParse:h,shortMonthsParse:h,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:L,m:L,mm:L,h:L,hh:L,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:L,M:"miesi\u0105c",MM:L,y:"rok",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},73840:function(Ge,$,f){!function(o){"use strict";o.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(f(15439))},54225:function(Ge,$,f){!function(o){"use strict";o.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(f(15439))},45128:function(Ge,$,f){!function(o){"use strict";function a(h,m,L){var b=" ";return(h%100>=20||h>=100&&h%100==0)&&(b=" de "),h+b+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[L]}o.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:a,m:"un minut",mm:a,h:"o or\u0103",hh:a,d:"o zi",dd:a,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:a,M:"o lun\u0103",MM:a,y:"un an",yy:a},week:{dow:1,doy:7}})}(f(15439))},35127:function(Ge,$,f){!function(o){"use strict";function g(L,v,b){return"m"===b?v?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":L+" "+function a(L,v){var b=L.split("_");return v%10==1&&v%100!=11?b[0]:v%10>=2&&v%10<=4&&(v%100<10||v%100>=20)?b[1]:b[2]}({ss:v?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:v?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[b],+L)}var h=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];o.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:h,longMonthsParse:h,shortMonthsParse:h,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(L){if(L.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(L){if(L.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:g,m:g,mm:g,h:"\u0447\u0430\u0441",hh:g,d:"\u0434\u0435\u043d\u044c",dd:g,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:g,M:"\u043c\u0435\u0441\u044f\u0446",MM:g,y:"\u0433\u043e\u0434",yy:g},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(L)},meridiem:function(L,v,b){return L<4?"\u043d\u043e\u0447\u0438":L<12?"\u0443\u0442\u0440\u0430":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(L,v){switch(v){case"M":case"d":case"DDD":return L+"-\u0439";case"D":return L+"-\u0433\u043e";case"w":case"W":return L+"-\u044f";default:return L}},week:{dow:1,doy:4}})}(f(15439))},32525:function(Ge,$,f){!function(o){"use strict";var a=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],g=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];o.defineLocale("sd",{months:a,monthsShort:a,weekdays:g,weekdaysShort:g,weekdaysMin:g,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(m){return"\u0634\u0627\u0645"===m},meridiem:function(m,L,v){return m<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(m){return m.replace(/\u060c/g,",")},postformat:function(m){return m.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(f(15439))},59893:function(Ge,$,f){!function(o){"use strict";o.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},33123:function(Ge,$,f){!function(o){"use strict";o.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(g){return g+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(g){return"\u0db4.\u0dc0."===g||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===g},meridiem:function(g,h,m){return g>11?m?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":m?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(f(15439))},59635:function(Ge,$,f){!function(o){"use strict";var a="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),g="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function h(v){return v>1&&v<5}function m(v,b,k,F){var Y=v+" ";switch(k){case"s":return b||F?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return b||F?Y+(h(v)?"sekundy":"sek\xfand"):Y+"sekundami";case"m":return b?"min\xfata":F?"min\xfatu":"min\xfatou";case"mm":return b||F?Y+(h(v)?"min\xfaty":"min\xfat"):Y+"min\xfatami";case"h":return b?"hodina":F?"hodinu":"hodinou";case"hh":return b||F?Y+(h(v)?"hodiny":"hod\xedn"):Y+"hodinami";case"d":return b||F?"de\u0148":"d\u0148om";case"dd":return b||F?Y+(h(v)?"dni":"dn\xed"):Y+"d\u0148ami";case"M":return b||F?"mesiac":"mesiacom";case"MM":return b||F?Y+(h(v)?"mesiace":"mesiacov"):Y+"mesiacmi";case"y":return b||F?"rok":"rokom";case"yy":return b||F?Y+(h(v)?"roky":"rokov"):Y+"rokmi"}}o.defineLocale("sk",{months:a,monthsShort:g,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:m,ss:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},78106:function(Ge,$,f){!function(o){"use strict";function a(h,m,L,v){var b=h+" ";switch(L){case"s":return m||v?"nekaj sekund":"nekaj sekundami";case"ss":return b+(1===h?m?"sekundo":"sekundi":2===h?m||v?"sekundi":"sekundah":h<5?m||v?"sekunde":"sekundah":"sekund");case"m":return m?"ena minuta":"eno minuto";case"mm":return b+(1===h?m?"minuta":"minuto":2===h?m||v?"minuti":"minutama":h<5?m||v?"minute":"minutami":m||v?"minut":"minutami");case"h":return m?"ena ura":"eno uro";case"hh":return b+(1===h?m?"ura":"uro":2===h?m||v?"uri":"urama":h<5?m||v?"ure":"urami":m||v?"ur":"urami");case"d":return m||v?"en dan":"enim dnem";case"dd":return b+(1===h?m||v?"dan":"dnem":2===h?m||v?"dni":"dnevoma":m||v?"dni":"dnevi");case"M":return m||v?"en mesec":"enim mesecem";case"MM":return b+(1===h?m||v?"mesec":"mesecem":2===h?m||v?"meseca":"mesecema":h<5?m||v?"mesece":"meseci":m||v?"mesecev":"meseci");case"y":return m||v?"eno leto":"enim letom";case"yy":return b+(1===h?m||v?"leto":"letom":2===h?m||v?"leti":"letoma":h<5?m||v?"leta":"leti":m||v?"let":"leti")}}o.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(f(15439))},88799:function(Ge,$,f){!function(o){"use strict";o.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(g){return"M"===g.charAt(0)},meridiem:function(g,h,m){return g<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},52872:function(Ge,$,f){!function(o){"use strict";var a={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(h,m){return h%10>=1&&h%10<=4&&(h%100<10||h%100>=20)?h%10==1?m[0]:m[1]:m[2]},translate:function(h,m,L,v){var k,b=a.words[L];return 1===L.length?"y"===L&&m?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":v||m?b[0]:b[1]:(k=a.correctGrammaticalCase(h,b),"yy"===L&&m&&"\u0433\u043e\u0434\u0438\u043d\u0443"===k?h+" \u0433\u043e\u0434\u0438\u043d\u0430":h+" "+k)}};o.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:a.translate,dd:a.translate,M:a.translate,MM:a.translate,y:a.translate,yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(f(15439))},97949:function(Ge,$,f){!function(o){"use strict";var a={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(h,m){return h%10>=1&&h%10<=4&&(h%100<10||h%100>=20)?h%10==1?m[0]:m[1]:m[2]},translate:function(h,m,L,v){var k,b=a.words[L];return 1===L.length?"y"===L&&m?"jedna godina":v||m?b[0]:b[1]:(k=a.correctGrammaticalCase(h,b),"yy"===L&&m&&"godinu"===k?h+" godina":h+" "+k)}};o.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:a.translate,m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:a.translate,dd:a.translate,M:a.translate,MM:a.translate,y:a.translate,yy:a.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(f(15439))},86167:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(g,h,m){return g<11?"ekuseni":g<15?"emini":g<19?"entsambama":"ebusuku"},meridiemHour:function(g,h){return 12===g&&(g=0),"ekuseni"===h?g:"emini"===h?g>=11?g:g+12:"entsambama"===h||"ebusuku"===h?0===g?0:g+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(f(15439))},39713:function(Ge,$,f){!function(o){"use strict";o.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?":e":1===h||2===h?":a":":e")},week:{dow:1,doy:4}})}(f(15439))},41982:function(Ge,$,f){!function(o){"use strict";o.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(f(15439))},22732:function(Ge,$,f){!function(o){"use strict";var a={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},g={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};o.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(m){return m+"\u0bb5\u0ba4\u0bc1"},preparse:function(m){return m.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(L){return g[L]})},postformat:function(m){return m.replace(/\d/g,function(L){return a[L]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(m,L,v){return m<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":m<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":m<10?" \u0b95\u0bbe\u0bb2\u0bc8":m<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":m<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":m<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(m,L){return 12===m&&(m=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===L?m<2?m:m+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===L||"\u0b95\u0bbe\u0bb2\u0bc8"===L||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===L&&m>=10?m:m+12},week:{dow:0,doy:6}})}(f(15439))},43636:function(Ge,$,f){!function(o){"use strict";o.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(g,h){return 12===g&&(g=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===h?g<4?g:g+12:"\u0c09\u0c26\u0c2f\u0c02"===h?g:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===h?g>=10?g:g+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===h?g+12:void 0},meridiem:function(g,h,m){return g<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":g<10?"\u0c09\u0c26\u0c2f\u0c02":g<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":g<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(f(15439))},2115:function(Ge,$,f){!function(o){"use strict";o.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(f(15439))},69801:function(Ge,$,f){!function(o){"use strict";var a={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};o.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(h,m){return 12===h&&(h=0),"\u0448\u0430\u0431"===m?h<4?h:h+12:"\u0441\u0443\u0431\u04b3"===m?h:"\u0440\u04ef\u0437"===m?h>=11?h:h+12:"\u0431\u0435\u0433\u043e\u04b3"===m?h+12:void 0},meridiem:function(h,m,L){return h<4?"\u0448\u0430\u0431":h<11?"\u0441\u0443\u0431\u04b3":h<16?"\u0440\u04ef\u0437":h<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(h){return h+(a[h]||a[h%10]||a[h>=100?100:null])},week:{dow:1,doy:7}})}(f(15439))},2868:function(Ge,$,f){!function(o){"use strict";o.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(g){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===g},meridiem:function(g,h,m){return g<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(f(15439))},31310:function(Ge,$,f){!function(o){"use strict";var a={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};o.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(h,m){switch(m){case"d":case"D":case"Do":case"DD":return h;default:if(0===h)return h+"'unjy";var L=h%10;return h+(a[L]||a[h%100-L]||a[h>=100?100:null])}},week:{dow:1,doy:7}})}(f(15439))},22360:function(Ge,$,f){!function(o){"use strict";o.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(g){return g},week:{dow:1,doy:4}})}(f(15439))},66645:function(Ge,$,f){!function(o){"use strict";var a="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function m(b,k,F,Y){var I=function L(b){var k=Math.floor(b%1e3/100),F=Math.floor(b%100/10),Y=b%10,I="";return k>0&&(I+=a[k]+"vatlh"),F>0&&(I+=(""!==I?" ":"")+a[F]+"maH"),Y>0&&(I+=(""!==I?" ":"")+a[Y]),""===I?"pagh":I}(b);switch(F){case"ss":return I+" lup";case"mm":return I+" tup";case"hh":return I+" rep";case"dd":return I+" jaj";case"MM":return I+" jar";case"yy":return I+" DIS"}}o.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function g(b){var k=b;return-1!==b.indexOf("jaj")?k.slice(0,-3)+"leS":-1!==b.indexOf("jar")?k.slice(0,-3)+"waQ":-1!==b.indexOf("DIS")?k.slice(0,-3)+"nem":k+" pIq"},past:function h(b){var k=b;return-1!==b.indexOf("jaj")?k.slice(0,-3)+"Hu\u2019":-1!==b.indexOf("jar")?k.slice(0,-3)+"wen":-1!==b.indexOf("DIS")?k.slice(0,-3)+"ben":k+" ret"},s:"puS lup",ss:m,m:"wa\u2019 tup",mm:m,h:"wa\u2019 rep",hh:m,d:"wa\u2019 jaj",dd:m,M:"wa\u2019 jar",MM:m,y:"wa\u2019 DIS",yy:m},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},98374:function(Ge,$,f){!function(o){"use strict";var a={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};o.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(h,m,L){return h<12?L?"\xf6\xf6":"\xd6\xd6":L?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(h){return"\xf6s"===h||"\xd6S"===h},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(h,m){switch(m){case"d":case"D":case"Do":case"DD":return h;default:if(0===h)return h+"'\u0131nc\u0131";var L=h%10;return h+(a[L]||a[h%100-L]||a[h>=100?100:null])}},week:{dow:1,doy:7}})}(f(15439))},256:function(Ge,$,f){!function(o){"use strict";function g(h,m,L,v){var b={s:["viensas secunds","'iensas secunds"],ss:[h+" secunds",h+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[h+" m\xeduts",h+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[h+" \xfeoras",h+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[h+" ziuas",h+" ziuas"],M:["'n mes","'iens mes"],MM:[h+" mesen",h+" mesen"],y:["'n ar","'iens ar"],yy:[h+" ars",h+" ars"]};return v||m?b[L][0]:b[L][1]}o.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(h){return"d'o"===h.toLowerCase()},meridiem:function(h,m,L){return h>11?L?"d'o":"D'O":L?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(f(15439))},61631:function(Ge,$,f){!function(o){"use strict";o.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(f(15439))},61595:function(Ge,$,f){!function(o){"use strict";o.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(f(15439))},6050:function(Ge,$,f){!function(o){"use strict";o.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(g,h){return 12===g&&(g=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===h||"\u0633\u06d5\u06be\u06d5\u0631"===h||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===h?g:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===h||"\u0643\u06d5\u0686"===h?g+12:g>=11?g:g+12},meridiem:function(g,h,m){var L=100*g+h;return L<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":L<900?"\u0633\u06d5\u06be\u06d5\u0631":L<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":L<1230?"\u0686\u06c8\u0634":L<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(g,h){switch(h){case"d":case"D":case"DDD":return g+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return g+"-\u06be\u06d5\u067e\u062a\u06d5";default:return g}},preparse:function(g){return g.replace(/\u060c/g,",")},postformat:function(g){return g.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(f(15439))},65610:function(Ge,$,f){!function(o){"use strict";function g(v,b,k){return"m"===k?b?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===k?b?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":v+" "+function a(v,b){var k=v.split("_");return b%10==1&&b%100!=11?k[0]:b%10>=2&&b%10<=4&&(b%100<10||b%100>=20)?k[1]:k[2]}({ss:b?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:b?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:b?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[k],+v)}function m(v){return function(){return v+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}o.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function h(v,b){var k={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===v?k.nominative.slice(1,7).concat(k.nominative.slice(0,1)):v?k[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(b)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(b)?"genitive":"nominative"][v.day()]:k.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:m("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:m("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:m("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:m("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return m("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return m("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:g,m:g,mm:g,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:g,d:"\u0434\u0435\u043d\u044c",dd:g,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:g,y:"\u0440\u0456\u043a",yy:g},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(v){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(v)},meridiem:function(v,b,k){return v<4?"\u043d\u043e\u0447\u0456":v<12?"\u0440\u0430\u043d\u043a\u0443":v<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(v,b){switch(b){case"M":case"d":case"DDD":case"w":case"W":return v+"-\u0439";case"D":return v+"-\u0433\u043e";default:return v}},week:{dow:1,doy:7}})}(f(15439))},86077:function(Ge,$,f){!function(o){"use strict";var a=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],g=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];o.defineLocale("ur",{months:a,monthsShort:a,weekdays:g,weekdaysShort:g,weekdaysMin:g,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(m){return"\u0634\u0627\u0645"===m},meridiem:function(m,L,v){return m<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(m){return m.replace(/\u060c/g,",")},postformat:function(m){return m.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(f(15439))},12207:function(Ge,$,f){!function(o){"use strict";o.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(f(15439))},22862:function(Ge,$,f){!function(o){"use strict";o.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(f(15439))},48093:function(Ge,$,f){!function(o){"use strict";o.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(g){return/^ch$/i.test(g)},meridiem:function(g,h,m){return g<12?m?"sa":"SA":m?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(g){return g},week:{dow:1,doy:4}})}(f(15439))},25590:function(Ge,$,f){!function(o){"use strict";o.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(g){var h=g%10;return g+(1==~~(g%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")},week:{dow:1,doy:4}})}(f(15439))},9058:function(Ge,$,f){!function(o){"use strict";o.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(f(15439))},77908:function(Ge,$,f){!function(o){"use strict";o.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(g,h){return 12===g&&(g=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?g:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?g+12:g>=11?g:g+12},meridiem:function(g,h,m){var L=100*g+h;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(g){return g.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(g){return this.week()!==g.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(g,h){switch(h){case"d":case"D":case"DDD":return g+"\u65e5";case"M":return g+"\u6708";case"w":case"W":return g+"\u5468";default:return g}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(f(15439))},8867:function(Ge,$,f){!function(o){"use strict";o.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(g,h){return 12===g&&(g=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?g:"\u4e2d\u5348"===h?g>=11?g:g+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?g+12:void 0},meridiem:function(g,h,m){var L=100*g+h;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1200?"\u4e0a\u5348":1200===L?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(g,h){switch(h){case"d":case"D":case"DDD":return g+"\u65e5";case"M":return g+"\u6708";case"w":case"W":return g+"\u9031";default:return g}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(f(15439))},31133:function(Ge,$,f){!function(o){"use strict";o.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(g,h){return 12===g&&(g=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?g:"\u4e2d\u5348"===h?g>=11?g:g+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?g+12:void 0},meridiem:function(g,h,m){var L=100*g+h;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(g,h){switch(h){case"d":case"D":case"DDD":return g+"\u65e5";case"M":return g+"\u6708";case"w":case"W":return g+"\u9031";default:return g}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(f(15439))},83291:function(Ge,$,f){!function(o){"use strict";o.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(g,h){return 12===g&&(g=0),"\u51cc\u6668"===h||"\u65e9\u4e0a"===h||"\u4e0a\u5348"===h?g:"\u4e2d\u5348"===h?g>=11?g:g+12:"\u4e0b\u5348"===h||"\u665a\u4e0a"===h?g+12:void 0},meridiem:function(g,h,m){var L=100*g+h;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(g,h){switch(h){case"d":case"D":case"DDD":return g+"\u65e5";case"M":return g+"\u6708";case"w":case"W":return g+"\u9031";default:return g}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(f(15439))},63692:function(Ge,$,f){!function(o){"use strict";o.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(y){return/^nm$/i.test(y)},meridiem:function(y,G,Je){return y<12?Je?"vm":"VM":Je?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(y){return y+(1===y||8===y||y>=20?"ste":"de")},week:{dow:1,doy:4}});var a=function(y){return 0===y?0:1===y?1:2===y?2:y%100>=3&&y%100<=10?3:y%100>=11?4:5},g={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},h=function(y){return function(G,Je,dt,st){var Ln=a(G),Rr=g[y][a(G)];return 2===Ln&&(Rr=Rr[Je?0:1]),Rr.replace(/%d/i,G)}},m=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar-dz",{months:m,monthsShort:m,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(y){return"\u0645"===y},meridiem:function(y,G,Je){return y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:h("s"),ss:h("s"),m:h("m"),mm:h("m"),h:h("h"),hh:h("h"),d:h("d"),dd:h("d"),M:h("M"),MM:h("M"),y:h("y"),yy:h("y")},postformat:function(y){return y.replace(/,/g,"\u060c")},week:{dow:0,doy:4}}),o.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}});var L={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},v=function(y){return 0===y?0:1===y?1:2===y?2:y%100>=3&&y%100<=10?3:y%100>=11?4:5},b={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},k=function(y){return function(G,Je,dt,st){var Ln=v(G),Rr=b[y][v(G)];return 2===Ln&&(Rr=Rr[Je?0:1]),Rr.replace(/%d/i,G)}},F=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar-ly",{months:F,monthsShort:F,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(y){return"\u0645"===y},meridiem:function(y,G,Je){return y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:k("s"),ss:k("s"),m:k("m"),mm:k("m"),h:k("h"),hh:k("h"),d:k("d"),dd:k("d"),M:k("M"),MM:k("M"),y:k("y"),yy:k("y")},preparse:function(y){return y.replace(/\u060c/g,",")},postformat:function(y){return y.replace(/\d/g,function(G){return L[G]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}}),o.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}});var Y={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},I={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};o.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(y){return"\u0645"===y},meridiem:function(y,G,Je){return y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(y){return y.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(G){return I[G]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(G){return I[G]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(y){return y.replace(/\d/g,function(G){return Y[G]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}});var D={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},j={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};o.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(y){return"\u0645"===y},meridiem:function(y,G,Je){return y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(y){return y.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(G){return j[G]}).replace(/\u060c/g,",")},postformat:function(y){return y.replace(/\d/g,function(G){return D[G]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}}),o.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}});var W={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},de={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},K=function(y){return 0===y?0:1===y?1:2===y?2:y%100>=3&&y%100<=10?3:y%100>=11?4:5},ee={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},De=function(y){return function(G,Je,dt,st){var Ln=K(G),Rr=ee[y][K(G)];return 2===Ln&&(Rr=Rr[Je?0:1]),Rr.replace(/%d/i,G)}},Te=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];o.defineLocale("ar",{months:Te,monthsShort:Te,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(y){return"\u0645"===y},meridiem:function(y,G,Je){return y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:De("s"),ss:De("s"),m:De("m"),mm:De("m"),h:De("h"),hh:De("h"),d:De("d"),dd:De("d"),M:De("M"),MM:De("M"),y:De("y"),yy:De("y")},preparse:function(y){return y.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(G){return de[G]}).replace(/\u060c/g,",")},postformat:function(y){return y.replace(/\d/g,function(G){return W[G]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}});var ce={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};function te(y,G,Je){return"m"===Je?G?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===Je?G?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":y+" "+function oe(y,G){var Je=y.split("_");return G%10==1&&G%100!=11?Je[0]:G%10>=2&&G%10<=4&&(G%100<10||G%100>=20)?Je[1]:Je[2]}({ss:G?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:G?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:G?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[Je],+y)}o.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(y){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(y)},meridiem:function(y,G,Je){return y<4?"gec\u0259":y<12?"s\u0259h\u0259r":y<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(y){if(0===y)return y+"-\u0131nc\u0131";var G=y%10;return y+(ce[G]||ce[y%100-G]||ce[y>=100?100:null])},week:{dow:1,doy:7}}),o.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:te,mm:te,h:te,hh:te,d:"\u0434\u0437\u0435\u043d\u044c",dd:te,M:"\u043c\u0435\u0441\u044f\u0446",MM:te,y:"\u0433\u043e\u0434",yy:te},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(y){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(y)},meridiem:function(y,G,Je){return y<4?"\u043d\u043e\u0447\u044b":y<12?"\u0440\u0430\u043d\u0456\u0446\u044b":y<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(y,G){switch(G){case"M":case"d":case"DDD":case"w":case"W":return y%10!=2&&y%10!=3||y%100==12||y%100==13?y+"-\u044b":y+"-\u0456";case"D":return y+"-\u0433\u0430";default:return y}},week:{dow:1,doy:7}}),o.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(y){var G=y%10,Je=y%100;return 0===y?y+"-\u0435\u0432":0===Je?y+"-\u0435\u043d":Je>10&&Je<20?y+"-\u0442\u0438":1===G?y+"-\u0432\u0438":2===G?y+"-\u0440\u0438":7===G||8===G?y+"-\u043c\u0438":y+"-\u0442\u0438"},week:{dow:1,doy:7}}),o.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var ge={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},xe={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};o.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(y){return y.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(G){return xe[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return ge[G]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u09b0\u09be\u09a4"===G?y<4?y:y+12:"\u09ad\u09cb\u09b0"===G||"\u09b8\u0995\u09be\u09b2"===G?y:"\u09a6\u09c1\u09aa\u09c1\u09b0"===G?y>=3?y:y+12:"\u09ac\u09bf\u0995\u09be\u09b2"===G||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"\u09b0\u09be\u09a4":y<6?"\u09ad\u09cb\u09b0":y<12?"\u09b8\u0995\u09be\u09b2":y<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":y<18?"\u09ac\u09bf\u0995\u09be\u09b2":y<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}});var he={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},Le={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};o.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(y){return y.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(G){return Le[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return he[G]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u09b0\u09be\u09a4"===G&&y>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===G&&y<5||"\u09ac\u09bf\u0995\u09be\u09b2"===G?y+12:y},meridiem:function(y,G,Je){return y<4?"\u09b0\u09be\u09a4":y<10?"\u09b8\u0995\u09be\u09b2":y<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":y<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}});var Ce={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},ie={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};function se(y,G,Je){return y+" "+function _e(y,G){return 2===G?function we(y){var G={m:"v",b:"v",d:"z"};return void 0===G[y.charAt(0)]?y:G[y.charAt(0)]+y.substring(1)}(y):y}({mm:"munutenn",MM:"miz",dd:"devezh"}[Je],y)}function Ne(y){return y>9?Ne(y%10):y}o.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(y){return y.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(G){return ie[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return Ce[G]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===G&&y>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===G&&y<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===G?y+12:y},meridiem:function(y,G,Je){return y<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":y<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":y<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":y<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}});var Ee=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],le=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,je=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];function _t(y,G,Je){var dt=y+" ";switch(Je){case"ss":return dt+(1===y?"sekunda":2===y||3===y||4===y?"sekunde":"sekundi");case"mm":return dt+(1===y?"minuta":2===y||3===y||4===y?"minute":"minuta");case"h":return"jedan sat";case"hh":return dt+(1===y?"sat":2===y||3===y||4===y?"sata":"sati");case"dd":return dt+(1===y?"dan":"dana");case"MM":return dt+(1===y?"mjesec":2===y||3===y||4===y?"mjeseca":"mjeseci");case"yy":return dt+(1===y?"godina":2===y||3===y||4===y?"godine":"godina")}}o.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:je,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:je,monthsRegex:le,monthsShortRegex:le,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:Ee,longMonthsParse:Ee,shortMonthsParse:Ee,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:se,h:"un eur",hh:"%d eur",d:"un devezh",dd:se,M:"ur miz",MM:se,y:"ur bloaz",yy:function me(y){switch(Ne(y)){case 1:case 3:case 4:case 5:case 9:return y+" bloaz";default:return y+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(y){return y+(1===y?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(y){return"g.m."===y},meridiem:function(y,G,Je){return y<12?"a.m.":"g.m."}}),o.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:_t,m:function Ze(y,G,Je,dt){if("m"===Je)return G?"jedna minuta":dt?"jednu minutu":"jedne minute"},mm:_t,h:_t,hh:_t,d:"dan",dd:_t,M:"mjesec",MM:_t,y:"godinu",yy:_t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),o.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(y,G){var Je=1===y?"r":2===y?"n":3===y?"r":4===y?"t":"\xe8";return("w"===G||"W"===G)&&(Je="a"),y+Je},week:{dow:1,doy:4}});var At={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},Vt="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),fn=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],mn=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function xn(y){return y>1&&y<5&&1!=~~(y/10)}function gn(y,G,Je,dt){var st=y+" ";switch(Je){case"s":return G||dt?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return G||dt?st+(xn(y)?"sekundy":"sekund"):st+"sekundami";case"m":return G?"minuta":dt?"minutu":"minutou";case"mm":return G||dt?st+(xn(y)?"minuty":"minut"):st+"minutami";case"h":return G?"hodina":dt?"hodinu":"hodinou";case"hh":return G||dt?st+(xn(y)?"hodiny":"hodin"):st+"hodinami";case"d":return G||dt?"den":"dnem";case"dd":return G||dt?st+(xn(y)?"dny":"dn\xed"):st+"dny";case"M":return G||dt?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return G||dt?st+(xn(y)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):st+"m\u011bs\xedci";case"y":return G||dt?"rok":"rokem";case"yy":return G||dt?st+(xn(y)?"roky":"let"):st+"lety"}}function Et(y,G,Je,dt){var st={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[y+" Tage",y+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[y+" Monate",y+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[y+" Jahre",y+" Jahren"]};return G?st[Je][0]:st[Je][1]}function cn(y,G,Je,dt){var st={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[y+" Tage",y+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[y+" Monate",y+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[y+" Jahre",y+" Jahren"]};return G?st[Je][0]:st[Je][1]}function ft(y,G,Je,dt){var st={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[y+" Tage",y+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[y+" Monate",y+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[y+" Jahre",y+" Jahren"]};return G?st[Je][0]:st[Je][1]}o.defineLocale("cs",{months:At,monthsShort:Vt,monthsRegex:mn,monthsShortRegex:mn,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:fn,longMonthsParse:fn,shortMonthsParse:fn,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:gn,ss:gn,m:gn,mm:gn,h:gn,hh:gn,d:gn,dd:gn,M:gn,MM:gn,y:gn,yy:gn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(y){return y+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(y)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(y)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}}),o.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(y){var Je="";return y>20?Je=40===y||50===y||60===y||80===y||100===y?"fed":"ain":y>0&&(Je=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][y]),y+Je},week:{dow:1,doy:4}}),o.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Et,mm:"%d Minuten",h:Et,hh:"%d Stunden",d:Et,dd:Et,w:Et,ww:"%d Wochen",M:Et,MM:Et,y:Et,yy:Et},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:cn,mm:"%d Minuten",h:cn,hh:"%d Stunden",d:cn,dd:cn,w:cn,ww:"%d Wochen",M:cn,MM:cn,y:cn,yy:cn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:ft,mm:"%d Minuten",h:ft,hh:"%d Stunden",d:ft,dd:ft,w:ft,ww:"%d Wochen",M:ft,MM:ft,y:ft,yy:ft},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Tt=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],en=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];o.defineLocale("dv",{months:Tt,monthsShort:Tt,weekdays:en,weekdaysShort:en,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(y){return"\u0789\u078a"===y},meridiem:function(y,G,Je){return y<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(y){return y.replace(/\u060c/g,",")},postformat:function(y){return y.replace(/,/g,"\u060c")},week:{dow:7,doy:12}}),o.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(y,G){return y?"string"==typeof G&&/D/.test(G.substring(0,G.indexOf("MMMM")))?this._monthsGenitiveEl[y.month()]:this._monthsNominativeEl[y.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(y,G,Je){return y>11?Je?"\u03bc\u03bc":"\u039c\u039c":Je?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(y){return"\u03bc"===(y+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(y,G){var Je=this._calendarEl[y],dt=G&&G.hours();return function Gt(y){return typeof Function<"u"&&y instanceof Function||"[object Function]"===Object.prototype.toString.call(y)}(Je)&&(Je=Je.apply(G)),Je.replace("{}",dt%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}}),o.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")},week:{dow:0,doy:4}}),o.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")}}),o.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")},week:{dow:1,doy:4}}),o.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")},week:{dow:1,doy:4}}),o.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")}}),o.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")},week:{dow:0,doy:6}}),o.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")},week:{dow:1,doy:4}}),o.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")},week:{dow:1,doy:4}}),o.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(y){return"p"===y.charAt(0).toLowerCase()},meridiem:function(y,G,Je){return y>11?Je?"p.t.m.":"P.T.M.":Je?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var or="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Cr="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),wr=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],dr=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(y,G){return y?/-MMM-/.test(G)?Cr[y.month()]:or[y.month()]:or},monthsRegex:dr,monthsShortRegex:dr,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:wr,longMonthsParse:wr,shortMonthsParse:wr,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}});var er="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Jn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Er=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],lo=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(y,G){return y?/-MMM-/.test(G)?Jn[y.month()]:er[y.month()]:er},monthsRegex:lo,monthsShortRegex:lo,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Er,longMonthsParse:Er,shortMonthsParse:Er,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"});var Gr="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Qn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Pr=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],jr=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;o.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(y,G){return y?/-MMM-/.test(G)?Qn[y.month()]:Gr[y.month()]:Gr},monthsRegex:jr,monthsShortRegex:jr,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Pr,longMonthsParse:Pr,shortMonthsParse:Pr,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}});var Nr="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),go="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Zr=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],ro=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;function mo(y,G,Je,dt){var st={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[y+"sekundi",y+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[y+" minuti",y+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[y+" tunni",y+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[y+" kuu",y+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[y+" aasta",y+" aastat"]};return G?st[Je][2]?st[Je][2]:st[Je][1]:dt?st[Je][0]:st[Je][1]}o.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(y,G){return y?/-MMM-/.test(G)?go[y.month()]:Nr[y.month()]:Nr},monthsRegex:ro,monthsShortRegex:ro,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Zr,longMonthsParse:Zr,shortMonthsParse:Zr,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"}),o.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:mo,ss:mo,m:mo,mm:mo,h:mo,hh:mo,d:mo,dd:"%d p\xe4eva",M:mo,MM:mo,y:mo,yy:mo},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var ki={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},Yo={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};o.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(y){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(y)},meridiem:function(y,G,Je){return y<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(y){return y.replace(/[\u06f0-\u06f9]/g,function(G){return Yo[G]}).replace(/\u060c/g,",")},postformat:function(y){return y.replace(/\d/g,function(G){return ki[G]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}});var Ko="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),wo=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",Ko[7],Ko[8],Ko[9]];function $r(y,G,Je,dt){var st="";switch(Je){case"s":return dt?"muutaman sekunnin":"muutama sekunti";case"ss":st=dt?"sekunnin":"sekuntia";break;case"m":return dt?"minuutin":"minuutti";case"mm":st=dt?"minuutin":"minuuttia";break;case"h":return dt?"tunnin":"tunti";case"hh":st=dt?"tunnin":"tuntia";break;case"d":return dt?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":st=dt?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return dt?"kuukauden":"kuukausi";case"MM":st=dt?"kuukauden":"kuukautta";break;case"y":return dt?"vuoden":"vuosi";case"yy":st=dt?"vuoden":"vuotta"}return function hi(y,G){return y<10?G?wo[y]:Ko[y]:y}(y,dt)+" "+st}o.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:$r,ss:$r,m:$r,mm:$r,h:$r,hh:$r,d:$r,dd:$r,M:$r,MM:$r,y:$r,yy:$r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(y){return y},week:{dow:1,doy:4}}),o.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(y,G){switch(G){default:case"M":case"Q":case"D":case"DDD":case"d":return y+(1===y?"er":"e");case"w":case"W":return y+(1===y?"re":"e")}}}),o.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(y,G){switch(G){default:case"M":case"Q":case"D":case"DDD":case"d":return y+(1===y?"er":"e");case"w":case"W":return y+(1===y?"re":"e")}},week:{dow:1,doy:4}});var Eo=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,Ur=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];o.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:Eo,monthsShortRegex:Eo,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:Ur,longMonthsParse:Ur,shortMonthsParse:Ur,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(y,G){switch(G){case"D":return y+(1===y?"er":"");default:case"M":case"Q":case"DDD":case"d":return y+(1===y?"er":"e");case"w":case"W":return y+(1===y?"re":"e")}},week:{dow:1,doy:4}});var vo="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),br="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");function Ot(y,G,Je,dt){var st={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[y+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",y+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[y+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",y+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[y+" \u0935\u0930\u093e\u0902\u0928\u0940",y+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[y+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",y+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[y+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",y+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[y+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",y+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return dt?st[Je][0]:st[Je][1]}function Zt(y,G,Je,dt){var st={s:["thoddea sekondamni","thodde sekond"],ss:[y+" sekondamni",y+" sekond"],m:["eka mintan","ek minut"],mm:[y+" mintamni",y+" mintam"],h:["eka voran","ek vor"],hh:[y+" voramni",y+" voram"],d:["eka disan","ek dis"],dd:[y+" disamni",y+" dis"],M:["eka mhoinean","ek mhoino"],MM:[y+" mhoineamni",y+" mhoine"],y:["eka vorsan","ek voros"],yy:[y+" vorsamni",y+" vorsam"]};return dt?st[Je][0]:st[Je][1]}o.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(y,G){return y?/-MMM-/.test(G)?br[y.month()]:vo[y.month()]:vo},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(y){return y+(1===y||8===y||y>=20?"ste":"de")},week:{dow:1,doy:4}}),o.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(y){return y+(1===y?"d":y%10==2?"na":"mh")},week:{dow:1,doy:4}}),o.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(y){return y+(1===y?"d":y%10==2?"na":"mh")},week:{dow:1,doy:4}}),o.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(y){return 0===y.indexOf("un")?"n"+y:"en "+y},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}}),o.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:Ot,ss:Ot,m:Ot,mm:Ot,h:Ot,hh:Ot,d:Ot,dd:Ot,M:Ot,MM:Ot,y:Ot,yy:Ot},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(y,G){return"D"===G?y+"\u0935\u0947\u0930":y},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0930\u093e\u0924\u0940"===G?y<4?y:y+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===G?y:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===G?y>12?y:y+12:"\u0938\u093e\u0902\u091c\u0947"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"\u0930\u093e\u0924\u0940":y<12?"\u0938\u0915\u093e\u0933\u0940\u0902":y<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":y<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}}),o.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:Zt,ss:Zt,m:Zt,mm:Zt,h:Zt,hh:Zt,d:Zt,dd:Zt,M:Zt,MM:Zt,y:Zt,yy:Zt},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(y,G){return"D"===G?y+"er":y},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(y,G){return 12===y&&(y=0),"rati"===G?y<4?y:y+12:"sokallim"===G?y:"donparam"===G?y>12?y:y+12:"sanje"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"rati":y<12?"sokallim":y<16?"donparam":y<20?"sanje":"rati"}});var jn={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},ct={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};o.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(y){return y.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(G){return ct[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return jn[G]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0ab0\u0abe\u0aa4"===G?y<4?y:y+12:"\u0ab8\u0ab5\u0abe\u0ab0"===G?y:"\u0aac\u0aaa\u0acb\u0ab0"===G?y>=10?y:y+12:"\u0ab8\u0abe\u0a82\u0a9c"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"\u0ab0\u0abe\u0aa4":y<10?"\u0ab8\u0ab5\u0abe\u0ab0":y<17?"\u0aac\u0aaa\u0acb\u0ab0":y<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}}),o.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(y){return 2===y?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":y+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(y){return 2===y?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":y+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(y){return 2===y?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":y+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(y){return 2===y?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":y%10==0&&10!==y?y+" \u05e9\u05e0\u05d4":y+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(y){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(y)},meridiem:function(y,G,Je){return y<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":y<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":y<12?Je?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":y<18?Je?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}});var xt={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},rt={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},Yt=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];function Wt(y,G,Je){var dt=y+" ";switch(Je){case"ss":return dt+(1===y?"sekunda":2===y||3===y||4===y?"sekunde":"sekundi");case"m":return G?"jedna minuta":"jedne minute";case"mm":return dt+(1===y?"minuta":2===y||3===y||4===y?"minute":"minuta");case"h":return G?"jedan sat":"jednog sata";case"hh":return dt+(1===y?"sat":2===y||3===y||4===y?"sata":"sati");case"dd":return dt+(1===y?"dan":"dana");case"MM":return dt+(1===y?"mjesec":2===y||3===y||4===y?"mjeseca":"mjeseci");case"yy":return dt+(1===y?"godina":2===y||3===y||4===y?"godine":"godina")}}o.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:Yt,longMonthsParse:Yt,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(y){return y.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(G){return rt[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return xt[G]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0930\u093e\u0924"===G?y<4?y:y+12:"\u0938\u0941\u092c\u0939"===G?y:"\u0926\u094b\u092a\u0939\u0930"===G?y>=10?y:y+12:"\u0936\u093e\u092e"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"\u0930\u093e\u0924":y<10?"\u0938\u0941\u092c\u0939":y<17?"\u0926\u094b\u092a\u0939\u0930":y<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}}),o.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Wt,m:Wt,mm:Wt,h:Wt,hh:Wt,d:"dan",dd:Wt,M:"mjesec",MM:Wt,y:"godinu",yy:Wt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var dn="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function un(y,G,Je,dt){var st=y;switch(Je){case"s":return dt||G?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return st+(dt||G)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(dt||G?" perc":" perce");case"mm":return st+(dt||G?" perc":" perce");case"h":return"egy"+(dt||G?" \xf3ra":" \xf3r\xe1ja");case"hh":return st+(dt||G?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(dt||G?" nap":" napja");case"dd":return st+(dt||G?" nap":" napja");case"M":return"egy"+(dt||G?" h\xf3nap":" h\xf3napja");case"MM":return st+(dt||G?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(dt||G?" \xe9v":" \xe9ve");case"yy":return st+(dt||G?" \xe9v":" \xe9ve")}return""}function Pn(y){return(y?"":"[m\xfalt] ")+"["+dn[this.day()]+"] LT[-kor]"}function On(y){return y%100==11||y%10!=1}function In(y,G,Je,dt){var st=y+" ";switch(Je){case"s":return G||dt?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return On(y)?st+(G||dt?"sek\xfandur":"sek\xfandum"):st+"sek\xfanda";case"m":return G?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return On(y)?st+(G||dt?"m\xedn\xfatur":"m\xedn\xfatum"):G?st+"m\xedn\xfata":st+"m\xedn\xfatu";case"hh":return On(y)?st+(G||dt?"klukkustundir":"klukkustundum"):st+"klukkustund";case"d":return G?"dagur":dt?"dag":"degi";case"dd":return On(y)?G?st+"dagar":st+(dt?"daga":"d\xf6gum"):G?st+"dagur":st+(dt?"dag":"degi");case"M":return G?"m\xe1nu\xf0ur":dt?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return On(y)?G?st+"m\xe1nu\xf0ir":st+(dt?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):G?st+"m\xe1nu\xf0ur":st+(dt?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return G||dt?"\xe1r":"\xe1ri";case"yy":return On(y)?st+(G||dt?"\xe1r":"\xe1rum"):st+(G||dt?"\xe1r":"\xe1ri")}}o.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(y){return"u"===y.charAt(1).toLowerCase()},meridiem:function(y,G,Je){return y<12?!0===Je?"de":"DE":!0===Je?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Pn.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Pn.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:un,ss:un,m:un,mm:un,h:un,hh:un,d:un,dd:un,M:un,MM:un,y:un,yy:un},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(y){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(y)},meridiem:function(y){return y<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":y<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":y<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(y,G){switch(G){case"DDD":case"w":case"W":case"DDDo":return 1===y?y+"-\u056b\u0576":y+"-\u0580\u0564";default:return y}},week:{dow:1,doy:7}}),o.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(y,G){return 12===y&&(y=0),"pagi"===G?y:"siang"===G?y>=11?y:y+12:"sore"===G||"malam"===G?y+12:void 0},meridiem:function(y,G,Je){return y<11?"pagi":y<15?"siang":y<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}}),o.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:In,ss:In,m:In,mm:In,h:"klukkustund",hh:In,d:In,dd:In,M:In,MM:In,y:In,yy:In},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(y){return(/^[0-9].+$/.test(y)?"tra":"in")+" "+y},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}}),o.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}}),o.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(y,G){return"\u5143"===G[1]?1:parseInt(G[1]||y,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(y){return"\u5348\u5f8c"===y},meridiem:function(y,G,Je){return y<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(y){return y.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(y){return this.week()!==y.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(y,G){switch(G){case"y":return 1===y?"\u5143\u5e74":y+"\u5e74";case"d":case"D":case"DDD":return y+"\u65e5";default:return y}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}}),o.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(y,G){return 12===y&&(y=0),"enjing"===G?y:"siyang"===G?y>=11?y:y+12:"sonten"===G||"ndalu"===G?y+12:void 0},meridiem:function(y,G,Je){return y<11?"enjing":y<15?"siyang":y<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),o.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(y){return y.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(G,Je,dt){return"\u10d8"===dt?Je+"\u10e8\u10d8":Je+dt+"\u10e8\u10d8"})},past:function(y){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(y)?y.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(y)?y.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):y},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(y){return 0===y?y:1===y?y+"-\u10da\u10d8":y<20||y<=100&&y%20==0||y%100==0?"\u10db\u10d4-"+y:y+"-\u10d4"},week:{dow:1,doy:7}});var Fn={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};o.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(y){return y+(Fn[y]||Fn[y%10]||Fn[y>=100?100:null])},week:{dow:1,doy:7}});var Hr={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},xo={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};o.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(y){return"\u179b\u17d2\u1784\u17b6\u1785"===y},meridiem:function(y,G,Je){return y<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(y){return y.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(G){return xo[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return Hr[G]})},week:{dow:1,doy:4}});var yo={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},Ho={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};function io(y,G,Je,dt){var st={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[y+" san\xeeye",y+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[y+" deq\xeeqe",y+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[y+" saet",y+" saetan"],d:["rojek","rojek\xea"],dd:[y+" roj",y+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[y+" hefte",y+" hefteyan"],M:["mehek","mehek\xea"],MM:[y+" meh",y+" mehan"],y:["salek","salek\xea"],yy:[y+" sal",y+" salan"]};return G?st[Je][0]:st[Je][1]}o.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(y){return y.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(G){return Ho[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return yo[G]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===G?y<4?y:y+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===G?y:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===G?y>=10?y:y+12:"\u0cb8\u0c82\u0c9c\u0cc6"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":y<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":y<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":y<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(y){return y+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}}),o.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(y,G){switch(G){case"d":case"D":case"DDD":return y+"\uc77c";case"M":return y+"\uc6d4";case"w":case"W":return y+"\uc8fc";default:return y}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(y){return"\uc624\ud6c4"===y},meridiem:function(y,G,Je){return y<12?"\uc624\uc804":"\uc624\ud6c4"}}),o.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(y,G,Je){return y<12?Je?"bn":"BN":Je?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:io,ss:io,m:io,mm:io,h:io,hh:io,d:io,dd:io,w:io,ww:io,M:io,MM:io,y:io,yy:io},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(y,G){var Je=G.toLowerCase();return Je.includes("w")||Je.includes("m")?y+".":y+function Mo(y){var G=(y=""+y).substring(y.length-1),Je=y.length>1?y.substring(y.length-2):"";return 12==Je||13==Je||"2"!=G&&"3"!=G&&"50"!=Je&&"70"!=G&&"80"!=G?"\xea":"y\xea"}(y)},week:{dow:1,doy:4}});var bi={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},Zi={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},tr=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];o.defineLocale("ku",{months:tr,monthsShort:tr,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(y){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(y)},meridiem:function(y,G,Je){return y<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(y){return y.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(G){return Zi[G]}).replace(/\u060c/g,",")},postformat:function(y){return y.replace(/\d/g,function(G){return bi[G]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}});var Po={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};function We(y,G,Je,dt){var st={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return G?st[Je][0]:st[Je][1]}function zt(y){if(y=parseInt(y,10),isNaN(y))return!1;if(y<0)return!0;if(y<10)return 4<=y&&y<=7;if(y<100){var G=y%10;return zt(0===G?y/10:G)}if(y<1e4){for(;y>=10;)y/=10;return zt(y)}return zt(y/=1e3)}o.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(y){return y+(Po[y]||Po[y%10]||Po[y>=100?100:null])},week:{dow:1,doy:7}}),o.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function ot(y){return zt(y.substr(0,y.indexOf(" ")))?"a "+y:"an "+y},past:function Pt(y){return zt(y.substr(0,y.indexOf(" ")))?"viru "+y:"virun "+y},s:"e puer Sekonnen",ss:"%d Sekonnen",m:We,mm:"%d Minutten",h:We,hh:"%d Stonnen",d:We,dd:"%d Deeg",M:We,MM:"%d M\xe9int",y:We,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(y){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===y},meridiem:function(y,G,Je){return y<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(y){return"\u0e97\u0eb5\u0ec8"+y}});var Qt={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function wt(y,G,Je,dt){return G?Kt(Je)[0]:dt?Kt(Je)[1]:Kt(Je)[2]}function Ht(y){return y%10==0||y>10&&y<20}function Kt(y){return Qt[y].split("_")}function on(y,G,Je,dt){var st=y+" ";return 1===y?st+wt(0,G,Je[0],dt):G?st+(Ht(y)?Kt(Je)[1]:Kt(Je)[0]):dt?st+Kt(Je)[1]:st+(Ht(y)?Kt(Je)[1]:Kt(Je)[2])}o.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function qe(y,G,Je,dt){return G?"kelios sekund\u0117s":dt?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:on,m:wt,mm:on,h:wt,hh:on,d:wt,dd:on,M:wt,MM:on,y:wt,yy:on},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(y){return y+"-oji"},week:{dow:1,doy:4}});var Mn={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function Yn(y,G,Je){return Je?G%10==1&&G%100!=11?y[2]:y[3]:G%10==1&&G%100!=11?y[0]:y[1]}function Hn(y,G,Je){return y+" "+Yn(Mn[Je],y,G)}function Sr(y,G,Je){return Yn(Mn[Je],y,G)}o.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function Co(y,G){return G?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:Hn,m:Sr,mm:Hn,h:Sr,hh:Hn,d:Sr,dd:Hn,M:Sr,MM:Hn,y:Sr,yy:Hn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var bo={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(y,G){return 1===y?G[0]:y>=2&&y<=4?G[1]:G[2]},translate:function(y,G,Je){var dt=bo.words[Je];return 1===Je.length?G?dt[0]:dt[1]:y+" "+bo.correctGrammaticalCase(y,dt)}};function Jr(y,G,Je,dt){switch(Je){case"s":return G?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return y+(G?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return y+(G?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return y+(G?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return y+(G?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return y+(G?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return y+(G?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return y}}o.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:bo.translate,m:bo.translate,mm:bo.translate,h:bo.translate,hh:bo.translate,d:"dan",dd:bo.translate,M:"mjesec",MM:bo.translate,y:"godinu",yy:bo.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),o.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}}),o.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(y){var G=y%10,Je=y%100;return 0===y?y+"-\u0435\u0432":0===Je?y+"-\u0435\u043d":Je>10&&Je<20?y+"-\u0442\u0438":1===G?y+"-\u0432\u0438":2===G?y+"-\u0440\u0438":7===G||8===G?y+"-\u043c\u0438":y+"-\u0442\u0438"},week:{dow:1,doy:7}}),o.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===G&&y>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===G||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===G?y+12:y},meridiem:function(y,G,Je){return y<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":y<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":y<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":y<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}}),o.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(y){return"\u04ae\u0425"===y},meridiem:function(y,G,Je){return y<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:Jr,ss:Jr,m:Jr,mm:Jr,h:Jr,hh:Jr,d:Jr,dd:Jr,M:Jr,MM:Jr,y:Jr,yy:Jr},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(y,G){switch(G){case"d":case"D":case"DDD":return y+" \u04e9\u0434\u04e9\u0440";default:return y}}});var gi={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},Ri={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function Qr(y,G,Je,dt){var st="";if(G)switch(Je){case"s":st="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":st="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":st="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":st="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":st="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":st="%d \u0924\u093e\u0938";break;case"d":st="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":st="%d \u0926\u093f\u0935\u0938";break;case"M":st="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":st="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":st="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":st="%d \u0935\u0930\u094d\u0937\u0947"}else switch(Je){case"s":st="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":st="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":st="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":st="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":st="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":st="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":st="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":st="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":st="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":st="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":st="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":st="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return st.replace(/%d/i,y)}o.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:Qr,ss:Qr,m:Qr,mm:Qr,h:Qr,hh:Qr,d:Qr,dd:Qr,M:Qr,MM:Qr,y:Qr,yy:Qr},preparse:function(y){return y.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(G){return Ri[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return gi[G]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u092a\u0939\u093e\u091f\u0947"===G||"\u0938\u0915\u093e\u0933\u0940"===G?y:"\u0926\u0941\u092a\u093e\u0930\u0940"===G||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===G||"\u0930\u093e\u0924\u094d\u0930\u0940"===G?y>=12?y:y+12:void 0},meridiem:function(y,G,Je){return y>=0&&y<6?"\u092a\u0939\u093e\u091f\u0947":y<12?"\u0938\u0915\u093e\u0933\u0940":y<17?"\u0926\u0941\u092a\u093e\u0930\u0940":y<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}}),o.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(y,G){return 12===y&&(y=0),"pagi"===G?y:"tengahari"===G?y>=11?y:y+12:"petang"===G||"malam"===G?y+12:void 0},meridiem:function(y,G,Je){return y<11?"pagi":y<15?"tengahari":y<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),o.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(y,G){return 12===y&&(y=0),"pagi"===G?y:"tengahari"===G?y>=11?y:y+12:"petang"===G||"malam"===G?y+12:void 0},meridiem:function(y,G,Je){return y<11?"pagi":y<15?"tengahari":y<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),o.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}});var Bo={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},_a={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};o.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(y){return y.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(G){return _a[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return Bo[G]})},week:{dow:1,doy:4}}),o.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Di={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},vi={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};o.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(y){return y.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(G){return vi[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return Di[G]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0930\u093e\u0924\u093f"===G?y<4?y:y+12:"\u092c\u093f\u0939\u093e\u0928"===G?y:"\u0926\u093f\u0909\u0901\u0938\u094b"===G?y>=10?y:y+12:"\u0938\u093e\u0901\u091d"===G?y+12:void 0},meridiem:function(y,G,Je){return y<3?"\u0930\u093e\u0924\u093f":y<12?"\u092c\u093f\u0939\u093e\u0928":y<16?"\u0926\u093f\u0909\u0901\u0938\u094b":y<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}});var Yi="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),ci="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),aa=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],sa=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;o.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(y,G){return y?/-MMM-/.test(G)?ci[y.month()]:Yi[y.month()]:Yi},monthsRegex:sa,monthsShortRegex:sa,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:aa,longMonthsParse:aa,shortMonthsParse:aa,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(y){return y+(1===y||8===y||y>=20?"ste":"de")},week:{dow:1,doy:4}});var qo="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Li="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),qr=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],ga=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;o.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(y,G){return y?/-MMM-/.test(G)?Li[y.month()]:qo[y.month()]:qo},monthsRegex:ga,monthsShortRegex:ga,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:qr,longMonthsParse:qr,shortMonthsParse:qr,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(y){return y+(1===y||8===y||y>=20?"ste":"de")},week:{dow:1,doy:4}}),o.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(y,G){var Je=1===y?"r":2===y?"n":3===y?"r":4===y?"t":"\xe8";return("w"===G||"W"===G)&&(Je="a"),y+Je},week:{dow:1,doy:4}});var Fa={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},va={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};o.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(y){return y.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(G){return va[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return Fa[G]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0a30\u0a3e\u0a24"===G?y<4?y:y+12:"\u0a38\u0a35\u0a47\u0a30"===G?y:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===G?y>=10?y:y+12:"\u0a38\u0a3c\u0a3e\u0a2e"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"\u0a30\u0a3e\u0a24":y<10?"\u0a38\u0a35\u0a47\u0a30":y<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":y<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}});var ya="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),Ha="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),ii=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function Fi(y){return y%10<5&&y%10>1&&~~(y/10)%10!=1}function Go(y,G,Je){var dt=y+" ";switch(Je){case"ss":return dt+(Fi(y)?"sekundy":"sekund");case"m":return G?"minuta":"minut\u0119";case"mm":return dt+(Fi(y)?"minuty":"minut");case"h":return G?"godzina":"godzin\u0119";case"hh":return dt+(Fi(y)?"godziny":"godzin");case"ww":return dt+(Fi(y)?"tygodnie":"tygodni");case"MM":return dt+(Fi(y)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return dt+(Fi(y)?"lata":"lat")}}function Xo(y,G,Je){var st=" ";return(y%100>=20||y>=100&&y%100==0)&&(st=" de "),y+st+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[Je]}function Si(y,G,Je){return"m"===Je?G?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":y+" "+function Xa(y,G){var Je=y.split("_");return G%10==1&&G%100!=11?Je[0]:G%10>=2&&G%10<=4&&(G%100<10||G%100>=20)?Je[1]:Je[2]}({ss:G?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:G?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[Je],+y)}o.defineLocale("pl",{months:function(y,G){return y?/D MMMM/.test(G)?Ha[y.month()]:ya[y.month()]:ya},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:ii,longMonthsParse:ii,shortMonthsParse:ii,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:Go,m:Go,mm:Go,h:Go,hh:Go,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:Go,M:"miesi\u0105c",MM:Go,y:"rok",yy:Go},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"}),o.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}}),o.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:Xo,m:"un minut",mm:Xo,h:"o or\u0103",hh:Xo,d:"o zi",dd:Xo,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:Xo,M:"o lun\u0103",MM:Xo,y:"un an",yy:Xo},week:{dow:1,doy:7}});var Ji=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];o.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:Ji,longMonthsParse:Ji,shortMonthsParse:Ji,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(y){if(y.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(y){if(y.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:Si,m:Si,mm:Si,h:"\u0447\u0430\u0441",hh:Si,d:"\u0434\u0435\u043d\u044c",dd:Si,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:Si,M:"\u043c\u0435\u0441\u044f\u0446",MM:Si,y:"\u0433\u043e\u0434",yy:Si},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(y){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(y)},meridiem:function(y,G,Je){return y<4?"\u043d\u043e\u0447\u0438":y<12?"\u0443\u0442\u0440\u0430":y<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(y,G){switch(G){case"M":case"d":case"DDD":return y+"-\u0439";case"D":return y+"-\u0433\u043e";case"w":case"W":return y+"-\u044f";default:return y}},week:{dow:1,doy:4}});var Wi=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],Za=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];o.defineLocale("sd",{months:Wi,monthsShort:Wi,weekdays:Za,weekdaysShort:Za,weekdaysMin:Za,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(y){return"\u0634\u0627\u0645"===y},meridiem:function(y,G,Je){return y<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(y){return y.replace(/\u060c/g,",")},postformat:function(y){return y.replace(/,/g,"\u060c")},week:{dow:1,doy:4}}),o.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(y){return y+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(y){return"\u0db4.\u0dc0."===y||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===y},meridiem:function(y,G,Je){return y>11?Je?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":Je?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}});var fe="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),lt="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function P(y){return y>1&&y<5}function Q(y,G,Je,dt){var st=y+" ";switch(Je){case"s":return G||dt?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return G||dt?st+(P(y)?"sekundy":"sek\xfand"):st+"sekundami";case"m":return G?"min\xfata":dt?"min\xfatu":"min\xfatou";case"mm":return G||dt?st+(P(y)?"min\xfaty":"min\xfat"):st+"min\xfatami";case"h":return G?"hodina":dt?"hodinu":"hodinou";case"hh":return G||dt?st+(P(y)?"hodiny":"hod\xedn"):st+"hodinami";case"d":return G||dt?"de\u0148":"d\u0148om";case"dd":return G||dt?st+(P(y)?"dni":"dn\xed"):st+"d\u0148ami";case"M":return G||dt?"mesiac":"mesiacom";case"MM":return G||dt?st+(P(y)?"mesiace":"mesiacov"):st+"mesiacmi";case"y":return G||dt?"rok":"rokom";case"yy":return G||dt?st+(P(y)?"roky":"rokov"):st+"rokmi"}}function Pe(y,G,Je,dt){var st=y+" ";switch(Je){case"s":return G||dt?"nekaj sekund":"nekaj sekundami";case"ss":return st+(1===y?G?"sekundo":"sekundi":2===y?G||dt?"sekundi":"sekundah":y<5?G||dt?"sekunde":"sekundah":"sekund");case"m":return G?"ena minuta":"eno minuto";case"mm":return st+(1===y?G?"minuta":"minuto":2===y?G||dt?"minuti":"minutama":y<5?G||dt?"minute":"minutami":G||dt?"minut":"minutami");case"h":return G?"ena ura":"eno uro";case"hh":return st+(1===y?G?"ura":"uro":2===y?G||dt?"uri":"urama":y<5?G||dt?"ure":"urami":G||dt?"ur":"urami");case"d":return G||dt?"en dan":"enim dnem";case"dd":return st+(1===y?G||dt?"dan":"dnem":2===y?G||dt?"dni":"dnevoma":G||dt?"dni":"dnevi");case"M":return G||dt?"en mesec":"enim mesecem";case"MM":return st+(1===y?G||dt?"mesec":"mesecem":2===y?G||dt?"meseca":"mesecema":y<5?G||dt?"mesece":"meseci":G||dt?"mesecev":"meseci");case"y":return G||dt?"eno leto":"enim letom";case"yy":return st+(1===y?G||dt?"leto":"letom":2===y?G||dt?"leti":"letoma":y<5?G||dt?"leta":"leti":G||dt?"let":"leti")}}o.defineLocale("sk",{months:fe,monthsShort:lt,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:Q,ss:Q,m:Q,mm:Q,h:Q,hh:Q,d:Q,dd:Q,M:Q,MM:Q,y:Q,yy:Q},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:Pe,ss:Pe,m:Pe,mm:Pe,h:Pe,hh:Pe,d:Pe,dd:Pe,M:Pe,MM:Pe,y:Pe,yy:Pe},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),o.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(y){return"M"===y.charAt(0)},meridiem:function(y,G,Je){return y<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ve={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(y,G){return y%10>=1&&y%10<=4&&(y%100<10||y%100>=20)?y%10==1?G[0]:G[1]:G[2]},translate:function(y,G,Je,dt){var Ln,st=Ve.words[Je];return 1===Je.length?"y"===Je&&G?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":dt||G?st[0]:st[1]:(Ln=Ve.correctGrammaticalCase(y,st),"yy"===Je&&G&&"\u0433\u043e\u0434\u0438\u043d\u0443"===Ln?y+" \u0433\u043e\u0434\u0438\u043d\u0430":y+" "+Ln)}};o.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:Ve.translate,m:Ve.translate,mm:Ve.translate,h:Ve.translate,hh:Ve.translate,d:Ve.translate,dd:Ve.translate,M:Ve.translate,MM:Ve.translate,y:Ve.translate,yy:Ve.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Z={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(y,G){return y%10>=1&&y%10<=4&&(y%100<10||y%100>=20)?y%10==1?G[0]:G[1]:G[2]},translate:function(y,G,Je,dt){var Ln,st=Z.words[Je];return 1===Je.length?"y"===Je&&G?"jedna godina":dt||G?st[0]:st[1]:(Ln=Z.correctGrammaticalCase(y,st),"yy"===Je&&G&&"godinu"===Ln?y+" godina":y+" "+Ln)}};o.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:Z.translate,m:Z.translate,mm:Z.translate,h:Z.translate,hh:Z.translate,d:Z.translate,dd:Z.translate,M:Z.translate,MM:Z.translate,y:Z.translate,yy:Z.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),o.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(y,G,Je){return y<11?"ekuseni":y<15?"emini":y<19?"entsambama":"ebusuku"},meridiemHour:function(y,G){return 12===y&&(y=0),"ekuseni"===G?y:"emini"===G?y>=11?y:y+12:"entsambama"===G||"ebusuku"===G?0===y?0:y+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),o.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?":e":1===G||2===G?":a":":e")},week:{dow:1,doy:4}}),o.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var re={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},Xe={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};o.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(y){return y+"\u0bb5\u0ba4\u0bc1"},preparse:function(y){return y.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(G){return Xe[G]})},postformat:function(y){return y.replace(/\d/g,function(G){return re[G]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(y,G,Je){return y<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":y<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":y<10?" \u0b95\u0bbe\u0bb2\u0bc8":y<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":y<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":y<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(y,G){return 12===y&&(y=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===G?y<2?y:y+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===G||"\u0b95\u0bbe\u0bb2\u0bc8"===G||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===G&&y>=10?y:y+12},week:{dow:0,doy:6}}),o.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===G?y<4?y:y+12:"\u0c09\u0c26\u0c2f\u0c02"===G?y:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===G?y>=10?y:y+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":y<10?"\u0c09\u0c26\u0c2f\u0c02":y<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":y<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}}),o.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")},week:{dow:1,doy:4}});var it={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};o.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u0448\u0430\u0431"===G?y<4?y:y+12:"\u0441\u0443\u0431\u04b3"===G?y:"\u0440\u04ef\u0437"===G?y>=11?y:y+12:"\u0431\u0435\u0433\u043e\u04b3"===G?y+12:void 0},meridiem:function(y,G,Je){return y<4?"\u0448\u0430\u0431":y<11?"\u0441\u0443\u0431\u04b3":y<16?"\u0440\u04ef\u0437":y<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(y){return y+(it[y]||it[y%10]||it[y>=100?100:null])},week:{dow:1,doy:7}}),o.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(y){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===y},meridiem:function(y,G,Je){return y<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}});var bt={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};o.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(y,G){switch(G){case"d":case"D":case"Do":case"DD":return y;default:if(0===y)return y+"'unjy";var Je=y%10;return y+(bt[Je]||bt[y%100-Je]||bt[y>=100?100:null])}},week:{dow:1,doy:7}}),o.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(y){return y},week:{dow:1,doy:4}});var mt="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function qt(y,G,Je,dt){var st=function Sn(y){var G=Math.floor(y%1e3/100),Je=Math.floor(y%100/10),dt=y%10,st="";return G>0&&(st+=mt[G]+"vatlh"),Je>0&&(st+=(""!==st?" ":"")+mt[Je]+"maH"),dt>0&&(st+=(""!==st?" ":"")+mt[dt]),""===st?"pagh":st}(y);switch(Je){case"ss":return st+" lup";case"mm":return st+" tup";case"hh":return st+" rep";case"dd":return st+" jaj";case"MM":return st+" jar";case"yy":return st+" DIS"}}o.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function Rt(y){var G=y;return-1!==y.indexOf("jaj")?G.slice(0,-3)+"leS":-1!==y.indexOf("jar")?G.slice(0,-3)+"waQ":-1!==y.indexOf("DIS")?G.slice(0,-3)+"nem":G+" pIq"},past:function Xt(y){var G=y;return-1!==y.indexOf("jaj")?G.slice(0,-3)+"Hu\u2019":-1!==y.indexOf("jar")?G.slice(0,-3)+"wen":-1!==y.indexOf("DIS")?G.slice(0,-3)+"ben":G+" ret"},s:"puS lup",ss:qt,m:"wa\u2019 tup",mm:qt,h:"wa\u2019 rep",hh:qt,d:"wa\u2019 jaj",dd:qt,M:"wa\u2019 jar",MM:qt,y:"wa\u2019 DIS",yy:qt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Wn={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};function Un(y,G,Je,dt){var st={s:["viensas secunds","'iensas secunds"],ss:[y+" secunds",y+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[y+" m\xeduts",y+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[y+" \xfeoras",y+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[y+" ziuas",y+" ziuas"],M:["'n mes","'iens mes"],MM:[y+" mesen",y+" mesen"],y:["'n ar","'iens ar"],yy:[y+" ars",y+" ars"]};return dt||G?st[Je][0]:st[Je][1]}function hr(y,G,Je){return"m"===Je?G?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===Je?G?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":y+" "+function sr(y,G){var Je=y.split("_");return G%10==1&&G%100!=11?Je[0]:G%10>=2&&G%10<=4&&(G%100<10||G%100>=20)?Je[1]:Je[2]}({ss:G?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:G?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:G?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[Je],+y)}function eo(y){return function(){return y+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}o.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(y,G,Je){return y<12?Je?"\xf6\xf6":"\xd6\xd6":Je?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(y){return"\xf6s"===y||"\xd6S"===y},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(y,G){switch(G){case"d":case"D":case"Do":case"DD":return y;default:if(0===y)return y+"'\u0131nc\u0131";var Je=y%10;return y+(Wn[Je]||Wn[y%100-Je]||Wn[y>=100?100:null])}},week:{dow:1,doy:7}}),o.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(y){return"d'o"===y.toLowerCase()},meridiem:function(y,G,Je){return y>11?Je?"d'o":"D'O":Je?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:Un,ss:Un,m:Un,mm:Un,h:Un,hh:Un,d:Un,dd:Un,M:Un,MM:Un,y:Un,yy:Un},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),o.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),o.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}}),o.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===G||"\u0633\u06d5\u06be\u06d5\u0631"===G||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===G?y:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===G||"\u0643\u06d5\u0686"===G?y+12:y>=11?y:y+12},meridiem:function(y,G,Je){var dt=100*y+G;return dt<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":dt<900?"\u0633\u06d5\u06be\u06d5\u0631":dt<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":dt<1230?"\u0686\u06c8\u0634":dt<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(y,G){switch(G){case"d":case"D":case"DDD":return y+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return y+"-\u06be\u06d5\u067e\u062a\u06d5";default:return y}},preparse:function(y){return y.replace(/\u060c/g,",")},postformat:function(y){return y.replace(/,/g,"\u060c")},week:{dow:1,doy:7}}),o.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function Ar(y,G){var Je={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===y?Je.nominative.slice(1,7).concat(Je.nominative.slice(0,1)):y?Je[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(G)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(G)?"genitive":"nominative"][y.day()]:Je.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:eo("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:eo("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:eo("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:eo("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return eo("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return eo("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:hr,m:hr,mm:hr,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:hr,d:"\u0434\u0435\u043d\u044c",dd:hr,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:hr,y:"\u0440\u0456\u043a",yy:hr},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(y){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(y)},meridiem:function(y,G,Je){return y<4?"\u043d\u043e\u0447\u0456":y<12?"\u0440\u0430\u043d\u043a\u0443":y<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(y,G){switch(G){case"M":case"d":case"DDD":case"w":case"W":return y+"-\u0439";case"D":return y+"-\u0433\u043e";default:return y}},week:{dow:1,doy:7}});var fo=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],ko=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];o.defineLocale("ur",{months:fo,monthsShort:fo,weekdays:ko,weekdaysShort:ko,weekdaysMin:ko,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(y){return"\u0634\u0627\u0645"===y},meridiem:function(y,G,Je){return y<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(y){return y.replace(/\u060c/g,",")},postformat:function(y){return y.replace(/,/g,"\u060c")},week:{dow:1,doy:4}}),o.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),o.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}}),o.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(y){return/^ch$/i.test(y)},meridiem:function(y,G,Je){return y<12?Je?"sa":"SA":Je?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(y){return y},week:{dow:1,doy:4}}),o.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(y){var G=y%10;return y+(1==~~(y%100/10)?"th":1===G?"st":2===G?"nd":3===G?"rd":"th")},week:{dow:1,doy:4}}),o.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}}),o.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u51cc\u6668"===G||"\u65e9\u4e0a"===G||"\u4e0a\u5348"===G?y:"\u4e0b\u5348"===G||"\u665a\u4e0a"===G?y+12:y>=11?y:y+12},meridiem:function(y,G,Je){var dt=100*y+G;return dt<600?"\u51cc\u6668":dt<900?"\u65e9\u4e0a":dt<1130?"\u4e0a\u5348":dt<1230?"\u4e2d\u5348":dt<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(y){return y.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(y){return this.week()!==y.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(y,G){switch(G){case"d":case"D":case"DDD":return y+"\u65e5";case"M":return y+"\u6708";case"w":case"W":return y+"\u5468";default:return y}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}}),o.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u51cc\u6668"===G||"\u65e9\u4e0a"===G||"\u4e0a\u5348"===G?y:"\u4e2d\u5348"===G?y>=11?y:y+12:"\u4e0b\u5348"===G||"\u665a\u4e0a"===G?y+12:void 0},meridiem:function(y,G,Je){var dt=100*y+G;return dt<600?"\u51cc\u6668":dt<900?"\u65e9\u4e0a":dt<1200?"\u4e0a\u5348":1200===dt?"\u4e2d\u5348":dt<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(y,G){switch(G){case"d":case"D":case"DDD":return y+"\u65e5";case"M":return y+"\u6708";case"w":case"W":return y+"\u9031";default:return y}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}}),o.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u51cc\u6668"===G||"\u65e9\u4e0a"===G||"\u4e0a\u5348"===G?y:"\u4e2d\u5348"===G?y>=11?y:y+12:"\u4e0b\u5348"===G||"\u665a\u4e0a"===G?y+12:void 0},meridiem:function(y,G,Je){var dt=100*y+G;return dt<600?"\u51cc\u6668":dt<900?"\u65e9\u4e0a":dt<1130?"\u4e0a\u5348":dt<1230?"\u4e2d\u5348":dt<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(y,G){switch(G){case"d":case"D":case"DDD":return y+"\u65e5";case"M":return y+"\u6708";case"w":case"W":return y+"\u9031";default:return y}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}}),o.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(y,G){return 12===y&&(y=0),"\u51cc\u6668"===G||"\u65e9\u4e0a"===G||"\u4e0a\u5348"===G?y:"\u4e2d\u5348"===G?y>=11?y:y+12:"\u4e0b\u5348"===G||"\u665a\u4e0a"===G?y+12:void 0},meridiem:function(y,G,Je){var dt=100*y+G;return dt<600?"\u51cc\u6668":dt<900?"\u65e9\u4e0a":dt<1130?"\u4e0a\u5348":dt<1230?"\u4e2d\u5348":dt<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(y,G){switch(G){case"d":case"D":case"DDD":return y+"\u65e5";case"M":return y+"\u6708";case"w":case"W":return y+"\u9031";default:return y}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}}),o.locale("en")}(f(15439))},15439:function(Ge,$,f){(Ge=f.nmd(Ge)).exports=function(){"use strict";var o,de;function a(){return o.apply(null,arguments)}function h(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function m(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function L(C,B){return Object.prototype.hasOwnProperty.call(C,B)}function v(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var B;for(B in C)if(L(C,B))return!1;return!0}function b(C){return void 0===C}function k(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function F(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function Y(C,B){var Se,ae=[],Ke=C.length;for(Se=0;Se<Ke;++Se)ae.push(B(C[Se],Se));return ae}function I(C,B){for(var ae in B)L(B,ae)&&(C[ae]=B[ae]);return L(B,"toString")&&(C.toString=B.toString),L(B,"valueOf")&&(C.valueOf=B.valueOf),C}function D(C,B,ae,Se){return Ma(C,B,ae,Se,!0).utc()}function W(C){return null==C._pf&&(C._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),C._pf}function K(C){var B=null,ae=!1,Se=C._d&&!isNaN(C._d.getTime());return Se&&(B=W(C),ae=de.call(B.parsedDateParts,function(Ke){return null!=Ke}),Se=B.overflow<0&&!B.empty&&!B.invalidEra&&!B.invalidMonth&&!B.invalidWeekday&&!B.weekdayMismatch&&!B.nullInput&&!B.invalidFormat&&!B.userInvalidated&&(!B.meridiem||B.meridiem&&ae),C._strict&&(Se=Se&&0===B.charsLeftOver&&0===B.unusedTokens.length&&void 0===B.bigHour)),null!=Object.isFrozen&&Object.isFrozen(C)?Se:(C._isValid=Se,C._isValid)}function ee(C){var B=D(NaN);return null!=C?I(W(B),C):W(B).userInvalidated=!0,B}de=Array.prototype.some?Array.prototype.some:function(C){var Se,B=Object(this),ae=B.length>>>0;for(Se=0;Se<ae;Se++)if(Se in B&&C.call(this,B[Se],Se,B))return!0;return!1};var De=a.momentProperties=[],Te=!1;function ce(C,B){var ae,Se,Ke,Dt=De.length;if(b(B._isAMomentObject)||(C._isAMomentObject=B._isAMomentObject),b(B._i)||(C._i=B._i),b(B._f)||(C._f=B._f),b(B._l)||(C._l=B._l),b(B._strict)||(C._strict=B._strict),b(B._tzm)||(C._tzm=B._tzm),b(B._isUTC)||(C._isUTC=B._isUTC),b(B._offset)||(C._offset=B._offset),b(B._pf)||(C._pf=W(B)),b(B._locale)||(C._locale=B._locale),Dt>0)for(ae=0;ae<Dt;ae++)b(Ke=B[Se=De[ae]])||(C[Se]=Ke);return C}function oe(C){ce(this,C),this._d=new Date(null!=C._d?C._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Te&&(Te=!0,a.updateOffset(this),Te=!1)}function te(C){return C instanceof oe||null!=C&&null!=C._isAMomentObject}function ge(C){!1===a.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+C)}function xe(C,B){var ae=!0;return I(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,C),ae){var Ke,Dt,ln,Se=[],qn=arguments.length;for(Dt=0;Dt<qn;Dt++){if(Ke="","object"==typeof arguments[Dt]){for(ln in Ke+="\n["+Dt+"] ",arguments[0])L(arguments[0],ln)&&(Ke+=ln+": "+arguments[0][ln]+", ");Ke=Ke.slice(0,-2)}else Ke=arguments[Dt];Se.push(Ke)}ge(C+"\nArguments: "+Array.prototype.slice.call(Se).join("")+"\n"+(new Error).stack),ae=!1}return B.apply(this,arguments)},B)}var Ne,he={};function Le(C,B){null!=a.deprecationHandler&&a.deprecationHandler(C,B),he[C]||(ge(B),he[C]=!0)}function Ce(C){return typeof Function<"u"&&C instanceof Function||"[object Function]"===Object.prototype.toString.call(C)}function se(C,B){var Se,ae=I({},C);for(Se in B)L(B,Se)&&(m(C[Se])&&m(B[Se])?(ae[Se]={},I(ae[Se],C[Se]),I(ae[Se],B[Se])):null!=B[Se]?ae[Se]=B[Se]:delete ae[Se]);for(Se in C)L(C,Se)&&!L(B,Se)&&m(C[Se])&&(ae[Se]=I({},ae[Se]));return ae}function me(C){null!=C&&this.set(C)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,Ne=Object.keys?Object.keys:function(C){var B,ae=[];for(B in C)L(C,B)&&ae.push(B);return ae};function Ee(C,B,ae){var Se=""+Math.abs(C);return(C>=0?ae?"+":"":"-")+Math.pow(10,Math.max(0,B-Se.length)).toString().substr(1)+Se}var le=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ue=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ke={},ze={};function ye(C,B,ae,Se){var Ke=Se;"string"==typeof Se&&(Ke=function(){return this[Se]()}),C&&(ze[C]=Ke),B&&(ze[B[0]]=function(){return Ee(Ke.apply(this,arguments),B[1],B[2])}),ae&&(ze[ae]=function(){return this.localeData().ordinal(Ke.apply(this,arguments),C)})}function je(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function _t(C,B){return C.isValid()?(B=At(B,C.localeData()),ke[B]=ke[B]||function Ze(C){var ae,Se,B=C.match(le);for(ae=0,Se=B.length;ae<Se;ae++)B[ae]=ze[B[ae]]?ze[B[ae]]:je(B[ae]);return function(Ke){var ln,Dt="";for(ln=0;ln<Se;ln++)Dt+=Ce(B[ln])?B[ln].call(Ke,C):B[ln];return Dt}}(B),ke[B](C)):C.localeData().invalidDate()}function At(C,B){var ae=5;function Se(Ke){return B.longDateFormat(Ke)||Ke}for(Ue.lastIndex=0;ae>=0&&Ue.test(C);)C=C.replace(Ue,Se),Ue.lastIndex=0,ae-=1;return C}var Gt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function or(C){return"string"==typeof C?Gt[C]||Gt[C.toLowerCase()]:void 0}function Cr(C){var ae,Se,B={};for(Se in C)L(C,Se)&&(ae=or(Se))&&(B[ae]=C[Se]);return B}var wr={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var mi,er=/\d/,Jn=/\d\d/,Er=/\d{3}/,lo=/\d{4}/,Gr=/[+-]?\d{6}/,Qn=/\d\d?/,Pr=/\d\d\d\d?/,jr=/\d\d\d\d\d\d?/,Nr=/\d{1,3}/,go=/\d{1,4}/,Zr=/[+-]?\d{1,6}/,ro=/\d+/,mo=/[+-]?\d+/,ki=/Z|[+-]\d\d:?\d\d/gi,Yo=/Z|[+-]\d\d(?::?\d\d)?/gi,wo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,$r=/^[1-9]\d?/,hi=/^([1-9]\d|\d)/;function vn(C,B,ae){mi[C]=Ce(B)?B:function(Se,Ke){return Se&&ae?ae:B}}function Eo(C,B){return L(mi,C)?mi[C](B._strict,B._locale):new RegExp(function Ur(C){return vo(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(B,ae,Se,Ke,Dt){return ae||Se||Ke||Dt}))}(C))}function vo(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function br(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function Zn(C){var B=+C,ae=0;return 0!==B&&isFinite(B)&&(ae=br(B)),ae}mi={};var uo={};function fr(C,B){var ae,Ke,Se=B;for("string"==typeof C&&(C=[C]),k(B)&&(Se=function(Dt,ln){ln[B]=Zn(Dt)}),Ke=C.length,ae=0;ae<Ke;ae++)uo[C[ae]]=Se}function Vo(C,B){fr(C,function(ae,Se,Ke,Dt){Ke._w=Ke._w||{},B(ae,Ke._w,Ke,Dt)})}function Fo(C,B,ae){null!=B&&L(uo,C)&&uo[C](B,ae._a,ae,C)}function _i(C){return C%4==0&&C%100!=0||C%400==0}function rt(C){return _i(C)?366:365}ye("Y",0,0,function(){var C=this.year();return C<=9999?Ee(C,4):"+"+C}),ye(0,["YY",2],0,function(){return this.year()%100}),ye(0,["YYYY",4],0,"year"),ye(0,["YYYYY",5],0,"year"),ye(0,["YYYYYY",6,!0],0,"year"),vn("Y",mo),vn("YY",Qn,Jn),vn("YYYY",go,lo),vn("YYYYY",Zr,Gr),vn("YYYYYY",Zr,Gr),fr(["YYYYY","YYYYYY"],0),fr("YYYY",function(C,B){B[0]=2===C.length?a.parseTwoDigitYear(C):Zn(C)}),fr("YY",function(C,B){B[0]=a.parseTwoDigitYear(C)}),fr("Y",function(C,B){B[0]=parseInt(C,10)}),a.parseTwoDigitYear=function(C){return Zn(C)+(Zn(C)>68?1900:2e3)};var Fn,Yt=Wt("FullYear",!0);function Wt(C,B){return function(ae){return null!=ae?(un(this,C,ae),a.updateOffset(this,B),this):dn(this,C)}}function dn(C,B){if(!C.isValid())return NaN;var ae=C._d,Se=C._isUTC;switch(B){case"Milliseconds":return Se?ae.getUTCMilliseconds():ae.getMilliseconds();case"Seconds":return Se?ae.getUTCSeconds():ae.getSeconds();case"Minutes":return Se?ae.getUTCMinutes():ae.getMinutes();case"Hours":return Se?ae.getUTCHours():ae.getHours();case"Date":return Se?ae.getUTCDate():ae.getDate();case"Day":return Se?ae.getUTCDay():ae.getDay();case"Month":return Se?ae.getUTCMonth():ae.getMonth();case"FullYear":return Se?ae.getUTCFullYear():ae.getFullYear();default:return NaN}}function un(C,B,ae){var Se,Ke,Dt,ln,qn;if(C.isValid()&&!isNaN(ae)){switch(Se=C._d,Ke=C._isUTC,B){case"Milliseconds":return void(Ke?Se.setUTCMilliseconds(ae):Se.setMilliseconds(ae));case"Seconds":return void(Ke?Se.setUTCSeconds(ae):Se.setSeconds(ae));case"Minutes":return void(Ke?Se.setUTCMinutes(ae):Se.setMinutes(ae));case"Hours":return void(Ke?Se.setUTCHours(ae):Se.setHours(ae));case"Date":return void(Ke?Se.setUTCDate(ae):Se.setDate(ae));case"FullYear":break;default:return}Dt=ae,ln=C.month(),qn=29!==(qn=C.date())||1!==ln||_i(Dt)?qn:28,Ke?Se.setUTCFullYear(Dt,ln,qn):Se.setFullYear(Dt,ln,qn)}}function Hr(C,B){if(isNaN(C)||isNaN(B))return NaN;var ae=function In(C,B){return(C%B+B)%B}(B,12);return C+=(B-ae)/12,1===ae?_i(C)?29:28:31-ae%7%2}Fn=Array.prototype.indexOf?Array.prototype.indexOf:function(C){var B;for(B=0;B<this.length;++B)if(this[B]===C)return B;return-1},ye("M",["MM",2],"Mo",function(){return this.month()+1}),ye("MMM",0,0,function(C){return this.localeData().monthsShort(this,C)}),ye("MMMM",0,0,function(C){return this.localeData().months(this,C)}),vn("M",Qn,$r),vn("MM",Qn,Jn),vn("MMM",function(C,B){return B.monthsShortRegex(C)}),vn("MMMM",function(C,B){return B.monthsRegex(C)}),fr(["M","MM"],function(C,B){B[1]=Zn(C)-1}),fr(["MMM","MMMM"],function(C,B,ae,Se){var Ke=ae._locale.monthsParse(C,Se,ae._strict);null!=Ke?B[1]=Ke:W(ae).invalidMonth=C});var xo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),yo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ho=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,io=wo,Mo=wo;function tr(C,B,ae){var Se,Ke,Dt,ln=C.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Se=0;Se<12;++Se)Dt=D([2e3,Se]),this._shortMonthsParse[Se]=this.monthsShort(Dt,"").toLocaleLowerCase(),this._longMonthsParse[Se]=this.months(Dt,"").toLocaleLowerCase();return ae?"MMM"===B?-1!==(Ke=Fn.call(this._shortMonthsParse,ln))?Ke:null:-1!==(Ke=Fn.call(this._longMonthsParse,ln))?Ke:null:"MMM"===B?-1!==(Ke=Fn.call(this._shortMonthsParse,ln))||-1!==(Ke=Fn.call(this._longMonthsParse,ln))?Ke:null:-1!==(Ke=Fn.call(this._longMonthsParse,ln))||-1!==(Ke=Fn.call(this._shortMonthsParse,ln))?Ke:null}function We(C,B){if(!C.isValid())return C;if("string"==typeof B)if(/^\d+$/.test(B))B=Zn(B);else if(!k(B=C.localeData().monthsParse(B)))return C;var ae=B,Se=C.date();return Se=Se<29?Se:Math.min(Se,Hr(C.year(),ae)),C._isUTC?C._d.setUTCMonth(ae,Se):C._d.setMonth(ae,Se),C}function ot(C){return null!=C?(We(this,C),a.updateOffset(this,!0),this):dn(this,"Month")}function qe(){function C($n,to){return to.length-$n.length}var Ke,Dt,ln,qn,B=[],ae=[],Se=[];for(Ke=0;Ke<12;Ke++)Dt=D([2e3,Ke]),ln=vo(this.monthsShort(Dt,"")),qn=vo(this.months(Dt,"")),B.push(ln),ae.push(qn),Se.push(qn),Se.push(ln);B.sort(C),ae.sort(C),Se.sort(C),this._monthsRegex=new RegExp("^("+Se.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ae.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+B.join("|")+")","i")}function wt(C,B,ae,Se,Ke,Dt,ln){var qn;return C<100&&C>=0?(qn=new Date(C+400,B,ae,Se,Ke,Dt,ln),isFinite(qn.getFullYear())&&qn.setFullYear(C)):qn=new Date(C,B,ae,Se,Ke,Dt,ln),qn}function Ht(C){var B,ae;return C<100&&C>=0?((ae=Array.prototype.slice.call(arguments))[0]=C+400,B=new Date(Date.UTC.apply(null,ae)),isFinite(B.getUTCFullYear())&&B.setUTCFullYear(C)):B=new Date(Date.UTC.apply(null,arguments)),B}function Kt(C,B,ae){var Se=7+B-ae;return-(7+Ht(C,0,Se).getUTCDay()-B)%7+Se-1}function on(C,B,ae,Se,Ke){var $n,to,qn=1+7*(B-1)+(7+ae-Se)%7+Kt(C,Se,Ke);return qn<=0?to=rt($n=C-1)+qn:qn>rt(C)?($n=C+1,to=qn-rt(C)):($n=C,to=qn),{year:$n,dayOfYear:to}}function Mn(C,B,ae){var Dt,ln,Se=Kt(C.year(),B,ae),Ke=Math.floor((C.dayOfYear()-Se-1)/7)+1;return Ke<1?Dt=Ke+Yn(ln=C.year()-1,B,ae):Ke>Yn(C.year(),B,ae)?(Dt=Ke-Yn(C.year(),B,ae),ln=C.year()+1):(ln=C.year(),Dt=Ke),{week:Dt,year:ln}}function Yn(C,B,ae){var Se=Kt(C,B,ae),Ke=Kt(C+1,B,ae);return(rt(C)-Se+Ke)/7}ye("w",["ww",2],"wo","week"),ye("W",["WW",2],"Wo","isoWeek"),vn("w",Qn,$r),vn("ww",Qn,Jn),vn("W",Qn,$r),vn("WW",Qn,Jn),Vo(["w","ww","W","WW"],function(C,B,ae,Se){B[Se.substr(0,1)]=Zn(C)});function Bo(C,B){return C.slice(B,7).concat(C.slice(0,B))}ye("d",0,"do","day"),ye("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),ye("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),ye("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),ye("e",0,0,"weekday"),ye("E",0,0,"isoWeekday"),vn("d",Qn),vn("e",Qn),vn("E",Qn),vn("dd",function(C,B){return B.weekdaysMinRegex(C)}),vn("ddd",function(C,B){return B.weekdaysShortRegex(C)}),vn("dddd",function(C,B){return B.weekdaysRegex(C)}),Vo(["dd","ddd","dddd"],function(C,B,ae,Se){var Ke=ae._locale.weekdaysParse(C,Se,ae._strict);null!=Ke?B.d=Ke:W(ae).invalidWeekday=C}),Vo(["d","e","E"],function(C,B,ae,Se){B[Se]=Zn(C)});var _a="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Di="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),vi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yi=wo,ci=wo,aa=wo;function qr(C,B,ae){var Se,Ke,Dt,ln=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Se=0;Se<7;++Se)Dt=D([2e3,1]).day(Se),this._minWeekdaysParse[Se]=this.weekdaysMin(Dt,"").toLocaleLowerCase(),this._shortWeekdaysParse[Se]=this.weekdaysShort(Dt,"").toLocaleLowerCase(),this._weekdaysParse[Se]=this.weekdays(Dt,"").toLocaleLowerCase();return ae?"dddd"===B?-1!==(Ke=Fn.call(this._weekdaysParse,ln))?Ke:null:"ddd"===B?-1!==(Ke=Fn.call(this._shortWeekdaysParse,ln))?Ke:null:-1!==(Ke=Fn.call(this._minWeekdaysParse,ln))?Ke:null:"dddd"===B?-1!==(Ke=Fn.call(this._weekdaysParse,ln))||-1!==(Ke=Fn.call(this._shortWeekdaysParse,ln))||-1!==(Ke=Fn.call(this._minWeekdaysParse,ln))?Ke:null:"ddd"===B?-1!==(Ke=Fn.call(this._shortWeekdaysParse,ln))||-1!==(Ke=Fn.call(this._weekdaysParse,ln))||-1!==(Ke=Fn.call(this._minWeekdaysParse,ln))?Ke:null:-1!==(Ke=Fn.call(this._minWeekdaysParse,ln))||-1!==(Ke=Fn.call(this._weekdaysParse,ln))||-1!==(Ke=Fn.call(this._shortWeekdaysParse,ln))?Ke:null}function Go(){function C(es,ks){return ks.length-es.length}var Dt,ln,qn,$n,to,B=[],ae=[],Se=[],Ke=[];for(Dt=0;Dt<7;Dt++)ln=D([2e3,1]).day(Dt),qn=vo(this.weekdaysMin(ln,"")),$n=vo(this.weekdaysShort(ln,"")),to=vo(this.weekdays(ln,"")),B.push(qn),ae.push($n),Se.push(to),Ke.push(qn),Ke.push($n),Ke.push(to);B.sort(C),ae.sort(C),Se.sort(C),Ke.sort(C),this._weekdaysRegex=new RegExp("^("+Ke.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Se.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+ae.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+B.join("|")+")","i")}function Xo(){return this.hours()%12||12}function Si(C,B){ye(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),B)})}function Ji(C,B){return B._meridiemParse}ye("H",["HH",2],0,"hour"),ye("h",["hh",2],0,Xo),ye("k",["kk",2],0,function Xa(){return this.hours()||24}),ye("hmm",0,0,function(){return""+Xo.apply(this)+Ee(this.minutes(),2)}),ye("hmmss",0,0,function(){return""+Xo.apply(this)+Ee(this.minutes(),2)+Ee(this.seconds(),2)}),ye("Hmm",0,0,function(){return""+this.hours()+Ee(this.minutes(),2)}),ye("Hmmss",0,0,function(){return""+this.hours()+Ee(this.minutes(),2)+Ee(this.seconds(),2)}),Si("a",!0),Si("A",!1),vn("a",Ji),vn("A",Ji),vn("H",Qn,hi),vn("h",Qn,$r),vn("k",Qn,$r),vn("HH",Qn,Jn),vn("hh",Qn,Jn),vn("kk",Qn,Jn),vn("hmm",Pr),vn("hmmss",jr),vn("Hmm",Pr),vn("Hmmss",jr),fr(["H","HH"],3),fr(["k","kk"],function(C,B,ae){var Se=Zn(C);B[3]=24===Se?0:Se}),fr(["a","A"],function(C,B,ae){ae._isPm=ae._locale.isPM(C),ae._meridiem=C}),fr(["h","hh"],function(C,B,ae){B[3]=Zn(C),W(ae).bigHour=!0}),fr("hmm",function(C,B,ae){var Se=C.length-2;B[3]=Zn(C.substr(0,Se)),B[4]=Zn(C.substr(Se)),W(ae).bigHour=!0}),fr("hmmss",function(C,B,ae){var Se=C.length-4,Ke=C.length-2;B[3]=Zn(C.substr(0,Se)),B[4]=Zn(C.substr(Se,2)),B[5]=Zn(C.substr(Ke)),W(ae).bigHour=!0}),fr("Hmm",function(C,B,ae){var Se=C.length-2;B[3]=Zn(C.substr(0,Se)),B[4]=Zn(C.substr(Se))}),fr("Hmmss",function(C,B,ae){var Se=C.length-4,Ke=C.length-2;B[3]=Zn(C.substr(0,Se)),B[4]=Zn(C.substr(Se,2)),B[5]=Zn(C.substr(Ke))});var fe=Wt("Hours",!0);var Ve,P={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xo,monthsShort:yo,week:{dow:0,doy:6},weekdays:_a,weekdaysMin:vi,weekdaysShort:Di,meridiemParse:/[ap]\.?m?\.?/i},Q={},Pe={};function Z(C,B){var ae,Se=Math.min(C.length,B.length);for(ae=0;ae<Se;ae+=1)if(C[ae]!==B[ae])return ae;return Se}function re(C){return C&&C.toLowerCase().replace("_","-")}function bt(C){var B=null;if(void 0===Q[C]&&Ge&&Ge.exports&&function it(C){return!(!C||!C.match("^[^/\\\\]*$"))}(C))try{B=Ve._abbr,f(46700)("./"+C),mt(B)}catch{Q[C]=null}return Q[C]}function mt(C,B){var ae;return C&&((ae=b(B)?qt(C):Rt(C,B))?Ve=ae:typeof console<"u"&&console.warn&&console.warn("Locale "+C+" not found. Did you forget to load it?")),Ve._abbr}function Rt(C,B){if(null!==B){var ae,Se=P;if(B.abbr=C,null!=Q[C])Le("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Se=Q[C]._config;else if(null!=B.parentLocale)if(null!=Q[B.parentLocale])Se=Q[B.parentLocale]._config;else{if(null==(ae=bt(B.parentLocale)))return Pe[B.parentLocale]||(Pe[B.parentLocale]=[]),Pe[B.parentLocale].push({name:C,config:B}),null;Se=ae._config}return Q[C]=new me(se(Se,B)),Pe[C]&&Pe[C].forEach(function(Ke){Rt(Ke.name,Ke.config)}),mt(C),Q[C]}return delete Q[C],null}function qt(C){var B;if(C&&C._locale&&C._locale._abbr&&(C=C._locale._abbr),!C)return Ve;if(!h(C)){if(B=bt(C))return B;C=[C]}return function Xe(C){for(var ae,Se,Ke,Dt,B=0;B<C.length;){for(ae=(Dt=re(C[B]).split("-")).length,Se=(Se=re(C[B+1]))?Se.split("-"):null;ae>0;){if(Ke=bt(Dt.slice(0,ae).join("-")))return Ke;if(Se&&Se.length>=ae&&Z(Dt,Se)>=ae-1)break;ae--}B++}return Ve}(C)}function Wn(C){var B,ae=C._a;return ae&&-2===W(C).overflow&&(B=ae[1]<0||ae[1]>11?1:ae[2]<1||ae[2]>Hr(ae[0],ae[1])?2:ae[3]<0||ae[3]>24||24===ae[3]&&(0!==ae[4]||0!==ae[5]||0!==ae[6])?3:ae[4]<0||ae[4]>59?4:ae[5]<0||ae[5]>59?5:ae[6]<0||ae[6]>999?6:-1,W(C)._overflowDayOfYear&&(B<0||B>2)&&(B=2),W(C)._overflowWeeks&&-1===B&&(B=7),W(C)._overflowWeekday&&-1===B&&(B=8),W(C).overflow=B),C}var Un=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hr=/Z|[+-]\d\d(?::?\d\d)?/,Ar=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],eo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fo=/^\/?Date\((-?\d+)/i,ko=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,y={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function G(C){var B,ae,Dt,ln,qn,$n,Se=C._i,Ke=Un.exec(Se)||sr.exec(Se),to=Ar.length,es=eo.length;if(Ke){for(W(C).iso=!0,B=0,ae=to;B<ae;B++)if(Ar[B][1].exec(Ke[1])){ln=Ar[B][0],Dt=!1!==Ar[B][2];break}if(null==ln)return void(C._isValid=!1);if(Ke[3]){for(B=0,ae=es;B<ae;B++)if(eo[B][1].exec(Ke[3])){qn=(Ke[2]||" ")+eo[B][0];break}if(null==qn)return void(C._isValid=!1)}if(!Dt&&null!=qn)return void(C._isValid=!1);if(Ke[4]){if(!hr.exec(Ke[4]))return void(C._isValid=!1);$n="Z"}C._f=ln+(qn||"")+($n||""),Lt(C)}else C._isValid=!1}function dt(C){var B=parseInt(C,10);return B<=49?2e3+B:B<=999?1900+B:B}function A(C){var ae,B=ko.exec(function st(C){return C.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(C._i));if(B){if(ae=function Je(C,B,ae,Se,Ke,Dt){var ln=[dt(C),yo.indexOf(B),parseInt(ae,10),parseInt(Se,10),parseInt(Ke,10)];return Dt&&ln.push(parseInt(Dt,10)),ln}(B[4],B[3],B[2],B[5],B[6],B[7]),!function Ln(C,B,ae){return!C||Di.indexOf(C)===new Date(B[0],B[1],B[2]).getDay()||(W(ae).weekdayMismatch=!0,ae._isValid=!1,!1)}(B[1],ae,C))return;C._a=ae,C._tzm=function Rr(C,B,ae){if(C)return y[C];if(B)return 0;var Se=parseInt(ae,10),Ke=Se%100;return(Se-Ke)/100*60+Ke}(B[8],B[9],B[10]),C._d=Ht.apply(null,C._a),C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),W(C).rfc2822=!0}else C._isValid=!1}function _(C,B,ae){return C??B??ae}function O(C){var B,ae,Ke,Dt,ln,Se=[];if(!C._d){for(Ke=function T(C){var B=new Date(a.now());return C._useUTC?[B.getUTCFullYear(),B.getUTCMonth(),B.getUTCDate()]:[B.getFullYear(),B.getMonth(),B.getDate()]}(C),C._w&&null==C._a[2]&&null==C._a[1]&&function ve(C){var B,ae,Se,Ke,Dt,ln,qn,$n,to;null!=(B=C._w).GG||null!=B.W||null!=B.E?(Dt=1,ln=4,ae=_(B.GG,C._a[0],Mn(oo(),1,4).year),Se=_(B.W,1),((Ke=_(B.E,1))<1||Ke>7)&&($n=!0)):(Dt=C._locale._week.dow,ln=C._locale._week.doy,to=Mn(oo(),Dt,ln),ae=_(B.gg,C._a[0],to.year),Se=_(B.w,to.week),null!=B.d?((Ke=B.d)<0||Ke>6)&&($n=!0):null!=B.e?(Ke=B.e+Dt,(B.e<0||B.e>6)&&($n=!0)):Ke=Dt),Se<1||Se>Yn(ae,Dt,ln)?W(C)._overflowWeeks=!0:null!=$n?W(C)._overflowWeekday=!0:(qn=on(ae,Se,Ke,Dt,ln),C._a[0]=qn.year,C._dayOfYear=qn.dayOfYear)}(C),null!=C._dayOfYear&&(ln=_(C._a[0],Ke[0]),(C._dayOfYear>rt(ln)||0===C._dayOfYear)&&(W(C)._overflowDayOfYear=!0),ae=Ht(ln,0,C._dayOfYear),C._a[1]=ae.getUTCMonth(),C._a[2]=ae.getUTCDate()),B=0;B<3&&null==C._a[B];++B)C._a[B]=Se[B]=Ke[B];for(;B<7;B++)C._a[B]=Se[B]=C._a[B]??(2===B?1:0);24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?Ht:wt).apply(null,Se),Dt=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&typeof C._w.d<"u"&&C._w.d!==Dt&&(W(C).weekdayMismatch=!0)}}function Lt(C){if(C._f!==a.ISO_8601)if(C._f!==a.RFC_2822){C._a=[],W(C).empty=!0;var ae,Se,Ke,Dt,ln,to,es,B=""+C._i,qn=B.length,$n=0;for(es=(Ke=At(C._f,C._locale).match(le)||[]).length,ae=0;ae<es;ae++)(Se=(B.match(Eo(Dt=Ke[ae],C))||[])[0])&&((ln=B.substr(0,B.indexOf(Se))).length>0&&W(C).unusedInput.push(ln),B=B.slice(B.indexOf(Se)+Se.length),$n+=Se.length),ze[Dt]?(Se?W(C).empty=!1:W(C).unusedTokens.push(Dt),Fo(Dt,Se,C)):C._strict&&!Se&&W(C).unusedTokens.push(Dt);W(C).charsLeftOver=qn-$n,B.length>0&&W(C).unusedInput.push(B),C._a[3]<=12&&!0===W(C).bigHour&&C._a[3]>0&&(W(C).bigHour=void 0),W(C).parsedDateParts=C._a.slice(0),W(C).meridiem=C._meridiem,C._a[3]=function an(C,B,ae){var Se;return null==ae?B:null!=C.meridiemHour?C.meridiemHour(B,ae):(null!=C.isPM&&((Se=C.isPM(ae))&&B<12&&(B+=12),!Se&&12===B&&(B=0)),B)}(C._locale,C._a[3],C._meridiem),null!==(to=W(C).era)&&(C._a[0]=C._locale.erasConvertYear(to,C._a[0])),O(C),Wn(C)}else A(C);else G(C)}function Lo(C){var B=C._i,ae=C._f;return C._locale=C._locale||qt(C._l),null===B||void 0===ae&&""===B?ee({nullInput:!0}):("string"==typeof B&&(C._i=B=C._locale.preparse(B)),te(B)?new oe(Wn(B)):(F(B)?C._d=B:h(ae)?function nr(C){var B,ae,Se,Ke,Dt,ln,qn=!1,$n=C._f.length;if(0===$n)return W(C).invalidFormat=!0,void(C._d=new Date(NaN));for(Ke=0;Ke<$n;Ke++)Dt=0,ln=!1,B=ce({},C),null!=C._useUTC&&(B._useUTC=C._useUTC),B._f=C._f[Ke],Lt(B),K(B)&&(ln=!0),Dt+=W(B).charsLeftOver,Dt+=10*W(B).unusedTokens.length,W(B).score=Dt,qn?Dt<Se&&(Se=Dt,ae=B):(null==Se||Dt<Se||ln)&&(Se=Dt,ae=B,ln&&(qn=!0));I(C,ae||B)}(C):ae?Lt(C):function Ui(C){var B=C._i;b(B)?C._d=new Date(a.now()):F(B)?C._d=new Date(B.valueOf()):"string"==typeof B?function X(C){var B=fo.exec(C._i);null===B?(G(C),!1===C._isValid&&(delete C._isValid,A(C),!1===C._isValid&&(delete C._isValid,C._strict?C._isValid=!1:a.createFromInputFallback(C)))):C._d=new Date(+B[1])}(C):h(B)?(C._a=Y(B.slice(0),function(ae){return parseInt(ae,10)}),O(C)):m(B)?function Kr(C){if(!C._d){var B=Cr(C._i);C._a=Y([B.year,B.month,void 0===B.day?B.date:B.day,B.hour,B.minute,B.second,B.millisecond],function(Se){return Se&&parseInt(Se,10)}),O(C)}}(C):k(B)?C._d=new Date(B):a.createFromInputFallback(C)}(C),K(C)||(C._d=null),C))}function Ma(C,B,ae,Se,Ke){var Dt={};return(!0===B||!1===B)&&(Se=B,B=void 0),(!0===ae||!1===ae)&&(Se=ae,ae=void 0),(m(C)&&v(C)||h(C)&&0===C.length)&&(C=void 0),Dt._isAMomentObject=!0,Dt._useUTC=Dt._isUTC=Ke,Dt._l=ae,Dt._i=C,Dt._f=B,Dt._strict=Se,function Io(C){var B=new oe(Wn(Lo(C)));return B._nextDay&&(B.add(1,"d"),B._nextDay=void 0),B}(Dt)}function oo(C,B,ae,Se){return Ma(C,B,ae,Se,!1)}a.createFromInputFallback=xe("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(C){C._d=new Date(C._i+(C._useUTC?" UTC":""))}),a.ISO_8601=function(){},a.RFC_2822=function(){};var As=xe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var C=oo.apply(null,arguments);return this.isValid()&&C.isValid()?C<this?this:C:ee()}),bs=xe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var C=oo.apply(null,arguments);return this.isValid()&&C.isValid()?C>this?this:C:ee()});function at(C,B){var ae,Se;if(1===B.length&&h(B[0])&&(B=B[0]),!B.length)return oo();for(ae=B[0],Se=1;Se<B.length;++Se)(!B[Se].isValid()||B[Se][C](ae))&&(ae=B[Se]);return ae}var rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Xs(C){var B=Cr(C),ae=B.year||0,Se=B.quarter||0,Ke=B.month||0,Dt=B.week||B.isoWeek||0,ln=B.day||0,qn=B.hour||0,$n=B.minute||0,to=B.second||0,es=B.millisecond||0;this._isValid=function yi(C){var B,Se,ae=!1,Ke=rr.length;for(B in C)if(L(C,B)&&(-1===Fn.call(rr,B)||null!=C[B]&&isNaN(C[B])))return!1;for(Se=0;Se<Ke;++Se)if(C[rr[Se]]){if(ae)return!1;parseFloat(C[rr[Se]])!==Zn(C[rr[Se]])&&(ae=!0)}return!0}(B),this._milliseconds=+es+1e3*to+6e4*$n+1e3*qn*60*60,this._days=+ln+7*Dt,this._months=+Ke+3*Se+12*ae,this._data={},this._locale=qt(),this._bubble()}function us(C){return C instanceof Xs}function nc(C){return C<0?-1*Math.round(-1*C):Math.round(C)}function Ti(C,B){ye(C,0,0,function(){var ae=this.utcOffset(),Se="+";return ae<0&&(ae=-ae,Se="-"),Se+Ee(~~(ae/60),2)+B+Ee(~~ae%60,2)})}Ti("Z",":"),Ti("ZZ",""),vn("Z",Yo),vn("ZZ",Yo),fr(["Z","ZZ"],function(C,B,ae){ae._useUTC=!0,ae._tzm=Ba(Yo,C)});var Pi=/([\+\-]|\d\d)/gi;function Ba(C,B){var Ke,Dt,ae=(B||"").match(C);return null===ae?null:0===(Dt=60*(Ke=((ae[ae.length-1]||[])+"").match(Pi)||["-",0,0])[1]+Zn(Ke[2]))?0:"+"===Ke[0]?Dt:-Dt}function Ea(C,B){var ae,Se;return B._isUTC?(ae=B.clone(),Se=(te(C)||F(C)?C.valueOf():oo(C).valueOf())-ae.valueOf(),ae._d.setTime(ae._d.valueOf()+Se),a.updateOffset(ae,!1),ae):oo(C).local()}function Ns(C){return-Math.round(C._d.getTimezoneOffset())}function Mi(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Qi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ei=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vi(C,B){var Ke,Dt,ln,ae=C,Se=null;return us(C)?ae={ms:C._milliseconds,d:C._days,M:C._months}:k(C)||!isNaN(+C)?(ae={},B?ae[B]=+C:ae.milliseconds=+C):(Se=Qi.exec(C))?(Ke="-"===Se[1]?-1:1,ae={y:0,d:Zn(Se[2])*Ke,h:Zn(Se[3])*Ke,m:Zn(Se[4])*Ke,s:Zn(Se[5])*Ke,ms:Zn(nc(1e3*Se[6]))*Ke}):(Se=ei.exec(C))?ae={y:ja(Se[2],Ke="-"===Se[1]?-1:1),M:ja(Se[3],Ke),w:ja(Se[4],Ke),d:ja(Se[5],Ke),h:ja(Se[6],Ke),m:ja(Se[7],Ke),s:ja(Se[8],Ke)}:null==ae?ae={}:"object"==typeof ae&&("from"in ae||"to"in ae)&&(ln=function Wa(C,B){var ae;return C.isValid()&&B.isValid()?(B=Ea(B,C),C.isBefore(B)?ae=Js(C,B):((ae=Js(B,C)).milliseconds=-ae.milliseconds,ae.months=-ae.months),ae):{milliseconds:0,months:0}}(oo(ae.from),oo(ae.to)),(ae={}).ms=ln.milliseconds,ae.M=ln.months),Dt=new Xs(ae),us(C)&&L(C,"_locale")&&(Dt._locale=C._locale),us(C)&&L(C,"_isValid")&&(Dt._isValid=C._isValid),Dt}function ja(C,B){var ae=C&&parseFloat(C.replace(",","."));return(isNaN(ae)?0:ae)*B}function Js(C,B){var ae={};return ae.months=B.month()-C.month()+12*(B.year()-C.year()),C.clone().add(ae.months,"M").isAfter(B)&&--ae.months,ae.milliseconds=+B-+C.clone().add(ae.months,"M"),ae}function zs(C,B){return function(ae,Se){var Dt;return null!==Se&&!isNaN(+Se)&&(Le(B,"moment()."+B+"(period, number) is deprecated. Please use moment()."+B+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Dt=ae,ae=Se,Se=Dt),So(this,Vi(ae,Se),C),this}}function So(C,B,ae,Se){var Ke=B._milliseconds,Dt=nc(B._days),ln=nc(B._months);!C.isValid()||(Se=Se??!0,ln&&We(C,dn(C,"Month")+ln*ae),Dt&&un(C,"Date",dn(C,"Date")+Dt*ae),Ke&&C._d.setTime(C._d.valueOf()+Ke*ae),Se&&a.updateOffset(C,Dt||ln))}Vi.fn=Xs.prototype,Vi.invalid=function t1(){return Vi(NaN)};var o1=zs(1,"add"),rc=zs(-1,"subtract");function a1(C){return"string"==typeof C||C instanceof String}function W1(C){return te(C)||F(C)||a1(C)||k(C)||function fs(C){var B=h(C),ae=!1;return B&&(ae=0===C.filter(function(Se){return!k(Se)&&a1(C)}).length),B&&ae}(C)||function y1(C){var Ke,B=m(C)&&!v(C),ae=!1,Se=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ln=Se.length;for(Ke=0;Ke<ln;Ke+=1)ae=ae||L(C,Se[Ke]);return B&&ae}(C)||null==C}function M1(C){var Ke,B=m(C)&&!v(C),ae=!1,Se=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(Ke=0;Ke<Se.length;Ke+=1)ae=ae||L(C,Se[Ke]);return B&&ae}function Ao(C,B){if(C.date()<B.date())return-Ao(B,C);var ae=12*(B.year()-C.year())+(B.month()-C.month()),Se=C.clone().add(ae,"months");return-(ae+(B-Se<0?(B-Se)/(Se-C.clone().add(ae-1,"months")):(B-Se)/(C.clone().add(ae+1,"months")-Se)))||0}function yc(C){var B;return void 0===C?this._locale._abbr:(null!=(B=qt(C))&&(this._locale=B),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ti=xe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(C){return void 0===C?this.localeData():this.locale(C)});function ms(){return this._locale}var Re=6e4,$e=60*Re,tt=3506328*$e;function vt(C,B){return(C%B+B)%B}function Ye(C,B,ae){return C<100&&C>=0?new Date(C+400,B,ae)-tt:new Date(C,B,ae).valueOf()}function sn(C,B,ae){return C<100&&C>=0?Date.UTC(C+400,B,ae)-tt:Date.UTC(C,B,ae)}function nn(C,B){return B.erasAbbrRegex(C)}function vr(){var Ke,Dt,ln,qn,$n,C=[],B=[],ae=[],Se=[],to=this.eras();for(Ke=0,Dt=to.length;Ke<Dt;++Ke)ln=vo(to[Ke].name),qn=vo(to[Ke].abbr),$n=vo(to[Ke].narrow),B.push(ln),C.push(qn),ae.push($n),Se.push(ln),Se.push(qn),Se.push($n);this._erasRegex=new RegExp("^("+Se.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+B.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+C.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+ae.join("|")+")","i")}function mr(C,B){ye(0,[C,C.length],0,B)}function Ts(C,B,ae,Se,Ke){var Dt;return null==C?Mn(this,Se,Ke).year:(B>(Dt=Yn(C,Se,Ke))&&(B=Dt),ws.call(this,C,B,ae,Se,Ke))}function ws(C,B,ae,Se,Ke){var Dt=on(C,B,ae,Se,Ke),ln=Ht(Dt.year,0,Dt.dayOfYear);return this.year(ln.getUTCFullYear()),this.month(ln.getUTCMonth()),this.date(ln.getUTCDate()),this}ye("N",0,0,"eraAbbr"),ye("NN",0,0,"eraAbbr"),ye("NNN",0,0,"eraAbbr"),ye("NNNN",0,0,"eraName"),ye("NNNNN",0,0,"eraNarrow"),ye("y",["y",1],"yo","eraYear"),ye("y",["yy",2],0,"eraYear"),ye("y",["yyy",3],0,"eraYear"),ye("y",["yyyy",4],0,"eraYear"),vn("N",nn),vn("NN",nn),vn("NNN",nn),vn("NNNN",function Bn(C,B){return B.erasNameRegex(C)}),vn("NNNNN",function Xn(C,B){return B.erasNarrowRegex(C)}),fr(["N","NN","NNN","NNNN","NNNNN"],function(C,B,ae,Se){var Ke=ae._locale.erasParse(C,Se,ae._strict);Ke?W(ae).era=Ke:W(ae).invalidEra=C}),vn("y",ro),vn("yy",ro),vn("yyy",ro),vn("yyyy",ro),vn("yo",function Yr(C,B){return B._eraYearOrdinalRegex||ro}),fr(["y","yy","yyy","yyyy"],0),fr(["yo"],function(C,B,ae,Se){var Ke;ae._locale._eraYearOrdinalRegex&&(Ke=C.match(ae._locale._eraYearOrdinalRegex)),B[0]=ae._locale.eraYearOrdinalParse?ae._locale.eraYearOrdinalParse(C,Ke):parseInt(C,10)}),ye(0,["gg",2],0,function(){return this.weekYear()%100}),ye(0,["GG",2],0,function(){return this.isoWeekYear()%100}),mr("gggg","weekYear"),mr("ggggg","weekYear"),mr("GGGG","isoWeekYear"),mr("GGGGG","isoWeekYear"),vn("G",mo),vn("g",mo),vn("GG",Qn,Jn),vn("gg",Qn,Jn),vn("GGGG",go,lo),vn("gggg",go,lo),vn("GGGGG",Zr,Gr),vn("ggggg",Zr,Gr),Vo(["gggg","ggggg","GGGG","GGGGG"],function(C,B,ae,Se){B[Se.substr(0,2)]=Zn(C)}),Vo(["gg","GG"],function(C,B,ae,Se){B[Se]=a.parseTwoDigitYear(C)}),ye("Q",0,"Qo","quarter"),vn("Q",er),fr("Q",function(C,B){B[1]=3*(Zn(C)-1)}),ye("D",["DD",2],"Do","date"),vn("D",Qn,$r),vn("DD",Qn,Jn),vn("Do",function(C,B){return C?B._dayOfMonthOrdinalParse||B._ordinalParse:B._dayOfMonthOrdinalParseLenient}),fr(["D","DD"],2),fr("Do",function(C,B){B[2]=Zn(C.match(Qn)[0])});var wi=Wt("Date",!0);ye("DDD",["DDDD",3],"DDDo","dayOfYear"),vn("DDD",Nr),vn("DDDD",Er),fr(["DDD","DDDD"],function(C,B,ae){ae._dayOfYear=Zn(C)}),ye("m",["mm",2],0,"minute"),vn("m",Qn,hi),vn("mm",Qn,Jn),fr(["m","mm"],4);var Ua=Wt("Minutes",!1);ye("s",["ss",2],0,"second"),vn("s",Qn,hi),vn("ss",Qn,Jn),fr(["s","ss"],5);var Da,_s,ka=Wt("Seconds",!1);for(ye("S",0,0,function(){return~~(this.millisecond()/100)}),ye(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ye(0,["SSS",3],0,"millisecond"),ye(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ye(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ye(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ye(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ye(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ye(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),vn("S",Nr,er),vn("SS",Nr,Jn),vn("SSS",Nr,Er),Da="SSSS";Da.length<=9;Da+="S")vn(Da,ro);function gs(C,B){B[6]=Zn(1e3*("0."+C))}for(Da="S";Da.length<=9;Da+="S")fr(Da,gs);_s=Wt("Milliseconds",!1),ye("z",0,0,"zoneAbbr"),ye("zz",0,0,"zoneName");var Jt=oe.prototype;function Cn(C){return C}Jt.add=o1,Jt.calendar=function s1(C,B){1===arguments.length&&(arguments[0]?W1(arguments[0])?(C=arguments[0],B=void 0):M1(arguments[0])&&(B=arguments[0],C=void 0):(C=void 0,B=void 0));var ae=C||oo(),Se=Ea(ae,this).startOf("day"),Ke=a.calendarFormat(this,Se)||"sameElse",Dt=B&&(Ce(B[Ke])?B[Ke].call(this,ae):B[Ke]);return this.format(Dt||this.localeData().calendar(Ke,this,oo(ae)))},Jt.clone=function jc(){return new oe(this)},Jt.diff=function b1(C,B,ae){var Se,Ke,Dt;if(!this.isValid())return NaN;if(!(Se=Ea(C,this)).isValid())return NaN;switch(Ke=6e4*(Se.utcOffset()-this.utcOffset()),B=or(B)){case"year":Dt=Ao(this,Se)/12;break;case"month":Dt=Ao(this,Se);break;case"quarter":Dt=Ao(this,Se)/3;break;case"second":Dt=(this-Se)/1e3;break;case"minute":Dt=(this-Se)/6e4;break;case"hour":Dt=(this-Se)/36e5;break;case"day":Dt=(this-Se-Ke)/864e5;break;case"week":Dt=(this-Se-Ke)/6048e5;break;default:Dt=this-Se}return ae?Dt:br(Dt)},Jt.endOf=function cr(C){var B,ae;if(void 0===(C=or(C))||"millisecond"===C||!this.isValid())return this;switch(ae=this._isUTC?sn:Ye,C){case"year":B=ae(this.year()+1,0,1)-1;break;case"quarter":B=ae(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":B=ae(this.year(),this.month()+1,1)-1;break;case"week":B=ae(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":B=ae(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":B=ae(this.year(),this.month(),this.date()+1)-1;break;case"hour":B=this._d.valueOf(),B+=$e-vt(B+(this._isUTC?0:this.utcOffset()*Re),$e)-1;break;case"minute":B=this._d.valueOf(),B+=Re-vt(B,Re)-1;break;case"second":B=this._d.valueOf(),B+=1e3-vt(B,1e3)-1}return this._d.setTime(B),a.updateOffset(this,!0),this},Jt.format=function Uc(C){C||(C=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var B=_t(this,C);return this.localeData().postformat(B)},Jt.from=function vc(C,B){return this.isValid()&&(te(C)&&C.isValid()||oo(C).isValid())?Vi({to:this,from:C}).locale(this.locale()).humanize(!B):this.localeData().invalidDate()},Jt.fromNow=function ac(C){return this.from(oo(),C)},Jt.to=function U1(C,B){return this.isValid()&&(te(C)&&C.isValid()||oo(C).isValid())?Vi({from:this,to:C}).locale(this.locale()).humanize(!B):this.localeData().invalidDate()},Jt.toNow=function Oi(C){return this.to(oo(),C)},Jt.get=function Pn(C){return Ce(this[C=or(C)])?this[C]():this},Jt.invalidAt=function Ca(){return W(this).overflow},Jt.isAfter=function pc(C,B){var ae=te(C)?C:oo(C);return!(!this.isValid()||!ae.isValid())&&("millisecond"===(B=or(B)||"millisecond")?this.valueOf()>ae.valueOf():ae.valueOf()<this.clone().startOf(B).valueOf())},Jt.isBefore=function C1(C,B){var ae=te(C)?C:oo(C);return!(!this.isValid()||!ae.isValid())&&("millisecond"===(B=or(B)||"millisecond")?this.valueOf()<ae.valueOf():this.clone().endOf(B).valueOf()<ae.valueOf())},Jt.isBetween=function oc(C,B,ae,Se){var Ke=te(C)?C:oo(C),Dt=te(B)?B:oo(B);return!!(this.isValid()&&Ke.isValid()&&Dt.isValid())&&("("===(Se=Se||"()")[0]?this.isAfter(Ke,ae):!this.isBefore(Ke,ae))&&(")"===Se[1]?this.isBefore(Dt,ae):!this.isAfter(Dt,ae))},Jt.isSame=function _c(C,B){var Se,ae=te(C)?C:oo(C);return!(!this.isValid()||!ae.isValid())&&("millisecond"===(B=or(B)||"millisecond")?this.valueOf()===ae.valueOf():(Se=ae.valueOf(),this.clone().startOf(B).valueOf()<=Se&&Se<=this.clone().endOf(B).valueOf()))},Jt.isSameOrAfter=function hs(C,B){return this.isSame(C,B)||this.isAfter(C,B)},Jt.isSameOrBefore=function tn(C,B){return this.isSame(C,B)||this.isBefore(C,B)},Jt.isValid=function Qa(){return K(this)},Jt.lang=ti,Jt.locale=yc,Jt.localeData=ms,Jt.max=bs,Jt.min=As,Jt.parsingFlags=function ca(){return I({},W(this))},Jt.set=function On(C,B){if("object"==typeof C){var Se,ae=function dr(C){var ae,B=[];for(ae in C)L(C,ae)&&B.push({unit:ae,priority:wr[ae]});return B.sort(function(Se,Ke){return Se.priority-Ke.priority}),B}(C=Cr(C)),Ke=ae.length;for(Se=0;Se<Ke;Se++)this[ae[Se].unit](C[ae[Se].unit])}else if(Ce(this[C=or(C)]))return this[C](B);return this},Jt.startOf=function Tn(C){var B,ae;if(void 0===(C=or(C))||"millisecond"===C||!this.isValid())return this;switch(ae=this._isUTC?sn:Ye,C){case"year":B=ae(this.year(),0,1);break;case"quarter":B=ae(this.year(),this.month()-this.month()%3,1);break;case"month":B=ae(this.year(),this.month(),1);break;case"week":B=ae(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":B=ae(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":B=ae(this.year(),this.month(),this.date());break;case"hour":B=this._d.valueOf(),B-=vt(B+(this._isUTC?0:this.utcOffset()*Re),$e);break;case"minute":B=this._d.valueOf(),B-=vt(B,Re);break;case"second":B=this._d.valueOf(),B-=vt(B,1e3)}return this._d.setTime(B),a.updateOffset(this,!0),this},Jt.subtract=rc,Jt.toArray=function _o(){var C=this;return[C.year(),C.month(),C.date(),C.hour(),C.minute(),C.second(),C.millisecond()]},Jt.toObject=function $i(){var C=this;return{years:C.year(),months:C.month(),date:C.date(),hours:C.hours(),minutes:C.minutes(),seconds:C.seconds(),milliseconds:C.milliseconds()}},Jt.toDate=function ao(){return new Date(this.valueOf())},Jt.toISOString=function gc(C){if(!this.isValid())return null;var B=!0!==C,ae=B?this.clone().utc():this;return ae.year()<0||ae.year()>9999?_t(ae,B?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ce(Date.prototype.toISOString)?B?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",_t(ae,"Z")):_t(ae,B?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Jt.inspect=function ic(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var ae,Se,C="moment",B="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",B="Z"),ae="["+C+'("]',Se=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(ae+Se+"-MM-DD[T]HH:mm:ss.SSS"+B+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Jt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Jt.toJSON=function Ii(){return this.isValid()?this.toISOString():null},Jt.toString=function Wc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Jt.unix=function ar(){return Math.floor(this.valueOf()/1e3)},Jt.valueOf=function Kn(){return this._d.valueOf()-6e4*(this._offset||0)},Jt.creationData=function qi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Jt.eraName=function E(){var C,B,ae,Se=this.localeData().eras();for(C=0,B=Se.length;C<B;++C)if(ae=this.clone().startOf("day").valueOf(),Se[C].since<=ae&&ae<=Se[C].until||Se[C].until<=ae&&ae<=Se[C].since)return Se[C].name;return""},Jt.eraNarrow=function V(){var C,B,ae,Se=this.localeData().eras();for(C=0,B=Se.length;C<B;++C)if(ae=this.clone().startOf("day").valueOf(),Se[C].since<=ae&&ae<=Se[C].until||Se[C].until<=ae&&ae<=Se[C].since)return Se[C].narrow;return""},Jt.eraAbbr=function Me(){var C,B,ae,Se=this.localeData().eras();for(C=0,B=Se.length;C<B;++C)if(ae=this.clone().startOf("day").valueOf(),Se[C].since<=ae&&ae<=Se[C].until||Se[C].until<=ae&&ae<=Se[C].since)return Se[C].abbr;return""},Jt.eraYear=function Be(){var C,B,ae,Se,Ke=this.localeData().eras();for(C=0,B=Ke.length;C<B;++C)if(ae=Ke[C].since<=Ke[C].until?1:-1,Se=this.clone().startOf("day").valueOf(),Ke[C].since<=Se&&Se<=Ke[C].until||Ke[C].until<=Se&&Se<=Ke[C].since)return(this.year()-a(Ke[C].since).year())*ae+Ke[C].offset;return this.year()},Jt.year=Yt,Jt.isLeapYear=function $t(){return _i(this.year())},Jt.weekYear=function zr(C){return Ts.call(this,C,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Jt.isoWeekYear=function No(C){return Ts.call(this,C,this.isoWeek(),this.isoWeekday(),1,4)},Jt.quarter=Jt.quarters=function Ki(C){return null==C?Math.ceil((this.month()+1)/3):this.month(3*(C-1)+this.month()%3)},Jt.month=ot,Jt.daysInMonth=function Pt(){return Hr(this.year(),this.month())},Jt.week=Jt.weeks=function Jr(C){var B=this.localeData().week(this);return null==C?B:this.add(7*(C-B),"d")},Jt.isoWeek=Jt.isoWeeks=function gi(C){var B=Mn(this,1,4).week;return null==C?B:this.add(7*(C-B),"d")},Jt.weeksInYear=function ea(){var C=this.localeData()._week;return Yn(this.year(),C.dow,C.doy)},Jt.weeksInWeekYear=function ji(){var C=this.localeData()._week;return Yn(this.weekYear(),C.dow,C.doy)},Jt.isoWeeksInYear=function $o(){return Yn(this.year(),1,4)},Jt.isoWeeksInISOWeekYear=function Ci(){return Yn(this.isoWeekYear(),1,4)},Jt.date=wi,Jt.day=Jt.days=function Fa(C){if(!this.isValid())return null!=C?this:NaN;var B=dn(this,"Day");return null!=C?(C=function Ri(C,B){return"string"!=typeof C?C:isNaN(C)?"number"==typeof(C=B.weekdaysParse(C))?C:null:parseInt(C,10)}(C,this.localeData()),this.add(C-B,"d")):B},Jt.weekday=function va(C){if(!this.isValid())return null!=C?this:NaN;var B=(this.day()+7-this.localeData()._week.dow)%7;return null==C?B:this.add(C-B,"d")},Jt.isoWeekday=function ya(C){if(!this.isValid())return null!=C?this:NaN;if(null!=C){var B=function Qr(C,B){return"string"==typeof C?B.weekdaysParse(C)%7||7:isNaN(C)?null:C}(C,this.localeData());return this.day(this.day()%7?B:B-7)}return this.day()||7},Jt.dayOfYear=function ps(C){var B=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==C?B:this.add(C-B,"d")},Jt.hour=Jt.hours=fe,Jt.minute=Jt.minutes=Ua,Jt.second=Jt.seconds=ka,Jt.millisecond=Jt.milliseconds=_s,Jt.utcOffset=function xa(C,B,ae){var Ke,Se=this._offset||0;if(!this.isValid())return null!=C?this:NaN;if(null!=C){if("string"==typeof C){if(null===(C=Ba(Yo,C)))return this}else Math.abs(C)<16&&!ae&&(C*=60);return!this._isUTC&&B&&(Ke=Ns(this)),this._offset=C,this._isUTC=!0,null!=Ke&&this.add(Ke,"m"),Se!==C&&(!B||this._changeInProgress?So(this,Vi(C-Se,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?Se:Ns(this)},Jt.utc=function Hi(C){return this.utcOffset(0,C)},Jt.local=function ds(C){return this._isUTC&&(this.utcOffset(0,C),this._isUTC=!1,C&&this.subtract(Ns(this),"m")),this},Jt.parseZone=function r1(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var C=Ba(ki,this._i);null!=C?this.utcOffset(C):this.utcOffset(0,!0)}return this},Jt.hasAlignedHourOffset=function Bi(C){return!!this.isValid()&&(C=C?oo(C).utcOffset():0,(this.utcOffset()-C)%60==0)},Jt.isDST=function Hc(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Jt.isLocal=function Ls(){return!!this.isValid()&&!this._isUTC},Jt.isUtcOffset=function Xr(){return!!this.isValid()&&this._isUTC},Jt.isUtc=Mi,Jt.isUTC=Mi,Jt.zoneAbbr=function sc(){return this._isUTC?"UTC":""},Jt.zoneName=function lr(){return this._isUTC?"Coordinated Universal Time":""},Jt.dates=xe("dates accessor is deprecated. Use date instead.",wi),Jt.months=xe("months accessor is deprecated. Use month instead",ot),Jt.years=xe("years accessor is deprecated. Use year instead",Yt),Jt.zone=xe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Zs(C,B){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,B),this):-this.utcOffset()}),Jt.isDSTShifted=xe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Bc(){if(!b(this._isDSTShifted))return this._isDSTShifted;var B,C={};return ce(C,this),(C=Lo(C))._a?(B=C._isUTC?D(C._a):oo(C._a),this._isDSTShifted=this.isValid()&&function n1(C,B,ae){var ln,Se=Math.min(C.length,B.length),Ke=Math.abs(C.length-B.length),Dt=0;for(ln=0;ln<Se;ln++)(ae&&C[ln]!==B[ln]||!ae&&Zn(C[ln])!==Zn(B[ln]))&&Dt++;return Dt+Ke}(C._a,B.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var hn=me.prototype;function Gn(C,B,ae,Se){var Ke=qt(),Dt=D().set(Se,B);return Ke[ae](Dt,C)}function po(C,B,ae){if(k(C)&&(B=C,C=void 0),C=C||"",null!=B)return Gn(C,B,ae,"month");var Se,Ke=[];for(Se=0;Se<12;Se++)Ke[Se]=Gn(C,Se,ae,"month");return Ke}function Wr(C,B,ae,Se){"boolean"==typeof C?(k(B)&&(ae=B,B=void 0),B=B||""):(ae=B=C,C=!1,k(B)&&(ae=B,B=void 0),B=B||"");var ln,Ke=qt(),Dt=C?Ke._week.dow:0,qn=[];if(null!=ae)return Gn(B,(ae+Dt)%7,Se,"day");for(ln=0;ln<7;ln++)qn[ln]=Gn(B,(ln+Dt)%7,Se,"day");return qn}hn.calendar=function we(C,B,ae){var Se=this._calendar[C]||this._calendar.sameElse;return Ce(Se)?Se.call(B,ae):Se},hn.longDateFormat=function fn(C){var B=this._longDateFormat[C],ae=this._longDateFormat[C.toUpperCase()];return B||!ae?B:(this._longDateFormat[C]=ae.match(le).map(function(Se){return"MMMM"===Se||"MM"===Se||"DD"===Se||"dddd"===Se?Se.slice(1):Se}).join(""),this._longDateFormat[C])},hn.invalidDate=function xn(){return this._invalidDate},hn.ordinal=function cn(C){return this._ordinal.replace("%d",C)},hn.preparse=Cn,hn.postformat=Cn,hn.relativeTime=function Tt(C,B,ae,Se){var Ke=this._relativeTime[ae];return Ce(Ke)?Ke(C,B,ae,Se):Ke.replace(/%d/i,C)},hn.pastFuture=function en(C,B){var ae=this._relativeTime[C>0?"future":"past"];return Ce(ae)?ae(B):ae.replace(/%s/i,B)},hn.set=function ie(C){var B,ae;for(ae in C)L(C,ae)&&(Ce(B=C[ae])?this[ae]=B:this["_"+ae]=B);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.eras=function Vn(C,B){var ae,Se,Ke,Dt=this._eras||qt("en")._eras;for(ae=0,Se=Dt.length;ae<Se;++ae)switch("string"==typeof Dt[ae].since&&(Ke=a(Dt[ae].since).startOf("day"),Dt[ae].since=Ke.valueOf()),typeof Dt[ae].until){case"undefined":Dt[ae].until=1/0;break;case"string":Ke=a(Dt[ae].until).startOf("day").valueOf(),Dt[ae].until=Ke.valueOf()}return Dt},hn.erasParse=function q(C,B,ae){var Se,Ke,ln,qn,$n,Dt=this.eras();for(C=C.toUpperCase(),Se=0,Ke=Dt.length;Se<Ke;++Se)if(ln=Dt[Se].name.toUpperCase(),qn=Dt[Se].abbr.toUpperCase(),$n=Dt[Se].narrow.toUpperCase(),ae)switch(B){case"N":case"NN":case"NNN":if(qn===C)return Dt[Se];break;case"NNNN":if(ln===C)return Dt[Se];break;case"NNNNN":if($n===C)return Dt[Se]}else if([ln,qn,$n].indexOf(C)>=0)return Dt[Se]},hn.erasConvertYear=function N(C,B){var ae=C.since<=C.until?1:-1;return void 0===B?a(C.since).year():a(C.since).year()+(B-C.offset)*ae},hn.erasAbbrRegex=function Mt(C){return L(this,"_erasAbbrRegex")||vr.call(this),C?this._erasAbbrRegex:this._erasRegex},hn.erasNameRegex=function ht(C){return L(this,"_erasNameRegex")||vr.call(this),C?this._erasNameRegex:this._erasRegex},hn.erasNarrowRegex=function jt(C){return L(this,"_erasNarrowRegex")||vr.call(this),C?this._erasNarrowRegex:this._erasRegex},hn.months=function bi(C,B){return C?h(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||Ho).test(B)?"format":"standalone"][C.month()]:h(this._months)?this._months:this._months.standalone},hn.monthsShort=function Zi(C,B){return C?h(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[Ho.test(B)?"format":"standalone"][C.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function Po(C,B,ae){var Se,Ke,Dt;if(this._monthsParseExact)return tr.call(this,C,B,ae);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Se=0;Se<12;Se++){if(Ke=D([2e3,Se]),ae&&!this._longMonthsParse[Se]&&(this._longMonthsParse[Se]=new RegExp("^"+this.months(Ke,"").replace(".","")+"$","i"),this._shortMonthsParse[Se]=new RegExp("^"+this.monthsShort(Ke,"").replace(".","")+"$","i")),!ae&&!this._monthsParse[Se]&&(Dt="^"+this.months(Ke,"")+"|^"+this.monthsShort(Ke,""),this._monthsParse[Se]=new RegExp(Dt.replace(".",""),"i")),ae&&"MMMM"===B&&this._longMonthsParse[Se].test(C))return Se;if(ae&&"MMM"===B&&this._shortMonthsParse[Se].test(C))return Se;if(!ae&&this._monthsParse[Se].test(C))return Se}},hn.monthsRegex=function Qt(C){return this._monthsParseExact?(L(this,"_monthsRegex")||qe.call(this),C?this._monthsStrictRegex:this._monthsRegex):(L(this,"_monthsRegex")||(this._monthsRegex=Mo),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function zt(C){return this._monthsParseExact?(L(this,"_monthsRegex")||qe.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(L(this,"_monthsShortRegex")||(this._monthsShortRegex=io),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function Hn(C){return Mn(C,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function bo(){return this._week.doy},hn.firstDayOfWeek=function Co(){return this._week.dow},hn.weekdays=function sa(C,B){var ae=h(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(B)?"format":"standalone"];return!0===C?Bo(ae,this._week.dow):C?ae[C.day()]:ae},hn.weekdaysMin=function Li(C){return!0===C?Bo(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},hn.weekdaysShort=function qo(C){return!0===C?Bo(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},hn.weekdaysParse=function ga(C,B,ae){var Se,Ke,Dt;if(this._weekdaysParseExact)return qr.call(this,C,B,ae);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Se=0;Se<7;Se++){if(Ke=D([2e3,1]).day(Se),ae&&!this._fullWeekdaysParse[Se]&&(this._fullWeekdaysParse[Se]=new RegExp("^"+this.weekdays(Ke,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Se]=new RegExp("^"+this.weekdaysShort(Ke,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Se]=new RegExp("^"+this.weekdaysMin(Ke,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Se]||(Dt="^"+this.weekdays(Ke,"")+"|^"+this.weekdaysShort(Ke,"")+"|^"+this.weekdaysMin(Ke,""),this._weekdaysParse[Se]=new RegExp(Dt.replace(".",""),"i")),ae&&"dddd"===B&&this._fullWeekdaysParse[Se].test(C))return Se;if(ae&&"ddd"===B&&this._shortWeekdaysParse[Se].test(C))return Se;if(ae&&"dd"===B&&this._minWeekdaysParse[Se].test(C))return Se;if(!ae&&this._weekdaysParse[Se].test(C))return Se}},hn.weekdaysRegex=function Ha(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Go.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(L(this,"_weekdaysRegex")||(this._weekdaysRegex=Yi),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function ii(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Go.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(L(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ci),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function Fi(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Go.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(L(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=aa),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function Wi(C){return"p"===(C+"").toLowerCase().charAt(0)},hn.meridiem=function lt(C,B,ae){return C>11?ae?"pm":"PM":ae?"am":"AM"},mt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(C){var B=C%10;return C+(1===Zn(C%100/10)?"th":1===B?"st":2===B?"nd":3===B?"rd":"th")}}),a.lang=xe("moment.lang is deprecated. Use moment.locale instead.",mt),a.langData=xe("moment.langData is deprecated. Use moment.localeData instead.",qt);var vs=Math.abs;function D3(C,B,ae,Se){var Ke=Vi(B,ae);return C._milliseconds+=Se*Ke._milliseconds,C._days+=Se*Ke._days,C._months+=Se*Ke._months,C._bubble()}function L0(C){return C<0?Math.floor(C):Math.ceil(C)}function O3(C){return 4800*C/146097}function ir(C){return 146097*C/4800}function Ei(C){return function(){return this.as(C)}}var xs=Ei("ms"),lc=Ei("s"),L1=Ei("m"),B2=Ei("h"),I3=Ei("d"),A3=Ei("w"),Pa=Ei("M"),j2=Ei("Q"),f2=Ei("y"),S0=xs;function Mc(C){return function(){return this.isValid()?this._data[C]:NaN}}var Qe=Mc("milliseconds"),G1=Mc("seconds"),W2=Mc("minutes"),Rs=Mc("hours"),ta=Mc("days"),Va=Mc("months"),ys=Mc("years");var Ys=Math.round,La={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bl(C,B,ae,Se,Ke){return Ke.relativeTime(B||1,!!ae,C,Se)}var Hs=Math.abs;function xi(C){return(C>0)-(C<0)||+C}function Ga(){if(!this.isValid())return this.localeData().invalidDate();var Se,Ke,Dt,ln,$n,to,es,ks,C=Hs(this._milliseconds)/1e3,B=Hs(this._days),ae=Hs(this._months),qn=this.asSeconds();return qn?(Se=br(C/60),Ke=br(Se/60),C%=60,Se%=60,Dt=br(ae/12),ae%=12,ln=C?C.toFixed(3).replace(/\.?0+$/,""):"",$n=qn<0?"-":"",to=xi(this._months)!==xi(qn)?"-":"",es=xi(this._days)!==xi(qn)?"-":"",ks=xi(this._milliseconds)!==xi(qn)?"-":"",$n+"P"+(Dt?to+Dt+"Y":"")+(ae?to+ae+"M":"")+(B?es+B+"D":"")+(Ke||Se||C?"T":"")+(Ke?ks+Ke+"H":"")+(Se?ks+Se+"M":"")+(C?ks+ln+"S":"")):"P0D"}var wn=Xs.prototype;return wn.isValid=function ai(){return this._isValid},wn.abs=function H2(){var C=this._data;return this._milliseconds=vs(this._milliseconds),this._days=vs(this._days),this._months=vs(this._months),C.milliseconds=vs(C.milliseconds),C.seconds=vs(C.seconds),C.minutes=vs(C.minutes),C.hours=vs(C.hours),C.months=vs(C.months),C.years=vs(C.years),this},wn.add=function b0(C,B){return D3(this,C,B,1)},wn.subtract=function B4(C,B){return D3(this,C,B,-1)},wn.as=function Es(C){if(!this.isValid())return NaN;var B,ae,Se=this._milliseconds;if("month"===(C=or(C))||"quarter"===C||"year"===C)switch(B=this._days+Se/864e5,ae=this._months+O3(B),C){case"month":return ae;case"quarter":return ae/3;case"year":return ae/12}else switch(B=this._days+Math.round(ir(this._months)),C){case"week":return B/7+Se/6048e5;case"day":return B+Se/864e5;case"hour":return 24*B+Se/36e5;case"minute":return 1440*B+Se/6e4;case"second":return 86400*B+Se/1e3;case"millisecond":return Math.floor(864e5*B)+Se;default:throw new Error("Unknown unit "+C)}},wn.asMilliseconds=xs,wn.asSeconds=lc,wn.asMinutes=L1,wn.asHours=B2,wn.asDays=I3,wn.asWeeks=A3,wn.asMonths=Pa,wn.asQuarters=j2,wn.asYears=f2,wn.valueOf=S0,wn._bubble=function P3(){var Ke,Dt,ln,qn,$n,C=this._milliseconds,B=this._days,ae=this._months,Se=this._data;return C>=0&&B>=0&&ae>=0||C<=0&&B<=0&&ae<=0||(C+=864e5*L0(ir(ae)+B),B=0,ae=0),Se.milliseconds=C%1e3,Ke=br(C/1e3),Se.seconds=Ke%60,Dt=br(Ke/60),Se.minutes=Dt%60,ln=br(Dt/60),Se.hours=ln%24,B+=br(ln/24),ae+=$n=br(O3(B)),B-=L0(ir($n)),qn=br(ae/12),ae%=12,Se.days=B,Se.months=ae,Se.years=qn,this},wn.clone=function V1(){return Vi(this)},wn.get=function qa(C){return C=or(C),this.isValid()?this[C+"s"]():NaN},wn.milliseconds=Qe,wn.seconds=G1,wn.minutes=W2,wn.hours=Rs,wn.days=ta,wn.weeks=function Qs(){return br(this.days()/7)},wn.months=Va,wn.years=ys,wn.humanize=function Fs(C,B){if(!this.isValid())return this.localeData().invalidDate();var Ke,Dt,ae=!1,Se=La;return"object"==typeof C&&(B=C,C=!1),"boolean"==typeof C&&(ae=C),"object"==typeof B&&(Se=Object.assign({},La,B),null!=B.s&&null==B.ss&&(Se.ss=B.s-1)),Dt=function Gc(C,B,ae,Se){var Ke=Vi(C).abs(),Dt=Ys(Ke.as("s")),ln=Ys(Ke.as("m")),qn=Ys(Ke.as("h")),$n=Ys(Ke.as("d")),to=Ys(Ke.as("M")),es=Ys(Ke.as("w")),ks=Ys(Ke.as("y")),Cc=Dt<=ae.ss&&["s",Dt]||Dt<ae.s&&["ss",Dt]||ln<=1&&["m"]||ln<ae.m&&["mm",ln]||qn<=1&&["h"]||qn<ae.h&&["hh",qn]||$n<=1&&["d"]||$n<ae.d&&["dd",$n];return null!=ae.w&&(Cc=Cc||es<=1&&["w"]||es<ae.w&&["ww",es]),(Cc=Cc||to<=1&&["M"]||to<ae.M&&["MM",to]||ks<=1&&["y"]||["yy",ks])[2]=B,Cc[3]=+C>0,Cc[4]=Se,bl.apply(null,Cc)}(this,!ae,Se,Ke=this.localeData()),ae&&(Dt=Ke.pastFuture(+this,Dt)),Ke.postformat(Dt)},wn.toISOString=Ga,wn.toString=Ga,wn.toJSON=Ga,wn.locale=yc,wn.localeData=ms,wn.toIsoString=xe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ga),wn.lang=ti,ye("X",0,0,"unix"),ye("x",0,0,"valueOf"),vn("x",mo),vn("X",/[+-]?\d+(\.\d{1,3})?/),fr("X",function(C,B,ae){ae._d=new Date(1e3*parseFloat(C))}),fr("x",function(C,B,ae){ae._d=new Date(Zn(C))}),a.version="2.30.1",function g(C){o=C}(oo),a.fn=Jt,a.min=function ho(){return at("isBefore",[].slice.call(arguments,0))},a.max=function Ks(){return at("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=D,a.unix=function pr(C){return oo(1e3*C)},a.months=function cc(C,B){return po(C,B,"months")},a.isDate=F,a.locale=mt,a.invalid=ee,a.duration=Vi,a.isMoment=te,a.weekdays=function ba(C,B,ae){return Wr(C,B,ae,"weekdays")},a.parseZone=function so(){return oo.apply(null,arguments).parseZone()},a.localeData=qt,a.isDuration=us,a.monthsShort=function c1(C,B){return po(C,B,"monthsShort")},a.weekdaysMin=function _r(C,B,ae){return Wr(C,B,ae,"weekdaysMin")},a.defineLocale=Rt,a.updateLocale=function Xt(C,B){if(null!=B){var ae,Se,Ke=P;null!=Q[C]&&null!=Q[C].parentLocale?Q[C].set(se(Q[C]._config,B)):(null!=(Se=bt(C))&&(Ke=Se._config),B=se(Ke,B),null==Se&&(B.abbr=C),(ae=new me(B)).parentLocale=Q[C],Q[C]=ae),mt(C)}else null!=Q[C]&&(null!=Q[C].parentLocale?(Q[C]=Q[C].parentLocale,C===mt()&&mt(C)):null!=Q[C]&&delete Q[C]);return Q[C]},a.locales=function Sn(){return Ne(Q)},a.weekdaysShort=function Vc(C,B,ae){return Wr(C,B,ae,"weekdaysShort")},a.normalizeUnits=or,a.relativeTimeRounding=function kt(C){return void 0===C?Ys:"function"==typeof C&&(Ys=C,!0)},a.relativeTimeThreshold=function Oa(C,B){return void 0!==La[C]&&(void 0===B?La[C]:(La[C]=B,"s"===C&&(La.ss=B-1),!0))},a.calendarFormat=function Ss(C,B){var ae=C.diff(B,"days",!0);return ae<-6?"sameElse":ae<-1?"lastWeek":ae<0?"lastDay":ae<1?"sameDay":ae<2?"nextDay":ae<7?"nextWeek":"sameElse"},a.prototype=Jt,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()},3035:(Ge,$,f)=>{f.d($,{ro:()=>Cc,rK:()=>W4,I2:()=>j4});var o=f(45449),a=f(90944),g=f(591),h=f(8929),m=f(36787),L=f(26232),v=f(22868),b=f(80013),k=f(75778),F=f(92198),Y=f(7625),I=f(37340);class D extends Error{}class j extends D{constructor(w){super(`Invalid DateTime: ${w.toMessage()}`)}}class W extends D{constructor(w){super(`Invalid Interval: ${w.toMessage()}`)}}class de extends D{constructor(w){super(`Invalid Duration: ${w.toMessage()}`)}}class K extends D{}class ee extends D{constructor(w){super(`Invalid unit ${w}`)}}class De extends D{}class Te extends D{constructor(){super("Zone is an abstract class")}}const ce="numeric",oe="short",te="long",ge={year:ce,month:ce,day:ce},xe={year:ce,month:oe,day:ce},he={year:ce,month:oe,day:ce,weekday:oe},Le={year:ce,month:te,day:ce},Ce={year:ce,month:te,day:ce,weekday:te},ie={hour:ce,minute:ce},se={hour:ce,minute:ce,second:ce},me={hour:ce,minute:ce,second:ce,timeZoneName:oe},Ne={hour:ce,minute:ce,second:ce,timeZoneName:te},_e={hour:ce,minute:ce,hourCycle:"h23"},we={hour:ce,minute:ce,second:ce,hourCycle:"h23"},Ee={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:oe},le={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:te},Ue={year:ce,month:ce,day:ce,hour:ce,minute:ce},ke={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},ze={year:ce,month:oe,day:ce,hour:ce,minute:ce},ye={year:ce,month:oe,day:ce,hour:ce,minute:ce,second:ce},je={year:ce,month:oe,day:ce,weekday:oe,hour:ce,minute:ce},Ze={year:ce,month:te,day:ce,hour:ce,minute:ce,timeZoneName:oe},_t={year:ce,month:te,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:oe},At={year:ce,month:te,day:ce,weekday:te,hour:ce,minute:ce,timeZoneName:te},Vt={year:ce,month:te,day:ce,weekday:te,hour:ce,minute:ce,second:ce,timeZoneName:te};class fn{get type(){throw new Te}get name(){throw new Te}get ianaName(){return this.name}get isUniversal(){throw new Te}offsetName(w,S){throw new Te}formatOffset(w,S){throw new Te}offset(w){throw new Te}equals(w){throw new Te}get isValid(){throw new Te}}let mn=null;class xn extends fn{static get instance(){return null===mn&&(mn=new xn),mn}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(w,{format:S,locale:H}){return Yi(w,S,H)}formatOffset(w,S){return qo(this.offset(w),S)}offset(w){return-new Date(w).getTimezoneOffset()}equals(w){return"system"===w.type}get isValid(){return!0}}const gn=new Map,cn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},en=new Map;class Gt extends fn{static create(w){let S=en.get(w);return void 0===S&&en.set(w,S=new Gt(w)),S}static resetCache(){en.clear(),gn.clear()}static isValidSpecifier(w){return this.isValidZone(w)}static isValidZone(w){if(!w)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:w}).format(),!0}catch{return!1}}constructor(w){super(),this.zoneName=w,this.valid=Gt.isValidZone(w)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(w,{format:S,locale:H}){return Yi(w,S,H,this.name)}formatOffset(w,S){return qo(this.offset(w),S)}offset(w){if(!this.valid)return NaN;const S=new Date(w);if(isNaN(S))return NaN;const H=function Et(z){let w=gn.get(z);return void 0===w&&(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:z,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),gn.set(z,w)),w}(this.name);let[pe,He,St,Nt,Ut,An,zn]=H.formatToParts?function Tt(z,w){const S=z.formatToParts(w),H=[];for(let pe=0;pe<S.length;pe++){const{type:He,value:St}=S[pe],Nt=cn[He];"era"===He?H[Nt]=St:tr(Nt)||(H[Nt]=parseInt(St,10))}return H}(H,S):function ft(z,w){const S=z.format(w).replace(/\u200E/g,""),H=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(S),[,pe,He,St,Nt,Ut,An,zn]=H;return[St,pe,He,Nt,Ut,An,zn]}(H,S);"BC"===Nt&&(pe=1-Math.abs(pe));let Fr=+S;const la=Fr%1e3;return Fr-=la>=0?la:1e3+la,(Bo({year:pe,month:He,day:St,hour:24===Ut?0:Ut,minute:An,second:zn,millisecond:0})-Fr)/6e4}equals(w){return"iana"===w.type&&w.name===this.name}get isValid(){return this.valid}}let or={};const wr=new Map;function dr(z,w={}){const S=JSON.stringify([z,w]);let H=wr.get(S);return void 0===H&&(H=new Intl.DateTimeFormat(z,w),wr.set(S,H)),H}const er=new Map,Er=new Map;let Gr=null;const Pr=new Map;function jr(z){let w=Pr.get(z);return void 0===w&&(w=new Intl.DateTimeFormat(z).resolvedOptions(),Pr.set(z,w)),w}const Nr=new Map;function Yo(z,w,S,H){const pe=z.listingMode();return"error"===pe?null:"en"===pe?S(w):H(w)}class wo{constructor(w,S,H){this.padTo=H.padTo||0,this.floor=H.floor||!1;const{padTo:pe,floor:He,...St}=H;if(!S||Object.keys(St).length>0){const Nt={useGrouping:!1,...H};H.padTo>0&&(Nt.minimumIntegerDigits=H.padTo),this.inf=function Jn(z,w={}){const S=JSON.stringify([z,w]);let H=er.get(S);return void 0===H&&(H=new Intl.NumberFormat(z,w),er.set(S,H)),H}(w,Nt)}}format(w){if(this.inf){const S=this.floor?Math.floor(w):w;return this.inf.format(S)}return Hn(this.floor?Math.floor(w):Jr(w,3),this.padTo)}}class $r{constructor(w,S,H){let pe;if(this.opts=H,this.originalZone=void 0,this.opts.timeZone)this.dt=w;else if("fixed"===w.zone.type){const St=w.offset/60*-1,Nt=St>=0?`Etc/GMT+${St}`:`Etc/GMT${St}`;0!==w.offset&&Gt.create(Nt).valid?(pe=Nt,this.dt=w):(pe="UTC",this.dt=0===w.offset?w:w.setZone("UTC").plus({minutes:w.offset}),this.originalZone=w.zone)}else"system"===w.zone.type?this.dt=w:"iana"===w.zone.type?(this.dt=w,pe=w.zone.name):(pe="UTC",this.dt=w.setZone("UTC").plus({minutes:w.offset}),this.originalZone=w.zone);const He={...this.opts};He.timeZone=He.timeZone||pe,this.dtf=dr(S,He)}format(){return this.originalZone?this.formatToParts().map(({value:w})=>w).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const w=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?w.map(S=>{if("timeZoneName"===S.type){const H=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...S,value:H}}return S}):w}resolvedOptions(){return this.dtf.resolvedOptions()}}class hi{constructor(w,S,H){this.opts={style:"long",...H},!S&&zt()&&(this.rtf=function lo(z,w={}){const{base:S,...H}=w,pe=JSON.stringify([z,H]);let He=Er.get(pe);return void 0===He&&(He=new Intl.RelativeTimeFormat(z,w),Er.set(pe,He)),He}(w,H))}format(w,S){return this.rtf?this.rtf.format(w,S):function Q(z,w,S="always",H=!1){const pe={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},He=-1===["hours","minutes","seconds"].indexOf(z);if("auto"===S&&He){const no="days"===z;switch(w){case 1:return no?"tomorrow":`next ${pe[z][0]}`;case-1:return no?"yesterday":`last ${pe[z][0]}`;case 0:return no?"today":`this ${pe[z][0]}`}}const St=Object.is(w,-0)||w<0,Nt=Math.abs(w),Ut=1===Nt,An=pe[z],zn=H?Ut?An[1]:An[2]||An[1]:Ut?pe[z][0]:z;return St?`${Nt} ${zn} ago`:`in ${Nt} ${zn}`}(S,w,this.opts.numeric,"long"!==this.opts.style)}formatToParts(w,S){return this.rtf?this.rtf.formatToParts(w,S):[]}}const mi={firstDay:1,minimalDays:4,weekend:[6,7]};class vn{static fromOpts(w){return vn.create(w.locale,w.numberingSystem,w.outputCalendar,w.weekSettings,w.defaultToEN)}static create(w,S,H,pe,He=!1){const St=w||rt.defaultLocale,Nt=St||(He?"en-US":function Qn(){return Gr||(Gr=(new Intl.DateTimeFormat).resolvedOptions().locale,Gr)}()),Ut=S||rt.defaultNumberingSystem,An=H||rt.defaultOutputCalendar,zn=on(pe)||rt.defaultWeekSettings;return new vn(Nt,Ut,An,zn,St)}static resetCache(){Gr=null,wr.clear(),er.clear(),Er.clear(),Pr.clear(),Nr.clear()}static fromObject({locale:w,numberingSystem:S,outputCalendar:H,weekSettings:pe}={}){return vn.create(w,S,H,pe)}constructor(w,S,H,pe,He){const[St,Nt,Ut]=function Zr(z){const w=z.indexOf("-x-");-1!==w&&(z=z.substring(0,w));const S=z.indexOf("-u-");if(-1===S)return[z];{let H,pe;try{H=dr(z).resolvedOptions(),pe=z}catch{const Ut=z.substring(0,S);H=dr(Ut).resolvedOptions(),pe=Ut}const{numberingSystem:He,calendar:St}=H;return[pe,He,St]}}(w);this.locale=St,this.numberingSystem=S||Nt||null,this.outputCalendar=H||Ut||null,this.weekSettings=pe,this.intl=function ro(z,w,S){return(S||w)&&(z.includes("-u-")||(z+="-u"),S&&(z+=`-ca-${S}`),w&&(z+=`-nu-${w}`)),z}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=He,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Ko(z){return(!z.numberingSystem||"latn"===z.numberingSystem)&&("latn"===z.numberingSystem||!z.locale||z.locale.startsWith("en")||"latn"===jr(z.locale).numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(w){return w&&0!==Object.getOwnPropertyNames(w).length?vn.create(w.locale||this.specifiedLocale,w.numberingSystem||this.numberingSystem,w.outputCalendar||this.outputCalendar,on(w.weekSettings)||this.weekSettings,w.defaultToEN||!1):this}redefaultToEN(w={}){return this.clone({...w,defaultToEN:!0})}redefaultToSystem(w={}){return this.clone({...w,defaultToEN:!1})}months(w,S=!1){return Yo(this,w,ya,()=>{const H="ja"===this.intl||this.intl.startsWith("ja-"),pe=(S&=!H)?{month:w,day:"numeric"}:{month:w},He=S?"format":"standalone";return this.monthsCache[He][w]||(this.monthsCache[He][w]=function mo(z){const w=[];for(let S=1;S<=12;S++){const H=E.utc(2009,S,1);w.push(z(H))}return w}(H?Nt=>this.dtFormatter(Nt,pe).format():Nt=>this.extract(Nt,pe,"month"))),this.monthsCache[He][w]})}weekdays(w,S=!1){return Yo(this,w,Go,()=>{const H=S?{weekday:w,year:"numeric",month:"long",day:"numeric"}:{weekday:w},pe=S?"format":"standalone";return this.weekdaysCache[pe][w]||(this.weekdaysCache[pe][w]=function ki(z){const w=[];for(let S=1;S<=7;S++){const H=E.utc(2016,11,13+S);w.push(z(H))}return w}(He=>this.extract(He,H,"weekday"))),this.weekdaysCache[pe][w]})}meridiems(){return Yo(this,void 0,()=>Xo,()=>{if(!this.meridiemCache){const w={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[E.utc(2016,11,13,9),E.utc(2016,11,13,19)].map(S=>this.extract(S,w,"dayperiod"))}return this.meridiemCache})}eras(w){return Yo(this,w,Wi,()=>{const S={era:w};return this.eraCache[w]||(this.eraCache[w]=[E.utc(-40,1,1),E.utc(2017,1,1)].map(H=>this.extract(H,S,"era"))),this.eraCache[w]})}extract(w,S,H){const St=this.dtFormatter(w,S).formatToParts().find(Nt=>Nt.type.toLowerCase()===H);return St?St.value:null}numberFormatter(w={}){return new wo(this.intl,w.forceSimple||this.fastNumbers,w)}dtFormatter(w,S={}){return new $r(w,this.intl,S)}relFormatter(w={}){return new hi(this.intl,this.isEnglish(),w)}listFormatter(w={}){return function Cr(z,w={}){const S=JSON.stringify([z,w]);let H=or[S];return H||(H=new Intl.ListFormat(z,w),or[S]=H),H}(this.intl,w)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||jr(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Qt()?function go(z){let w=Nr.get(z);if(!w){const S=new Intl.Locale(z);w="getWeekInfo"in S?S.getWeekInfo():S.weekInfo,"minimalDays"in w||(w={...mi,...w}),Nr.set(z,w)}return w}(this.locale):mi}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(w){return this.locale===w.locale&&this.numberingSystem===w.numberingSystem&&this.outputCalendar===w.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Eo=null;class Ur extends fn{static get utcInstance(){return null===Eo&&(Eo=new Ur(0)),Eo}static instance(w){return 0===w?Ur.utcInstance:new Ur(w)}static parseSpecifier(w){if(w){const S=w.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(S)return new Ur(ci(S[1],S[2]))}return null}constructor(w){super(),this.fixed=w}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${qo(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${qo(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(w,S){return qo(this.fixed,S)}get isUniversal(){return!0}offset(){return this.fixed}equals(w){return"fixed"===w.type&&w.fixed===this.fixed}get isValid(){return!0}}class vo extends fn{constructor(w){super(),this.zoneName=w}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function br(z,w){if(tr(z)||null===z)return w;if(z instanceof fn)return z;if(function ot(z){return"string"==typeof z}(z)){const H=z.toLowerCase();return"default"===H?w:"local"===H||"system"===H?xn.instance:"utc"===H||"gmt"===H?Ur.utcInstance:Ur.parseSpecifier(H)||Gt.create(z)}return Po(z)?Ur.instance(z):"object"==typeof z&&"offset"in z&&"function"==typeof z.offset?z:new vo(z)}const Zn={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},uo={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fr=Zn.hanidec.replace(/[\[|\]]/g,"").split(""),Fo=new Map;function xr({numberingSystem:z},w=""){const S=z||"latn";let H=Fo.get(S);void 0===H&&(H=new Map,Fo.set(S,H));let pe=H.get(w);return void 0===pe&&(pe=new RegExp(`${Zn[S]}${w}`),H.set(w,pe)),pe}let ct,It=()=>Date.now(),ut="system",nt=null,Ot=null,Zt=null,jn=60,xt=null;class rt{static get now(){return It}static set now(w){It=w}static set defaultZone(w){ut=w}static get defaultZone(){return br(ut,xn.instance)}static get defaultLocale(){return nt}static set defaultLocale(w){nt=w}static get defaultNumberingSystem(){return Ot}static set defaultNumberingSystem(w){Ot=w}static get defaultOutputCalendar(){return Zt}static set defaultOutputCalendar(w){Zt=w}static get defaultWeekSettings(){return xt}static set defaultWeekSettings(w){xt=on(w)}static get twoDigitCutoffYear(){return jn}static set twoDigitCutoffYear(w){jn=w%100}static get throwOnInvalid(){return ct}static set throwOnInvalid(w){ct=w}static resetCaches(){vn.resetCache(),Gt.resetCache(),E.resetCache(),function _i(){Fo.clear()}()}}class Yt{constructor(w,S){this.reason=w,this.explanation=S}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const $t=[0,31,59,90,120,151,181,212,243,273,304,334],Wt=[0,31,60,91,121,152,182,213,244,274,305,335];function dn(z,w){return new Yt("unit out of range",`you specified ${w} (of type ${typeof w}) as a ${z}, which is invalid`)}function un(z,w,S){const H=new Date(Date.UTC(z,w-1,S));z<100&&z>=0&&H.setUTCFullYear(H.getUTCFullYear()-1900);const pe=H.getUTCDay();return 0===pe?7:pe}function Pn(z,w,S){return S+(gi(z)?Wt:$t)[w-1]}function On(z,w){const S=gi(z)?Wt:$t,H=S.findIndex(He=>He<w);return{month:H+1,day:w-S[H]}}function In(z,w){return(z-w+7)%7+1}function Fn(z,w=4,S=1){const{year:H,month:pe,day:He}=z,St=Pn(H,pe,He),Nt=In(un(H,pe,He),S);let An,Ut=Math.floor((St-Nt+14-w)/7);return Ut<1?(An=H-1,Ut=Di(An,w,S)):Ut>Di(H,w,S)?(An=H+1,Ut=1):An=H,{weekYear:An,weekNumber:Ut,weekday:Nt,...Li(z)}}function Hr(z,w=4,S=1){const{weekYear:H,weekNumber:pe,weekday:He}=z,St=In(un(H,1,w),S),Nt=Ri(H);let An,Ut=7*pe+He-St-7+w;Ut<1?(An=H-1,Ut+=Ri(An)):Ut>Nt?(An=H+1,Ut-=Ri(H)):An=H;const{month:zn,day:no}=On(An,Ut);return{year:An,month:zn,day:no,...Li(z)}}function xo(z){const{year:w,month:S,day:H}=z;return{year:w,ordinal:Pn(w,S,H),...Li(z)}}function yo(z){const{year:w,ordinal:S}=z,{month:H,day:pe}=On(w,S);return{year:w,month:H,day:pe,...Li(z)}}function Ho(z,w){if(tr(z.localWeekday)&&tr(z.localWeekNumber)&&tr(z.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!tr(z.weekday)||!tr(z.weekNumber)||!tr(z.weekYear))throw new K("Cannot mix locale-based week fields with ISO-based week fields");return tr(z.localWeekday)||(z.weekday=z.localWeekday),tr(z.localWeekNumber)||(z.weekNumber=z.localWeekNumber),tr(z.localWeekYear)||(z.weekYear=z.localWeekYear),delete z.localWeekday,delete z.localWeekNumber,delete z.localWeekYear,{minDaysInFirstWeek:w.getMinDaysInFirstWeek(),startOfWeek:w.getStartOfWeek()}}function bi(z){const w=We(z.year),S=Mn(z.month,1,12),H=Mn(z.day,1,Qr(z.year,z.month));return w?S?!H&&dn("day",z.day):dn("month",z.month):dn("year",z.year)}function Zi(z){const{hour:w,minute:S,second:H,millisecond:pe}=z,He=Mn(w,0,23)||24===w&&0===S&&0===H&&0===pe,St=Mn(S,0,59),Nt=Mn(H,0,59),Ut=Mn(pe,0,999);return He?St?Nt?!Ut&&dn("millisecond",pe):dn("second",H):dn("minute",S):dn("hour",w)}function tr(z){return typeof z>"u"}function Po(z){return"number"==typeof z}function We(z){return"number"==typeof z&&z%1==0}function zt(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Qt(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function wt(z,w,S){if(0!==z.length)return z.reduce((H,pe)=>{const He=[w(pe),pe];return H&&S(H[0],He[0])===H[0]?H:He},null)[1]}function Kt(z,w){return Object.prototype.hasOwnProperty.call(z,w)}function on(z){if(null==z)return null;if("object"!=typeof z)throw new De("Week settings must be an object");if(!Mn(z.firstDay,1,7)||!Mn(z.minimalDays,1,7)||!Array.isArray(z.weekend)||z.weekend.some(w=>!Mn(w,1,7)))throw new De("Invalid week settings");return{firstDay:z.firstDay,minimalDays:z.minimalDays,weekend:Array.from(z.weekend)}}function Mn(z,w,S){return We(z)&&z>=w&&z<=S}function Hn(z,w=2){let H;return H=z<0?"-"+(""+-z).padStart(w,"0"):(""+z).padStart(w,"0"),H}function Sr(z){if(!tr(z)&&null!==z&&""!==z)return parseInt(z,10)}function Co(z){if(!tr(z)&&null!==z&&""!==z)return parseFloat(z)}function bo(z){if(!tr(z)&&null!==z&&""!==z){const w=1e3*parseFloat("0."+z);return Math.floor(w)}}function Jr(z,w,S="round"){const H=10**w;switch(S){case"expand":return z>0?Math.ceil(z*H)/H:Math.floor(z*H)/H;case"trunc":return Math.trunc(z*H)/H;case"round":return Math.round(z*H)/H;case"floor":return Math.floor(z*H)/H;case"ceil":return Math.ceil(z*H)/H;default:throw new RangeError(`Value rounding ${S} is out of range`)}}function gi(z){return z%4==0&&(z%100!=0||z%400==0)}function Ri(z){return gi(z)?366:365}function Qr(z,w){const S=function Yn(z,w){return z-w*Math.floor(z/w)}(w-1,12)+1;return 2===S?gi(z+(w-S)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][S-1]}function Bo(z){let w=Date.UTC(z.year,z.month-1,z.day,z.hour,z.minute,z.second,z.millisecond);return z.year<100&&z.year>=0&&(w=new Date(w),w.setUTCFullYear(z.year,z.month-1,z.day)),+w}function _a(z,w,S){return-In(un(z,1,w),S)+w-1}function Di(z,w=4,S=1){const H=_a(z,w,S),pe=_a(z+1,w,S);return(Ri(z)-H+pe)/7}function vi(z){return z>99?z:z>rt.twoDigitCutoffYear?1900+z:2e3+z}function Yi(z,w,S,H=null){const pe=new Date(z),He={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};H&&(He.timeZone=H);const St={timeZoneName:w,...He},Nt=new Intl.DateTimeFormat(S,St).formatToParts(pe).find(Ut=>"timezonename"===Ut.type.toLowerCase());return Nt?Nt.value:null}function ci(z,w){let S=parseInt(z,10);Number.isNaN(S)&&(S=0);const H=parseInt(w,10)||0;return 60*S+(S<0||Object.is(S,-0)?-H:H)}function aa(z){const w=Number(z);if("boolean"==typeof z||""===z||!Number.isFinite(w))throw new De(`Invalid unit value ${z}`);return w}function sa(z,w){const S={};for(const H in z)if(Kt(z,H)){const pe=z[H];if(null==pe)continue;S[w(H)]=aa(pe)}return S}function qo(z,w){const S=Math.trunc(Math.abs(z/60)),H=Math.trunc(Math.abs(z%60)),pe=z>=0?"+":"-";switch(w){case"short":return`${pe}${Hn(S,2)}:${Hn(H,2)}`;case"narrow":return`${pe}${S}${H>0?`:${H}`:""}`;case"techie":return`${pe}${Hn(S,2)}${Hn(H,2)}`;default:throw new RangeError(`Value format ${w} is out of range for property format`)}}function Li(z){return function Ht(z,w){return w.reduce((S,H)=>(S[H]=z[H],S),{})}(z,["hour","minute","second","millisecond"])}const ga=["January","February","March","April","May","June","July","August","September","October","November","December"],Fa=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],va=["J","F","M","A","M","J","J","A","S","O","N","D"];function ya(z){switch(z){case"narrow":return[...va];case"short":return[...Fa];case"long":return[...ga];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ha=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ii=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Fi=["M","T","W","T","F","S","S"];function Go(z){switch(z){case"narrow":return[...Fi];case"short":return[...ii];case"long":return[...Ha];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Xo=["AM","PM"],Xa=["Before Christ","Anno Domini"],Si=["BC","AD"],Ji=["B","A"];function Wi(z){switch(z){case"narrow":return[...Ji];case"short":return[...Si];case"long":return[...Xa];default:return null}}function Ve(z,w){let S="";for(const H of z)S+=H.literal?H.val:w(H.val);return S}const Z={D:ge,DD:xe,DDD:Le,DDDD:Ce,t:ie,tt:se,ttt:me,tttt:Ne,T:_e,TT:we,TTT:Ee,TTTT:le,f:Ue,ff:ze,fff:Ze,ffff:At,F:ke,FF:ye,FFF:_t,FFFF:Vt};class re{static create(w,S={}){return new re(w,S)}static parseFormat(w){let S=null,H="",pe=!1;const He=[];for(let St=0;St<w.length;St++){const Nt=w.charAt(St);"'"===Nt?((H.length>0||pe)&&He.push({literal:pe||/^\s+$/.test(H),val:""===H?"'":H}),S=null,H="",pe=!pe):pe||Nt===S?H+=Nt:(H.length>0&&He.push({literal:/^\s+$/.test(H),val:H}),H=Nt,S=Nt)}return H.length>0&&He.push({literal:pe||/^\s+$/.test(H),val:H}),He}static macroTokenToFormatOpts(w){return Z[w]}constructor(w,S){this.opts=S,this.loc=w,this.systemLoc=null}formatWithSystemDefault(w,S){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(w,{...this.opts,...S}).format()}dtFormatter(w,S={}){return this.loc.dtFormatter(w,{...this.opts,...S})}formatDateTime(w,S){return this.dtFormatter(w,S).format()}formatDateTimeParts(w,S){return this.dtFormatter(w,S).formatToParts()}formatInterval(w,S){return this.dtFormatter(w.start,S).dtf.formatRange(w.start.toJSDate(),w.end.toJSDate())}resolvedOptions(w,S){return this.dtFormatter(w,S).resolvedOptions()}num(w,S=0,H){if(this.opts.forceSimple)return Hn(w,S);const pe={...this.opts};return S>0&&(pe.padTo=S),H&&(pe.signDisplay=H),this.loc.numberFormatter(pe).format(w)}formatDateTimeFromString(w,S){const H="en"===this.loc.listingMode(),pe=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,He=(Fr,la)=>this.loc.extract(w,Fr,la),St=Fr=>w.isOffsetFixed&&0===w.offset&&Fr.allowZ?"Z":w.isValid?w.zone.formatOffset(w.ts,Fr.format):"",Ut=(Fr,la)=>H?function lt(z,w){return ya(w)[z.month-1]}(w,Fr):He(la?{month:Fr}:{month:Fr,day:"numeric"},"month"),An=(Fr,la)=>H?function fe(z,w){return Go(w)[z.weekday-1]}(w,Fr):He(la?{weekday:Fr}:{weekday:Fr,month:"long",day:"numeric"},"weekday"),zn=Fr=>{const la=re.macroTokenToFormatOpts(Fr);return la?this.formatWithSystemDefault(w,la):Fr},no=Fr=>H?function P(z,w){return Wi(w)[z.year<0?0:1]}(w,Fr):He({era:Fr},"era");return Ve(re.parseFormat(S),Fr=>{switch(Fr){case"S":return this.num(w.millisecond);case"u":case"SSS":return this.num(w.millisecond,3);case"s":return this.num(w.second);case"ss":return this.num(w.second,2);case"uu":return this.num(Math.floor(w.millisecond/10),2);case"uuu":return this.num(Math.floor(w.millisecond/100));case"m":return this.num(w.minute);case"mm":return this.num(w.minute,2);case"h":return this.num(w.hour%12==0?12:w.hour%12);case"hh":return this.num(w.hour%12==0?12:w.hour%12,2);case"H":return this.num(w.hour);case"HH":return this.num(w.hour,2);case"Z":return St({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return St({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return St({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return w.zone.offsetName(w.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return w.zone.offsetName(w.ts,{format:"long",locale:this.loc.locale});case"z":return w.zoneName;case"a":return H?function Za(z){return Xo[z.hour<12?0:1]}(w):He({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return pe?He({day:"numeric"},"day"):this.num(w.day);case"dd":return pe?He({day:"2-digit"},"day"):this.num(w.day,2);case"c":case"E":return this.num(w.weekday);case"ccc":return An("short",!0);case"cccc":return An("long",!0);case"ccccc":return An("narrow",!0);case"EEE":return An("short",!1);case"EEEE":return An("long",!1);case"EEEEE":return An("narrow",!1);case"L":return pe?He({month:"numeric",day:"numeric"},"month"):this.num(w.month);case"LL":return pe?He({month:"2-digit",day:"numeric"},"month"):this.num(w.month,2);case"LLL":return Ut("short",!0);case"LLLL":return Ut("long",!0);case"LLLLL":return Ut("narrow",!0);case"M":return pe?He({month:"numeric"},"month"):this.num(w.month);case"MM":return pe?He({month:"2-digit"},"month"):this.num(w.month,2);case"MMM":return Ut("short",!1);case"MMMM":return Ut("long",!1);case"MMMMM":return Ut("narrow",!1);case"y":return pe?He({year:"numeric"},"year"):this.num(w.year);case"yy":return pe?He({year:"2-digit"},"year"):this.num(w.year.toString().slice(-2),2);case"yyyy":return pe?He({year:"numeric"},"year"):this.num(w.year,4);case"yyyyyy":return pe?He({year:"numeric"},"year"):this.num(w.year,6);case"G":return no("short");case"GG":return no("long");case"GGGGG":return no("narrow");case"kk":return this.num(w.weekYear.toString().slice(-2),2);case"kkkk":return this.num(w.weekYear,4);case"W":return this.num(w.weekNumber);case"WW":return this.num(w.weekNumber,2);case"n":return this.num(w.localWeekNumber);case"nn":return this.num(w.localWeekNumber,2);case"ii":return this.num(w.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(w.localWeekYear,4);case"o":return this.num(w.ordinal);case"ooo":return this.num(w.ordinal,3);case"q":return this.num(w.quarter);case"qq":return this.num(w.quarter,2);case"X":return this.num(Math.floor(w.ts/1e3));case"x":return this.num(w.ts);default:return zn(Fr)}})}formatDurationFromString(w,S){const H="negativeLargestOnly"===this.opts.signMode?-1:1,pe=zn=>{switch(zn[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},St=re.parseFormat(S),Nt=St.reduce((zn,{literal:no,val:jo})=>no?zn:zn.concat(jo),[]),Ut=w.shiftTo(...Nt.map(pe).filter(zn=>zn));return Ve(St,((zn,no)=>jo=>{const Fr=pe(jo);if(Fr){const la=no.isNegativeDuration&&Fr!==no.largestUnit?H:1;let bc;return bc="negativeLargestOnly"===this.opts.signMode&&Fr!==no.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(zn.get(Fr)*la,jo.length,bc)}return jo})(Ut,{isNegativeDuration:Ut<0,largestUnit:Object.keys(Ut.values)[0]}))}}const Xe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function it(...z){const w=z.reduce((S,H)=>S+H.source,"");return RegExp(`^${w}$`)}function bt(...z){return w=>z.reduce(([S,H,pe],He)=>{const[St,Nt,Ut]=He(w,pe);return[{...S,...St},Nt||H,Ut]},[{},null,1]).slice(0,2)}function mt(z,...w){if(null==z)return[null,null];for(const[S,H]of w){const pe=S.exec(z);if(pe)return H(pe)}return[null,null]}function Rt(...z){return(w,S)=>{const H={};let pe;for(pe=0;pe<z.length;pe++)H[z[pe]]=Sr(w[S+pe]);return[H,null,S+pe]}}const Xt=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Sn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Wn=RegExp(`${Sn.source}(?:${Xt.source}?(?:\\[(${Xe.source})\\])?)?`),Un=RegExp(`(?:[Tt]${Wn.source})?`),eo=Rt("weekYear","weekNumber","weekDay"),fo=Rt("year","ordinal"),y=RegExp(`${Sn.source} ?(?:${Xt.source}|(${Xe.source}))?`),G=RegExp(`(?: ${y.source})?`);function Je(z,w,S){const H=z[w];return tr(H)?S:Sr(H)}function st(z,w){return[{hours:Je(z,w,0),minutes:Je(z,w+1,0),seconds:Je(z,w+2,0),milliseconds:bo(z[w+3])},null,w+4]}function Ln(z,w){const S=!z[w]&&!z[w+1],H=ci(z[w+1],z[w+2]);return[{},S?null:Ur.instance(H),w+3]}function Rr(z,w){return[{},z[w]?Gt.create(z[w]):null,w+1]}const A=RegExp(`^T?${Sn.source}$`),X=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function _(z){const[w,S,H,pe,He,St,Nt,Ut,An]=z,zn="-"===w[0],no=Ut&&"-"===Ut[0],jo=(Fr,la=!1)=>void 0!==Fr&&(la||Fr&&zn)?-Fr:Fr;return[{years:jo(Co(S)),months:jo(Co(H)),weeks:jo(Co(pe)),days:jo(Co(He)),hours:jo(Co(St)),minutes:jo(Co(Nt)),seconds:jo(Co(Ut),"-0"===Ut),milliseconds:jo(bo(An),no)}]}const T={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function O(z,w,S,H,pe,He,St){const Nt={year:2===w.length?vi(Sr(w)):Sr(w),month:Fa.indexOf(S)+1,day:Sr(H),hour:Sr(pe),minute:Sr(He)};return St&&(Nt.second=Sr(St)),z&&(Nt.weekday=z.length>3?Ha.indexOf(z)+1:ii.indexOf(z)+1),Nt}const ve=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Lt(z){const[,w,S,H,pe,He,St,Nt,Ut,An,zn,no]=z,jo=O(w,pe,H,S,He,St,Nt);let Fr;return Fr=Ut?T[Ut]:An?0:ci(zn,no),[jo,new Ur(Fr)]}const nr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Kr=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Io=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Lo(z){const[,w,S,H,pe,He,St,Nt]=z;return[O(w,pe,H,S,He,St,Nt),Ur.utcInstance]}function Ui(z){const[,w,S,H,pe,He,St,Nt]=z;return[O(w,Nt,S,H,pe,He,St),Ur.utcInstance]}const Ma=it(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Un),oo=it(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Un),As=it(/(\d{4})-?(\d{3})/,Un),bs=it(Wn),at=bt(function dt(z,w){return[{year:Je(z,w),month:Je(z,w+1,1),day:Je(z,w+2,1)},null,w+3]},st,Ln,Rr),ho=bt(eo,st,Ln,Rr),Ks=bt(fo,st,Ln,Rr),Ja=bt(st,Ln,Rr),Xs=bt(st),nc=it(/(\d{4})-(\d\d)-(\d\d)/,G),n1=it(y),Ti=bt(st,Ln,Rr),Ba="Invalid Duration",Ea={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Ns={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Ea},xa=365.2425,Zs=30.436875,Hi={years:{quarters:4,months:12,weeks:xa/7,days:xa,hours:24*xa,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:xa/28,days:xa/4,hours:24*xa/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Zs/7,days:Zs,hours:24*Zs,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Ea},ds=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],r1=ds.slice(0).reverse();function Bi(z,w,S=!1){const H={values:S?w.values:{...z.values,...w.values||{}},loc:z.loc.clone(w.loc),conversionAccuracy:w.conversionAccuracy||z.conversionAccuracy,matrix:w.matrix||z.matrix};return new Xr(H)}function Hc(z,w){var S;let H=null!==(S=w.milliseconds)&&void 0!==S?S:0;for(const pe of r1.slice(1))w[pe]&&(H+=w[pe]*z[pe].milliseconds);return H}function Bc(z,w){const S=Hc(z,w)<0?-1:1;ds.reduceRight((H,pe)=>{if(tr(w[pe]))return H;if(H){const St=z[pe][H],Nt=Math.floor(w[H]*S/St);w[pe]+=Nt*S,w[H]-=Nt*St*S}return pe},null),ds.reduce((H,pe)=>{if(tr(w[pe]))return H;if(H){const He=w[H]%1;w[H]-=He,w[pe]+=He*z[H][pe]}return pe},null)}function Ls(z){const w={};for(const[S,H]of Object.entries(z))0!==H&&(w[S]=H);return w}class Xr{constructor(w){const S="longterm"===w.conversionAccuracy||!1;let H=S?Hi:Ns;w.matrix&&(H=w.matrix),this.values=w.values,this.loc=w.loc||vn.create(),this.conversionAccuracy=S?"longterm":"casual",this.invalid=w.invalid||null,this.matrix=H,this.isLuxonDuration=!0}static fromMillis(w,S){return Xr.fromObject({milliseconds:w},S)}static fromObject(w,S={}){if(null==w||"object"!=typeof w)throw new De("Duration.fromObject: argument expected to be an object, got "+(null===w?"null":typeof w));return new Xr({values:sa(w,Xr.normalizeUnit),loc:vn.fromObject(S),conversionAccuracy:S.conversionAccuracy,matrix:S.matrix})}static fromDurationLike(w){if(Po(w))return Xr.fromMillis(w);if(Xr.isDuration(w))return w;if("object"==typeof w)return Xr.fromObject(w);throw new De(`Unknown duration argument ${w} of type ${typeof w}`)}static fromISO(w,S){const[H]=function t1(z){return mt(z,[X,_])}(w);return H?Xr.fromObject(H,S):Xr.invalid("unparsable",`the input "${w}" can't be parsed as ISO 8601`)}static fromISOTime(w,S){const[H]=function us(z){return mt(z,[A,Xs])}(w);return H?Xr.fromObject(H,S):Xr.invalid("unparsable",`the input "${w}" can't be parsed as ISO 8601`)}static invalid(w,S=null){if(!w)throw new De("need to specify a reason the Duration is invalid");const H=w instanceof Yt?w:new Yt(w,S);if(rt.throwOnInvalid)throw new de(H);return new Xr({invalid:H})}static normalizeUnit(w){const S={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[w&&w.toLowerCase()];if(!S)throw new ee(w);return S}static isDuration(w){return w&&w.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(w,S={}){const H={...S,floor:!1!==S.round&&!1!==S.floor};return this.isValid?re.create(this.loc,H).formatDurationFromString(this,w):Ba}toHuman(w={}){if(!this.isValid)return Ba;const S=!1!==w.showZeros,H=ds.map(pe=>{const He=this.values[pe];return tr(He)||0===He&&!S?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...w,unit:pe.slice(0,-1)}).format(He)}).filter(pe=>pe);return this.loc.listFormatter({type:"conjunction",style:w.listStyle||"narrow",...w}).format(H)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let w="P";return 0!==this.years&&(w+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(w+=this.months+3*this.quarters+"M"),0!==this.weeks&&(w+=this.weeks+"W"),0!==this.days&&(w+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(w+="T"),0!==this.hours&&(w+=this.hours+"H"),0!==this.minutes&&(w+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(w+=Jr(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===w&&(w+="T0S"),w}toISOTime(w={}){if(!this.isValid)return null;const S=this.toMillis();return S<0||S>=864e5?null:(w={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...w,includeOffset:!1},E.fromMillis(S,{zone:"UTC"}).toISOTime(w))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Hc(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(w){if(!this.isValid)return this;const S=Xr.fromDurationLike(w),H={};for(const pe of ds)(Kt(S.values,pe)||Kt(this.values,pe))&&(H[pe]=S.get(pe)+this.get(pe));return Bi(this,{values:H},!0)}minus(w){if(!this.isValid)return this;const S=Xr.fromDurationLike(w);return this.plus(S.negate())}mapUnits(w){if(!this.isValid)return this;const S={};for(const H of Object.keys(this.values))S[H]=aa(w(this.values[H],H));return Bi(this,{values:S},!0)}get(w){return this[Xr.normalizeUnit(w)]}set(w){return this.isValid?Bi(this,{values:{...this.values,...sa(w,Xr.normalizeUnit)}}):this}reconfigure({locale:w,numberingSystem:S,conversionAccuracy:H,matrix:pe}={}){return Bi(this,{loc:this.loc.clone({locale:w,numberingSystem:S}),matrix:pe,conversionAccuracy:H})}as(w){return this.isValid?this.shiftTo(w).get(w):NaN}normalize(){if(!this.isValid)return this;const w=this.toObject();return Bc(this.matrix,w),Bi(this,{values:w},!0)}rescale(){return this.isValid?Bi(this,{values:Ls(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...w){if(!this.isValid)return this;if(0===w.length)return this;w=w.map(St=>Xr.normalizeUnit(St));const S={},H={},pe=this.toObject();let He;for(const St of ds)if(w.indexOf(St)>=0){He=St;let Nt=0;for(const An in H)Nt+=this.matrix[An][St]*H[An],H[An]=0;Po(pe[St])&&(Nt+=pe[St]);const Ut=Math.trunc(Nt);S[St]=Ut,H[St]=(1e3*Nt-1e3*Ut)/1e3}else Po(pe[St])&&(H[St]=pe[St]);for(const St in H)0!==H[St]&&(S[He]+=St===He?H[St]:H[St]/this.matrix[He][St]);return Bc(this.matrix,S),Bi(this,{values:S},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const w={};for(const S of Object.keys(this.values))w[S]=0===this.values[S]?0:-this.values[S];return Bi(this,{values:w},!0)}removeZeros(){return this.isValid?Bi(this,{values:Ls(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(w){if(!this.isValid||!w.isValid||!this.loc.equals(w.loc))return!1;function S(H,pe){return void 0===H||0===H?void 0===pe||0===pe:H===pe}for(const H of ds)if(!S(this.values[H],w.values[H]))return!1;return!0}}const Mi="Invalid Interval";class ei{constructor(w){this.s=w.start,this.e=w.end,this.invalid=w.invalid||null,this.isLuxonInterval=!0}static invalid(w,S=null){if(!w)throw new De("need to specify a reason the Interval is invalid");const H=w instanceof Yt?w:new Yt(w,S);if(rt.throwOnInvalid)throw new W(H);return new ei({invalid:H})}static fromDateTimes(w,S){const H=V(w),pe=V(S),He=function Qi(z,w){return z&&z.isValid?w&&w.isValid?w<z?ei.invalid("end before start",`The end of an interval must be after its start, but you had start=${z.toISO()} and end=${w.toISO()}`):null:ei.invalid("missing or invalid end"):ei.invalid("missing or invalid start")}(H,pe);return He??new ei({start:H,end:pe})}static after(w,S){const H=Xr.fromDurationLike(S),pe=V(w);return ei.fromDateTimes(pe,pe.plus(H))}static before(w,S){const H=Xr.fromDurationLike(S),pe=V(w);return ei.fromDateTimes(pe.minus(H),pe)}static fromISO(w,S){const[H,pe]=(w||"").split("/",2);if(H&&pe){let He,St,Nt,Ut;try{He=E.fromISO(H,S),St=He.isValid}catch{St=!1}try{Nt=E.fromISO(pe,S),Ut=Nt.isValid}catch{Ut=!1}if(St&&Ut)return ei.fromDateTimes(He,Nt);if(St){const An=Xr.fromISO(pe,S);if(An.isValid)return ei.after(He,An)}else if(Ut){const An=Xr.fromISO(H,S);if(An.isValid)return ei.before(Nt,An)}}return ei.invalid("unparsable",`the input "${w}" can't be parsed as ISO 8601`)}static isInterval(w){return w&&w.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(w="milliseconds"){return this.isValid?this.toDuration(w).get(w):NaN}count(w="milliseconds",S){if(!this.isValid)return NaN;const H=this.start.startOf(w,S);let pe;return pe=null!=S&&S.useLocaleWeeks?this.end.reconfigure({locale:H.locale}):this.end,pe=pe.startOf(w,S),Math.floor(pe.diff(H,w).get(w))+(pe.valueOf()!==this.end.valueOf())}hasSame(w){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,w))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(w){return!!this.isValid&&this.s>w}isBefore(w){return!!this.isValid&&this.e<=w}contains(w){return!!this.isValid&&this.s<=w&&this.e>w}set({start:w,end:S}={}){return this.isValid?ei.fromDateTimes(w||this.s,S||this.e):this}splitAt(...w){if(!this.isValid)return[];const S=w.map(V).filter(St=>this.contains(St)).sort((St,Nt)=>St.toMillis()-Nt.toMillis()),H=[];let{s:pe}=this,He=0;for(;pe<this.e;){const St=S[He]||this.e,Nt=+St>+this.e?this.e:St;H.push(ei.fromDateTimes(pe,Nt)),pe=Nt,He+=1}return H}splitBy(w){const S=Xr.fromDurationLike(w);if(!this.isValid||!S.isValid||0===S.as("milliseconds"))return[];let He,{s:H}=this,pe=1;const St=[];for(;H<this.e;){const Nt=this.start.plus(S.mapUnits(Ut=>Ut*pe));He=+Nt>+this.e?this.e:Nt,St.push(ei.fromDateTimes(H,He)),H=He,pe+=1}return St}divideEqually(w){return this.isValid?this.splitBy(this.length()/w).slice(0,w):[]}overlaps(w){return this.e>w.s&&this.s<w.e}abutsStart(w){return!!this.isValid&&+this.e==+w.s}abutsEnd(w){return!!this.isValid&&+w.e==+this.s}engulfs(w){return!!this.isValid&&this.s<=w.s&&this.e>=w.e}equals(w){return!(!this.isValid||!w.isValid)&&this.s.equals(w.s)&&this.e.equals(w.e)}intersection(w){if(!this.isValid)return this;const S=this.s>w.s?this.s:w.s,H=this.e<w.e?this.e:w.e;return S>=H?null:ei.fromDateTimes(S,H)}union(w){return this.isValid?ei.fromDateTimes(this.s<w.s?this.s:w.s,this.e>w.e?this.e:w.e):this}static merge(w){const[S,H]=w.sort((pe,He)=>pe.s-He.s).reduce(([pe,He],St)=>He?He.overlaps(St)||He.abutsStart(St)?[pe,He.union(St)]:[pe.concat([He]),St]:[pe,St],[[],null]);return H&&S.push(H),S}static xor(w){let S=null,H=0;const pe=[],He=w.map(Ut=>[{time:Ut.s,type:"s"},{time:Ut.e,type:"e"}]),Nt=Array.prototype.concat(...He).sort((Ut,An)=>Ut.time-An.time);for(const Ut of Nt)H+="s"===Ut.type?1:-1,1===H?S=Ut.time:(S&&+S!=+Ut.time&&pe.push(ei.fromDateTimes(S,Ut.time)),S=null);return ei.merge(pe)}difference(...w){return ei.xor([this].concat(w)).map(S=>this.intersection(S)).filter(S=>S&&!S.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Mi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(w=ge,S={}){return this.isValid?re.create(this.s.loc.clone(S),w).formatInterval(this):Mi}toISO(w){return this.isValid?`${this.s.toISO(w)}/${this.e.toISO(w)}`:Mi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Mi}toISOTime(w){return this.isValid?`${this.s.toISOTime(w)}/${this.e.toISOTime(w)}`:Mi}toFormat(w,{separator:S=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(w)}${S}${this.e.toFormat(w)}`:Mi}toDuration(w,S){return this.isValid?this.e.diff(this.s,w,S):Xr.invalid(this.invalidReason)}mapEndpoints(w){return ei.fromDateTimes(w(this.s),w(this.e))}}class Vi{static hasDST(w=rt.defaultZone){const S=E.now().setZone(w).set({month:12});return!w.isUniversal&&S.offset!==S.set({month:6}).offset}static isValidIANAZone(w){return Gt.isValidZone(w)}static normalizeZone(w){return br(w,rt.defaultZone)}static getStartOfWeek({locale:w=null,locObj:S=null}={}){return(S||vn.create(w)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:w=null,locObj:S=null}={}){return(S||vn.create(w)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:w=null,locObj:S=null}={}){return(S||vn.create(w)).getWeekendDays().slice()}static months(w="long",{locale:S=null,numberingSystem:H=null,locObj:pe=null,outputCalendar:He="gregory"}={}){return(pe||vn.create(S,H,He)).months(w)}static monthsFormat(w="long",{locale:S=null,numberingSystem:H=null,locObj:pe=null,outputCalendar:He="gregory"}={}){return(pe||vn.create(S,H,He)).months(w,!0)}static weekdays(w="long",{locale:S=null,numberingSystem:H=null,locObj:pe=null}={}){return(pe||vn.create(S,H,null)).weekdays(w)}static weekdaysFormat(w="long",{locale:S=null,numberingSystem:H=null,locObj:pe=null}={}){return(pe||vn.create(S,H,null)).weekdays(w,!0)}static meridiems({locale:w=null}={}){return vn.create(w).meridiems()}static eras(w="short",{locale:S=null}={}){return vn.create(S,null,"gregory").eras(w)}static features(){return{relative:zt(),localeWeek:Qt()}}}function ja(z,w){const S=pe=>pe.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),H=S(w)-S(z);return Math.floor(Xr.fromMillis(H).as("days"))}function So(z,w=(S=>S)){return{regex:z,deser:([S])=>w(function Vo(z){let w=parseInt(z,10);if(isNaN(w)){w="";for(let S=0;S<z.length;S++){const H=z.charCodeAt(S);if(-1!==z[S].search(Zn.hanidec))w+=fr.indexOf(z[S]);else for(const pe in uo){const[He,St]=uo[pe];H>=He&&H<=St&&(w+=H-He)}}return parseInt(w,10)}return w}(S))}}const rc=`[ ${String.fromCharCode(160)}]`,a1=new RegExp(rc,"g");function W1(z){return z.replace(/\./g,"\\.?").replace(a1,rc)}function y1(z){return z.replace(/\./g,"").replace(a1," ").toLowerCase()}function fs(z,w){return null===z?null:{regex:RegExp(z.map(W1).join("|")),deser:([S])=>z.findIndex(H=>y1(S)===y1(H))+w}}function M1(z,w){return{regex:z,deser:([,S,H])=>ci(S,H),groups:w}}function Ss(z){return{regex:z,deser:([w])=>w}}function s1(z){return z.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const pc={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let tn=null;function Wc(z,w){return Array.prototype.concat(...z.map(S=>function Ao(z,w){if(z.literal)return z;const H=vc(re.macroTokenToFormatOpts(z.val),w);return null==H||H.includes(void 0)?z:H}(S,w)))}class gc{constructor(w,S){if(this.locale=w,this.format=S,this.tokens=Wc(re.parseFormat(S),w),this.units=this.tokens.map(H=>function jc(z,w){const S=xr(w),H=xr(w,"{2}"),pe=xr(w,"{3}"),He=xr(w,"{4}"),St=xr(w,"{6}"),Nt=xr(w,"{1,2}"),Ut=xr(w,"{1,3}"),An=xr(w,"{1,6}"),zn=xr(w,"{1,9}"),no=xr(w,"{2,4}"),jo=xr(w,"{4,6}"),Fr=$c=>({regex:RegExp(s1($c.val)),deser:([m2])=>m2,literal:!0}),bc=($c=>{if(z.literal)return Fr($c);switch($c.val){case"G":return fs(w.eras("short"),0);case"GG":return fs(w.eras("long"),0);case"y":return So(An);case"yy":case"kk":return So(no,vi);case"yyyy":case"kkkk":return So(He);case"yyyyy":return So(jo);case"yyyyyy":return So(St);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return So(Nt);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return So(H);case"MMM":return fs(w.months("short",!0),1);case"MMMM":return fs(w.months("long",!0),1);case"LLL":return fs(w.months("short",!1),1);case"LLLL":return fs(w.months("long",!1),1);case"o":case"S":return So(Ut);case"ooo":case"SSS":return So(pe);case"u":return Ss(zn);case"uu":return Ss(Nt);case"uuu":case"E":case"c":return So(S);case"a":return fs(w.meridiems(),0);case"EEE":return fs(w.weekdays("short",!1),1);case"EEEE":return fs(w.weekdays("long",!1),1);case"ccc":return fs(w.weekdays("short",!0),1);case"cccc":return fs(w.weekdays("long",!0),1);case"Z":case"ZZ":return M1(new RegExp(`([+-]${Nt.source})(?::(${H.source}))?`),2);case"ZZZ":return M1(new RegExp(`([+-]${Nt.source})(${H.source})?`),2);case"z":return Ss(/[a-z_+-/]{1,256}?/i);case" ":return Ss(/[^\S\n\r]/);default:return Fr($c)}})(z)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return bc.token=z,bc}(H,w)),this.disqualifyingUnit=this.units.find(H=>H.invalidReason),!this.disqualifyingUnit){const[H,pe]=function oc(z){return[`^${z.map(S=>S.regex).reduce((S,H)=>`${S}(${H.source})`,"")}$`,z]}(this.units);this.regex=RegExp(H,"i"),this.handlers=pe}}explainFromTokens(w){if(this.isValid){const[S,H]=function _c(z,w,S){const H=z.match(w);if(H){const pe={};let He=1;for(const St in S)if(Kt(S,St)){const Nt=S[St],Ut=Nt.groups?Nt.groups+1:1;!Nt.literal&&Nt.token&&(pe[Nt.token.val[0]]=Nt.deser(H.slice(He,He+Ut))),He+=Ut}return[H,pe]}return[H,{}]}(w,this.regex,this.handlers),[pe,He,St]=H?function hs(z){let H,S=null;return tr(z.z)||(S=Gt.create(z.z)),tr(z.Z)||(S||(S=new Ur(z.Z)),H=z.Z),tr(z.q)||(z.M=3*(z.q-1)+1),tr(z.h)||(z.h<12&&1===z.a?z.h+=12:12===z.h&&0===z.a&&(z.h=0)),0===z.G&&z.y&&(z.y=-z.y),tr(z.u)||(z.S=bo(z.u)),[Object.keys(z).reduce((He,St)=>{const Nt=(He=>{switch(He){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(St);return Nt&&(He[Nt]=z[St]),He},{}),S,H]}(H):[null,null,void 0];if(Kt(H,"a")&&Kt(H,"H"))throw new K("Can't include meridiem when specifying 24-hour format");return{input:w,tokens:this.tokens,regex:this.regex,rawMatches:S,matches:H,result:pe,zone:He,specificOffset:St}}return{input:w,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ic(z,w,S){return new gc(z,S).explainFromTokens(w)}function vc(z,w){if(!z)return null;const H=re.create(w,z).dtFormatter(function b1(){return tn||(tn=E.fromMillis(1555555555555)),tn}()),pe=H.formatToParts(),He=H.resolvedOptions();return pe.map(St=>function C1(z,w,S){const{type:H,value:pe}=z;if("literal"===H){const Ut=/^\s+$/.test(pe);return{literal:!Ut,val:Ut?" ":pe}}let St=H;"hour"===H&&(St=null!=w.hour12?w.hour12?"hour12":"hour24":null!=w.hourCycle?"h11"===w.hourCycle||"h12"===w.hourCycle?"hour12":"hour24":S.hour12?"hour12":"hour24");let Nt=pc[St];if("object"==typeof Nt&&(Nt=Nt[w[H]]),Nt)return{literal:!1,val:Nt}}(St,z,He))}const ac="Invalid DateTime",U1=864e13;function Oi(z){return new Yt("unsupported zone",`the zone "${z.name}" is not supported`)}function yc(z){return null===z.weekData&&(z.weekData=Fn(z.c)),z.weekData}function ti(z){return null===z.localWeekData&&(z.localWeekData=Fn(z.c,z.loc.getMinDaysInFirstWeek(),z.loc.getStartOfWeek())),z.localWeekData}function ms(z,w){const S={ts:z.ts,zone:z.zone,c:z.c,o:z.o,loc:z.loc,invalid:z.invalid};return new E({...S,...w,old:S})}function be(z,w,S){let H=z-60*w*1e3;const pe=S.offset(H);if(w===pe)return[H,w];H-=60*(pe-w)*1e3;const He=S.offset(H);return pe===He?[H,pe]:[z-60*Math.min(pe,He)*1e3,Math.max(pe,He)]}function Re(z,w){const S=new Date(z+=60*w*1e3);return{year:S.getUTCFullYear(),month:S.getUTCMonth()+1,day:S.getUTCDate(),hour:S.getUTCHours(),minute:S.getUTCMinutes(),second:S.getUTCSeconds(),millisecond:S.getUTCMilliseconds()}}function $e(z,w,S){return be(Bo(z),w,S)}function tt(z,w){const S=z.o,H=z.c.year+Math.trunc(w.years),pe=z.c.month+Math.trunc(w.months)+3*Math.trunc(w.quarters),He={...z.c,year:H,month:pe,day:Math.min(z.c.day,Qr(H,pe))+Math.trunc(w.days)+7*Math.trunc(w.weeks)},St=Xr.fromObject({years:w.years-Math.trunc(w.years),quarters:w.quarters-Math.trunc(w.quarters),months:w.months-Math.trunc(w.months),weeks:w.weeks-Math.trunc(w.weeks),days:w.days-Math.trunc(w.days),hours:w.hours,minutes:w.minutes,seconds:w.seconds,milliseconds:w.milliseconds}).as("milliseconds"),Nt=Bo(He);let[Ut,An]=be(Nt,S,z.zone);return 0!==St&&(Ut+=St,An=z.zone.offset(Ut)),{ts:Ut,o:An}}function vt(z,w,S,H,pe,He){const{setZone:St,zone:Nt}=S;if(z&&0!==Object.keys(z).length||w){const Ut=w||Nt,An=E.fromObject(z,{...S,zone:Ut,specificOffset:He});return St?An:An.setZone(Nt)}return E.invalid(new Yt("unparsable",`the input "${pe}" can't be parsed as ${H}`))}function Ye(z,w,S=!0){return z.isValid?re.create(vn.create("en-US"),{allowZ:S,forceSimple:!0}).formatDateTimeFromString(z,w):null}function sn(z,w,S){const H=z.c.year>9999||z.c.year<0;let pe="";if(H&&z.c.year>=0&&(pe+="+"),pe+=Hn(z.c.year,H?6:4),"year"===S)return pe;if(w){if(pe+="-",pe+=Hn(z.c.month),"month"===S)return pe;pe+="-"}else if(pe+=Hn(z.c.month),"month"===S)return pe;return pe+=Hn(z.c.day),pe}function Tn(z,w,S,H,pe,He,St){let Nt=!S||0!==z.c.millisecond||0!==z.c.second,Ut="";switch(St){case"day":case"month":case"year":break;default:if(Ut+=Hn(z.c.hour),"hour"===St)break;if(w){if(Ut+=":",Ut+=Hn(z.c.minute),"minute"===St)break;Nt&&(Ut+=":",Ut+=Hn(z.c.second))}else{if(Ut+=Hn(z.c.minute),"minute"===St)break;Nt&&(Ut+=Hn(z.c.second))}if("second"===St)break;Nt&&(!H||0!==z.c.millisecond)&&(Ut+=".",Ut+=Hn(z.c.millisecond,3))}return pe&&(z.isOffsetFixed&&0===z.offset&&!He?Ut+="Z":z.o<0?(Ut+="-",Ut+=Hn(Math.trunc(-z.o/60)),Ut+=":",Ut+=Hn(Math.trunc(-z.o%60))):(Ut+="+",Ut+=Hn(Math.trunc(z.o/60)),Ut+=":",Ut+=Hn(Math.trunc(z.o%60)))),He&&(Ut+="["+z.zone.ianaName+"]"),Ut}const cr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Kn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ar={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ao=["year","month","day","hour","minute","second","millisecond"],_o=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],$i=["year","ordinal","hour","minute","second","millisecond"];function Ii(z){const w={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[z.toLowerCase()];if(!w)throw new ee(z);return w}function Qa(z){switch(z.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ii(z)}}function Ca(z,w){const S=br(w.zone,rt.defaultZone);if(!S.isValid)return E.invalid(Oi(S));const H=vn.fromObject(w);let pe,He;if(tr(z.year))pe=rt.now();else{for(const Ut of ao)tr(z[Ut])&&(z[Ut]=cr[Ut]);const St=bi(z)||Zi(z);if(St)return E.invalid(St);const Nt=function ca(z){if(void 0===q&&(q=rt.now()),"iana"!==z.type)return z.offset(q);const w=z.name;let S=N.get(w);return void 0===S&&(S=z.offset(q),N.set(w,S)),S}(S);[pe,He]=$e(z,Nt,S)}return new E({ts:pe,zone:S,loc:H,o:He})}function qi(z,w,S){const H=!!tr(S.round)||S.round,pe=tr(S.rounding)?"trunc":S.rounding,He=(Nt,Ut)=>(Nt=Jr(Nt,H||S.calendary?0:2,S.calendary?"round":pe),w.loc.clone(S).relFormatter(S).format(Nt,Ut)),St=Nt=>S.calendary?w.hasSame(z,Nt)?0:w.startOf(Nt).diff(z.startOf(Nt),Nt).get(Nt):w.diff(z,Nt).get(Nt);if(S.unit)return He(St(S.unit),S.unit);for(const Nt of S.units){const Ut=St(Nt);if(Math.abs(Ut)>=1)return He(Ut,Nt)}return He(z>w?-0:0,S.units[S.units.length-1])}function Vn(z){let S,w={};return z.length>0&&"object"==typeof z[z.length-1]?(w=z[z.length-1],S=Array.from(z).slice(0,z.length-1)):S=Array.from(z),[w,S]}let q;const N=new Map;class E{constructor(w){const S=w.zone||rt.defaultZone;let H=w.invalid||(Number.isNaN(w.ts)?new Yt("invalid input"):null)||(S.isValid?null:Oi(S));this.ts=tr(w.ts)?rt.now():w.ts;let pe=null,He=null;if(!H)if(w.old&&w.old.ts===this.ts&&w.old.zone.equals(S))[pe,He]=[w.old.c,w.old.o];else{const Nt=Po(w.o)&&!w.old?w.o:S.offset(this.ts);pe=Re(this.ts,Nt),H=Number.isNaN(pe.year)?new Yt("invalid input"):null,pe=H?null:pe,He=H?null:Nt}this._zone=S,this.loc=w.loc||vn.create(),this.invalid=H,this.weekData=null,this.localWeekData=null,this.c=pe,this.o=He,this.isLuxonDateTime=!0}static now(){return new E({})}static local(){const[w,S]=Vn(arguments),[H,pe,He,St,Nt,Ut,An]=S;return Ca({year:H,month:pe,day:He,hour:St,minute:Nt,second:Ut,millisecond:An},w)}static utc(){const[w,S]=Vn(arguments),[H,pe,He,St,Nt,Ut,An]=S;return w.zone=Ur.utcInstance,Ca({year:H,month:pe,day:He,hour:St,minute:Nt,second:Ut,millisecond:An},w)}static fromJSDate(w,S={}){const H=function Pt(z){return"[object Date]"===Object.prototype.toString.call(z)}(w)?w.valueOf():NaN;if(Number.isNaN(H))return E.invalid("invalid input");const pe=br(S.zone,rt.defaultZone);return pe.isValid?new E({ts:H,zone:pe,loc:vn.fromObject(S)}):E.invalid(Oi(pe))}static fromMillis(w,S={}){if(Po(w))return w<-U1||w>U1?E.invalid("Timestamp out of range"):new E({ts:w,zone:br(S.zone,rt.defaultZone),loc:vn.fromObject(S)});throw new De(`fromMillis requires a numerical input, but received a ${typeof w} with value ${w}`)}static fromSeconds(w,S={}){if(Po(w))return new E({ts:1e3*w,zone:br(S.zone,rt.defaultZone),loc:vn.fromObject(S)});throw new De("fromSeconds requires a numerical input")}static fromObject(w,S={}){w=w||{};const H=br(S.zone,rt.defaultZone);if(!H.isValid)return E.invalid(Oi(H));const pe=vn.fromObject(S),He=sa(w,Qa),{minDaysInFirstWeek:St,startOfWeek:Nt}=Ho(He,pe),Ut=rt.now(),An=tr(S.specificOffset)?H.offset(Ut):S.specificOffset,zn=!tr(He.ordinal),no=!tr(He.year),jo=!tr(He.month)||!tr(He.day),Fr=no||jo,la=He.weekYear||He.weekNumber;if((Fr||zn)&&la)throw new K("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(jo&&zn)throw new K("Can't mix ordinal dates with month/day");const bc=la||He.weekday&&!Fr;let $c,m2,Ms=Re(Ut,An);bc?($c=_o,m2=Kn,Ms=Fn(Ms,St,Nt)):zn?($c=$i,m2=ar,Ms=xo(Ms)):($c=ao,m2=cr);let T0=!1;for(const p2 of $c)tr(He[p2])?He[p2]=T0?m2[p2]:Ms[p2]:T0=!0;const U4=bc?function io(z,w=4,S=1){const H=We(z.weekYear),pe=Mn(z.weekNumber,1,Di(z.weekYear,w,S)),He=Mn(z.weekday,1,7);return H?pe?!He&&dn("weekday",z.weekday):dn("week",z.weekNumber):dn("weekYear",z.weekYear)}(He,St,Nt):zn?function Mo(z){const w=We(z.year),S=Mn(z.ordinal,1,Ri(z.year));return w?!S&&dn("ordinal",z.ordinal):dn("year",z.year)}(He):bi(He),U2=U4||Zi(He);if(U2)return E.invalid(U2);const $1=bc?Hr(He,St,Nt):zn?yo(He):He,[z3,V4]=$e($1,An,H),V2=new E({ts:z3,zone:H,o:V4,loc:pe});return He.weekday&&Fr&&w.weekday!==V2.weekday?E.invalid("mismatched weekday",`you can't specify both a weekday of ${He.weekday} and a date of ${V2.toISO()}`):V2.isValid?V2:E.invalid(V2.invalid)}static fromISO(w,S={}){const[H,pe]=function rr(z){return mt(z,[Ma,at],[oo,ho],[As,Ks],[bs,Ja])}(w);return vt(H,pe,S,"ISO 8601",w)}static fromRFC2822(w,S={}){const[H,pe]=function yi(z){return mt(function an(z){return z.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(z),[ve,Lt])}(w);return vt(H,pe,S,"RFC 2822",w)}static fromHTTP(w,S={}){const[H,pe]=function ai(z){return mt(z,[nr,Lo],[Kr,Lo],[Io,Ui])}(w);return vt(H,pe,S,"HTTP",S)}static fromFormat(w,S,H={}){if(tr(w)||tr(S))throw new De("fromFormat requires an input string and a format");const{locale:pe=null,numberingSystem:He=null}=H,St=vn.fromOpts({locale:pe,numberingSystem:He,defaultToEN:!0}),[Nt,Ut,An,zn]=function Uc(z,w,S){const{result:H,zone:pe,specificOffset:He,invalidReason:St}=ic(z,w,S);return[H,pe,He,St]}(St,w,S);return zn?E.invalid(zn):vt(Nt,Ut,H,`format ${S}`,w,An)}static fromString(w,S,H={}){return E.fromFormat(w,S,H)}static fromSQL(w,S={}){const[H,pe]=function Pi(z){return mt(z,[nc,at],[n1,Ti])}(w);return vt(H,pe,S,"SQL",w)}static invalid(w,S=null){if(!w)throw new De("need to specify a reason the DateTime is invalid");const H=w instanceof Yt?w:new Yt(w,S);if(rt.throwOnInvalid)throw new j(H);return new E({invalid:H})}static isDateTime(w){return w&&w.isLuxonDateTime||!1}static parseFormatForOpts(w,S={}){const H=vc(w,vn.fromObject(S));return H?H.map(pe=>pe?pe.val:null).join(""):null}static expandFormat(w,S={}){return Wc(re.parseFormat(w),vn.fromObject(S)).map(pe=>pe.val).join("")}static resetCache(){q=void 0,N.clear()}get(w){return this[w]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?yc(this).weekYear:NaN}get weekNumber(){return this.isValid?yc(this).weekNumber:NaN}get weekday(){return this.isValid?yc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ti(this).weekday:NaN}get localWeekNumber(){return this.isValid?ti(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ti(this).weekYear:NaN}get ordinal(){return this.isValid?xo(this.c).ordinal:NaN}get monthShort(){return this.isValid?Vi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Vi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Vi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Vi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const w=864e5,S=6e4,H=Bo(this.c),pe=this.zone.offset(H-w),He=this.zone.offset(H+w),St=this.zone.offset(H-pe*S),Nt=this.zone.offset(H-He*S);if(St===Nt)return[this];const Ut=H-St*S,An=H-Nt*S,zn=Re(Ut,St),no=Re(An,Nt);return zn.hour===no.hour&&zn.minute===no.minute&&zn.second===no.second&&zn.millisecond===no.millisecond?[ms(this,{ts:Ut}),ms(this,{ts:An})]:[this]}get isInLeapYear(){return gi(this.year)}get daysInMonth(){return Qr(this.year,this.month)}get daysInYear(){return this.isValid?Ri(this.year):NaN}get weeksInWeekYear(){return this.isValid?Di(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Di(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(w={}){const{locale:S,numberingSystem:H,calendar:pe}=re.create(this.loc.clone(w),w).resolvedOptions(this);return{locale:S,numberingSystem:H,outputCalendar:pe}}toUTC(w=0,S={}){return this.setZone(Ur.instance(w),S)}toLocal(){return this.setZone(rt.defaultZone)}setZone(w,{keepLocalTime:S=!1,keepCalendarTime:H=!1}={}){if((w=br(w,rt.defaultZone)).equals(this.zone))return this;if(w.isValid){let pe=this.ts;if(S||H){const He=w.offset(this.ts),St=this.toObject();[pe]=$e(St,He,w)}return ms(this,{ts:pe,zone:w})}return E.invalid(Oi(w))}reconfigure({locale:w,numberingSystem:S,outputCalendar:H}={}){return ms(this,{loc:this.loc.clone({locale:w,numberingSystem:S,outputCalendar:H})})}setLocale(w){return this.reconfigure({locale:w})}set(w){if(!this.isValid)return this;const S=sa(w,Qa),{minDaysInFirstWeek:H,startOfWeek:pe}=Ho(S,this.loc),He=!tr(S.weekYear)||!tr(S.weekNumber)||!tr(S.weekday),St=!tr(S.ordinal),Nt=!tr(S.year),Ut=!tr(S.month)||!tr(S.day);if((Nt||Ut||St)&&(S.weekYear||S.weekNumber))throw new K("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ut&&St)throw new K("Can't mix ordinal dates with month/day");let no;He?no=Hr({...Fn(this.c,H,pe),...S},H,pe):tr(S.ordinal)?(no={...this.toObject(),...S},tr(S.day)&&(no.day=Math.min(Qr(no.year,no.month),no.day))):no=yo({...xo(this.c),...S});const[jo,Fr]=$e(no,this.o,this.zone);return ms(this,{ts:jo,o:Fr})}plus(w){return this.isValid?ms(this,tt(this,Xr.fromDurationLike(w))):this}minus(w){return this.isValid?ms(this,tt(this,Xr.fromDurationLike(w).negate())):this}startOf(w,{useLocaleWeeks:S=!1}={}){if(!this.isValid)return this;const H={},pe=Xr.normalizeUnit(w);switch(pe){case"years":H.month=1;case"quarters":case"months":H.day=1;case"weeks":case"days":H.hour=0;case"hours":H.minute=0;case"minutes":H.second=0;case"seconds":H.millisecond=0}if("weeks"===pe)if(S){const He=this.loc.getStartOfWeek(),{weekday:St}=this;St<He&&(H.weekNumber=this.weekNumber-1),H.weekday=He}else H.weekday=1;if("quarters"===pe){const He=Math.ceil(this.month/3);H.month=3*(He-1)+1}return this.set(H)}endOf(w,S){return this.isValid?this.plus({[w]:1}).startOf(w,S).minus(1):this}toFormat(w,S={}){return this.isValid?re.create(this.loc.redefaultToEN(S)).formatDateTimeFromString(this,w):ac}toLocaleString(w=ge,S={}){return this.isValid?re.create(this.loc.clone(S),w).formatDateTime(this):ac}toLocaleParts(w={}){return this.isValid?re.create(this.loc.clone(w),w).formatDateTimeParts(this):[]}toISO({format:w="extended",suppressSeconds:S=!1,suppressMilliseconds:H=!1,includeOffset:pe=!0,extendedZone:He=!1,precision:St="milliseconds"}={}){if(!this.isValid)return null;const Nt="extended"===w;let Ut=sn(this,Nt,St=Ii(St));return ao.indexOf(St)>=3&&(Ut+="T"),Ut+=Tn(this,Nt,S,H,pe,He,St),Ut}toISODate({format:w="extended",precision:S="day"}={}){return this.isValid?sn(this,"extended"===w,Ii(S)):null}toISOWeekDate(){return Ye(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:w=!1,suppressSeconds:S=!1,includeOffset:H=!0,includePrefix:pe=!1,extendedZone:He=!1,format:St="extended",precision:Nt="milliseconds"}={}){return this.isValid?(Nt=Ii(Nt),(pe&&ao.indexOf(Nt)>=3?"T":"")+Tn(this,"extended"===St,S,w,H,He,Nt)):null}toRFC2822(){return Ye(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ye(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?sn(this,!0):null}toSQLTime({includeOffset:w=!0,includeZone:S=!1,includeOffsetSpace:H=!0}={}){let pe="HH:mm:ss.SSS";return(S||w)&&(H&&(pe+=" "),S?pe+="z":w&&(pe+="ZZ")),Ye(this,pe,!0)}toSQL(w={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(w)}`:null}toString(){return this.isValid?this.toISO():ac}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(w={}){if(!this.isValid)return{};const S={...this.c};return w.includeConfig&&(S.outputCalendar=this.outputCalendar,S.numberingSystem=this.loc.numberingSystem,S.locale=this.loc.locale),S}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(w,S="milliseconds",H={}){if(!this.isValid||!w.isValid)return Xr.invalid("created by diffing an invalid DateTime");const pe={locale:this.locale,numberingSystem:this.numberingSystem,...H},He=function qe(z){return Array.isArray(z)?z:[z]}(S).map(Xr.normalizeUnit),St=w.valueOf()>this.valueOf(),An=function Wa(z,w,S,H){let[pe,He,St,Nt]=function Js(z,w,S){const H=[["years",(Ut,An)=>An.year-Ut.year],["quarters",(Ut,An)=>An.quarter-Ut.quarter+4*(An.year-Ut.year)],["months",(Ut,An)=>An.month-Ut.month+12*(An.year-Ut.year)],["weeks",(Ut,An)=>{const zn=ja(Ut,An);return(zn-zn%7)/7}],["days",ja]],pe={},He=z;let St,Nt;for(const[Ut,An]of H)S.indexOf(Ut)>=0&&(St=Ut,pe[Ut]=An(z,w),Nt=He.plus(pe),Nt>w?(pe[Ut]--,(z=He.plus(pe))>w&&(Nt=z,pe[Ut]--,z=He.plus(pe))):z=Nt);return[z,pe,Nt,St]}(z,w,S);const Ut=w-pe,An=S.filter(no=>["hours","minutes","seconds","milliseconds"].indexOf(no)>=0);0===An.length&&(St<w&&(St=pe.plus({[Nt]:1})),St!==pe&&(He[Nt]=(He[Nt]||0)+Ut/(St-pe)));const zn=Xr.fromObject(He,H);return An.length>0?Xr.fromMillis(Ut,H).shiftTo(...An).plus(zn):zn}(St?this:w,St?w:this,He,pe);return St?An.negate():An}diffNow(w="milliseconds",S={}){return this.diff(E.now(),w,S)}until(w){return this.isValid?ei.fromDateTimes(this,w):this}hasSame(w,S,H){if(!this.isValid)return!1;const pe=w.valueOf(),He=this.setZone(w.zone,{keepLocalTime:!0});return He.startOf(S,H)<=pe&&pe<=He.endOf(S,H)}equals(w){return this.isValid&&w.isValid&&this.valueOf()===w.valueOf()&&this.zone.equals(w.zone)&&this.loc.equals(w.loc)}toRelative(w={}){if(!this.isValid)return null;const S=w.base||E.fromObject({},{zone:this.zone}),H=w.padding?this<S?-w.padding:w.padding:0;let pe=["years","months","days","hours","minutes","seconds"],He=w.unit;return Array.isArray(w.unit)&&(pe=w.unit,He=void 0),qi(S,this.plus(H),{...w,numeric:"always",units:pe,unit:He})}toRelativeCalendar(w={}){return this.isValid?qi(w.base||E.fromObject({},{zone:this.zone}),this,{...w,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...w){if(!w.every(E.isDateTime))throw new De("min requires all arguments be DateTimes");return wt(w,S=>S.valueOf(),Math.min)}static max(...w){if(!w.every(E.isDateTime))throw new De("max requires all arguments be DateTimes");return wt(w,S=>S.valueOf(),Math.max)}static fromFormatExplain(w,S,H={}){const{locale:pe=null,numberingSystem:He=null}=H;return ic(vn.fromOpts({locale:pe,numberingSystem:He,defaultToEN:!0}),w,S)}static fromStringExplain(w,S,H={}){return E.fromFormatExplain(w,S,H)}static buildFormatParser(w,S={}){const{locale:H=null,numberingSystem:pe=null}=S,He=vn.fromOpts({locale:H,numberingSystem:pe,defaultToEN:!0});return new gc(He,w)}static fromFormatParser(w,S,H={}){if(tr(w)||tr(S))throw new De("fromFormatParser requires an input string and a format parser");const{locale:pe=null,numberingSystem:He=null}=H,St=vn.fromOpts({locale:pe,numberingSystem:He,defaultToEN:!0});if(!St.equals(S.locale))throw new De(`fromFormatParser called with a locale of ${St}, but the format parser was created for ${S.locale}`);const{result:Nt,zone:Ut,specificOffset:An,invalidReason:zn}=S.explainFromTokens(w);return zn?E.invalid(zn):vt(Nt,Ut,H,`format ${S.format}`,w,An)}static get DATE_SHORT(){return ge}static get DATE_MED(){return xe}static get DATE_MED_WITH_WEEKDAY(){return he}static get DATE_FULL(){return Le}static get DATE_HUGE(){return Ce}static get TIME_SIMPLE(){return ie}static get TIME_WITH_SECONDS(){return se}static get TIME_WITH_SHORT_OFFSET(){return me}static get TIME_WITH_LONG_OFFSET(){return Ne}static get TIME_24_SIMPLE(){return _e}static get TIME_24_WITH_SECONDS(){return we}static get TIME_24_WITH_SHORT_OFFSET(){return Ee}static get TIME_24_WITH_LONG_OFFSET(){return le}static get DATETIME_SHORT(){return Ue}static get DATETIME_SHORT_WITH_SECONDS(){return ke}static get DATETIME_MED(){return ze}static get DATETIME_MED_WITH_SECONDS(){return ye}static get DATETIME_MED_WITH_WEEKDAY(){return je}static get DATETIME_FULL(){return Ze}static get DATETIME_FULL_WITH_SECONDS(){return _t}static get DATETIME_HUGE(){return At}static get DATETIME_HUGE_WITH_SECONDS(){return Vt}}function V(z){if(E.isDateTime(z))return z;if(z&&z.valueOf&&Po(z.valueOf()))return E.fromJSDate(z);if(z&&"object"==typeof z)return E.fromObject(z);throw new De(`Unknown datetime argument: ${z}, of type ${typeof z}`)}var Be=f(24006);function ht(z,w){1&z&&o.\u0275\u0275elementContainer(0)}function Mt(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275template(1,ht,1,0,"ng-container",4),o.\u0275\u0275elementEnd()),2&z){const S=o.\u0275\u0275nextContext(),H=o.\u0275\u0275reference(4);o.\u0275\u0275property("ngxAppendToInput",S.inputElement),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngTemplateOutlet",H)}}function jt(z,w){1&z&&o.\u0275\u0275elementContainer(0)}function nn(z,w){if(1&z&&o.\u0275\u0275template(0,jt,1,0,"ng-container",4),2&z){o.\u0275\u0275nextContext();const S=o.\u0275\u0275reference(4);o.\u0275\u0275property("ngTemplateOutlet",S)}}function Bn(z,w){1&z&&o.\u0275\u0275projection(0)}const Xn=["*"],Yr=["editableTimeTmpl"],vr=function(z){return{"timepicker-dial__item_active":z}};function mr(z,w){if(1&z){const S=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"input",2),o.\u0275\u0275listener("ngModelChange",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(He.time=pe)})("input",function(){o.\u0275\u0275restoreView(S);const pe=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(pe.updateTime())})("focus",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(He.saveTimeAndChangeTimeUnit(pe,He.timeUnit))}),o.\u0275\u0275pipe(1,"timeLocalizer"),o.\u0275\u0275elementEnd()}if(2&z){const S=o.\u0275\u0275nextContext();o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(7,vr,S.isActive))("ngModel",o.\u0275\u0275pipeBind2(1,4,S.time,S.timeUnit))("disabled",S.disabled)("timepickerAutofocus",S.isActive)}}function zr(z,w){if(1&z){const S=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"input",3,4),o.\u0275\u0275listener("focus",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(He.saveTimeAndChangeTimeUnit(pe,He.timeUnit))})("keydown",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(He.onKeydown(pe))}),o.\u0275\u0275elementEnd()}if(2&z){const S=o.\u0275\u0275nextContext();o.\u0275\u0275property("formControl",S.timeControl)("ngClass",o.\u0275\u0275pureFunction1(3,vr,S.isActive))("timepickerAutofocus",S.isActive)}}function No(z,w){if(1&z){const S=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275listener("@scaleInOut.done",function(){o.\u0275\u0275restoreView(S);const pe=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(pe.animationDone())}),o.\u0275\u0275elementStart(1,"p"),o.\u0275\u0275text(2,"Current time would be invalid in this period."),o.\u0275\u0275elementEnd()()}2&z&&o.\u0275\u0275property("@scaleInOut",void 0)}function $o(z,w){1&z&&o.\u0275\u0275elementContainer(0)}function Ci(z,w){1&z&&(o.\u0275\u0275elementStart(0,"small",10),o.\u0275\u0275text(1," * use arrows ("),o.\u0275\u0275elementStart(2,"span"),o.\u0275\u0275text(3,"\u21c5"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(4,") to change the time"),o.\u0275\u0275elementEnd())}const ea=function(z){return{"timepicker-dial__hint-container--hidden":z}};function ji(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div",7),o.\u0275\u0275template(1,$o,1,0,"ng-container",8),o.\u0275\u0275template(2,Ci,5,0,"ng-template",null,9,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementEnd()),2&z){const S=o.\u0275\u0275reference(3),H=o.\u0275\u0275nextContext();o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(2,ea,!H.isHintVisible)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngTemplateOutlet",H.editableHintTmpl?H.editableHintTmpl:S)}}const Ts=function(z){return{"timepicker-dial__period--hidden":z}},ws=["clockFace"],Ki=["clockHand"],wi=function(z){return{transform:z}},ps=function(z,w){return{active:z,disabled:w}};function Ua(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div",9)(1,"span",10),o.\u0275\u0275pipe(2,"activeHour"),o.\u0275\u0275text(3),o.\u0275\u0275pipe(4,"timeLocalizer"),o.\u0275\u0275elementEnd()()),2&z){const S=w.$implicit,H=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(11,wi,"rotateZ("+S.angle+"deg) translateX(-50%)")),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(13,wi,"rotateZ(-"+S.angle+"deg)"))("ngClass",o.\u0275\u0275pureFunction2(15,ps,o.\u0275\u0275pipeBind3(2,4,S.time,H.selectedTime.time,H.isClockFaceDisabled),S.disabled)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind2(4,8,S.time,H.timeUnit.HOUR)," ")}}function ka(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div",13)(1,"span",10),o.\u0275\u0275pipe(2,"activeHour"),o.\u0275\u0275text(3),o.\u0275\u0275pipe(4,"timeLocalizer"),o.\u0275\u0275elementEnd()()),2&z){const S=w.$implicit,H=o.\u0275\u0275nextContext(3);o.\u0275\u0275styleProp("height",H.innerClockFaceSize,"px"),o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(13,wi,"rotateZ("+S.angle+"deg) translateX(-50%)")),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(15,wi,"rotateZ(-"+S.angle+"deg)"))("ngClass",o.\u0275\u0275pureFunction2(17,ps,o.\u0275\u0275pipeBind3(2,6,S.time,null==H.selectedTime?null:H.selectedTime.time,H.isClockFaceDisabled),S.disabled)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind2(4,10,S.time,H.timeUnit.HOUR),"")}}function Da(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275template(1,ka,5,20,"div",12),o.\u0275\u0275pipe(2,"slice"),o.\u0275\u0275elementEnd()),2&z){const S=o.\u0275\u0275nextContext(2);o.\u0275\u0275styleProp("top","calc(50% - "+S.innerClockFaceSize+"px)"),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",o.\u0275\u0275pipeBind3(2,4,S.faceTime,12,24))("ngForTrackBy",S.trackByTime)}}function _s(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div",6),o.\u0275\u0275template(1,Ua,5,18,"div",7),o.\u0275\u0275pipe(2,"slice"),o.\u0275\u0275template(3,Da,3,8,"div",8),o.\u0275\u0275elementEnd()),2&z){const S=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",o.\u0275\u0275pipeBind3(2,3,S.faceTime,0,12))("ngForTrackBy",S.trackByTime),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",S.faceTime.length>12)}}function gs(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div",9)(1,"span",10),o.\u0275\u0275pipe(2,"activeMinute"),o.\u0275\u0275text(3),o.\u0275\u0275pipe(4,"timeLocalizer"),o.\u0275\u0275pipe(5,"minutesFormatter"),o.\u0275\u0275elementEnd()()),2&z){const S=w.$implicit,H=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(15,wi,"rotateZ("+S.angle+"deg) translateX(-50%)")),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(17,wi,"rotateZ(-"+S.angle+"deg)"))("ngClass",o.\u0275\u0275pureFunction2(19,ps,o.\u0275\u0275pipeBind4(2,4,S.time,null==H.selectedTime?null:H.selectedTime.time,H.minutesGap,H.isClockFaceDisabled),S.disabled)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind2(4,9,o.\u0275\u0275pipeBind2(5,12,S.time,H.minutesGap),H.timeUnit.MINUTE),"")}}function sc(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div",6),o.\u0275\u0275template(1,gs,6,22,"div",7),o.\u0275\u0275elementEnd()),2&z){const S=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",S.faceTime)("ngForTrackBy",S.trackByTime)}}const lr=function(z){return{"clock-face__clock-hand_minute":z}};function Jt(z,w){if(1&z){const S=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ngx-material-timepicker-24-hours-face",17),o.\u0275\u0275listener("hourChange",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(He.onHourChange(pe))})("hourSelected",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(He.onHourSelected(pe))}),o.\u0275\u0275pipe(1,"async"),o.\u0275\u0275elementEnd()}if(2&z){const S=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("selectedHour",o.\u0275\u0275pipeBind1(1,4,S.selectedHour))("minTime",S.minTime)("maxTime",S.maxTime)("format",S.format)}}function pr(z,w){if(1&z){const S=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ngx-material-timepicker-12-hours-face",18),o.\u0275\u0275listener("hourChange",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(He.onHourChange(pe))})("hourSelected",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(He.onHourSelected(pe))}),o.\u0275\u0275pipe(1,"async"),o.\u0275\u0275pipe(2,"async"),o.\u0275\u0275elementEnd()}if(2&z){const S=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("selectedHour",o.\u0275\u0275pipeBind1(1,4,S.selectedHour))("period",o.\u0275\u0275pipeBind1(2,6,S.selectedPeriod))("minTime",S.minTime)("maxTime",S.maxTime)}}function so(z,w){if(1&z&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275template(1,Jt,2,6,"ngx-material-timepicker-24-hours-face",15),o.\u0275\u0275template(2,pr,3,8,"ng-template",null,16,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementEnd()),2&z){const S=o.\u0275\u0275reference(3),H=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",24===H.format)("ngIfElse",S)}}function Cn(z,w){if(1&z){const S=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ngx-material-timepicker-minutes-face",19),o.\u0275\u0275listener("minuteChange",function(pe){o.\u0275\u0275restoreView(S);const He=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(He.onMinuteChange(pe))}),o.\u0275\u0275pipe(1,"async"),o.\u0275\u0275pipe(2,"async"),o.\u0275\u0275pipe(3,"async"),o.\u0275\u0275elementEnd()}if(2&z){const S=o.\u0275\u0275nextContext();let H;o.\u0275\u0275property("selectedMinute",o.\u0275\u0275pipeBind1(1,7,S.selectedMinute))("selectedHour",null==(H=o.\u0275\u0275pipeBind1(2,9,S.selectedHour))?null:H.time)("minTime",S.minTime)("maxTime",S.maxTime)("format",S.format)("period",o.\u0275\u0275pipeBind1(3,11,S.selectedPeriod))("minutesGap",S.minutesGap)}}function hn(z,w){1&z&&o.\u0275\u0275elementContainer(0)}function Gn(z,w){1&z&&o.\u0275\u0275elementContainer(0)}function po(z,w){1&z&&(o.\u0275\u0275elementStart(0,"ngx-material-timepicker-button"),o.\u0275\u0275text(1,"Cancel"),o.\u0275\u0275elementEnd())}function Wr(z,w){1&z&&(o.\u0275\u0275elementStart(0,"ngx-material-timepicker-button"),o.\u0275\u0275text(1,"Ok"),o.\u0275\u0275elementEnd())}const cc=function(z){return{"timepicker-backdrop-overlay--transparent":z}};var Ei=(()=>{return(z=Ei||(Ei={}))[z.HOUR=0]="HOUR",z[z.MINUTE=1]="MINUTE",Ei;var z})(),xs=(()=>{return(z=xs||(xs={})).AM="AM",z.PM="PM",xs;var z})(),lc=(()=>{return(z=lc||(lc={})).TWELVE="hh:mm a",z.TWELVE_SHORT="h:m a",z.TWENTY_FOUR="HH:mm",z.TWENTY_FOUR_SHORT="H:m",lc;var z})();function L1(z,w,S="minutes"){return"hours"===S?z.hour>=w.hour:"minutes"===S?z.hasSame(w,S)||z.valueOf()>w.valueOf():void 0}function B2(z,w,S="minutes"){return"hours"===S?z.hour<=w.hour:"minutes"===S?z.hasSame(w,S)||z.valueOf()<=w.valueOf():void 0}let Pa=(()=>{class z{static parseTime(S,H){const{numberingSystem:pe,locale:He}=z.getLocaleOptionsByTime(S,H),Nt=2===S.split(" ").length?lc.TWELVE_SHORT:lc.TWENTY_FOUR_SHORT;return E.fromFormat(S,Nt,{numberingSystem:pe,locale:He})}static formatTime(S,H){if(!S)return"Invalid Time";const{format:pe}=H,He=z.parseTime(S,H).setLocale(z.DEFAULT_LOCALE);return He.isValid?24!==pe?He.toLocaleString(Object.assign(Object.assign({},E.TIME_SIMPLE),{hour12:24!==pe,numberingSystem:z.DEFAULT_NUMBERING_SYSTEM})).replace(/\u200E/g,"").replace(/\u202F/g," "):He.toISOTime({includeOffset:!1,suppressMilliseconds:!0,suppressSeconds:!0}).replace(/\u200E/g,"").replace(/\u202F/g," "):null}static toLocaleTimeString(S,H={}){const{format:pe=z.DEFAULT_FORMAT,locale:He=z.DEFAULT_LOCALE}=H,St=24===pe?"h23":"h12",Nt=Object.assign(Object.assign({},E.TIME_SIMPLE),{hourCycle:St}),Ut=24===pe?lc.TWENTY_FOUR_SHORT:lc.TWELVE_SHORT,An=Object.assign({locale:H.locale,numberingSystem:H.numberingSystem},Nt);return E.fromFormat(S,Ut).setLocale(He).toLocaleString(An).replace(/\u202F/g," ")}static isTimeAvailable(S,H,pe,He,St,Nt){if(!S)return;const Ut=this.parseTime(S,{format:Nt}),An=Ut.minute;if(St&&An==An&&An%St!=0)throw new Error(`Your minutes - ${An} doesn't match your minutesGap - ${St}`);const zn=H&&!pe&&L1(Ut,H,He),no=pe&&!H&&B2(Ut,pe,He),jo=H&&pe&&function I3(z,w,S,H="minutes"){return"hours"===H?B2(z,S,H)&&L1(z,w,H):"minutes"===H?B2(z,S)&&L1(z,w):void 0}(Ut,H,pe,He);return zn||no||jo||!H&&!pe}static formatHour(S,H,pe){if(24===H)return S;const He=pe===xs.AM?S:S+12;return pe===xs.AM&&12===He?0:pe===xs.PM&&24===He?12:He}static fromDateTimeToString(S,H){const pe=24===H?lc.TWENTY_FOUR:lc.TWELVE;return S.reconfigure({numberingSystem:z.DEFAULT_NUMBERING_SYSTEM,locale:z.DEFAULT_LOCALE}).toFormat(pe).replace(/\u202F/g," ")}static getLocaleOptionsByTime(S,H){const pe={numberingSystem:H.numberingSystem,locale:H.locale},He={numberingSystem:z.DEFAULT_NUMBERING_SYSTEM,locale:z.DEFAULT_LOCALE};return isNaN(parseInt(S,10))?pe:He}}return z.DEFAULT_FORMAT=12,z.DEFAULT_LOCALE="en-US",z.DEFAULT_NUMBERING_SYSTEM="latn",z})();const j2={time:12,angle:360},f2={time:0,angle:360};let S0=(()=>{class z{constructor(){this.hourSubject=new g.X(j2),this.minuteSubject=new g.X(f2),this.periodSubject=new g.X(xs.AM)}set hour(S){this.hourSubject.next(S)}get selectedHour(){return this.hourSubject.asObservable()}set minute(S){this.minuteSubject.next(S)}get selectedMinute(){return this.minuteSubject.asObservable()}set period(S){(S===xs.AM||S===xs.PM)&&this.periodSubject.next(S)}get selectedPeriod(){return this.periodSubject.asObservable()}setDefaultTimeIfAvailable(S,H,pe,He,St){try{Pa.isTimeAvailable(S,H,pe,"minutes",St)&&this.setDefaultTime(S,He)}catch(Nt){console.error(Nt)}}getFullTime(S){const H=this.hourSubject.getValue().time,pe=this.minuteSubject.getValue().time,Ut=`${H??j2.time}:${pe??f2.time} ${12===S?this.periodSubject.getValue():""}`.trim();return Pa.formatTime(Ut,{format:S})}setDefaultTime(S,H){const pe=Pa.parseTime(S,{format:H}).toJSDate();if(E.fromJSDate(pe).isValid){const He=S.substr(S.length-2).toUpperCase(),St=pe.getHours();this.hour=Object.assign(Object.assign({},j2),{time:V1(St,He)}),this.minute=Object.assign(Object.assign({},f2),{time:pe.getMinutes()}),this.period=He}else this.resetTime()}resetTime(){this.hour=Object.assign({},j2),this.minute=Object.assign({},f2),this.period=xs.AM}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275prov=o.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();function V1(z,w){switch(w){case xs.AM:return 0===z?12:z;case xs.PM:return 12===z?12:z-12;default:return z}}const qa=new o.InjectionToken("TimeLocale",{providedIn:"root",factory:()=>Pa.DEFAULT_LOCALE}),Mc=new o.InjectionToken("NumberingSystem",{providedIn:"root",factory:()=>Pa.DEFAULT_NUMBERING_SYSTEM});let Qe=(()=>{class z{constructor(){this.backdropClickSubject=new h.xQ,this.keydownEventSubject=new h.xQ}get backdropClick(){return this.backdropClickSubject.asObservable().pipe((0,L.d)({bufferSize:1,refCount:!0}))}get keydownEvent(){return this.keydownEventSubject.asObservable().pipe((0,L.d)({bufferSize:1,refCount:!0}))}dispatchEvent(S){switch(S.type){case"click":this.backdropClickSubject.next(S);break;case"keydown":this.keydownEventSubject.next(S);break;default:throw new Error("no such event type")}}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275prov=o.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),G1=(()=>{class z{constructor(S,H){this.renderer=H,this.element=S.nativeElement}get inputCords(){return this.inputElement.getBoundingClientRect()}get direction(){const S=this.element.offsetHeight,{bottom:H,top:pe}=this._inputCords,He=(window&&window.innerHeight)-H<S;return He&&pe>S?"top":He&&pe<S?"center":"bottom"}ngAfterViewInit(){this._inputCords=this.inputCords,this._direction=this.direction,this.append()}changePosition(){const{bottom:S,top:H}=this.inputCords,pe=this.defineElementYByDirection(H,S);this.setStyle("top",`${pe}px`)}append(){const{left:S,bottom:H,top:pe}=this._inputCords,He=this.defineElementYByDirection(pe,H);this.setStyle("position","fixed"),this.setStyle("left",`${S}px`),this.setStyle("top",`${He}px`)}setStyle(S,H){this.renderer.setStyle(this.element,S,H)}defineElementYByDirection(S,H){return"top"===this._direction?S-this.element.offsetHeight:"center"===this._direction?S-this.element.offsetHeight/2:H}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2))},z.\u0275dir=o.\u0275\u0275defineDirective({type:z,selectors:[["","ngxAppendToInput",""]],hostBindings:function(S,H){1&S&&o.\u0275\u0275listener("scroll",function(){return H.changePosition()},!1,o.\u0275\u0275resolveWindow)},inputs:{inputElement:["ngxAppendToInput","inputElement"]}}),z})(),W2=(()=>{class z{}return z.\u0275fac=function(S){return new(S||z)},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-content"]],inputs:{appendToInput:"appendToInput",inputElement:"inputElement"},ngContentSelectors:Xn,decls:5,vars:2,consts:[[3,"ngxAppendToInput",4,"ngIf","ngIfElse"],["timepickerModal",""],["timepickerOutlet",""],[3,"ngxAppendToInput"],[4,"ngTemplateOutlet"]],template:function(S,H){if(1&S&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,Mt,2,2,"div",0),o.\u0275\u0275template(1,nn,1,1,"ng-template",null,1,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275template(3,Bn,1,0,"ng-template",null,2,o.\u0275\u0275templateRefExtractor)),2&S){const pe=o.\u0275\u0275reference(2);o.\u0275\u0275property("ngIf",H.appendToInput)("ngIfElse",pe)}},dependencies:[a.NgIf,G1,a.NgTemplateOutlet],encapsulation:2}),z})();class Rs{static getHours(w){return Array(w).fill(1).map((S,H)=>{const He=S+H;return{time:24===He?0:He,angle:30*He}})}static disableHours(w,S){return S.min||S.max?w.map(H=>{const pe=24===S.format?H.time:Pa.formatHour(H.time,S.format,S.period),He=E.fromObject({hour:pe}).toFormat(lc.TWELVE);return Object.assign(Object.assign({},H),{disabled:!Pa.isTimeAvailable(He,S.min,S.max,"hours")})}):w}static getMinutes(w=1){const pe=[];for(let He=0;He<60;He++){const St=6*He;He%w==0&&pe.push({time:He,angle:0!==St?St:360})}return pe}static disableMinutes(w,S,H){if(H.min||H.max){const pe=Pa.formatHour(S,H.format,H.period);return w.map(He=>{const St=E.fromObject({hour:pe,minute:He.time}).toFormat(lc.TWELVE);return Object.assign(Object.assign({},He),{disabled:!Pa.isTimeAvailable(St,H.min,H.max,"minutes")})})}return w}}let ta=(()=>{class z{constructor(S){this.locale=S}transform(S,H,pe=!1){if(null==S||""===S)return"";switch(H){case Ei.HOUR:return this.formatTime("hour",S,0===S||pe?"HH":"H");case Ei.MINUTE:return this.formatTime("minute",S,"mm");default:throw new Error(`There is no Time Unit with type ${H}`)}}formatTime(S,H,pe){try{return E.fromObject({[S]:+H}).setLocale(this.locale).toFormat(pe)}catch{throw new Error(`Cannot format provided time - ${H} to locale - ${this.locale}`)}}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(qa,16))},z.\u0275pipe=o.\u0275\u0275definePipe({name:"timeLocalizer",type:z,pure:!0}),z})(),Va=(()=>{class z{constructor(S,H){this.locale=S,this.numberingSystem=H}transform(S,H=Ei.HOUR){return null==S||""===S?"":isNaN(+S)?H===Ei.MINUTE?this.parseTime(S,"m","minute"):this.parseTime(S,"H","hour"):S}parseTime(S,H,pe){const He=E.fromFormat(String(S),H,{numberingSystem:this.numberingSystem,locale:this.locale})[pe];if(!isNaN(He))return He;throw new Error(`Cannot parse time - ${S}`)}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(qa,16),o.\u0275\u0275directiveInject(Mc,16))},z.\u0275pipe=o.\u0275\u0275definePipe({name:"timeParser",type:z,pure:!0}),z.\u0275prov=o.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac}),z})(),ys=(()=>{class z{constructor(S,H){this.element=S,this.document=H,this.activeElement=this.document.activeElement}ngOnChanges(){this.isFocusActive&&setTimeout(()=>this.element.nativeElement.focus({preventScroll:!0}))}ngOnDestroy(){setTimeout(()=>this.activeElement.focus({preventScroll:!0}))}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(a.DOCUMENT,8))},z.\u0275dir=o.\u0275\u0275defineDirective({type:z,selectors:[["","timepickerAutofocus",""]],inputs:{isFocusActive:["timepickerAutofocus","isFocusActive"]},features:[o.\u0275\u0275NgOnChangesFeature]}),z})(),Qs=(()=>{class z{constructor(S,H){this.timeParserPipe=S,this.timeLocalizerPipe=H,this.timeUnitChanged=new o.EventEmitter,this.timeChanged=new o.EventEmitter,this.focused=new o.EventEmitter,this.unfocused=new o.EventEmitter}get selectedTime(){if(this.time)return this.timeList.find(S=>S.time===+this.time)}ngOnInit(){this.isEditable&&(this.timeControl=new Be.FormControl({value:this.formatTimeForUI(this.time),disabled:this.disabled}),this.timeControl.valueChanges.pipe((0,v.b)(S=>{S.length>2&&this.updateInputValue(S.slice(-1))}),(0,b.b)(500),(0,k.x)(),(0,F.h)(S=>!function Ys(z,w,S){if(/\d/.test(w))return La(w,S)}(0,S,this.timeList)),(0,v.b)(S=>this.time=this.timeParserPipe.transform(S,this.timeUnit).toString())).subscribe(()=>this.updateTime()))}saveTimeAndChangeTimeUnit(S,H){S.preventDefault(),this.previousTime=this.time,this.timeUnitChanged.next(H),this.focused.next()}updateTime(){const S=this.selectedTime;S&&(this.timeChanged.next(S),this.previousTime=S.time,this.isEditable&&this.updateInputValue(this.formatTimeForUI(S.time)))}onKeydown(S){!function A3(z){return!!([46,8,9,27,13].some(w=>w===z.keyCode)||65==z.keyCode&&(!0===z.ctrlKey||!0===z.metaKey)||67==z.keyCode&&(!0===z.ctrlKey||!0===z.metaKey)||88==z.keyCode&&(!0===z.ctrlKey||!0===z.metaKey)||z.keyCode>=35&&z.keyCode<=40)||!((z.keyCode<48||z.keyCode>57)&&(z.keyCode<96||z.keyCode>105))}(S)?S.preventDefault():this.changeTimeByArrow(S.keyCode)}changeTimeByArrow(S){let He;38===S?He=String(+this.time+(this.minutesGap||1)):40===S&&(He=String(+this.time-(this.minutesGap||1))),La(He,this.timeList)||(this.time=He,this.updateTime())}formatTimeForUI(S){const H=this.timeParserPipe.transform(S,this.timeUnit).toString();return this.timeLocalizerPipe.transform(H,this.timeUnit,!0)}updateInputValue(S){this.editableTimeTmpl.nativeElement.value=S}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(Va),o.\u0275\u0275directiveInject(ta))},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-dial-control"]],viewQuery:function(S,H){if(1&S&&o.\u0275\u0275viewQuery(Yr,5),2&S){let pe;o.\u0275\u0275queryRefresh(pe=o.\u0275\u0275loadQuery())&&(H.editableTimeTmpl=pe.first)}},inputs:{timeList:"timeList",timeUnit:"timeUnit",time:"time",isActive:"isActive",isEditable:"isEditable",minutesGap:"minutesGap",disabled:"disabled"},outputs:{timeUnitChanged:"timeUnitChanged",timeChanged:"timeChanged",focused:"focused",unfocused:"unfocused"},features:[o.\u0275\u0275ProvidersFeature([Va,ta])],decls:3,vars:2,consts:[["class","timepicker-dial__control timepicker-dial__item","readonly","",3,"ngClass","ngModel","disabled","timepickerAutofocus","ngModelChange","input","focus",4,"ngIf","ngIfElse"],["editableTemplate",""],["readonly","",1,"timepicker-dial__control","timepicker-dial__item",3,"ngClass","ngModel","disabled","timepickerAutofocus","ngModelChange","input","focus"],[1,"timepicker-dial__control","timepicker-dial__item","timepicker-dial__control_editable",3,"formControl","ngClass","timepickerAutofocus","focus","keydown"],["editableTimeTmpl",""]],template:function(S,H){if(1&S&&(o.\u0275\u0275template(0,mr,2,9,"input",0),o.\u0275\u0275template(1,zr,2,5,"ng-template",null,1,o.\u0275\u0275templateRefExtractor)),2&S){const pe=o.\u0275\u0275reference(2);o.\u0275\u0275property("ngIf",!H.isEditable)("ngIfElse",pe)}},dependencies:[a.NgIf,Be.DefaultValueAccessor,a.NgClass,Be.NgControlStatus,Be.NgModel,ys,Be.FormControlDirective,ta],styles:['.timepicker-dial__item[_ngcontent-%COMP%]{cursor:pointer;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__item[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__item_active[_ngcontent-%COMP%]{color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__item_active[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-dial__control[_ngcontent-%COMP%]{border:none;background-color:transparent;font-size:50px;width:60px;padding:0;border-radius:3px;text-align:right}.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{color:#00bfff;background-color:#fff;outline:deepskyblue}@supports (color: var(--dial-editable-active-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{color:var(--dial-editable-active-color)}}@supports (background-color: var(--dial-editable-background-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{background-color:var(--dial-editable-background-color)}}@supports (outline: var(--dial-editable-active-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{outline:var(--dial-editable-active-color)}}.timepicker-dial__control[_ngcontent-%COMP%]:disabled{cursor:default}.timepicker-dial__control[_ngcontent-%COMP%]:focus-visible{outline:none}']}),z})();function La(z,w){const S=w.find(H=>H.time===+z);return!S||S&&S.disabled}let bl=(()=>{class z{constructor(){this.timePeriod=xs,this.isPeriodAvailable=!0,this.periodChanged=new o.EventEmitter}changePeriod(S){this.isPeriodAvailable=this.isSwitchPeriodAvailable(S),this.isPeriodAvailable&&this.periodChanged.next(S)}animationDone(){this.isPeriodAvailable=!0}isSwitchPeriodAvailable(S){return!this.getDisabledTimeByPeriod(S).every(pe=>pe.disabled)}getDisabledTimeByPeriod(S){switch(this.activeTimeUnit){case Ei.HOUR:return Rs.disableHours(this.hours,{min:this.minTime,max:this.maxTime,format:this.format,period:S});case Ei.MINUTE:return Rs.disableMinutes(this.minutes,+this.selectedHour,{min:this.minTime,max:this.maxTime,format:this.format,period:S});default:throw new Error("no such TimeUnit")}}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-period"]],inputs:{selectedPeriod:"selectedPeriod",format:"format",activeTimeUnit:"activeTimeUnit",hours:"hours",minutes:"minutes",minTime:"minTime",maxTime:"maxTime",selectedHour:"selectedHour",meridiems:"meridiems"},outputs:{periodChanged:"periodChanged"},decls:6,vars:9,consts:[[1,"timepicker-period"],["type","button",1,"timepicker-dial__item","timepicker-period__btn",3,"ngClass","click"],["class","timepicker-period__warning",4,"ngIf"],[1,"timepicker-period__warning"]],template:function(S,H){1&S&&(o.\u0275\u0275elementStart(0,"div",0)(1,"button",1),o.\u0275\u0275listener("click",function(){return H.changePeriod(H.timePeriod.AM)}),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"button",1),o.\u0275\u0275listener("click",function(){return H.changePeriod(H.timePeriod.PM)}),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(5,No,3,1,"div",2),o.\u0275\u0275elementEnd()),2&S&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(5,vr,H.selectedPeriod===H.timePeriod.AM)),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(H.meridiems[0]),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(7,vr,H.selectedPeriod===H.timePeriod.PM)),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(H.meridiems[1]),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!H.isPeriodAvailable))},dependencies:[a.NgClass,a.NgIf],styles:['.timepicker-dial__item[_ngcontent-%COMP%]{cursor:pointer;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__item[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__item_active[_ngcontent-%COMP%]{color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__item_active[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-period[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative}.timepicker-period__btn[_ngcontent-%COMP%]{padding:1px 3px;border:0;background-color:transparent;font-size:18px;font-weight:500;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline:none;border-radius:3px;transition:background-color .5s;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-period__btn[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}.timepicker-period__btn[_ngcontent-%COMP%]:focus{background-color:#00000012}.timepicker-period__warning[_ngcontent-%COMP%]{padding:5px 10px;border-radius:3px;background-color:#0000008c;color:#fff;position:absolute;width:200px;left:-20px;top:40px}.timepicker-period__warning[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0;font-size:12px;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-period__warning[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}'],data:{animation:[(0,I.X$)("scaleInOut",[(0,I.eR)(":enter",[(0,I.oB)({transform:"scale(0)"}),(0,I.jt)(".2s",(0,I.oB)({transform:"scale(1)"})),(0,I.vP)([(0,I.jt)("3s",(0,I.oB)({opacity:1})),(0,I.jt)(".3s",(0,I.oB)({opacity:0}))])])])]}}),z})(),Gc=(()=>{class z{constructor(S){this.locale=S,this.timeUnit=Ei,this.meridiems=Vi.meridiems({locale:this.locale}),this.periodChanged=new o.EventEmitter,this.timeUnitChanged=new o.EventEmitter,this.hourChanged=new o.EventEmitter,this.minuteChanged=new o.EventEmitter}ngOnChanges(S){if(S.period&&S.period.currentValue||S.format&&S.format.currentValue){const H=Rs.getHours(this.format);this.hours=Rs.disableHours(H,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}if(S.period&&S.period.currentValue||S.hour&&S.hour.currentValue){const H=Rs.getMinutes(this.minutesGap);this.minutes=Rs.disableMinutes(H,+this.hour,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}}changeTimeUnit(S){this.timeUnitChanged.next(S)}changePeriod(S){this.periodChanged.next(S)}changeHour(S){this.hourChanged.next(S),this.isEditable&&this.changeTimeUnit(Ei.MINUTE)}changeMinute(S){this.minuteChanged.next(S)}showHint(){this.isHintVisible=!0}hideHint(){this.isHintVisible=!1}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(qa))},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-dial"]],inputs:{editableHintTmpl:"editableHintTmpl",hour:"hour",minute:"minute",format:"format",period:"period",activeTimeUnit:"activeTimeUnit",minTime:"minTime",maxTime:"maxTime",isEditable:"isEditable",minutesGap:"minutesGap",hoursOnly:"hoursOnly"},outputs:{periodChanged:"periodChanged",timeUnitChanged:"timeUnitChanged",hourChanged:"hourChanged",minuteChanged:"minuteChanged"},features:[o.\u0275\u0275NgOnChangesFeature],decls:9,vars:25,consts:[[1,"timepicker-dial"],[1,"timepicker-dial__container"],[1,"timepicker-dial__time"],[3,"timeList","time","timeUnit","isActive","isEditable","timeUnitChanged","timeChanged","focused","unfocused"],[3,"timeList","time","timeUnit","isActive","isEditable","minutesGap","disabled","timeUnitChanged","timeChanged","focused","unfocused"],[1,"timepicker-dial__period",3,"ngClass","selectedPeriod","activeTimeUnit","maxTime","minTime","format","hours","minutes","selectedHour","meridiems","periodChanged"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngTemplateOutlet"],["editableHintDefault",""],[1,"timepicker-dial__hint"]],template:function(S,H){1&S&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"ngx-material-timepicker-dial-control",3),o.\u0275\u0275listener("timeUnitChanged",function(He){return H.changeTimeUnit(He)})("timeChanged",function(He){return H.changeHour(He)})("focused",function(){return H.showHint()})("unfocused",function(){return H.hideHint()}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"span"),o.\u0275\u0275text(5,":"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"ngx-material-timepicker-dial-control",4),o.\u0275\u0275listener("timeUnitChanged",function(He){return H.changeTimeUnit(He)})("timeChanged",function(He){return H.changeMinute(He)})("focused",function(){return H.showHint()})("unfocused",function(){return H.hideHint()}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(7,"ngx-material-timepicker-period",5),o.\u0275\u0275listener("periodChanged",function(He){return H.changePeriod(He)}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(8,ji,4,4,"div",6),o.\u0275\u0275elementEnd()),2&S&&(o.\u0275\u0275advance(3),o.\u0275\u0275property("timeList",H.hours)("time",H.hour)("timeUnit",H.timeUnit.HOUR)("isActive",H.activeTimeUnit===H.timeUnit.HOUR)("isEditable",H.isEditable),o.\u0275\u0275advance(3),o.\u0275\u0275property("timeList",H.minutes)("time",H.minute)("timeUnit",H.timeUnit.MINUTE)("isActive",H.activeTimeUnit===H.timeUnit.MINUTE)("isEditable",H.isEditable)("minutesGap",H.minutesGap)("disabled",H.hoursOnly),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(23,Ts,24===H.format))("selectedPeriod",H.period)("activeTimeUnit",H.activeTimeUnit)("maxTime",H.maxTime)("minTime",H.minTime)("format",H.format)("hours",H.hours)("minutes",H.minutes)("selectedHour",H.hour)("meridiems",H.meridiems),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",H.isEditable||H.editableHintTmpl))},dependencies:[Qs,bl,a.NgClass,a.NgIf,a.NgTemplateOutlet],styles:['.timepicker-dial[_ngcontent-%COMP%]{text-align:right}.timepicker-dial__container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;-webkit-tap-highlight-color:rgba(0,0,0,0)}.timepicker-dial__time[_ngcontent-%COMP%]{display:flex;align-items:baseline;line-height:normal;font-size:50px;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__time[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__period[_ngcontent-%COMP%]{display:block;margin-left:10px}.timepicker-dial__period--hidden[_ngcontent-%COMP%]{visibility:hidden}.timepicker-dial__hint-container--hidden[_ngcontent-%COMP%]{visibility:hidden}.timepicker-dial__hint[_ngcontent-%COMP%]{display:inline-block;font-size:10px;color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__hint[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-dial__hint[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}@media (max-device-width: 1023px) and (orientation: landscape){.timepicker-dial__container[_ngcontent-%COMP%]{flex-direction:column}.timepicker-dial__period[_ngcontent-%COMP%]{margin-left:0}}'],changeDetection:0}),z})(),kt=(()=>{class z{constructor(S){this.hourChange=new o.EventEmitter,this.hourSelected=new o.EventEmitter,this.hoursList=[],this.hoursList=Rs.getHours(S)}onTimeSelected(S){this.hourSelected.next(S)}}return z.\u0275fac=function(S){o.\u0275\u0275invalidFactory()},z.\u0275dir=o.\u0275\u0275defineDirective({type:z,inputs:{selectedHour:"selectedHour",minTime:"minTime",maxTime:"maxTime",format:"format"},outputs:{hourChange:"hourChange",hourSelected:"hourSelected"}}),z})(),Oa=(()=>{class z{transform(S,H,pe){return null!=S&&!pe&&S===H}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275pipe=o.\u0275\u0275definePipe({name:"activeHour",type:z,pure:!0}),z})(),Fs=(()=>{class z{transform(S,H,pe,He){return null!=S&&!He&&H===S&&S%(pe||5)==0}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275pipe=o.\u0275\u0275definePipe({name:"activeMinute",type:z,pure:!0}),z})(),Hs=(()=>{class z{transform(S,H=5){return S&&(S%H==0?S:"")}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275pipe=o.\u0275\u0275definePipe({name:"minutesFormatter",type:z,pure:!0}),z})();const xi_small_height="75px",xi_small_top="calc(50% - 75px)",xi_large_height="103px",xi_large_top="calc(50% - 103px)";let Ga=(()=>{class z{constructor(){this.timeUnit=Ei,this.innerClockFaceSize=85,this.timeChange=new o.EventEmitter,this.timeSelected=new o.EventEmitter}ngAfterViewInit(){this.setClockHandPosition(),this.addTouchEvents()}ngOnChanges(S){const H=S.faceTime,pe=S.selectedTime;H&&H.currentValue&&pe&&pe.currentValue&&(this.selectedTime=this.faceTime.find(He=>He.time===this.selectedTime.time)),pe&&pe.currentValue&&this.setClockHandPosition(),H&&H.currentValue&&setTimeout(()=>this.selectAvailableTime())}trackByTime(S,H){return H.time}onMousedown(S){S.preventDefault(),this.isStarted=!0}selectTime(S){if(!this.isStarted&&S instanceof MouseEvent&&"click"!==S.type)return;const H=this.clockFace.nativeElement.getBoundingClientRect(),pe=H.left+H.width/2,He=H.top+H.height/2,St=180*Math.atan(Math.abs(S.clientX-pe)/Math.abs(S.clientY-He))/Math.PI,Nt=function C(z,w,S,H,pe){return H>w&&S>=z?180-pe:H>w&&S<z?180+pe:H<w&&S<z?360-pe:pe}(pe,He,S.clientX,S.clientY,St),Ut=this.format&&this.isInnerClockFace(pe,He,S.clientX,S.clientY),no=(function wn(z,w){return Math.round(z/w)*w}(Nt,this.unit===Ei.MINUTE?6*(this.minutesGap||1):30)||360)+(Ut?360:0),jo=this.faceTime.find(Fr=>Fr.angle===no);jo&&!jo.disabled&&(this.timeChange.next(jo),this.isStarted||this.timeSelected.next(jo.time))}onMouseup(S){S.preventDefault(),this.isStarted=!1}ngOnDestroy(){this.removeTouchEvents()}addTouchEvents(){this.touchStartHandler=this.onMousedown.bind(this),this.touchEndHandler=this.onMouseup.bind(this),this.clockFace.nativeElement.addEventListener("touchstart",this.touchStartHandler),this.clockFace.nativeElement.addEventListener("touchend",this.touchEndHandler)}removeTouchEvents(){this.clockFace.nativeElement.removeEventListener("touchstart",this.touchStartHandler),this.clockFace.nativeElement.removeEventListener("touchend",this.touchEndHandler)}setClockHandPosition(){24===this.format&&(this.selectedTime.time>12||0===this.selectedTime.time?this.decreaseClockHand():this.increaseClockHand()),this.clockHand.nativeElement.style.transform=`rotate(${this.selectedTime.angle}deg)`}selectAvailableTime(){const S=this.faceTime.find(H=>this.selectedTime.time===H.time);if(this.isClockFaceDisabled=this.faceTime.every(H=>H.disabled),S&&S.disabled&&!this.isClockFaceDisabled){const H=this.faceTime.find(pe=>!pe.disabled);this.timeChange.next(H)}}isInnerClockFace(S,H,pe,He){return Math.sqrt(Math.pow(pe-S,2)+Math.pow(He-H,2))<this.innerClockFaceSize}decreaseClockHand(){this.clockHand.nativeElement.style.height=xi_small_height,this.clockHand.nativeElement.style.top=xi_small_top}increaseClockHand(){this.clockHand.nativeElement.style.height=xi_large_height,this.clockHand.nativeElement.style.top=xi_large_top}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-face"]],viewQuery:function(S,H){if(1&S&&(o.\u0275\u0275viewQuery(ws,7),o.\u0275\u0275viewQuery(Ki,7)),2&S){let pe;o.\u0275\u0275queryRefresh(pe=o.\u0275\u0275loadQuery())&&(H.clockFace=pe.first),o.\u0275\u0275queryRefresh(pe=o.\u0275\u0275loadQuery())&&(H.clockHand=pe.first)}},hostBindings:function(S,H){1&S&&o.\u0275\u0275listener("mousedown",function(He){return H.onMousedown(He)})("click",function(He){return H.selectTime(He)})("touchmove",function(He){return H.selectTime(He.changedTouches[0])})("touchend",function(He){return H.selectTime(He.changedTouches[0])})("mousemove",function(He){return H.selectTime(He)})("mouseup",function(He){return H.onMouseup(He)})},inputs:{faceTime:"faceTime",selectedTime:"selectedTime",unit:"unit",format:"format",minutesGap:"minutesGap"},outputs:{timeChange:"timeChange",timeSelected:"timeSelected"},features:[o.\u0275\u0275NgOnChangesFeature],decls:7,vars:6,consts:[[1,"clock-face"],["clockFace",""],["class","clock-face__container",4,"ngIf","ngIfElse"],[1,"clock-face__clock-hand",3,"ngClass","hidden"],["clockHand",""],["minutesFace",""],[1,"clock-face__container"],["class","clock-face__number clock-face__number--outer",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["class","clock-face__inner",3,"top",4,"ngIf"],[1,"clock-face__number","clock-face__number--outer",3,"ngStyle"],[3,"ngStyle","ngClass"],[1,"clock-face__inner"],["class","clock-face__number clock-face__number--inner",3,"ngStyle","height",4,"ngFor","ngForOf","ngForTrackBy"],[1,"clock-face__number","clock-face__number--inner",3,"ngStyle"]],template:function(S,H){if(1&S&&(o.\u0275\u0275elementStart(0,"div",0,1),o.\u0275\u0275template(2,_s,4,7,"div",2),o.\u0275\u0275element(3,"span",3,4),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(5,sc,2,2,"ng-template",null,5,o.\u0275\u0275templateRefExtractor)),2&S){const pe=o.\u0275\u0275reference(6);o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",H.unit!==H.timeUnit.MINUTE)("ngIfElse",pe),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction1(4,lr,H.unit===H.timeUnit.MINUTE))("hidden",H.isClockFaceDisabled)}},dependencies:[a.NgIf,a.NgForOf,a.NgStyle,a.NgClass,a.SlicePipe,Oa,ta,Fs,Hs],styles:['.clock-face[_ngcontent-%COMP%]{width:290px;height:290px;border-radius:50%;position:relative;display:flex;justify-content:center;padding:20px;box-sizing:border-box;background-color:#f0f0f0}@supports (background-color: var(--clock-face-background-color)){.clock-face[_ngcontent-%COMP%]{background-color:var(--clock-face-background-color)}}.clock-face__inner[_ngcontent-%COMP%]{position:absolute}.clock-face__container[_ngcontent-%COMP%]{margin-left:-2px}.clock-face__number[_ngcontent-%COMP%]{position:absolute;transform-origin:0 100%;width:50px;text-align:center;z-index:2}.clock-face__number--outer[_ngcontent-%COMP%]{height:calc(290px / 2 - 20px)}.clock-face__number--outer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:16px;color:#6c6c6c}@supports (color: var(--clock-face-time-inactive-color)){.clock-face__number--outer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--clock-face-time-inactive-color)}}.clock-face__number--inner[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px;color:#929292}@supports (color: var(--clock-face-inner-time-inactive-color)){.clock-face__number--inner[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--clock-face-inner-time-inactive-color)}}.clock-face__number[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;user-select:none;width:30px;height:30px;display:flex;justify-content:center;align-items:center;margin:auto;border-radius:50%;font-weight:500;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.clock-face__number[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}.clock-face__number[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{background-color:#00bfff;color:#fff}@supports (background-color: var(--clock-hand-color)){.clock-face__number[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{background-color:var(--clock-hand-color);color:var(--clock-face-time-active-color)}}.clock-face__number[_ngcontent-%COMP%] > span.disabled[_ngcontent-%COMP%]{color:#c5c5c5}@supports (color: var(--clock-face-time-disabled-color)){.clock-face__number[_ngcontent-%COMP%] > span.disabled[_ngcontent-%COMP%]{color:var(--clock-face-time-disabled-color)}}.clock-face__clock-hand[_ngcontent-%COMP%]{height:103px;width:2px;transform-origin:0 100%;position:absolute;top:calc(50% - 103px);z-index:1;background-color:#00bfff}@supports (background-color: var(--clock-hand-color)){.clock-face__clock-hand[_ngcontent-%COMP%]{background-color:var(--clock-hand-color)}}.clock-face__clock-hand[_ngcontent-%COMP%]:after{content:"";width:7px;height:7px;border-radius:50%;background-color:inherit;position:absolute;bottom:-3px;left:-3.5px}.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{content:"";width:7px;height:7px;background-color:#fff;border-radius:50%;position:absolute;top:-8px;left:calc(50% - 8px);box-sizing:content-box;border-width:4px;border-style:solid;border-color:#00bfff}@supports (border-color: var(--clock-hand-color)){.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{border-color:var(--clock-hand-color)}}@media (max-device-width: 1023px) and (orientation: landscape){.clock-face[_ngcontent-%COMP%]{width:225px;height:225px;padding:5px}.clock-face__number--outer[_ngcontent-%COMP%]{height:calc(225px / 2 - 5px)}.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{top:0}}'],changeDetection:0}),z})(),B=(()=>{class z extends kt{constructor(){super(24)}ngAfterContentInit(){this.hoursList=Rs.disableHours(this.hoursList,{min:this.minTime,max:this.maxTime,format:this.format})}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-24-hours-face"]],features:[o.\u0275\u0275InheritDefinitionFeature],decls:1,vars:3,consts:[[3,"selectedTime","faceTime","format","timeChange","timeSelected"]],template:function(S,H){1&S&&(o.\u0275\u0275elementStart(0,"ngx-material-timepicker-face",0),o.\u0275\u0275listener("timeChange",function(He){return H.hourChange.next(He)})("timeSelected",function(He){return H.onTimeSelected(He)}),o.\u0275\u0275elementEnd()),2&S&&o.\u0275\u0275property("selectedTime",H.selectedHour)("faceTime",H.hoursList)("format",H.format)},dependencies:[Ga],encapsulation:2,changeDetection:0}),z})(),ae=(()=>{class z extends kt{constructor(){super(12)}ngOnChanges(S){S.period&&S.period.currentValue&&(this.hoursList=Rs.disableHours(this.hoursList,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period}))}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-12-hours-face"]],inputs:{period:"period"},features:[o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature],decls:1,vars:2,consts:[[3,"selectedTime","faceTime","timeChange","timeSelected"]],template:function(S,H){1&S&&(o.\u0275\u0275elementStart(0,"ngx-material-timepicker-face",0),o.\u0275\u0275listener("timeChange",function(He){return H.hourChange.next(He)})("timeSelected",function(He){return H.onTimeSelected(He)}),o.\u0275\u0275elementEnd()),2&S&&o.\u0275\u0275property("selectedTime",H.selectedHour)("faceTime",H.hoursList)},dependencies:[Ga],encapsulation:2,changeDetection:0}),z})(),Se=(()=>{class z{constructor(){this.minutesList=[],this.timeUnit=Ei,this.minuteChange=new o.EventEmitter}ngOnChanges(S){if(S.period&&S.period.currentValue){const H=Rs.getMinutes(this.minutesGap);this.minutesList=Rs.disableMinutes(H,this.selectedHour,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-minutes-face"]],inputs:{selectedMinute:"selectedMinute",selectedHour:"selectedHour",period:"period",minTime:"minTime",maxTime:"maxTime",format:"format",minutesGap:"minutesGap"},outputs:{minuteChange:"minuteChange"},features:[o.\u0275\u0275NgOnChangesFeature],decls:1,vars:4,consts:[[3,"faceTime","selectedTime","minutesGap","unit","timeChange"]],template:function(S,H){1&S&&(o.\u0275\u0275elementStart(0,"ngx-material-timepicker-face",0),o.\u0275\u0275listener("timeChange",function(He){return H.minuteChange.next(He)}),o.\u0275\u0275elementEnd()),2&S&&o.\u0275\u0275property("faceTime",H.minutesList)("selectedTime",H.selectedMinute)("minutesGap",H.minutesGap)("unit",H.timeUnit.MINUTE)},dependencies:[Ga],encapsulation:2}),z})(),Ke=(()=>{class z{}return z.\u0275fac=function(S){return new(S||z)},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-button"]],ngContentSelectors:Xn,decls:3,vars:0,consts:[["type","button",1,"timepicker-button"]],template:function(S,H){1&S&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"button",0)(1,"span"),o.\u0275\u0275projection(2),o.\u0275\u0275elementEnd()())},styles:['.timepicker-button[_ngcontent-%COMP%]{display:inline-block;height:36px;min-width:88px;line-height:36px;border:12px;border-radius:2px;background-color:transparent;text-align:center;transition:all .45s cubic-bezier(.23,1,.32,1);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;cursor:pointer;outline:none;color:#00bfff}@supports (color: var(--button-color)){.timepicker-button[_ngcontent-%COMP%]{color:var(--button-color)}}.timepicker-button[_ngcontent-%COMP%]:hover, .timepicker-button[_ngcontent-%COMP%]:focus{background-color:#9993}.timepicker-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;font-weight:600;padding-left:16px;padding-right:16px;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}']}),z})(),Dt=(()=>{class z{constructor(S){this.eventService=S}onClick(S){this.preventClick||this.eventService.dispatchEvent(S),S.preventDefault()}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(Qe))},z.\u0275dir=o.\u0275\u0275defineDirective({type:z,selectors:[["","overlay",""]],hostBindings:function(S,H){1&S&&o.\u0275\u0275listener("click",function(He){return H.onClick(He)})},inputs:{preventClick:["overlay","preventClick"]}}),z})(),ln=(()=>{class z{constructor(S){this.element=S.nativeElement}ngAfterViewInit(){this.theme&&this.setTheme(this.theme)}setTheme(S){for(const H in S)if(S.hasOwnProperty(H)){if("string"==typeof S[H]){for(const pe in S)S.hasOwnProperty(pe)&&this.element.style.setProperty(`--${qn(pe)}`,S[pe]);return}this.setTheme(S[H])}}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(o.ElementRef))},z.\u0275dir=o.\u0275\u0275defineDirective({type:z,selectors:[["","ngxMaterialTimepickerTheme",""]],inputs:{theme:["ngxMaterialTimepickerTheme","theme"]}}),z})();function qn(z){return z.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var $n=(()=>{return(z=$n||($n={})).ENTER="enter",z.LEAVE="leave",$n;var z})();let to=(()=>{class z{constructor(S,H,pe){this.timepickerService=S,this.eventService=H,this.locale=pe,this.timeUnit=Ei,this.activeTimeUnit=Ei.HOUR,this.unsubscribe=new h.xQ}set defaultTime(S){this._defaultTime=S,this.setDefaultTime(S)}get defaultTime(){return this._defaultTime}onKeydown(S){this.eventService.dispatchEvent(S),S.stopPropagation()}ngOnInit(){this.animationState=!this.disableAnimation&&$n.ENTER,this.defineTime(),this.selectedHour=this.timepickerService.selectedHour.pipe((0,L.d)({bufferSize:1,refCount:!0})),this.selectedMinute=this.timepickerService.selectedMinute.pipe((0,L.d)({bufferSize:1,refCount:!0})),this.selectedPeriod=this.timepickerService.selectedPeriod.pipe((0,L.d)({bufferSize:1,refCount:!0})),this.timepickerBaseRef.timeUpdated.pipe((0,Y.R)(this.unsubscribe)).subscribe(this.setDefaultTime.bind(this))}onHourChange(S){this.timepickerService.hour=S,this.onTimeChange()}onHourSelected(S){this.hoursOnly||this.changeTimeUnit(Ei.MINUTE),this.timepickerBaseRef.hourSelected.next(S)}onMinuteChange(S){this.timepickerService.minute=S,this.onTimeChange()}changePeriod(S){this.timepickerService.period=S,this.onTimeChange()}changeTimeUnit(S){this.activeTimeUnit=S}setTime(){this.timepickerBaseRef.timeSet.next(this.timepickerService.getFullTime(this.format)),this.close()}close(){this.disableAnimation?this.timepickerBaseRef.close():this.animationState=$n.LEAVE}animationDone(S){"done"===S.phaseName&&S.toState===$n.LEAVE&&this.timepickerBaseRef.close()}ngOnDestroy(){this.unsubscribe.next(),this.unsubscribe.complete()}setDefaultTime(S){this.timepickerService.setDefaultTimeIfAvailable(S,this.minTime,this.maxTime,this.format,this.minutesGap)}defineTime(){const S=this.minTime;if(S&&!this.time&&!this.defaultTime){const H=Pa.fromDateTimeToString(S,this.format);this.setDefaultTime(H)}}onTimeChange(){const S=Pa.toLocaleTimeString(this.timepickerService.getFullTime(this.format),{locale:this.locale,format:this.format});this.timepickerBaseRef.timeChanged.emit(S)}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(S0),o.\u0275\u0275directiveInject(Qe),o.\u0275\u0275directiveInject(qa))},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker-container"]],hostBindings:function(S,H){1&S&&o.\u0275\u0275listener("keydown",function(He){return H.onKeydown(He)})},inputs:{defaultTime:"defaultTime"},features:[o.\u0275\u0275ProvidersFeature([S0])],decls:22,vars:31,consts:[[1,"timepicker-backdrop-overlay",3,"overlay","ngClass"],[1,"timepicker-overlay"],[3,"appendToInput","inputElement","ngxMaterialTimepickerTheme"],[1,"timepicker",3,"ngClass"],[1,"timepicker__header"],[3,"format","hour","minute","period","activeTimeUnit","minTime","maxTime","isEditable","editableHintTmpl","minutesGap","hoursOnly","periodChanged","timeUnitChanged","hourChanged","minuteChanged"],[1,"timepicker__main-content"],[1,"timepicker__body",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"selectedMinute","selectedHour","minTime","maxTime","format","period","minutesGap","minuteChange",4,"ngSwitchCase"],[1,"timepicker__actions"],[3,"click"],[4,"ngTemplateOutlet"],["cancelBtnDefault",""],["confirmBtnDefault",""],[3,"selectedHour","minTime","maxTime","format","hourChange","hourSelected",4,"ngIf","ngIfElse"],["ampmHours",""],[3,"selectedHour","minTime","maxTime","format","hourChange","hourSelected"],[3,"selectedHour","period","minTime","maxTime","hourChange","hourSelected"],[3,"selectedMinute","selectedHour","minTime","maxTime","format","period","minutesGap","minuteChange"]],template:function(S,H){if(1&S&&(o.\u0275\u0275element(0,"div",0),o.\u0275\u0275elementStart(1,"div",1)(2,"ngx-material-timepicker-content",2)(3,"div",3),o.\u0275\u0275listener("@timepicker.done",function(He){return H.animationDone(He)}),o.\u0275\u0275elementStart(4,"header",4)(5,"ngx-material-timepicker-dial",5),o.\u0275\u0275listener("periodChanged",function(He){return H.changePeriod(He)})("timeUnitChanged",function(He){return H.changeTimeUnit(He)})("hourChanged",function(He){return H.onHourChange(He)})("minuteChanged",function(He){return H.onMinuteChange(He)}),o.\u0275\u0275pipe(6,"async"),o.\u0275\u0275pipe(7,"async"),o.\u0275\u0275pipe(8,"async"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"div",6)(10,"div",7),o.\u0275\u0275template(11,so,4,2,"div",8),o.\u0275\u0275template(12,Cn,4,13,"ngx-material-timepicker-minutes-face",9),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(13,"div",10)(14,"div",11),o.\u0275\u0275listener("click",function(){return H.close()}),o.\u0275\u0275template(15,hn,1,0,"ng-container",12),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(16,"div",11),o.\u0275\u0275listener("click",function(){return H.setTime()}),o.\u0275\u0275template(17,Gn,1,0,"ng-container",12),o.\u0275\u0275elementEnd()()()()()(),o.\u0275\u0275template(18,po,2,0,"ng-template",null,13,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275template(20,Wr,2,0,"ng-template",null,14,o.\u0275\u0275templateRefExtractor)),2&S){const pe=o.\u0275\u0275reference(19),He=o.\u0275\u0275reference(21);let St,Nt;o.\u0275\u0275property("overlay",H.preventOverlayClick)("ngClass",o.\u0275\u0275pureFunction1(29,cc,H.appendToInput)),o.\u0275\u0275advance(2),o.\u0275\u0275property("appendToInput",H.appendToInput)("inputElement",H.inputElement)("ngxMaterialTimepickerTheme",H.theme),o.\u0275\u0275advance(1),o.\u0275\u0275property("@timepicker",H.animationState)("ngClass",H.timepickerClass),o.\u0275\u0275advance(2),o.\u0275\u0275property("format",H.format)("hour",null==(St=o.\u0275\u0275pipeBind1(6,23,H.selectedHour))?null:St.time)("minute",null==(Nt=o.\u0275\u0275pipeBind1(7,25,H.selectedMinute))?null:Nt.time)("period",o.\u0275\u0275pipeBind1(8,27,H.selectedPeriod))("activeTimeUnit",H.activeTimeUnit)("minTime",H.minTime)("maxTime",H.maxTime)("isEditable",H.enableKeyboardInput)("editableHintTmpl",H.editableHintTmpl)("minutesGap",H.minutesGap)("hoursOnly",H.hoursOnly),o.\u0275\u0275advance(5),o.\u0275\u0275property("ngSwitch",H.activeTimeUnit),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase",H.timeUnit.HOUR),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase",H.timeUnit.MINUTE),o.\u0275\u0275advance(3),o.\u0275\u0275property("ngTemplateOutlet",H.cancelBtnTmpl?H.cancelBtnTmpl:pe),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngTemplateOutlet",H.confirmBtnTmpl?H.confirmBtnTmpl:He)}},dependencies:[W2,Gc,B,ae,Se,Ke,Dt,a.NgClass,ln,a.NgSwitch,a.NgSwitchCase,a.NgIf,a.NgTemplateOutlet,a.AsyncPipe],styles:['[_nghost-%COMP%]{--body-background-color: #fff;--primary-font-family: "Roboto", sans-serif;--button-color: deepskyblue;--dial-active-color: #fff;--dial-inactive-color: rgba(255, 255, 255, .5);--dial-background-color: deepskyblue;--dial-editable-active-color: deepskyblue;--dial-editable-background-color: #fff;--clock-face-time-active-color: #fff;--clock-face-time-inactive-color: #6c6c6c;--clock-face-inner-time-inactive-color: #929292;--clock-face-time-disabled-color: #c5c5c5;--clock-face-background-color: #f0f0f0;--clock-hand-color: deepskyblue}.timepicker-backdrop-overlay[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#0000004d;z-index:999;pointer-events:auto}.timepicker-backdrop-overlay--transparent[_ngcontent-%COMP%]{background-color:transparent}.timepicker-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:999;pointer-events:none}.timepicker[_ngcontent-%COMP%]{width:300px;border-radius:2px;box-shadow:#00000040 0 14px 45px,#00000038 0 10px 18px;outline:none;position:static;z-index:999;pointer-events:auto}.timepicker__header[_ngcontent-%COMP%]{padding:15px 30px;background-color:#00bfff}@supports (background-color: var(--dial-background-color)){.timepicker__header[_ngcontent-%COMP%]{background-color:var(--dial-background-color)}}.timepicker__body[_ngcontent-%COMP%]{padding:15px 5px;display:flex;justify-content:center;align-items:center;background-color:#fff}@supports (background-color: var(--body-background-color)){.timepicker__body[_ngcontent-%COMP%]{background-color:var(--body-background-color)}}.timepicker__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:15px;background-color:#fff}@supports (background-color: var(--body-background-color)){.timepicker__actions[_ngcontent-%COMP%]{background-color:var(--body-background-color)}}@media (max-device-width: 1023px) and (orientation: landscape){.timepicker[_ngcontent-%COMP%]{display:flex;width:515px}.timepicker__header[_ngcontent-%COMP%]{display:flex;align-items:center}.timepicker__main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.timepicker__actions[_ngcontent-%COMP%]{padding:5px;margin-top:-1px}}'],data:{animation:[(0,I.X$)("timepicker",[(0,I.eR)(`* => ${$n.ENTER}`,[(0,I.oB)({transform:"translateY(-30%)"}),(0,I.jt)("0.2s ease-out",(0,I.oB)({transform:"translateY(0)"}))]),(0,I.eR)(`${$n.ENTER} => ${$n.LEAVE}`,[(0,I.oB)({transform:"translateY(0)",opacity:1}),(0,I.jt)("0.2s ease-out",(0,I.oB)({transform:"translateY(-30%)",opacity:0}))])])]}}),z})(),es=(()=>{class z{constructor(S,H,pe,He){this.cfr=S,this.appRef=H,this.injector=pe,this.document=He}appendTimepickerToBody(S,H){this.componentRef=this.cfr.resolveComponentFactory(S).create(this.injector),Object.keys(H).forEach(He=>this.componentRef.instance[He]=H[He]),this.appRef.attachView(this.componentRef.hostView),this.document.body.appendChild(this.componentRef.hostView.rootNodes[0])}destroyTimepicker(){this.componentRef.destroy(),this.appRef.detachView(this.componentRef.hostView)}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.ApplicationRef),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(a.DOCUMENT,8))},z.\u0275prov=o.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),Cc=(()=>{class z{constructor(S,H){this.eventService=S,this.domService=H,this.timeUpdated=new h.xQ,this.isEsc=!0,this.hoursOnly=!1,this.timeSet=new o.EventEmitter,this.opened=new o.EventEmitter,this.closed=new o.EventEmitter,this.hourSelected=new o.EventEmitter,this.timeChanged=new o.EventEmitter,this.unsubscribe=new h.xQ}set ngxMaterialTimepickerTheme(S){console.warn("'ngxMaterialTimepickerTheme' is deprecated. Use 'theme' instead"),this._ngxMaterialTimepickerTheme=S}set format(S){this._format=24===S?24:12}get format(){return this.timepickerInput?this.timepickerInput.format:this._format}set minutesGap(S){null!=S&&(S=Math.floor(S),this._minutesGap=S<=59?S:1)}get minutesGap(){return this._minutesGap}get minTime(){return this.timepickerInput?this.timepickerInput.min:this.min}get maxTime(){return this.timepickerInput?this.timepickerInput.max:this.max}get disabled(){return this.timepickerInput&&this.timepickerInput.disabled}get time(){return this.timepickerInput&&this.timepickerInput.value}get inputElement(){return this.timepickerInput&&this.timepickerInput.element}registerInput(S){if(this.timepickerInput)throw Error("A Timepicker can only be associated with a single input.");this.timepickerInput=S}open(){this.domService.appendTimepickerToBody(to,{timepickerBaseRef:this,time:this.time,defaultTime:this.defaultTime,maxTime:this.maxTime,minTime:this.minTime,format:this.format,minutesGap:this.minutesGap,disableAnimation:this.disableAnimation,cancelBtnTmpl:this.cancelBtnTmpl,confirmBtnTmpl:this.confirmBtnTmpl,editableHintTmpl:this.editableHintTmpl,disabled:this.disabled,enableKeyboardInput:this.enableKeyboardInput,preventOverlayClick:this.preventOverlayClick,appendToInput:this.appendToInput,hoursOnly:this.hoursOnly,theme:this.theme||this._ngxMaterialTimepickerTheme,timepickerClass:this.timepickerClass,inputElement:this.inputElement}),this.opened.next(),this.subscribeToEvents()}close(){this.domService.destroyTimepicker(),this.closed.next(),this.unsubscribeFromEvents()}updateTime(S){this.timeUpdated.next(S)}subscribeToEvents(){(0,m.T)(this.eventService.backdropClick,this.eventService.keydownEvent.pipe((0,F.h)(S=>27===S.keyCode&&this.isEsc))).pipe((0,Y.R)(this.unsubscribe)).subscribe(()=>this.close())}unsubscribeFromEvents(){this.unsubscribe.next(),this.unsubscribe.complete()}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(Qe),o.\u0275\u0275directiveInject(es))},z.\u0275cmp=o.\u0275\u0275defineComponent({type:z,selectors:[["ngx-material-timepicker"]],inputs:{cancelBtnTmpl:"cancelBtnTmpl",editableHintTmpl:"editableHintTmpl",confirmBtnTmpl:"confirmBtnTmpl",isEsc:["ESC","isEsc"],enableKeyboardInput:"enableKeyboardInput",preventOverlayClick:"preventOverlayClick",disableAnimation:"disableAnimation",appendToInput:"appendToInput",hoursOnly:"hoursOnly",defaultTime:"defaultTime",timepickerClass:"timepickerClass",theme:"theme",min:"min",max:"max",ngxMaterialTimepickerTheme:"ngxMaterialTimepickerTheme",format:"format",minutesGap:"minutesGap"},outputs:{timeSet:"timeSet",opened:"opened",closed:"closed",hourSelected:"hourSelected",timeChanged:"timeChanged"},decls:0,vars:0,template:function(S,H){},encapsulation:2}),z})(),j4=(()=>{class z{constructor(S,H){this.elementRef=S,this.locale=H,this._format=12,this._value="",this.timepickerSubscriptions=[],this.onTouched=()=>{},this.onChange=()=>{}}set format(S){this._format=24===S?24:12,S&&this.previousFormat&&this.previousFormat!==this._format&&(this.value=this._value,this._timepicker.updateTime(this._value)),this.previousFormat=this._format}get format(){return this._format}set min(S){console.log(S),this._min="string"!=typeof S?S:Pa.parseTime(S,{locale:this.locale,format:this.format})}get min(){return this._min}set max(S){this._max="string"!=typeof S?S:Pa.parseTime(S,{locale:this.locale,format:this.format})}get max(){return this._max}set timepicker(S){this.registerTimepicker(S)}set value(S){if(!S)return this._value="",void this.updateInputValue();this.setTimeIfAvailable(S)}get value(){return this._value?Pa.toLocaleTimeString(this._value,{format:this.format,locale:this.locale}):""}get element(){return this.elementRef&&this.elementRef.nativeElement}set defaultTime(S){this._timepicker.defaultTime=Pa.formatTime(S,{locale:this.locale,format:this.format})}updateValue(S){this.value=S,this.onChange(S)}ngOnChanges(S){var H;const pe=null===(H=S?.value)||void 0===H?void 0:H.currentValue;pe&&(this.setTimeIfAvailable(pe),this.defaultTime=pe)}onClick(S){this.disableClick||(this._timepicker.open(),S.stopPropagation())}writeValue(S){this.value=S,S&&(this.defaultTime=S)}registerOnChange(S){this.onChange=S}registerOnTouched(S){this.onTouched=S}setDisabledState(S){this.disabled=S}ngOnDestroy(){this.timepickerSubscriptions.forEach(S=>S.unsubscribe())}registerTimepicker(S){if(!S)throw new Error("NgxMaterialTimepickerComponent is not defined. Please make sure you passed the timepicker to ngxTimepicker directive");this._timepicker=S,this._timepicker.registerInput(this),this.timepickerSubscriptions.push(this._timepicker.timeSet.subscribe(H=>{this.value=H,this.onChange(this.value),this.onTouched(),this.defaultTime=this._value}))}updateInputValue(){this.elementRef.nativeElement.value=this.value}setTimeIfAvailable(S){var H;const pe=Pa.formatTime(S,{locale:this.locale,format:this.format});Pa.isTimeAvailable(pe,this._min,this._max,"minutes",null===(H=this._timepicker)||void 0===H?void 0:H.minutesGap,this._format)?(this._value=pe,this.updateInputValue()):(this.value=null,console.warn("Selected time doesn't match min or max value"))}}return z.\u0275fac=function(S){return new(S||z)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(qa))},z.\u0275dir=o.\u0275\u0275defineDirective({type:z,selectors:[["","ngxTimepicker",""]],hostVars:1,hostBindings:function(S,H){1&S&&o.\u0275\u0275listener("change",function(He){return H.updateValue(He.target.value)})("blur",function(){return H.onTouched()})("click",function(He){return H.onClick(He)}),2&S&&o.\u0275\u0275hostProperty("disabled",H.disabled)},inputs:{format:"format",min:"min",max:"max",timepicker:["ngxTimepicker","timepicker"],value:"value",disabled:"disabled",disableClick:"disableClick"},features:[o.\u0275\u0275ProvidersFeature([{provide:Be.NG_VALUE_ACCESSOR,useExisting:z,multi:!0}]),o.\u0275\u0275NgOnChangesFeature]}),z})(),W4=(()=>{class z{static setOpts(S,H=Pa.DEFAULT_NUMBERING_SYSTEM){return{ngModule:z,providers:[{provide:qa,useValue:S},{provide:Mc,useValue:H}]}}}return z.\u0275fac=function(S){return new(S||z)},z.\u0275mod=o.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule,Be.FormsModule,Be.ReactiveFormsModule]]}),z})()},3259:(Ge,$,f)=>{const o=f(88695),a=f(71465),g=f(23210),h=f(22334);function m(L,v,b,k,F){const Y=[].slice.call(arguments,1),I=Y.length,D="function"==typeof Y[I-1];if(!D&&!o())throw new Error("Callback required as last argument");if(!D){if(I<1)throw new Error("Too few arguments provided");return 1===I?(b=v,v=k=void 0):2===I&&!v.getContext&&(k=b,b=v,v=void 0),new Promise(function(j,W){try{const de=a.create(b,k);j(L(de,v,k))}catch(de){W(de)}})}if(I<2)throw new Error("Too few arguments provided");2===I?(F=b,b=v,v=k=void 0):3===I&&(v.getContext&&typeof F>"u"?(F=k,k=void 0):(F=k,k=b,b=v,v=void 0));try{const j=a.create(b,k);F(null,L(j,v,k))}catch(j){F(j)}}$.create=a.create,$.toCanvas=m.bind(null,g.render),$.toDataURL=m.bind(null,g.renderToDataURL),$.toString=m.bind(null,function(L,v,b){return h.render(L,b)})},88695:Ge=>{Ge.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},46221:(Ge,$,f)=>{const o=f(34792).getSymbolSize;$.getRowColCoords=function(g){if(1===g)return[];const h=Math.floor(g/7)+2,m=o(g),L=145===m?26:2*Math.ceil((m-13)/(2*h-2)),v=[m-7];for(let b=1;b<h-1;b++)v[b]=v[b-1]-L;return v.push(6),v.reverse()},$.getPositions=function(g){const h=[],m=$.getRowColCoords(g),L=m.length;for(let v=0;v<L;v++)for(let b=0;b<L;b++)0===v&&0===b||0===v&&b===L-1||v===L-1&&0===b||h.push([m[v],m[b]]);return h}},32424:(Ge,$,f)=>{const o=f(64016),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function g(h){this.mode=o.ALPHANUMERIC,this.data=h}g.getBitsLength=function(m){return 11*Math.floor(m/2)+m%2*6},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(m){let L;for(L=0;L+2<=this.data.length;L+=2){let v=45*a.indexOf(this.data[L]);v+=a.indexOf(this.data[L+1]),m.put(v,11)}this.data.length%2&&m.put(a.indexOf(this.data[L]),6)},Ge.exports=g},52118:Ge=>{function $(){this.buffer=[],this.length=0}$.prototype={get:function(f){const o=Math.floor(f/8);return 1==(this.buffer[o]>>>7-f%8&1)},put:function(f,o){for(let a=0;a<o;a++)this.putBit(1==(f>>>o-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(f){const o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),f&&(this.buffer[o]|=128>>>this.length%8),this.length++}},Ge.exports=$},34425:Ge=>{function $(f){if(!f||f<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=f,this.data=new Uint8Array(f*f),this.reservedBit=new Uint8Array(f*f)}$.prototype.set=function(f,o,a,g){const h=f*this.size+o;this.data[h]=a,g&&(this.reservedBit[h]=!0)},$.prototype.get=function(f,o){return this.data[f*this.size+o]},$.prototype.xor=function(f,o,a){this.data[f*this.size+o]^=a},$.prototype.isReserved=function(f,o){return this.reservedBit[f*this.size+o]},Ge.exports=$},85663:(Ge,$,f)=>{const o=f(64016);function a(g){this.mode=o.BYTE,this.data="string"==typeof g?(new TextEncoder).encode(g):new Uint8Array(g)}a.getBitsLength=function(h){return 8*h},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(g){for(let h=0,m=this.data.length;h<m;h++)g.put(this.data[h],8)},Ge.exports=a},14655:(Ge,$,f)=>{const o=f(82259),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],g=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];$.getBlocksCount=function(m,L){switch(L){case o.L:return a[4*(m-1)+0];case o.M:return a[4*(m-1)+1];case o.Q:return a[4*(m-1)+2];case o.H:return a[4*(m-1)+3];default:return}},$.getTotalCodewordsCount=function(m,L){switch(L){case o.L:return g[4*(m-1)+0];case o.M:return g[4*(m-1)+1];case o.Q:return g[4*(m-1)+2];case o.H:return g[4*(m-1)+3];default:return}}},82259:(Ge,$)=>{$.L={bit:1},$.M={bit:0},$.Q={bit:3},$.H={bit:2},$.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},$.from=function(a,g){if($.isValid(a))return a;try{return function f(o){if("string"!=typeof o)throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return $.L;case"m":case"medium":return $.M;case"q":case"quartile":return $.Q;case"h":case"high":return $.H;default:throw new Error("Unknown EC Level: "+o)}}(a)}catch{return g}}},43114:(Ge,$,f)=>{const o=f(34792).getSymbolSize;$.getPositions=function(h){const m=o(h);return[[0,0],[m-7,0],[0,m-7]]}},17078:(Ge,$,f)=>{const o=f(34792),h=o.getBCHDigit(1335);$.getEncodedBits=function(L,v){const b=L.bit<<3|v;let k=b<<10;for(;o.getBCHDigit(k)-h>=0;)k^=1335<<o.getBCHDigit(k)-h;return 21522^(b<<10|k)}},45339:(Ge,$)=>{const f=new Uint8Array(512),o=new Uint8Array(256);(function(){let g=1;for(let h=0;h<255;h++)f[h]=g,o[g]=h,g<<=1,256&g&&(g^=285);for(let h=255;h<512;h++)f[h]=f[h-255]})(),$.log=function(g){if(g<1)throw new Error("log("+g+")");return o[g]},$.exp=function(g){return f[g]},$.mul=function(g,h){return 0===g||0===h?0:f[o[g]+o[h]]}},80449:(Ge,$,f)=>{const o=f(64016),a=f(34792);function g(h){this.mode=o.KANJI,this.data=h}g.getBitsLength=function(m){return 13*m},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(h){let m;for(m=0;m<this.data.length;m++){let L=a.toSJIS(this.data[m]);if(L>=33088&&L<=40956)L-=33088;else{if(!(L>=57408&&L<=60351))throw new Error("Invalid SJIS character: "+this.data[m]+"\nMake sure your charset is UTF-8");L-=49472}L=192*(L>>>8&255)+(255&L),h.put(L,13)}},Ge.exports=g},33667:(Ge,$)=>{$.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function o(a,g,h){switch(a){case $.Patterns.PATTERN000:return(g+h)%2==0;case $.Patterns.PATTERN001:return g%2==0;case $.Patterns.PATTERN010:return h%3==0;case $.Patterns.PATTERN011:return(g+h)%3==0;case $.Patterns.PATTERN100:return(Math.floor(g/2)+Math.floor(h/3))%2==0;case $.Patterns.PATTERN101:return g*h%2+g*h%3==0;case $.Patterns.PATTERN110:return(g*h%2+g*h%3)%2==0;case $.Patterns.PATTERN111:return(g*h%3+(g+h)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}}$.isValid=function(g){return null!=g&&""!==g&&!isNaN(g)&&g>=0&&g<=7},$.from=function(g){return $.isValid(g)?parseInt(g,10):void 0},$.getPenaltyN1=function(g){const h=g.size;let m=0,L=0,v=0,b=null,k=null;for(let F=0;F<h;F++){L=v=0,b=k=null;for(let Y=0;Y<h;Y++){let I=g.get(F,Y);I===b?L++:(L>=5&&(m+=L-5+3),b=I,L=1),I=g.get(Y,F),I===k?v++:(v>=5&&(m+=v-5+3),k=I,v=1)}L>=5&&(m+=L-5+3),v>=5&&(m+=v-5+3)}return m},$.getPenaltyN2=function(g){const h=g.size;let m=0;for(let L=0;L<h-1;L++)for(let v=0;v<h-1;v++){const b=g.get(L,v)+g.get(L,v+1)+g.get(L+1,v)+g.get(L+1,v+1);(4===b||0===b)&&m++}return 3*m},$.getPenaltyN3=function(g){const h=g.size;let m=0,L=0,v=0;for(let b=0;b<h;b++){L=v=0;for(let k=0;k<h;k++)L=L<<1&2047|g.get(b,k),k>=10&&(1488===L||93===L)&&m++,v=v<<1&2047|g.get(k,b),k>=10&&(1488===v||93===v)&&m++}return 40*m},$.getPenaltyN4=function(g){let h=0;const m=g.data.length;for(let v=0;v<m;v++)h+=g.data[v];return 10*Math.abs(Math.ceil(100*h/m/5)-10)},$.applyMask=function(g,h){const m=h.size;for(let L=0;L<m;L++)for(let v=0;v<m;v++)h.isReserved(v,L)||h.xor(v,L,o(g,v,L))},$.getBestMask=function(g,h){const m=Object.keys($.Patterns).length;let L=0,v=1/0;for(let b=0;b<m;b++){h(b),$.applyMask(b,g);const k=$.getPenaltyN1(g)+$.getPenaltyN2(g)+$.getPenaltyN3(g)+$.getPenaltyN4(g);$.applyMask(b,g),k<v&&(v=k,L=b)}return L}},64016:(Ge,$,f)=>{const o=f(94406),a=f(2699);$.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},$.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},$.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},$.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},$.MIXED={bit:-1},$.getCharCountIndicator=function(m,L){if(!m.ccBits)throw new Error("Invalid mode: "+m);if(!o.isValid(L))throw new Error("Invalid version: "+L);return L>=1&&L<10?m.ccBits[0]:L<27?m.ccBits[1]:m.ccBits[2]},$.getBestModeForData=function(m){return a.testNumeric(m)?$.NUMERIC:a.testAlphanumeric(m)?$.ALPHANUMERIC:a.testKanji(m)?$.KANJI:$.BYTE},$.toString=function(m){if(m&&m.id)return m.id;throw new Error("Invalid mode")},$.isValid=function(m){return m&&m.bit&&m.ccBits},$.from=function(m,L){if($.isValid(m))return m;try{return function g(h){if("string"!=typeof h)throw new Error("Param is not a string");switch(h.toLowerCase()){case"numeric":return $.NUMERIC;case"alphanumeric":return $.ALPHANUMERIC;case"kanji":return $.KANJI;case"byte":return $.BYTE;default:throw new Error("Unknown mode: "+h)}}(m)}catch{return L}}},97783:(Ge,$,f)=>{const o=f(64016);function a(g){this.mode=o.NUMERIC,this.data=g.toString()}a.getBitsLength=function(h){return 10*Math.floor(h/3)+(h%3?h%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(h){let m,L,v;for(m=0;m+3<=this.data.length;m+=3)L=this.data.substr(m,3),v=parseInt(L,10),h.put(v,10);const b=this.data.length-m;b>0&&(L=this.data.substr(m),v=parseInt(L,10),h.put(v,3*b+1))},Ge.exports=a},61106:(Ge,$,f)=>{const o=f(45339);$.mul=function(g,h){const m=new Uint8Array(g.length+h.length-1);for(let L=0;L<g.length;L++)for(let v=0;v<h.length;v++)m[L+v]^=o.mul(g[L],h[v]);return m},$.mod=function(g,h){let m=new Uint8Array(g);for(;m.length-h.length>=0;){const L=m[0];for(let b=0;b<h.length;b++)m[b]^=o.mul(h[b],L);let v=0;for(;v<m.length&&0===m[v];)v++;m=m.slice(v)}return m},$.generateECPolynomial=function(g){let h=new Uint8Array([1]);for(let m=0;m<g;m++)h=$.mul(h,new Uint8Array([1,o.exp(m)]));return h}},71465:(Ge,$,f)=>{const o=f(34792),a=f(82259),g=f(52118),h=f(34425),m=f(46221),L=f(43114),v=f(33667),b=f(14655),k=f(12636),F=f(42088),Y=f(17078),I=f(64016),D=f(62033);function ee(te,ge,xe){const he=te.size,Le=Y.getEncodedBits(ge,xe);let Ce,ie;for(Ce=0;Ce<15;Ce++)ie=1==(Le>>Ce&1),te.set(Ce<6?Ce:Ce<8?Ce+1:he-15+Ce,8,ie,!0),te.set(8,Ce<8?he-Ce-1:Ce<9?15-Ce-1+1:15-Ce-1,ie,!0);te.set(he-8,8,1,!0)}function oe(te,ge,xe,he){let Le;if(Array.isArray(te))Le=D.fromArray(te);else{if("string"!=typeof te)throw new Error("Invalid data");{let Ne=ge;if(!Ne){const _e=D.rawSplit(te);Ne=F.getBestVersionForData(_e,xe)}Le=D.fromString(te,Ne||40)}}const Ce=F.getBestVersionForData(Le,xe);if(!Ce)throw new Error("The amount of data is too big to be stored in a QR Code");if(ge){if(ge<Ce)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+Ce+".\n")}else ge=Ce;const ie=function Te(te,ge,xe){const he=new g;xe.forEach(function(me){he.put(me.mode.bit,4),he.put(me.getLength(),I.getCharCountIndicator(me.mode,te)),me.write(he)});const ie=8*(o.getSymbolTotalCodewords(te)-b.getTotalCodewordsCount(te,ge));for(he.getLengthInBits()+4<=ie&&he.put(0,4);he.getLengthInBits()%8!=0;)he.putBit(0);const se=(ie-he.getLengthInBits())/8;for(let me=0;me<se;me++)he.put(me%2?17:236,8);return function ce(te,ge,xe){const he=o.getSymbolTotalCodewords(ge),Ce=he-b.getTotalCodewordsCount(ge,xe),ie=b.getBlocksCount(ge,xe),me=ie-he%ie,Ne=Math.floor(he/ie),_e=Math.floor(Ce/ie),we=_e+1,Ee=Ne-_e,le=new k(Ee);let Ue=0;const ke=new Array(ie),ze=new Array(ie);let ye=0;const je=new Uint8Array(te.buffer);for(let fn=0;fn<ie;fn++){const mn=fn<me?_e:we;ke[fn]=je.slice(Ue,Ue+mn),ze[fn]=le.encode(ke[fn]),Ue+=mn,ye=Math.max(ye,mn)}const Ze=new Uint8Array(he);let At,Vt,_t=0;for(At=0;At<ye;At++)for(Vt=0;Vt<ie;Vt++)At<ke[Vt].length&&(Ze[_t++]=ke[Vt][At]);for(At=0;At<Ee;At++)for(Vt=0;Vt<ie;Vt++)Ze[_t++]=ze[Vt][At];return Ze}(he,te,ge)}(ge,xe,Le),se=o.getSymbolSize(ge),me=new h(se);return function j(te,ge){const xe=te.size,he=L.getPositions(ge);for(let Le=0;Le<he.length;Le++){const Ce=he[Le][0],ie=he[Le][1];for(let se=-1;se<=7;se++)if(!(Ce+se<=-1||xe<=Ce+se))for(let me=-1;me<=7;me++)ie+me<=-1||xe<=ie+me||te.set(Ce+se,ie+me,se>=0&&se<=6&&(0===me||6===me)||me>=0&&me<=6&&(0===se||6===se)||se>=2&&se<=4&&me>=2&&me<=4,!0)}}(me,ge),function W(te){const ge=te.size;for(let xe=8;xe<ge-8;xe++){const he=xe%2==0;te.set(xe,6,he,!0),te.set(6,xe,he,!0)}}(me),function de(te,ge){const xe=m.getPositions(ge);for(let he=0;he<xe.length;he++){const Le=xe[he][0],Ce=xe[he][1];for(let ie=-2;ie<=2;ie++)for(let se=-2;se<=2;se++)te.set(Le+ie,Ce+se,-2===ie||2===ie||-2===se||2===se||0===ie&&0===se,!0)}}(me,ge),ee(me,xe,0),ge>=7&&function K(te,ge){const xe=te.size,he=F.getEncodedBits(ge);let Le,Ce,ie;for(let se=0;se<18;se++)Le=Math.floor(se/3),Ce=se%3+xe-8-3,ie=1==(he>>se&1),te.set(Le,Ce,ie,!0),te.set(Ce,Le,ie,!0)}(me,ge),function De(te,ge){const xe=te.size;let he=-1,Le=xe-1,Ce=7,ie=0;for(let se=xe-1;se>0;se-=2)for(6===se&&se--;;){for(let me=0;me<2;me++)if(!te.isReserved(Le,se-me)){let Ne=!1;ie<ge.length&&(Ne=1==(ge[ie]>>>Ce&1)),te.set(Le,se-me,Ne),Ce--,-1===Ce&&(ie++,Ce=7)}if(Le+=he,Le<0||xe<=Le){Le-=he,he=-he;break}}}(me,ie),isNaN(he)&&(he=v.getBestMask(me,ee.bind(null,me,xe))),v.applyMask(he,me),ee(me,xe,he),{modules:me,version:ge,errorCorrectionLevel:xe,maskPattern:he,segments:Le}}$.create=function(ge,xe){if(typeof ge>"u"||""===ge)throw new Error("No input text");let Le,Ce,he=a.M;return typeof xe<"u"&&(he=a.from(xe.errorCorrectionLevel,a.M),Le=F.from(xe.version),Ce=v.from(xe.maskPattern),xe.toSJISFunc&&o.setToSJISFunction(xe.toSJISFunc)),oe(ge,Le,he,Ce)}},12636:(Ge,$,f)=>{const o=f(61106);function a(g){this.genPoly=void 0,this.degree=g,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(h){this.degree=h,this.genPoly=o.generateECPolynomial(this.degree)},a.prototype.encode=function(h){if(!this.genPoly)throw new Error("Encoder not initialized");const m=new Uint8Array(h.length+this.degree);m.set(h);const L=o.mod(m,this.genPoly),v=this.degree-L.length;if(v>0){const b=new Uint8Array(this.degree);return b.set(L,v),b}return L},Ge.exports=a},2699:(Ge,$)=>{const f="[0-9]+";let a="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";a=a.replace(/u/g,"\\u");const g="(?:(?![A-Z0-9 $%*+\\-./:]|"+a+")(?:.|[\r\n]))+";$.KANJI=new RegExp(a,"g"),$.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),$.BYTE=new RegExp(g,"g"),$.NUMERIC=new RegExp(f,"g"),$.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const h=new RegExp("^"+a+"$"),m=new RegExp("^"+f+"$"),L=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$.testKanji=function(b){return h.test(b)},$.testNumeric=function(b){return m.test(b)},$.testAlphanumeric=function(b){return L.test(b)}},62033:(Ge,$,f)=>{const o=f(64016),a=f(97783),g=f(32424),h=f(85663),m=f(80449),L=f(2699),v=f(34792),b=f(74901);function k(K){return unescape(encodeURIComponent(K)).length}function F(K,ee,De){const Te=[];let ce;for(;null!==(ce=K.exec(De));)Te.push({data:ce[0],index:ce.index,mode:ee,length:ce[0].length});return Te}function Y(K){const ee=F(L.NUMERIC,o.NUMERIC,K),De=F(L.ALPHANUMERIC,o.ALPHANUMERIC,K);let Te,ce;return v.isKanjiModeEnabled()?(Te=F(L.BYTE,o.BYTE,K),ce=F(L.KANJI,o.KANJI,K)):(Te=F(L.BYTE_KANJI,o.BYTE,K),ce=[]),ee.concat(De,Te,ce).sort(function(te,ge){return te.index-ge.index}).map(function(te){return{data:te.data,mode:te.mode,length:te.length}})}function I(K,ee){switch(ee){case o.NUMERIC:return a.getBitsLength(K);case o.ALPHANUMERIC:return g.getBitsLength(K);case o.KANJI:return m.getBitsLength(K);case o.BYTE:return h.getBitsLength(K)}}function de(K,ee){let De;const Te=o.getBestModeForData(K);if(De=o.from(ee,Te),De!==o.BYTE&&De.bit<Te.bit)throw new Error('"'+K+'" cannot be encoded with mode '+o.toString(De)+".\n Suggested mode is: "+o.toString(Te));switch(De===o.KANJI&&!v.isKanjiModeEnabled()&&(De=o.BYTE),De){case o.NUMERIC:return new a(K);case o.ALPHANUMERIC:return new g(K);case o.KANJI:return new m(K);case o.BYTE:return new h(K)}}$.fromArray=function(ee){return ee.reduce(function(De,Te){return"string"==typeof Te?De.push(de(Te,null)):Te.data&&De.push(de(Te.data,Te.mode)),De},[])},$.fromString=function(ee,De){const ce=function j(K){const ee=[];for(let De=0;De<K.length;De++){const Te=K[De];switch(Te.mode){case o.NUMERIC:ee.push([Te,{data:Te.data,mode:o.ALPHANUMERIC,length:Te.length},{data:Te.data,mode:o.BYTE,length:Te.length}]);break;case o.ALPHANUMERIC:ee.push([Te,{data:Te.data,mode:o.BYTE,length:Te.length}]);break;case o.KANJI:ee.push([Te,{data:Te.data,mode:o.BYTE,length:k(Te.data)}]);break;case o.BYTE:ee.push([{data:Te.data,mode:o.BYTE,length:k(Te.data)}])}}return ee}(Y(ee,v.isKanjiModeEnabled())),oe=function W(K,ee){const De={},Te={start:{}};let ce=["start"];for(let oe=0;oe<K.length;oe++){const te=K[oe],ge=[];for(let xe=0;xe<te.length;xe++){const he=te[xe],Le=""+oe+xe;ge.push(Le),De[Le]={node:he,lastCount:0},Te[Le]={};for(let Ce=0;Ce<ce.length;Ce++){const ie=ce[Ce];De[ie]&&De[ie].node.mode===he.mode?(Te[ie][Le]=I(De[ie].lastCount+he.length,he.mode)-I(De[ie].lastCount,he.mode),De[ie].lastCount+=he.length):(De[ie]&&(De[ie].lastCount=he.length),Te[ie][Le]=I(he.length,he.mode)+4+o.getCharCountIndicator(he.mode,ee))}}ce=ge}for(let oe=0;oe<ce.length;oe++)Te[ce[oe]].end=0;return{map:Te,table:De}}(ce,De),te=b.find_path(oe.map,"start","end"),ge=[];for(let xe=1;xe<te.length-1;xe++)ge.push(oe.table[te[xe]].node);return $.fromArray(function D(K){return K.reduce(function(ee,De){const Te=ee.length-1>=0?ee[ee.length-1]:null;return Te&&Te.mode===De.mode?(ee[ee.length-1].data+=De.data,ee):(ee.push(De),ee)},[])}(ge))},$.rawSplit=function(ee){return $.fromArray(Y(ee,v.isKanjiModeEnabled()))}},34792:(Ge,$)=>{let f;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];$.getSymbolSize=function(g){if(!g)throw new Error('"version" cannot be null or undefined');if(g<1||g>40)throw new Error('"version" should be in range from 1 to 40');return 4*g+17},$.getSymbolTotalCodewords=function(g){return o[g]},$.getBCHDigit=function(a){let g=0;for(;0!==a;)g++,a>>>=1;return g},$.setToSJISFunction=function(g){if("function"!=typeof g)throw new Error('"toSJISFunc" is not a valid function.');f=g},$.isKanjiModeEnabled=function(){return typeof f<"u"},$.toSJIS=function(g){return f(g)}},94406:(Ge,$)=>{$.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}},42088:(Ge,$,f)=>{const o=f(34792),a=f(14655),g=f(82259),h=f(64016),m=f(94406),v=o.getBCHDigit(7973);function k(I,D){return h.getCharCountIndicator(I,D)+4}function F(I,D){let j=0;return I.forEach(function(W){j+=k(W.mode,D)+W.getBitsLength()}),j}$.from=function(D,j){return m.isValid(D)?parseInt(D,10):j},$.getCapacity=function(D,j,W){if(!m.isValid(D))throw new Error("Invalid QR Code version");typeof W>"u"&&(W=h.BYTE);const ee=8*(o.getSymbolTotalCodewords(D)-a.getTotalCodewordsCount(D,j));if(W===h.MIXED)return ee;const De=ee-k(W,D);switch(W){case h.NUMERIC:return Math.floor(De/10*3);case h.ALPHANUMERIC:return Math.floor(De/11*2);case h.KANJI:return Math.floor(De/13);default:return Math.floor(De/8)}},$.getBestVersionForData=function(D,j){let W;const de=g.from(j,g.M);if(Array.isArray(D)){if(D.length>1)return function Y(I,D){for(let j=1;j<=40;j++)if(F(I,j)<=$.getCapacity(j,D,h.MIXED))return j}(D,de);if(0===D.length)return 1;W=D[0]}else W=D;return function b(I,D,j){for(let W=1;W<=40;W++)if(D<=$.getCapacity(W,j,I))return W}(W.mode,W.getLength(),de)},$.getEncodedBits=function(D){if(!m.isValid(D)||D<7)throw new Error("Invalid QR Code version");let j=D<<12;for(;o.getBCHDigit(j)-v>=0;)j^=7973<<o.getBCHDigit(j)-v;return D<<12|j}},23210:(Ge,$,f)=>{const o=f(36355);$.render=function(m,L,v){let b=v,k=L;typeof b>"u"&&(!L||!L.getContext)&&(b=L,L=void 0),L||(k=function g(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),b=o.getOptions(b);const F=o.getImageWidth(m.modules.size,b),Y=k.getContext("2d"),I=Y.createImageData(F,F);return o.qrToImageData(I.data,m,b),function a(h,m,L){h.clearRect(0,0,m.width,m.height),m.style||(m.style={}),m.height=L,m.width=L,m.style.height=L+"px",m.style.width=L+"px"}(Y,k,F),Y.putImageData(I,0,0),k},$.renderToDataURL=function(m,L,v){let b=v;return typeof b>"u"&&(!L||!L.getContext)&&(b=L,L=void 0),b||(b={}),$.render(m,L,b).toDataURL(b.type||"image/png",(b.rendererOpts||{}).quality)}},22334:(Ge,$,f)=>{const o=f(36355);function a(m,L){const v=m.a/255,b=L+'="'+m.hex+'"';return v<1?b+" "+L+'-opacity="'+v.toFixed(2).slice(1)+'"':b}function g(m,L,v){let b=m+L;return typeof v<"u"&&(b+=" "+v),b}$.render=function(L,v,b){const k=o.getOptions(v),F=L.modules.size,Y=L.modules.data,I=F+2*k.margin,D=k.color.light.a?"<path "+a(k.color.light,"fill")+' d="M0 0h'+I+"v"+I+'H0z"/>':"",j="<path "+a(k.color.dark,"stroke")+' d="'+function h(m,L,v){let b="",k=0,F=!1,Y=0;for(let I=0;I<m.length;I++){const D=Math.floor(I%L),j=Math.floor(I/L);!D&&!F&&(F=!0),m[I]?(Y++,I>0&&D>0&&m[I-1]||(b+=F?g("M",D+v,.5+j+v):g("m",k,0),k=0,F=!1),D+1<L&&m[I+1]||(b+=g("h",Y),Y=0)):k++}return b}(Y,F,k.margin)+'"/>',K='<svg xmlns="http://www.w3.org/2000/svg" '+(k.width?'width="'+k.width+'" height="'+k.width+'" ':"")+'viewBox="0 0 '+I+" "+I+'" shape-rendering="crispEdges">'+D+j+"</svg>\n";return"function"==typeof b&&b(null,K),K}},36355:(Ge,$)=>{function f(o){if("number"==typeof o&&(o=o.toString()),"string"!=typeof o)throw new Error("Color should be defined as hex string");let a=o.slice().replace("#","").split("");if(a.length<3||5===a.length||a.length>8)throw new Error("Invalid hex color: "+o);(3===a.length||4===a.length)&&(a=Array.prototype.concat.apply([],a.map(function(h){return[h,h]}))),6===a.length&&a.push("F","F");const g=parseInt(a.join(""),16);return{r:g>>24&255,g:g>>16&255,b:g>>8&255,a:255&g,hex:"#"+a.slice(0,6).join("")}}$.getOptions=function(a){a||(a={}),a.color||(a.color={});const h=a.width&&a.width>=21?a.width:void 0;return{width:h,scale:h?4:a.scale||4,margin:typeof a.margin>"u"||null===a.margin||a.margin<0?4:a.margin,color:{dark:f(a.color.dark||"#000000ff"),light:f(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},$.getScale=function(a,g){return g.width&&g.width>=a+2*g.margin?g.width/(a+2*g.margin):g.scale},$.getImageWidth=function(a,g){const h=$.getScale(a,g);return Math.floor((a+2*g.margin)*h)},$.qrToImageData=function(a,g,h){const m=g.modules.size,L=g.modules.data,v=$.getScale(m,h),b=Math.floor((m+2*h.margin)*v),k=h.margin*v,F=[h.color.light,h.color.dark];for(let Y=0;Y<b;Y++)for(let I=0;I<b;I++){let D=4*(Y*b+I),j=h.color.light;Y>=k&&I>=k&&Y<b-k&&I<b-k&&(j=F[L[Math.floor((Y-k)/v)*m+Math.floor((I-k)/v)]?1:0]),a[D++]=j.r,a[D++]=j.g,a[D++]=j.b,a[D]=j.a}}},591:(Ge,$,f)=>{f.d($,{X:()=>g});var o=f(8929),a=f(95279);class g extends o.xQ{constructor(m){super(),this._value=m}get value(){return this.getValue()}_subscribe(m){const L=super._subscribe(m);return L&&!L.closed&&m.next(this._value),L}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new a.N;return this._value}next(m){super.next(this._value=m)}}},29312:(Ge,$,f)=>{f.d($,{P:()=>m});var o=f(68896),a=f(21086),g=f(61737);class m{constructor(v,b,k){this.kind=v,this.value=b,this.error=k,this.hasValue="N"===v}observe(v){switch(this.kind){case"N":return v.next&&v.next(this.value);case"E":return v.error&&v.error(this.error);case"C":return v.complete&&v.complete()}}do(v,b,k){switch(this.kind){case"N":return v&&v(this.value);case"E":return b&&b(this.error);case"C":return k&&k()}}accept(v,b,k){return v&&"function"==typeof v.next?this.observe(v):this.do(v,b,k)}toObservable(){switch(this.kind){case"N":return(0,a.of)(this.value);case"E":return(0,g._)(this.error);case"C":return(0,o.c)()}throw new Error("unexpected notification kind value")}static createNext(v){return typeof v<"u"?new m("N",v):m.undefinedValueNotification}static createError(v){return new m("E",void 0,v)}static createComplete(){return m.completeNotification}}m.completeNotification=new m("C"),m.undefinedValueNotification=new m("N",void 0)},56498:(Ge,$,f)=>{f.d($,{y:()=>k});var o=f(43489),g=f(57668),h=f(73292),L=f(93821),v=f(4843),b=f(92830);let k=(()=>{class Y{constructor(D){this._isScalar=!1,D&&(this._subscribe=D)}lift(D){const j=new Y;return j.source=this,j.operator=D,j}subscribe(D,j,W){const{operator:de}=this,K=function m(Y,I,D){if(Y){if(Y instanceof o.L)return Y;if(Y[g.b])return Y[g.b]()}return Y||I||D?new o.L(Y,I,D):new o.L(h.c)}(D,j,W);if(K.add(de?de.call(K,this.source):this.source||b.v.useDeprecatedSynchronousErrorHandling&&!K.syncErrorThrowable?this._subscribe(K):this._trySubscribe(K)),b.v.useDeprecatedSynchronousErrorHandling&&K.syncErrorThrowable&&(K.syncErrorThrowable=!1,K.syncErrorThrown))throw K.syncErrorValue;return K}_trySubscribe(D){try{return this._subscribe(D)}catch(j){b.v.useDeprecatedSynchronousErrorHandling&&(D.syncErrorThrown=!0,D.syncErrorValue=j),function a(Y){for(;Y;){const{closed:I,destination:D,isStopped:j}=Y;if(I||j)return!1;Y=D&&D instanceof o.L?D:null}return!0}(D)?D.error(j):console.warn(j)}}forEach(D,j){return new(j=F(j))((W,de)=>{let K;K=this.subscribe(ee=>{try{D(ee)}catch(De){de(De),K&&K.unsubscribe()}},de,W)})}_subscribe(D){const{source:j}=this;return j&&j.subscribe(D)}[L.L](){return this}pipe(...D){return 0===D.length?this:(0,v.U)(D)(this)}toPromise(D){return new(D=F(D))((j,W)=>{let de;this.subscribe(K=>de=K,K=>W(K),()=>j(de))})}}return Y.create=I=>new Y(I),Y})();function F(Y){if(Y||(Y=b.v.Promise||Promise),!Y)throw new Error("no Promise impl found");return Y}},73292:(Ge,$,f)=>{f.d($,{c:()=>g});var o=f(92830),a=f(22782);const g={closed:!0,next(h){},error(h){if(o.v.useDeprecatedSynchronousErrorHandling)throw h;(0,a.z)(h)},complete(){}}},8929:(Ge,$,f)=>{f.d($,{Yc:()=>v,xQ:()=>b});var o=f(56498),a=f(43489),g=f(42654),h=f(95279),m=f(45283),L=f(57668);class v extends a.L{constructor(Y){super(Y),this.destination=Y}}let b=(()=>{class F extends o.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[L.b](){return new v(this)}lift(I){const D=new k(this,this);return D.operator=I,D}next(I){if(this.closed)throw new h.N;if(!this.isStopped){const{observers:D}=this,j=D.length,W=D.slice();for(let de=0;de<j;de++)W[de].next(I)}}error(I){if(this.closed)throw new h.N;this.hasError=!0,this.thrownError=I,this.isStopped=!0;const{observers:D}=this,j=D.length,W=D.slice();for(let de=0;de<j;de++)W[de].error(I);this.observers.length=0}complete(){if(this.closed)throw new h.N;this.isStopped=!0;const{observers:I}=this,D=I.length,j=I.slice();for(let W=0;W<D;W++)j[W].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(I){if(this.closed)throw new h.N;return super._trySubscribe(I)}_subscribe(I){if(this.closed)throw new h.N;return this.hasError?(I.error(this.thrownError),g.w.EMPTY):this.isStopped?(I.complete(),g.w.EMPTY):(this.observers.push(I),new m.W(this,I))}asObservable(){const I=new o.y;return I.source=this,I}}return F.create=(Y,I)=>new k(Y,I),F})();class k extends b{constructor(Y,I){super(),this.destination=Y,this.source=I}next(Y){const{destination:I}=this;I&&I.next&&I.next(Y)}error(Y){const{destination:I}=this;I&&I.error&&this.destination.error(Y)}complete(){const{destination:Y}=this;Y&&Y.complete&&this.destination.complete()}_subscribe(Y){const{source:I}=this;return I?this.source.subscribe(Y):g.w.EMPTY}}},45283:(Ge,$,f)=>{f.d($,{W:()=>a});var o=f(42654);class a extends o.w{constructor(h,m){super(),this.subject=h,this.subscriber=m,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const h=this.subject,m=h.observers;if(this.subject=null,!m||0===m.length||h.isStopped||h.closed)return;const L=m.indexOf(this.subscriber);-1!==L&&m.splice(L,1)}}},43489:(Ge,$,f)=>{f.d($,{L:()=>v});var o=f(67043),a=f(73292),g=f(42654),h=f(57668),m=f(92830),L=f(22782);class v extends g.w{constructor(F,Y,I){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.c;break;case 1:if(!F){this.destination=a.c;break}if("object"==typeof F){F instanceof v?(this.syncErrorThrowable=F.syncErrorThrowable,this.destination=F,F.add(this)):(this.syncErrorThrowable=!0,this.destination=new b(this,F));break}default:this.syncErrorThrowable=!0,this.destination=new b(this,F,Y,I)}}[h.b](){return this}static create(F,Y,I){const D=new v(F,Y,I);return D.syncErrorThrowable=!1,D}next(F){this.isStopped||this._next(F)}error(F){this.isStopped||(this.isStopped=!0,this._error(F))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(F){this.destination.next(F)}_error(F){this.destination.error(F),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:F}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=F,this}}class b extends v{constructor(F,Y,I,D){super(),this._parentSubscriber=F;let j,W=this;(0,o.m)(Y)?j=Y:Y&&(j=Y.next,I=Y.error,D=Y.complete,Y!==a.c&&(W=Object.create(Y),(0,o.m)(W.unsubscribe)&&this.add(W.unsubscribe.bind(W)),W.unsubscribe=this.unsubscribe.bind(this))),this._context=W,this._next=j,this._error=I,this._complete=D}next(F){if(!this.isStopped&&this._next){const{_parentSubscriber:Y}=this;m.v.useDeprecatedSynchronousErrorHandling&&Y.syncErrorThrowable?this.__tryOrSetError(Y,this._next,F)&&this.unsubscribe():this.__tryOrUnsub(this._next,F)}}error(F){if(!this.isStopped){const{_parentSubscriber:Y}=this,{useDeprecatedSynchronousErrorHandling:I}=m.v;if(this._error)I&&Y.syncErrorThrowable?(this.__tryOrSetError(Y,this._error,F),this.unsubscribe()):(this.__tryOrUnsub(this._error,F),this.unsubscribe());else if(Y.syncErrorThrowable)I?(Y.syncErrorValue=F,Y.syncErrorThrown=!0):(0,L.z)(F),this.unsubscribe();else{if(this.unsubscribe(),I)throw F;(0,L.z)(F)}}}complete(){if(!this.isStopped){const{_parentSubscriber:F}=this;if(this._complete){const Y=()=>this._complete.call(this._context);m.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,Y),this.unsubscribe()):(this.__tryOrUnsub(Y),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(F,Y){try{F.call(this._context,Y)}catch(I){if(this.unsubscribe(),m.v.useDeprecatedSynchronousErrorHandling)throw I;(0,L.z)(I)}}__tryOrSetError(F,Y,I){if(!m.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{Y.call(this._context,I)}catch(D){return m.v.useDeprecatedSynchronousErrorHandling?(F.syncErrorValue=D,F.syncErrorThrown=!0,!0):((0,L.z)(D),!0)}return!1}_unsubscribe(){const{_parentSubscriber:F}=this;this._context=null,this._parentSubscriber=null,F.unsubscribe()}}},42654:(Ge,$,f)=>{f.d($,{w:()=>L});var o=f(66688),a=f(57830),g=f(67043);const m=(()=>{function b(k){return Error.call(this),this.message=k?`${k.length} errors occurred during unsubscription:\n${k.map((F,Y)=>`${Y+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=k,this}return b.prototype=Object.create(Error.prototype),b})();class L{constructor(k){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,k&&(this._ctorUnsubscribe=!0,this._unsubscribe=k)}unsubscribe(){let k;if(this.closed)return;let{_parentOrParents:F,_ctorUnsubscribe:Y,_unsubscribe:I,_subscriptions:D}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,F instanceof L)F.remove(this);else if(null!==F)for(let j=0;j<F.length;++j)F[j].remove(this);if((0,g.m)(I)){Y&&(this._unsubscribe=void 0);try{I.call(this)}catch(j){k=j instanceof m?v(j.errors):[j]}}if((0,o.k)(D)){let j=-1,W=D.length;for(;++j<W;){const de=D[j];if((0,a.K)(de))try{de.unsubscribe()}catch(K){k=k||[],K instanceof m?k=k.concat(v(K.errors)):k.push(K)}}}if(k)throw new m(k)}add(k){let F=k;if(!k)return L.EMPTY;switch(typeof k){case"function":F=new L(k);case"object":if(F===this||F.closed||"function"!=typeof F.unsubscribe)return F;if(this.closed)return F.unsubscribe(),F;if(!(F instanceof L)){const D=F;F=new L,F._subscriptions=[D]}break;default:throw new Error("unrecognized teardown "+k+" added to Subscription.")}let{_parentOrParents:Y}=F;if(null===Y)F._parentOrParents=this;else if(Y instanceof L){if(Y===this)return F;F._parentOrParents=[Y,this]}else{if(-1!==Y.indexOf(this))return F;Y.push(this)}const I=this._subscriptions;return null===I?this._subscriptions=[F]:I.push(F),F}remove(k){const F=this._subscriptions;if(F){const Y=F.indexOf(k);-1!==Y&&F.splice(Y,1)}}}var b;function v(b){return b.reduce((k,F)=>k.concat(F instanceof m?F.errors:F),[])}L.EMPTY=((b=new L).closed=!0,b)},92830:(Ge,$,f)=>{f.d($,{v:()=>a});let o=!1;const a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(g){if(g){const h=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+h.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=g},get useDeprecatedSynchronousErrorHandling(){return o}}},41177:(Ge,$,f)=>{f.d($,{Ds:()=>L,IY:()=>h,ft:()=>b});var o=f(43489),a=f(56498),g=f(59249);class h extends o.L{constructor(F){super(),this.parent=F}_next(F){this.parent.notifyNext(F)}_error(F){this.parent.notifyError(F),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends o.L{notifyNext(F){this.destination.next(F)}notifyError(F){this.destination.error(F)}notifyComplete(){this.destination.complete()}}function b(k,F){if(F.closed)return;if(k instanceof a.y)return k.subscribe(F);let Y;try{Y=(0,g.s)(k)(F)}catch(I){F.error(I)}return Y}},61221:(Ge,$,f)=>{f.d($,{z:()=>h});var o=f(21086),a=f(89146);function h(...m){return function g(){return(0,a.J)(1)}()((0,o.of)(...m))}},88514:(Ge,$,f)=>{f.d($,{P:()=>h});var o=f(56498),a=f(5254),g=f(68896);function h(m){return new o.y(L=>{let v;try{v=m()}catch(k){return void L.error(k)}return(v?(0,a.D)(v):(0,g.c)()).subscribe(L)})}},68896:(Ge,$,f)=>{f.d($,{E:()=>a,c:()=>g});var o=f(56498);const a=new o.y(m=>m.complete());function g(m){return m?function h(m){return new o.y(L=>m.schedule(()=>L.complete()))}(m):a}},30567:(Ge,$,f)=>{f.d($,{D:()=>L});var o=f(56498),a=f(66688),g=f(24850),h=f(57830),m=f(5254);function L(...b){if(1===b.length){const k=b[0];if((0,a.k)(k))return v(k,null);if((0,h.K)(k)&&Object.getPrototypeOf(k)===Object.prototype){const F=Object.keys(k);return v(F.map(Y=>k[Y]),F)}}if("function"==typeof b[b.length-1]){const k=b.pop();return v(b=1===b.length&&(0,a.k)(b[0])?b[0]:b,null).pipe((0,g.U)(F=>k(...F)))}return v(b,null)}function v(b,k){return new o.y(F=>{const Y=b.length;if(0===Y)return void F.complete();const I=new Array(Y);let D=0,j=0;for(let W=0;W<Y;W++){const de=(0,m.D)(b[W]);let K=!1;F.add(de.subscribe({next:ee=>{K||(K=!0,j++),I[W]=ee},error:ee=>F.error(ee),complete:()=>{D++,(D===Y||!K)&&(j===Y&&F.next(k?k.reduce((ee,De,Te)=>(ee[De]=I[Te],ee),{}):I),F.complete())}}))}})}},5254:(Ge,$,f)=>{f.d($,{D:()=>W});var o=f(56498),a=f(59249),g=f(42654),h=f(93821),v=f(66454),b=f(5430),Y=f(98955),I=f(58515);function W(de,K){return K?function j(de,K){if(null!=de){if(function F(de){return de&&"function"==typeof de[h.L]}(de))return function m(de,K){return new o.y(ee=>{const De=new g.w;return De.add(K.schedule(()=>{const Te=de[h.L]();De.add(Te.subscribe({next(ce){De.add(K.schedule(()=>ee.next(ce)))},error(ce){De.add(K.schedule(()=>ee.error(ce)))},complete(){De.add(K.schedule(()=>ee.complete()))}}))})),De})}(de,K);if((0,Y.t)(de))return function L(de,K){return new o.y(ee=>{const De=new g.w;return De.add(K.schedule(()=>de.then(Te=>{De.add(K.schedule(()=>{ee.next(Te),De.add(K.schedule(()=>ee.complete()))}))},Te=>{De.add(K.schedule(()=>ee.error(Te)))}))),De})}(de,K);if((0,I.z)(de))return(0,v.r)(de,K);if(function D(de){return de&&"function"==typeof de[b.hZ]}(de)||"string"==typeof de)return function k(de,K){if(!de)throw new Error("Iterable cannot be null");return new o.y(ee=>{const De=new g.w;let Te;return De.add(()=>{Te&&"function"==typeof Te.return&&Te.return()}),De.add(K.schedule(()=>{Te=de[b.hZ](),De.add(K.schedule(function(){if(ee.closed)return;let ce,oe;try{const te=Te.next();ce=te.value,oe=te.done}catch(te){return void ee.error(te)}oe?ee.complete():(ee.next(ce),this.schedule())}))})),De})}(de,K)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,K):de instanceof o.y?de:new o.y((0,a.s)(de))}},33009:(Ge,$,f)=>{f.d($,{n:()=>h});var o=f(56498),a=f(13650),g=f(66454);function h(m,L){return L?(0,g.r)(m,L):new o.y((0,a.V)(m))}},23753:(Ge,$,f)=>{f.d($,{R:()=>L});var o=f(56498),a=f(66688),g=f(67043),h=f(24850);function L(Y,I,D,j){return(0,g.m)(D)&&(j=D,D=void 0),j?L(Y,I,D).pipe((0,h.U)(W=>(0,a.k)(W)?j(...W):j(W))):new o.y(W=>{v(Y,I,function de(K){W.next(arguments.length>1?Array.prototype.slice.call(arguments):K)},W,D)})}function v(Y,I,D,j,W){let de;if(function F(Y){return Y&&"function"==typeof Y.addEventListener&&"function"==typeof Y.removeEventListener}(Y)){const K=Y;Y.addEventListener(I,D,W),de=()=>K.removeEventListener(I,D,W)}else if(function k(Y){return Y&&"function"==typeof Y.on&&"function"==typeof Y.off}(Y)){const K=Y;Y.on(I,D),de=()=>K.off(I,D)}else if(function b(Y){return Y&&"function"==typeof Y.addListener&&"function"==typeof Y.removeListener}(Y)){const K=Y;Y.addListener(I,D),de=()=>K.removeListener(I,D)}else{if(!Y||!Y.length)throw new TypeError("Invalid event target");for(let K=0,ee=Y.length;K<ee;K++)v(Y[K],I,D,j,W)}j.add(de)}},36787:(Ge,$,f)=>{f.d($,{T:()=>m});var o=f(56498),a=f(72866),g=f(89146),h=f(33009);function m(...L){let v=Number.POSITIVE_INFINITY,b=null,k=L[L.length-1];return(0,a.K)(k)?(b=L.pop(),L.length>1&&"number"==typeof L[L.length-1]&&(v=L.pop())):"number"==typeof k&&(v=L.pop()),null===b&&1===L.length&&L[0]instanceof o.y?L[0]:(0,g.J)(v)((0,h.n)(L,b))}},21086:(Ge,$,f)=>{f.d($,{of:()=>h});var o=f(72866),a=f(33009),g=f(66454);function h(...m){let L=m[m.length-1];return(0,o.K)(L)?(m.pop(),(0,g.r)(m,L)):(0,a.n)(m)}},61737:(Ge,$,f)=>{f.d($,{_:()=>a});var o=f(56498);function a(h,m){return new o.y(m?L=>m.schedule(g,0,{error:h,subscriber:L}):L=>L.error(h))}function g({error:h,subscriber:m}){m.error(h)}},27221:(Ge,$,f)=>{f.d($,{K:()=>a});var o=f(41177);function a(m){return function(v){const b=new g(m),k=v.lift(b);return b.caught=k}}class g{constructor(L){this.selector=L}call(L,v){return v.subscribe(new h(L,this.selector,this.caught))}}class h extends o.Ds{constructor(L,v,b){super(L),this.selector=v,this.caught=b}error(L){if(!this.isStopped){let v;try{v=this.selector(L,this.caught)}catch(F){return void super.error(F)}this._unsubscribeAndRecycle();const b=new o.IY(this);this.add(b);const k=(0,o.ft)(v,b);k!==b&&this.add(k)}}}},21406:(Ge,$,f)=>{f.d($,{b:()=>a});var o=f(61709);function a(g,h){return(0,o.zg)(g,h,1)}},80013:(Ge,$,f)=>{f.d($,{b:()=>g});var o=f(43489),a=f(20353);function g(v,b=a.P){return k=>k.lift(new h(v,b))}class h{constructor(b,k){this.dueTime=b,this.scheduler=k}call(b,k){return k.subscribe(new m(b,this.dueTime,this.scheduler))}}class m extends o.L{constructor(b,k,F){super(b),this.dueTime=k,this.scheduler=F,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(b){this.clearDebounce(),this.lastValue=b,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:b}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(b)}}clearDebounce(){const b=this.debouncedSubscription;null!==b&&(this.remove(b),b.unsubscribe(),this.debouncedSubscription=null)}}function L(v){v.debouncedNext()}},18583:(Ge,$,f)=>{f.d($,{g:()=>m});var o=f(20353),g=f(43489),h=f(29312);function m(k,F=o.P){const I=function a(k){return k instanceof Date&&!isNaN(+k)}(k)?+k-F.now():Math.abs(k);return D=>D.lift(new L(I,F))}class L{constructor(F,Y){this.delay=F,this.scheduler=Y}call(F,Y){return Y.subscribe(new v(F,this.delay,this.scheduler))}}class v extends g.L{constructor(F,Y,I){super(F),this.delay=Y,this.scheduler=I,this.queue=[],this.active=!1,this.errored=!1}static dispatch(F){const Y=F.source,I=Y.queue,D=F.scheduler,j=F.destination;for(;I.length>0&&I[0].time-D.now()<=0;)I.shift().notification.observe(j);if(I.length>0){const W=Math.max(0,I[0].time-D.now());this.schedule(F,W)}else this.unsubscribe(),Y.active=!1}_schedule(F){this.active=!0,this.destination.add(F.schedule(v.dispatch,this.delay,{source:this,destination:this.destination,scheduler:F}))}scheduleNotification(F){if(!0===this.errored)return;const Y=this.scheduler,I=new b(Y.now()+this.delay,F);this.queue.push(I),!1===this.active&&this._schedule(Y)}_next(F){this.scheduleNotification(h.P.createNext(F))}_error(F){this.errored=!0,this.queue=[],this.destination.error(F),this.unsubscribe()}_complete(){this.scheduleNotification(h.P.createComplete()),this.unsubscribe()}}class b{constructor(F,Y){this.time=F,this.notification=Y}}},75778:(Ge,$,f)=>{f.d($,{x:()=>a});var o=f(43489);function a(m,L){return v=>v.lift(new g(m,L))}class g{constructor(L,v){this.compare=L,this.keySelector=v}call(L,v){return v.subscribe(new h(L,this.compare,this.keySelector))}}class h extends o.L{constructor(L,v,b){super(L),this.keySelector=b,this.hasKey=!1,"function"==typeof v&&(this.compare=v)}compare(L,v){return L===v}_next(L){let v;try{const{keySelector:k}=this;v=k?k(L):L}catch(k){return this.destination.error(k)}let b=!1;if(this.hasKey)try{const{compare:k}=this;b=k(this.key,v)}catch(k){return this.destination.error(k)}else this.hasKey=!0;b||(this.key=v,this.destination.next(L))}}},92198:(Ge,$,f)=>{f.d($,{h:()=>a});var o=f(43489);function a(m,L){return function(b){return b.lift(new g(m,L))}}class g{constructor(L,v){this.predicate=L,this.thisArg=v}call(L,v){return v.subscribe(new h(L,this.predicate,this.thisArg))}}class h extends o.L{constructor(L,v,b){super(L),this.predicate=v,this.thisArg=b,this.count=0}_next(L){let v;try{v=this.predicate.call(this.thisArg,L,this.count++)}catch(b){return void this.destination.error(b)}v&&this.destination.next(L)}}},40537:(Ge,$,f)=>{f.d($,{x:()=>g});var o=f(43489),a=f(42654);function g(L){return v=>v.lift(new h(L))}class h{constructor(v){this.callback=v}call(v,b){return b.subscribe(new m(v,this.callback))}}class m extends o.L{constructor(v,b){super(v),this.add(new a.w(b))}}},24850:(Ge,$,f)=>{f.d($,{U:()=>a});var o=f(43489);function a(m,L){return function(b){if("function"!=typeof m)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return b.lift(new g(m,L))}}class g{constructor(L,v){this.project=L,this.thisArg=v}call(L,v){return v.subscribe(new h(L,this.project,this.thisArg))}}class h extends o.L{constructor(L,v,b){super(L),this.project=v,this.count=0,this.thisArg=b||this}_next(L){let v;try{v=this.project.call(this.thisArg,L,this.count++)}catch(b){return void this.destination.error(b)}this.destination.next(v)}}},89146:(Ge,$,f)=>{f.d($,{J:()=>g});var o=f(61709),a=f(35379);function g(h=Number.POSITIVE_INFINITY){return(0,o.zg)(a.y,h)}},61709:(Ge,$,f)=>{f.d($,{zg:()=>h});var o=f(24850),a=f(5254),g=f(41177);function h(b,k,F=Number.POSITIVE_INFINITY){return"function"==typeof k?Y=>Y.pipe(h((I,D)=>(0,a.D)(b(I,D)).pipe((0,o.U)((j,W)=>k(I,j,D,W))),F)):("number"==typeof k&&(F=k),Y=>Y.lift(new m(b,F)))}class m{constructor(k,F=Number.POSITIVE_INFINITY){this.project=k,this.concurrent=F}call(k,F){return F.subscribe(new L(k,this.project,this.concurrent))}}class L extends g.Ds{constructor(k,F,Y=Number.POSITIVE_INFINITY){super(k),this.project=F,this.concurrent=Y,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(k){this.active<this.concurrent?this._tryNext(k):this.buffer.push(k)}_tryNext(k){let F;const Y=this.index++;try{F=this.project(k,Y)}catch(I){return void this.destination.error(I)}this.active++,this._innerSub(F)}_innerSub(k){const F=new g.IY(this),Y=this.destination;Y.add(F);const I=(0,g.ft)(k,F);I!==F&&Y.add(I)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(k){this.destination.next(k)}notifyComplete(){const k=this.buffer;this.active--,k.length>0?this._next(k.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},59973:(Ge,$,f)=>{f.d($,{X:()=>a});var o=f(43489);function a(m=-1){return L=>L.lift(new g(m,L))}class g{constructor(L,v){this.count=L,this.source=v}call(L,v){return v.subscribe(new h(L,this.count,this.source))}}class h extends o.L{constructor(L,v,b){super(L),this.count=v,this.source=b}error(L){if(!this.isStopped){const{source:v,count:b}=this;if(0===b)return super.error(L);b>-1&&(this.count=b-1),v.subscribe(this._unsubscribeAndRecycle())}}}},26582:(Ge,$,f)=>{f.d($,{a:()=>g});var o=f(8929),a=f(41177);function g(L){return v=>v.lift(new h(L,v))}class h{constructor(v,b){this.notifier=v,this.source=b}call(v,b){return b.subscribe(new m(v,this.notifier,this.source))}}class m extends a.Ds{constructor(v,b,k){super(v),this.notifier=b,this.source=k}error(v){if(!this.isStopped){let b=this.errors,k=this.retries,F=this.retriesSubscription;if(k)this.errors=void 0,this.retriesSubscription=void 0;else{b=new o.xQ;try{const{notifier:Y}=this;k=Y(b)}catch(Y){return super.error(Y)}F=(0,a.ft)(k,new a.IY(this))}this._unsubscribeAndRecycle(),this.errors=b,this.retries=k,this.retriesSubscription=F,b.next(v)}}_unsubscribe(){const{errors:v,retriesSubscription:b}=this;v&&(v.unsubscribe(),this.errors=void 0),b&&(b.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:v}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=v,this.source.subscribe(this)}}},26232:(Ge,$,f)=>{f.d($,{d:()=>De});var o=f(8929),a=f(56686),h=f(32268);const v=new class m extends h.v{}(class g extends a.o{constructor(oe,te){super(oe,te),this.scheduler=oe,this.work=te}schedule(oe,te=0){return te>0?super.schedule(oe,te):(this.delay=te,this.state=oe,this.scheduler.flush(this),this)}execute(oe,te){return te>0||this.closed?super.execute(oe,te):this._execute(oe,te)}requestAsyncId(oe,te,ge=0){return null!==ge&&ge>0||null===ge&&this.delay>0?super.requestAsyncId(oe,te,ge):oe.flush(this)}});var b=f(42654),k=f(43489),F=f(29312);class D extends k.L{constructor(oe,te,ge=0){super(oe),this.scheduler=te,this.delay=ge}static dispatch(oe){const{notification:te,destination:ge}=oe;te.observe(ge),this.unsubscribe()}scheduleMessage(oe){this.destination.add(this.scheduler.schedule(D.dispatch,this.delay,new j(oe,this.destination)))}_next(oe){this.scheduleMessage(F.P.createNext(oe))}_error(oe){this.scheduleMessage(F.P.createError(oe)),this.unsubscribe()}_complete(){this.scheduleMessage(F.P.createComplete()),this.unsubscribe()}}class j{constructor(oe,te){this.notification=oe,this.destination=te}}var W=f(95279),de=f(45283);class K extends o.xQ{constructor(oe=Number.POSITIVE_INFINITY,te=Number.POSITIVE_INFINITY,ge){super(),this.scheduler=ge,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=oe<1?1:oe,this._windowTime=te<1?1:te,te===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(oe){if(!this.isStopped){const te=this._events;te.push(oe),te.length>this._bufferSize&&te.shift()}super.next(oe)}nextTimeWindow(oe){this.isStopped||(this._events.push(new ee(this._getNow(),oe)),this._trimBufferThenGetEvents()),super.next(oe)}_subscribe(oe){const te=this._infiniteTimeWindow,ge=te?this._events:this._trimBufferThenGetEvents(),xe=this.scheduler,he=ge.length;let Le;if(this.closed)throw new W.N;if(this.isStopped||this.hasError?Le=b.w.EMPTY:(this.observers.push(oe),Le=new de.W(this,oe)),xe&&oe.add(oe=new D(oe,xe)),te)for(let Ce=0;Ce<he&&!oe.closed;Ce++)oe.next(ge[Ce]);else for(let Ce=0;Ce<he&&!oe.closed;Ce++)oe.next(ge[Ce].value);return this.hasError?oe.error(this.thrownError):this.isStopped&&oe.complete(),Le}_getNow(){return(this.scheduler||v).now()}_trimBufferThenGetEvents(){const oe=this._getNow(),te=this._bufferSize,ge=this._windowTime,xe=this._events,he=xe.length;let Le=0;for(;Le<he&&!(oe-xe[Le].time<ge);)Le++;return he>te&&(Le=Math.max(Le,he-te)),Le>0&&xe.splice(0,Le),xe}}class ee{constructor(oe,te){this.time=oe,this.value=te}}function De(ce,oe,te){let ge;return ge=ce&&"object"==typeof ce?ce:{bufferSize:ce,windowTime:oe,refCount:!1,scheduler:te},xe=>xe.lift(function Te({bufferSize:ce=Number.POSITIVE_INFINITY,windowTime:oe=Number.POSITIVE_INFINITY,refCount:te,scheduler:ge}){let xe,Le,he=0,Ce=!1,ie=!1;return function(me){let Ne;he++,!xe||Ce?(Ce=!1,xe=new K(ce,oe,ge),Ne=xe.subscribe(this),Le=me.subscribe({next(_e){xe.next(_e)},error(_e){Ce=!0,xe.error(_e)},complete(){ie=!0,Le=void 0,xe.complete()}}),ie&&(Le=void 0)):Ne=xe.subscribe(this),this.add(()=>{he--,Ne.unsubscribe(),Ne=void 0,Le&&!ie&&te&&0===he&&(Le.unsubscribe(),Le=void 0,xe=void 0)})}}(ge))}},87545:(Ge,$,f)=>{f.d($,{w:()=>h});var o=f(24850),a=f(5254),g=f(41177);function h(v,b){return"function"==typeof b?k=>k.pipe(h((F,Y)=>(0,a.D)(v(F,Y)).pipe((0,o.U)((I,D)=>b(F,I,Y,D))))):k=>k.lift(new m(v))}class m{constructor(b){this.project=b}call(b,k){return k.subscribe(new L(b,this.project))}}class L extends g.Ds{constructor(b,k){super(b),this.project=k,this.index=0}_next(b){let k;const F=this.index++;try{k=this.project(b,F)}catch(Y){return void this.destination.error(Y)}this._innerSub(k)}_innerSub(b){const k=this.innerSubscription;k&&k.unsubscribe();const F=new g.IY(this),Y=this.destination;Y.add(F),this.innerSubscription=(0,g.ft)(b,F),this.innerSubscription!==F&&Y.add(this.innerSubscription)}_complete(){const{innerSubscription:b}=this;(!b||b.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(b){this.destination.next(b)}}},72986:(Ge,$,f)=>{f.d($,{q:()=>h});var o=f(43489),a=f(94231),g=f(68896);function h(v){return b=>0===v?(0,g.c)():b.lift(new m(v))}class m{constructor(b){if(this.total=b,this.total<0)throw new a.W}call(b,k){return k.subscribe(new L(b,this.total))}}class L extends o.L{constructor(b,k){super(b),this.total=k,this.count=0}_next(b){const k=this.total,F=++this.count;F<=k&&(this.destination.next(b),F===k&&(this.destination.complete(),this.unsubscribe()))}}},92821:(Ge,$,f)=>{f.d($,{h:()=>h});var o=f(43489),a=f(94231),g=f(68896);function h(v){return function(k){return 0===v?(0,g.c)():k.lift(new m(v))}}class m{constructor(b){if(this.total=b,this.total<0)throw new a.W}call(b,k){return k.subscribe(new L(b,this.total))}}class L extends o.L{constructor(b,k){super(b),this.total=k,this.ring=new Array,this.count=0}_next(b){const k=this.ring,F=this.total,Y=this.count++;k.length<F?k.push(b):k[Y%F]=b}_complete(){const b=this.destination;let k=this.count;if(k>0){const F=this.count>=this.total?this.total:this.count,Y=this.ring;for(let I=0;I<F;I++){const D=k++%F;b.next(Y[D])}}b.complete()}}},7625:(Ge,$,f)=>{f.d($,{R:()=>a});var o=f(41177);function a(m){return L=>L.lift(new g(m))}class g{constructor(L){this.notifier=L}call(L,v){const b=new h(L),k=(0,o.ft)(this.notifier,new o.IY(b));return k&&!b.seenValue?(b.add(k),v.subscribe(b)):b}}class h extends o.Ds{constructor(L){super(L),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},22868:(Ge,$,f)=>{f.d($,{b:()=>h});var o=f(43489);function a(){}var g=f(67043);function h(v,b,k){return function(Y){return Y.lift(new m(v,b,k))}}class m{constructor(b,k,F){this.nextOrObserver=b,this.error=k,this.complete=F}call(b,k){return k.subscribe(new L(b,this.nextOrObserver,this.error,this.complete))}}class L extends o.L{constructor(b,k,F,Y){super(b),this._tapNext=a,this._tapError=a,this._tapComplete=a,this._tapError=F||a,this._tapComplete=Y||a,(0,g.m)(k)?(this._context=this,this._tapNext=k):k&&(this._context=k,this._tapNext=k.next||a,this._tapError=k.error||a,this._tapComplete=k.complete||a)}_next(b){try{this._tapNext.call(this._context,b)}catch(k){return void this.destination.error(k)}this.destination.next(b)}_error(b){try{this._tapError.call(this._context,b)}catch(k){return void this.destination.error(k)}this.destination.error(b)}_complete(){try{this._tapComplete.call(this._context)}catch(b){return void this.destination.error(b)}return this.destination.complete()}}},66454:(Ge,$,f)=>{f.d($,{r:()=>g});var o=f(56498),a=f(42654);function g(h,m){return new o.y(L=>{const v=new a.w;let b=0;return v.add(m.schedule(function(){b!==h.length?(L.next(h[b++]),L.closed||v.add(this.schedule())):L.complete()})),v})}},56686:(Ge,$,f)=>{f.d($,{o:()=>g});var o=f(42654);class a extends o.w{constructor(m,L){super()}schedule(m,L=0){return this}}class g extends a{constructor(m,L){super(m,L),this.scheduler=m,this.work=L,this.pending=!1}schedule(m,L=0){if(this.closed)return this;this.state=m;const v=this.id,b=this.scheduler;return null!=v&&(this.id=this.recycleAsyncId(b,v,L)),this.pending=!0,this.delay=L,this.id=this.id||this.requestAsyncId(b,this.id,L),this}requestAsyncId(m,L,v=0){return setInterval(m.flush.bind(m,this),v)}recycleAsyncId(m,L,v=0){if(null!==v&&this.delay===v&&!1===this.pending)return L;clearInterval(L)}execute(m,L){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const v=this._execute(m,L);if(v)return v;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(m,L){let b,v=!1;try{this.work(m)}catch(k){v=!0,b=!!k&&k||new Error(k)}if(v)return this.unsubscribe(),b}_unsubscribe(){const m=this.id,L=this.scheduler,v=L.actions,b=v.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==b&&v.splice(b,1),null!=m&&(this.id=this.recycleAsyncId(L,m,null)),this.delay=null}}},32268:(Ge,$,f)=>{f.d($,{v:()=>a});let o=(()=>{class g{constructor(m,L=g.now){this.SchedulerAction=m,this.now=L}schedule(m,L=0,v){return new this.SchedulerAction(this,m).schedule(v,L)}}return g.now=()=>Date.now(),g})();class a extends o{constructor(h,m=o.now){super(h,()=>a.delegate&&a.delegate!==this?a.delegate.now():m()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(h,m=0,L){return a.delegate&&a.delegate!==this?a.delegate.schedule(h,m,L):super.schedule(h,m,L)}flush(h){const{actions:m}=this;if(this.active)return void m.push(h);let L;this.active=!0;do{if(L=h.execute(h.state,h.delay))break}while(h=m.shift());if(this.active=!1,L){for(;h=m.shift();)h.unsubscribe();throw L}}}},20353:(Ge,$,f)=>{f.d($,{P:()=>h});var o=f(56686);const h=new(f(32268).v)(o.o)},5430:(Ge,$,f)=>{f.d($,{hZ:()=>a});const a=function o(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:(Ge,$,f)=>{f.d($,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:(Ge,$,f)=>{f.d($,{b:()=>o});const o="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},94231:(Ge,$,f)=>{f.d($,{W:()=>a});const a=(()=>{function g(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return g.prototype=Object.create(Error.prototype),g})()},95279:(Ge,$,f)=>{f.d($,{N:()=>a});const a=(()=>{function g(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return g.prototype=Object.create(Error.prototype),g})()},22782:(Ge,$,f)=>{function o(a){setTimeout(()=>{throw a},0)}f.d($,{z:()=>o})},35379:(Ge,$,f)=>{function o(a){return a}f.d($,{y:()=>o})},66688:(Ge,$,f)=>{f.d($,{k:()=>o});const o=Array.isArray||(a=>a&&"number"==typeof a.length)},58515:(Ge,$,f)=>{f.d($,{z:()=>o});const o=a=>a&&"number"==typeof a.length&&"function"!=typeof a},67043:(Ge,$,f)=>{function o(a){return"function"==typeof a}f.d($,{m:()=>o})},57830:(Ge,$,f)=>{function o(a){return null!==a&&"object"==typeof a}f.d($,{K:()=>o})},98955:(Ge,$,f)=>{function o(a){return!!a&&"function"!=typeof a.subscribe&&"function"==typeof a.then}f.d($,{t:()=>o})},72866:(Ge,$,f)=>{function o(a){return a&&"function"==typeof a.schedule}f.d($,{K:()=>o})},4843:(Ge,$,f)=>{f.d($,{U:()=>g,z:()=>a});var o=f(35379);function a(...h){return g(h)}function g(h){return 0===h.length?o.y:1===h.length?h[0]:function(L){return h.reduce((v,b)=>b(v),L)}}},59249:(Ge,$,f)=>{f.d($,{s:()=>Y});var o=f(13650),a=f(22782),h=f(5430),L=f(93821),b=f(58515),k=f(98955),F=f(57830);const Y=I=>{if(I&&"function"==typeof I[L.L])return(I=>D=>{const j=I[L.L]();if("function"!=typeof j.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return j.subscribe(D)})(I);if((0,b.z)(I))return(0,o.V)(I);if((0,k.t)(I))return(I=>D=>(I.then(j=>{D.closed||(D.next(j),D.complete())},j=>D.error(j)).then(null,a.z),D))(I);if(I&&"function"==typeof I[h.hZ])return(I=>D=>{const j=I[h.hZ]();for(;;){let W;try{W=j.next()}catch(de){return D.error(de),D}if(W.done){D.complete();break}if(D.next(W.value),D.closed)break}return"function"==typeof j.return&&D.add(()=>{j.return&&j.return()}),D})(I);{const j=`You provided ${(0,F.K)(I)?"an invalid object":`'${I}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(j)}}},13650:(Ge,$,f)=>{f.d($,{V:()=>o});const o=a=>g=>{for(let h=0,m=a.length;h<m&&!g.closed;h++)g.next(a[h]);g.complete()}},50863:(Ge,$,f)=>{var o={"./ion-accordion_2.entry.js":[89654,9654],"./ion-action-sheet.entry.js":[3648,3648],"./ion-alert.entry.js":[11118,1118],"./ion-app_8.entry.js":[80053,53],"./ion-avatar_3.entry.js":[54753,4753],"./ion-back-button.entry.js":[92073,2073],"./ion-backdrop.entry.js":[98939,8939],"./ion-breadcrumb_2.entry.js":[47544,7544],"./ion-button_2.entry.js":[15652,5652],"./ion-card_5.entry.js":[50388,388],"./ion-checkbox.entry.js":[9922,9922],"./ion-chip.entry.js":[10657,657],"./ion-col_3.entry.js":[19824,9824],"./ion-datetime-button.entry.js":[49230,9230],"./ion-datetime_3.entry.js":[54959,4959],"./ion-fab_3.entry.js":[65836,5836],"./ion-img.entry.js":[71033,1033],"./ion-infinite-scroll_2.entry.js":[8034,8034],"./ion-input.entry.js":[51217,1217],"./ion-item-option_3.entry.js":[52933,2933],"./ion-item_8.entry.js":[94711,4711],"./ion-loading.entry.js":[79434,9434],"./ion-menu_3.entry.js":[38136,8136],"./ion-modal.entry.js":[42349,2349],"./ion-nav_2.entry.js":[45349,5349],"./ion-picker-column-internal.entry.js":[7602,7602],"./ion-picker-internal.entry.js":[9016,9016],"./ion-popover.entry.js":[83804,3804],"./ion-progress-bar.entry.js":[54174,4174],"./ion-radio_2.entry.js":[24432,4432],"./ion-range.entry.js":[31709,1709],"./ion-refresher_2.entry.js":[93326,3326],"./ion-reorder_2.entry.js":[93583,3583],"./ion-ripple-effect.entry.js":[99958,9958],"./ion-route_4.entry.js":[4330,4330],"./ion-searchbar.entry.js":[98628,8628],"./ion-segment_2.entry.js":[59325,9325],"./ion-select_3.entry.js":[12773,2773],"./ion-slide_2.entry.js":[1650,1650],"./ion-spinner.entry.js":[44908,4908],"./ion-split-pane.entry.js":[39536,9536],"./ion-tab-bar_2.entry.js":[438,438],"./ion-tab_2.entry.js":[91536,1536],"./ion-text.entry.js":[74376,4376],"./ion-textarea.entry.js":[56560,6560],"./ion-toast.entry.js":[76120,6120],"./ion-toggle.entry.js":[85168,5168],"./ion-virtual-scroll.entry.js":[32289,2289]};function a(g){if(!f.o(o,g))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+g+"'");throw L.code="MODULE_NOT_FOUND",L});var h=o[g],m=h[0];return f.e(h[1]).then(()=>f(m))}a.keys=()=>Object.keys(o),a.id=50863,Ge.exports=a},91870:Ge=>{function $(f){return Promise.resolve().then(()=>{var o=new Error("Cannot find module '"+f+"'");throw o.code="MODULE_NOT_FOUND",o})}$.keys=()=>[],$.resolve=$,$.id=91870,Ge.exports=$},46700:(Ge,$,f)=>{var o={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-ps":14523,"./ar-ps.js":14523,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku-kmr":63775,"./ku-kmr.js":63775,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function a(h){var m=g(h);return f(m)}function g(h){if(!f.o(o,h)){var m=new Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m}return o[h]}a.keys=function(){return Object.keys(o)},a.resolve=g,Ge.exports=a,a.id=46700},64902:()=>{},40522:()=>{},90753:()=>{},37340:(Ge,$,f)=>{f.d($,{LC:()=>a,X$:()=>h,ZE:()=>De,ZN:()=>ee,_j:()=>o,eR:()=>Y,jt:()=>m,k1:()=>Te,l3:()=>g,oB:()=>b,vP:()=>v});class o{}class a{}const g="*";function h(ce,oe){return{type:7,name:ce,definitions:oe,options:{}}}function m(ce,oe=null){return{type:4,styles:oe,timings:ce}}function v(ce,oe=null){return{type:2,steps:ce,options:oe}}function b(ce){return{type:6,styles:ce,offset:null}}function Y(ce,oe,te=null){return{type:1,expr:ce,animation:oe,options:te}}function K(ce){Promise.resolve().then(ce)}class ee{constructor(oe=0,te=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=oe+te}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(oe=>oe()),this._onDoneFns=[])}onStart(oe){this._originalOnStartFns.push(oe),this._onStartFns.push(oe)}onDone(oe){this._originalOnDoneFns.push(oe),this._onDoneFns.push(oe)}onDestroy(oe){this._onDestroyFns.push(oe)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){K(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(oe=>oe()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(oe=>oe()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(oe){this._position=this.totalTime?oe*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(oe){const te="start"==oe?this._onStartFns:this._onDoneFns;te.forEach(ge=>ge()),te.length=0}}class De{constructor(oe){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=oe;let te=0,ge=0,xe=0;const he=this.players.length;0==he?K(()=>this._onFinish()):this.players.forEach(Le=>{Le.onDone(()=>{++te==he&&this._onFinish()}),Le.onDestroy(()=>{++ge==he&&this._onDestroy()}),Le.onStart(()=>{++xe==he&&this._onStart()})}),this.totalTime=this.players.reduce((Le,Ce)=>Math.max(Le,Ce.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(oe=>oe()),this._onDoneFns=[])}init(){this.players.forEach(oe=>oe.init())}onStart(oe){this._onStartFns.push(oe)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(oe=>oe()),this._onStartFns=[])}onDone(oe){this._onDoneFns.push(oe)}onDestroy(oe){this._onDestroyFns.push(oe)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(oe=>oe.play())}pause(){this.players.forEach(oe=>oe.pause())}restart(){this.players.forEach(oe=>oe.restart())}finish(){this._onFinish(),this.players.forEach(oe=>oe.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(oe=>oe.destroy()),this._onDestroyFns.forEach(oe=>oe()),this._onDestroyFns=[])}reset(){this.players.forEach(oe=>oe.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(oe){const te=oe*this.totalTime;this.players.forEach(ge=>{const xe=ge.totalTime?Math.min(1,te/ge.totalTime):1;ge.setPosition(xe)})}getPosition(){const oe=this.players.reduce((te,ge)=>null===te||ge.totalTime>te.totalTime?ge:te,null);return null!=oe?oe.getPosition():0}beforeDestroy(){this.players.forEach(oe=>{oe.beforeDestroy&&oe.beforeDestroy()})}triggerCallback(oe){const te="start"==oe?this._onStartFns:this._onDoneFns;te.forEach(ge=>ge()),te.length=0}}const Te="!"},24006:(Ge,$,f)=>{f.r($),f.d($,{AbstractControl:()=>Zn,AbstractControlDirective:()=>xn,AbstractFormGroupDirective:()=>Pt,COMPOSITION_BUFFER_MODE:()=>D,CheckboxControlValueAccessor:()=>F,CheckboxRequiredValidator:()=>bt,ControlContainer:()=>gn,DefaultValueAccessor:()=>j,EmailValidator:()=>Rt,FormArray:()=>G,FormArrayName:()=>qr,FormBuilder:()=>Ln,FormControl:()=>Po,FormControlDirective:()=>Yi,FormControlName:()=>va,FormGroup:()=>uo,FormGroupDirective:()=>aa,FormGroupName:()=>qo,FormRecord:()=>Fo,FormsModule:()=>ko,MaxLengthValidator:()=>Wn,MaxValidator:()=>Pe,MinLengthValidator:()=>qt,MinValidator:()=>Z,NG_ASYNC_VALIDATORS:()=>De,NG_VALIDATORS:()=>ee,NG_VALUE_ACCESSOR:()=>b,NgControl:()=>Et,NgControlStatus:()=>en,NgControlStatusGroup:()=>Gt,NgForm:()=>bi,NgModel:()=>Yn,NgModelGroup:()=>Kt,NgSelectOption:()=>Go,NonNullableFormBuilder:()=>Rr,NumberValueAccessor:()=>Co,PatternValidator:()=>sr,RadioControlValueAccessor:()=>Qr,RangeValueAccessor:()=>_a,ReactiveFormsModule:()=>y,RequiredValidator:()=>it,SelectControlValueAccessor:()=>Fi,SelectMultipleControlValueAccessor:()=>Wi,UntypedFormArray:()=>Je,UntypedFormBuilder:()=>A,UntypedFormControl:()=>We,UntypedFormGroup:()=>fr,VERSION:()=>X,Validators:()=>ce,\u0275InternalFormsSharedModule:()=>fo,\u0275NgNoValidate:()=>Hn,\u0275NgSelectMultipleOption:()=>Za});var o=f(45449),a=f(90944),g=f(5254),h=f(30567),m=f(24850);let L=(()=>{class _{constructor(O,ve){this._renderer=O,this._elementRef=ve,this.onChange=Lt=>{},this.onTouched=()=>{}}setProperty(O,ve){this._renderer.setProperty(this._elementRef.nativeElement,O,ve)}registerOnTouched(O){this.onTouched=O}registerOnChange(O){this.onChange=O}setDisabledState(O){this.setProperty("disabled",O)}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_}),_})(),v=(()=>{class _ extends L{}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,features:[o.\u0275\u0275InheritDefinitionFeature]}),_})();const b=new o.InjectionToken("NgValueAccessor"),k={provide:b,useExisting:(0,o.forwardRef)(()=>F),multi:!0};let F=(()=>{class _ extends v{writeValue(O){this.setProperty("checked",O)}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("change",function(an){return ve.onChange(an.target.checked)})("blur",function(){return ve.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([k]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const Y={provide:b,useExisting:(0,o.forwardRef)(()=>j),multi:!0},D=new o.InjectionToken("CompositionEventMode");let j=(()=>{class _ extends L{constructor(O,ve,Lt){super(O,ve),this._compositionMode=Lt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function I(){const _=(0,a.\u0275getDOM)()?(0,a.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(_.toLowerCase())}())}writeValue(O){this.setProperty("value",O??"")}_handleInput(O){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(O)}_compositionStart(){this._composing=!0}_compositionEnd(O){this._composing=!1,this._compositionMode&&this.onChange(O)}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(D,8))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("input",function(an){return ve._handleInput(an.target.value)})("blur",function(){return ve.onTouched()})("compositionstart",function(){return ve._compositionStart()})("compositionend",function(an){return ve._compositionEnd(an.target.value)})},features:[o.\u0275\u0275ProvidersFeature([Y]),o.\u0275\u0275InheritDefinitionFeature]}),_})();function de(_){return null==_||("string"==typeof _||Array.isArray(_))&&0===_.length}function K(_){return null!=_&&"number"==typeof _.length}const ee=new o.InjectionToken("NgValidators"),De=new o.InjectionToken("NgAsyncValidators"),Te=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ce{static min(T){return oe(T)}static max(T){return te(T)}static required(T){return ge(T)}static requiredTrue(T){return xe(T)}static email(T){return he(T)}static minLength(T){return Le(T)}static maxLength(T){return Ce(T)}static pattern(T){return ie(T)}static nullValidator(T){return null}static compose(T){return Ue(T)}static composeAsync(T){return ze(T)}}function oe(_){return T=>{if(de(T.value)||de(_))return null;const O=parseFloat(T.value);return!isNaN(O)&&O<_?{min:{min:_,actual:T.value}}:null}}function te(_){return T=>{if(de(T.value)||de(_))return null;const O=parseFloat(T.value);return!isNaN(O)&&O>_?{max:{max:_,actual:T.value}}:null}}function ge(_){return de(_.value)?{required:!0}:null}function xe(_){return!0===_.value?null:{required:!0}}function he(_){return de(_.value)||Te.test(_.value)?null:{email:!0}}function Le(_){return T=>de(T.value)||!K(T.value)?null:T.value.length<_?{minlength:{requiredLength:_,actualLength:T.value.length}}:null}function Ce(_){return T=>K(T.value)&&T.value.length>_?{maxlength:{requiredLength:_,actualLength:T.value.length}}:null}function ie(_){if(!_)return se;let T,O;return"string"==typeof _?(O="","^"!==_.charAt(0)&&(O+="^"),O+=_,"$"!==_.charAt(_.length-1)&&(O+="$"),T=new RegExp(O)):(O=_.toString(),T=_),ve=>{if(de(ve.value))return null;const Lt=ve.value;return T.test(Lt)?null:{pattern:{requiredPattern:O,actualValue:Lt}}}}function se(_){return null}function me(_){return null!=_}function Ne(_){return(0,o.\u0275isPromise)(_)?(0,g.D)(_):_}function _e(_){let T={};return _.forEach(O=>{T=null!=O?{...T,...O}:T}),0===Object.keys(T).length?null:T}function we(_,T){return T.map(O=>O(_))}function le(_){return _.map(T=>function Ee(_){return!_.validate}(T)?T:O=>T.validate(O))}function Ue(_){if(!_)return null;const T=_.filter(me);return 0==T.length?null:function(O){return _e(we(O,T))}}function ke(_){return null!=_?Ue(le(_)):null}function ze(_){if(!_)return null;const T=_.filter(me);return 0==T.length?null:function(O){const ve=we(O,T).map(Ne);return(0,h.D)(ve).pipe((0,m.U)(_e))}}function ye(_){return null!=_?ze(le(_)):null}function je(_,T){return null===_?[T]:Array.isArray(_)?[..._,T]:[_,T]}function Ze(_){return _._rawValidators}function _t(_){return _._rawAsyncValidators}function At(_){return _?Array.isArray(_)?_:[_]:[]}function Vt(_,T){return Array.isArray(_)?_.includes(T):_===T}function fn(_,T){const O=At(T);return At(_).forEach(Lt=>{Vt(O,Lt)||O.push(Lt)}),O}function mn(_,T){return At(T).filter(O=>!Vt(_,O))}class xn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(T){this._rawValidators=T||[],this._composedValidatorFn=ke(this._rawValidators)}_setAsyncValidators(T){this._rawAsyncValidators=T||[],this._composedAsyncValidatorFn=ye(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(T){this._onDestroyCallbacks.push(T)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(T=>T()),this._onDestroyCallbacks=[]}reset(T){this.control&&this.control.reset(T)}hasError(T,O){return!!this.control&&this.control.hasError(T,O)}getError(T,O){return this.control?this.control.getError(T,O):null}}class gn extends xn{get formDirective(){return null}get path(){return null}}class Et extends xn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class cn{constructor(T){this._cd=T}get isTouched(){var T,O;return!(null===(T=this._cd)||void 0===T||null===(O=T.control)||void 0===O||!O.touched)}get isUntouched(){var T,O;return!(null===(T=this._cd)||void 0===T||null===(O=T.control)||void 0===O||!O.untouched)}get isPristine(){var T,O;return!(null===(T=this._cd)||void 0===T||null===(O=T.control)||void 0===O||!O.pristine)}get isDirty(){var T,O;return!(null===(T=this._cd)||void 0===T||null===(O=T.control)||void 0===O||!O.dirty)}get isValid(){var T,O;return!(null===(T=this._cd)||void 0===T||null===(O=T.control)||void 0===O||!O.valid)}get isInvalid(){var T,O;return!(null===(T=this._cd)||void 0===T||null===(O=T.control)||void 0===O||!O.invalid)}get isPending(){var T,O;return!(null===(T=this._cd)||void 0===T||null===(O=T.control)||void 0===O||!O.pending)}get isSubmitted(){var T;return!(null===(T=this._cd)||void 0===T||!T.submitted)}}let en=(()=>{class _ extends cn{constructor(O){super(O)}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(Et,2))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(O,ve){2&O&&o.\u0275\u0275classProp("ng-untouched",ve.isUntouched)("ng-touched",ve.isTouched)("ng-pristine",ve.isPristine)("ng-dirty",ve.isDirty)("ng-valid",ve.isValid)("ng-invalid",ve.isInvalid)("ng-pending",ve.isPending)},features:[o.\u0275\u0275InheritDefinitionFeature]}),_})(),Gt=(()=>{class _ extends cn{constructor(O){super(O)}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(gn,10))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(O,ve){2&O&&o.\u0275\u0275classProp("ng-untouched",ve.isUntouched)("ng-touched",ve.isTouched)("ng-pristine",ve.isPristine)("ng-dirty",ve.isDirty)("ng-valid",ve.isValid)("ng-invalid",ve.isInvalid)("ng-pending",ve.isPending)("ng-submitted",ve.isSubmitted)},features:[o.\u0275\u0275InheritDefinitionFeature]}),_})();const Yo="VALID",Ko="INVALID",wo="PENDING",$r="DISABLED";function hi(_){return(Ur(_)?_.validators:_)||null}function mi(_){return Array.isArray(_)?ke(_):_||null}function vn(_,T){return(Ur(T)?T.asyncValidators:_)||null}function Eo(_){return Array.isArray(_)?ye(_):_||null}function Ur(_){return null!=_&&!Array.isArray(_)&&"object"==typeof _}function vo(_,T,O){const ve=_.controls;if(!(T?Object.keys(ve):ve).length)throw new o.\u0275RuntimeError(1e3,"");if(!ve[O])throw new o.\u0275RuntimeError(1001,"")}function br(_,T,O){_._forEachChild((ve,Lt)=>{if(void 0===O[Lt])throw new o.\u0275RuntimeError(1002,"")})}class Zn{constructor(T,O){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=T,this._rawAsyncValidators=O,this._composedValidatorFn=mi(this._rawValidators),this._composedAsyncValidatorFn=Eo(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(T){this._rawValidators=this._composedValidatorFn=T}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(T){this._rawAsyncValidators=this._composedAsyncValidatorFn=T}get parent(){return this._parent}get valid(){return this.status===Yo}get invalid(){return this.status===Ko}get pending(){return this.status==wo}get disabled(){return this.status===$r}get enabled(){return this.status!==$r}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(T){this._rawValidators=T,this._composedValidatorFn=mi(T)}setAsyncValidators(T){this._rawAsyncValidators=T,this._composedAsyncValidatorFn=Eo(T)}addValidators(T){this.setValidators(fn(T,this._rawValidators))}addAsyncValidators(T){this.setAsyncValidators(fn(T,this._rawAsyncValidators))}removeValidators(T){this.setValidators(mn(T,this._rawValidators))}removeAsyncValidators(T){this.setAsyncValidators(mn(T,this._rawAsyncValidators))}hasValidator(T){return Vt(this._rawValidators,T)}hasAsyncValidator(T){return Vt(this._rawAsyncValidators,T)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(T={}){this.touched=!0,this._parent&&!T.onlySelf&&this._parent.markAsTouched(T)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(T=>T.markAllAsTouched())}markAsUntouched(T={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(O=>{O.markAsUntouched({onlySelf:!0})}),this._parent&&!T.onlySelf&&this._parent._updateTouched(T)}markAsDirty(T={}){this.pristine=!1,this._parent&&!T.onlySelf&&this._parent.markAsDirty(T)}markAsPristine(T={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(O=>{O.markAsPristine({onlySelf:!0})}),this._parent&&!T.onlySelf&&this._parent._updatePristine(T)}markAsPending(T={}){this.status=wo,!1!==T.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!T.onlySelf&&this._parent.markAsPending(T)}disable(T={}){const O=this._parentMarkedDirty(T.onlySelf);this.status=$r,this.errors=null,this._forEachChild(ve=>{ve.disable({...T,onlySelf:!0})}),this._updateValue(),!1!==T.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...T,skipPristineCheck:O}),this._onDisabledChange.forEach(ve=>ve(!0))}enable(T={}){const O=this._parentMarkedDirty(T.onlySelf);this.status=Yo,this._forEachChild(ve=>{ve.enable({...T,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:T.emitEvent}),this._updateAncestors({...T,skipPristineCheck:O}),this._onDisabledChange.forEach(ve=>ve(!1))}_updateAncestors(T){this._parent&&!T.onlySelf&&(this._parent.updateValueAndValidity(T),T.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(T){this._parent=T}getRawValue(){return this.value}updateValueAndValidity(T={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yo||this.status===wo)&&this._runAsyncValidator(T.emitEvent)),!1!==T.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!T.onlySelf&&this._parent.updateValueAndValidity(T)}_updateTreeValidity(T={emitEvent:!0}){this._forEachChild(O=>O._updateTreeValidity(T)),this.updateValueAndValidity({onlySelf:!0,emitEvent:T.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$r:Yo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(T){if(this.asyncValidator){this.status=wo,this._hasOwnPendingAsyncValidator=!0;const O=Ne(this.asyncValidator(this));this._asyncValidationSubscription=O.subscribe(ve=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ve,{emitEvent:T})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(T,O={}){this.errors=T,this._updateControlsErrors(!1!==O.emitEvent)}get(T){let O=T;return null==O||(Array.isArray(O)||(O=O.split(".")),0===O.length)?null:O.reduce((ve,Lt)=>ve&&ve._find(Lt),this)}getError(T,O){const ve=O?this.get(O):this;return ve&&ve.errors?ve.errors[T]:null}hasError(T,O){return!!this.getError(T,O)}get root(){let T=this;for(;T._parent;)T=T._parent;return T}_updateControlsErrors(T){this.status=this._calculateStatus(),T&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(T)}_initObservables(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?$r:this.errors?Ko:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wo)?wo:this._anyControlsHaveStatus(Ko)?Ko:Yo}_anyControlsHaveStatus(T){return this._anyControls(O=>O.status===T)}_anyControlsDirty(){return this._anyControls(T=>T.dirty)}_anyControlsTouched(){return this._anyControls(T=>T.touched)}_updatePristine(T={}){this.pristine=!this._anyControlsDirty(),this._parent&&!T.onlySelf&&this._parent._updatePristine(T)}_updateTouched(T={}){this.touched=this._anyControlsTouched(),this._parent&&!T.onlySelf&&this._parent._updateTouched(T)}_registerOnCollectionChange(T){this._onCollectionChange=T}_setUpdateStrategy(T){Ur(T)&&null!=T.updateOn&&(this._updateOn=T.updateOn)}_parentMarkedDirty(T){return!T&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(T){return null}}class uo extends Zn{constructor(T,O,ve){super(hi(O),vn(ve,O)),this.controls=T,this._initObservables(),this._setUpdateStrategy(O),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(T,O){return this.controls[T]?this.controls[T]:(this.controls[T]=O,O.setParent(this),O._registerOnCollectionChange(this._onCollectionChange),O)}addControl(T,O,ve={}){this.registerControl(T,O),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}removeControl(T,O={}){this.controls[T]&&this.controls[T]._registerOnCollectionChange(()=>{}),delete this.controls[T],this.updateValueAndValidity({emitEvent:O.emitEvent}),this._onCollectionChange()}setControl(T,O,ve={}){this.controls[T]&&this.controls[T]._registerOnCollectionChange(()=>{}),delete this.controls[T],O&&this.registerControl(T,O),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}contains(T){return this.controls.hasOwnProperty(T)&&this.controls[T].enabled}setValue(T,O={}){br(this,0,T),Object.keys(T).forEach(ve=>{vo(this,!0,ve),this.controls[ve].setValue(T[ve],{onlySelf:!0,emitEvent:O.emitEvent})}),this.updateValueAndValidity(O)}patchValue(T,O={}){null!=T&&(Object.keys(T).forEach(ve=>{const Lt=this.controls[ve];Lt&&Lt.patchValue(T[ve],{onlySelf:!0,emitEvent:O.emitEvent})}),this.updateValueAndValidity(O))}reset(T={},O={}){this._forEachChild((ve,Lt)=>{ve.reset(T[Lt],{onlySelf:!0,emitEvent:O.emitEvent})}),this._updatePristine(O),this._updateTouched(O),this.updateValueAndValidity(O)}getRawValue(){return this._reduceChildren({},(T,O,ve)=>(T[ve]=O.getRawValue(),T))}_syncPendingControls(){let T=this._reduceChildren(!1,(O,ve)=>!!ve._syncPendingControls()||O);return T&&this.updateValueAndValidity({onlySelf:!0}),T}_forEachChild(T){Object.keys(this.controls).forEach(O=>{const ve=this.controls[O];ve&&T(ve,O)})}_setUpControls(){this._forEachChild(T=>{T.setParent(this),T._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(T){for(const[O,ve]of Object.entries(this.controls))if(this.contains(O)&&T(ve))return!0;return!1}_reduceValue(){return this._reduceChildren({},(O,ve,Lt)=>((ve.enabled||this.disabled)&&(O[Lt]=ve.value),O))}_reduceChildren(T,O){let ve=T;return this._forEachChild((Lt,an)=>{ve=O(ve,Lt,an)}),ve}_allControlsDisabled(){for(const T of Object.keys(this.controls))if(this.controls[T].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(T){return this.controls.hasOwnProperty(T)?this.controls[T]:null}}const fr=uo;class Fo extends uo{}function xr(_,T){return[...T.path,_]}function It(_,T){var O,ve;Zt(_,T),T.valueAccessor.writeValue(_.value),_.disabled&&(null===(O=(ve=T.valueAccessor).setDisabledState)||void 0===O||O.call(ve,!0)),function ct(_,T){T.valueAccessor.registerOnChange(O=>{_._pendingValue=O,_._pendingChange=!0,_._pendingDirty=!0,"change"===_.updateOn&&rt(_,T)})}(_,T),function Yt(_,T){const O=(ve,Lt)=>{T.valueAccessor.writeValue(ve),Lt&&T.viewToModelUpdate(ve)};_.registerOnChange(O),T._registerOnDestroy(()=>{_._unregisterOnChange(O)})}(_,T),function xt(_,T){T.valueAccessor.registerOnTouched(()=>{_._pendingTouched=!0,"blur"===_.updateOn&&_._pendingChange&&rt(_,T),"submit"!==_.updateOn&&_.markAsTouched()})}(_,T),function Ot(_,T){if(T.valueAccessor.setDisabledState){const O=ve=>{T.valueAccessor.setDisabledState(ve)};_.registerOnDisabledChange(O),T._registerOnDestroy(()=>{_._unregisterOnDisabledChange(O)})}}(_,T)}function ut(_,T,O=!0){const ve=()=>{};T.valueAccessor&&(T.valueAccessor.registerOnChange(ve),T.valueAccessor.registerOnTouched(ve)),jn(_,T),_&&(T._invokeOnDestroyCallbacks(),_._registerOnCollectionChange(()=>{}))}function nt(_,T){_.forEach(O=>{O.registerOnValidatorChange&&O.registerOnValidatorChange(T)})}function Zt(_,T){const O=Ze(_);null!==T.validator?_.setValidators(je(O,T.validator)):"function"==typeof O&&_.setValidators([O]);const ve=_t(_);null!==T.asyncValidator?_.setAsyncValidators(je(ve,T.asyncValidator)):"function"==typeof ve&&_.setAsyncValidators([ve]);const Lt=()=>_.updateValueAndValidity();nt(T._rawValidators,Lt),nt(T._rawAsyncValidators,Lt)}function jn(_,T){let O=!1;if(null!==_){if(null!==T.validator){const Lt=Ze(_);if(Array.isArray(Lt)&&Lt.length>0){const an=Lt.filter(nr=>nr!==T.validator);an.length!==Lt.length&&(O=!0,_.setValidators(an))}}if(null!==T.asyncValidator){const Lt=_t(_);if(Array.isArray(Lt)&&Lt.length>0){const an=Lt.filter(nr=>nr!==T.asyncValidator);an.length!==Lt.length&&(O=!0,_.setAsyncValidators(an))}}}const ve=()=>{};return nt(T._rawValidators,ve),nt(T._rawAsyncValidators,ve),O}function rt(_,T){_._pendingDirty&&_.markAsDirty(),_.setValue(_._pendingValue,{emitModelToViewChange:!1}),T.viewToModelUpdate(_._pendingValue),_._pendingChange=!1}function $t(_,T){Zt(_,T)}function In(_,T){if(!_.hasOwnProperty("model"))return!1;const O=_.model;return!!O.isFirstChange()||!Object.is(T,O.currentValue)}function Hr(_,T){_._syncPendingControls(),T.forEach(O=>{const ve=O.control;"submit"===ve.updateOn&&ve._pendingChange&&(O.viewToModelUpdate(ve._pendingValue),ve._pendingChange=!1)})}function xo(_,T){if(!T)return null;let O,ve,Lt;return Array.isArray(T),T.forEach(an=>{an.constructor===j?O=an:function Fn(_){return Object.getPrototypeOf(_.constructor)===v}(an)?ve=an:Lt=an}),Lt||ve||O||null}const io={provide:gn,useExisting:(0,o.forwardRef)(()=>bi)},Mo=(()=>Promise.resolve())();let bi=(()=>{class _ extends gn{constructor(O,ve){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new o.EventEmitter,this.form=new uo({},ke(O),ye(ve))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(O){Mo.then(()=>{const ve=this._findContainer(O.path);O.control=ve.registerControl(O.name,O.control),It(O.control,O),O.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(O)})}getControl(O){return this.form.get(O.path)}removeControl(O){Mo.then(()=>{const ve=this._findContainer(O.path);ve&&ve.removeControl(O.name),this._directives.delete(O)})}addFormGroup(O){Mo.then(()=>{const ve=this._findContainer(O.path),Lt=new uo({});$t(Lt,O),ve.registerControl(O.name,Lt),Lt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(O){Mo.then(()=>{const ve=this._findContainer(O.path);ve&&ve.removeControl(O.name)})}getFormGroup(O){return this.form.get(O.path)}updateModel(O,ve){Mo.then(()=>{this.form.get(O.path).setValue(ve)})}setValue(O){this.control.setValue(O)}onSubmit(O){var ve;return this.submitted=!0,Hr(this.form,this._directives),this.ngSubmit.emit(O),"dialog"===(null==O||null===(ve=O.target)||void 0===ve?void 0:ve.method)}onReset(){this.resetForm()}resetForm(O){this.form.reset(O),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(O){return O.pop(),O.length?this.form.get(O):this.form}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(ee,10),o.\u0275\u0275directiveInject(De,10))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("submit",function(an){return ve.onSubmit(an)})("reset",function(){return ve.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([io]),o.\u0275\u0275InheritDefinitionFeature]}),_})();function Zi(_,T){const O=_.indexOf(T);O>-1&&_.splice(O,1)}function tr(_){return"object"==typeof _&&null!==_&&2===Object.keys(_).length&&"value"in _&&"disabled"in _}const Po=class extends Zn{constructor(T=null,O,ve){super(hi(O),vn(ve,O)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(T),this._setUpdateStrategy(O),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ur(O)&&(O.nonNullable||O.initialValueIsDefault)&&(this.defaultValue=tr(T)?T.value:T)}setValue(T,O={}){this.value=this._pendingValue=T,this._onChange.length&&!1!==O.emitModelToViewChange&&this._onChange.forEach(ve=>ve(this.value,!1!==O.emitViewToModelChange)),this.updateValueAndValidity(O)}patchValue(T,O={}){this.setValue(T,O)}reset(T=this.defaultValue,O={}){this._applyFormState(T),this.markAsPristine(O),this.markAsUntouched(O),this.setValue(this.value,O),this._pendingChange=!1}_updateValue(){}_anyControls(T){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(T){this._onChange.push(T)}_unregisterOnChange(T){Zi(this._onChange,T)}registerOnDisabledChange(T){this._onDisabledChange.push(T)}_unregisterOnDisabledChange(T){Zi(this._onDisabledChange,T)}_forEachChild(T){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(T){tr(T)?(this.value=this._pendingValue=T.value,T.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=T}},We=Po;let Pt=(()=>{class _ extends gn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,features:[o.\u0275\u0275InheritDefinitionFeature]}),_})();const Ht={provide:gn,useExisting:(0,o.forwardRef)(()=>Kt)};let Kt=(()=>{class _ extends Pt{constructor(O,ve,Lt){super(),this._parent=O,this._setValidators(ve),this._setAsyncValidators(Lt)}_checkParentType(){}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(gn,5),o.\u0275\u0275directiveInject(ee,10),o.\u0275\u0275directiveInject(De,10))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[o.\u0275\u0275ProvidersFeature([Ht]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const on={provide:Et,useExisting:(0,o.forwardRef)(()=>Yn)},Mn=(()=>Promise.resolve())();let Yn=(()=>{class _ extends Et{constructor(O,ve,Lt,an,nr){super(),this._changeDetectorRef=nr,this.control=new Po,this._registered=!1,this.update=new o.EventEmitter,this._parent=O,this._setValidators(ve),this._setAsyncValidators(Lt),this.valueAccessor=xo(0,an)}ngOnChanges(O){if(this._checkForErrors(),!this._registered||"name"in O){if(this._registered&&(this._checkName(),this.formDirective)){const ve=O.name.previousValue;this.formDirective.removeControl({name:ve,path:this._getPath(ve)})}this._setUpControl()}"isDisabled"in O&&this._updateDisabled(O),In(O,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(O){this.viewModel=O,this.update.emit(O)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){It(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(O){Mn.then(()=>{var ve;this.control.setValue(O,{emitViewToModelChange:!1}),null===(ve=this._changeDetectorRef)||void 0===ve||ve.markForCheck()})}_updateDisabled(O){const ve=O.isDisabled.currentValue,Lt=0!==ve&&(0,o.\u0275coerceToBoolean)(ve);Mn.then(()=>{var an;Lt&&!this.control.disabled?this.control.disable():!Lt&&this.control.disabled&&this.control.enable(),null===(an=this._changeDetectorRef)||void 0===an||an.markForCheck()})}_getPath(O){return this._parent?xr(O,this._parent):[O]}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(gn,9),o.\u0275\u0275directiveInject(ee,10),o.\u0275\u0275directiveInject(De,10),o.\u0275\u0275directiveInject(b,10),o.\u0275\u0275directiveInject(o.ChangeDetectorRef,8))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o.\u0275\u0275ProvidersFeature([on]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),_})(),Hn=(()=>{class _{}return _.\u0275fac=function(O){return new(O||_)},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),_})();const Sr={provide:b,useExisting:(0,o.forwardRef)(()=>Co),multi:!0};let Co=(()=>{class _ extends v{writeValue(O){this.setProperty("value",O??"")}registerOnChange(O){this.onChange=ve=>{O(""==ve?null:parseFloat(ve))}}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("input",function(an){return ve.onChange(an.target.value)})("blur",function(){return ve.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([Sr]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const bo={provide:b,useExisting:(0,o.forwardRef)(()=>Qr),multi:!0};let gi=(()=>{class _{}return _.\u0275fac=function(O){return new(O||_)},_.\u0275mod=o.\u0275\u0275defineNgModule({type:_}),_.\u0275inj=o.\u0275\u0275defineInjector({}),_})(),Ri=(()=>{class _{constructor(){this._accessors=[]}add(O,ve){this._accessors.push([O,ve])}remove(O){for(let ve=this._accessors.length-1;ve>=0;--ve)if(this._accessors[ve][1]===O)return void this._accessors.splice(ve,1)}select(O){this._accessors.forEach(ve=>{this._isSameGroup(ve,O)&&ve[1]!==O&&ve[1].fireUncheck(O.value)})}_isSameGroup(O,ve){return!!O[0].control&&O[0]._parent===ve._control._parent&&O[1].name===ve.name}}return _.\u0275fac=function(O){return new(O||_)},_.\u0275prov=o.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:gi}),_})(),Qr=(()=>{class _ extends v{constructor(O,ve,Lt,an){super(O,ve),this._registry=Lt,this._injector=an,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Et),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(O){this._state=O===this.value,this.setProperty("checked",this._state)}registerOnChange(O){this._fn=O,this.onChange=()=>{O(this.value),this._registry.select(this)}}fireUncheck(O){this.writeValue(O)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(Ri),o.\u0275\u0275directiveInject(o.Injector))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("change",function(){return ve.onChange()})("blur",function(){return ve.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[o.\u0275\u0275ProvidersFeature([bo]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const Bo={provide:b,useExisting:(0,o.forwardRef)(()=>_a),multi:!0};let _a=(()=>{class _ extends v{writeValue(O){this.setProperty("value",parseFloat(O))}registerOnChange(O){this.onChange=ve=>{O(""==ve?null:parseFloat(ve))}}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("change",function(an){return ve.onChange(an.target.value)})("input",function(an){return ve.onChange(an.target.value)})("blur",function(){return ve.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([Bo]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const Di=new o.InjectionToken("NgModelWithFormControlWarning"),vi={provide:Et,useExisting:(0,o.forwardRef)(()=>Yi)};let Yi=(()=>{class _ extends Et{constructor(O,ve,Lt,an){super(),this._ngModelWarningConfig=an,this.update=new o.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(O),this._setAsyncValidators(ve),this.valueAccessor=xo(0,Lt)}set isDisabled(O){}ngOnChanges(O){if(this._isControlChanged(O)){const ve=O.form.previousValue;ve&&ut(ve,this,!1),It(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}In(O,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ut(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(O){this.viewModel=O,this.update.emit(O)}_isControlChanged(O){return O.hasOwnProperty("form")}}return _._ngModelWarningSentOnce=!1,_.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(ee,10),o.\u0275\u0275directiveInject(De,10),o.\u0275\u0275directiveInject(b,10),o.\u0275\u0275directiveInject(Di,8))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([vi]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),_})();const ci={provide:gn,useExisting:(0,o.forwardRef)(()=>aa)};let aa=(()=>{class _ extends gn{constructor(O,ve){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.EventEmitter,this._setValidators(O),this._setAsyncValidators(ve)}ngOnChanges(O){this._checkFormPresent(),O.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(jn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(O){const ve=this.form.get(O.path);return It(ve,O),ve.updateValueAndValidity({emitEvent:!1}),this.directives.push(O),ve}getControl(O){return this.form.get(O.path)}removeControl(O){ut(O.control||null,O,!1),function yo(_,T){const O=_.indexOf(T);O>-1&&_.splice(O,1)}(this.directives,O)}addFormGroup(O){this._setUpFormContainer(O)}removeFormGroup(O){this._cleanUpFormContainer(O)}getFormGroup(O){return this.form.get(O.path)}addFormArray(O){this._setUpFormContainer(O)}removeFormArray(O){this._cleanUpFormContainer(O)}getFormArray(O){return this.form.get(O.path)}updateModel(O,ve){this.form.get(O.path).setValue(ve)}onSubmit(O){var ve;return this.submitted=!0,Hr(this.form,this.directives),this.ngSubmit.emit(O),"dialog"===(null==O||null===(ve=O.target)||void 0===ve?void 0:ve.method)}onReset(){this.resetForm()}resetForm(O){this.form.reset(O),this.submitted=!1}_updateDomValue(){this.directives.forEach(O=>{const ve=O.control,Lt=this.form.get(O.path);ve!==Lt&&(ut(ve||null,O),(_=>_ instanceof Po)(Lt)&&(It(Lt,O),O.control=Lt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(O){const ve=this.form.get(O.path);$t(ve,O),ve.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(O){if(this.form){const ve=this.form.get(O.path);ve&&function Wt(_,T){return jn(_,T)}(ve,O)&&ve.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zt(this.form,this),this._oldForm&&jn(this._oldForm,this)}_checkFormPresent(){}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(ee,10),o.\u0275\u0275directiveInject(De,10))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","formGroup",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("submit",function(an){return ve.onSubmit(an)})("reset",function(){return ve.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([ci]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),_})();const sa={provide:gn,useExisting:(0,o.forwardRef)(()=>qo)};let qo=(()=>{class _ extends Pt{constructor(O,ve,Lt){super(),this._parent=O,this._setValidators(ve),this._setAsyncValidators(Lt)}_checkParentType(){ga(this._parent)}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(gn,13),o.\u0275\u0275directiveInject(ee,10),o.\u0275\u0275directiveInject(De,10))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[o.\u0275\u0275ProvidersFeature([sa]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const Li={provide:gn,useExisting:(0,o.forwardRef)(()=>qr)};let qr=(()=>{class _ extends gn{constructor(O,ve,Lt){super(),this._parent=O,this._setValidators(ve),this._setAsyncValidators(Lt)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return xr(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ga(this._parent)}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(gn,13),o.\u0275\u0275directiveInject(ee,10),o.\u0275\u0275directiveInject(De,10))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[o.\u0275\u0275ProvidersFeature([Li]),o.\u0275\u0275InheritDefinitionFeature]}),_})();function ga(_){return!(_ instanceof qo||_ instanceof aa||_ instanceof qr)}const Fa={provide:Et,useExisting:(0,o.forwardRef)(()=>va)};let va=(()=>{class _ extends Et{constructor(O,ve,Lt,an,nr){super(),this._ngModelWarningConfig=nr,this._added=!1,this.update=new o.EventEmitter,this._ngModelWarningSent=!1,this._parent=O,this._setValidators(ve),this._setAsyncValidators(Lt),this.valueAccessor=xo(0,an)}set isDisabled(O){}ngOnChanges(O){this._added||this._setUpControl(),In(O,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(O){this.viewModel=O,this.update.emit(O)}get path(){return xr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return _._ngModelWarningSentOnce=!1,_.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(gn,13),o.\u0275\u0275directiveInject(ee,10),o.\u0275\u0275directiveInject(De,10),o.\u0275\u0275directiveInject(b,10),o.\u0275\u0275directiveInject(Di,8))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[o.\u0275\u0275ProvidersFeature([Fa]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),_})();const ya={provide:b,useExisting:(0,o.forwardRef)(()=>Fi),multi:!0};function Ha(_,T){return null==_?`${T}`:(T&&"object"==typeof T&&(T="Object"),`${_}: ${T}`.slice(0,50))}let Fi=(()=>{class _ extends v{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(O){this._compareWith=O}writeValue(O){this.value=O;const Lt=Ha(this._getOptionId(O),O);this.setProperty("value",Lt)}registerOnChange(O){this.onChange=ve=>{this.value=this._getOptionValue(ve),O(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(O){for(const ve of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ve),O))return ve;return null}_getOptionValue(O){const ve=function ii(_){return _.split(":")[0]}(O);return this._optionMap.has(ve)?this._optionMap.get(ve):O}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("change",function(an){return ve.onChange(an.target.value)})("blur",function(){return ve.onTouched()})},inputs:{compareWith:"compareWith"},features:[o.\u0275\u0275ProvidersFeature([ya]),o.\u0275\u0275InheritDefinitionFeature]}),_})(),Go=(()=>{class _{constructor(O,ve,Lt){this._element=O,this._renderer=ve,this._select=Lt,this._select&&(this.id=this._select._registerOption())}set ngValue(O){null!=this._select&&(this._select._optionMap.set(this.id,O),this._setElementValue(Ha(this.id,O)),this._select.writeValue(this._select.value))}set value(O){this._setElementValue(O),this._select&&this._select.writeValue(this._select.value)}_setElementValue(O){this._renderer.setProperty(this._element.nativeElement,"value",O)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Fi,9))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),_})();const Xo={provide:b,useExisting:(0,o.forwardRef)(()=>Wi),multi:!0};function Xa(_,T){return null==_?`${T}`:("string"==typeof T&&(T=`'${T}'`),T&&"object"==typeof T&&(T="Object"),`${_}: ${T}`.slice(0,50))}let Wi=(()=>{class _ extends v{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(O){this._compareWith=O}writeValue(O){let ve;if(this.value=O,Array.isArray(O)){const Lt=O.map(an=>this._getOptionId(an));ve=(an,nr)=>{an._setSelected(Lt.indexOf(nr.toString())>-1)}}else ve=(Lt,an)=>{Lt._setSelected(!1)};this._optionMap.forEach(ve)}registerOnChange(O){this.onChange=ve=>{const Lt=[],an=ve.selectedOptions;if(void 0!==an){const nr=an;for(let Kr=0;Kr<nr.length;Kr++){const Lo=this._getOptionValue(nr[Kr].value);Lt.push(Lo)}}else{const nr=ve.options;for(let Kr=0;Kr<nr.length;Kr++){const Io=nr[Kr];if(Io.selected){const Lo=this._getOptionValue(Io.value);Lt.push(Lo)}}}this.value=Lt,O(Lt)}}_registerOption(O){const ve=(this._idCounter++).toString();return this._optionMap.set(ve,O),ve}_getOptionId(O){for(const ve of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ve)._value,O))return ve;return null}_getOptionValue(O){const ve=function Si(_){return _.split(":")[0]}(O);return this._optionMap.has(ve)?this._optionMap.get(ve)._value:O}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(O,ve){1&O&&o.\u0275\u0275listener("change",function(an){return ve.onChange(an.target)})("blur",function(){return ve.onTouched()})},inputs:{compareWith:"compareWith"},features:[o.\u0275\u0275ProvidersFeature([Xo]),o.\u0275\u0275InheritDefinitionFeature]}),_})(),Za=(()=>{class _{constructor(O,ve,Lt){this._element=O,this._renderer=ve,this._select=Lt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(O){null!=this._select&&(this._value=O,this._setElementValue(Xa(this.id,O)),this._select.writeValue(this._select.value))}set value(O){this._select?(this._value=O,this._setElementValue(Xa(this.id,O)),this._select.writeValue(this._select.value)):this._setElementValue(O)}_setElementValue(O){this._renderer.setProperty(this._element.nativeElement,"value",O)}_setSelected(O){this._renderer.setProperty(this._element.nativeElement,"selected",O)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return _.\u0275fac=function(O){return new(O||_)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Wi,9))},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),_})();function fe(_){return"number"==typeof _?_:parseInt(_,10)}function lt(_){return"number"==typeof _?_:parseFloat(_)}let P=(()=>{class _{constructor(){this._validator=se}ngOnChanges(O){if(this.inputName in O){const ve=this.normalizeInput(O[this.inputName].currentValue);this._enabled=this.enabled(ve),this._validator=this._enabled?this.createValidator(ve):se,this._onChange&&this._onChange()}}validate(O){return this._validator(O)}registerOnValidatorChange(O){this._onChange=O}enabled(O){return null!=O}}return _.\u0275fac=function(O){return new(O||_)},_.\u0275dir=o.\u0275\u0275defineDirective({type:_,features:[o.\u0275\u0275NgOnChangesFeature]}),_})();const Q={provide:ee,useExisting:(0,o.forwardRef)(()=>Pe),multi:!0};let Pe=(()=>{class _ extends P{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=O=>lt(O),this.createValidator=O=>te(O)}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(O,ve){2&O&&o.\u0275\u0275attribute("max",ve._enabled?ve.max:null)},inputs:{max:"max"},features:[o.\u0275\u0275ProvidersFeature([Q]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const Ve={provide:ee,useExisting:(0,o.forwardRef)(()=>Z),multi:!0};let Z=(()=>{class _ extends P{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=O=>lt(O),this.createValidator=O=>oe(O)}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(O,ve){2&O&&o.\u0275\u0275attribute("min",ve._enabled?ve.min:null)},inputs:{min:"min"},features:[o.\u0275\u0275ProvidersFeature([Ve]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const re={provide:ee,useExisting:(0,o.forwardRef)(()=>it),multi:!0},Xe={provide:ee,useExisting:(0,o.forwardRef)(()=>bt),multi:!0};let it=(()=>{class _ extends P{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=o.\u0275coerceToBoolean,this.createValidator=O=>ge}enabled(O){return O}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(O,ve){2&O&&o.\u0275\u0275attribute("required",ve._enabled?"":null)},inputs:{required:"required"},features:[o.\u0275\u0275ProvidersFeature([re]),o.\u0275\u0275InheritDefinitionFeature]}),_})(),bt=(()=>{class _ extends it{constructor(){super(...arguments),this.createValidator=O=>xe}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(O,ve){2&O&&o.\u0275\u0275attribute("required",ve._enabled?"":null)},features:[o.\u0275\u0275ProvidersFeature([Xe]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const mt={provide:ee,useExisting:(0,o.forwardRef)(()=>Rt),multi:!0};let Rt=(()=>{class _ extends P{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=o.\u0275coerceToBoolean,this.createValidator=O=>he}enabled(O){return O}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[o.\u0275\u0275ProvidersFeature([mt]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const Xt={provide:ee,useExisting:(0,o.forwardRef)(()=>qt),multi:!0};let qt=(()=>{class _ extends P{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=O=>fe(O),this.createValidator=O=>Le(O)}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(O,ve){2&O&&o.\u0275\u0275attribute("minlength",ve._enabled?ve.minlength:null)},inputs:{minlength:"minlength"},features:[o.\u0275\u0275ProvidersFeature([Xt]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const Sn={provide:ee,useExisting:(0,o.forwardRef)(()=>Wn),multi:!0};let Wn=(()=>{class _ extends P{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=O=>fe(O),this.createValidator=O=>Ce(O)}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(O,ve){2&O&&o.\u0275\u0275attribute("maxlength",ve._enabled?ve.maxlength:null)},inputs:{maxlength:"maxlength"},features:[o.\u0275\u0275ProvidersFeature([Sn]),o.\u0275\u0275InheritDefinitionFeature]}),_})();const Un={provide:ee,useExisting:(0,o.forwardRef)(()=>sr),multi:!0};let sr=(()=>{class _ extends P{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=O=>O,this.createValidator=O=>ie(O)}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275dir=o.\u0275\u0275defineDirective({type:_,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(O,ve){2&O&&o.\u0275\u0275attribute("pattern",ve._enabled?ve.pattern:null)},inputs:{pattern:"pattern"},features:[o.\u0275\u0275ProvidersFeature([Un]),o.\u0275\u0275InheritDefinitionFeature]}),_})(),fo=(()=>{class _{}return _.\u0275fac=function(O){return new(O||_)},_.\u0275mod=o.\u0275\u0275defineNgModule({type:_}),_.\u0275inj=o.\u0275\u0275defineInjector({imports:[gi]}),_})(),ko=(()=>{class _{}return _.\u0275fac=function(O){return new(O||_)},_.\u0275mod=o.\u0275\u0275defineNgModule({type:_}),_.\u0275inj=o.\u0275\u0275defineInjector({imports:[fo]}),_})(),y=(()=>{class _{static withConfig(O){return{ngModule:_,providers:[{provide:Di,useValue:O.warnOnNgModelWithFormControl}]}}}return _.\u0275fac=function(O){return new(O||_)},_.\u0275mod=o.\u0275\u0275defineNgModule({type:_}),_.\u0275inj=o.\u0275\u0275defineInjector({imports:[fo]}),_})();class G extends Zn{constructor(T,O,ve){super(hi(O),vn(ve,O)),this.controls=T,this._initObservables(),this._setUpdateStrategy(O),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(T){return this.controls[this._adjustIndex(T)]}push(T,O={}){this.controls.push(T),this._registerControl(T),this.updateValueAndValidity({emitEvent:O.emitEvent}),this._onCollectionChange()}insert(T,O,ve={}){this.controls.splice(T,0,O),this._registerControl(O),this.updateValueAndValidity({emitEvent:ve.emitEvent})}removeAt(T,O={}){let ve=this._adjustIndex(T);ve<0&&(ve=0),this.controls[ve]&&this.controls[ve]._registerOnCollectionChange(()=>{}),this.controls.splice(ve,1),this.updateValueAndValidity({emitEvent:O.emitEvent})}setControl(T,O,ve={}){let Lt=this._adjustIndex(T);Lt<0&&(Lt=0),this.controls[Lt]&&this.controls[Lt]._registerOnCollectionChange(()=>{}),this.controls.splice(Lt,1),O&&(this.controls.splice(Lt,0,O),this._registerControl(O)),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(T,O={}){br(this,0,T),T.forEach((ve,Lt)=>{vo(this,!1,Lt),this.at(Lt).setValue(ve,{onlySelf:!0,emitEvent:O.emitEvent})}),this.updateValueAndValidity(O)}patchValue(T,O={}){null!=T&&(T.forEach((ve,Lt)=>{this.at(Lt)&&this.at(Lt).patchValue(ve,{onlySelf:!0,emitEvent:O.emitEvent})}),this.updateValueAndValidity(O))}reset(T=[],O={}){this._forEachChild((ve,Lt)=>{ve.reset(T[Lt],{onlySelf:!0,emitEvent:O.emitEvent})}),this._updatePristine(O),this._updateTouched(O),this.updateValueAndValidity(O)}getRawValue(){return this.controls.map(T=>T.getRawValue())}clear(T={}){this.controls.length<1||(this._forEachChild(O=>O._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:T.emitEvent}))}_adjustIndex(T){return T<0?T+this.length:T}_syncPendingControls(){let T=this.controls.reduce((O,ve)=>!!ve._syncPendingControls()||O,!1);return T&&this.updateValueAndValidity({onlySelf:!0}),T}_forEachChild(T){this.controls.forEach((O,ve)=>{T(O,ve)})}_updateValue(){this.value=this.controls.filter(T=>T.enabled||this.disabled).map(T=>T.value)}_anyControls(T){return this.controls.some(O=>O.enabled&&T(O))}_setUpControls(){this._forEachChild(T=>this._registerControl(T))}_allControlsDisabled(){for(const T of this.controls)if(T.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(T){T.setParent(this),T._registerOnCollectionChange(this._onCollectionChange)}_find(T){var O;return null!==(O=this.at(T))&&void 0!==O?O:null}}const Je=G;function st(_){return!!_&&(void 0!==_.asyncValidators||void 0!==_.validators||void 0!==_.updateOn)}let Ln=(()=>{class _{constructor(){this.useNonNullable=!1}get nonNullable(){const O=new _;return O.useNonNullable=!0,O}group(O,ve=null){const Lt=this._reduceControls(O);let an={};return st(ve)?an=ve:null!==ve&&(an.validators=ve.validator,an.asyncValidators=ve.asyncValidator),new uo(Lt,an)}record(O,ve=null){const Lt=this._reduceControls(O);return new Fo(Lt,ve)}control(O,ve,Lt){let an={};return this.useNonNullable?(st(ve)?an=ve:(an.validators=ve,an.asyncValidators=Lt),new Po(O,{...an,nonNullable:!0})):new Po(O,ve,Lt)}array(O,ve,Lt){const an=O.map(nr=>this._createControl(nr));return new G(an,ve,Lt)}_reduceControls(O){const ve={};return Object.keys(O).forEach(Lt=>{ve[Lt]=this._createControl(O[Lt])}),ve}_createControl(O){return O instanceof Po||O instanceof Zn?O:Array.isArray(O)?this.control(O[0],O.length>1?O[1]:null,O.length>2?O[2]:null):this.control(O)}}return _.\u0275fac=function(O){return new(O||_)},_.\u0275prov=o.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:y}),_})(),Rr=(()=>{class _{}return _.\u0275fac=function(O){return new(O||_)},_.\u0275prov=o.\u0275\u0275defineInjectable({token:_,factory:function(){return(0,o.inject)(Ln).nonNullable},providedIn:y}),_})(),A=(()=>{class _ extends Ln{group(O,ve=null){return super.group(O,ve)}control(O,ve,Lt){return super.control(O,ve,Lt)}array(O,ve,Lt){return super.array(O,ve,Lt)}}return _.\u0275fac=function(){let T;return function(ve){return(T||(T=o.\u0275\u0275getInheritedFactory(_)))(ve||_)}}(),_.\u0275prov=o.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:y}),_})();const X=new o.Version("14.3.0")},11481:(Ge,$,f)=>{f.d($,{Dx:()=>Jn,H7:()=>Vo,b2:()=>or,q6:()=>ft,se:()=>me});var o=f(90944),a=f(45449);class g extends o.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class h extends g{static makeCurrent(){(0,o.\u0275setRootDomAdapter)(new h)}onAndCancel(ut,nt,Ot){return ut.addEventListener(nt,Ot,!1),()=>{ut.removeEventListener(nt,Ot,!1)}}dispatchEvent(ut,nt){ut.dispatchEvent(nt)}remove(ut){ut.parentNode&&ut.parentNode.removeChild(ut)}createElement(ut,nt){return(nt=nt||this.getDefaultDocument()).createElement(ut)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ut){return ut.nodeType===Node.ELEMENT_NODE}isShadowRoot(ut){return ut instanceof DocumentFragment}getGlobalEventTarget(ut,nt){return"window"===nt?window:"document"===nt?ut:"body"===nt?ut.body:null}getBaseHref(ut){const nt=function L(){return m=m||document.querySelector("base"),m?m.getAttribute("href"):null}();return null==nt?null:function b(It){v=v||document.createElement("a"),v.setAttribute("href",It);const ut=v.pathname;return"/"===ut.charAt(0)?ut:`/${ut}`}(nt)}resetBaseElement(){m=null}getUserAgent(){return window.navigator.userAgent}getCookie(ut){return(0,o.\u0275parseCookieValue)(document.cookie,ut)}}let v,m=null;const k=new a.InjectionToken("TRANSITION_ID"),Y=[{provide:a.APP_INITIALIZER,useFactory:function F(It,ut,nt){return()=>{nt.get(a.ApplicationInitStatus).donePromise.then(()=>{const Ot=(0,o.\u0275getDOM)(),Zt=ut.querySelectorAll(`style[ng-transition="${It}"]`);for(let jn=0;jn<Zt.length;jn++)Ot.remove(Zt[jn])})}},deps:[k,o.DOCUMENT,a.Injector],multi:!0}];let D=(()=>{class It{build(){return new XMLHttpRequest}}return It.\u0275fac=function(nt){return new(nt||It)},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:It.\u0275fac}),It})();const j=new a.InjectionToken("EventManagerPlugins");let W=(()=>{class It{constructor(nt,Ot){this._zone=Ot,this._eventNameToPlugin=new Map,nt.forEach(Zt=>Zt.manager=this),this._plugins=nt.slice().reverse()}addEventListener(nt,Ot,Zt){return this._findPluginFor(Ot).addEventListener(nt,Ot,Zt)}addGlobalEventListener(nt,Ot,Zt){return this._findPluginFor(Ot).addGlobalEventListener(nt,Ot,Zt)}getZone(){return this._zone}_findPluginFor(nt){const Ot=this._eventNameToPlugin.get(nt);if(Ot)return Ot;const Zt=this._plugins;for(let jn=0;jn<Zt.length;jn++){const ct=Zt[jn];if(ct.supports(nt))return this._eventNameToPlugin.set(nt,ct),ct}throw new Error(`No event manager plugin found for event ${nt}`)}}return It.\u0275fac=function(nt){return new(nt||It)(a.\u0275\u0275inject(j),a.\u0275\u0275inject(a.NgZone))},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:It.\u0275fac}),It})();class de{constructor(ut){this._doc=ut}addGlobalEventListener(ut,nt,Ot){const Zt=(0,o.\u0275getDOM)().getGlobalEventTarget(this._doc,ut);if(!Zt)throw new Error(`Unsupported event target ${Zt} for event ${nt}`);return this.addEventListener(Zt,nt,Ot)}}let K=(()=>{class It{constructor(){this._stylesSet=new Set}addStyles(nt){const Ot=new Set;nt.forEach(Zt=>{this._stylesSet.has(Zt)||(this._stylesSet.add(Zt),Ot.add(Zt))}),this.onStylesAdded(Ot)}onStylesAdded(nt){}getAllStyles(){return Array.from(this._stylesSet)}}return It.\u0275fac=function(nt){return new(nt||It)},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:It.\u0275fac}),It})(),ee=(()=>{class It extends K{constructor(nt){super(),this._doc=nt,this._hostNodes=new Map,this._hostNodes.set(nt.head,[])}_addStylesToHost(nt,Ot,Zt){nt.forEach(jn=>{const ct=this._doc.createElement("style");ct.textContent=jn,Zt.push(Ot.appendChild(ct))})}addHost(nt){const Ot=[];this._addStylesToHost(this._stylesSet,nt,Ot),this._hostNodes.set(nt,Ot)}removeHost(nt){const Ot=this._hostNodes.get(nt);Ot&&Ot.forEach(De),this._hostNodes.delete(nt)}onStylesAdded(nt){this._hostNodes.forEach((Ot,Zt)=>{this._addStylesToHost(nt,Zt,Ot)})}ngOnDestroy(){this._hostNodes.forEach(nt=>nt.forEach(De))}}return It.\u0275fac=function(nt){return new(nt||It)(a.\u0275\u0275inject(o.DOCUMENT))},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:It.\u0275fac}),It})();function De(It){(0,o.\u0275getDOM)().remove(It)}const Te={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ce=/%COMP%/g;function Ce(It,ut,nt){for(let Ot=0;Ot<ut.length;Ot++){let Zt=ut[Ot];Array.isArray(Zt)?Ce(It,Zt,nt):(Zt=Zt.replace(ce,It),nt.push(Zt))}return nt}function ie(It){return ut=>{if("__ngUnwrap__"===ut)return It;!1===It(ut)&&(ut.preventDefault(),ut.returnValue=!1)}}let me=(()=>{class It{constructor(nt,Ot,Zt){this.eventManager=nt,this.sharedStylesHost=Ot,this.appId=Zt,this.rendererByCompId=new Map,this.defaultRenderer=new Ne(nt)}createRenderer(nt,Ot){if(!nt||!Ot)return this.defaultRenderer;switch(Ot.encapsulation){case a.ViewEncapsulation.Emulated:{let Zt=this.rendererByCompId.get(Ot.id);return Zt||(Zt=new le(this.eventManager,this.sharedStylesHost,Ot,this.appId),this.rendererByCompId.set(Ot.id,Zt)),Zt.applyToHost(nt),Zt}case 1:case a.ViewEncapsulation.ShadowDom:return new Ue(this.eventManager,this.sharedStylesHost,nt,Ot);default:if(!this.rendererByCompId.has(Ot.id)){const Zt=Ce(Ot.id,Ot.styles,[]);this.sharedStylesHost.addStyles(Zt),this.rendererByCompId.set(Ot.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return It.\u0275fac=function(nt){return new(nt||It)(a.\u0275\u0275inject(W),a.\u0275\u0275inject(ee),a.\u0275\u0275inject(a.APP_ID))},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:It.\u0275fac}),It})();class Ne{constructor(ut){this.eventManager=ut,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ut,nt){return nt?document.createElementNS(Te[nt]||nt,ut):document.createElement(ut)}createComment(ut){return document.createComment(ut)}createText(ut){return document.createTextNode(ut)}appendChild(ut,nt){(Ee(ut)?ut.content:ut).appendChild(nt)}insertBefore(ut,nt,Ot){ut&&(Ee(ut)?ut.content:ut).insertBefore(nt,Ot)}removeChild(ut,nt){ut&&ut.removeChild(nt)}selectRootElement(ut,nt){let Ot="string"==typeof ut?document.querySelector(ut):ut;if(!Ot)throw new Error(`The selector "${ut}" did not match any elements`);return nt||(Ot.textContent=""),Ot}parentNode(ut){return ut.parentNode}nextSibling(ut){return ut.nextSibling}setAttribute(ut,nt,Ot,Zt){if(Zt){nt=Zt+":"+nt;const jn=Te[Zt];jn?ut.setAttributeNS(jn,nt,Ot):ut.setAttribute(nt,Ot)}else ut.setAttribute(nt,Ot)}removeAttribute(ut,nt,Ot){if(Ot){const Zt=Te[Ot];Zt?ut.removeAttributeNS(Zt,nt):ut.removeAttribute(`${Ot}:${nt}`)}else ut.removeAttribute(nt)}addClass(ut,nt){ut.classList.add(nt)}removeClass(ut,nt){ut.classList.remove(nt)}setStyle(ut,nt,Ot,Zt){Zt&(a.RendererStyleFlags2.DashCase|a.RendererStyleFlags2.Important)?ut.style.setProperty(nt,Ot,Zt&a.RendererStyleFlags2.Important?"important":""):ut.style[nt]=Ot}removeStyle(ut,nt,Ot){Ot&a.RendererStyleFlags2.DashCase?ut.style.removeProperty(nt):ut.style[nt]=""}setProperty(ut,nt,Ot){ut[nt]=Ot}setValue(ut,nt){ut.nodeValue=nt}listen(ut,nt,Ot){return"string"==typeof ut?this.eventManager.addGlobalEventListener(ut,nt,ie(Ot)):this.eventManager.addEventListener(ut,nt,ie(Ot))}}function Ee(It){return"TEMPLATE"===It.tagName&&void 0!==It.content}class le extends Ne{constructor(ut,nt,Ot,Zt){super(ut),this.component=Ot;const jn=Ce(Zt+"-"+Ot.id,Ot.styles,[]);nt.addStyles(jn),this.contentAttr=function he(It){return"_ngcontent-%COMP%".replace(ce,It)}(Zt+"-"+Ot.id),this.hostAttr=function Le(It){return"_nghost-%COMP%".replace(ce,It)}(Zt+"-"+Ot.id)}applyToHost(ut){super.setAttribute(ut,this.hostAttr,"")}createElement(ut,nt){const Ot=super.createElement(ut,nt);return super.setAttribute(Ot,this.contentAttr,""),Ot}}class Ue extends Ne{constructor(ut,nt,Ot,Zt){super(ut),this.sharedStylesHost=nt,this.hostEl=Ot,this.shadowRoot=Ot.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const jn=Ce(Zt.id,Zt.styles,[]);for(let ct=0;ct<jn.length;ct++){const xt=document.createElement("style");xt.textContent=jn[ct],this.shadowRoot.appendChild(xt)}}nodeOrShadowRoot(ut){return ut===this.hostEl?this.shadowRoot:ut}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(ut,nt){return super.appendChild(this.nodeOrShadowRoot(ut),nt)}insertBefore(ut,nt,Ot){return super.insertBefore(this.nodeOrShadowRoot(ut),nt,Ot)}removeChild(ut,nt){return super.removeChild(this.nodeOrShadowRoot(ut),nt)}parentNode(ut){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ut)))}}let ke=(()=>{class It extends de{constructor(nt){super(nt)}supports(nt){return!0}addEventListener(nt,Ot,Zt){return nt.addEventListener(Ot,Zt,!1),()=>this.removeEventListener(nt,Ot,Zt)}removeEventListener(nt,Ot,Zt){return nt.removeEventListener(Ot,Zt)}}return It.\u0275fac=function(nt){return new(nt||It)(a.\u0275\u0275inject(o.DOCUMENT))},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:It.\u0275fac}),It})();const ze=["alt","control","meta","shift"],ye={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},je={alt:It=>It.altKey,control:It=>It.ctrlKey,meta:It=>It.metaKey,shift:It=>It.shiftKey};let Ze=(()=>{class It extends de{constructor(nt){super(nt)}supports(nt){return null!=It.parseEventName(nt)}addEventListener(nt,Ot,Zt){const jn=It.parseEventName(Ot),ct=It.eventCallback(jn.fullKey,Zt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.\u0275getDOM)().onAndCancel(nt,jn.domEventName,ct))}static parseEventName(nt){const Ot=nt.toLowerCase().split("."),Zt=Ot.shift();if(0===Ot.length||"keydown"!==Zt&&"keyup"!==Zt)return null;const jn=It._normalizeKey(Ot.pop());let ct="",xt=Ot.indexOf("code");if(xt>-1&&(Ot.splice(xt,1),ct="code."),ze.forEach(Yt=>{const $t=Ot.indexOf(Yt);$t>-1&&(Ot.splice($t,1),ct+=Yt+".")}),ct+=jn,0!=Ot.length||0===jn.length)return null;const rt={};return rt.domEventName=Zt,rt.fullKey=ct,rt}static matchEventFullKeyCode(nt,Ot){let Zt=ye[nt.key]||nt.key,jn="";return Ot.indexOf("code.")>-1&&(Zt=nt.code,jn="code."),!(null==Zt||!Zt)&&(Zt=Zt.toLowerCase()," "===Zt?Zt="space":"."===Zt&&(Zt="dot"),ze.forEach(ct=>{ct!==Zt&&(0,je[ct])(nt)&&(jn+=ct+".")}),jn+=Zt,jn===Ot)}static eventCallback(nt,Ot,Zt){return jn=>{It.matchEventFullKeyCode(jn,nt)&&Zt.runGuarded(()=>Ot(jn))}}static _normalizeKey(nt){return"esc"===nt?"escape":nt}}return It.\u0275fac=function(nt){return new(nt||It)(a.\u0275\u0275inject(o.DOCUMENT))},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:It.\u0275fac}),It})();const ft=(0,a.createPlatformFactory)(a.platformCore,"browser",[{provide:a.PLATFORM_ID,useValue:o.\u0275PLATFORM_BROWSER_ID},{provide:a.PLATFORM_INITIALIZER,useValue:function xn(){h.makeCurrent()},multi:!0},{provide:o.DOCUMENT,useFactory:function Et(){return(0,a.\u0275setDocument)(document),document},deps:[]}]),Tt=new a.InjectionToken(""),en=[{provide:a.\u0275TESTABILITY_GETTER,useClass:class I{addToWindow(ut){a.\u0275global.getAngularTestability=(Ot,Zt=!0)=>{const jn=ut.findTestabilityInTree(Ot,Zt);if(null==jn)throw new Error("Could not find testability for element.");return jn},a.\u0275global.getAllAngularTestabilities=()=>ut.getAllTestabilities(),a.\u0275global.getAllAngularRootElements=()=>ut.getAllRootElements(),a.\u0275global.frameworkStabilizers||(a.\u0275global.frameworkStabilizers=[]),a.\u0275global.frameworkStabilizers.push(Ot=>{const Zt=a.\u0275global.getAllAngularTestabilities();let jn=Zt.length,ct=!1;const xt=function(rt){ct=ct||rt,jn--,0==jn&&Ot(ct)};Zt.forEach(function(rt){rt.whenStable(xt)})})}findTestabilityInTree(ut,nt,Ot){return null==nt?null:ut.getTestability(nt)??(Ot?(0,o.\u0275getDOM)().isShadowRoot(nt)?this.findTestabilityInTree(ut,nt.host,!0):this.findTestabilityInTree(ut,nt.parentElement,!0):null)}},deps:[]},{provide:a.\u0275TESTABILITY,useClass:a.Testability,deps:[a.NgZone,a.TestabilityRegistry,a.\u0275TESTABILITY_GETTER]},{provide:a.Testability,useClass:a.Testability,deps:[a.NgZone,a.TestabilityRegistry,a.\u0275TESTABILITY_GETTER]}],Gt=[{provide:a.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:a.ErrorHandler,useFactory:function gn(){return new a.ErrorHandler},deps:[]},{provide:j,useClass:ke,multi:!0,deps:[o.DOCUMENT,a.NgZone,a.PLATFORM_ID]},{provide:j,useClass:Ze,multi:!0,deps:[o.DOCUMENT]},{provide:me,useClass:me,deps:[W,ee,a.APP_ID]},{provide:a.RendererFactory2,useExisting:me},{provide:K,useExisting:ee},{provide:ee,useClass:ee,deps:[o.DOCUMENT]},{provide:W,useClass:W,deps:[j,a.NgZone]},{provide:o.XhrFactory,useClass:D,deps:[]},[]];let or=(()=>{class It{constructor(nt){}static withServerTransition(nt){return{ngModule:It,providers:[{provide:a.APP_ID,useValue:nt.appId},{provide:k,useExisting:a.APP_ID},Y]}}}return It.\u0275fac=function(nt){return new(nt||It)(a.\u0275\u0275inject(Tt,12))},It.\u0275mod=a.\u0275\u0275defineNgModule({type:It}),It.\u0275inj=a.\u0275\u0275defineInjector({providers:[...Gt,...en],imports:[o.CommonModule,a.ApplicationModule]}),It})(),Jn=(()=>{class It{constructor(nt){this._doc=nt}getTitle(){return this._doc.title}setTitle(nt){this._doc.title=nt||""}}return It.\u0275fac=function(nt){return new(nt||It)(a.\u0275\u0275inject(o.DOCUMENT))},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:function(nt){let Ot=null;return Ot=nt?new nt:function er(){return new Jn((0,a.\u0275\u0275inject)(o.DOCUMENT))}(),Ot},providedIn:"root"}),It})();typeof window<"u"&&window;let Vo=(()=>{class It{}return It.\u0275fac=function(nt){return new(nt||It)},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:function(nt){let Ot=null;return Ot=nt?new(nt||It):a.\u0275\u0275inject(_i),Ot},providedIn:"root"}),It})(),_i=(()=>{class It extends Vo{constructor(nt){super(),this._doc=nt}sanitize(nt,Ot){if(null==Ot)return null;switch(nt){case a.SecurityContext.NONE:return Ot;case a.SecurityContext.HTML:return(0,a.\u0275allowSanitizationBypassAndThrow)(Ot,"HTML")?(0,a.\u0275unwrapSafeValue)(Ot):(0,a.\u0275_sanitizeHtml)(this._doc,String(Ot)).toString();case a.SecurityContext.STYLE:return(0,a.\u0275allowSanitizationBypassAndThrow)(Ot,"Style")?(0,a.\u0275unwrapSafeValue)(Ot):Ot;case a.SecurityContext.SCRIPT:if((0,a.\u0275allowSanitizationBypassAndThrow)(Ot,"Script"))return(0,a.\u0275unwrapSafeValue)(Ot);throw new Error("unsafe value used in a script context");case a.SecurityContext.URL:return(0,a.\u0275allowSanitizationBypassAndThrow)(Ot,"URL")?(0,a.\u0275unwrapSafeValue)(Ot):(0,a.\u0275_sanitizeUrl)(String(Ot));case a.SecurityContext.RESOURCE_URL:if((0,a.\u0275allowSanitizationBypassAndThrow)(Ot,"ResourceURL"))return(0,a.\u0275unwrapSafeValue)(Ot);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${nt} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(nt){return(0,a.\u0275bypassSanitizationTrustHtml)(nt)}bypassSecurityTrustStyle(nt){return(0,a.\u0275bypassSanitizationTrustStyle)(nt)}bypassSecurityTrustScript(nt){return(0,a.\u0275bypassSanitizationTrustScript)(nt)}bypassSecurityTrustUrl(nt){return(0,a.\u0275bypassSanitizationTrustUrl)(nt)}bypassSecurityTrustResourceUrl(nt){return(0,a.\u0275bypassSanitizationTrustResourceUrl)(nt)}}return It.\u0275fac=function(nt){return new(nt||It)(a.\u0275\u0275inject(o.DOCUMENT))},It.\u0275prov=a.\u0275\u0275defineInjectable({token:It,factory:function(nt){let Ot=null;return Ot=nt?new nt:function Fo(It){return new _i(It.get(o.DOCUMENT))}(a.\u0275\u0275inject(a.Injector)),Ot},providedIn:"root"}),It})()},92216:(Ge,$,f)=>{f.d($,{BN:()=>vc,uH:()=>ms});var o=f(45449);function a(be,Re,$e){return(Re=function b(be){var Re=function v(be,Re){if("object"!=typeof be||!be)return be;var $e=be[Symbol.toPrimitive];if(void 0!==$e){var tt=$e.call(be,Re||"default");if("object"!=typeof tt)return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Re?String:Number)(be)}(be,"string");return"symbol"==typeof Re?Re:Re+""}(Re))in be?Object.defineProperty(be,Re,{value:$e,enumerable:!0,configurable:!0,writable:!0}):be[Re]=$e,be}function h(be,Re){var $e=Object.keys(be);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(be);Re&&(tt=tt.filter(function(vt){return Object.getOwnPropertyDescriptor(be,vt).enumerable})),$e.push.apply($e,tt)}return $e}function m(be){for(var Re=1;Re<arguments.length;Re++){var $e=null!=arguments[Re]?arguments[Re]:{};Re%2?h(Object($e),!0).forEach(function(tt){a(be,tt,$e[tt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors($e)):h(Object($e)).forEach(function(tt){Object.defineProperty(be,tt,Object.getOwnPropertyDescriptor($e,tt))})}return be}const F=()=>{};let Y={},I={},D=null,j={mark:F,measure:F};try{typeof window<"u"&&(Y=window),typeof document<"u"&&(I=document),typeof MutationObserver<"u"&&(D=MutationObserver),typeof performance<"u"&&(j=performance)}catch{}const{userAgent:W=""}=Y.navigator||{},de=Y,K=I,ee=D,De=j,ce=!!K.documentElement&&!!K.head&&"function"==typeof K.addEventListener&&"function"==typeof K.createElement,oe=~W.indexOf("MSIE")||~W.indexOf("Trident/");var xe={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Le=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Ce="classic",ie="duotone",Ne=[Ce,ie,"sharp","sharp-duotone"],Ee=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),Ue=["fak","fa-kit","fakd","fa-kit-duotone"],je=["fak","fakd"],At={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},fn=["fak","fa-kit","fakd","fa-kit-duotone"],Et={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},ft=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],en=[1,2,3,4,5,6,7,8,9,10],Gt=en.concat([11,12,13,14,15,16,17,18,19,20]),or=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",At.GROUP,At.SWAP_OPACITY,At.PRIMARY,At.SECONDARY].concat(en.map(be=>"".concat(be,"x"))).concat(Gt.map(be=>"w-".concat(be)));const wr="___FONT_AWESOME___",dr=16,Jn="svg-inline--fa",Er="data-fa-i2svg",lo="data-fa-pseudo-element",Qn="data-prefix",Pr="data-icon",jr="fontawesome-i2svg",go=["HTML","HEAD","STYLE","SCRIPT"],Zr=(()=>{try{return!0}catch{return!1}})();function ro(be){return new Proxy(be,{get:(Re,$e)=>$e in Re?Re[$e]:Re[Ce]})}const mo=m({},xe);mo[Ce]=m(m(m(m({},{"fa-duotone":"duotone"}),xe[Ce]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const ki=ro(mo),Yo=m({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});Yo[Ce]=m(m(m(m({},{duotone:"fad"}),Yo[Ce]),{kit:"fak"}),{"kit-duotone":"fakd"});const Ko=ro(Yo),wo=m({},Et);wo[Ce]=m(m({},wo[Ce]),{fak:"fa-kit"});const $r=ro(wo),hi=m({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});hi[Ce]=m(m({},hi[Ce]),{"fa-kit":"fak"}),ro(hi);const vn=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Eo="fa-layers-text",Ur=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Zn=(ro(m({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),uo_GROUP="duotone-group",uo_PRIMARY="primary",uo_SECONDARY="secondary",fr=["kit",...or],Vo=de.FontAwesomeConfig||{};K&&"function"==typeof K.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(Re=>{let[$e,tt]=Re;const vt=function _i(be){return""===be||"false"!==be&&("true"===be||be)}(function Fo(be){var Re=K.querySelector("script["+be+"]");if(Re)return Re.getAttribute(be)}($e));null!=vt&&(Vo[tt]=vt)});const xr={styleDefault:"solid",familyDefault:Ce,cssPrefix:"fa",replacementClass:Jn,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Vo.familyPrefix&&(Vo.cssPrefix=Vo.familyPrefix);const It=m(m({},xr),Vo);It.autoReplaceSvg||(It.observeMutations=!1);const ut={};Object.keys(xr).forEach(be=>{Object.defineProperty(ut,be,{enumerable:!0,set:function(Re){It[be]=Re,nt.forEach($e=>$e(ut))},get:function(){return It[be]}})}),Object.defineProperty(ut,"familyPrefix",{enumerable:!0,set:function(be){It.cssPrefix=be,nt.forEach(Re=>Re(ut))},get:function(){return It.cssPrefix}}),de.FontAwesomeConfig=ut;const nt=[],Zt=dr,jn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rt(){let be=12,Re="";for(;be-- >0;)Re+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Re}function Yt(be){const Re=[];for(let $e=(be||[]).length>>>0;$e--;)Re[$e]=be[$e];return Re}function $t(be){return be.classList?Yt(be.classList):(be.getAttribute("class")||"").split(" ").filter(Re=>Re)}function Wt(be){return"".concat(be).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function un(be){return Object.keys(be||{}).reduce((Re,$e)=>Re+"".concat($e,": ").concat(be[$e].trim(),";"),"")}function Pn(be){return be.size!==jn.size||be.x!==jn.x||be.y!==jn.y||be.rotate!==jn.rotate||be.flipX||be.flipY}function Hr(){const Re=Jn,$e=ut.cssPrefix,tt=ut.replacementClass;let vt=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';if("fa"!==$e||tt!==Re){const Ye=new RegExp("\\.".concat("fa","\\-"),"g"),sn=new RegExp("\\--".concat("fa","\\-"),"g"),Tn=new RegExp("\\.".concat(Re),"g");vt=vt.replace(Ye,".".concat($e,"-")).replace(sn,"--".concat($e,"-")).replace(Tn,".".concat(tt))}return vt}let xo=!1;function yo(){ut.autoAddCss&&!xo&&(function ct(be){if(!be||!ce)return;const Re=K.createElement("style");Re.setAttribute("type","text/css"),Re.innerHTML=be;const $e=K.head.childNodes;let tt=null;for(let vt=$e.length-1;vt>-1;vt--){const Ye=$e[vt],sn=(Ye.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(sn)>-1&&(tt=Ye)}K.head.insertBefore(Re,tt)}(Hr()),xo=!0)}var Ho={mixout:()=>({dom:{css:Hr,insertCss:yo}}),hooks:()=>({beforeDOMElementCreation(){yo()},beforeI2svg(){yo()}})};const io=de||{};io[wr]||(io[wr]={}),io[wr].styles||(io[wr].styles={}),io[wr].hooks||(io[wr].hooks={}),io[wr].shims||(io[wr].shims=[]);var Mo=io[wr];const bi=[],Zi=function(){K.removeEventListener("DOMContentLoaded",Zi),tr=1,bi.map(be=>be())};let tr=!1;function Po(be){!ce||(tr?setTimeout(be,0):bi.push(be))}function We(be){const{tag:Re,attributes:$e={},children:tt=[]}=be;return"string"==typeof be?Wt(be):"<".concat(Re," ").concat(function dn(be){return Object.keys(be||{}).reduce((Re,$e)=>Re+"".concat($e,'="').concat(Wt(be[$e]),'" '),"").trim()}($e),">").concat(tt.map(We).join(""),"</").concat(Re,">")}function ot(be,Re,$e){if(be&&be[Re]&&be[Re][$e])return{prefix:Re,iconName:$e,icon:be[Re][$e]}}ce&&(tr=(K.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(K.readyState),tr||K.addEventListener("DOMContentLoaded",Zi));var zt=function(Re,$e,tt,vt){var cr,Kn,ar,Ye=Object.keys(Re),sn=Ye.length,Tn=void 0!==vt?function(Re,$e){return function(tt,vt,Ye,sn){return Re.call($e,tt,vt,Ye,sn)}}($e,vt):$e;for(void 0===tt?(cr=1,ar=Re[Ye[0]]):(cr=0,ar=tt);cr<sn;cr++)ar=Tn(ar,Re[Kn=Ye[cr]],Kn,Re);return ar};function qe(be){const Re=function Qt(be){const Re=[];let $e=0;const tt=be.length;for(;$e<tt;){const vt=be.charCodeAt($e++);if(vt>=55296&&vt<=56319&&$e<tt){const Ye=be.charCodeAt($e++);56320==(64512&Ye)?Re.push(((1023&vt)<<10)+(1023&Ye)+65536):(Re.push(vt),$e--)}else Re.push(vt)}return Re}(be);return 1===Re.length?Re[0].toString(16):null}function Ht(be){return Object.keys(be).reduce((Re,$e)=>{const tt=be[$e];return tt.icon?Re[tt.iconName]=tt.icon:Re[$e]=tt,Re},{})}function Kt(be,Re){let $e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:tt=!1}=$e,vt=Ht(Re);"function"!=typeof Mo.hooks.addPack||tt?Mo.styles[be]=m(m({},Mo.styles[be]||{}),vt):Mo.hooks.addPack(be,Ht(Re)),"fas"===be&&Kt("fa",Re)}const{styles:Mn,shims:Yn}=Mo,Hn=Object.keys($r),Sr=Hn.reduce((be,Re)=>(be[Re]=Object.keys($r[Re]),be),{});let Co=null,bo={},Jr={},gi={},Ri={},Qr={};const Di=()=>{const be=tt=>zt(Mn,(vt,Ye,sn)=>(vt[sn]=zt(Ye,tt,{}),vt),{});bo=be((tt,vt,Ye)=>(vt[3]&&(tt[vt[3]]=Ye),vt[2]&&vt[2].filter(Tn=>"number"==typeof Tn).forEach(Tn=>{tt[Tn.toString(16)]=Ye}),tt)),Jr=be((tt,vt,Ye)=>(tt[Ye]=Ye,vt[2]&&vt[2].filter(Tn=>"string"==typeof Tn).forEach(Tn=>{tt[Tn]=Ye}),tt)),Qr=be((tt,vt,Ye)=>{const sn=vt[2];return tt[Ye]=Ye,sn.forEach(Tn=>{tt[Tn]=Ye}),tt});const Re="far"in Mn||ut.autoFetchSvg,$e=zt(Yn,(tt,vt)=>{const Ye=vt[0];let sn=vt[1];const Tn=vt[2];return"far"===sn&&!Re&&(sn="fas"),"string"==typeof Ye&&(tt.names[Ye]={prefix:sn,iconName:Tn}),"number"==typeof Ye&&(tt.unicodes[Ye.toString(16)]={prefix:sn,iconName:Tn}),tt},{names:{},unicodes:{}});gi=$e.names,Ri=$e.unicodes,Co=ga(ut.styleDefault,{family:ut.familyDefault})};function vi(be,Re){return(bo[be]||{})[Re]}function ci(be,Re){return(Qr[be]||{})[Re]}function aa(be){return gi[be]||{prefix:null,iconName:null}}function qo(){return Co}function qr(be){let Re=Ce;const $e=Hn.reduce((tt,vt)=>(tt[vt]="".concat(ut.cssPrefix,"-").concat(vt),tt),{});return Ne.forEach(tt=>{(be.includes($e[tt])||be.some(vt=>Sr[tt].includes(vt)))&&(Re=tt)}),Re}function ga(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:$e=Ce}=Re,tt=ki[$e][be];if($e===ie&&!be)return"fad";const vt=Ko[$e][be]||Ko[$e][tt],Ye=be in Mo.styles?be:null;return vt||Ye||null}function Fa(be){let Re=[],$e=null;return be.forEach(tt=>{const vt=function _a(be,Re){const $e=Re.split("-"),tt=$e[0],vt=$e.slice(1).join("-");return tt!==be||""===vt||function Bo(be){return~fr.indexOf(be)}(vt)?null:vt}(ut.cssPrefix,tt);vt?$e=vt:tt&&Re.push(tt)}),{iconName:$e,rest:Re}}function va(be){return be.sort().filter((Re,$e,tt)=>tt.indexOf(Re)===$e)}function ya(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:$e=!1}=Re;let tt=null;const vt=ft.concat(fn),Ye=va(be.filter(ao=>vt.includes(ao))),sn=va(be.filter(ao=>!ft.includes(ao))),Tn=Ye.filter(ao=>(tt=ao,!Le.includes(ao))),[cr=null]=Tn,Kn=qr(Ye),ar=m(m({},Fa(sn)),{},{prefix:ga(cr,{family:Kn})});return m(m(m({},ar),Go({values:be,family:Kn,styles:Mn,config:ut,canonical:ar,givenPrefix:tt})),Ha($e,tt,ar))}function Ha(be,Re,$e){let{prefix:tt,iconName:vt}=$e;if(be||!tt||!vt)return{prefix:tt,iconName:vt};const Ye="fa"===Re?aa(vt):{},sn=ci(tt,vt);return vt=Ye.iconName||sn||vt,tt=Ye.prefix||tt,"far"===tt&&!Mn.far&&Mn.fas&&!ut.autoFetchSvg&&(tt="fas"),{prefix:tt,iconName:vt}}(function Ot(be){nt.push(be)})(be=>{Co=ga(be.styleDefault,{family:ut.familyDefault})}),Di();const ii=Ne.filter(be=>be!==Ce||be!==ie),Fi=Object.keys(Et).filter(be=>be!==Ce).map(be=>Object.keys(Et[be])).flat();function Go(be){const{values:Re,family:$e,canonical:tt,givenPrefix:vt="",styles:Ye={},config:sn={}}=be,Tn=$e===ie,cr=Re.includes("fa-duotone")||Re.includes("fad");if(!Tn&&(cr||"duotone"===sn.familyDefault||"fad"===tt.prefix||"fa-duotone"===tt.prefix)&&(tt.prefix="fad"),(Re.includes("fa-brands")||Re.includes("fab"))&&(tt.prefix="fab"),!tt.prefix&&ii.includes($e)&&(Object.keys(Ye).find(_o=>Fi.includes(_o))||sn.autoFetchSvg)){const _o=Ee.get($e).defaultShortPrefixId;tt.prefix=_o,tt.iconName=ci(tt.prefix,tt.iconName)||tt.iconName}return("fa"===tt.prefix||"fa"===vt)&&(tt.prefix=qo()||"fas"),tt}let Xa=[],Si={};const Ji={},Wi=Object.keys(Ji);function fe(be,Re){for(var $e=arguments.length,tt=new Array($e>2?$e-2:0),vt=2;vt<$e;vt++)tt[vt-2]=arguments[vt];return(Si[be]||[]).forEach(sn=>{Re=sn.apply(null,[Re,...tt])}),Re}function lt(be){for(var Re=arguments.length,$e=new Array(Re>1?Re-1:0),tt=1;tt<Re;tt++)$e[tt-1]=arguments[tt];(Si[be]||[]).forEach(Ye=>{Ye.apply(null,$e)})}function P(){const be=arguments[0],Re=Array.prototype.slice.call(arguments,1);return Ji[be]?Ji[be].apply(null,Re):void 0}function Q(be){"fa"===be.prefix&&(be.prefix="fas");let{iconName:Re}=be;const $e=be.prefix||qo();if(Re)return Re=ci($e,Re)||Re,ot(Pe.definitions,$e,Re)||ot(Mo.styles,$e,Re)}const Pe=new class Xo{constructor(){this.definitions={}}add(){for(var Re=arguments.length,$e=new Array(Re),tt=0;tt<Re;tt++)$e[tt]=arguments[tt];const vt=$e.reduce(this._pullDefinitions,{});Object.keys(vt).forEach(Ye=>{this.definitions[Ye]=m(m({},this.definitions[Ye]||{}),vt[Ye]),Kt(Ye,vt[Ye]);const sn=$r[Ce][Ye];sn&&Kt(sn,vt[Ye]),Di()})}reset(){this.definitions={}}_pullDefinitions(Re,$e){const tt=$e.prefix&&$e.iconName&&$e.icon?{0:$e}:$e;return Object.keys(tt).map(vt=>{const{prefix:Ye,iconName:sn,icon:Tn}=tt[vt],cr=Tn[2];Re[Ye]||(Re[Ye]={}),cr.length>0&&cr.forEach(Kn=>{"string"==typeof Kn&&(Re[Ye][Kn]=Tn)}),Re[Ye][sn]=Tn}),Re}},Xe={noAuto:()=>{ut.autoReplaceSvg=!1,ut.observeMutations=!1,lt("noAuto")},config:ut,dom:{i2svg:function(){let be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce?(lt("beforeI2svg",be),P("pseudoElements2svg",be),P("i2svg",be)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:Re}=be;!1===ut.autoReplaceSvg&&(ut.autoReplaceSvg=!0),ut.observeMutations=!0,Po(()=>{it({autoReplaceSvgRoot:Re}),lt("watch",be)})}},parse:{icon:be=>{if(null===be)return null;if("object"==typeof be&&be.prefix&&be.iconName)return{prefix:be.prefix,iconName:ci(be.prefix,be.iconName)||be.iconName};if(Array.isArray(be)&&2===be.length){const Re=0===be[1].indexOf("fa-")?be[1].slice(3):be[1],$e=ga(be[0]);return{prefix:$e,iconName:ci($e,Re)||Re}}if("string"==typeof be&&(be.indexOf("".concat(ut.cssPrefix,"-"))>-1||be.match(vn))){const Re=ya(be.split(" "),{skipLookups:!0});return{prefix:Re.prefix||qo(),iconName:ci(Re.prefix,Re.iconName)||Re.iconName}}if("string"==typeof be){const Re=qo();return{prefix:Re,iconName:ci(Re,be)||be}}}},library:Pe,findIconDefinition:Q,toHtml:We},it=function(){let be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:Re=K}=be;(Object.keys(Mo.styles).length>0||ut.autoFetchSvg)&&ce&&ut.autoReplaceSvg&&Xe.dom.i2svg({node:Re})};function bt(be,Re){return Object.defineProperty(be,"abstract",{get:Re}),Object.defineProperty(be,"html",{get:function(){return be.abstract.map($e=>We($e))}}),Object.defineProperty(be,"node",{get:function(){if(!ce)return;const $e=K.createElement("div");return $e.innerHTML=be.html,$e.children}}),be}function Xt(be){const{icons:{main:Re,mask:$e},prefix:tt,iconName:vt,transform:Ye,symbol:sn,title:Tn,maskId:cr,titleId:Kn,extra:ar,watchable:ao=!1}=be,{width:_o,height:$i}=$e.found?$e:Re,Ii=je.includes(tt),Qa=[ut.replacementClass,vt?"".concat(ut.cssPrefix,"-").concat(vt):""].filter(N=>-1===ar.classes.indexOf(N)).filter(N=>""!==N||!!N).concat(ar.classes).join(" ");let ca={children:[],attributes:m(m({},ar.attributes),{},{"data-prefix":tt,"data-icon":vt,class:Qa,role:ar.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_o," ").concat($i)})};const Ca=Ii&&!~ar.classes.indexOf("fa-fw")?{width:"".concat(_o/$i*16*.0625,"em")}:{};ao&&(ca.attributes[Er]=""),Tn&&(ca.children.push({tag:"title",attributes:{id:ca.attributes["aria-labelledby"]||"title-".concat(Kn||rt())},children:[Tn]}),delete ca.attributes.title);const qi=m(m({},ca),{},{prefix:tt,iconName:vt,main:Re,mask:$e,maskId:cr,transform:Ye,symbol:sn,styles:m(m({},Ca),ar.styles)}),{children:Vn,attributes:q}=$e.found&&Re.found?P("generateAbstractMask",qi)||{children:[],attributes:{}}:P("generateAbstractIcon",qi)||{children:[],attributes:{}};return qi.children=Vn,qi.attributes=q,sn?function Rt(be){let{prefix:Re,iconName:$e,children:tt,attributes:vt,symbol:Ye}=be;const sn=!0===Ye?"".concat(Re,"-").concat(ut.cssPrefix,"-").concat($e):Ye;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:m(m({},vt),{},{id:sn}),children:tt}]}]}(qi):function mt(be){let{children:Re,main:$e,mask:tt,attributes:vt,styles:Ye,transform:sn}=be;if(Pn(sn)&&$e.found&&!tt.found){const{width:Tn,height:cr}=$e,Kn={x:Tn/cr/2,y:.5};vt.style=un(m(m({},Ye),{},{"transform-origin":"".concat(Kn.x+sn.x/16,"em ").concat(Kn.y+sn.y/16,"em")}))}return[{tag:"svg",attributes:vt,children:Re}]}(qi)}function qt(be){const{content:Re,width:$e,height:tt,transform:vt,title:Ye,extra:sn,watchable:Tn=!1}=be,cr=m(m(m({},sn.attributes),Ye?{title:Ye}:{}),{},{class:sn.classes.join(" ")});Tn&&(cr[Er]="");const Kn=m({},sn.styles);Pn(vt)&&(Kn.transform=function In(be){let{transform:Re,width:$e=dr,height:tt=dr,startCentered:vt=!1}=be,Ye="";return Ye+=vt&&oe?"translate(".concat(Re.x/Zt-$e/2,"em, ").concat(Re.y/Zt-tt/2,"em) "):vt?"translate(calc(-50% + ".concat(Re.x/Zt,"em), calc(-50% + ").concat(Re.y/Zt,"em)) "):"translate(".concat(Re.x/Zt,"em, ").concat(Re.y/Zt,"em) "),Ye+="scale(".concat(Re.size/Zt*(Re.flipX?-1:1),", ").concat(Re.size/Zt*(Re.flipY?-1:1),") "),Ye+="rotate(".concat(Re.rotate,"deg) "),Ye}({transform:vt,startCentered:!0,width:$e,height:tt}),Kn["-webkit-transform"]=Kn.transform);const ar=un(Kn);ar.length>0&&(cr.style=ar);const ao=[];return ao.push({tag:"span",attributes:cr,children:[Re]}),Ye&&ao.push({tag:"span",attributes:{class:"sr-only"},children:[Ye]}),ao}const{styles:Wn}=Mo;function Un(be){const Re=be[0],$e=be[1],[tt]=be.slice(4);let vt=null;return vt=Array.isArray(tt)?{tag:"g",attributes:{class:"".concat(ut.cssPrefix,"-").concat(uo_GROUP)},children:[{tag:"path",attributes:{class:"".concat(ut.cssPrefix,"-").concat(uo_SECONDARY),fill:"currentColor",d:tt[0]}},{tag:"path",attributes:{class:"".concat(ut.cssPrefix,"-").concat(uo_PRIMARY),fill:"currentColor",d:tt[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:tt}},{found:!0,width:Re,height:$e,icon:vt}}const sr={found:!1,width:512,height:512};function Ar(be,Re){let $e=Re;return"fa"===Re&&null!==ut.styleDefault&&(Re=qo()),new Promise((tt,vt)=>{if("fa"===$e){const Ye=aa(be)||{};be=Ye.iconName||be,Re=Ye.prefix||Re}if(be&&Re&&Wn[Re]&&Wn[Re][be])return tt(Un(Wn[Re][be]));(function hr(be,Re){!Zr&&!ut.showMissingIcons&&be&&console.error('Icon with name "'.concat(be,'" and prefix "').concat(Re,'" is missing.'))})(be,Re),tt(m(m({},sr),{},{icon:ut.showMissingIcons&&be&&P("missingIconAbstract")||{}}))})}const eo=()=>{},fo=ut.measurePerformance&&De&&De.mark&&De.measure?De:{mark:eo,measure:eo},ko='FA "6.7.2"';var Je_begin=be=>(fo.mark("".concat(ko," ").concat(be," begins")),()=>(be=>{fo.mark("".concat(ko," ").concat(be," ends")),fo.measure("".concat(ko," ").concat(be),"".concat(ko," ").concat(be," begins"),"".concat(ko," ").concat(be," ends"))})(be));const dt=()=>{};function st(be){return"string"==typeof(be.getAttribute?be.getAttribute(Er):null)}function X(be){return K.createElementNS("http://www.w3.org/2000/svg",be)}function _(be){return K.createElement(be)}function T(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:$e=("svg"===be.tag?X:_)}=Re;if("string"==typeof be)return K.createTextNode(be);const tt=$e(be.tag);return Object.keys(be.attributes||[]).forEach(function(Ye){tt.setAttribute(Ye,be.attributes[Ye])}),(be.children||[]).forEach(function(Ye){tt.appendChild(T(Ye,{ceFn:$e}))}),tt}const ve={replace:function(be){const Re=be[0];if(Re.parentNode)if(be[1].forEach($e=>{Re.parentNode.insertBefore(T($e),Re)}),null===Re.getAttribute(Er)&&ut.keepOriginalSource){let $e=K.createComment(function O(be){let Re=" ".concat(be.outerHTML," ");return Re="".concat(Re,"Font Awesome fontawesome.com "),Re}(Re));Re.parentNode.replaceChild($e,Re)}else Re.remove()},nest:function(be){const Re=be[0],$e=be[1];if(~$t(Re).indexOf(ut.replacementClass))return ve.replace(be);const tt=new RegExp("".concat(ut.cssPrefix,"-.*"));if(delete $e[0].attributes.id,$e[0].attributes.class){const Ye=$e[0].attributes.class.split(" ").reduce((sn,Tn)=>(Tn===ut.replacementClass||Tn.match(tt)?sn.toSvg.push(Tn):sn.toNode.push(Tn),sn),{toNode:[],toSvg:[]});$e[0].attributes.class=Ye.toSvg.join(" "),0===Ye.toNode.length?Re.removeAttribute("class"):Re.setAttribute("class",Ye.toNode.join(" "))}const vt=$e.map(Ye=>We(Ye)).join("\n");Re.setAttribute(Er,""),Re.innerHTML=vt}};function Lt(be){be()}function an(be,Re){const $e="function"==typeof Re?Re:dt;if(0===be.length)$e();else{let tt=Lt;"async"===ut.mutateApproach&&(tt=de.requestAnimationFrame||Lt),tt(()=>{const vt=function A(){return!0===ut.autoReplaceSvg?ve.replace:ve[ut.autoReplaceSvg]||ve.replace}(),Ye=Je_begin("mutate");be.map(vt),Ye(),$e()})}}let nr=!1;function Kr(){nr=!0}function Io(){nr=!1}let Lo=null;function Ui(be){if(!ee||!ut.observeMutations)return;const{treeCallback:Re=dt,nodeCallback:$e=dt,pseudoElementsCallback:tt=dt,observeMutationsRoot:vt=K}=be;Lo=new ee(Ye=>{if(nr)return;const sn=qo();Yt(Ye).forEach(Tn=>{if("childList"===Tn.type&&Tn.addedNodes.length>0&&!st(Tn.addedNodes[0])&&(ut.searchPseudoElements&&tt(Tn.target),Re(Tn.target)),"attributes"===Tn.type&&Tn.target.parentNode&&ut.searchPseudoElements&&tt(Tn.target.parentNode),"attributes"===Tn.type&&st(Tn.target)&&~Zn.indexOf(Tn.attributeName))if("class"===Tn.attributeName&&function Ln(be){const Re=be.getAttribute?be.getAttribute(Qn):null,$e=be.getAttribute?be.getAttribute(Pr):null;return Re&&$e}(Tn.target)){const{prefix:cr,iconName:Kn}=ya($t(Tn.target));Tn.target.setAttribute(Qn,cr||sn),Kn&&Tn.target.setAttribute(Pr,Kn)}else(function Rr(be){return be&&be.classList&&be.classList.contains&&be.classList.contains(ut.replacementClass)})(Tn.target)&&$e(Tn.target)})}),ce&&Lo.observe(vt,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function oo(be){const Re=be.getAttribute("style");let $e=[];return Re&&($e=Re.split(";").reduce((tt,vt)=>{const Ye=vt.split(":"),sn=Ye[0],Tn=Ye.slice(1);return sn&&Tn.length>0&&(tt[sn]=Tn.join(":").trim()),tt},{})),$e}function As(be){const Re=be.getAttribute("data-prefix"),$e=be.getAttribute("data-icon"),tt=void 0!==be.innerText?be.innerText.trim():"";let vt=ya($t(be));return vt.prefix||(vt.prefix=qo()),Re&&$e&&(vt.prefix=Re,vt.iconName=$e),vt.iconName&&vt.prefix||(vt.prefix&&tt.length>0&&(vt.iconName=function Yi(be,Re){return(Jr[be]||{})[Re]}(vt.prefix,be.innerText)||vi(vt.prefix,qe(be.innerText))),!vt.iconName&&ut.autoFetchSvg&&be.firstChild&&be.firstChild.nodeType===Node.TEXT_NODE&&(vt.iconName=be.firstChild.data)),vt}function bs(be){const Re=Yt(be.attributes).reduce((vt,Ye)=>("class"!==vt.name&&"style"!==vt.name&&(vt[Ye.name]=Ye.value),vt),{}),$e=be.getAttribute("title"),tt=be.getAttribute("data-fa-title-id");return ut.autoA11y&&($e?Re["aria-labelledby"]="".concat(ut.replacementClass,"-title-").concat(tt||rt()):(Re["aria-hidden"]="true",Re.focusable="false")),Re}function ho(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:$e,prefix:tt,rest:vt}=As(be),Ye=bs(be),sn=fe("parseNodeAttributes",{},be);let Tn=Re.styleParser?oo(be):[];return m({iconName:$e,title:be.getAttribute("title"),titleId:be.getAttribute("data-fa-title-id"),prefix:tt,transform:jn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:vt,styles:Tn,attributes:Ye}},sn)}const{styles:Ks}=Mo;function Ja(be){const Re="nest"===ut.autoReplaceSvg?ho(be,{styleParser:!1}):ho(be);return~Re.extra.classes.indexOf(Eo)?P("generateLayersText",be,Re):P("generateSvgReplacementMutation",be,Re)}function rr(){return[...Ue,...ft]}function yi(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ce)return Promise.resolve();const $e=K.documentElement.classList,tt=ar=>$e.add("".concat(jr,"-").concat(ar)),vt=ar=>$e.remove("".concat(jr,"-").concat(ar)),Ye=ut.autoFetchSvg?rr():Le.concat(Object.keys(Ks));Ye.includes("fa")||Ye.push("fa");const sn=[".".concat(Eo,":not([").concat(Er,"])")].concat(Ye.map(ar=>".".concat(ar,":not([").concat(Er,"])"))).join(", ");if(0===sn.length)return Promise.resolve();let Tn=[];try{Tn=Yt(be.querySelectorAll(sn))}catch{}if(!(Tn.length>0))return Promise.resolve();tt("pending"),vt("complete");const cr=Je_begin("onTree"),Kn=Tn.reduce((ar,ao)=>{try{const _o=Ja(ao);_o&&ar.push(_o)}catch(_o){Zr||"MissingIcon"===_o.name&&console.error(_o)}return ar},[]);return new Promise((ar,ao)=>{Promise.all(Kn).then(_o=>{an(_o,()=>{tt("active"),tt("complete"),vt("pending"),"function"==typeof Re&&Re(),cr(),ar()})}).catch(_o=>{cr(),ao(_o)})})}function ai(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ja(be).then($e=>{$e&&an([$e],Re)})}const Xs=function(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:$e=jn,symbol:tt=!1,mask:vt=null,maskId:Ye=null,title:sn=null,titleId:Tn=null,classes:cr=[],attributes:Kn={},styles:ar={}}=Re;if(!be)return;const{prefix:ao,iconName:_o,icon:$i}=be;return bt(m({type:"icon"},be),()=>(lt("beforeDOMElementCreation",{iconDefinition:be,params:Re}),ut.autoA11y&&(sn?Kn["aria-labelledby"]="".concat(ut.replacementClass,"-title-").concat(Tn||rt()):(Kn["aria-hidden"]="true",Kn.focusable="false")),Xt({icons:{main:Un($i),mask:vt?Un(vt.icon):{found:!1,width:null,height:null,icon:{}}},prefix:ao,iconName:_o,transform:m(m({},jn),$e),symbol:tt,title:sn,maskId:Ye,titleId:Tn,extra:{attributes:Kn,styles:ar,classes:cr}})))};var us={mixout(){return{icon:(be=Xs,function(Re){let $e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const tt=(Re||{}).icon?Re:Q(Re||{});let{mask:vt}=$e;return vt&&(vt=(vt||{}).icon?vt:Q(vt||{})),be(tt,m(m({},$e),{},{mask:vt}))})};var be},hooks:()=>({mutationObserverCallbacks:be=>(be.treeCallback=yi,be.nodeCallback=ai,be)}),provides(be){be.i2svg=function(Re){const{node:$e=K,callback:tt=(()=>{})}=Re;return yi($e,tt)},be.generateSvgReplacementMutation=function(Re,$e){const{iconName:tt,title:vt,titleId:Ye,prefix:sn,transform:Tn,symbol:cr,mask:Kn,maskId:ar,extra:ao}=$e;return new Promise((_o,$i)=>{Promise.all([Ar(tt,sn),Kn.iconName?Ar(Kn.iconName,Kn.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(Ii=>{let[Qa,ca]=Ii;_o([Re,Xt({icons:{main:Qa,mask:ca},prefix:sn,iconName:tt,transform:Tn,symbol:cr,maskId:ar,title:vt,titleId:Ye,extra:ao,watchable:!0})])}).catch($i)})},be.generateAbstractIcon=function(Re){let{children:$e,attributes:tt,main:vt,transform:Ye,styles:sn}=Re;const Tn=un(sn);let cr;return Tn.length>0&&(tt.style=Tn),Pn(Ye)&&(cr=P("generateAbstractTransformGrouping",{main:vt,transform:Ye,containerWidth:vt.width,iconWidth:vt.width})),$e.push(cr||vt.icon),{children:$e,attributes:tt}}}},nc={mixout:()=>({layer(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:$e=[]}=Re;return bt({type:"layer"},()=>{lt("beforeDOMElementCreation",{assembler:be,params:Re});let tt=[];return be(vt=>{Array.isArray(vt)?vt.map(Ye=>{tt=tt.concat(Ye.abstract)}):tt=tt.concat(vt.abstract)}),[{tag:"span",attributes:{class:["".concat(ut.cssPrefix,"-layers"),...$e].join(" ")},children:tt}]})}})},n1={mixout:()=>({counter(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:$e=null,classes:tt=[],attributes:vt={},styles:Ye={}}=Re;return bt({type:"counter",content:be},()=>(lt("beforeDOMElementCreation",{content:be,params:Re}),function Sn(be){const{content:Re,title:$e,extra:tt}=be,vt=m(m(m({},tt.attributes),$e?{title:$e}:{}),{},{class:tt.classes.join(" ")}),Ye=un(tt.styles);Ye.length>0&&(vt.style=Ye);const sn=[];return sn.push({tag:"span",attributes:vt,children:[Re]}),$e&&sn.push({tag:"span",attributes:{class:"sr-only"},children:[$e]}),sn}({content:be.toString(),title:$e,extra:{attributes:vt,styles:Ye,classes:["".concat(ut.cssPrefix,"-layers-counter"),...tt]}})))}})},Ti={mixout:()=>({text(be){let Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:$e=jn,title:tt=null,classes:vt=[],attributes:Ye={},styles:sn={}}=Re;return bt({type:"text",content:be},()=>(lt("beforeDOMElementCreation",{content:be,params:Re}),qt({content:be,transform:m(m({},jn),$e),title:tt,extra:{attributes:Ye,styles:sn,classes:["".concat(ut.cssPrefix,"-layers-text"),...vt]}})))}}),provides(be){be.generateLayersText=function(Re,$e){const{title:tt,transform:vt,extra:Ye}=$e;let sn=null,Tn=null;if(oe){const cr=parseInt(getComputedStyle(Re).fontSize,10),Kn=Re.getBoundingClientRect();sn=Kn.width/cr,Tn=Kn.height/cr}return ut.autoA11y&&!tt&&(Ye.attributes["aria-hidden"]="true"),Promise.resolve([Re,qt({content:Re.innerHTML,width:sn,height:Tn,transform:vt,title:tt,extra:Ye,watchable:!0})])}}};const Pi=new RegExp('"',"ug"),Ba=[1105920,1112319],Ea=m(m(m(m({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Ns=Object.keys(Ea).reduce((be,Re)=>(be[Re.toLowerCase()]=Ea[Re],be),{}),xa=Object.keys(Ns).reduce((be,Re)=>{const $e=Ns[Re];return be[Re]=$e[900]||[...Object.entries($e)][0][1],be},{});function ds(be,Re){const $e="".concat("data-fa-pseudo-element-pending").concat(Re.replace(":","-"));return new Promise((tt,vt)=>{if(null!==be.getAttribute($e))return tt();const sn=Yt(be.children).filter(_o=>_o.getAttribute(lo)===Re)[0],Tn=de.getComputedStyle(be,Re),cr=Tn.getPropertyValue("font-family"),Kn=cr.match(Ur),ar=Tn.getPropertyValue("font-weight"),ao=Tn.getPropertyValue("content");if(sn&&!Kn)return be.removeChild(sn),tt();if(Kn&&"none"!==ao&&""!==ao){const _o=Tn.getPropertyValue("content");let $i=function Hi(be,Re){const $e=be.replace(/^['"]|['"]$/g,"").toLowerCase(),tt=parseInt(Re),vt=isNaN(tt)?"normal":tt;return(Ns[$e]||{})[vt]||xa[$e]}(cr,ar);const{value:Ii,isSecondary:Qa}=function Zs(be){const Re=be.replace(Pi,""),$e=function wt(be,Re){const $e=be.length;let vt,tt=be.charCodeAt(Re);return tt>=55296&&tt<=56319&&$e>Re+1&&(vt=be.charCodeAt(Re+1),vt>=56320&&vt<=57343)?1024*(tt-55296)+vt-56320+65536:tt}(Re,0),tt=$e>=Ba[0]&&$e<=Ba[1],vt=2===Re.length&&Re[0]===Re[1];return{value:qe(vt?Re[0]:Re),isSecondary:tt||vt}}(_o),ca=Kn[0].startsWith("FontAwesome");let Ca=vi($i,Ii),qi=Ca;if(ca){const Vn=function sa(be){const Re=Ri[be],$e=vi("fas",be);return Re||($e?{prefix:"fas",iconName:$e}:null)||{prefix:null,iconName:null}}(Ii);Vn.iconName&&Vn.prefix&&(Ca=Vn.iconName,$i=Vn.prefix)}if(!Ca||Qa||sn&&sn.getAttribute(Qn)===$i&&sn.getAttribute(Pr)===qi)tt();else{be.setAttribute($e,qi),sn&&be.removeChild(sn);const Vn=function at(){return{iconName:null,title:null,titleId:null,prefix:null,transform:jn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra:q}=Vn;q.attributes[lo]=Re,Ar(Ca,$i).then(N=>{const E=Xt(m(m({},Vn),{},{icons:{main:N,mask:{prefix:null,iconName:null,rest:[]}},prefix:$i,iconName:qi,extra:q,watchable:!0})),V=K.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===Re?be.insertBefore(V,be.firstChild):be.appendChild(V),V.outerHTML=E.map(Me=>We(Me)).join("\n"),be.removeAttribute($e),tt()}).catch(vt)}}else tt()})}function r1(be){return Promise.all([ds(be,"::before"),ds(be,"::after")])}function Bi(be){return!(be.parentNode===document.head||~go.indexOf(be.tagName.toUpperCase())||be.getAttribute(lo)||be.parentNode&&"svg"===be.parentNode.tagName)}function Hc(be){if(ce)return new Promise((Re,$e)=>{const tt=Yt(be.querySelectorAll("*")).filter(Bi).map(r1),vt=Je_begin("searchPseudoElements");Kr(),Promise.all(tt).then(()=>{vt(),Io(),Re()}).catch(()=>{vt(),Io(),$e()})})}let Ls=!1;const Mi=be=>be.toLowerCase().split(" ").reduce(($e,tt)=>{const vt=tt.toLowerCase().split("-"),Ye=vt[0];let sn=vt.slice(1).join("-");if(Ye&&"h"===sn)return $e.flipX=!0,$e;if(Ye&&"v"===sn)return $e.flipY=!0,$e;if(sn=parseFloat(sn),isNaN(sn))return $e;switch(Ye){case"grow":$e.size=$e.size+sn;break;case"shrink":$e.size=$e.size-sn;break;case"left":$e.x=$e.x-sn;break;case"right":$e.x=$e.x+sn;break;case"up":$e.y=$e.y-sn;break;case"down":$e.y=$e.y+sn;break;case"rotate":$e.rotate=$e.rotate+sn}return $e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),ei={x:0,y:0,width:"100%",height:"100%"};function Vi(be){let Re=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return be.attributes&&(be.attributes.fill||Re)&&(be.attributes.fill="black"),be}function ja(be){return"g"===be.tag?be.children:[be]}!function Za(be,Re){let{mixoutsTo:$e}=Re;Xa=be,Si={},Object.keys(Ji).forEach(tt=>{-1===Wi.indexOf(tt)&&delete Ji[tt]}),Xa.forEach(tt=>{const vt=tt.mixout?tt.mixout():{};if(Object.keys(vt).forEach(Ye=>{"function"==typeof vt[Ye]&&($e[Ye]=vt[Ye]),"object"==typeof vt[Ye]&&Object.keys(vt[Ye]).forEach(sn=>{$e[Ye]||($e[Ye]={}),$e[Ye][sn]=vt[Ye][sn]})}),tt.hooks){const Ye=tt.hooks();Object.keys(Ye).forEach(sn=>{Si[sn]||(Si[sn]=[]),Si[sn].push(Ye[sn])})}tt.provides&&tt.provides(Ji)})}([Ho,us,nc,n1,Ti,{hooks:()=>({mutationObserverCallbacks:be=>(be.pseudoElementsCallback=Hc,be)}),provides(be){be.pseudoElements2svg=function(Re){const{node:$e=K}=Re;ut.searchPseudoElements&&Hc($e)}}},{mixout:()=>({dom:{unwatch(){Kr(),Ls=!0}}}),hooks:()=>({bootstrap(){Ui(fe("mutationObserverCallbacks",{}))},noAuto(){!function Ma(){!Lo||Lo.disconnect()}()},watch(be){const{observeMutationsRoot:Re}=be;Ls?Io():Ui(fe("mutationObserverCallbacks",{observeMutationsRoot:Re}))}})},{mixout:()=>({parse:{transform:be=>Mi(be)}}),hooks:()=>({parseNodeAttributes(be,Re){const $e=Re.getAttribute("data-fa-transform");return $e&&(be.transform=Mi($e)),be}}),provides(be){be.generateAbstractTransformGrouping=function(Re){let{main:$e,transform:tt,containerWidth:vt,iconWidth:Ye}=Re;const sn={transform:"translate(".concat(vt/2," 256)")},Tn="translate(".concat(32*tt.x,", ").concat(32*tt.y,") "),cr="scale(".concat(tt.size/16*(tt.flipX?-1:1),", ").concat(tt.size/16*(tt.flipY?-1:1),") "),Kn="rotate(".concat(tt.rotate," 0 0)"),_o={outer:sn,inner:{transform:"".concat(Tn," ").concat(cr," ").concat(Kn)},path:{transform:"translate(".concat(Ye/2*-1," -256)")}};return{tag:"g",attributes:m({},_o.outer),children:[{tag:"g",attributes:m({},_o.inner),children:[{tag:$e.icon.tag,children:$e.icon.children,attributes:m(m({},$e.icon.attributes),_o.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(be,Re){const $e=Re.getAttribute("data-fa-mask"),tt=$e?ya($e.split(" ").map(vt=>vt.trim())):{prefix:null,iconName:null,rest:[]};return tt.prefix||(tt.prefix=qo()),be.mask=tt,be.maskId=Re.getAttribute("data-fa-mask-id"),be}}),provides(be){be.generateAbstractMask=function(Re){let{children:$e,attributes:tt,main:vt,mask:Ye,maskId:sn,transform:Tn}=Re;const{width:cr,icon:Kn}=vt,{width:ar,icon:ao}=Ye,_o=function On(be){let{transform:Re,containerWidth:$e,iconWidth:tt}=be;const vt={transform:"translate(".concat($e/2," 256)")},Ye="translate(".concat(32*Re.x,", ").concat(32*Re.y,") "),sn="scale(".concat(Re.size/16*(Re.flipX?-1:1),", ").concat(Re.size/16*(Re.flipY?-1:1),") "),Tn="rotate(".concat(Re.rotate," 0 0)");return{outer:vt,inner:{transform:"".concat(Ye," ").concat(sn," ").concat(Tn)},path:{transform:"translate(".concat(tt/2*-1," -256)")}}}({transform:Tn,containerWidth:ar,iconWidth:cr}),$i={tag:"rect",attributes:m(m({},ei),{},{fill:"white"})},Ii=Kn.children?{children:Kn.children.map(Vi)}:{},Qa={tag:"g",attributes:m({},_o.inner),children:[Vi(m({tag:Kn.tag,attributes:m(m({},Kn.attributes),_o.path)},Ii))]},ca={tag:"g",attributes:m({},_o.outer),children:[Qa]},Ca="mask-".concat(sn||rt()),qi="clip-".concat(sn||rt()),Vn={tag:"mask",attributes:m(m({},ei),{},{id:Ca,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[$i,ca]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:qi},children:ja(ao)},Vn]};return $e.push(q,{tag:"rect",attributes:m({fill:"currentColor","clip-path":"url(#".concat(qi,")"),mask:"url(#".concat(Ca,")")},ei)}),{children:$e,attributes:tt}}}},{provides(be){let Re=!1;de.matchMedia&&(Re=de.matchMedia("(prefers-reduced-motion: reduce)").matches),be.missingIconAbstract=function(){const $e=[],tt={fill:"currentColor"},vt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};$e.push({tag:"path",attributes:m(m({},tt),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const Ye=m(m({},vt),{},{attributeName:"opacity"}),sn={tag:"circle",attributes:m(m({},tt),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Re||sn.children.push({tag:"animate",attributes:m(m({},vt),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:m(m({},Ye),{},{values:"1;0;1;1;0;1;"})}),$e.push(sn),$e.push({tag:"path",attributes:m(m({},tt),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:Re?[]:[{tag:"animate",attributes:m(m({},Ye),{},{values:"1;0;0;0;0;1;"})}]}),Re||$e.push({tag:"path",attributes:m(m({},tt),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:m(m({},Ye),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:$e}}}},{hooks:()=>({parseNodeAttributes(be,Re){const $e=Re.getAttribute("data-fa-symbol");return be.symbol=null!==$e&&(""===$e||$e),be}})}],{mixoutsTo:Xe});const y1=Xe.parse,Ss=Xe.icon;var C1=f(11481);const oc=["*"],tn=be=>{const Re={"fa-spin":be.spin,"fa-pulse":be.pulse,"fa-fw":be.fixedWidth,"fa-border":be.border,"fa-inverse":be.inverse,"fa-layers-counter":be.counter,"fa-flip-horizontal":"horizontal"===be.flip||"both"===be.flip,"fa-flip-vertical":"vertical"===be.flip||"both"===be.flip,[`fa-${be.size}`]:null!==be.size,[`fa-rotate-${be.rotate}`]:null!==be.rotate,[`fa-pull-${be.pull}`]:null!==be.pull,[`fa-stack-${be.stackItemSize}`]:null!=be.stackItemSize};return Object.keys(Re).map($e=>Re[$e]?$e:null).filter($e=>$e)};let Wc=(()=>{class be{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return be.\u0275fac=function($e){return new($e||be)},be.\u0275prov=o.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),gc=(()=>{class be{constructor(){this.definitions={}}addIcons(...$e){for(const tt of $e){tt.prefix in this.definitions||(this.definitions[tt.prefix]={}),this.definitions[tt.prefix][tt.iconName]=tt;for(const vt of tt.icon[2])"string"==typeof vt&&(this.definitions[tt.prefix][vt]=tt)}}addIconPacks(...$e){for(const tt of $e){const vt=Object.keys(tt).map(Ye=>tt[Ye]);this.addIcons(...vt)}}getIconDefinition($e,tt){return $e in this.definitions&&tt in this.definitions[$e]?this.definitions[$e][tt]:null}}return be.\u0275fac=function($e){return new($e||be)},be.\u0275prov=o.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ic=(()=>{class be{constructor(){this.stackItemSize="1x"}ngOnChanges($e){if("size"in $e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return be.\u0275fac=function($e){return new($e||be)},be.\u0275dir=o.\u0275\u0275defineDirective({type:be,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[o.\u0275\u0275NgOnChangesFeature]}),be})(),Uc=(()=>{class be{constructor($e,tt){this.renderer=$e,this.elementRef=tt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges($e){"size"in $e&&(null!=$e.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${$e.size.currentValue}`),null!=$e.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${$e.size.previousValue}`))}}return be.\u0275fac=function($e){return new($e||be)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef))},be.\u0275cmp=o.\u0275\u0275defineComponent({type:be,selectors:[["fa-stack"]],inputs:{size:"size"},features:[o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:oc,decls:1,vars:0,template:function($e,tt){1&$e&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},encapsulation:2}),be})(),vc=(()=>{class be{constructor($e,tt,vt,Ye,sn){this.sanitizer=$e,this.config=tt,this.iconLibrary=vt,this.stackItem=Ye,this.classes=[],null!=sn&&null==Ye&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges($e){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let tt=null;if(tt=this.icon??this.config.fallbackIcon,$e){const vt=this.findIconDefinition(tt);if(null!=vt){const Ye=this.buildParams();this.renderIcon(vt,Ye)}}}render(){this.ngOnChanges({})}findIconDefinition($e){const tt=((be,Re)=>(be=>void 0!==be.prefix&&void 0!==be.iconName)(be)?be:Array.isArray(be)&&2===be.length?{prefix:be[0],iconName:be[1]}:"string"==typeof be?{prefix:Re,iconName:be}:void 0)($e,this.config.defaultPrefix);return"icon"in tt?tt:this.iconLibrary.getIconDefinition(tt.prefix,tt.iconName)??((be=>{throw new Error(`Could not find icon with iconName=${be.iconName} and prefix=${be.prefix} in the icon library.`)})(tt),null)}buildParams(){const $e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},tt="string"==typeof this.transform?y1.transform(this.transform):this.transform;return{title:this.title,transform:tt,classes:[...tn($e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon($e,tt){const vt=Ss($e,tt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(vt.html.join("\n"))}}return be.\u0275fac=function($e){return new($e||be)(o.\u0275\u0275directiveInject(C1.H7),o.\u0275\u0275directiveInject(Wc),o.\u0275\u0275directiveInject(gc),o.\u0275\u0275directiveInject(ic,8),o.\u0275\u0275directiveInject(Uc,8))},be.\u0275cmp=o.\u0275\u0275defineComponent({type:be,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function($e,tt){2&$e&&(o.\u0275\u0275hostProperty("innerHTML",tt.renderedIconHTML,o.\u0275\u0275sanitizeHtml),o.\u0275\u0275attribute("title",tt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[o.\u0275\u0275NgOnChangesFeature],decls:0,vars:0,template:function($e,tt){},encapsulation:2}),be})(),ms=(()=>{class be{}return be.\u0275fac=function($e){return new($e||be)},be.\u0275mod=o.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=o.\u0275\u0275defineInjector({}),be})()},82687:(Ge,$,f)=>{f.d($,{IwR:()=>Mr,rtB:()=>T3});const Mr={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},T3={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]}},99826:(Ge,$,f)=>{f.d($,{Zw:()=>D,aw:()=>_e,X$:()=>Ne,sK:()=>se});var o=f(45449),a=f(21086),g=f(56498);function h(we){return!!we&&(we instanceof g.y||"function"==typeof we.lift&&"function"==typeof we.subscribe)}var m=f(30567),L=f(61221),v=f(88514),b=f(72986),k=f(26232),F=f(24850),Y=f(21406),I=f(87545);class D{}let j=(()=>{class we extends D{getTranslation(le){return(0,a.of)({})}}return we.\u0275fac=function(){let Ee;return function(Ue){return(Ee||(Ee=o.\u0275\u0275getInheritedFactory(we)))(Ue||we)}}(),we.\u0275prov=o.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class W{}let de=(()=>{class we{handle(le){return le.key}}return we.\u0275fac=function(le){return new(le||we)},we.\u0275prov=o.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function K(we,Ee){if(we===Ee)return!0;if(null===we||null===Ee)return!1;if(we!=we&&Ee!=Ee)return!0;let ke,ze,ye,le=typeof we;if(le==typeof Ee&&"object"==le){if(!Array.isArray(we)){if(Array.isArray(Ee))return!1;for(ze in ye=Object.create(null),we){if(!K(we[ze],Ee[ze]))return!1;ye[ze]=!0}for(ze in Ee)if(!(ze in ye)&&typeof Ee[ze]<"u")return!1;return!0}if(!Array.isArray(Ee))return!1;if((ke=we.length)==Ee.length){for(ze=0;ze<ke;ze++)if(!K(we[ze],Ee[ze]))return!1;return!0}}return!1}function ee(we){return typeof we<"u"&&null!==we}function De(we){return we&&"object"==typeof we&&!Array.isArray(we)}function Te(we,Ee){let le=Object.assign({},we);return De(we)&&De(Ee)&&Object.keys(Ee).forEach(Ue=>{De(Ee[Ue])?Ue in we?le[Ue]=Te(we[Ue],Ee[Ue]):Object.assign(le,{[Ue]:Ee[Ue]}):Object.assign(le,{[Ue]:Ee[Ue]})}),le}class ce{}let oe=(()=>{class we extends ce{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(le,Ue){let ke;return ke="string"==typeof le?this.interpolateString(le,Ue):"function"==typeof le?this.interpolateFunction(le,Ue):le,ke}getValue(le,Ue){let ke="string"==typeof Ue?Ue.split("."):[Ue];Ue="";do{Ue+=ke.shift(),!ee(le)||!ee(le[Ue])||"object"!=typeof le[Ue]&&ke.length?ke.length?Ue+=".":le=void 0:(le=le[Ue],Ue="")}while(ke.length);return le}interpolateFunction(le,Ue){return le(Ue)}interpolateString(le,Ue){return Ue?le.replace(this.templateMatcher,(ke,ze)=>{let ye=this.getValue(Ue,ze);return ee(ye)?ye:ke}):le}}return we.\u0275fac=function(){let Ee;return function(Ue){return(Ee||(Ee=o.\u0275\u0275getInheritedFactory(we)))(Ue||we)}}(),we.\u0275prov=o.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class te{}let ge=(()=>{class we extends te{compile(le,Ue){return le}compileTranslations(le,Ue){return le}}return we.\u0275fac=function(){let Ee;return function(Ue){return(Ee||(Ee=o.\u0275\u0275getInheritedFactory(we)))(Ue||we)}}(),we.\u0275prov=o.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class xe{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new o.EventEmitter,this.onLangChange=new o.EventEmitter,this.onDefaultLangChange=new o.EventEmitter}}const he=new o.InjectionToken("USE_STORE"),Le=new o.InjectionToken("USE_DEFAULT_LANG"),Ce=new o.InjectionToken("DEFAULT_LANGUAGE"),ie=new o.InjectionToken("USE_EXTEND");let se=(()=>{class we{constructor(le,Ue,ke,ze,ye,je=!0,Ze=!1,_t=!1,At){this.store=le,this.currentLoader=Ue,this.compiler=ke,this.parser=ze,this.missingTranslationHandler=ye,this.useDefaultLang=je,this.isolate=Ze,this.extend=_t,this.pending=!1,this._onTranslationChange=new o.EventEmitter,this._onLangChange=new o.EventEmitter,this._onDefaultLangChange=new o.EventEmitter,this._langs=[],this._translations={},this._translationRequests={},At&&this.setDefaultLang(At)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(le){this.isolate?this._defaultLang=le:this.store.defaultLang=le}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(le){this.isolate?this._currentLang=le:this.store.currentLang=le}get langs(){return this.isolate?this._langs:this.store.langs}set langs(le){this.isolate?this._langs=le:this.store.langs=le}get translations(){return this.isolate?this._translations:this.store.translations}set translations(le){this.isolate?this._translations=le:this.store.translations=le}setDefaultLang(le){if(le===this.defaultLang)return;let Ue=this.retrieveTranslations(le);typeof Ue<"u"?(null==this.defaultLang&&(this.defaultLang=le),Ue.pipe((0,b.q)(1)).subscribe(ke=>{this.changeDefaultLang(le)})):this.changeDefaultLang(le)}getDefaultLang(){return this.defaultLang}use(le){if(le===this.currentLang)return(0,a.of)(this.translations[le]);let Ue=this.retrieveTranslations(le);return typeof Ue<"u"?(this.currentLang||(this.currentLang=le),Ue.pipe((0,b.q)(1)).subscribe(ke=>{this.changeLang(le)}),Ue):(this.changeLang(le),(0,a.of)(this.translations[le]))}retrieveTranslations(le){let Ue;return(typeof this.translations[le]>"u"||this.extend)&&(this._translationRequests[le]=this._translationRequests[le]||this.getTranslation(le),Ue=this._translationRequests[le]),Ue}getTranslation(le){this.pending=!0;const Ue=this.currentLoader.getTranslation(le).pipe((0,k.d)(1),(0,b.q)(1));return this.loadingTranslations=Ue.pipe((0,F.U)(ke=>this.compiler.compileTranslations(ke,le)),(0,k.d)(1),(0,b.q)(1)),this.loadingTranslations.subscribe({next:ke=>{this.translations[le]=this.extend&&this.translations[le]?{...ke,...this.translations[le]}:ke,this.updateLangs(),this.pending=!1},error:ke=>{this.pending=!1}}),Ue}setTranslation(le,Ue,ke=!1){Ue=this.compiler.compileTranslations(Ue,le),this.translations[le]=(ke||this.extend)&&this.translations[le]?Te(this.translations[le],Ue):Ue,this.updateLangs(),this.onTranslationChange.emit({lang:le,translations:this.translations[le]})}getLangs(){return this.langs}addLangs(le){le.forEach(Ue=>{-1===this.langs.indexOf(Ue)&&this.langs.push(Ue)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(le,Ue,ke){let ze;if(Ue instanceof Array){let ye={},je=!1;for(let Ze of Ue)ye[Ze]=this.getParsedResult(le,Ze,ke),h(ye[Ze])&&(je=!0);if(je){const Ze=Ue.map(_t=>h(ye[_t])?ye[_t]:(0,a.of)(ye[_t]));return(0,m.D)(Ze).pipe((0,F.U)(_t=>{let At={};return _t.forEach((Vt,fn)=>{At[Ue[fn]]=Vt}),At}))}return ye}if(le&&(ze=this.parser.interpolate(this.parser.getValue(le,Ue),ke)),typeof ze>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ze=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Ue),ke)),typeof ze>"u"){let ye={key:Ue,translateService:this};typeof ke<"u"&&(ye.interpolateParams=ke),ze=this.missingTranslationHandler.handle(ye)}return typeof ze<"u"?ze:Ue}get(le,Ue){if(!ee(le)||!le.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Y.b)(ke=>h(ke=this.getParsedResult(ke,le,Ue))?ke:(0,a.of)(ke)));{let ke=this.getParsedResult(this.translations[this.currentLang],le,Ue);return h(ke)?ke:(0,a.of)(ke)}}getStreamOnTranslationChange(le,Ue){if(!ee(le)||!le.length)throw new Error('Parameter "key" required');return(0,L.z)((0,v.P)(()=>this.get(le,Ue)),this.onTranslationChange.pipe((0,I.w)(ke=>{const ze=this.getParsedResult(ke.translations,le,Ue);return"function"==typeof ze.subscribe?ze:(0,a.of)(ze)})))}stream(le,Ue){if(!ee(le)||!le.length)throw new Error('Parameter "key" required');return(0,L.z)((0,v.P)(()=>this.get(le,Ue)),this.onLangChange.pipe((0,I.w)(ke=>{const ze=this.getParsedResult(ke.translations,le,Ue);return h(ze)?ze:(0,a.of)(ze)})))}instant(le,Ue){if(!ee(le)||!le.length)throw new Error('Parameter "key" required');let ke=this.getParsedResult(this.translations[this.currentLang],le,Ue);if(h(ke)){if(le instanceof Array){let ze={};return le.forEach((ye,je)=>{ze[le[je]]=le[je]}),ze}return le}return ke}set(le,Ue,ke=this.currentLang){this.translations[ke][le]=this.compiler.compile(Ue,ke),this.updateLangs(),this.onTranslationChange.emit({lang:ke,translations:this.translations[ke]})}changeLang(le){this.currentLang=le,this.onLangChange.emit({lang:le,translations:this.translations[le]}),null==this.defaultLang&&this.changeDefaultLang(le)}changeDefaultLang(le){this.defaultLang=le,this.onDefaultLangChange.emit({lang:le,translations:this.translations[le]})}reloadLang(le){return this.resetLang(le),this.getTranslation(le)}resetLang(le){this._translationRequests[le]=void 0,this.translations[le]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let le=window.navigator.languages?window.navigator.languages[0]:null;return le=le||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof le>"u"?void 0:(-1!==le.indexOf("-")&&(le=le.split("-")[0]),-1!==le.indexOf("_")&&(le=le.split("_")[0]),le)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let le=window.navigator.languages?window.navigator.languages[0]:null;return le=le||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,le}}return we.\u0275fac=function(le){return new(le||we)(o.\u0275\u0275inject(xe),o.\u0275\u0275inject(D),o.\u0275\u0275inject(te),o.\u0275\u0275inject(ce),o.\u0275\u0275inject(W),o.\u0275\u0275inject(Le),o.\u0275\u0275inject(he),o.\u0275\u0275inject(ie),o.\u0275\u0275inject(Ce))},we.\u0275prov=o.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),Ne=(()=>{class we{constructor(le,Ue){this.translate=le,this._ref=Ue,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(le,Ue,ke){let ze=ye=>{this.value=void 0!==ye?ye:le,this.lastKey=le,this._ref.markForCheck()};if(ke){let ye=this.translate.getParsedResult(ke,le,Ue);h(ye.subscribe)?ye.subscribe(ze):ze(ye)}this.translate.get(le,Ue).subscribe(ze)}transform(le,...Ue){if(!le||!le.length)return le;if(K(le,this.lastKey)&&K(Ue,this.lastParams))return this.value;let ke;if(ee(Ue[0])&&Ue.length)if("string"==typeof Ue[0]&&Ue[0].length){let ze=Ue[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{ke=JSON.parse(ze)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Ue[0]}`)}}else"object"==typeof Ue[0]&&!Array.isArray(Ue[0])&&(ke=Ue[0]);return this.lastKey=le,this.lastParams=Ue,this.updateValue(le,ke),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ze=>{this.lastKey&&ze.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(le,ke,ze.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ze=>{this.lastKey&&(this.lastKey=null,this.updateValue(le,ke,ze.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(le,ke))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return we.\u0275fac=function(le){return new(le||we)(o.\u0275\u0275directiveInject(se,16),o.\u0275\u0275directiveInject(o.ChangeDetectorRef,16))},we.\u0275pipe=o.\u0275\u0275definePipe({name:"translate",type:we,pure:!1}),we.\u0275prov=o.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),_e=(()=>{class we{static forRoot(le={}){return{ngModule:we,providers:[le.loader||{provide:D,useClass:j},le.compiler||{provide:te,useClass:ge},le.parser||{provide:ce,useClass:oe},le.missingTranslationHandler||{provide:W,useClass:de},xe,{provide:he,useValue:le.isolate},{provide:Le,useValue:le.useDefaultLang},{provide:ie,useValue:le.extend},{provide:Ce,useValue:le.defaultLanguage},se]}}static forChild(le={}){return{ngModule:we,providers:[le.loader||{provide:D,useClass:j},le.compiler||{provide:te,useClass:ge},le.parser||{provide:ce,useClass:oe},le.missingTranslationHandler||{provide:W,useClass:de},{provide:he,useValue:le.isolate},{provide:Le,useValue:le.useDefaultLang},{provide:ie,useValue:le.extend},{provide:Ce,useValue:le.defaultLanguage},se]}}}return we.\u0275fac=function(le){return new(le||we)},we.\u0275mod=o.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=o.\u0275\u0275defineInjector({}),we})()},15861:(Ge,$,f)=>{function o(g,h,m,L,v,b,k){try{var F=g[b](k),Y=F.value}catch(I){return void m(I)}F.done?h(Y):Promise.resolve(Y).then(L,v)}function a(g){return function(){var h=this,m=arguments;return new Promise(function(L,v){var b=g.apply(h,m);function k(Y){o(b,L,v,k,F,"next",Y)}function F(Y){o(b,L,v,k,F,"throw",Y)}k(void 0)})}}f.d($,{Z:()=>a})},97582:(Ge,$,f)=>{f.d($,{ZT:()=>a,gn:()=>m,mG:()=>I});var o=function(ke,ze){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,je){ye.__proto__=je}||function(ye,je){for(var Ze in je)Object.prototype.hasOwnProperty.call(je,Ze)&&(ye[Ze]=je[Ze])})(ke,ze)};function a(ke,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Class extends value "+String(ze)+" is not a constructor or null");function ye(){this.constructor=ke}o(ke,ze),ke.prototype=null===ze?Object.create(ze):(ye.prototype=ze.prototype,new ye)}function m(ke,ze,ye,je){var At,Ze=arguments.length,_t=Ze<3?ze:null===je?je=Object.getOwnPropertyDescriptor(ze,ye):je;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_t=Reflect.decorate(ke,ze,ye,je);else for(var Vt=ke.length-1;Vt>=0;Vt--)(At=ke[Vt])&&(_t=(Ze<3?At(_t):Ze>3?At(ze,ye,_t):At(ze,ye))||_t);return Ze>3&&_t&&Object.defineProperty(ze,ye,_t),_t}function I(ke,ze,ye,je){return new(ye||(ye=Promise))(function(_t,At){function Vt(xn){try{mn(je.next(xn))}catch(gn){At(gn)}}function fn(xn){try{mn(je.throw(xn))}catch(gn){At(gn)}}function mn(xn){xn.done?_t(xn.value):function Ze(_t){return _t instanceof ye?_t:new ye(function(At){At(_t)})}(xn.value).then(Vt,fn)}mn((je=je.apply(ke,ze||[])).next())})}"function"==typeof SuppressedError&&SuppressedError}}]);