Israel – Bulgaria Tax Treaty

ישראל - בולגריה אמנת מס

Israel – Bulgaria Tax Treaty

bulgaria flag

UTC:
Capital City:
Language:
Population:
Currency:
Country Code:
Domain:

+3
Sofia
Bulgarian
6.61M
Bulgarian lev
+359
.bg

Recent news

Tax Authority Publishes Online Consolidated Texts of Key Tax Laws
On March 27, 2025 the Bulgarian Tax Authority published online the consolidated text of several tax acts, including Personal Income Tax Law, Personal Income Tax Handbook for 2024, Corporate Income Tax Act, Social Security Code, Health Insurance Act among others.
Key Tax Payment and Filing Dates for March 2025 Announced
On March 3, 2025, the Bulgarian National Revenue Agency announced several tax filing and payment deadlines for March. The deadlines include March 14 for Intrastat submissions related to intra-EU exports and imports for February 2025, as well as for VAT information exchange system (VIES) declarations from registered persons who made specific supplies in February. VAT for February 2025 is also due by March 14. For certain newly registered Intrastat operators, the deadline for submitting their Intrastat declarations for February is March 20. Employer advance withholding tax payments for February income are due on March 25, along with payments for specified social security contributions and additional mandatory pension insurance.
2025 State Budget Proposal Includes Wage, Tax, and Social Security Reforms
On February 24, 2025, the Bulgarian National Assembly considered Bill No. 51-502-01-04/2025, which outlines the state budget for 2025. Key measures in the bill include reducing the VAT registration threshold to 100,000 leva (US$53,644) from 166,000 leva (US$89,049) starting April 1. The minimum wage will rise to 1,077 leva (US$578.35) from 933 leva (US$501.02) as of January 1. The maximum social security income will increase in stages, reaching 5,030 leva (US$2,698) by January 2028. The minimum social security income for self-insured individuals, farmers, and tobacco producers will also rise to 1,077 leva from April 1. Other measures include a phased increase in tobacco excise tax rates from 2025 to 2029, maintaining a child-raising benefit of 780 leva (US$418), and abolishing reduced VAT rates on tourism and sports services starting July 1, 2024.
Updated Tax Legislation Available for Individual and Corporate Taxes
On January 31, 2025, the Bulgarian Ministry of Finance published the consolidated versions of the Individual Income Tax Act and the Corporate Income Tax Act, both updated as of August 20, 2024.
Key Announcements for Q4 2024 Tax Submissions
On January 22, 2025, the Bulgarian National Revenue Agency announced key details regarding Q4 2024 tax returns. Enterprises are required to submit electronic tax declarations by the end of January if they have paid income to individuals from various sources and withheld advance taxes. This includes submitting specific tax forms for final taxes on income from nonresident individuals, as well as domestic and nonresident individuals, including dividend income. Companies must also declare withholding taxes. Additionally, businesses must report the cash in their registers and any receivables, including from loans, if the total exceeds 50,000 Bulgarian leva (around US$26,649).
New Corporate Tax Relief Rules Under Review
On December 2, 2024 Bulgaria reviewed a new Bill that proposes changes to the Corporate Income Tax Act. Among the measures proposed, the bill defines the activities that are not eligible for minimum aid tax relief and furthermore introduces updated reporting deadlines for tax periods starting January 1, 2024, through March 31, 2025. In addition, the bill raises the maximum threshold for minimum aid over three years to €300,000 from the previous threshold of €200,000. The law will take effect on January 1, 2025.
New VAT Law Amendments Proposed
On September 18,2024 the Bulgaria's Ministry of Finance opened a consultation on proposed amendments to the VAT Law. The changes aim to align with EU regulations, and key updates include requiring Bulgarian businesses to register for VAT if their annual turnover exceeds 166,000 Bulgarian leva (around $94,667). In addition, EU businesses must register if they surpass the same threshold in Bulgaria or €100,000 (about $111,538) within the EU. The bill also adjusts VAT rules for internet streaming and virtual events, import VAT procedures for investment projects, and addresses an EU court decision on taxable turnover for second-hand goods and tourism services. The changes would take effect on January 1, 2025.
Mark Your Calendar! Deadline for Amended Tax Returns
On September 24, 2024 the Bulgarian Tax Authority reminded taxpayers that they need to submit corrective income tax returns by latest 30 September 2024. This deadline applies for individuals who have either undeclared or incorrectly declared their 2023 income. To help taxpayers, government has provided additional information through a podcast episode, the NRA website, or by phone.
Tax Authority Publishes Online Consolidated Texts of Key Tax Laws
On March 27, 2025 the Bulgarian Tax Authority published online the consolidated text of several tax acts, including Personal Income Tax Law, Personal Income Tax Handbook for 2024, Corporate Income Tax Act, Social Security Code, Health Insurance Act among others.
Key Tax Payment and Filing Dates for March 2025 Announced
On March 3, 2025, the Bulgarian National Revenue Agency announced several tax filing and payment deadlines for March. The deadlines include March 14 for Intrastat submissions related to intra-EU exports and imports for February 2025, as well as for VAT information exchange system (VIES) declarations from registered persons who made specific supplies in February. VAT for February 2025 is also due by March 14. For certain newly registered Intrastat operators, the deadline for submitting their Intrastat declarations for February is March 20. Employer advance withholding tax payments for February income are due on March 25, along with payments for specified social security contributions and additional mandatory pension insurance.
2025 State Budget Proposal Includes Wage, Tax, and Social Security Reforms
On February 24, 2025, the Bulgarian National Assembly considered Bill No. 51-502-01-04/2025, which outlines the state budget for 2025. Key measures in the bill include reducing the VAT registration threshold to 100,000 leva (US$53,644) from 166,000 leva (US$89,049) starting April 1. The minimum wage will rise to 1,077 leva (US$578.35) from 933 leva (US$501.02) as of January 1. The maximum social security income will increase in stages, reaching 5,030 leva (US$2,698) by January 2028. The minimum social security income for self-insured individuals, farmers, and tobacco producers will also rise to 1,077 leva from April 1. Other measures include a phased increase in tobacco excise tax rates from 2025 to 2029, maintaining a child-raising benefit of 780 leva (US$418), and abolishing reduced VAT rates on tourism and sports services starting July 1, 2024.
Updated Tax Legislation Available for Individual and Corporate Taxes
On January 31, 2025, the Bulgarian Ministry of Finance published the consolidated versions of the Individual Income Tax Act and the Corporate Income Tax Act, both updated as of August 20, 2024.
Key Announcements for Q4 2024 Tax Submissions
On January 22, 2025, the Bulgarian National Revenue Agency announced key details regarding Q4 2024 tax returns. Enterprises are required to submit electronic tax declarations by the end of January if they have paid income to individuals from various sources and withheld advance taxes. This includes submitting specific tax forms for final taxes on income from nonresident individuals, as well as domestic and nonresident individuals, including dividend income. Companies must also declare withholding taxes. Additionally, businesses must report the cash in their registers and any receivables, including from loans, if the total exceeds 50,000 Bulgarian leva (around US$26,649).
New Corporate Tax Relief Rules Under Review
On December 2, 2024 Bulgaria reviewed a new Bill that proposes changes to the Corporate Income Tax Act. Among the measures proposed, the bill defines the activities that are not eligible for minimum aid tax relief and furthermore introduces updated reporting deadlines for tax periods starting January 1, 2024, through March 31, 2025. In addition, the bill raises the maximum threshold for minimum aid over three years to €300,000 from the previous threshold of €200,000. The law will take effect on January 1, 2025.
New VAT Law Amendments Proposed
On September 18,2024 the Bulgaria's Ministry of Finance opened a consultation on proposed amendments to the VAT Law. The changes aim to align with EU regulations, and key updates include requiring Bulgarian businesses to register for VAT if their annual turnover exceeds 166,000 Bulgarian leva (around $94,667). In addition, EU businesses must register if they surpass the same threshold in Bulgaria or €100,000 (about $111,538) within the EU. The bill also adjusts VAT rules for internet streaming and virtual events, import VAT procedures for investment projects, and addresses an EU court decision on taxable turnover for second-hand goods and tourism services. The changes would take effect on January 1, 2025.
Mark Your Calendar! Deadline for Amended Tax Returns
On September 24, 2024 the Bulgarian Tax Authority reminded taxpayers that they need to submit corrective income tax returns by latest 30 September 2024. This deadline applies for individuals who have either undeclared or incorrectly declared their 2023 income. To help taxpayers, government has provided additional information through a podcast episode, the NRA website, or by phone.
Tax Authority Publishes Online Consolidated Texts of Key Tax Laws
On March 27, 2025 the Bulgarian Tax Authority published online the consolidated text of several tax acts, including Personal Income Tax Law, Personal Income Tax Handbook for 2024, Corporate Income Tax Act, Social Security Code, Health Insurance Act among others.
Key Tax Payment and Filing Dates for March 2025 Announced
On March 3, 2025, the Bulgarian National Revenue Agency announced several tax filing and payment deadlines for March. The deadlines include March 14 for Intrastat submissions related to intra-EU exports and imports for February 2025, as well as for VAT information exchange system (VIES) declarations from registered persons who made specific supplies in February. VAT for February 2025 is also due by March 14. For certain newly registered Intrastat operators, the deadline for submitting their Intrastat declarations for February is March 20. Employer advance withholding tax payments for February income are due on March 25, along with payments for specified social security contributions and additional mandatory pension insurance.
2025 State Budget Proposal Includes Wage, Tax, and Social Security Reforms
On February 24, 2025, the Bulgarian National Assembly considered Bill No. 51-502-01-04/2025, which outlines the state budget for 2025. Key measures in the bill include reducing the VAT registration threshold to 100,000 leva (US$53,644) from 166,000 leva (US$89,049) starting April 1. The minimum wage will rise to 1,077 leva (US$578.35) from 933 leva (US$501.02) as of January 1. The maximum social security income will increase in stages, reaching 5,030 leva (US$2,698) by January 2028. The minimum social security income for self-insured individuals, farmers, and tobacco producers will also rise to 1,077 leva from April 1. Other measures include a phased increase in tobacco excise tax rates from 2025 to 2029, maintaining a child-raising benefit of 780 leva (US$418), and abolishing reduced VAT rates on tourism and sports services starting July 1, 2024.
Updated Tax Legislation Available for Individual and Corporate Taxes
On January 31, 2025, the Bulgarian Ministry of Finance published the consolidated versions of the Individual Income Tax Act and the Corporate Income Tax Act, both updated as of August 20, 2024.
Key Announcements for Q4 2024 Tax Submissions
On January 22, 2025, the Bulgarian National Revenue Agency announced key details regarding Q4 2024 tax returns. Enterprises are required to submit electronic tax declarations by the end of January if they have paid income to individuals from various sources and withheld advance taxes. This includes submitting specific tax forms for final taxes on income from nonresident individuals, as well as domestic and nonresident individuals, including dividend income. Companies must also declare withholding taxes. Additionally, businesses must report the cash in their registers and any receivables, including from loans, if the total exceeds 50,000 Bulgarian leva (around US$26,649).
New Corporate Tax Relief Rules Under Review
On December 2, 2024 Bulgaria reviewed a new Bill that proposes changes to the Corporate Income Tax Act. Among the measures proposed, the bill defines the activities that are not eligible for minimum aid tax relief and furthermore introduces updated reporting deadlines for tax periods starting January 1, 2024, through March 31, 2025. In addition, the bill raises the maximum threshold for minimum aid over three years to €300,000 from the previous threshold of €200,000. The law will take effect on January 1, 2025.
New VAT Law Amendments Proposed
On September 18,2024 the Bulgaria's Ministry of Finance opened a consultation on proposed amendments to the VAT Law. The changes aim to align with EU regulations, and key updates include requiring Bulgarian businesses to register for VAT if their annual turnover exceeds 166,000 Bulgarian leva (around $94,667). In addition, EU businesses must register if they surpass the same threshold in Bulgaria or €100,000 (about $111,538) within the EU. The bill also adjusts VAT rules for internet streaming and virtual events, import VAT procedures for investment projects, and addresses an EU court decision on taxable turnover for second-hand goods and tourism services. The changes would take effect on January 1, 2025.
Mark Your Calendar! Deadline for Amended Tax Returns
On September 24, 2024 the Bulgarian Tax Authority reminded taxpayers that they need to submit corrective income tax returns by latest 30 September 2024. This deadline applies for individuals who have either undeclared or incorrectly declared their 2023 income. To help taxpayers, government has provided additional information through a podcast episode, the NRA website, or by phone.

