(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7456],{81e3:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});let{Decimal:n,objectEnumValues:r,makeStrictEnum:s,Public:o,getRuntime:a,skip:u}=i(31329),d={};t.Prisma=d,t.$Enums={},d.prismaVersion={client:"5.22.0",engine:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},d.PrismaClientKnownRequestError=()=>{let e=a().prettyName;throw Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.PrismaClientUnknownRequestError=()=>{let e=a().prettyName;throw Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.PrismaClientRustPanicError=()=>{let e=a().prettyName;throw Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.PrismaClientInitializationError=()=>{let e=a().prettyName;throw Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.PrismaClientValidationError=()=>{let e=a().prettyName;throw Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.NotFoundError=()=>{let e=a().prettyName;throw Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.Decimal=n,d.sql=()=>{let e=a().prettyName;throw Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.empty=()=>{let e=a().prettyName;throw Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.join=()=>{let e=a().prettyName;throw Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.raw=()=>{let e=a().prettyName;throw Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.validator=o.validator,d.getExtensionContext=()=>{let e=a().prettyName;throw Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.defineExtension=()=>{let e=a().prettyName;throw Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},d.DbNull=r.instances.DbNull,d.JsonNull=r.instances.JsonNull,d.AnyNull=r.instances.AnyNull,d.NullTypes={DbNull:r.classes.DbNull,JsonNull:r.classes.JsonNull,AnyNull:r.classes.AnyNull},t.Prisma.TransactionIsolationLevel=s({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),t.Prisma.UserScalarFieldEnum={id:"id",email:"email",passwordHash:"passwordHash",name:"name",phone:"phone",role:"role",mfaEnabled:"mfaEnabled",mfaSecret:"mfaSecret",isActive:"isActive",emailVerified:"emailVerified",ssoProvider:"ssoProvider",lastLogin:"lastLogin",state:"state",doctrine:"doctrine",deletedAt:"deletedAt",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.SessionScalarFieldEnum={id:"id",userId:"userId",token:"token",deviceInfo:"deviceInfo",ipAddress:"ipAddress",expiresAt:"expiresAt",createdAt:"createdAt"},t.Prisma.FamilyMemberScalarFieldEnum={id:"id",userId:"userId",name:"name",gender:"gender",relationship:"relationship",siblingSubtype:"siblingSubtype",status:"status",dateOfBirth:"dateOfBirth",dateOfDeath:"dateOfDeath",isMinor:"isMinor",dependencyNotes:"dependencyNotes",contactEmail:"contactEmail",contactPhone:"contactPhone",createdAt:"createdAt",updatedAt:"updatedAt",parentId:"parentId",spouseId:"spouseId"},t.Prisma.AssetScalarFieldEnum={id:"id",userId:"userId",category:"category",description:"description",location:"location",surveyNumber:"surveyNumber",ownershipPercent:"ownershipPercent",currentValue:"currentValue",nomineeInfo:"nomineeInfo",jointHolderInfo:"jointHolderInfo",documentUrls:"documentUrls",notes:"notes",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.LiabilityScalarFieldEnum={id:"id",userId:"userId",category:"category",description:"description",lender:"lender",outstandingAmount:"outstandingAmount",interestRate:"interestRate",emiAmount:"emiAmount",maturityDate:"maturityDate",collateral:"collateral",notes:"notes",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.BequestScalarFieldEnum={id:"id",userId:"userId",beneficiaryId:"beneficiaryId",type:"type",beneficiaryName:"beneficiaryName",beneficiaryContact:"beneficiaryContact",amount:"amount",percentage:"percentage",assetId:"assetId",purpose:"purpose",conditions:"conditions",charityName:"charityName",charityRegistration:"charityRegistration",isValidated:"isValidated",validationErrors:"validationErrors",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.InheritanceCalculationScalarFieldEnum={id:"id",userId:"userId",doctrine:"doctrine",rulebookVersion:"rulebookVersion",status:"status",familySnapshot:"familySnapshot",assetSummary:"assetSummary",netEstate:"netEstate",bequestTotal:"bequestTotal",distributableEstate:"distributableEstate",adjustmentType:"adjustmentType",adjustmentDetails:"adjustmentDetails",calculationTrace:"calculationTrace",validations:"validations",certificateHash:"certificateHash",tdbNodes:"tdbNodes",createdAt:"createdAt"},t.Prisma.CalculationShareScalarFieldEnum={id:"id",calculationId:"calculationId",familyMemberId:"familyMemberId",heirName:"heirName",relationship:"relationship",fraction:"fraction",decimal:"decimal",percentage:"percentage",isFixed:"isFixed",ruleIds:"ruleIds",citations:"citations",explanation:"explanation",wasAdjusted:"wasAdjusted",originalFraction:"originalFraction",originalDecimal:"originalDecimal"},t.Prisma.DocumentPackScalarFieldEnum={id:"id",userId:"userId",calculationId:"calculationId",status:"status",packHash:"packHash",verificationUrl:"verificationUrl",state:"state",documents:"documents",generatedAt:"generatedAt",creditConsumed:"creditConsumed"},t.Prisma.VaultItemScalarFieldEnum={id:"id",userId:"userId",name:"name",category:"category",encryptedData:"encryptedData",iv:"iv",authTag:"authTag",metadata:"metadata",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.EmergencyAccessScalarFieldEnum={id:"id",userId:"userId",method:"method",inactivityDays:"inactivityDays",countdownDays:"countdownDays",trustedPersons:"trustedPersons",quorumRequired:"quorumRequired",isActive:"isActive",lastActivityAt:"lastActivityAt",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.EdgeCaseScalarFieldEnum={id:"id",userId:"userId",calculationId:"calculationId",ruleNodeId:"ruleNodeId",doctrine:"doctrine",familyContext:"familyContext",description:"description",status:"status",assignedTo:"assignedTo",resolution:"resolution",resolutionRule:"resolutionRule",submittedAt:"submittedAt",resolvedAt:"resolvedAt"},t.Prisma.ProfessionalScalarFieldEnum={id:"id",userId:"userId",type:"type",name:"name",credentials:"credentials",institution:"institution",specializations:"specializations",states:"states",bio:"bio",rating:"rating",reviewCount:"reviewCount",isVerified:"isVerified",isActive:"isActive",hourlyRate:"hourlyRate",contactEmail:"contactEmail",contactPhone:"contactPhone",servicesOffered:"servicesOffered",registrationStatus:"registrationStatus",rejectionReason:"rejectionReason",approvedAt:"approvedAt",approvedBy:"approvedBy",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.ProfessionalReviewScalarFieldEnum={id:"id",userId:"userId",professionalId:"professionalId",type:"type",status:"status",calculationId:"calculationId",reviewNotes:"reviewNotes",reviewDocument:"reviewDocument",amount:"amount",paidAt:"paidAt",completedAt:"completedAt",rating:"rating",feedback:"feedback",createdAt:"createdAt"},t.Prisma.ServiceRequestScalarFieldEnum={id:"id",userId:"userId",professionalId:"professionalId",serviceType:"serviceType",description:"description",documents:"documents",amount:"amount",status:"status",razorpayOrderId:"razorpayOrderId",razorpayPaymentId:"razorpayPaymentId",paidAt:"paidAt",acceptedAt:"acceptedAt",rejectedAt:"rejectedAt",rejectionReason:"rejectionReason",completedAt:"completedAt",cancelledAt:"cancelledAt",rating:"rating",feedback:"feedback",notes:"notes",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.SubscriptionScalarFieldEnum={id:"id",userId:"userId",plan:"plan",status:"status",startDate:"startDate",endDate:"endDate",creditsTotal:"creditsTotal",creditsUsed:"creditsUsed",seatsTotal:"seatsTotal",seatsUsed:"seatsUsed",razorpaySubId:"razorpaySubId",razorpayPlanId:"razorpayPlanId",amount:"amount",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.LifeEventScalarFieldEnum={id:"id",userId:"userId",type:"type",description:"description",date:"date",impactSummary:"impactSummary",reviewRequired:"reviewRequired",reviewedAt:"reviewedAt",createdAt:"createdAt"},t.Prisma.AuditLogScalarFieldEnum={id:"id",userId:"userId",action:"action",entityType:"entityType",entityId:"entityId",beforeState:"beforeState",afterState:"afterState",ipAddress:"ipAddress",previousHash:"previousHash",hash:"hash",createdAt:"createdAt"},t.Prisma.OrisInteractionScalarFieldEnum={id:"id",userId:"userId",queryType:"queryType",query:"query",response:"response",context:"context",confidence:"confidence",tokensUsed:"tokensUsed",latencyMs:"latencyMs",costUsd:"costUsd",feedback:"feedback",createdAt:"createdAt"},t.Prisma.ConsentLogScalarFieldEnum={id:"id",userId:"userId",purpose:"purpose",grantedAt:"grantedAt",revokedAt:"revokedAt",noticeVersion:"noticeVersion",channel:"channel"},t.Prisma.ZakatCalculationScalarFieldEnum={id:"id",userId:"userId",doctrine:"doctrine",label:"label",encryptedData:"encryptedData",iv:"iv",authTag:"authTag",nisabMet:"nisabMet",zakatDue:"zakatDue",zakatYear:"zakatYear",certificateHash:"certificateHash",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.ZakatNGOScalarFieldEnum={id:"id",name:"name",registrationNumber:"registrationNumber",fcraNumber:"fcraNumber",section80GNumber:"section80GNumber",description:"description",mission:"mission",website:"website",contactEmail:"contactEmail",contactPhone:"contactPhone",address:"address",state:"state",city:"city",asnaafCategories:"asnaafCategories",status:"status",isVerified:"isVerified",donateazyListed:"donateazyListed",donateazyId:"donateazyId",logoUrl:"logoUrl",socialLinks:"socialLinks",rejectionReason:"rejectionReason",approvedAt:"approvedAt",approvedBy:"approvedBy",submittedAt:"submittedAt",updatedAt:"updatedAt"},t.Prisma.DocumentIdentifierScalarFieldEnum={id:"id",din:"din",year:"year",stateCode:"stateCode",sequence:"sequence",documentPackId:"documentPackId",calculationId:"calculationId",userId:"userId",status:"status",issuedAt:"issuedAt",revokedAt:"revokedAt",revokedReason:"revokedReason"},t.Prisma.WitnessScalarFieldEnum={id:"id",documentPackId:"documentPackId",userId:"userId",name:"name",email:"email",phone:"phone",relationship:"relationship",aadhaarLast4:"aadhaarLast4",token:"token",tokenExpiresAt:"tokenExpiresAt",status:"status",invitedAt:"invitedAt",attestedAt:"attestedAt",declinedAt:"declinedAt"},t.Prisma.WitnessAttestationScalarFieldEnum={id:"id",witnessId:"witnessId",documentPackId:"documentPackId",ipAddress:"ipAddress",userAgent:"userAgent",attestedAt:"attestedAt",declaration:"declaration"},t.Prisma.SignatureScalarFieldEnum={id:"id",documentPackId:"documentPackId",signerId:"signerId",signerType:"signerType",signerName:"signerName",signatureData:"signatureData",signatureHash:"signatureHash",ipAddress:"ipAddress",userAgent:"userAgent",signedAt:"signedAt",witnessId:"witnessId",executorId:"executorId",signingSessionId:"signingSessionId"},t.Prisma.ExecutorAppointmentScalarFieldEnum={id:"id",calculationId:"calculationId",executorUserId:"executorUserId",executorName:"executorName",executorEmail:"executorEmail",executorPhone:"executorPhone",token:"token",tokenExpiresAt:"tokenExpiresAt",status:"status",isPrimary:"isPrimary",appointedAt:"appointedAt",acceptedAt:"acceptedAt",declinedAt:"declinedAt"},t.Prisma.IdentityVerificationScalarFieldEnum={id:"id",userId:"userId",verificationType:"verificationType",fullName:"fullName",dateOfBirth:"dateOfBirth",aadhaarLast4:"aadhaarLast4",aadhaarVerified:"aadhaarVerified",addressLine1:"addressLine1",addressCity:"addressCity",addressState:"addressState",addressPincode:"addressPincode",documentUrl:"documentUrl",verifiedAt:"verifiedAt",expiresAt:"expiresAt",status:"status",createdAt:"createdAt"},t.Prisma.SigningSessionScalarFieldEnum={id:"id",documentPackId:"documentPackId",signerType:"signerType",signerIdentifier:"signerIdentifier",signerName:"signerName",signerEmail:"signerEmail",verificationMethod:"verificationMethod",otpHash:"otpHash",otpExpiresAt:"otpExpiresAt",otpAttempts:"otpAttempts",ipAddress:"ipAddress",userAgent:"userAgent",deviceFingerprint:"deviceFingerprint",status:"status",expiresAt:"expiresAt",createdAt:"createdAt",completedAt:"completedAt"},t.Prisma.SigningEventScalarFieldEnum={id:"id",signingSessionId:"signingSessionId",eventType:"eventType",ipAddress:"ipAddress",userAgent:"userAgent",metadata:"metadata",createdAt:"createdAt"},t.Prisma.VideoMessageScalarFieldEnum={id:"id",userId:"userId",title:"title",description:"description",recipientName:"recipientName",recipientEmail:"recipientEmail",recipientPhone:"recipientPhone",relationship:"relationship",s3Key:"s3Key",duration:"duration",fileSize:"fileSize",mimeType:"mimeType",encryptionIv:"encryptionIv",encryptionTag:"encryptionTag",contentHash:"contentHash",personalNote:"personalNote",status:"status",accessToken:"accessToken",tokenExpiresAt:"tokenExpiresAt",deliveryTrigger:"deliveryTrigger",inactivityDays:"inactivityDays",recordedAt:"recordedAt",finalizedAt:"finalizedAt",deliveredAt:"deliveredAt",createdAt:"createdAt",updatedAt:"updatedAt"},t.Prisma.VideoRecipientScalarFieldEnum={id:"id",videoMessageId:"videoMessageId",recipientEmail:"recipientEmail",recipientName:"recipientName",accessToken:"accessToken",status:"status",notifiedAt:"notifiedAt",viewedAt:"viewedAt",viewCount:"viewCount",ipAddress:"ipAddress",userAgent:"userAgent",createdAt:"createdAt"},t.Prisma.BeneficiaryPortalAccessScalarFieldEnum={id:"id",familyMemberId:"familyMemberId",calculationId:"calculationId",accessToken:"accessToken",tokenExpiresAt:"tokenExpiresAt",lastViewedAt:"lastViewedAt",viewCount:"viewCount",createdAt:"createdAt"},t.Prisma.SystemSettingScalarFieldEnum={id:"id",key:"key",value:"value",type:"type",label:"label",group:"group",updatedAt:"updatedAt",updatedBy:"updatedBy"},t.Prisma.SortOrder={asc:"asc",desc:"desc"},t.Prisma.JsonNullValueInput={JsonNull:d.JsonNull},t.Prisma.NullableJsonNullValueInput={DbNull:d.DbNull,JsonNull:d.JsonNull},t.Prisma.NullsOrder={first:"first",last:"last"},t.Prisma.JsonNullValueFilter={DbNull:d.DbNull,JsonNull:d.JsonNull,AnyNull:d.AnyNull},t.UserRole=t.$Enums.UserRole={SUPER_ADMIN:"SUPER_ADMIN",USER:"USER",EXECUTOR:"EXECUTOR",BENEFICIARY:"BENEFICIARY",PROFESSIONAL:"PROFESSIONAL",SHARIAH_BOARD:"SHARIAH_BOARD"},t.IndianState=t.$Enums.IndianState={KA:"KA",KL:"KL",TN:"TN",TS:"TS",AP:"AP",DL:"DL",HR:"HR",HP:"HP",JK:"JK",PB:"PB",RJ:"RJ",UK:"UK",UP:"UP",GA:"GA",GJ:"GJ",MH:"MH",CT:"CT",MP:"MP",BR:"BR",JH:"JH",OD:"OD",WB:"WB",AR:"AR",AS:"AS",ML:"ML",MN:"MN",MZ:"MZ",NL:"NL",SK:"SK",TR:"TR",AN:"AN",CH:"CH",DD:"DD",LA:"LA",LD:"LD",PY:"PY"},t.Doctrine=t.$Enums.Doctrine={SUNNI_HANAFI:"SUNNI_HANAFI",SUNNI_SHAFII:"SUNNI_SHAFII",SUNNI_MALIKI:"SUNNI_MALIKI",SUNNI_HANBALI:"SUNNI_HANBALI",SHIA_JAFARI:"SHIA_JAFARI"},t.Gender=t.$Enums.Gender={MALE:"MALE",FEMALE:"FEMALE"},t.RelationshipType=t.$Enums.RelationshipType={SPOUSE:"SPOUSE",CHILD:"CHILD",PARENT:"PARENT",SIBLING:"SIBLING",GRANDPARENT:"GRANDPARENT",GRANDCHILD:"GRANDCHILD",UNCLE:"UNCLE",AUNT:"AUNT"},t.SiblingSubtype=t.$Enums.SiblingSubtype={FULL:"FULL",HALF_PATERNAL:"HALF_PATERNAL",HALF_MATERNAL:"HALF_MATERNAL",STEP:"STEP"},t.PersonStatus=t.$Enums.PersonStatus={ALIVE:"ALIVE",DECEASED:"DECEASED"},t.AssetCategory=t.$Enums.AssetCategory={IMMOVABLE_PROPERTY:"IMMOVABLE_PROPERTY",BANK_ACCOUNT:"BANK_ACCOUNT",FIXED_DEPOSIT:"FIXED_DEPOSIT",MUTUAL_FUND:"MUTUAL_FUND",STOCKS:"STOCKS",GOLD_JEWELRY:"GOLD_JEWELRY",VEHICLE:"VEHICLE",BUSINESS_INTEREST:"BUSINESS_INTEREST",DIGITAL_ASSET:"DIGITAL_ASSET",INSURANCE:"INSURANCE",EPF_PPF:"EPF_PPF",INTELLECTUAL_PROPERTY:"INTELLECTUAL_PROPERTY",OTHER:"OTHER"},t.LiabilityCategory=t.$Enums.LiabilityCategory={HOME_LOAN:"HOME_LOAN",VEHICLE_LOAN:"VEHICLE_LOAN",PERSONAL_LOAN:"PERSONAL_LOAN",CREDIT_CARD:"CREDIT_CARD",BUSINESS_LOAN:"BUSINESS_LOAN",GOLD_LOAN:"GOLD_LOAN",ZAKAT_ARREARS:"ZAKAT_ARREARS",CHARITY_COMMITMENT:"CHARITY_COMMITMENT",TAX_OBLIGATION:"TAX_OBLIGATION",INFORMAL_DEBT:"INFORMAL_DEBT",OTHER:"OTHER"},t.BequestType=t.$Enums.BequestType={SPECIFIC_AMOUNT:"SPECIFIC_AMOUNT",PERCENTAGE_OF_ESTATE:"PERCENTAGE_OF_ESTATE",SPECIFIC_ASSET:"SPECIFIC_ASSET",CHARITY_DONATION:"CHARITY_DONATION",SADAQAH_JARIYAH:"SADAQAH_JARIYAH"},t.CalculationStatus=t.$Enums.CalculationStatus={DRAFT:"DRAFT",PROVISIONAL:"PROVISIONAL",FINAL:"FINAL"},t.AdjustmentType=t.$Enums.AdjustmentType={NONE:"NONE",AWL:"AWL",RADD:"RADD"},t.DocumentPackStatus=t.$Enums.DocumentPackStatus={DRAFT:"DRAFT",PREVIEW:"PREVIEW",FINAL:"FINAL"},t.EmergencyAccessMethod=t.$Enums.EmergencyAccessMethod={TIME_LOCK_INACTIVITY:"TIME_LOCK_INACTIVITY",TRUSTED_QUORUM:"TRUSTED_QUORUM",MANUAL_RELEASE:"MANUAL_RELEASE",PREMIUM_ASSISTED:"PREMIUM_ASSISTED"},t.EdgeCaseStatus=t.$Enums.EdgeCaseStatus={SUBMITTED:"SUBMITTED",ASSIGNED:"ASSIGNED",UNDER_REVIEW:"UNDER_REVIEW",RESOLVED:"RESOLVED",ESCALATED:"ESCALATED"},t.ProfessionalType=t.$Enums.ProfessionalType={SHARIAH_SCHOLAR:"SHARIAH_SCHOLAR",ESTATE_LAWYER:"ESTATE_LAWYER",TAX_ADVISOR:"TAX_ADVISOR",MEDIATOR:"MEDIATOR",ADVOCATE:"ADVOCATE",DOCUMENT_REGISTRATION:"DOCUMENT_REGISTRATION",COURT_FILING:"COURT_FILING",PROPERTY_MUTATION:"PROPERTY_MUTATION",STAMP_DUTY:"STAMP_DUTY",ADVISORY_CONSULTATION:"ADVISORY_CONSULTATION"},t.ReviewStatus=t.$Enums.ReviewStatus={REQUESTED:"REQUESTED",IN_PROGRESS:"IN_PROGRESS",COMPLETED:"COMPLETED",CANCELLED:"CANCELLED"},t.ServiceRequestStatus=t.$Enums.ServiceRequestStatus={PENDING:"PENDING",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",IN_PROGRESS:"IN_PROGRESS",COMPLETED:"COMPLETED",CANCELLED:"CANCELLED",DISPUTED:"DISPUTED"},t.SubscriptionPlan=t.$Enums.SubscriptionPlan={ESSENTIAL:"ESSENTIAL",VAULT:"VAULT",VAULT_FAMILY:"VAULT_FAMILY",PROFESSIONAL:"PROFESSIONAL",ENTERPRISE:"ENTERPRISE"},t.SubscriptionStatus=t.$Enums.SubscriptionStatus={ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",CANCELLED:"CANCELLED",TRIAL:"TRIAL"},t.LifeEventType=t.$Enums.LifeEventType={NEW_CHILD:"NEW_CHILD",MARRIAGE:"MARRIAGE",DIVORCE:"DIVORCE",PARENT_DEATH:"PARENT_DEATH",SPOUSE_DEATH:"SPOUSE_DEATH",CHILD_DEATH:"CHILD_DEATH",ASSET_ACQUIRED:"ASSET_ACQUIRED",ASSET_SOLD:"ASSET_SOLD",DEBT_TAKEN:"DEBT_TAKEN",DEBT_SETTLED:"DEBT_SETTLED",MOVED_STATE:"MOVED_STATE",RETIREMENT:"RETIREMENT"},t.ConsentPurpose=t.$Enums.ConsentPurpose={ESTATE_PLANNING:"ESTATE_PLANNING",DOCUMENT_STORAGE:"DOCUMENT_STORAGE",ORIS_AI_PROCESSING:"ORIS_AI_PROCESSING",PROFESSIONAL_REFERRAL:"PROFESSIONAL_REFERRAL",MARKETING:"MARKETING",ANALYTICS:"ANALYTICS"},t.ZakatNGOStatus=t.$Enums.ZakatNGOStatus={PENDING:"PENDING",APPROVED:"APPROVED",REJECTED:"REJECTED",SUSPENDED:"SUSPENDED"},t.WitnessStatus=t.$Enums.WitnessStatus={INVITED:"INVITED",ACCEPTED:"ACCEPTED",ATTESTED:"ATTESTED",DECLINED:"DECLINED",EXPIRED:"EXPIRED"},t.SignatureType=t.$Enums.SignatureType={TESTATOR:"TESTATOR",EXECUTOR:"EXECUTOR",WITNESS:"WITNESS",NOTARY:"NOTARY"},t.ExecutorStatus=t.$Enums.ExecutorStatus={INVITED:"INVITED",ACCEPTED:"ACCEPTED",ACTIVE:"ACTIVE",DECLINED:"DECLINED",REVOKED:"REVOKED",COMPLETED:"COMPLETED"},t.VerificationType=t.$Enums.VerificationType={SELF_DECLARATION:"SELF_DECLARATION",AADHAAR_BASIC:"AADHAAR_BASIC",AADHAAR_DIGILOCKER:"AADHAAR_DIGILOCKER",MANUAL_UPLOAD:"MANUAL_UPLOAD"},t.SigningVerificationMethod=t.$Enums.SigningVerificationMethod={EMAIL_OTP:"EMAIL_OTP",SMS_OTP:"SMS_OTP",LOGGED_IN_SESSION:"LOGGED_IN_SESSION",TOKEN_AUTH:"TOKEN_AUTH"},t.SigningSessionStatus=t.$Enums.SigningSessionStatus={CREATED:"CREATED",OTP_SENT:"OTP_SENT",OTP_VERIFIED:"OTP_VERIFIED",DOCUMENT_VIEWED:"DOCUMENT_VIEWED",SIGNATURE_DRAWN:"SIGNATURE_DRAWN",COMPLETED:"COMPLETED",EXPIRED:"EXPIRED",FAILED:"FAILED"},t.SigningEventType=t.$Enums.SigningEventType={SESSION_CREATED:"SESSION_CREATED",OTP_SENT:"OTP_SENT",OTP_VERIFIED:"OTP_VERIFIED",OTP_FAILED:"OTP_FAILED",DOCUMENT_VIEWED:"DOCUMENT_VIEWED",SIGNATURE_DRAWN:"SIGNATURE_DRAWN",SIGNATURE_CONFIRMED:"SIGNATURE_CONFIRMED",SIGNATURE_EMBEDDED:"SIGNATURE_EMBEDDED",SESSION_EXPIRED:"SESSION_EXPIRED"},t.VideoMessageStatus=t.$Enums.VideoMessageStatus={DRAFT:"DRAFT",RECORDED:"RECORDED",FINALIZED:"FINALIZED",DELIVERED:"DELIVERED",EXPIRED:"EXPIRED"},t.VideoRecipientStatus=t.$Enums.VideoRecipientStatus={PENDING:"PENDING",NOTIFIED:"NOTIFIED",VIEWED:"VIEWED",EXPIRED:"EXPIRED"},t.Prisma.ModelName={User:"User",Session:"Session",FamilyMember:"FamilyMember",Asset:"Asset",Liability:"Liability",Bequest:"Bequest",InheritanceCalculation:"InheritanceCalculation",CalculationShare:"CalculationShare",DocumentPack:"DocumentPack",VaultItem:"VaultItem",EmergencyAccess:"EmergencyAccess",EdgeCase:"EdgeCase",Professional:"Professional",ProfessionalReview:"ProfessionalReview",ServiceRequest:"ServiceRequest",Subscription:"Subscription",LifeEvent:"LifeEvent",AuditLog:"AuditLog",OrisInteraction:"OrisInteraction",ConsentLog:"ConsentLog",ZakatCalculation:"ZakatCalculation",ZakatNGO:"ZakatNGO",DocumentIdentifier:"DocumentIdentifier",Witness:"Witness",WitnessAttestation:"WitnessAttestation",Signature:"Signature",ExecutorAppointment:"ExecutorAppointment",IdentityVerification:"IdentityVerification",SigningSession:"SigningSession",SigningEvent:"SigningEvent",VideoMessage:"VideoMessage",VideoRecipient:"VideoRecipient",BeneficiaryPortalAccess:"BeneficiaryPortalAccess",SystemSetting:"SystemSetting"};class c{constructor(){return new Proxy(this,{get(e,t){let i=a();throw Error((i.isEdge?`PrismaClient is not configured to run in ${i.prettyName}. In order to run Prisma Client on edge runtime, either:
- Use Prisma Accelerate: https://pris.ly/d/accelerate
- Use Driver Adapters: https://pris.ly/d/driver-adapters
`:"PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `"+i.prettyName+"`).")+`
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`)}})}}t.PrismaClient=c,Object.assign(t,d)},93340:function(e,t,i){let n=i(81e3);e.exports=n},31329:function(e){"use strict";var t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,s=(e,i)=>{for(var n in i)t(e,n,{get:i[n],enumerable:!0})},o={};s(o,{Decimal:()=>e0,Public:()=>a,getRuntime:()=>S,makeStrictEnum:()=>N,objectEnumValues:()=>A}),e.exports=((e,s,o,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let u of n(s))r.call(e,u)||u===o||t(e,u,{get:()=>s[u],enumerable:!(a=i(s,u))||a.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a={};function u(...e){return e=>e}s(a,{validator:()=>u});var d=Symbol(),c=new WeakMap,l=class{constructor(e){e===d?c.set(this,"Prisma.".concat(this._getName())):c.set(this,"new Prisma.".concat(this._getNamespace(),".").concat(this._getName(),"()"))}_getName(){return this.constructor.name}toString(){return c.get(this)}},E=class extends l{_getNamespace(){return"NullTypes"}},h=class extends E{};f(h,"DbNull");var p=class extends E{};f(p,"JsonNull");var m=class extends E{};f(m,"AnyNull");var A={classes:{DbNull:h,JsonNull:p,AnyNull:m},instances:{DbNull:new h(d),JsonNull:new p(d),AnyNull:new m(d)}};function f(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}var g=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function N(e){return new Proxy(e,{get(e,t){if(t in e)return e[t];if(!g.has(t))throw TypeError("Invalid enum value: ".concat(String(t)))}})}var I={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function S(){var e,t,i;let n="object"==typeof Netlify?"netlify":"string"==typeof EdgeRuntime?"edge-light":(null==(e=globalThis.navigator)?void 0:e.userAgent)==="Cloudflare-Workers"?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":(null==(i=null==(t=globalThis.process)?void 0:t.release)?void 0:i.name)==="node"?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown";return{id:n,prettyName:I[n]||n,isEdge:["workerd","deno","netlify","edge-light"].includes(n)}}var T,R,D="0123456789abcdef",y="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",P="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",w={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},v=!0,b="[DecimalError] ",O=b+"Invalid argument: ",L=b+"Precision limit exceeded",C=b+"crypto unavailable",_="[object Decimal]",M=Math.floor,U=Math.pow,F=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,x=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,V=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,H=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,k=y.length-1,G=P.length-1,B={toStringTag:_};function q(e){var t,i,n,r=e.length-1,s="",o=e[0];if(r>0){for(s+=o,t=1;t<r;t++)(i=7-(n=e[t]+"").length)&&(s+=ee(i)),s+=n;(i=7-(n=(o=e[t])+"").length)&&(s+=ee(i))}else if(0===o)return"0";for(;o%10==0;)o/=10;return s+o}function $(e,t,i){if(e!==~~e||e<t||e>i)throw Error(O+e)}function W(e,t,i,n){var r,s,o,a;for(s=e[0];s>=10;s/=10)--t;return--t<0?(t+=7,r=0):(r=Math.ceil((t+1)/7),t%=7),s=U(10,7-t),a=e[r]%s|0,null==n?t<3?(0==t?a=a/100|0:1==t&&(a=a/10|0),o=i<4&&99999==a||i>3&&49999==a||5e4==a||0==a):o=(i<4&&a+1==s||i>3&&a+1==s/2)&&(e[r+1]/s/100|0)==U(10,t-2)-1||(a==s/2||0==a)&&(e[r+1]/s/100|0)==0:t<4?(0==t?a=a/1e3|0:1==t?a=a/100|0:2==t&&(a=a/10|0),o=(n||i<4)&&9999==a||!n&&i>3&&4999==a):o=((n||i<4)&&a+1==s||!n&&i>3&&a+1==s/2)&&(e[r+1]/s/1e3|0)==U(10,t-3)-1,o}function j(e,t,i){for(var n,r,s=[0],o=0,a=e.length;o<a;){for(r=s.length;r--;)s[r]*=t;for(s[0]+=D.indexOf(e.charAt(o++)),n=0;n<s.length;n++)s[n]>i-1&&(void 0===s[n+1]&&(s[n+1]=0),s[n+1]+=s[n]/i|0,s[n]%=i)}return s.reverse()}B.absoluteValue=B.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Z(e)},B.ceil=function(){return Z(new this.constructor(this),this.e+1,2)},B.clampedTo=B.clamp=function(e,t){var i=this.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(O+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new i(this)},B.comparedTo=B.cmp=function(e){var t,i,n,r,s=this.d,o=(e=new this.constructor(e)).d,a=this.s,u=e.s;if(!s||!o)return a&&u?a!==u?a:s===o?0:!s^a<0?1:-1:NaN;if(!s[0]||!o[0])return s[0]?a:o[0]?-u:0;if(a!==u)return a;if(this.e!==e.e)return this.e>e.e^a<0?1:-1;for(n=s.length,r=o.length,t=0,i=n<r?n:r;t<i;++t)if(s[t]!==o[t])return s[t]>o[t]^a<0?1:-1;return n===r?0:n>r^a<0?1:-1},B.cosine=B.cos=function(){var e,t,i=this,n=i.constructor;return i.d?i.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(i.e,i.sd())+7,n.rounding=1,i=function(e,t){var i,n,r;if(t.isZero())return t;(n=t.d.length)<32?r=(1/ed(4,i=Math.ceil(n/3))).toString():(i=16,r="2.3283064365386962890625e-10"),e.precision+=i,t=eu(e,1,t.times(r),new e(1));for(var s=i;s--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=i,t}(n,ec(n,i)),n.precision=e,n.rounding=t,Z(2==R||3==R?i.neg():i,e,t,!0)):new n(1):new n(NaN)},B.cubeRoot=B.cbrt=function(){var e,t,i,n,r,s,o,a,u,d,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(v=!1,(s=this.s*U(this.s*this,1/3))&&Math.abs(s)!=1/0?n=new c(s.toString()):(i=q(this.d),(s=((e=this.e)-i.length+1)%3)&&(i+=1==s||-2==s?"0":"00"),s=U(i,1/3),e=M((e+1)/3)-(e%3==(e<0?-1:2)),(n=new c(i=s==1/0?"5e"+e:(i=s.toExponential()).slice(0,i.indexOf("e")+1)+e)).s=this.s),o=(e=c.precision)+3;;)if(n=J((d=(u=(a=n).times(a).times(a)).plus(this)).plus(this).times(a),d.plus(u),o+2,1),q(a.d).slice(0,o)===(i=q(n.d)).slice(0,o)){if("9999"!=(i=i.slice(o-3,o+1))&&(r||"4999"!=i)){+i&&(+i.slice(1)||"5"!=i.charAt(0))||(Z(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!r&&(Z(a,e+1,0),a.times(a).times(a).eq(this))){n=a;break}o+=4,r=1}return v=!0,Z(n,e,c.rounding,t)},B.decimalPlaces=B.dp=function(){var e,t=this.d,i=NaN;if(t){if(i=((e=t.length-1)-M(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)i--;i<0&&(i=0)}return i},B.dividedBy=B.div=function(e){return J(this,new this.constructor(e))},B.dividedToIntegerBy=B.divToInt=function(e){var t=this.constructor;return Z(J(this,new t(e),0,1,1),t.precision,t.rounding)},B.equals=B.eq=function(e){return 0===this.cmp(e)},B.floor=function(){return Z(new this.constructor(this),this.e+1,3)},B.greaterThan=B.gt=function(e){return this.cmp(e)>0},B.greaterThanOrEqualTo=B.gte=function(e){var t=this.cmp(e);return 1==t||0===t},B.hyperbolicCosine=B.cosh=function(){var e,t,i,n,r,s=this,o=s.constructor,a=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return a;i=o.precision,n=o.rounding,o.precision=i+Math.max(s.e,s.sd())+4,o.rounding=1,(r=s.d.length)<32?t=(1/ed(4,e=Math.ceil(r/3))).toString():(e=16,t="2.3283064365386962890625e-10"),s=eu(o,1,s.times(t),new o(1),!0);for(var u,d=e,c=new o(8);d--;)u=s.times(s),s=a.minus(u.times(c.minus(u.times(c))));return Z(s,o.precision=i,o.rounding=n,!0)},B.hyperbolicSine=B.sinh=function(){var e,t,i,n,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(t=s.precision,i=s.rounding,s.precision=t+Math.max(r.e,r.sd())+4,s.rounding=1,(n=r.d.length)<3)r=eu(s,2,r,r,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,r=eu(s,2,r=r.times(1/ed(5,e)),r,!0);for(var o,a=new s(5),u=new s(16),d=new s(20);e--;)o=r.times(r),r=r.times(a.plus(o.times(u.times(o).plus(d))))}return s.precision=t,s.rounding=i,Z(r,t,i,!0)},B.hyperbolicTangent=B.tanh=function(){var e,t,i=this.constructor;return this.isFinite()?this.isZero()?new i(this):(e=i.precision,t=i.rounding,i.precision=e+7,i.rounding=1,J(this.sinh(),this.cosh(),i.precision=e,i.rounding=t)):new i(this.s)},B.inverseCosine=B.acos=function(){var e,t=this,i=t.constructor,n=t.abs().cmp(1),r=i.precision,s=i.rounding;return -1!==n?0===n?t.isNeg()?X(i,r,s):new i(0):new i(NaN):t.isZero()?X(i,r+4,s).times(.5):(i.precision=r+6,i.rounding=1,t=t.asin(),e=X(i,r+4,s).times(.5),i.precision=r,i.rounding=s,e.minus(t))},B.inverseHyperbolicCosine=B.acosh=function(){var e,t,i=this,n=i.constructor;return i.lte(1)?new n(i.eq(1)?0:NaN):i.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(i.e),i.sd())+4,n.rounding=1,v=!1,i=i.times(i).minus(1).sqrt().plus(i),v=!0,n.precision=e,n.rounding=t,i.ln()):new n(i)},B.inverseHyperbolicSine=B.asinh=function(){var e,t,i=this,n=i.constructor;return!i.isFinite()||i.isZero()?new n(i):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(i.e),i.sd())+6,n.rounding=1,v=!1,i=i.times(i).plus(1).sqrt().plus(i),v=!0,n.precision=e,n.rounding=t,i.ln())},B.inverseHyperbolicTangent=B.atanh=function(){var e,t,i,n,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=s.precision,t=s.rounding,Math.max(n=r.sd(),e)<-(2*r.e)-1?Z(new s(r),e,t,!0):(s.precision=i=n-r.e,r=J(r.plus(1),new s(1).minus(r),i+e,1),s.precision=e+4,s.rounding=1,r=r.ln(),s.precision=e,s.rounding=t,r.times(.5))):new s(NaN)},B.inverseSine=B.asin=function(){var e,t,i,n,r=this,s=r.constructor;return r.isZero()?new s(r):(t=r.abs().cmp(1),i=s.precision,n=s.rounding,-1!==t?0===t?((e=X(s,i+4,n).times(.5)).s=r.s,e):new s(NaN):(s.precision=i+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=i,s.rounding=n,r.times(2)))},B.inverseTangent=B.atan=function(){var e,t,i,n,r,s,o,a,u,d=this,c=d.constructor,l=c.precision,E=c.rounding;if(d.isFinite()){if(d.isZero())return new c(d);if(d.abs().eq(1)&&l+4<=G)return(o=X(c,l+4,E).times(.25)).s=d.s,o}else{if(!d.s)return new c(NaN);if(l+4<=G)return(o=X(c,l+4,E).times(.5)).s=d.s,o}for(c.precision=a=l+10,c.rounding=1,e=i=Math.min(28,a/7+2|0);e;--e)d=d.div(d.times(d).plus(1).sqrt().plus(1));for(v=!1,t=Math.ceil(a/7),n=1,u=d.times(d),o=new c(d),r=d;-1!==e;)if(r=r.times(u),s=o.minus(r.div(n+=2)),r=r.times(u),void 0!==(o=s.plus(r.div(n+=2))).d[t])for(e=t;o.d[e]===s.d[e]&&e--;);return i&&(o=o.times(2<<i-1)),v=!0,Z(o,c.precision=l,c.rounding=E,!0)},B.isFinite=function(){return!!this.d},B.isInteger=B.isInt=function(){return!!this.d&&M(this.e/7)>this.d.length-2},B.isNaN=function(){return!this.s},B.isNegative=B.isNeg=function(){return this.s<0},B.isPositive=B.isPos=function(){return this.s>0},B.isZero=function(){return!!this.d&&0===this.d[0]},B.lessThan=B.lt=function(e){return 0>this.cmp(e)},B.lessThanOrEqualTo=B.lte=function(e){return 1>this.cmp(e)},B.logarithm=B.log=function(e){var t,i,n,r,s,o,a,u=this.constructor,d=u.precision,c=u.rounding;if(null==e)e=new u(10),t=!0;else{if(i=(e=new u(e)).d,e.s<0||!i||!i[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(i=this.d,this.s<0||!i||!i[0]||this.eq(1))return new u(i&&!i[0]?-1/0:1!=this.s?NaN:i?0:1/0);if(t){if(i.length>1)r=!0;else{for(n=i[0];n%10==0;)n/=10;r=1!==n}}if(v=!1,W((a=J(es(this,o=d+5),t?z(u,o+10):es(e,o),o,1)).d,n=d,c))do if(o+=10,a=J(es(this,o),t?z(u,o+10):es(e,o),o,1),!r){+q(a.d).slice(n+1,n+15)+1==1e14&&(a=Z(a,d+1,0));break}while(W(a.d,n+=10,c));return v=!0,Z(a,d,c)},B.minus=B.sub=function(e){var t,i,n,r,s,o,a,u,d,c,l,E,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new h(e.d||this.s!==e.s?this:NaN):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(d=this.d,E=e.d,a=h.precision,u=h.rounding,!d[0]||!E[0]){if(E[0])e.s=-e.s;else{if(!d[0])return new h(3===u?-0:0);e=new h(this)}return v?Z(e,a,u):e}if(i=M(e.e/7),c=M(this.e/7),d=d.slice(),s=c-i){for((l=s<0)?(t=d,s=-s,o=E.length):(t=E,i=c,o=d.length),s>(n=Math.max(Math.ceil(a/7),o)+2)&&(s=n,t.length=1),t.reverse(),n=s;n--;)t.push(0);t.reverse()}else{for((l=(n=d.length)<(o=E.length))&&(o=n),n=0;n<o;n++)if(d[n]!=E[n]){l=d[n]<E[n];break}s=0}for(l&&(t=d,d=E,E=t,e.s=-e.s),o=d.length,n=E.length-o;n>0;--n)d[o++]=0;for(n=E.length;n>s;){if(d[--n]<E[n]){for(r=n;r&&0===d[--r];)d[r]=1e7-1;--d[r],d[n]+=1e7}d[n]-=E[n]}for(;0===d[--o];)d.pop();for(;0===d[0];d.shift())--i;return d[0]?(e.d=d,e.e=Y(d,i),v?Z(e,a,u):e):new h(3===u?-0:0)},B.modulo=B.mod=function(e){var t,i=this.constructor;return e=new i(e),this.d&&e.s&&(!e.d||e.d[0])?e.d&&(!this.d||this.d[0])?(v=!1,9==i.modulo?(t=J(this,e.abs(),0,3,1),t.s*=e.s):t=J(this,e,0,i.modulo,1),t=t.times(e),v=!0,this.minus(t)):Z(new i(this),i.precision,i.rounding):new i(NaN)},B.naturalExponential=B.exp=function(){return er(this)},B.naturalLogarithm=B.ln=function(){return es(this)},B.negated=B.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Z(e)},B.plus=B.add=function(e){var t,i,n,r,s,o,a,u,d,c,l=this.constructor;if(e=new l(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new l(e.d||this.s===e.s?this:NaN)):e=new l(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(d=this.d,c=e.d,a=l.precision,u=l.rounding,!d[0]||!c[0])return c[0]||(e=new l(this)),v?Z(e,a,u):e;if(s=M(this.e/7),n=M(e.e/7),d=d.slice(),r=s-n){for(r<0?(i=d,r=-r,o=c.length):(i=c,n=s,o=d.length),r>(o=(s=Math.ceil(a/7))>o?s+1:o+1)&&(r=o,i.length=1),i.reverse();r--;)i.push(0);i.reverse()}for((o=d.length)-(r=c.length)<0&&(r=o,i=c,c=d,d=i),t=0;r;)t=(d[--r]=d[r]+c[r]+t)/1e7|0,d[r]%=1e7;for(t&&(d.unshift(t),++n),o=d.length;0==d[--o];)d.pop();return e.d=d,e.e=Y(d,n),v?Z(e,a,u):e},B.precision=B.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(O+e);return this.d?(t=Q(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},B.round=function(){var e=this.constructor;return Z(new e(this),this.e+1,e.rounding)},B.sine=B.sin=function(){var e,t,i=this,n=i.constructor;return i.isFinite()?i.isZero()?new n(i):(e=n.precision,t=n.rounding,n.precision=e+Math.max(i.e,i.sd())+7,n.rounding=1,i=function(e,t){var i,n=t.d.length;if(n<3)return t.isZero()?t:eu(e,2,t,t);i=(i=1.4*Math.sqrt(n))>16?16:0|i,t=eu(e,2,t=t.times(1/ed(5,i)),t);for(var r,s=new e(5),o=new e(16),a=new e(20);i--;)r=t.times(t),t=t.times(s.plus(r.times(o.times(r).minus(a))));return t}(n,ec(n,i)),n.precision=e,n.rounding=t,Z(R>2?i.neg():i,e,t,!0)):new n(NaN)},B.squareRoot=B.sqrt=function(){var e,t,i,n,r,s,o=this.d,a=this.e,u=this.s,d=this.constructor;if(1!==u||!o||!o[0])return new d(!u||u<0&&(!o||o[0])?NaN:o?this:1/0);for(v=!1,0==(u=Math.sqrt(+this))||u==1/0?(((t=q(o)).length+a)%2==0&&(t+="0"),u=Math.sqrt(t),a=M((a+1)/2)-(a<0||a%2),n=new d(t=u==1/0?"5e"+a:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+a)):n=new d(u.toString()),i=(a=d.precision)+3;;)if(n=(s=n).plus(J(this,s,i+2,1)).times(.5),q(s.d).slice(0,i)===(t=q(n.d)).slice(0,i)){if("9999"!=(t=t.slice(i-3,i+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Z(n,a+1,1),e=!n.times(n).eq(this));break}if(!r&&(Z(s,a+1,0),s.times(s).eq(this))){n=s;break}i+=4,r=1}return v=!0,Z(n,a,d.rounding,e)},B.tangent=B.tan=function(){var e,t,i=this,n=i.constructor;return i.isFinite()?i.isZero()?new n(i):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(i=i.sin()).s=1,i=J(i,new n(1).minus(i.times(i)).sqrt(),e+10,0),n.precision=e,n.rounding=t,Z(2==R||4==R?i.neg():i,e,t,!0)):new n(NaN)},B.times=B.mul=function(e){var t,i,n,r,s,o,a,u,d,c=this.constructor,l=this.d,E=(e=new c(e)).d;if(e.s*=this.s,!l||!l[0]||!E||!E[0])return new c(e.s&&(!l||l[0]||E)&&(!E||E[0]||l)?l&&E?0*e.s:e.s/0:NaN);for(i=M(this.e/7)+M(e.e/7),(u=l.length)<(d=E.length)&&(s=l,l=E,E=s,o=u,u=d,d=o),s=[],n=o=u+d;n--;)s.push(0);for(n=d;--n>=0;){for(t=0,r=u+n;r>n;)a=s[r]+E[n]*l[r-n-1]+t,s[r--]=a%1e7|0,t=a/1e7|0;s[r]=(s[r]+t)%1e7|0}for(;!s[--o];)s.pop();return t?++i:s.shift(),e.d=s,e.e=Y(s,i),v?Z(e,c.precision,c.rounding):e},B.toBinary=function(e,t){return el(this,2,e,t)},B.toDecimalPlaces=B.toDP=function(e,t){var i=this,n=i.constructor;return i=new n(i),void 0===e?i:($(e,0,1e9),void 0===t?t=n.rounding:$(t,0,8),Z(i,e+i.e+1,t))},B.toExponential=function(e,t){var i,n=this,r=n.constructor;return void 0===e?i=K(n,!0):($(e,0,1e9),void 0===t?t=r.rounding:$(t,0,8),i=K(n=Z(new r(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+i:i},B.toFixed=function(e,t){var i,n,r=this.constructor;return void 0===e?i=K(this):($(e,0,1e9),void 0===t?t=r.rounding:$(t,0,8),i=K(n=Z(new r(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+i:i},B.toFraction=function(e){var t,i,n,r,s,o,a,u,d,c,l,E,h=this.d,p=this.constructor;if(!h)return new p(this);if(d=i=new p(1),n=u=new p(0),o=(s=(t=new p(n)).e=Q(h)-this.e-1)%7,t.d[0]=U(10,o<0?7+o:o),null==e)e=s>0?t:d;else{if(!(a=new p(e)).isInt()||a.lt(d))throw Error(O+a);e=a.gt(t)?s>0?t:d:a}for(v=!1,a=new p(q(h)),c=p.precision,p.precision=s=14*h.length;l=J(a,t,0,1,1),1!=(r=i.plus(l.times(n))).cmp(e);)i=n,n=r,r=d,d=u.plus(l.times(r)),u=r,r=t,t=a.minus(l.times(r)),a=r;return r=J(e.minus(i),n,0,1,1),u=u.plus(r.times(d)),i=i.plus(r.times(n)),u.s=d.s=this.s,E=1>J(d,n,s,1).minus(this).abs().cmp(J(u,i,s,1).minus(this).abs())?[d,n]:[u,i],p.precision=c,v=!0,E},B.toHexadecimal=B.toHex=function(e,t){return el(this,16,e,t)},B.toNearest=function(e,t){var i=this,n=i.constructor;if(i=new n(i),null==e){if(!i.d)return i;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:$(t,0,8),!i.d)return e.s?i:e;if(!e.d)return e.s&&(e.s=i.s),e}return e.d[0]?(v=!1,i=J(i,e,0,t,1).times(e),v=!0,Z(i)):(e.s=i.s,i=e),i},B.toNumber=function(){return+this},B.toOctal=function(e,t){return el(this,8,e,t)},B.toPower=B.pow=function(e){var t,i,n,r,s,o,a=this,u=a.constructor,d=+(e=new u(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new u(U(+a,d));if((a=new u(a)).eq(1))return a;if(n=u.precision,s=u.rounding,e.eq(1))return Z(a,n,s);if((t=M(e.e/7))>=e.d.length-1&&(i=d<0?-d:d)<=9007199254740991)return r=et(u,a,i,n),e.s<0?new u(1).div(r):Z(r,n,s);if((o=a.s)<0){if(t<e.d.length-1)return new u(NaN);if(1&e.d[t]||(o=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=o,a}return(t=0!=(i=U(+a,d))&&isFinite(i)?new u(i+"").e:M(d*(Math.log("0."+q(a.d))/Math.LN10+a.e+1)))>u.maxE+1||t<u.minE-1?new u(t>0?o/0:0):(v=!1,u.rounding=a.s=1,i=Math.min(12,(t+"").length),(r=er(e.times(es(a,n+i)),n)).d&&W((r=Z(r,n+5,1)).d,n,s)&&(t=n+10,+q((r=Z(er(e.times(es(a,t+i)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(r=Z(r,n+1,0))),r.s=o,v=!0,u.rounding=s,Z(r,n,s))},B.toPrecision=function(e,t){var i,n=this,r=n.constructor;return void 0===e?i=K(n,n.e<=r.toExpNeg||n.e>=r.toExpPos):($(e,1,1e9),void 0===t?t=r.rounding:$(t,0,8),i=K(n=Z(new r(n),e,t),e<=n.e||n.e<=r.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+i:i},B.toSignificantDigits=B.toSD=function(e,t){var i=this.constructor;return void 0===e?(e=i.precision,t=i.rounding):($(e,1,1e9),void 0===t?t=i.rounding:$(t,0,8)),Z(new i(this),e,t)},B.toString=function(){var e=this.constructor,t=K(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},B.truncated=B.trunc=function(){return Z(new this.constructor(this),this.e+1,1)},B.valueOf=B.toJSON=function(){var e=this.constructor,t=K(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var J=function(){function e(e,t,i){var n,r=0,s=e.length;for(e=e.slice();s--;)n=e[s]*t+r,e[s]=n%i|0,r=n/i|0;return r&&e.unshift(r),e}function t(e,t,i,n){var r,s;if(i!=n)s=i>n?1:-1;else for(r=s=0;r<i;r++)if(e[r]!=t[r]){s=e[r]>t[r]?1:-1;break}return s}function i(e,t,i,n){for(var r=0;i--;)e[i]-=r,r=e[i]<t[i]?1:0,e[i]=r*n+e[i]-t[i];for(;!e[0]&&e.length>1;)e.shift()}return function(n,r,s,o,a,u){var d,c,l,E,h,p,m,A,f,g,N,I,S,R,D,y,P,w,v,b,O=n.constructor,L=n.s==r.s?1:-1,C=n.d,_=r.d;if(!C||!C[0]||!_||!_[0])return new O(n.s&&r.s&&(C?!_||C[0]!=_[0]:_)?C&&0==C[0]||!_?0*L:L/0:NaN);for(u?(h=1,c=n.e-r.e):(u=1e7,h=7,c=M(n.e/h)-M(r.e/h)),v=_.length,P=C.length,g=(f=new O(L)).d=[],l=0;_[l]==(C[l]||0);l++);if(_[l]>(C[l]||0)&&c--,null==s?(R=s=O.precision,o=O.rounding):R=a?s+(n.e-r.e)+1:s,R<0)g.push(1),p=!0;else{if(R=R/h+2|0,l=0,1==v){for(E=0,_=_[0],R++;(l<P||E)&&R--;l++)D=E*u+(C[l]||0),g[l]=D/_|0,E=D%_|0;p=E||l<P}else{for((E=u/(_[0]+1)|0)>1&&(_=e(_,E,u),C=e(C,E,u),v=_.length,P=C.length),y=v,I=(N=C.slice(0,v)).length;I<v;)N[I++]=0;(b=_.slice()).unshift(0),w=_[0],_[1]>=u/2&&++w;do E=0,(d=t(_,N,v,I))<0?(S=N[0],v!=I&&(S=S*u+(N[1]||0)),(E=S/w|0)>1?(E>=u&&(E=u-1),A=(m=e(_,E,u)).length,I=N.length,1==(d=t(m,N,A,I))&&(E--,i(m,v<A?b:_,A,u))):(0==E&&(d=E=1),m=_.slice()),(A=m.length)<I&&m.unshift(0),i(N,m,I,u),-1==d&&(I=N.length,(d=t(_,N,v,I))<1&&(E++,i(N,v<I?b:_,I,u))),I=N.length):0===d&&(E++,N=[0]),g[l++]=E,d&&N[0]?N[I++]=C[y]||0:(N=[C[y]],I=1);while((y++<P||void 0!==N[0])&&R--);p=void 0!==N[0]}g[0]||g.shift()}if(1==h)f.e=c,T=p;else{for(l=1,E=g[0];E>=10;E/=10)l++;f.e=l+c*h-1,Z(f,a?s+f.e+1:s,o,p)}return f}}();function Z(e,t,i,n){var r,s,o,a,u,d,c,l,E,h=e.constructor;e:if(null!=t){if(!(l=e.d))return e;for(r=1,a=l[0];a>=10;a/=10)r++;if((s=t-r)<0)s+=7,o=t,u=(c=l[E=0])/U(10,r-o-1)%10|0;else if((E=Math.ceil((s+1)/7))>=(a=l.length)){if(n){for(;a++<=E;)l.push(0);c=u=0,r=1,s%=7,o=s-7+1}else break e}else{for(c=a=l[E],r=1;a>=10;a/=10)r++;s%=7,u=(o=s-7+r)<0?0:c/U(10,r-o-1)%10|0}if(n=n||t<0||void 0!==l[E+1]||(o<0?c:c%U(10,r-o-1)),d=i<4?(u||n)&&(0==i||i==(e.s<0?3:2)):u>5||5==u&&(4==i||n||6==i&&(s>0?o>0?c/U(10,r-o):0:l[E-1])%10&1||i==(e.s<0?8:7)),t<1||!l[0])return l.length=0,d?(t-=e.e+1,l[0]=U(10,(7-t%7)%7),e.e=-t||0):l[0]=e.e=0,e;if(0==s?(l.length=E,a=1,E--):(l.length=E+1,a=U(10,7-s),l[E]=o>0?(c/U(10,r-o)%U(10,o)|0)*a:0),d)for(;;)if(0==E){for(s=1,o=l[0];o>=10;o/=10)s++;for(o=l[0]+=a,a=1;o>=10;o/=10)a++;s!=a&&(e.e++,1e7==l[0]&&(l[0]=1));break}else{if(l[E]+=a,1e7!=l[E])break;l[E--]=0,a=1}for(s=l.length;0===l[--s];)l.pop()}return v&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function K(e,t,i){if(!e.isFinite())return eo(e);var n,r=e.e,s=q(e.d),o=s.length;return t?(i&&(n=i-o)>0?s=s.charAt(0)+"."+s.slice(1)+ee(n):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):r<0?(s="0."+ee(-r-1)+s,i&&(n=i-o)>0&&(s+=ee(n))):r>=o?(s+=ee(r+1-o),i&&(n=i-r-1)>0&&(s=s+"."+ee(n))):((n=r+1)<o&&(s=s.slice(0,n)+"."+s.slice(n)),i&&(n=i-o)>0&&(r+1===o&&(s+="."),s+=ee(n))),s}function Y(e,t){var i=e[0];for(t*=7;i>=10;i/=10)t++;return t}function z(e,t,i){if(t>k)throw v=!0,i&&(e.precision=i),Error(L);return Z(new e(y),t,1,!0)}function X(e,t,i){if(t>G)throw Error(L);return Z(new e(P),t,i,!0)}function Q(e){var t=e.length-1,i=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)i--;for(t=e[0];t>=10;t/=10)i++}return i}function ee(e){for(var t="";e--;)t+="0";return t}function et(e,t,i,n){var r,s=new e(1),o=Math.ceil(n/7+4);for(v=!1;;){if(i%2&&eE((s=s.times(t)).d,o)&&(r=!0),0===(i=M(i/2))){i=s.d.length-1,r&&0===s.d[i]&&++s.d[i];break}eE((t=t.times(t)).d,o)}return v=!0,s}function ei(e){return 1&e.d[e.d.length-1]}function en(e,t,i){for(var n,r=new e(t[0]),s=0;++s<t.length;)if((n=new e(t[s])).s)r[i](n)&&(r=n);else{r=n;break}return r}function er(e,t){var i,n,r,s,o,a,u,d=0,c=0,l=0,E=e.constructor,h=E.rounding,p=E.precision;if(!e.d||!e.d[0]||e.e>17)return new E(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(v=!1,u=p):u=t,a=new E(.03125);e.e>-2;)e=e.times(a),l+=5;for(u+=n=Math.log(U(2,l))/Math.LN10*2+5|0,i=s=o=new E(1),E.precision=u;;){if(s=Z(s.times(e),u,1),i=i.times(++c),q((a=o.plus(J(s,i,u,1))).d).slice(0,u)===q(o.d).slice(0,u)){for(r=l;r--;)o=Z(o.times(o),u,1);if(null!=t)return E.precision=p,o;if(!(d<3&&W(o.d,u-n,h,d)))return Z(o,E.precision=p,h,v=!0);E.precision=u+=10,i=s=a=new E(1),c=0,d++}o=a}}function es(e,t){var i,n,r,s,o,a,u,d,c,l,E,h=1,p=e,m=p.d,A=p.constructor,f=A.rounding,g=A.precision;if(p.s<0||!m||!m[0]||!p.e&&1==m[0]&&1==m.length)return new A(m&&!m[0]?-1/0:1!=p.s?NaN:m?0:p);if(null==t?(v=!1,c=g):c=t,A.precision=c+=10,n=(i=q(m)).charAt(0),!(15e14>Math.abs(s=p.e)))return d=z(A,c+2,g).times(s+""),p=es(new A(n+"."+i.slice(1)),c-10).plus(d),A.precision=g,null==t?Z(p,g,f,v=!0):p;for(;n<7&&1!=n||1==n&&i.charAt(1)>3;)n=(i=q((p=p.times(e)).d)).charAt(0),h++;for(s=p.e,n>1?(p=new A("0."+i),s++):p=new A(n+"."+i.slice(1)),l=p,u=o=p=J(p.minus(1),p.plus(1),c,1),E=Z(p.times(p),c,1),r=3;;){if(o=Z(o.times(E),c,1),q((d=u.plus(J(o,new A(r),c,1))).d).slice(0,c)===q(u.d).slice(0,c)){if(u=u.times(2),0!==s&&(u=u.plus(z(A,c+2,g).times(s+""))),u=J(u,new A(h),c,1),null!=t)return A.precision=g,u;if(!W(u.d,c-10,f,a))return Z(u,A.precision=g,f,v=!0);A.precision=c+=10,d=o=p=J(l.minus(1),l.plus(1),c,1),E=Z(p.times(p),c,1),r=a=1}u=d,r+=2}}function eo(e){return String(e.s*e.s/0)}function ea(e,t){var i,n,r;for((i=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(i<0&&(i=n),i+=+t.slice(n+1),t=t.substring(0,n)):i<0&&(i=t.length),n=0;48===t.charCodeAt(n);n++);for(r=t.length;48===t.charCodeAt(r-1);--r);if(t=t.slice(n,r)){if(r-=n,e.e=i=i-n-1,e.d=[],n=(i+1)%7,i<0&&(n+=7),n<r){for(n&&e.d.push(+t.slice(0,n)),r-=7;n<r;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=r;for(;n--;)t+="0";e.d.push(+t),v&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function eu(e,t,i,n,r){var s,o,a,u,d=e.precision,c=Math.ceil(d/7);for(v=!1,u=i.times(i),a=new e(n);;){if(o=J(a.times(u),new e(t++*t++),d,1),a=r?n.plus(o):n.minus(o),n=J(o.times(u),new e(t++*t++),d,1),void 0!==(o=a.plus(n)).d[c]){for(s=c;o.d[s]===a.d[s]&&s--;);if(-1==s)break}s=a,a=n,n=o,o=s}return v=!0,o.d.length=c+1,o}function ed(e,t){for(var i=e;--t;)i*=e;return i}function ec(e,t){var i,n=t.s<0,r=X(e,e.precision,1),s=r.times(.5);if((t=t.abs()).lte(s))return R=n?4:1,t;if((i=t.divToInt(r)).isZero())R=n?3:2;else{if((t=t.minus(i.times(r))).lte(s))return R=ei(i)?n?2:3:n?4:1,t;R=ei(i)?n?1:4:n?3:2}return t.minus(r).abs()}function el(e,t,i,n){var r,s,o,a,u,d,c,l,E,h=e.constructor,p=void 0!==i;if(p?($(i,1,1e9),void 0===n?n=h.rounding:$(n,0,8)):(i=h.precision,n=h.rounding),e.isFinite()){for(o=(c=K(e)).indexOf("."),p?(r=2,16==t?i=4*i-3:8==t&&(i=3*i-2)):r=t,o>=0&&(c=c.replace(".",""),(E=new h(1)).e=c.length-o,E.d=j(K(E),10,r),E.e=E.d.length),s=u=(l=j(c,10,r)).length;0==l[--u];)l.pop();if(l[0]){if(o<0?s--:((e=new h(e)).d=l,e.e=s,l=(e=J(e,E,i,n,0,r)).d,s=e.e,d=T),o=l[i],a=r/2,d=d||void 0!==l[i+1],d=n<4?(void 0!==o||d)&&(0===n||n===(e.s<0?3:2)):o>a||o===a&&(4===n||d||6===n&&1&l[i-1]||n===(e.s<0?8:7)),l.length=i,d)for(;++l[--i]>r-1;)l[i]=0,i||(++s,l.unshift(1));for(u=l.length;!l[u-1];--u);for(o=0,c="";o<u;o++)c+=D.charAt(l[o]);if(p){if(u>1){if(16==t||8==t){for(o=16==t?4:3,--u;u%o;u++)c+="0";for(u=(l=j(c,r,t)).length;!l[u-1];--u);for(o=1,c="1.";o<u;o++)c+=D.charAt(l[o])}else c=c.charAt(0)+"."+c.slice(1)}c=c+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)c="0"+c;c="0."+c}else if(++s>u)for(s-=u;s--;)c+="0";else s<u&&(c=c.slice(0,s)+"."+c.slice(s))}else c=p?"0p+0":"0";c=(16==t?"0x":2==t?"0b":8==t?"0o":"")+c}else c=eo(e);return e.s<0?"-"+c:c}function eE(e,t){if(e.length>t)return e.length=t,!0}function eh(e){return new this(e).abs()}function ep(e){return new this(e).acos()}function em(e){return new this(e).acosh()}function eA(e,t){return new this(e).plus(t)}function ef(e){return new this(e).asin()}function eg(e){return new this(e).asinh()}function eN(e){return new this(e).atan()}function eI(e){return new this(e).atanh()}function eS(e,t){e=new this(e),t=new this(t);var i,n=this.precision,r=this.rounding,s=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(i=t.s<0?X(this,n,r):new this(0)).s=e.s:!e.d||t.isZero()?(i=X(this,s,1).times(.5)).s=e.s:t.s<0?(this.precision=s,this.rounding=1,i=this.atan(J(e,t,s,1)),t=X(this,s,1),this.precision=n,this.rounding=r,i=e.s<0?i.minus(t):i.plus(t)):i=this.atan(J(e,t,s,1)):(i=X(this,s,1).times(t.s>0?.25:.75)).s=e.s:i=new this(NaN),i}function eT(e){return new this(e).cbrt()}function eR(e){return Z(e=new this(e),e.e+1,2)}function eD(e,t,i){return new this(e).clamp(t,i)}function ey(e){if(!e||"object"!=typeof e)throw Error(b+"Object expected");var t,i,n,r=!0===e.defaults,s=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<s.length;t+=3)if(i=s[t],r&&(this[i]=w[i]),void 0!==(n=e[i])){if(M(n)===n&&n>=s[t+1]&&n<=s[t+2])this[i]=n;else throw Error(O+i+": "+n)}if(i="crypto",r&&(this[i]=w[i]),void 0!==(n=e[i])){if(!0===n||!1===n||0===n||1===n){if(n){if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[i]=!0;else throw Error(C)}else this[i]=!1}else throw Error(O+i+": "+n)}return this}function eP(e){return new this(e).cos()}function ew(e){return new this(e).cosh()}function ev(e,t){return new this(e).div(t)}function eb(e){return new this(e).exp()}function eO(e){return Z(e=new this(e),e.e+1,3)}function eL(){var e,t,i=new this(0);for(v=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)i.d&&(i=i.plus(t.times(t)));else{if(t.s)return v=!0,new this(1/0);i=t}return v=!0,i.sqrt()}function eC(e){return e instanceof eQ||e&&e.toStringTag===_||!1}function e_(e){return new this(e).ln()}function eM(e,t){return new this(e).log(t)}function eU(e){return new this(e).log(2)}function eF(e){return new this(e).log(10)}function ex(){return en(this,arguments,"lt")}function eV(){return en(this,arguments,"gt")}function eH(e,t){return new this(e).mod(t)}function ek(e,t){return new this(e).mul(t)}function eG(e,t){return new this(e).pow(t)}function eB(e){var t,i,n,r,s=0,o=new this(1),a=[];if(void 0===e?e=this.precision:$(e,1,1e9),n=Math.ceil(e/7),this.crypto){if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));s<n;)(r=t[s])>=429e7?t[s]=crypto.getRandomValues(new Uint32Array(1))[0]:a[s++]=r%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);s<n;)(r=t[s]+(t[s+1]<<8)+(t[s+2]<<16)+((127&t[s+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,s):(a.push(r%1e7),s+=4);s=n/4}else throw Error(C)}else for(;s<n;)a[s++]=1e7*Math.random()|0;for(n=a[--s],e%=7,n&&e&&(r=U(10,7-e),a[s]=(n/r|0)*r);0===a[s];s--)a.pop();if(s<0)i=0,a=[0];else{for(i=-1;0===a[0];i-=7)a.shift();for(n=1,r=a[0];r>=10;r/=10)n++;n<7&&(i-=7-n)}return o.e=i,o.d=a,o}function eq(e){return Z(e=new this(e),e.e+1,this.rounding)}function e$(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eW(e){return new this(e).sin()}function ej(e){return new this(e).sinh()}function eJ(e){return new this(e).sqrt()}function eZ(e,t){return new this(e).sub(t)}function eK(){var e=0,t=arguments,i=new this(t[0]);for(v=!1;i.s&&++e<t.length;)i=i.plus(t[e]);return v=!0,Z(i,this.precision,this.rounding)}function eY(e){return new this(e).tan()}function ez(e){return new this(e).tanh()}function eX(e){return Z(e=new this(e),e.e+1,1)}B[Symbol.for("nodejs.util.inspect.custom")]=B.toString,B[Symbol.toStringTag]="Decimal";var eQ=B.constructor=function e(t){var i,n,r;function s(e){var t,i,n;if(!(this instanceof s))return new s(e);if(this.constructor=s,eC(e)){this.s=e.s,v?!e.d||e.e>s.maxE?(this.e=NaN,this.d=null):e.e<s.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(n=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,i=e;i>=10;i/=10)t++;v?t>s.maxE?(this.e=NaN,this.d=null):t<s.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return ea(this,e.toString())}if("string"!==n)throw Error(O+e);return 45===(i=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===i&&(e=e.slice(1)),this.s=1),H.test(e)?ea(this,e):function(e,t){var i,n,r,s,o,a,u,d,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),H.test(t))return ea(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(x.test(t))i=16,t=t.toLowerCase();else if(F.test(t))i=2;else if(V.test(t))i=8;else throw Error(O+t);for((s=t.search(/p/i))>0?(u=+t.slice(s+1),t=t.substring(2,s)):t=t.slice(2),o=(s=t.indexOf("."))>=0,n=e.constructor,o&&(s=(a=(t=t.replace(".","")).length)-s,r=et(n,new n(i),s,2*s)),s=c=(d=j(t,i,1e7)).length-1;0===d[s];--s)d.pop();return s<0?new n(0*e.s):(e.e=Y(d,c),e.d=d,v=!1,o&&(e=J(e,r,4*a)),u&&(e=e.times(54>Math.abs(u)?U(2,u):eQ.pow(2,u))),v=!0,e)}(this,e)}if(s.prototype=B,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=ey,s.clone=e,s.isDecimal=eC,s.abs=eh,s.acos=ep,s.acosh=em,s.add=eA,s.asin=ef,s.asinh=eg,s.atan=eN,s.atanh=eI,s.atan2=eS,s.cbrt=eT,s.ceil=eR,s.clamp=eD,s.cos=eP,s.cosh=ew,s.div=ev,s.exp=eb,s.floor=eO,s.hypot=eL,s.ln=e_,s.log=eM,s.log10=eF,s.log2=eU,s.max=ex,s.min=eV,s.mod=eH,s.mul=ek,s.pow=eG,s.random=eB,s.round=eq,s.sign=e$,s.sin=eW,s.sinh=ej,s.sqrt=eJ,s.sub=eZ,s.sum=eK,s.tan=eY,s.tanh=ez,s.trunc=eX,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<r.length;)t.hasOwnProperty(n=r[i++])||(t[n]=this[n]);return s.config(t),s}(w);y=new eQ(y),P=new eQ(P);var e0=eQ},99376:function(e,t,i){"use strict";var n=i(35475);i.o(n,"useParams")&&i.d(t,{useParams:function(){return n.useParams}}),i.o(n,"usePathname")&&i.d(t,{usePathname:function(){return n.usePathname}}),i.o(n,"useRouter")&&i.d(t,{useRouter:function(){return n.useRouter}}),i.o(n,"useSearchParams")&&i.d(t,{useSearchParams:function(){return n.useSearchParams}})}}]);