text: /*!
   * OpenUI5
   * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  sap.ui.define(["./UniversalDate","../CalendarType","./_Calendars"],function(t,e,r){"use strict";var a=t.extend("sap.ui.core.date.Buddhist",{constructor:function(){var t=arguments;if(t.length>1){t=u(t)}this.oDate=this.createDate(Date,t);this.sCalendarType=e.Buddhist}});a.UTC=function(){var t=u(arguments);return Date.UTC.apply(Date,t)};a.now=function(){return Date.now()};function n(r){var a=t.getEraStartDate(e.Buddhist,0).year,n=r.year-a+1;if(r.year<1941&&r.month<3){n-=1}if(r.year===null){n=undefined}return{year:n,month:r.month,day:r.day}}function i(r){var a=t.getEraStartDate(e.Buddhist,0).year,n=r.year+a-1;if(n<1941&&r.month<3){n+=1}if(r.year===null){n=undefined}return{year:n,month:r.month,day:r.day}}function u(t){var e,r;e={year:t[0],month:t[1],day:t[2]!==undefined?t[2]:1};r=i(e);t[0]=r.year;return t}a.prototype._getBuddhist=function(){var t={year:this.oDate.getFullYear(),month:this.oDate.getMonth(),day:this.oDate.getDate()};return n(t)};a.prototype._setBuddhist=function(t){var e=i(t);return this.oDate.setFullYear(e.year,e.month,e.day)};a.prototype._getUTCBuddhist=function(){var t={year:this.oDate.getUTCFullYear(),month:this.oDate.getUTCMonth(),day:this.oDate.getUTCDate()};return n(t)};a.prototype._setUTCBuddhist=function(t){var e=i(t);return this.oDate.setUTCFullYear(e.year,e.month,e.day)};a.prototype.getYear=function(){return this._getBuddhist().year};a.prototype.getFullYear=function(){return this._getBuddhist().year};a.prototype.getUTCFullYear=function(){return this._getUTCBuddhist().year};a.prototype.setYear=function(t){var e=this._getBuddhist();e.year=t;return this._setBuddhist(e)};a.prototype.setFullYear=function(t,e,r){var a=this._getBuddhist();a.year=t;if(e!==undefined){a.month=e}if(r!==undefined){a.day=r}return this._setBuddhist(a)};a.prototype.setUTCFullYear=function(t,e,r){var a=this._getUTCBuddhist();a.year=t;if(e!==undefined){a.month=e}if(r!==undefined){a.day=r}return this._setUTCBuddhist(a)};a.prototype.getWeek=function(){return t.getWeekByDate(this.sCalendarType,this.oDate.getFullYear(),this.getMonth(),this.getDate())};a.prototype.getUTCWeek=function(){return t.getWeekByDate(this.sCalendarType,this.oDate.getUTCFullYear(),this.getUTCMonth(),this.getUTCDate())};r.set(e.Buddhist,a);return a});