Israel – Bulgaria relations

Israel and Bulgaria have maintained relations since 1948. Both countries have entered into significant Bilateral Agreements, highlighting the positive diplomatic and friendly relationship between the two nations. For example, in 1995 Bulgaria and Israel signed the Agreement for Scientific Cooperation. This strong connection encourages collaboration on global challenges, cultural exchanges, and commercial collaborations, therefore strengthening their strategic bond.

Details about Israel’s embassy in Bulgaria

Address: Geo Milev, Boulevard “Shipchenski Prohod” 18, 1113 Sofia, Bulgaria
Phone: +359 2 903 35 00
Website: Click Here
Email: info@sofia.mfa.gov.il

Details about Bulgaria Embassy in Israel

Address: Sderot Sha’ul HaMelech 8, 9 floor, Tel Aviv-Yafo, Israel
Phone: +972 3-696-1361
Website: Click Here
E-mail: Embassy.TelAviv@mfa.bg

Business Activity in Bulgaria

Bulgaria’s economy has been steadily growing, thanks to its European membership and commitment to economic reform, which has improved the business climate and attracted foreign investment. The country offers a straightforward regulatory environment, simplifying the process of starting a business. Foreign investors benefit from various government incentives, especially in technology, manufacturing and energy, including tax reductions and financial support.

Bulgaria’s strategic location at the crossroads of Europe and Asia, combined with a skilled workforce in sectors such as IT and engineering, makes it an appealing business destination. Furthermore, European membership provides access to the European market and numerous funding opportunities, making it even more desirable for business operations.

Bilateral Agreements Between Bulgaria and Israel

 

Israel and Bulgaria have signed the following agreements:

  1. International Investment Agreement
  2. Double Taxation Agreement
Reciprocal Promotion and Protection of Investments

The Agreement on Promotion and Protection of Investment between Israel and Bulgaria, signed on December 6, 1993, went into effect on December 17, 1996, and aims to establish favorable conditions for investments in both countries. This bilateral agreement is designed to foster a supportive and secure environment for investors, promoting economic cooperation and development between Israel and Bulgaria.

To read the agreement in English, click here.

Convention on the Prevention of Double Taxation

The agreement between the Governments of Israel and Bulgaria regarding the avoidance of double taxation was signed on January 18, 2000, and entered into force on January 1, 2003.

To read the agreement in English click here.

Applicability of the MLI

The Multilateral Instrument (MLI) applies to the tax treaty between Israel and Bulgaria, focusing on preventing tax evasion and avoiding double taxation. Both Israel and Bulgaria have signed the MLI on June 7, 2017. The MLI went into force on January 1, 2023, and in Israel on January 1, 2019.

Residency for Tax Purposes in Bulgaria

 

Residence of an Individual

Individuals are considered tax residents in Bulgaria if:

  1. They maintain a permanent address in the country;
  2. They reside in Bulgaria for more than 183 days in any 12-month period;
  3. They work abroad for the Bulgarian government or enterprises, or have their center of vital interest in Bulgaria.

To read about how an individual is considered a resident of Israel, click here.

Residency of a Company

For tax purposes a company is considered a resident if it is incorporated in Bulgaria.

To learn about how a company is considered a resident of Israel, click here.

The Tax System in Bulgaria

The Bulgarian Tax Authority is called the National Revenue Agency.

Income taxation: 10%

Taxation of companies and branches: 10%

VAT: 20%

Capital gains tax: 10%

Withholding Tax

 

Bulgaria Internal Tax Rate

Israel Internal Tax Rate

Treaty Withholding Tax

Personal Income tax (Tax brackets)

10%

Up to 50%

 

Corporate income tax

10%

23%

 

Capital gains tax rate

10%

25%-30% (plus 3% surtax for high earners)

 

Branch tax

10%

23%

 

Withholding tax

(Non-Resident)

Dividends

5%

25% or 30%

7.5%, 10%, 12.5%

Interest

 

10%

15%/25%/23%

0%, 5%, 10%

Royalties

10%

23%-40%

7.5 to 12.5%

VAT

9 % to 20%

18%

 

Inheritance Tax and Estate Tax in Bulgaria

Inheritance tax applies to the estate of a deceased Bulgarian citizen, regardless of whether the property is in Bulgaria or abroad, when inherited by legal or testamentary succession. It also applies to property located in Bulgaria inherited from a deceased foreign citizen. The estate includes all movable and immovable property, property rights, receivables, and liabilities that belonged to the deceased at the time of inheritance.

Tax rates for siblings and their children are 0.4% to 0.8% for inheritance exceeding BGN 250,000, while for others, it is 3.3% to 6.6% for the same amount. The tax is administered by municipal officers according to the Tax and Social Insurance Procedure Code.

When the property is donated or acquired for free, tax is imposed on the assessed value of the transferred property at rates set by the Municipal Council that range from 0.4% to 0.8% for donations between siblings and their children and from 3.3% to 6.6% between other individuals.

Tax exemptions include properties acquired by the state, municipalities, educational and cultural organizations, the Bulgarian Red Cross, and non-profits. Donations for medical treatment, humanitarian aid, and religious institutions are also exempt.

Relocation to Bulgaria

Living and starting a business in Bulgaria has many benefits. Those include its strategic location, providing easy access to the Middle East and the Balkans, the low cost of living, and a well-educated workforce. 

Furthermore, the corporate tax rate is just 10%, one of the lowest in the European Union. In Addition, Bulgaria’s EU membership facilitates the free movement of people, goods, and services, within the region, making it attractive for startups. Moreover, the cost of doing business in the country is relatively low. 

Bulgaria’s Jewish community, which numbers between 2,000 and 6,000, has witnessed tremendous growth and resurgence of communal knowledge in recent years.

Real Estate Taxation in Bulgaria

Bulgaria imposes a property tax to land, buildings, and parts of buildings situated within the country. For residential and commercial properties owned by individuals, the taxable amount is based on the assessed value of the property.

For residential properties owned by businesses, the taxable amount is calculated similarly. For non-residential properties owned by businesses, the taxable amount is determined as whichever is greater: their book value or the tax-assessed value.

The tax rate for property is set by the Municipal Council through an ordinance, ranging from 0.1% to 4.5% of the property’s assessed value.

Transfer of Funds from Israel to Bulgaria

According to section 170(a) of the Israeli Income Tax Ordinance, all payments transferred to non-Israeli residents are subject to a 25% withholding tax. However, this tax can be reduced or even waived if certain conditions are met.

As mentioned above, the countries have signed a tax treaty, that allows taxpayers to submit 2513/2 form – Statement regarding a payment to a foreign resident that is exempt from withholding tax, to potentially transfer the payments without paying the withholding tax.

In addition to assisting with withholding tax matters, our firm also helps with other issues related to transferring funds abroad. This includes providing an accountant’s approval regarding the payment of taxes, reviewing additional actions required under the CRS standard, and more.

Moreover, banks often raise many difficulties and charge high fees for converting shekels into other currencies. Therefore, consulting with a specialist before transferring the funds is highly recommended, click here to contact us.

For more information on money transfers abroad, click here.

Types of Business Entities in Bulgaria

The most common types of business in Bulgaria are:

Sole Proprietorship – This type of business is owned and administrated by an individual and is not considered as a separate legal entity from the owner. The owner is personally liable for all business debts and obligations towards the state or third parties.

Limited Liability Company – This type is the most used for small to medium-sized businesses. It may be established by one or more persons. The liability of the shareholders is limited to the amount of their contributions to the company’s capital. For the establishment of a limited liability company, a minimum capital of 2 BGN (about 1 EUR) is required.

Joint Stock Company – A Joint Stock Company is ideal for larger businesses and allows for public offering of stocks. It requires at least three founders and a minimum capital of 50,000 BGN (approximately 25,000 EUR). Shareholders are liable only up to the amount they invest in the company’s stocks.

Incentive Laws in Bulgaria

In Bulgaria, the legal and regulatory framework is designed to create a favorable and equitable business climate for both local and foreign investors. In Bulgaria, the legal framework is designed to create a fair and inviting atmosphere for both domestic and international businesses. The Bulgarian Constitution and the 2004 Investment Promotion Act (IPA) ensure that local and foreign businesses are treated equally in economic matters.

Foreign investors in Bulgaria can establish companies and enjoy the same rights as national investors. Qualifying investment projects can apply for a “Certificate for Investment Project” from the Ministry of Economy, which offers benefits like reimbursement of social and health insurance contributions, expedited administrative services, and financial support for technical and professional development.

Tax incentives in Bulgaria also include:

  • Partial corporate income tax reductions for agricultural activities.
  • Additional tax deductions for hiring long-term unemployed, handicapped, or elderly persons.
  • Up to 100% CIT reimbursement for investments in high-unemployment regions.

These laws and regulations demonstrate Bulgaria’s commitment to fostering a business-friendly environment, encouraging investment, and ensuring fairness and transparency in the treatment of investors.

Double Tax Treaties: Bulgaria

Albania

Denmark

Israel

Mongolia

Singapore

United Arab Emirates

Algeria

Egypt

Italy

Montenegro

Slovak Republic

United Kingdom

Armenia

Estonia

Japan

Morocco

Slovenia

United States

Austria

Finland

Jordan

North Korea (D.P.R.K.)

South Africa

Uzbekistan

Azerbaijan

France

Kazakhstan

Norway

South Korea

Vietnam

Bahrain

Georgia

Kuwait

Pakistan

Spain

Zimbabwe

Belarus

Germany

Latvia

Poland

Sweden

 

Belgium

Greece

Lebanon

Portugal

Switzerland

 

Canada

Hungary

Lithuania

Qatar

Syria

 

China

India

Luxembourg

Romania

Thailand

 

Croatia

Indonesia

Macedonia

Russian Federation

The Netherlands

 

Cyprus

Iran

Malta

Saudi Arabia

Turkey

 

Czech Republic

Ireland

Moldova

Serbia

Ukraine

 

Contact Us

Exchange Rate

More Countries

Hot Articles

Consult A Tax Expert

You can use the keyboard arrows to navigate between the component buttons
",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(a,{is:o.is}):(e=l.createElement(a),"select"===a&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,a),e[Ni]=t,e[Pi]=o,Pl(e,t,!1,!1),t.stateNode=e,l=Ae(a,o),a){case"iframe":case"object":case"embed":Te("load",e),u=o;break;case"video":case"audio":for(u=0;u<$a.length;u++)Te($a[u],e);u=o;break;case"source":Te("error",e),u=o;break;case"img":case"image":case"link":Te("error",e),Te("load",e),u=o;break;case"form":Te("reset",e),Te("submit",e),u=o;break;case"details":Te("toggle",e),u=o;break;case"input":A(e,o),u=M(e,o),Te("invalid",e),Ie(n,"onChange");break;case"option":u=B(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},u=Uo({},o,{value:void 0}),Te("invalid",e),Ie(n,"onChange");break;case"textarea":V(e,o),u=H(e,o),Te("invalid",e),Ie(n,"onChange");break;default:u=o}Me(a,u);var s=u;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];"style"===i?ze(e,c):"dangerouslySetInnerHTML"===i?(c=c?c.__html:void 0,null!=c&&Aa(e,c)):"children"===i?"string"==typeof c?("textarea"!==a||""!==c)&&X(e,c):"number"==typeof c&&X(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(ea.hasOwnProperty(i)?null!=c&&Ie(n,i):null!=c&&x(e,i,c,l))}switch(a){case"input":L(e),j(e,o,!1);break;case"textarea":L(e),$(e);break;case"option":null!=o.value&&e.setAttribute("value",""+P(o.value));break;case"select":e.multiple=!!o.multiple,n=o.value,null!=n?q(e,!!o.multiple,n,!1):null!=o.defaultValue&&q(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=Fe)}Ve(a,o)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ll(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));n=yn(yu.current),yn(bu.current),Jn(t)?(n=t.stateNode,o=t.memoizedProps,n[Ni]=t,n.nodeValue!==o&&(t.effectTag|=4)):(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o),n[Ni]=t,t.stateNode=n)}return null;case 13:return zt(vu),o=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==o,o=!1,null===e?void 0!==t.memoizedProps.fallback&&Jn(t):(a=e.memoizedState,o=null!==a,n||null===a||(a=e.child.sibling,null!==a&&(i=t.firstEffect,null!==i?(t.firstEffect=a,a.nextEffect=i):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8))),n&&!o&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&vu.current)?rs===Qu&&(rs=Yu):(rs!==Qu&&rs!==Yu||(rs=Gu),0!==us&&null!==es&&(To(es,ns),Co(es,us)))),(n||o)&&(t.effectTag|=4),null);case 4:return wn(),Ol(t),null;case 10:return Zt(t),null;case 17:return It(t.type)&&Ft(),null;case 19:if(zt(vu),o=t.memoizedState,null===o)return null;if(a=0!==(64&t.effectTag),i=o.rendering,null===i){if(a)mr(o,!1);else if(rs!==Qu||null!==e&&0!==(64&e.effectTag))for(i=t.child;null!==i;){if(e=_n(i),null!==e){for(t.effectTag|=64,mr(o,!1),a=e.updateQueue,null!==a&&(t.updateQueue=a,t.effectTag|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=t.child;null!==o;)a=o,i=n,a.effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,e=a.alternate,null===e?(a.childExpirationTime=0,a.expirationTime=i,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=e.childExpirationTime,a.expirationTime=e.expirationTime,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,i=e.dependencies,a.dependencies=null===i?null:{expirationTime:i.expirationTime,firstContext:i.firstContext,responders:i.responders}),o=o.sibling;return Mt(vu,1&vu.current|2),t.child}i=i.sibling}}else{if(!a)if(e=_n(i),null!==e){if(t.effectTag|=64,a=!0,n=e.updateQueue,null!==n&&(t.updateQueue=n,t.effectTag|=4),mr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate)return t=t.lastEffect=o.lastEffect,null!==t&&(t.nextEffect=null),null}else 2*ru()-o.renderingStartTime>o.tailExpiration&&1t)&&vs.set(e,t)))}}function Ur(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function qr(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=$t(Vr.bind(null,e));else{var t=Br(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Fr();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Yl&&Bl(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?$t(Vr.bind(null,e)):Wt(r,Hr.bind(null,e),{timeout:10*(1073741821-t)-ru()}),e.callbackNode=t}}}function Hr(e,t){if(ks=0,t)return t=Fr(),No(e,t),qr(e),null;var n=Br(e);if(0!==n){if(t=e.callbackNode,(Ju&(Wu|$u))!==Hu)throw Error(r(327));if(lo(),e===es&&n===ns||Kr(e,n),null!==ts){var o=Ju;Ju|=Wu;for(var a=Yr();;)try{eo();break}catch(t){Xr(e,t)}if(Gt(),Ju=o,Bu.current=a,rs===Ku)throw t=os,Kr(e,n),To(e,n),qr(e),t;if(null===ts)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=rs,es=null,o){case Qu:case Ku:throw Error(r(345));case Xu:No(e,2=n){e.lastPingedTime=n,Kr(e,n);break}}if(i=Br(e),0!==i&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=Si(oo.bind(null,e),a);break}oo(e);break;case Gu:if(To(e,n),o=e.lastSuspendedTime,n===o&&(e.nextKnownPendingLevel=ro(a)),ss&&(a=e.lastPingedTime,0===a||a>=n)){e.lastPingedTime=n,Kr(e,n);break}if(a=Br(e),0!==a&&a!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==is?o=10*(1073741821-is)-ru():1073741823===as?o=0:(o=10*(1073741821-as)-5e3,a=ru(),n=10*(1073741821-n)-a,o=a-o,0>o&&(o=0),o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Uu(o/1960))-o,n=o?o=0:(a=0|l.busyDelayMs,i=ru()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)),o=i<=a?0:a+o-i),10 component higher in the tree to provide a loading indicator or placeholder to display."+N(i))}rs!==Zu&&(rs=Xu),l=yr(l,i),f=a;do{switch(f.tag){case 3:u=l,f.effectTag|=4096,f.expirationTime=t;var w=Ar(f,u,t);ln(f,w); break e;case 1:u=l;var E=f.type,k=f.stateNode;if(0===(64&f.effectTag)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===ms||!ms.has(k)))){f.effectTag|=4096,f.expirationTime=t;var _=Ir(f,u,t);ln(f,_);break e}}f=f.return}while(null!==f)}ts=no(ts)}catch(e){t=e;continue}break}}function Yr(){var e=Bu.current;return Bu.current=Cu,null===e?Cu:e}function Gr(e,t){eus&&(us=e)}function Jr(){for(;null!==ts;)ts=to(ts)}function eo(){for(;null!==ts&&!Gl();)ts=to(ts)}function to(e){var t=Fu(e.alternate,e,ns);return e.memoizedProps=e.pendingProps,null===t&&(t=no(e)),qu.current=null,t}function no(e){ts=e;do{var t=ts.alternate;if(e=ts.return,0===(2048&ts.effectTag)){if(t=br(t,ts,ns),1===ns||1!==ts.childExpirationTime){for(var n=0,r=ts.child;null!==r;){var o=r.expirationTime,a=r.childExpirationTime;o>n&&(n=o),a>n&&(n=a),r=r.sibling}ts.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ts.firstEffect),null!==ts.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ts.firstEffect),e.lastEffect=ts.lastEffect),1e?t:e}function oo(e){var t=qt();return Vt(99,ao.bind(null,e,t)),null}function ao(e,t){do lo();while(null!==gs);if((Ju&(Wu|$u))!==Hu)throw Error(r(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=ro(n);if(e.firstPendingTime=a,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===es&&(ts=es=null,ns=0),1u&&(c=u,u=l,l=c),c=Ue(w,l),f=Ue(w,u),c&&f&&(1!==k.rangeCount||k.anchorNode!==c.node||k.anchorOffset!==c.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&(E=E.createRange(),E.setStart(c.node,c.offset),k.removeAllRanges(),l>u?(k.addRange(E),k.extend(f.node,f.offset)):(E.setEnd(f.node,f.offset),k.addRange(E)))))),E=[];for(k=w;k=k.parentNode;)1===k.nodeType&&E.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w=t&&e<=t}function To(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Co(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function No(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Po(e,t,n,o){var a=t.current,i=Fr(),l=su.suspense;i=jr(i,a,l);e:if(n){n=n._reactInternalFiber;t:{if(J(n)!==n||1!==n.tag)throw Error(r(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(It(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(r(171))}if(1===n.tag){var s=n.type;if(It(s)){n=Dt(n,s,u);break e}}n=u}else n=Al;return null===t.context?t.context=n:t.pendingContext=n,t=on(i,l),t.payload={element:e},o=void 0===o?null:o,null!==o&&(t.callback=o),an(a,t),Dr(a,i),i}function Oo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ro(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTime