dealpos 12.1.8 → 12.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/POS/{1161.d55f93372c024bed.js → 1161.fabdd398ecd97607.js} +1 -1
  2. package/POS/1296.7f604d6c615dfec7.js +1 -0
  3. package/POS/1930.853aa257313ff639.js +1 -0
  4. package/POS/273.aa3430d26aaaaabf.js +1 -0
  5. package/POS/{3194.58a5737151dcfd36.js → 3194.cef9dcb05c3f8254.js} +1 -1
  6. package/POS/{3353.93c10f80a6dad196.js → 3353.45af2d06f549d84c.js} +1 -1
  7. package/POS/3515.98e1071b14b0a1a0.js +1 -0
  8. package/POS/3769.42454fa005576e7f.js +1 -0
  9. package/POS/4750.06edc49cf7e9afba.js +1 -0
  10. package/POS/4934.1d26e31b6b806f79.js +1 -0
  11. package/POS/7298.f1a28ba7ee735d1c.js +1 -0
  12. package/POS/8565.95ce051dcb29df20.js +1 -0
  13. package/POS/8761.2cf23b9d9e0eff9e.js +1 -0
  14. package/POS/9633.dcafa1b5f6a78c5f.js +1 -0
  15. package/POS/9907.3f2affb24c359e75.js +1 -0
  16. package/POS/{common.c18584fe65a193db.js → common.db13bc8707fc8e7a.js} +1 -1
  17. package/POS/index.html +2 -2
  18. package/POS/{main.9c153c7dd26a9f37.js → main.2e8e60f0b10c9cde.js} +1 -1
  19. package/POS/runtime.daa9a211abe42db0.js +1 -0
  20. package/package.json +1 -1
  21. package/POS/1296.2c381f9bfc7d8d6e.js +0 -1
  22. package/POS/1930.9a4efc6c40d00f4c.js +0 -1
  23. package/POS/2558.2072b06c6974226e.js +0 -1
  24. package/POS/273.cdb13b02df528888.js +0 -1
  25. package/POS/3515.84dc3d3c026e6d57.js +0 -1
  26. package/POS/3769.93bd5c528d43ff17.js +0 -1
  27. package/POS/4750.f338bfabe3a9aac6.js +0 -1
  28. package/POS/4934.88dd7e8813eaebea.js +0 -1
  29. package/POS/7298.8ea700b7a62f4c14.js +0 -1
  30. package/POS/8565.0ffdc6a2687e2ea9.js +0 -1
  31. package/POS/8761.ec97e77a87fcc28e.js +0 -1
  32. package/POS/9907.0f88982e3c8a9b61.js +0 -1
  33. package/POS/runtime.a0c210f43959bd15.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1161],{51161:(P,d,l)=>{l.d(d,{N:()=>y});var e=l(81180),m=l(37407),o=l(67327),h=l(94650);let y=(()=>{class u{constructor(){(0,e.Z)(this,"_roles",void 0),(0,e.Z)(this,"_product",void 0),(0,e.Z)(this,"_contact",void 0),(0,e.Z)(this,"_promotion",void 0),(0,e.Z)(this,"_accounting",void 0),(0,e.Z)(this,"_users",void 0),(0,e.Z)(this,"_outlets",void 0),(0,e.Z)(this,"_setup",void 0),(0,e.Z)(this,"_service",void 0),(0,e.Z)(this,"_profile",void 0),(0,e.Z)(this,"_customerDisplay",void 0),(0,e.Z)(this,"_orderDisplay",void 0),(0,e.Z)(this,"_global",void 0),(0,e.Z)(this,"_apps",void 0),(0,e.Z)(this,"_fulfillment",void 0),(0,e.Z)(this,"_manufacture",void 0),(0,e.Z)(this,"_inventory",void 0),(0,e.Z)(this,"_sell",void 0),(0,e.Z)(this,"_report",void 0),(0,e.Z)(this,"_buy",void 0),(0,e.Z)(this,"_adjustment",void 0),(0,e.Z)(this,"_debt",void 0),(0,e.Z)(this,"_payment",void 0),(0,e.Z)(this,"_prepaidPackage",void 0),(0,e.Z)(this,"_order",void 0),(0,e.Z)(this,"_logistic",void 0),(0,e.Z)(this,"_estimate",void 0),(0,e.Z)(this,"_shift",void 0),this.parseJWTRoles()}parseJWTRoles(){const t=localStorage.getItem("Token");if(o.gT.IsNotEmpty(t)){var n=o.gT.parseJwt(t);this._roles=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]}}isInRole(t,n){const r={};return n.forEach((i,a)=>r[t[a]]="string"==typeof i?this._roles.includes(i):i(this._roles)),r}isUserHasRole(t){return this._roles.includes(t)}get product(){return o.gT.IsEmpty(this._product)&&(this._product=this.setBulkRole("product")),this._product}get contact(){return o.gT.IsEmpty(this._contact)&&(this._contact=this.setBulkRole("contact")),this._contact}get promotion(){return o.gT.IsEmpty(this._promotion)&&(this._promotion=this.setBulkRole("promotion")),this._promotion}get accounting(){return o.gT.IsEmpty(this._accounting)&&(this._accounting=this.setBulkRole("accounting")),this._accounting}get users(){return o.gT.IsEmpty(this._users)&&(this._users=this.setBulkRole("users")),this._users}get outlets(){return o.gT.IsEmpty(this._outlets)&&(this._outlets=this.setBulkRole("outlets")),this._outlets}get setup(){return o.gT.IsEmpty(this._setup)&&(this._setup=this.setBulkRole("setup")),this._setup}get service(){return o.gT.IsEmpty(this._service)&&(this._service=this.setBulkRole("service")),this._service}get profile(){return o.gT.IsEmpty(this._profile)&&(this._profile=this.setBulkRole("myProfile")),this._profile}get customerDisplay(){return o.gT.IsEmpty(this._customerDisplay)&&(this._customerDisplay=this.setBulkRole("customerDisplay")),this._customerDisplay}get orderDisplay(){return o.gT.IsEmpty(this._orderDisplay)&&(this._orderDisplay=this.setBulkRole("orderDisplay")),this._orderDisplay}get global(){return o.gT.IsEmpty(this._global)&&(this._global=this.setBulkRole("global")),this._global}get apps(){return o.gT.IsEmpty(this._apps)&&(this._apps=this.setBulkRole("apps")),this._apps}get fulfillment(){return o.gT.IsEmpty(this._fulfillment)&&(this._fulfillment=this.setBulkRole("fulfillment")),this._fulfillment}get manufacture(){return o.gT.IsEmpty(this._manufacture)&&(this._manufacture=this.setBulkRole("manufacture")),this._manufacture}get inventory(){return o.gT.IsEmpty(this._inventory)&&(this._inventory=this.setBulkRole("inventory")),this._inventory}get sell(){return o.gT.IsEmpty(this._sell)&&(this._sell=this.setBulkRole("sell")),this._sell}get report(){return o.gT.IsEmpty(this._report)&&(this._report=this.setBulkRole("report")),this._report}get buy(){return o.gT.IsEmpty(this._buy)&&(this._buy=this.setBulkRole("buy")),this._buy}get adjustment(){return o.gT.IsEmpty(this._adjustment)&&(this._adjustment=this.setBulkRole("adjustment")),this._adjustment}get debt(){return o.gT.IsEmpty(this._debt)&&(this._debt=this.setBulkRole("debt")),this._debt}get payment(){return o.gT.IsEmpty(this._payment)&&(this._payment=this.setBulkRole("payment")),this._payment}get prepaidPackage(){return o.gT.IsEmpty(this._prepaidPackage)&&(this._prepaidPackage=this.setBulkRole("prepaidPackage")),this._prepaidPackage}get order(){return o.gT.IsEmpty(this._order)&&(this._order=this.setBulkRole("orders")),this._order}get logistic(){return o.gT.IsEmpty(this._logistic)&&(this._logistic=this.setBulkRole("logistics")),this._logistic}get estimate(){return o.gT.IsEmpty(this._estimate)&&(this._estimate=this.setBulkRole("estimate")),this._estimate}get shift(){return o.gT.IsEmpty(this._shift)&&(this._shift=this.setBulkRole("shift")),this._shift}setBulkRole(t){const n={};for(const r in m.G[t])n[r]=this.isUserHasRole(m.G[t][r]);return n}get isSystemUser(){const t=localStorage.getItem("Token");return"System"==o.gT.parseJwt(t).Type}resetRoles(){this._roles=[],this._accounting=null,this._adjustment=null,this._apps=null,this._buy=null,this._contact=null,this._customerDisplay=null,this._debt=null,this._fulfillment=null,this._estimate=null,this._global=null,this._inventory=null,this._logistic=null,this._manufacture=null,this._order=null,this._orderDisplay=null,this._outlets=null,this._payment=null,this._product=null,this._prepaidPackage=null,this._profile=null,this._promotion=null,this._report=null,this._sell=null,this._service=null,this._setup=null,this._shift=null,this._users=null}}return(0,e.Z)(u,"\u0275fac",function(t){return new(t||u)}),(0,e.Z)(u,"\u0275prov",h.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"})),u})()},67327:(P,d,l)=>{l.d(d,{FI:()=>o,Wz:()=>u,g7:()=>y,gT:()=>m});var e=l(81180);let m=(()=>{class t{static StringFormat(r,...i){for(let a=0;a<i.length;a++)r=r.replace(`{${a}}`,i[a]);return r}static IsNotEmpty(r){return""!=r&&r!=t.GuidEmpty&&null!=r&&null!=r}static IsEmpty(r){return""==r||null==r||null==r||r==t.GuidEmpty}static FilterByID(r,i){try{const a=r.filter(s=>s.ID==i);if(a.length>0)return a[0]}catch{}return null}static GenerateYears(r,i,a){let s=-1;(null==i||null==i)&&(i=11),(null==a||null==a||!a)&&(s=1);const c=[];for(let p=0;p<i;p++)c.push(r+p*s);return c}static DateOnly(r){return r?new Date(new Date(r).toDateString()):new Date((new Date).toDateString())}static differentInDays(r,i){let a=i.getTime()-r.getTime();return Math.floor(a/864e5)}static minutesDiff(r,i){let a=(i.getTime()-r.getTime())/6e4;return Math.ceil(a)}static hoursDiff(r,i){let s=(i.getTime()-r.getTime())/36e5;return parseFloat(s.toFixed(1))}static Guid_NewGuid(){let r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var s=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==a?s:3&s|8).toString(16)})}static parseJwt(r){var a=r.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(a).split("").map(function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(s)}static numberOnly(r){const i=r.which?r.which:r.keyCode;return!(i>31&&(i<48||i>57))}static formatNumber(r){let i,a="",s=Math.abs(r);return s>999&&s<1e6?(a="K",i=(s/1e3).toFixed(0)):s>=1e6?(a="M",i=(s/1e6).toFixed(0)):s<900&&(i=s.toString()),r<0&&(i="-"+i),i.replace(/\B(?=(\d{3})+(?!\d))/g,",")+a}static isToDay(r){if(r){const i=new Date;return i.setHours(0,0,0,0),i.getTime()==r.getTime()}}static compare(r,i,a){return(r<i?-1:1)*(a?1:-1)}static getDatesInRange(r,i){const a=new Date(r.getTime()),s=[];for(;a<=i;)s.push(new Date(a)),a.setDate(a.getDate()+1);return s}static getDaysBefore(r,i){return new Date(r.setDate((new Date).getDate()-i))}static getRangeDate(r,i){const a=new Date;return a.setMonth(r),a.setFullYear(i),{firstDay:new Date(a.getFullYear(),a.getMonth()-1,1),lastDay:new Date(a.getFullYear(),a.getMonth(),0)}}static setDateTime(r,i){let a=new Date;i&&(a=new Date(i));let s=r.split(":");return a.setHours(parseInt(s[0])),a.setMinutes(parseInt(s[1])),a}}return(0,e.Z)(t,"GuidEmpty","00000000-0000-0000-0000-000000000000"),(0,e.Z)(t,"DecimalMinValue","-7.922816251426434e+28"),(0,e.Z)(t,"InputLockTimeSpan",500),(0,e.Z)(t,"MinDate","0001-01-01T00:00:00"),(0,e.Z)(t,"MinTime","00:00:00"),(0,e.Z)(t,"tinyMceApiKey","zc58cdrrftek5r5igtmjiar7ed4n3wr00hzd4w4mvtx8mpxa"),(0,e.Z)(t,"Months",[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}]),t})();function o(t){return new Promise((n,r)=>{let i=new Image;i.src=t,i.decode().then(()=>{n({img:t,height:i.height,width:i.width})}).catch(()=>{r(new Error(`Image load error for ${t}`))})})}let y=(()=>{class t{}return(0,e.Z)(t,"emptyDate","Please fill invoice date"),(0,e.Z)(t,"emptyNumber","Please fill invoice number"),(0,e.Z)(t,"emptyOrderNumber","Number is Required"),(0,e.Z)(t,"failGetMenu","Fail to get pos menu"),(0,e.Z)(t,"failToGetRetur","Fail to get retur"),(0,e.Z)(t,"failGetLocalPosStorage","Fail to get setting and option from local storage, Please re-cache your data while online!"),(0,e.Z)(t,"failGetVariant",'"Error getting variant with {0} {1}" - {2}'),(0,e.Z)(t,"failGetLocalVariant","Fail to get variant from local storage, Please re-cache your data while online!"),(0,e.Z)(t,"emptyBarcodeFormat",'No product with barcode "{0}"'),(0,e.Z)(t,"emptyCustomerFormat",'No customer with code "{0}"'),(0,e.Z)(t,"failGetSalesOrder","Fail to get sales order"),(0,e.Z)(t,"failBin","Fail to bin transaction"),(0,e.Z)(t,"failGetCustomer","Fail to get customer's data"),(0,e.Z)(t,"failCreateCustomer","Fail to create customer"),(0,e.Z)(t,"noRoleContact","You have no right to create new customer"),(0,e.Z)(t,"submitLocally","Connection unavailable ~ offline! Order stored locally"),(0,e.Z)(t,"OfflineOrderNotSupport","Offline order is not Supported!"),(0,e.Z)(t,"failOrderConnectionTimeOut","Connection timeout! Please try uploading your order again!"),(0,e.Z)(t,"failDeletePark","Fail to delete park"),(0,e.Z)(t,"emptyAccessRegister","You do not have access to any Register"),(0,e.Z)(t,"failGenerateNewNumber","Fail to generate new number"),(0,e.Z)(t,"emptyPayment","There is no active payment method."),(0,e.Z)(t,"failOpenRegister","Fail to open register"),(0,e.Z)(t,"failGetLocalOutletInfo","Fail to get outlet information from local storage, Please re-cache your data while online!"),(0,e.Z)(t,"failTrySubmit","[Error submitting order] \n{0}"),(0,e.Z)(t,"failTryCreateCustomer",'"[Error creating customer] \n"{0}'),(0,e.Z)(t,"createCustomerOffline","Create customer is not supported when the connection offline"),(0,e.Z)(t,"emptyCustomer","Please select customer!"),(0,e.Z)(t,"emptySalesPerson","Please select sales person!"),(0,e.Z)(t,"emptySalesType","Please select sales type!"),(0,e.Z)(t,"failCreateNewVariant","Fail to create new variant"),(0,e.Z)(t,"requiredDefaultCategory","[WARNING] - POS / Quick Create Product requires Default Category"),(0,e.Z)(t,"emptyVariant","Item is undefined, please re-type"),(0,e.Z)(t,"emptyPOItem","You must have at least one item"),(0,e.Z)(t,"emptyEntity","Please select entity before proceeding.."),(0,e.Z)(t,"failGetRetrieve","Fail to get retrieve"),(0,e.Z)(t,"failTryPark","[Error submitting park] \n{0}"),(0,e.Z)(t,"failTryGetPark","[Error during get park] \n{0}"),(0,e.Z)(t,"failTryGetOutStanding","[Error during get outstanding] \n{0}"),(0,e.Z)(t,"failTryGetParkSelect","[Error during get available park select] \n{0}"),(0,e.Z)(t,"failGetSerial","Fail to get variant serial"),(0,e.Z)(t,"successSendOrder","Orders synchronized to server. Upload Transaction Complete!"),(0,e.Z)(t,"successSyncProduct","Products synchronized to Local Storage"),(0,e.Z)(t,"failGetPark","Fail to get park"),(0,e.Z)(t,"failMergePark","Fail to merge park"),(0,e.Z)(t,"failGetOutStanding","Fail to get outstanding"),(0,e.Z)(t,"failGetParkSelect","Fail to get available park select"),(0,e.Z)(t,"confirmationDeleteOrder","Are you sure want to delete this order?"),(0,e.Z)(t,"confirmationCloseRegister","The Register is still occupied under '{0}'. Do you want to end his / her session?"),(0,e.Z)(t,"closeActiveRegister","You already have an active register with name '{0}'. Do you want to end your session?"),(0,e.Z)(t,"successSendEmail","Email is sent successfully to '{0}'"),(0,e.Z)(t,"wrongOfflineAction","This action is not supported when the connection offline"),(0,e.Z)(t,"emptyCustomerCredit","Credit Payment requires customer specified!"),(0,e.Z)(t,"debtLimit","Your debt is over limit!"),(0,e.Z)(t,"emptyCustomerDeposit","Deposit Payment requires customer specified!"),(0,e.Z)(t,"creditLock","You have no right to give credit!"),(0,e.Z)(t,"failToSyncProduct","Fail sync product to local storage!"),(0,e.Z)(t,"failToSyncOrder","Fail sync Order to local storage!"),(0,e.Z)(t,"emptyDeliveryOutlet","There is no outlet in delivery module."),(0,e.Z)(t,"wrongAuthorizationCode","Wrong Authorize Code!"),(0,e.Z)(t,"priceMinimumRestriction","You have no right to sell this item lower than {0}"),(0,e.Z)(t,"clearBrowsingData","A new version of our POS is available, please clear your browsing data to apply changes!"),(0,e.Z)(t,"offlineModeNotification","WARNING! Your point of sale configuration is set to LOCAL, orders are not synchronized automatically."),(0,e.Z)(t,"failServerConnection","Something happen to the server, switch query to local mode to continue work!"),(0,e.Z)(t,"taxEmpty","Tax options is empty, go to setup and add tax!"),(0,e.Z)(t,"clearCommission","Are you sure to leave this page without saving?"),(0,e.Z)(t,"voidConfirm","This will replace current order's item(s) with blank order."),(0,e.Z)(t,"notSellAble","This item is not for sell"),(0,e.Z)(t,"partialLoyaltyPointUnable","You only can fully pay with loyalty point, otherwise please remove the loyalty point and use other available payment options"),(0,e.Z)(t,"DiffDate","Client date is not equal with Server Date"),(0,e.Z)(t,"pointOnly","{0} need paid by point only"),(0,e.Z)(t,"cashOnly","{0} cannot paid by point"),(0,e.Z)(t,"ovoConfig","WARNING! Your ovo configuration is not set"),(0,e.Z)(t,"failGenerateQR","Failed to generate qr code"),(0,e.Z)(t,"failPaymentOvo","Failed to pay with ovo, Try again"),(0,e.Z)(t,"emptyPhone","Please Fill Phone"),(0,e.Z)(t,"maxInventory","Your Bought Qty will exceed the Max Inventory"),(0,e.Z)(t,"payNowOnly","You have no access to sell with Later Payment"),t})(),u=(()=>{class t{}return(0,e.Z)(t,"GetPOSStorage","/API/POS/LoadPOS"),(0,e.Z)(t,"GenerateNumber","/API/POS/GenerateNumber"),(0,e.Z)(t,"RefreshToken","/API/Authentication/RefreshToken"),(0,e.Z)(t,"RemovePark","/API/POS/RemovePark"),(0,e.Z)(t,"VoidPark","/API/POS/VoidPark"),(0,e.Z)(t,"ReturInvoice","/API/POS/ReturInvoice"),(0,e.Z)(t,"BuyReturInvoice","/API/Buy/GetSupplierInvoiceRetur"),(0,e.Z)(t,"GetSalesOrderJSONByID","/API/POS/GetSalesOrderJSONByID"),(0,e.Z)(t,"GetPOSDataByID","/API/POS/GetPOSDataByID"),(0,e.Z)(t,"MergePark","/API/POS/MergePark"),(0,e.Z)(t,"GetPark","/API/POS/GetParkByEntityID"),(0,e.Z)(t,"GetOutStanding","/API/POS/GetOutStandingByEntityID"),(0,e.Z)(t,"GetVacant","/API/POS/GetParkInfoByEntityID"),(0,e.Z)(t,"RecordOpeningCash","/API/POS/RecordOpeningCash"),(0,e.Z)(t,"OpenRegister","/API/POS/LoadRegister"),(0,e.Z)(t,"GetRegisterInfo","/API/POS/GetRegisterInfo"),(0,e.Z)(t,"BackdateNumber","/API/POS/GenerateBackdateNumber"),(0,e.Z)(t,"GetVariantByID","/API/catalog/variant/GetVariantByID"),(0,e.Z)(t,"GetVariantFormModelByID","/API/catalog/variant/GetVariantFormModelById"),(0,e.Z)(t,"GetVariantByCode","/API/catalog/variant/GetVariantByCode"),(0,e.Z)(t,"GetVariantSerial","/API/catalog/variant/GetVariantSerial"),(0,e.Z)(t,"GetVariantBySerial","/API/catalog/variant/GetVariantbySerial"),(0,e.Z)(t,"UpdateProductImage","/API/catalog/product/UpdateProductImageUrl"),(0,e.Z)(t,"GetVariantWithSameProductID","/API/catalog/variant/GetVariantWithSameProductID"),(0,e.Z)(t,"GetVariantInfoModelById","/API/catalog/variant/GetVariantInfoModelById"),(0,e.Z)(t,"GetSalesHistory","/Api/catalog/product/GetSalesHistory"),(0,e.Z)(t,"GetPurchaseHistory","/API/catalog/product/GetPurchaseHistory"),(0,e.Z)(t,"GetParkedHistory","/API/catalog/product/GetParkOrder"),(0,e.Z)(t,"CreateVariant","/API/catalog/variant/CreateVariant"),(0,e.Z)(t,"SendInvoiceEmail","/API/Transaction/SendEmail"),(0,e.Z)(t,"GetCustomerPrivilegeByID","/API/Contact/GetPrivilegeByID"),(0,e.Z)(t,"GetCustomerByCode","/API/Contact/GetByCode"),(0,e.Z)(t,"GetCustomerCode","/API/Contact/GetCode"),(0,e.Z)(t,"GetCustomerEmailByID","/API/Contact/GetEmailByID"),(0,e.Z)(t,"GetPriceBookByVariantID","/API/catalog/variant/GetPriceBookByVariantID"),(0,e.Z)(t,"GetPackageID","/API/POS/GetPackageID"),(0,e.Z)(t,"Authorize","/API/AuthorizationKey/AuthorizeByType"),(0,e.Z)(t,"Invoice","/api/Invoice/InvoiceInfo"),(0,e.Z)(t,"OrdersLoader","/API/OrdersLoader/CustomerInvoice"),(0,e.Z)(t,"Orders","/api/Invoice/CustomerInvoice"),(0,e.Z)(t,"PaymentReceivedLoader","/API/PaymentLoader/DailyPaymentLoader"),(0,e.Z)(t,"PaymentReceived","/API/Payment/DailyPaymentReceived"),(0,e.Z)(t,"CheckOutUrl","/API/POS/SubmitOrder"),(0,e.Z)(t,"CheckOutUrlBuy","/API/Buy/SubmitOrder"),(0,e.Z)(t,"Scanner","/API/AdjustmentLoader/StockTakeByCSV"),(0,e.Z)(t,"AdjustmentLoader","/API/AdjustmentLoader/GetInventoryAdjustmentList"),(0,e.Z)(t,"Adjustment","/API/Adjustment/GetInventoryAdjustmentList"),(0,e.Z)(t,"AdjustmentStorage","/API/Adjustment/GetStorage"),(0,e.Z)(t,"GetNumberAdjustment","/API/Adjustment/GenerateNumber"),(0,e.Z)(t,"GetAccountReceivableLoader","/API/DebtLoader/AccountsReceiveableSummary"),(0,e.Z)(t,"GetAccountReceivableDetailLoader","/API/DebtLoader/AccountsReceiveableDetails"),(0,e.Z)(t,"GetAccountReceivableSummary","/API/Debt/AccountsReceiveableSummary"),(0,e.Z)(t,"getAccountreceivableDetail","/API/Debt/AccountsReceiveableDetails"),(0,e.Z)(t,"ProductLibrarySuggestion","/API/AC/GetVariantSuggestionByCodeNName"),(0,e.Z)(t,"VoidInvoiceLoader","/API/OrdersLoader/VoidInvoiceLoader"),(0,e.Z)(t,"VoidInvoice","/api/Invoice/VoidInvoiceList"),(0,e.Z)(t,"WaitingPatientList","/API/Treatment/WaitingPatientList"),(0,e.Z)(t,"CheckOutTreatmentByListID","/API/Treatment/CheckOutByListID"),(0,e.Z)(t,"TreatmentRegisterLoader","/API/TreatmentLoader/Registration"),(0,e.Z)(t,"TreatmentRegisterOutletInfo","/API/Treatment/RegistrationGetOutletInfo"),(0,e.Z)(t,"TreatmentCustomerInfo","/API/Treatment/RegistrationGetCustomerInfo"),(0,e.Z)(t,"SubmitTreatementRegistration","/API/Treatment/RegistrationSubmit"),(0,e.Z)(t,"SalesOrderMini","/API/Print/SalesOrderMini"),(0,e.Z)(t,"ProductLoader","/API/catalog/ProductLoader/ProductList"),(0,e.Z)(t,"ProductList","/API/catalog/product/GetProductList"),(0,e.Z)(t,"DeleteProductList","/API/catalog/product/DeleteProductList"),(0,e.Z)(t,"DeleteVariantInfo","/API/catalog/variant/DeleteVariantInfo"),(0,e.Z)(t,"ProductForm","/API/catalog/ProductLoader/ProductForm"),(0,e.Z)(t,"SubmitProduct","/API/catalog/product/SubmitProduct"),(0,e.Z)(t,"ProductInfo","/API/catalog/ProductLoader/ProductInfoInitial"),(0,e.Z)(t,"CreateCategory","/API/catalog/category/CreateProductCategory"),(0,e.Z)(t,"CreateBrand","/API/catalog/product/CreateBrand"),(0,e.Z)(t,"CreateTag","/API/catalog/product/CreateTags"),(0,e.Z)(t,"CreateUOM","/API/catalog/product/CreateProductUOM"),(0,e.Z)(t,"VariantInfo","/API/catalog/variant/GetVariantInfoModelById"),(0,e.Z)(t,"VariantFormData","/API/catalog/variant/GetVariantFormInitialData"),(0,e.Z)(t,"VariantForm","/API/catalog/variant/GetVariantFormModelById"),(0,e.Z)(t,"SubmitVariant","/API/catalog/variant/SubmitVariant"),(0,e.Z)(t,"CreateContact","/API/Contact/Create"),(0,e.Z)(t,"Closure","/API/POS/Closure"),(0,e.Z)(t,"SyncProducts","/API/POSSync/Products"),(0,e.Z)(t,"SyncCustomer","/API/POSSync/Customers"),(0,e.Z)(t,"SynOutletPrice","/API/POSSync/OutletPrices"),(0,e.Z)(t,"SynOutlet","/API/POSSync/Outlets"),(0,e.Z)(t,"SyncPark","/API/POSSync/Parks"),(0,e.Z)(t,"GetRewardByPromotionID","/API/POS/GetRewardByPromotionID"),(0,e.Z)(t,"GenerateGopayQrCode","/API/POS/GenerateGoPayQrCode"),(0,e.Z)(t,"GenerateEmpatKaliQrCode","/API/POS/GenerateEmpatKaliQrCode"),(0,e.Z)(t,"VerifyPayment","/API/PaymentNotification/VerifyPayment"),(0,e.Z)(t,"PayWithOvo","/API/POS/PayWithOvo"),(0,e.Z)(t,"InvoiceA4","/API/Print/Invoice"),(0,e.Z)(t,"UploadCsv","/API/POS/UploadCsv"),(0,e.Z)(t,"UploadCsvBuy","/API/Buy/UploadCsv"),(0,e.Z)(t,"GenerateCommission","/API/Transaction/GetCommission"),(0,e.Z)(t,"InvoiceInfo","/api/Invoice/InvoiceInfo"),(0,e.Z)(t,"GenerateLink","/API/PayNow/GenerateLink"),(0,e.Z)(t,"LoadFormBuy","/API/Buy2/Load"),(0,e.Z)(t,"BuyGetOutletInfo","/API/Buy2/GetOutletInfo"),(0,e.Z)(t,"BuyGenerateNumber","/API/Buy/GenerateNumber"),(0,e.Z)(t,"BuyGetDataByID","/API/Buy2/GetDataByID"),(0,e.Z)(t,"GetQuickKey","/API/catalog/product/GetQuickKey"),(0,e.Z)(t,"GetPrintTemplateID","/API/Buy/GetPrintTemplateID"),(0,e.Z)(t,"GetVariantStockByID","/API/catalog/variant/GetInventoryByVariantID"),(0,e.Z)(t,"GetSupplierInvoice","/API/Buy/GetSupplierInvoiceRetur"),(0,e.Z)(t,"GetSupplierDTO","/API/Contact/GetSupplierDTO"),(0,e.Z)(t,"LoadFormDelivery","/API/TransferOrderLoader/LoadForm"),(0,e.Z)(t,"DeliveryGenerateNumber","/API/TransferOrder/GenerateNumber"),(0,e.Z)(t,"UpdateCourierList","/API/TransferOrder/UpdateCourierList"),(0,e.Z)(t,"SubmitOutletDelivery","/API/TransferOrder/SubmitOrder"),(0,e.Z)(t,"ClearOutlet","/API/TransferOrder/ClearOutlet"),(0,e.Z)(t,"PaymentListSorting","/API/Setup/SortPaymentMethod"),(0,e.Z)(t,"TaxListSorting","/API/Setup/SortTax"),(0,e.Z)(t,"LoadFormEstimate","/API/Estimate/LoadForm"),(0,e.Z)(t,"EstimateGenerateNumber","/API/Estimate/GenerateNumber"),(0,e.Z)(t,"SubmitEstimate","/API/Estimate/SubmitOrder"),(0,e.Z)(t,"LoadFormAdjustment","/API/Adjustment/LoadForm"),(0,e.Z)(t,"AdjustmentGenerateNumber","/API/Adjustment/GenerateNumber"),(0,e.Z)(t,"SubmitAdjustment","/API/Adjustment/SubmitOrder"),(0,e.Z)(t,"ForecastData","Inventory/Daystozero"),(0,e.Z)(t,"ForecastLoader","InventoryLoader/Daystozero"),t})()},37407:(P,d,l)=>{l.d(d,{G:()=>e});const e={dashboard:{WeeklySales:"Chart"},estimate:{Create:"EstC",Edit:"EstE",Delete:"EstD"},report:{View:"Rep",Advanced:"RepA",Profit:"RepF"},shift:{View:"Shift",Create:"ShiftC",Edit:"ShiftE",Delete:"ShiftD"},contact:{View:"Con",Create:"ConC",Edit:"ConE",Delete:"ConD",LoyaltyPointEditor:"LoyPE",ContactDetail:"ContD",ContactImageEditor:"ContE"},sell:{Create:"Sell",PricebookSelector:"PricebS",Edit:"SellE",Delete:"SellD",Date:"DateE",Number:"NumE",SalesPerson:"SalesmanE",Return:"Return",Discount:"Disc",UnitPriceEditor:"UnitPE",Commission:"Comms",Tax:"Tax",CustomerInputLock:"CustL",Payment:"PayR",PriceVisible:"PriceV",PriceMinimum:"PriceM",Email:"Email",DeleteItem:"DelItm",Shipping:"Ship",PaymentCodeLock:"PayCL",EraseVoidOrd:"EraseVO",RestoreVoidOrd:"RestVO",RetrieveR:"RetrieveR",BundlingPrice:"BundlP",ClearCartRestriction:"ClearCartRestriction",CreditSalesLock:"CredSL",CouponInputLock:"CouponInputLock"},orders:{View:"Ord",SupplierBill:"OrdB",VoidInvoice:"OrdVo",Reprint:"OrdRpr",NoteEditor:"OrdNe",Invoice:"Ordlr"},product:{View:"Prod",Delete:"ProdD",ImageEditor:"ImgE",Create:"ProdC",Edit:"ProdE",Cost:"Cost",BarcodePrinting:"BarP",DeleteAllOutletPrice:"DeleteAllOutletPrice",Expense:"Expense",CommissionView:"CommV"},payment:{View:"Pay",Delete:"PayD",Create:"PayC",Edit:"PayE",PaymentDate:"PayDE"},adjustment:{View:"Adj",Delete:"AdjD",Create:"AdjC",Edit:"AdjE",Approval:"AdjApp",InventoryProductCount:"InvPC"},buy:{Delete:"BuyD",Create:"Buy",Edit:"BuyE",DateEditor:"BuyDE",ShippingRestriction:"BuySh",Approval:"PurA"},logistics:{View:"Del",Create:"DelC",Edit:"DelE",Delete:"DelD",TransferOrderEditor:"DelRE",Outbound:"FulF",TransferOrderApproval:"DelA",TransferDateEditor:"DelDE",TransferOrderReceiver:"DelR"},debt:{View:"Debt",Delete:"DebtD",Create:"DebtC",Edit:"DebtE"},prepaidPackage:{View:"Tre",Create:"TreC",Edit:"TreE",Delete:"TreD",TreatmentIncentive:"TreI",SharePackageEditor:"SharPacE",TreatmentNote:"TreN",Doctor:"Doct"},inventory:{View:"Inv",Edit:"InvE"},promotion:{View:"Prom",Create:"PromC",Edit:"PromE",Delete:"PromD",Coupon:"Cou",Pricebook:"Pri"},accounting:{View:"Act",Create:"ActC",Edit:"ActE",Delete:"ActD",Report:"ActRep",Ledger:"ActL",EmptyOutlet:"ActEO",ClosingEditor:"ActCE",Advanced:"ActRA",Recurring:"ActRec"},users:{View:"Use",Create:"UseC",Edit:"UseE",Delete:"UseD",Groups:"Gro",LoginTimeRestriction:"LogTR",UserIPRestriction:"UseIR",GroupsRestriction:"UseG",LogRestriction:"LogResct"},outlets:{View:"Out",Create:"OutC",Edit:"OutE",Delete:"OutD"},setup:{View:"Stp",Create:"StpC",Edit:"StpE",Delete:"StpD",Webhook:"StpWh",Developer:"StpDev"},service:{View:"Serv"},myProfile:{View:"Prof",Notification:"Notf",Subscription:"Subs",Activity:"Actv"},customerDisplay:{View:"Disp"},orderDisplay:{View:"KitD"},global:{Export:"Export"},apps:{Marketplace:"Mrp",Jurnal:"Jurnal",Tools:"Tools"},fulfillment:{View:"Ful",Edit:"FulE",Create:"FulC",Delete:"FulD",Ship:"FulS"},manufacture:{View:"Man",Create:"ManC",Edit:"ManE",Delete:"ManD"}}}}]);
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1161],{51161:(P,d,l)=>{l.d(d,{N:()=>y});var e=l(81180),m=l(37407),o=l(67327),h=l(94650);let y=(()=>{class u{constructor(){(0,e.Z)(this,"_roles",void 0),(0,e.Z)(this,"_product",void 0),(0,e.Z)(this,"_contact",void 0),(0,e.Z)(this,"_promotion",void 0),(0,e.Z)(this,"_accounting",void 0),(0,e.Z)(this,"_users",void 0),(0,e.Z)(this,"_outlets",void 0),(0,e.Z)(this,"_setup",void 0),(0,e.Z)(this,"_service",void 0),(0,e.Z)(this,"_profile",void 0),(0,e.Z)(this,"_customerDisplay",void 0),(0,e.Z)(this,"_orderDisplay",void 0),(0,e.Z)(this,"_global",void 0),(0,e.Z)(this,"_apps",void 0),(0,e.Z)(this,"_fulfillment",void 0),(0,e.Z)(this,"_manufacture",void 0),(0,e.Z)(this,"_inventory",void 0),(0,e.Z)(this,"_sell",void 0),(0,e.Z)(this,"_report",void 0),(0,e.Z)(this,"_buy",void 0),(0,e.Z)(this,"_adjustment",void 0),(0,e.Z)(this,"_debt",void 0),(0,e.Z)(this,"_payment",void 0),(0,e.Z)(this,"_prepaidPackage",void 0),(0,e.Z)(this,"_order",void 0),(0,e.Z)(this,"_logistic",void 0),(0,e.Z)(this,"_estimate",void 0),(0,e.Z)(this,"_shift",void 0),this.parseJWTRoles()}parseJWTRoles(){const t=localStorage.getItem("Token");if(o.gT.IsNotEmpty(t)){var n=o.gT.parseJwt(t);this._roles=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]}}isInRole(t,n){const r={};return n.forEach((i,a)=>r[t[a]]="string"==typeof i?this._roles.includes(i):i(this._roles)),r}isUserHasRole(t){return this._roles.includes(t)}get product(){return o.gT.IsEmpty(this._product)&&(this._product=this.setBulkRole("product")),this._product}get contact(){return o.gT.IsEmpty(this._contact)&&(this._contact=this.setBulkRole("contact")),this._contact}get promotion(){return o.gT.IsEmpty(this._promotion)&&(this._promotion=this.setBulkRole("promotion")),this._promotion}get accounting(){return o.gT.IsEmpty(this._accounting)&&(this._accounting=this.setBulkRole("accounting")),this._accounting}get users(){return o.gT.IsEmpty(this._users)&&(this._users=this.setBulkRole("users")),this._users}get outlets(){return o.gT.IsEmpty(this._outlets)&&(this._outlets=this.setBulkRole("outlets")),this._outlets}get setup(){return o.gT.IsEmpty(this._setup)&&(this._setup=this.setBulkRole("setup")),this._setup}get service(){return o.gT.IsEmpty(this._service)&&(this._service=this.setBulkRole("service")),this._service}get profile(){return o.gT.IsEmpty(this._profile)&&(this._profile=this.setBulkRole("myProfile")),this._profile}get customerDisplay(){return o.gT.IsEmpty(this._customerDisplay)&&(this._customerDisplay=this.setBulkRole("customerDisplay")),this._customerDisplay}get orderDisplay(){return o.gT.IsEmpty(this._orderDisplay)&&(this._orderDisplay=this.setBulkRole("orderDisplay")),this._orderDisplay}get global(){return o.gT.IsEmpty(this._global)&&(this._global=this.setBulkRole("global")),this._global}get apps(){return o.gT.IsEmpty(this._apps)&&(this._apps=this.setBulkRole("apps")),this._apps}get fulfillment(){return o.gT.IsEmpty(this._fulfillment)&&(this._fulfillment=this.setBulkRole("fulfillment")),this._fulfillment}get manufacture(){return o.gT.IsEmpty(this._manufacture)&&(this._manufacture=this.setBulkRole("manufacture")),this._manufacture}get inventory(){return o.gT.IsEmpty(this._inventory)&&(this._inventory=this.setBulkRole("inventory")),this._inventory}get sell(){return o.gT.IsEmpty(this._sell)&&(this._sell=this.setBulkRole("sell")),this._sell}get report(){return o.gT.IsEmpty(this._report)&&(this._report=this.setBulkRole("report")),this._report}get buy(){return o.gT.IsEmpty(this._buy)&&(this._buy=this.setBulkRole("buy")),this._buy}get adjustment(){return o.gT.IsEmpty(this._adjustment)&&(this._adjustment=this.setBulkRole("adjustment")),this._adjustment}get debt(){return o.gT.IsEmpty(this._debt)&&(this._debt=this.setBulkRole("debt")),this._debt}get payment(){return o.gT.IsEmpty(this._payment)&&(this._payment=this.setBulkRole("payment")),this._payment}get prepaidPackage(){return o.gT.IsEmpty(this._prepaidPackage)&&(this._prepaidPackage=this.setBulkRole("prepaidPackage")),this._prepaidPackage}get order(){return o.gT.IsEmpty(this._order)&&(this._order=this.setBulkRole("orders")),this._order}get logistic(){return o.gT.IsEmpty(this._logistic)&&(this._logistic=this.setBulkRole("logistics")),this._logistic}get estimate(){return o.gT.IsEmpty(this._estimate)&&(this._estimate=this.setBulkRole("estimate")),this._estimate}get shift(){return o.gT.IsEmpty(this._shift)&&(this._shift=this.setBulkRole("shift")),this._shift}setBulkRole(t){const n={};for(const r in m.G[t])n[r]=this.isUserHasRole(m.G[t][r]);return n}get isSystemUser(){const t=localStorage.getItem("Token");return"System"==o.gT.parseJwt(t).Type}resetRoles(){this._roles=[],this._accounting=null,this._adjustment=null,this._apps=null,this._buy=null,this._contact=null,this._customerDisplay=null,this._debt=null,this._fulfillment=null,this._estimate=null,this._global=null,this._inventory=null,this._logistic=null,this._manufacture=null,this._order=null,this._orderDisplay=null,this._outlets=null,this._payment=null,this._product=null,this._prepaidPackage=null,this._profile=null,this._promotion=null,this._report=null,this._sell=null,this._service=null,this._setup=null,this._shift=null,this._users=null}}return(0,e.Z)(u,"\u0275fac",function(t){return new(t||u)}),(0,e.Z)(u,"\u0275prov",h.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"})),u})()},67327:(P,d,l)=>{l.d(d,{FI:()=>o,Wz:()=>u,g7:()=>y,gT:()=>m});var e=l(81180);let m=(()=>{class t{static StringFormat(r,...i){for(let a=0;a<i.length;a++)r=r.replace(`{${a}}`,i[a]);return r}static IsNotEmpty(r){return""!=r&&r!=t.GuidEmpty&&null!=r&&null!=r}static IsEmpty(r){return""==r||null==r||null==r||r==t.GuidEmpty}static FilterByID(r,i){try{const a=r.filter(s=>s.ID==i);if(a.length>0)return a[0]}catch{}return null}static GenerateYears(r,i,a){let s=-1;(null==i||null==i)&&(i=11),(null==a||null==a||!a)&&(s=1);const c=[];for(let p=0;p<i;p++)c.push(r+p*s);return c}static DateOnly(r){return r?new Date(new Date(r).toDateString()):new Date((new Date).toDateString())}static differentInDays(r,i){let a=i.getTime()-r.getTime();return Math.floor(a/864e5)}static minutesDiff(r,i){let a=(i.getTime()-r.getTime())/6e4;return Math.ceil(a)}static hoursDiff(r,i){let s=(i.getTime()-r.getTime())/36e5;return parseFloat(s.toFixed(1))}static Guid_NewGuid(){let r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var s=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==a?s:3&s|8).toString(16)})}static parseJwt(r){var a=r.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(a).split("").map(function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(s)}static numberOnly(r){const i=r.which?r.which:r.keyCode;return!(i>31&&(i<48||i>57))}static formatNumber(r){let i,a="",s=Math.abs(r);return s>999&&s<1e6?(a="K",i=(s/1e3).toFixed(0)):s>=1e6?(a="M",i=(s/1e6).toFixed(0)):s<900&&(i=s.toString()),r<0&&(i="-"+i),i.replace(/\B(?=(\d{3})+(?!\d))/g,",")+a}static isToDay(r){if(r){const i=new Date;return i.setHours(0,0,0,0),i.getTime()==r.getTime()}}static compare(r,i,a){return(r<i?-1:1)*(a?1:-1)}static getDatesInRange(r,i){const a=new Date(r.getTime()),s=[];for(;a<=i;)s.push(new Date(a)),a.setDate(a.getDate()+1);return s}static getDaysBefore(r,i){return new Date(r.setDate((new Date).getDate()-i))}static getRangeDate(r,i){const a=new Date;return a.setMonth(r),a.setFullYear(i),{firstDay:new Date(a.getFullYear(),a.getMonth()-1,1),lastDay:new Date(a.getFullYear(),a.getMonth(),0)}}static setDateTime(r,i){let a=new Date;i&&(a=new Date(i));let s=r.split(":");return a.setHours(parseInt(s[0])),a.setMinutes(parseInt(s[1])),a}}return(0,e.Z)(t,"GuidEmpty","00000000-0000-0000-0000-000000000000"),(0,e.Z)(t,"DecimalMinValue","-7.922816251426434e+28"),(0,e.Z)(t,"InputLockTimeSpan",500),(0,e.Z)(t,"MinDate","0001-01-01T00:00:00"),(0,e.Z)(t,"MinTime","00:00:00"),(0,e.Z)(t,"tinyMceApiKey","zc58cdrrftek5r5igtmjiar7ed4n3wr00hzd4w4mvtx8mpxa"),(0,e.Z)(t,"Months",[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}]),t})();function o(t){return new Promise((n,r)=>{let i=new Image;i.src=t,i.decode().then(()=>{n({img:t,height:i.height,width:i.width})}).catch(()=>{r(new Error(`Image load error for ${t}`))})})}let y=(()=>{class t{}return(0,e.Z)(t,"emptyDate","Please fill invoice date"),(0,e.Z)(t,"emptyNumber","Please fill invoice number"),(0,e.Z)(t,"emptyOrderNumber","Number is Required"),(0,e.Z)(t,"failGetMenu","Fail to get pos menu"),(0,e.Z)(t,"failToGetRetur","Fail to get retur"),(0,e.Z)(t,"failGetLocalPosStorage","Fail to get setting and option from local storage, Please re-cache your data while online!"),(0,e.Z)(t,"failGetVariant",'"Error getting variant with {0} {1}" - {2}'),(0,e.Z)(t,"failGetLocalVariant","Fail to get variant from local storage, Please re-cache your data while online!"),(0,e.Z)(t,"emptyBarcodeFormat",'No product with barcode "{0}"'),(0,e.Z)(t,"emptyCustomerFormat",'No customer with code "{0}"'),(0,e.Z)(t,"failGetSalesOrder","Fail to get sales order"),(0,e.Z)(t,"failBin","Fail to bin transaction"),(0,e.Z)(t,"failGetCustomer","Fail to get customer's data"),(0,e.Z)(t,"failCreateCustomer","Fail to create customer"),(0,e.Z)(t,"noRoleContact","You have no right to create new customer"),(0,e.Z)(t,"submitLocally","Connection unavailable ~ offline! Order stored locally"),(0,e.Z)(t,"OfflineOrderNotSupport","Offline order is not Supported!"),(0,e.Z)(t,"failOrderConnectionTimeOut","Connection timeout! Please try uploading your order again!"),(0,e.Z)(t,"failDeletePark","Fail to delete park"),(0,e.Z)(t,"emptyAccessRegister","You do not have access to any Register"),(0,e.Z)(t,"failGenerateNewNumber","Fail to generate new number"),(0,e.Z)(t,"emptyPayment","There is no active payment method."),(0,e.Z)(t,"failOpenRegister","Fail to open register"),(0,e.Z)(t,"failGetLocalOutletInfo","Fail to get outlet information from local storage, Please re-cache your data while online!"),(0,e.Z)(t,"failTrySubmit","[Error submitting order] \n{0}"),(0,e.Z)(t,"failTryCreateCustomer",'"[Error creating customer] \n"{0}'),(0,e.Z)(t,"createCustomerOffline","Create customer is not supported when the connection offline"),(0,e.Z)(t,"emptyCustomer","Please select customer!"),(0,e.Z)(t,"emptySalesPerson","Please select sales person!"),(0,e.Z)(t,"emptySalesType","Please select sales type!"),(0,e.Z)(t,"failCreateNewVariant","Fail to create new variant"),(0,e.Z)(t,"requiredDefaultCategory","[WARNING] - POS / Quick Create Product requires Default Category"),(0,e.Z)(t,"emptyVariant","Item is undefined, please re-type"),(0,e.Z)(t,"emptyPOItem","You must have at least one item"),(0,e.Z)(t,"emptyEntity","Please select entity before proceeding.."),(0,e.Z)(t,"failGetRetrieve","Fail to get retrieve"),(0,e.Z)(t,"failTryPark","[Error submitting park] \n{0}"),(0,e.Z)(t,"failTryGetPark","[Error during get park] \n{0}"),(0,e.Z)(t,"failTryGetOutStanding","[Error during get outstanding] \n{0}"),(0,e.Z)(t,"failTryGetParkSelect","[Error during get available park select] \n{0}"),(0,e.Z)(t,"failGetSerial","Fail to get variant serial"),(0,e.Z)(t,"successSendOrder","Orders synchronized to server. Upload Transaction Complete!"),(0,e.Z)(t,"successSyncProduct","Products synchronized to Local Storage"),(0,e.Z)(t,"failGetPark","Fail to get park"),(0,e.Z)(t,"failMergePark","Fail to merge park"),(0,e.Z)(t,"failGetOutStanding","Fail to get outstanding"),(0,e.Z)(t,"failGetParkSelect","Fail to get available park select"),(0,e.Z)(t,"confirmationDeleteOrder","Are you sure want to delete this order?"),(0,e.Z)(t,"confirmationCloseRegister","The Register is still occupied under '{0}'. Do you want to end his / her session?"),(0,e.Z)(t,"closeActiveRegister","You already have an active register with name '{0}'. Do you want to end your session?"),(0,e.Z)(t,"successSendEmail","Email is sent successfully to '{0}'"),(0,e.Z)(t,"wrongOfflineAction","This action is not supported when the connection offline"),(0,e.Z)(t,"emptyCustomerCredit","Credit Payment requires customer specified!"),(0,e.Z)(t,"debtLimit","Your debt is over limit!"),(0,e.Z)(t,"emptyCustomerDeposit","Deposit Payment requires customer specified!"),(0,e.Z)(t,"creditLock","You have no right to give credit!"),(0,e.Z)(t,"failToSyncProduct","Fail sync product to local storage!"),(0,e.Z)(t,"failToSyncOrder","Fail sync Order to local storage!"),(0,e.Z)(t,"emptyDeliveryOutlet","There is no outlet in delivery module."),(0,e.Z)(t,"wrongAuthorizationCode","Wrong Authorize Code!"),(0,e.Z)(t,"priceMinimumRestriction","You have no right to sell this item lower than {0}"),(0,e.Z)(t,"clearBrowsingData","A new version of our POS is available, please clear your browsing data to apply changes!"),(0,e.Z)(t,"offlineModeNotification","WARNING! Your point of sale configuration is set to LOCAL, orders are not synchronized automatically."),(0,e.Z)(t,"failServerConnection","Something happen to the server, switch query to local mode to continue work!"),(0,e.Z)(t,"taxEmpty","Tax options is empty, go to setup and add tax!"),(0,e.Z)(t,"clearCommission","Are you sure to leave this page without saving?"),(0,e.Z)(t,"voidConfirm","This will replace current order's item(s) with blank order."),(0,e.Z)(t,"notSellAble","This item is not for sell"),(0,e.Z)(t,"partialLoyaltyPointUnable","You only can fully pay with loyalty point, otherwise please remove the loyalty point and use other available payment options"),(0,e.Z)(t,"DiffDate","Client date is not equal with Server Date"),(0,e.Z)(t,"pointOnly","{0} need paid by point only"),(0,e.Z)(t,"cashOnly","{0} cannot paid by point"),(0,e.Z)(t,"ovoConfig","WARNING! Your ovo configuration is not set"),(0,e.Z)(t,"failGenerateQR","Failed to generate qr code"),(0,e.Z)(t,"failPaymentOvo","Failed to pay with ovo, Try again"),(0,e.Z)(t,"emptyPhone","Please Fill Phone"),(0,e.Z)(t,"maxInventory","Your Bought Qty will exceed the Max Inventory"),(0,e.Z)(t,"payNowOnly","You have no access to sell with Later Payment"),t})(),u=(()=>{class t{}return(0,e.Z)(t,"GetPOSStorage","/API/POS/LoadPOS"),(0,e.Z)(t,"GenerateNumber","/API/POS/GenerateNumber"),(0,e.Z)(t,"RefreshToken","/API/Authentication/RefreshToken"),(0,e.Z)(t,"RemovePark","/API/POS/RemovePark"),(0,e.Z)(t,"VoidPark","/API/POS/VoidPark"),(0,e.Z)(t,"ReturInvoice","/API/POS/ReturInvoice"),(0,e.Z)(t,"BuyReturInvoice","/API/Buy/GetSupplierInvoiceRetur"),(0,e.Z)(t,"GetSalesOrderJSONByID","/API/POS/GetSalesOrderJSONByID"),(0,e.Z)(t,"GetPOSDataByID","/API/POS/GetPOSDataByID"),(0,e.Z)(t,"MergePark","/API/POS/MergePark"),(0,e.Z)(t,"GetPark","/API/POS/GetParkByEntityID"),(0,e.Z)(t,"GetOutStanding","/API/POS/GetOutStandingByEntityID"),(0,e.Z)(t,"GetVacant","/API/POS/GetParkInfoByEntityID"),(0,e.Z)(t,"RecordOpeningCash","/API/POS/RecordOpeningCash"),(0,e.Z)(t,"OpenRegister","/API/POS/LoadRegister"),(0,e.Z)(t,"GetRegisterInfo","/API/POS/GetRegisterInfo"),(0,e.Z)(t,"BackdateNumber","/API/POS/GenerateBackdateNumber"),(0,e.Z)(t,"GetVariantByID","/API/catalog/variant/GetVariantByID"),(0,e.Z)(t,"GetVariantFormModelByID","/API/catalog/variant/GetVariantFormModelById"),(0,e.Z)(t,"GetVariantByCode","/API/catalog/variant/GetVariantByCode"),(0,e.Z)(t,"GetVariantSerial","/API/catalog/variant/GetVariantSerial"),(0,e.Z)(t,"GetVariantBySerial","/API/catalog/variant/GetVariantbySerial"),(0,e.Z)(t,"UpdateProductImage","/API/catalog/product/UpdateProductImageUrl"),(0,e.Z)(t,"GetVariantWithSameProductID","/API/catalog/variant/GetVariantWithSameProductID"),(0,e.Z)(t,"GetVariantInfoModelById","/API/catalog/variant/GetVariantInfoModelById"),(0,e.Z)(t,"GetSalesHistory","/Api/catalog/product/GetSalesHistory"),(0,e.Z)(t,"GetPurchaseHistory","/API/catalog/product/GetPurchaseHistory"),(0,e.Z)(t,"GetParkedHistory","/API/catalog/product/GetParkOrder"),(0,e.Z)(t,"CreateVariant","/API/catalog/variant/CreateVariant"),(0,e.Z)(t,"SendInvoiceEmail","/API/Transaction/SendEmail"),(0,e.Z)(t,"GetCustomerPrivilegeByID","/API/Contact/GetPrivilegeByID"),(0,e.Z)(t,"GetCustomerByCode","/API/Contact/GetByCode"),(0,e.Z)(t,"GetCustomerCode","/API/Contact/GetCode"),(0,e.Z)(t,"GetCustomerEmailByID","/API/Contact/GetEmailByID"),(0,e.Z)(t,"GetPriceBookByVariantID","/API/catalog/variant/GetPriceBookByVariantID"),(0,e.Z)(t,"GetPackageID","/API/POS/GetPackageID"),(0,e.Z)(t,"Authorize","/API/AuthorizationKey/AuthorizeByType"),(0,e.Z)(t,"Invoice","/api/Invoice/InvoiceInfo"),(0,e.Z)(t,"OrdersLoader","/API/OrdersLoader/CustomerInvoice"),(0,e.Z)(t,"Orders","/api/Invoice/CustomerInvoice"),(0,e.Z)(t,"PaymentReceivedLoader","/API/PaymentLoader/DailyPaymentLoader"),(0,e.Z)(t,"PaymentReceived","/API/Payment/DailyPaymentReceived"),(0,e.Z)(t,"CheckOutUrl","/API/POS/SubmitOrder"),(0,e.Z)(t,"CheckOutUrlBuy","/API/Buy/SubmitOrder"),(0,e.Z)(t,"Scanner","/API/AdjustmentLoader/StockTakeByCSV"),(0,e.Z)(t,"AdjustmentLoader","/API/AdjustmentLoader/GetInventoryAdjustmentList"),(0,e.Z)(t,"Adjustment","/API/Adjustment/GetInventoryAdjustmentList"),(0,e.Z)(t,"AdjustmentStorage","/API/Adjustment/GetStorage"),(0,e.Z)(t,"GetNumberAdjustment","/API/Adjustment/GenerateNumber"),(0,e.Z)(t,"GetAccountReceivableLoader","/API/DebtLoader/AccountsReceiveableSummary"),(0,e.Z)(t,"GetAccountReceivableDetailLoader","/API/DebtLoader/AccountsReceiveableDetails"),(0,e.Z)(t,"GetAccountReceivableSummary","/API/Debt/AccountsReceiveableSummary"),(0,e.Z)(t,"getAccountreceivableDetail","/API/Debt/AccountsReceiveableDetails"),(0,e.Z)(t,"ProductLibrarySuggestion","/API/AC/GetVariantSuggestionByCodeNName"),(0,e.Z)(t,"VoidInvoiceLoader","/API/OrdersLoader/VoidInvoiceLoader"),(0,e.Z)(t,"VoidInvoice","/api/Invoice/VoidInvoiceList"),(0,e.Z)(t,"WaitingPatientList","/API/Treatment/WaitingPatientList"),(0,e.Z)(t,"CheckOutTreatmentByListID","/API/Treatment/CheckOutByListID"),(0,e.Z)(t,"TreatmentRegisterLoader","/API/TreatmentLoader/Registration"),(0,e.Z)(t,"TreatmentRegisterOutletInfo","/API/Treatment/RegistrationGetOutletInfo"),(0,e.Z)(t,"TreatmentCustomerInfo","/API/Treatment/RegistrationGetCustomerInfo"),(0,e.Z)(t,"SubmitTreatementRegistration","/API/Treatment/RegistrationSubmit"),(0,e.Z)(t,"SalesOrderMini","/API/Print/SalesOrderMini"),(0,e.Z)(t,"ProductLoader","/API/catalog/ProductLoader/ProductList"),(0,e.Z)(t,"ProductList","/API/catalog/product/GetProductList"),(0,e.Z)(t,"DeleteProductList","/API/catalog/product/DeleteProductList"),(0,e.Z)(t,"DeleteVariantInfo","/API/catalog/variant/DeleteVariantInfo"),(0,e.Z)(t,"ProductForm","/API/catalog/ProductLoader/ProductForm"),(0,e.Z)(t,"SubmitProduct","/API/catalog/product/SubmitProduct"),(0,e.Z)(t,"ProductInfo","/API/catalog/ProductLoader/ProductInfoInitial"),(0,e.Z)(t,"CreateCategory","/API/catalog/category/CreateProductCategory"),(0,e.Z)(t,"CreateBrand","/API/catalog/product/CreateBrand"),(0,e.Z)(t,"CreateTag","/API/catalog/product/CreateTags"),(0,e.Z)(t,"CreateUOM","/API/catalog/product/CreateProductUOM"),(0,e.Z)(t,"VariantInfo","/API/catalog/variant/GetVariantInfoModelById"),(0,e.Z)(t,"VariantFormData","/API/catalog/variant/GetVariantFormInitialData"),(0,e.Z)(t,"VariantForm","/API/catalog/variant/GetVariantFormModelById"),(0,e.Z)(t,"SubmitVariant","/API/catalog/variant/SubmitVariant"),(0,e.Z)(t,"CreateContact","/API/Contact/Create"),(0,e.Z)(t,"Closure","/API/POS/Closure"),(0,e.Z)(t,"SyncProducts","/API/POSSync/Products"),(0,e.Z)(t,"SyncCustomer","/API/POSSync/Customers"),(0,e.Z)(t,"SynOutletPrice","/API/POSSync/OutletPrices"),(0,e.Z)(t,"SynOutlet","/API/POSSync/Outlets"),(0,e.Z)(t,"SyncPark","/API/POSSync/Parks"),(0,e.Z)(t,"GetRewardByPromotionID","/API/POS/GetRewardByPromotionID"),(0,e.Z)(t,"GetListPromotion","/API/POS/Promotion"),(0,e.Z)(t,"GenerateGopayQrCode","/API/POS/GenerateGoPayQrCode"),(0,e.Z)(t,"GenerateEmpatKaliQrCode","/API/POS/GenerateEmpatKaliQrCode"),(0,e.Z)(t,"VerifyPayment","/API/PaymentNotification/VerifyPayment"),(0,e.Z)(t,"PayWithOvo","/API/POS/PayWithOvo"),(0,e.Z)(t,"InvoiceA4","/API/Print/Invoice"),(0,e.Z)(t,"UploadCsv","/API/POS/UploadCsv"),(0,e.Z)(t,"UploadCsvBuy","/API/Buy/UploadCsv"),(0,e.Z)(t,"GenerateCommission","/API/Transaction/GetCommission"),(0,e.Z)(t,"InvoiceInfo","/api/Invoice/InvoiceInfo"),(0,e.Z)(t,"GenerateLink","/API/PayNow/GenerateLink"),(0,e.Z)(t,"LoadFormBuy","/API/Buy2/Load"),(0,e.Z)(t,"BuyGetOutletInfo","/API/Buy2/GetOutletInfo"),(0,e.Z)(t,"BuyGenerateNumber","/API/Buy/GenerateNumber"),(0,e.Z)(t,"BuyGetDataByID","/API/Buy2/GetDataByID"),(0,e.Z)(t,"GetQuickKey","/API/catalog/product/GetQuickKey"),(0,e.Z)(t,"GetPrintTemplateID","/API/Buy/GetPrintTemplateID"),(0,e.Z)(t,"GetVariantStockByID","/API/catalog/variant/GetInventoryByVariantID"),(0,e.Z)(t,"GetSupplierInvoice","/API/Buy/GetSupplierInvoiceRetur"),(0,e.Z)(t,"GetSupplierDTO","/API/Contact/GetSupplierDTO"),(0,e.Z)(t,"LoadFormDelivery","/API/TransferOrderLoader/LoadForm"),(0,e.Z)(t,"DeliveryGenerateNumber","/API/TransferOrder/GenerateNumber"),(0,e.Z)(t,"UpdateCourierList","/API/TransferOrder/UpdateCourierList"),(0,e.Z)(t,"SubmitOutletDelivery","/API/TransferOrder/SubmitOrder"),(0,e.Z)(t,"ClearOutlet","/API/TransferOrder/ClearOutlet"),(0,e.Z)(t,"PaymentListSorting","/API/Setup/SortPaymentMethod"),(0,e.Z)(t,"TaxListSorting","/API/Setup/SortTax"),(0,e.Z)(t,"LoadFormEstimate","/API/Estimate/LoadForm"),(0,e.Z)(t,"EstimateGenerateNumber","/API/Estimate/GenerateNumber"),(0,e.Z)(t,"SubmitEstimate","/API/Estimate/SubmitOrder"),(0,e.Z)(t,"LoadFormAdjustment","/API/Adjustment/LoadForm"),(0,e.Z)(t,"AdjustmentGenerateNumber","/API/Adjustment/GenerateNumber"),(0,e.Z)(t,"SubmitAdjustment","/API/Adjustment/SubmitOrder"),(0,e.Z)(t,"ForecastData","Inventory/Daystozero"),(0,e.Z)(t,"ForecastLoader","InventoryLoader/Daystozero"),t})()},37407:(P,d,l)=>{l.d(d,{G:()=>e});const e={dashboard:{WeeklySales:"Chart"},estimate:{Create:"EstC",Edit:"EstE",Delete:"EstD"},report:{View:"Rep",Advanced:"RepA",Profit:"RepF"},shift:{View:"Shift",Create:"ShiftC",Edit:"ShiftE",Delete:"ShiftD"},contact:{View:"Con",Create:"ConC",Edit:"ConE",Delete:"ConD",LoyaltyPointEditor:"LoyPE",ContactDetail:"ContD",ContactImageEditor:"ContE"},sell:{Create:"Sell",PricebookSelector:"PricebS",Edit:"SellE",Delete:"SellD",Date:"DateE",Number:"NumE",SalesPerson:"SalesmanE",Return:"Return",Discount:"Disc",UnitPriceEditor:"UnitPE",Commission:"Comms",Tax:"Tax",CustomerInputLock:"CustL",Payment:"PayR",PriceVisible:"PriceV",PriceMinimum:"PriceM",Email:"Email",DeleteItem:"DelItm",Shipping:"Ship",PaymentCodeLock:"PayCL",EraseVoidOrd:"EraseVO",RestoreVoidOrd:"RestVO",RetrieveR:"RetrieveR",BundlingPrice:"BundlP",ClearCartRestriction:"ClearCartRestriction",CreditSalesLock:"CredSL",CouponInputLock:"CouponInputLock"},orders:{View:"Ord",SupplierBill:"OrdB",VoidInvoice:"OrdVo",Reprint:"OrdRpr",NoteEditor:"OrdNe",Invoice:"Ordlr"},product:{View:"Prod",Delete:"ProdD",ImageEditor:"ImgE",Create:"ProdC",Edit:"ProdE",Cost:"Cost",BarcodePrinting:"BarP",DeleteAllOutletPrice:"DeleteAllOutletPrice",Expense:"Expense",CommissionView:"CommV"},payment:{View:"Pay",Delete:"PayD",Create:"PayC",Edit:"PayE",PaymentDate:"PayDE"},adjustment:{View:"Adj",Delete:"AdjD",Create:"AdjC",Edit:"AdjE",Approval:"AdjApp",InventoryProductCount:"InvPC"},buy:{Delete:"BuyD",Create:"Buy",Edit:"BuyE",DateEditor:"BuyDE",ShippingRestriction:"BuySh",Approval:"PurA"},logistics:{View:"Del",Create:"DelC",Edit:"DelE",Delete:"DelD",TransferOrderEditor:"DelRE",Outbound:"FulF",TransferOrderApproval:"DelA",TransferDateEditor:"DelDE",TransferOrderReceiver:"DelR"},debt:{View:"Debt",Delete:"DebtD",Create:"DebtC",Edit:"DebtE"},prepaidPackage:{View:"Tre",Create:"TreC",Edit:"TreE",Delete:"TreD",TreatmentIncentive:"TreI",SharePackageEditor:"SharPacE",TreatmentNote:"TreN",Doctor:"Doct"},inventory:{View:"Inv",Edit:"InvE"},promotion:{View:"Prom",Create:"PromC",Edit:"PromE",Delete:"PromD",Coupon:"Cou",Pricebook:"Pri"},accounting:{View:"Act",Create:"ActC",Edit:"ActE",Delete:"ActD",Report:"ActRep",Ledger:"ActL",EmptyOutlet:"ActEO",ClosingEditor:"ActCE",Advanced:"ActRA",Recurring:"ActRec"},users:{View:"Use",Create:"UseC",Edit:"UseE",Delete:"UseD",Groups:"Gro",LoginTimeRestriction:"LogTR",UserIPRestriction:"UseIR",GroupsRestriction:"UseG",LogRestriction:"LogResct"},outlets:{View:"Out",Create:"OutC",Edit:"OutE",Delete:"OutD"},setup:{View:"Stp",Create:"StpC",Edit:"StpE",Delete:"StpD",Webhook:"StpWh",Developer:"StpDev"},service:{View:"Serv"},myProfile:{View:"Prof",Notification:"Notf",Subscription:"Subs",Activity:"Actv"},customerDisplay:{View:"Disp"},orderDisplay:{View:"KitD"},global:{Export:"Export"},apps:{Marketplace:"Mrp",Jurnal:"Jurnal",Tools:"Tools"},fulfillment:{View:"Ful",Edit:"FulE",Create:"FulC",Delete:"FulD",Ship:"FulS"},manufacture:{View:"Man",Create:"ManC",Edit:"ManE",Delete:"ManD"}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1296],{21750:(yt,lt,et)=>{"use strict";et.d(lt,{V:()=>a});var K=et(81180),W=et(67327);class a{constructor(){(0,K.Z)(this,"Prefix",void 0),(0,K.Z)(this,"Seed",void 0),(0,K.Z)(this,"Digit",void 0),this.Prefix=null,this.Seed=null,this.Digit=null}static Generate(t){let e="";if(t.Seed){let r=t.Seed+"";for(;r.length<t.Digit;)r="0"+r;e=W.gT.StringFormat(t.Prefix,r)}return e}}},47134:(yt,lt,et)=>{"use strict";et.d(lt,{e:()=>K});var K=(()=>{return(W=K||(K={}))[W.TYPE=0]="TYPE",W[W.NOTE=1]="NOTE",W[W.OTHER=2]="OTHER",W[W.LOGISTICS=3]="LOGISTICS",W[W.NUMBER=4]="NUMBER",K;var W})()},55706:(yt,lt,et)=>{"use strict";et.d(lt,{Q:()=>K});var K=(()=>{return(W=K||(K={}))[W.cash=1]="cash",W[W.card=2]="card",W[W.emoney=3]="emoney",W[W.other=4]="other",W[W.ECR=99]="ECR",K;var W})()},72480:(yt,lt,et)=>{"use strict";et.d(lt,{z:()=>W});var K=et(81180);class W{constructor(){(0,K.Z)(this,"ID",void 0),(0,K.Z)(this,"Label",void 0),(0,K.Z)(this,"Rate",void 0),(0,K.Z)(this,"CalculationTypeID",void 0),(0,K.Z)(this,"TypeID",void 0),(0,K.Z)(this,"MultipleTaxTypeID",void 0),(0,K.Z)(this,"Note",void 0),(0,K.Z)(this,"Index",void 0),(0,K.Z)(this,"AccountID",void 0),(0,K.Z)(this,"PrintVisible",void 0),(0,K.Z)(this,"Components",void 0)}get taxRate(){return null!=this.Rate||null!=this.Rate?this.Rate:0}}},25873:(yt,lt,et)=>{"use strict";et.d(lt,{u:()=>e});var K=et(81180);let W=(()=>{class r{}return(0,K.Z)(r,"numpad",{layout:{default:["7 8 9 {bksp}","4 5 6 {clear}","1 2 3 {negative}",". 0 {enter}"]},buttonTheme:[{buttons:"{clear}",class:"clear"}],display:{"{bksp}":"\u232b","{enter}":"Done","{clear}":"C","{negative}":"\xb1"}}),r})();var a=et(59634),f=et.n(a),t=et(94650);let e=(()=>{class r{constructor(){(0,K.Z)(this,"_keyboard",void 0)}get keyboard(){return void 0===this._keyboard&&(this._keyboard=new(f())(W.numpad)),this._keyboard}destroy(){this._keyboard&&(this._keyboard.destroy(),this._keyboard=void 0)}}return(0,K.Z)(r,"\u0275fac",function(i){return new(i||r)}),(0,K.Z)(r,"\u0275prov",t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})),r})()},95521:(yt,lt,et)=>{"use strict";et.d(lt,{l:()=>t});var K=et(81180),W=(()=>{return(e=W||(W={}))[e.Thousands=0]="Thousands",e[e.Hundreds=1]="Hundreds",e[e.Tens=2]="Tens",e[e.Ones=3]="Ones",e[e.None=4]="None",e[e.Tenths=5]="Tenths",e[e.Hundredths=6]="Hundredths",W;var e})(),a=(()=>{return(e=a||(a={}))[e.Round=0]="Round",e[e.Floor=1]="Floor",e[e.Ceiling=2]="Ceiling",a;var e})(),f=et(94650);let t=(()=>{class e{Round(n,i,s){let u=n,c=this.ChooiceDecimalPlaceValue(i);return i==W.None||(u=s==a.Round?this.RoundToDecimalPlaceValue(n,c):s==a.Ceiling?this.CeilingWithDecimalPlaceValue(n,c):this.FloorWithDecimalPlaceValue(n,c)),u}CeilingWithDecimalPlaceValue(n,i){if(i<0){let s=-1*i;return Math.ceil(n*s)/s}{let s=Math.ceil(n)/i;return Math.ceil(s)*i}}FloorWithDecimalPlaceValue(n,i){if(i<0){let s=-1*i;return Math.floor(n*s)/s}{let s=Math.floor(n)/i;return Math.floor(s)*i}}RoundToDecimalPlaceValue(n,i){if(i<0){let s=-1*i;return Math.round(n*s)/s}{let s=Math.round(n)/i;return Math.round(s)*i}}ChooiceDecimalPlaceValue(n){let i=0;return n==W.Thousands?i=1e3:n==W.Hundreds?i=100:n==W.Tens?i=10:n==W.Ones?i=1:n==W.None?i=0:n==W.Tenths?i=-10:n==W.Hundredths&&(i=-100),i}}return(0,K.Z)(e,"\u0275fac",function(n){return new(n||e)}),(0,K.Z)(e,"\u0275prov",f.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"})),e})()},29080:(yt,lt,et)=>{"use strict";et.d(lt,{V:()=>f});var K=et(81180),W=et(94650),a=et(24006);let f=(()=>{class t{constructor(r,n){(0,K.Z)(this,"ngControl",void 0),(0,K.Z)(this,"keyboard",void 0),(0,K.Z)(this,"keyboardType",void 0),(0,K.Z)(this,"defaultTheme","hg-theme-default"),(0,K.Z)(this,"nativeElement",void 0),(0,K.Z)(this,"currentValue",void 0),this.ngControl=n,this.nativeElement=r.nativeElement}ngOnChanges(){this.hideKeyboard()}onFocus(){let r=this.isElementDisabled();this.keyboard&&!r&&this.keyboard.setOptions({onChange:n=>this.onChange(n),onKeyPress:n=>this.onKeyPress(n),theme:this.defaultTheme,preventMouseDownDefault:!0,inputName:this.nativeElement.id})}onFocusout(){this.hideKeyboard()}onKeyPress(r){switch(r){case"{clear}":this.propagateChange(null);break;case"{negative}":this.setNegativeValue();break;case"{enter}":this.nativeElement.blur(),this.hideKeyboard();break;case"{bksp}":this.currentValue&&(this.currentValue=this.currentValue.slice(0,-1),this.propagateChange(this.currentValue))}}onChange(r){this.currentValue=r,this.propagateChange(r)}hideKeyboard(){this.keyboard&&this.keyboard.setOptions({theme:"d-none"})}setNegativeValue(){this.currentValue&&(this.currentValue="-"==this.currentValue.charAt(0)?this.currentValue.substring(1):"-"+this.currentValue,this.propagateChange(this.currentValue))}propagateChange(r){r?(r=this.parseValue(r),this.nativeElement.value=r.toString(),this.ngControl.control.setValue(r,{emitEvent:!1}),this.keyboard.setInput(r.toString(),this.nativeElement.id)):(this.keyboard.clearInput(),this.nativeElement.value=null,this.ngControl.control.setValue(null,{emitEvent:!1}))}parseValue(r){let n;return n="number"===this.keyboardType?parseFloat(r):r,n}isElementDisabled(){let r=!1;return(!0===this.nativeElement.readOnly||!0===this.nativeElement.disabled)&&(r=!0),r}}return(0,K.Z)(t,"\u0275fac",function(r){return new(r||t)(W.Y36(W.SBq),W.Y36(a.a5))}),(0,K.Z)(t,"\u0275dir",W.lG2({type:t,selectors:[["","simpleKeyboard",""]],hostBindings:function(r,n){1&r&&W.NdJ("focus",function(s){return n.onFocus(s)})("focusout",function(s){return n.onFocusout(s)})},inputs:{keyboard:["simpleKeyboard","keyboard"],keyboardType:"keyboardType"},features:[W.TTD]})),t})()},59634:function(yt){yt.exports=function(){var lt={9662:function(a,f,t){var e=t(614),r=t(6330),n=TypeError;a.exports=function(i){if(e(i))return i;throw n(r(i)+" is not a function")}},9483:function(a,f,t){var e=t(4411),r=t(6330),n=TypeError;a.exports=function(i){if(e(i))return i;throw n(r(i)+" is not a constructor")}},6077:function(a,f,t){var e=t(614),r=String,n=TypeError;a.exports=function(i){if("object"==typeof i||e(i))return i;throw n("Can't set "+r(i)+" as a prototype")}},1223:function(a,f,t){var e=t(5112),r=t(30),n=t(3070).f,i=e("unscopables"),s=Array.prototype;null==s[i]&&n(s,i,{configurable:!0,value:r(null)}),a.exports=function(u){s[i][u]=!0}},1530:function(a,f,t){"use strict";var e=t(8710).charAt;a.exports=function(r,n,i){return n+(i?e(r,n).length:1)}},9670:function(a,f,t){var e=t(111),r=String,n=TypeError;a.exports=function(i){if(e(i))return i;throw n(r(i)+" is not an object")}},8533:function(a,f,t){"use strict";var e=t(2092).forEach,r=t(9341)("forEach");a.exports=r?[].forEach:function(n){return e(this,n,arguments.length>1?arguments[1]:void 0)}},8457:function(a,f,t){"use strict";var e=t(9974),r=t(6916),n=t(7908),i=t(3411),s=t(7659),u=t(4411),c=t(6244),d=t(6135),v=t(4121),m=t(1246),y=Array;a.exports=function(b){var O=n(b),I=u(this),P=arguments.length,N=P>1?arguments[1]:void 0,A=void 0!==N;A&&(N=e(N,P>2?arguments[2]:void 0));var L,D,F,_,B,R,$=m(O),Z=0;if(!$||this===y&&s($))for(L=c(O),D=I?new this(L):y(L);L>Z;Z++)R=A?N(O[Z],Z):O[Z],d(D,Z,R);else for(B=(_=v(O,$)).next,D=I?new this:[];!(F=r(B,_)).done;Z++)R=A?i(_,N,[F.value,Z],!0):F.value,d(D,Z,R);return D.length=Z,D}},1318:function(a,f,t){var e=t(5656),r=t(1400),n=t(6244),i=function(s){return function(u,c,d){var v,m=e(u),y=n(m),b=r(d,y);if(s&&c!=c){for(;y>b;)if((v=m[b++])!=v)return!0}else for(;y>b;b++)if((s||b in m)&&m[b]===c)return s||b||0;return!s&&-1}};a.exports={includes:i(!0),indexOf:i(!1)}},2092:function(a,f,t){var e=t(9974),r=t(1702),n=t(8361),i=t(7908),s=t(6244),u=t(5417),c=r([].push),d=function(v){var m=1==v,y=2==v,b=3==v,O=4==v,I=6==v,P=7==v,N=5==v||I;return function(A,L,D,F){for(var _,B,R=i(A),$=n(R),Z=e(L,D),Y=s($),G=0,E=F||u,g=m?E(A,Y):y||P?E(A,0):void 0;Y>G;G++)if((N||G in $)&&(B=Z(_=$[G],G,R),v))if(m)g[G]=B;else if(B)switch(v){case 3:return!0;case 5:return _;case 6:return G;case 2:c(g,_)}else switch(v){case 4:return!1;case 7:c(g,_)}return I?-1:b||O?O:g}};a.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},1194:function(a,f,t){var e=t(7293),r=t(5112),n=t(7392),i=r("species");a.exports=function(s){return n>=51||!e(function(){var u=[];return(u.constructor={})[i]=function(){return{foo:1}},1!==u[s](Boolean).foo})}},9341:function(a,f,t){"use strict";var e=t(7293);a.exports=function(r,n){var i=[][r];return!!i&&e(function(){i.call(null,n||function(){return 1},1)})}},3671:function(a,f,t){var e=t(9662),r=t(7908),n=t(8361),i=t(6244),s=TypeError,u=function(c){return function(d,v,m,y){e(v);var b=r(d),O=n(b),I=i(b),P=c?I-1:0,N=c?-1:1;if(m<2)for(;;){if(P in O){y=O[P],P+=N;break}if(P+=N,c?P<0:I<=P)throw s("Reduce of empty array with no initial value")}for(;c?P>=0:I>P;P+=N)P in O&&(y=v(y,O[P],P,b));return y}};a.exports={left:u(!1),right:u(!0)}},3658:function(a,f,t){"use strict";var e=t(9781),r=t(3157),n=TypeError,i=Object.getOwnPropertyDescriptor,s=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}();a.exports=s?function(u,c){if(r(u)&&!i(u,"length").writable)throw n("Cannot set read only .length");return u.length=c}:function(u,c){return u.length=c}},1589:function(a,f,t){var e=t(1400),r=t(6244),n=t(6135),i=Array,s=Math.max;a.exports=function(u,c,d){for(var v=r(u),m=e(c,v),y=e(void 0===d?v:d,v),b=i(s(y-m,0)),O=0;m<y;m++,O++)n(b,O,u[m]);return b.length=O,b}},206:function(a,f,t){var e=t(1702);a.exports=e([].slice)},4362:function(a,f,t){var e=t(1589),r=Math.floor,n=function(u,c){var d=u.length,v=r(d/2);return d<8?i(u,c):s(u,n(e(u,0,v),c),n(e(u,v),c),c)},i=function(u,c){for(var d,v,m=u.length,y=1;y<m;){for(v=y,d=u[y];v&&c(u[v-1],d)>0;)u[v]=u[--v];v!==y++&&(u[v]=d)}return u},s=function(u,c,d,v){for(var m=c.length,y=d.length,b=0,O=0;b<m||O<y;)u[b+O]=b<m&&O<y?v(c[b],d[O])<=0?c[b++]:d[O++]:b<m?c[b++]:d[O++];return u};a.exports=n},7475:function(a,f,t){var e=t(3157),r=t(4411),n=t(111),i=t(5112)("species"),s=Array;a.exports=function(u){var c;return e(u)&&(r(c=u.constructor)&&(c===s||e(c.prototype))||n(c)&&null===(c=c[i]))&&(c=void 0),void 0===c?s:c}},5417:function(a,f,t){var e=t(7475);a.exports=function(r,n){return new(e(r))(0===n?0:n)}},3411:function(a,f,t){var e=t(9670),r=t(9212);a.exports=function(n,i,s,u){try{return u?i(e(s)[0],s[1]):i(s)}catch(c){r(n,"throw",c)}}},7072:function(a,f,t){var e=t(5112)("iterator"),r=!1;try{var n=0,i={next:function(){return{done:!!n++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}a.exports=function(s,u){if(!u&&!r)return!1;var c=!1;try{var d={};d[e]=function(){return{next:function(){return{done:c=!0}}}},s(d)}catch{}return c}},4326:function(a,f,t){var e=t(1702),r=e({}.toString),n=e("".slice);a.exports=function(i){return n(r(i),8,-1)}},648:function(a,f,t){var e=t(1694),r=t(614),n=t(4326),i=t(5112)("toStringTag"),s=Object,u="Arguments"==n(function(){return arguments}());a.exports=e?n:function(c){var d,v,m;return void 0===c?"Undefined":null===c?"Null":"string"==typeof(v=function(y,b){try{return y[b]}catch{}}(d=s(c),i))?v:u?n(d):"Object"==(m=n(d))&&r(d.callee)?"Arguments":m}},9920:function(a,f,t){var e=t(2597),r=t(3887),n=t(1236),i=t(3070);a.exports=function(s,u,c){for(var d=r(u),v=i.f,m=n.f,y=0;y<d.length;y++){var b=d[y];e(s,b)||c&&e(c,b)||v(s,b,m(u,b))}}},4964:function(a,f,t){var e=t(5112)("match");a.exports=function(r){var n=/./;try{"/./"[r](n)}catch{try{return n[e]=!1,"/./"[r](n)}catch{}}return!1}},8544:function(a,f,t){var e=t(7293);a.exports=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},6178:function(a){a.exports=function(f,t){return{value:f,done:t}}},8880:function(a,f,t){var e=t(9781),r=t(3070),n=t(9114);a.exports=e?function(i,s,u){return r.f(i,s,n(1,u))}:function(i,s,u){return i[s]=u,i}},9114:function(a){a.exports=function(f,t){return{enumerable:!(1&f),configurable:!(2&f),writable:!(4&f),value:t}}},6135:function(a,f,t){"use strict";var e=t(4948),r=t(3070),n=t(9114);a.exports=function(i,s,u){var c=e(s);c in i?r.f(i,c,n(0,u)):i[c]=u}},8709:function(a,f,t){"use strict";var e=t(9670),r=t(2140),n=TypeError;a.exports=function(i){if(e(this),"string"===i||"default"===i)i="string";else if("number"!==i)throw n("Incorrect hint");return r(this,i)}},7045:function(a,f,t){var e=t(6339),r=t(3070);a.exports=function(n,i,s){return s.get&&e(s.get,i,{getter:!0}),s.set&&e(s.set,i,{setter:!0}),r.f(n,i,s)}},8052:function(a,f,t){var e=t(614),r=t(3070),n=t(6339),i=t(3072);a.exports=function(s,u,c,d){d||(d={});var v=d.enumerable,m=void 0!==d.name?d.name:u;if(e(c)&&n(c,m,d),d.global)v?s[u]=c:i(u,c);else{try{d.unsafe?s[u]&&(v=!0):delete s[u]}catch{}v?s[u]=c:r.f(s,u,{value:c,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return s}},3072:function(a,f,t){var e=t(7854),r=Object.defineProperty;a.exports=function(n,i){try{r(e,n,{value:i,configurable:!0,writable:!0})}catch{e[n]=i}return i}},5117:function(a,f,t){"use strict";var e=t(6330),r=TypeError;a.exports=function(n,i){if(!delete n[i])throw r("Cannot delete property "+e(i)+" of "+e(n))}},9781:function(a,f,t){var e=t(7293);a.exports=!e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},4154:function(a){var f="object"==typeof document&&document.all;a.exports={all:f,IS_HTMLDDA:void 0===f&&void 0!==f}},317:function(a,f,t){var e=t(7854),r=t(111),n=e.document,i=r(n)&&r(n.createElement);a.exports=function(s){return i?n.createElement(s):{}}},7207:function(a){var f=TypeError;a.exports=function(t){if(t>9007199254740991)throw f("Maximum allowed index exceeded");return t}},8324:function(a){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(a,f,t){var e=t(317)("span").classList,r=e&&e.constructor&&e.constructor.prototype;a.exports=r===Object.prototype?void 0:r},8886:function(a,f,t){var e=t(8113).match(/firefox\/(\d+)/i);a.exports=!!e&&+e[1]},256:function(a,f,t){var e=t(8113);a.exports=/MSIE|Trident/.test(e)},5268:function(a,f,t){var e=t(4326);a.exports=typeof process<"u"&&"process"==e(process)},8113:function(a){a.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7392:function(a,f,t){var e,r,n=t(7854),i=t(8113),s=n.process,u=n.Deno,c=s&&s.versions||u&&u.version,d=c&&c.v8;d&&(r=(e=d.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&i&&(!(e=i.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=i.match(/Chrome\/(\d+)/))&&(r=+e[1]),a.exports=r},8008:function(a,f,t){var e=t(8113).match(/AppleWebKit\/(\d+)\./);a.exports=!!e&&+e[1]},748:function(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(a,f,t){var e=t(7854),r=t(1236).f,n=t(8880),i=t(8052),s=t(3072),u=t(9920),c=t(4705);a.exports=function(d,v){var m,y,b,O,I,P=d.target,N=d.global,A=d.stat;if(m=N?e:A?e[P]||s(P,{}):(e[P]||{}).prototype)for(y in v){if(O=v[y],b=d.dontCallGetSet?(I=r(m,y))&&I.value:m[y],!c(N?y:P+(A?".":"#")+y,d.forced)&&void 0!==b){if(typeof O==typeof b)continue;u(O,b)}(d.sham||b&&b.sham)&&n(O,"sham",!0),i(m,y,O,d)}}},7293:function(a){a.exports=function(f){try{return!!f()}catch{return!0}}},7007:function(a,f,t){"use strict";t(4916);var e=t(1470),r=t(8052),n=t(2261),i=t(7293),s=t(5112),u=t(8880),c=s("species"),d=RegExp.prototype;a.exports=function(v,m,y,b){var O=s(v),I=!i(function(){var L={};return L[O]=function(){return 7},7!=""[v](L)}),P=I&&!i(function(){var L=!1,D=/a/;return"split"===v&&((D={}).constructor={},D.constructor[c]=function(){return D},D.flags="",D[O]=/./[O]),D.exec=function(){return L=!0,null},D[O](""),!L});if(!I||!P||y){var N=e(/./[O]),A=m(O,""[v],function(L,D,F,_,B){var R=e(L),$=D.exec;return $===n||$===d.exec?I&&!B?{done:!0,value:N(D,F,_)}:{done:!0,value:R(F,D,_)}:{done:!1}});r(String.prototype,v,A[0]),r(d,O,A[1])}b&&u(d[O],"sham",!0)}},2104:function(a,f,t){var e=t(4374),r=Function.prototype,n=r.apply,i=r.call;a.exports="object"==typeof Reflect&&Reflect.apply||(e?i.bind(n):function(){return i.apply(n,arguments)})},9974:function(a,f,t){var e=t(1470),r=t(9662),n=t(4374),i=e(e.bind);a.exports=function(s,u){return r(s),void 0===u?s:n?i(s,u):function(){return s.apply(u,arguments)}}},4374:function(a,f,t){var e=t(7293);a.exports=!e(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})},6916:function(a,f,t){var e=t(4374),r=Function.prototype.call;a.exports=e?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(a,f,t){var e=t(9781),r=t(2597),n=Function.prototype,i=e&&Object.getOwnPropertyDescriptor,s=r(n,"name"),u=s&&"something"===function(){}.name,c=s&&(!e||e&&i(n,"name").configurable);a.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},5668:function(a,f,t){var e=t(1702),r=t(9662);a.exports=function(n,i,s){try{return e(r(Object.getOwnPropertyDescriptor(n,i)[s]))}catch{}}},1470:function(a,f,t){var e=t(4326),r=t(1702);a.exports=function(n){if("Function"===e(n))return r(n)}},1702:function(a,f,t){var e=t(4374),r=Function.prototype,n=r.call,i=e&&r.bind.bind(n,n);a.exports=e?i:function(s){return function(){return n.apply(s,arguments)}}},5005:function(a,f,t){var e=t(7854),r=t(614),n=function(i){return r(i)?i:void 0};a.exports=function(i,s){return arguments.length<2?n(e[i]):e[i]&&e[i][s]}},1246:function(a,f,t){var e=t(648),r=t(8173),n=t(8554),i=t(7497),s=t(5112)("iterator");a.exports=function(u){if(!n(u))return r(u,s)||r(u,"@@iterator")||i[e(u)]}},4121:function(a,f,t){var e=t(6916),r=t(9662),n=t(9670),i=t(6330),s=t(1246),u=TypeError;a.exports=function(c,d){var v=arguments.length<2?s(c):d;if(r(v))return n(e(v,c));throw u(i(c)+" is not iterable")}},8044:function(a,f,t){var e=t(1702),r=t(3157),n=t(614),i=t(4326),s=t(1340),u=e([].push);a.exports=function(c){if(n(c))return c;if(r(c)){for(var d=c.length,v=[],m=0;m<d;m++){var y=c[m];"string"==typeof y?u(v,y):"number"!=typeof y&&"Number"!=i(y)&&"String"!=i(y)||u(v,s(y))}var b=v.length,O=!0;return function(I,P){if(O)return O=!1,P;if(r(this))return P;for(var N=0;N<b;N++)if(v[N]===I)return P}}}},8173:function(a,f,t){var e=t(9662),r=t(8554);a.exports=function(n,i){var s=n[i];return r(s)?void 0:e(s)}},647:function(a,f,t){var e=t(1702),r=t(7908),n=Math.floor,i=e("".charAt),s=e("".replace),u=e("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;a.exports=function(v,m,y,b,O,I){var P=y+v.length,N=b.length,A=d;return void 0!==O&&(O=r(O),A=c),s(I,A,function(L,D){var F;switch(i(D,0)){case"$":return"$";case"&":return v;case"`":return u(m,0,y);case"'":return u(m,P);case"<":F=O[u(D,1,-1)];break;default:var _=+D;if(0===_)return L;if(_>N){var B=n(_/10);return 0===B?L:B<=N?void 0===b[B-1]?i(D,1):b[B-1]+i(D,1):L}F=b[_-1]}return void 0===F?"":F})}},7854:function(a,f,t){var e=function(r){return r&&r.Math==Math&&r};a.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t.g&&t.g)||function(){return this}()||Function("return this")()},2597:function(a,f,t){var e=t(1702),r=t(7908),n=e({}.hasOwnProperty);a.exports=Object.hasOwn||function(i,s){return n(r(i),s)}},3501:function(a){a.exports={}},490:function(a,f,t){var e=t(5005);a.exports=e("document","documentElement")},4664:function(a,f,t){var e=t(9781),r=t(7293),n=t(317);a.exports=!e&&!r(function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},8361:function(a,f,t){var e=t(1702),r=t(7293),n=t(4326),i=Object,s=e("".split);a.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(u){return"String"==n(u)?s(u,""):i(u)}:i},9587:function(a,f,t){var e=t(614),r=t(111),n=t(7674);a.exports=function(i,s,u){var c,d;return n&&e(c=s.constructor)&&c!==u&&r(d=c.prototype)&&d!==u.prototype&&n(i,d),i}},2788:function(a,f,t){var e=t(1702),r=t(614),n=t(5465),i=e(Function.toString);r(n.inspectSource)||(n.inspectSource=function(s){return i(s)}),a.exports=n.inspectSource},9909:function(a,f,t){var e,r,n,i=t(4811),s=t(7854),u=t(111),c=t(8880),d=t(2597),v=t(5465),m=t(6200),y=t(3501),b="Object already initialized",O=s.TypeError;if(i||v.state){var P=v.state||(v.state=new(0,s.WeakMap));P.get=P.get,P.has=P.has,P.set=P.set,e=function(A,L){if(P.has(A))throw O(b);return L.facade=A,P.set(A,L),L},r=function(A){return P.get(A)||{}},n=function(A){return P.has(A)}}else{var N=m("state");y[N]=!0,e=function(A,L){if(d(A,N))throw O(b);return L.facade=A,c(A,N,L),L},r=function(A){return d(A,N)?A[N]:{}},n=function(A){return d(A,N)}}a.exports={set:e,get:r,has:n,enforce:function(A){return n(A)?r(A):e(A,{})},getterFor:function(A){return function(L){var D;if(!u(L)||(D=r(L)).type!==A)throw O("Incompatible receiver, "+A+" required");return D}}}},7659:function(a,f,t){var e=t(5112),r=t(7497),n=e("iterator"),i=Array.prototype;a.exports=function(s){return void 0!==s&&(r.Array===s||i[n]===s)}},3157:function(a,f,t){var e=t(4326);a.exports=Array.isArray||function(r){return"Array"==e(r)}},614:function(a,f,t){var e=t(4154),r=e.all;a.exports=e.IS_HTMLDDA?function(n){return"function"==typeof n||n===r}:function(n){return"function"==typeof n}},4411:function(a,f,t){var e=t(1702),r=t(7293),n=t(614),i=t(648),s=t(5005),u=t(2788),c=function(){},d=[],v=s("Reflect","construct"),m=/^\s*(?:class|function)\b/,y=e(m.exec),b=!m.exec(c),O=function(P){if(!n(P))return!1;try{return v(c,d,P),!0}catch{return!1}},I=function(P){if(!n(P))return!1;switch(i(P)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!y(m,u(P))}catch{return!0}};I.sham=!0,a.exports=!v||r(function(){var P;return O(O.call)||!O(Object)||!O(function(){P=!0})||P})?I:O},4705:function(a,f,t){var e=t(7293),r=t(614),n=/#|\.prototype\./,i=function(v,m){var y=u[s(v)];return y==d||y!=c&&(r(m)?e(m):!!m)},s=i.normalize=function(v){return String(v).replace(n,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",d=i.POLYFILL="P";a.exports=i},5988:function(a,f,t){var e=t(111),r=Math.floor;a.exports=Number.isInteger||function(n){return!e(n)&&isFinite(n)&&r(n)===n}},8554:function(a){a.exports=function(f){return null==f}},111:function(a,f,t){var e=t(614),r=t(4154),n=r.all;a.exports=r.IS_HTMLDDA?function(i){return"object"==typeof i?null!==i:e(i)||i===n}:function(i){return"object"==typeof i?null!==i:e(i)}},1913:function(a){a.exports=!1},7850:function(a,f,t){var e=t(111),r=t(4326),n=t(5112)("match");a.exports=function(i){var s;return e(i)&&(void 0!==(s=i[n])?!!s:"RegExp"==r(i))}},2190:function(a,f,t){var e=t(5005),r=t(614),n=t(7976),i=t(3307),s=Object;a.exports=i?function(u){return"symbol"==typeof u}:function(u){var c=e("Symbol");return r(c)&&n(c.prototype,s(u))}},9212:function(a,f,t){var e=t(6916),r=t(9670),n=t(8173);a.exports=function(i,s,u){var c,d;r(i);try{if(!(c=n(i,"return"))){if("throw"===s)throw u;return u}c=e(c,i)}catch(v){d=!0,c=v}if("throw"===s)throw u;if(d)throw c;return r(c),u}},3061:function(a,f,t){"use strict";var e=t(3383).IteratorPrototype,r=t(30),n=t(9114),i=t(8003),s=t(7497),u=function(){return this};a.exports=function(c,d,v,m){var y=d+" Iterator";return c.prototype=r(e,{next:n(+!m,v)}),i(c,y,!1,!0),s[y]=u,c}},1656:function(a,f,t){"use strict";var e=t(2109),r=t(6916),n=t(1913),i=t(6530),s=t(614),u=t(3061),c=t(9518),d=t(7674),v=t(8003),m=t(8880),y=t(8052),b=t(5112),O=t(7497),I=t(3383),P=i.PROPER,N=i.CONFIGURABLE,A=I.IteratorPrototype,L=I.BUGGY_SAFARI_ITERATORS,D=b("iterator"),F="keys",_="values",B="entries",R=function(){return this};a.exports=function($,Z,Y,G,E,g,S){u(Y,Z,G);var x,o,l,p=function(j){if(j===E&&k)return k;if(!L&&j in C)return C[j];switch(j){case F:case _:case B:return function(){return new Y(this,j)}}return function(){return new Y(this)}},h=Z+" Iterator",M=!1,C=$.prototype,w=C[D]||C["@@iterator"]||E&&C[E],k=!L&&w||p(E),V="Array"==Z&&C.entries||w;if(V&&(x=c(V.call(new $)))!==Object.prototype&&x.next&&(n||c(x)===A||(d?d(x,A):s(x[D])||y(x,D,R)),v(x,h,!0,!0),n&&(O[h]=R)),P&&E==_&&w&&w.name!==_&&(!n&&N?m(C,"name",_):(M=!0,k=function(){return r(w,this)})),E)if(o={values:p(_),keys:g?k:p(F),entries:p(B)},S)for(l in o)(L||M||!(l in C))&&y(C,l,o[l]);else e({target:Z,proto:!0,forced:L||M},o);return n&&!S||C[D]===k||y(C,D,k,{name:E}),O[Z]=k,o}},3383:function(a,f,t){"use strict";var e,r,n,i=t(7293),s=t(614),u=t(111),c=t(30),d=t(9518),v=t(8052),m=t(5112),y=t(1913),b=m("iterator"),O=!1;[].keys&&("next"in(n=[].keys())?(r=d(d(n)))!==Object.prototype&&(e=r):O=!0),!u(e)||i(function(){var I={};return e[b].call(I)!==I})?e={}:y&&(e=c(e)),s(e[b])||v(e,b,function(){return this}),a.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:O}},7497:function(a){a.exports={}},6244:function(a,f,t){var e=t(7466);a.exports=function(r){return e(r.length)}},6339:function(a,f,t){var e=t(1702),r=t(7293),n=t(614),i=t(2597),s=t(9781),u=t(6530).CONFIGURABLE,c=t(2788),d=t(9909),v=d.enforce,m=d.get,y=String,b=Object.defineProperty,O=e("".slice),I=e("".replace),P=e([].join),N=s&&!r(function(){return 8!==b(function(){},"length",{value:8}).length}),A=String(String).split("String"),L=a.exports=function(D,F,_){"Symbol("===O(y(F),0,7)&&(F="["+I(y(F),/^Symbol\(([^)]*)\)/,"$1")+"]"),_&&_.getter&&(F="get "+F),_&&_.setter&&(F="set "+F),(!i(D,"name")||u&&D.name!==F)&&(s?b(D,"name",{value:F,configurable:!0}):D.name=F),N&&_&&i(_,"arity")&&D.length!==_.arity&&b(D,"length",{value:_.arity});try{_&&i(_,"constructor")&&_.constructor?s&&b(D,"prototype",{writable:!1}):D.prototype&&(D.prototype=void 0)}catch{}var B=v(D);return i(B,"source")||(B.source=P(A,"string"==typeof F?F:"")),D};Function.prototype.toString=L(function(){return n(this)&&m(this).source||c(this)},"toString")},4758:function(a){var f=Math.ceil,t=Math.floor;a.exports=Math.trunc||function(e){var r=+e;return(r>0?t:f)(r)}},3929:function(a,f,t){var e=t(7850),r=TypeError;a.exports=function(n){if(e(n))throw r("The method doesn't accept regular expressions");return n}},1574:function(a,f,t){"use strict";var e=t(9781),r=t(1702),n=t(6916),i=t(7293),s=t(1956),u=t(5181),c=t(5296),d=t(7908),v=t(8361),m=Object.assign,y=Object.defineProperty,b=r([].concat);a.exports=!m||i(function(){if(e&&1!==m({b:1},m(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var O={},I={},P=Symbol(),N="abcdefghijklmnopqrst";return O[P]=7,N.split("").forEach(function(A){I[A]=A}),7!=m({},O)[P]||s(m({},I)).join("")!=N})?function(O,I){for(var P=d(O),N=arguments.length,A=1,L=u.f,D=c.f;N>A;)for(var F,_=v(arguments[A++]),B=L?b(s(_),L(_)):s(_),R=B.length,$=0;R>$;)F=B[$++],e&&!n(D,_,F)||(P[F]=_[F]);return P}:m},30:function(a,f,t){var e,r=t(9670),n=t(6048),i=t(748),s=t(3501),u=t(490),c=t(317),d=t(6200),v="prototype",m="script",y=d("IE_PROTO"),b=function(){},O=function(N){return"<"+m+">"+N+"</"+m+">"},I=function(N){N.write(O("")),N.close();var A=N.parentWindow.Object;return N=null,A},P=function(){try{e=new ActiveXObject("htmlfile")}catch{}var N,A,L;P=typeof document<"u"?document.domain&&e?I(e):(A=c("iframe"),L="java"+m+":",A.style.display="none",u.appendChild(A),A.src=String(L),(N=A.contentWindow.document).open(),N.write(O("document.F=Object")),N.close(),N.F):I(e);for(var D=i.length;D--;)delete P[v][i[D]];return P()};s[y]=!0,a.exports=Object.create||function(N,A){var L;return null!==N?(b[v]=r(N),L=new b,b[v]=null,L[y]=N):L=P(),void 0===A?L:n.f(L,A)}},6048:function(a,f,t){var e=t(9781),r=t(3353),n=t(3070),i=t(9670),s=t(5656),u=t(1956);f.f=e&&!r?Object.defineProperties:function(c,d){i(c);for(var v,m=s(d),y=u(d),b=y.length,O=0;b>O;)n.f(c,v=y[O++],m[v]);return c}},3070:function(a,f,t){var e=t(9781),r=t(4664),n=t(3353),i=t(9670),s=t(4948),u=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,v="enumerable",m="configurable",y="writable";f.f=e?n?function(b,O,I){if(i(b),O=s(O),i(I),"function"==typeof b&&"prototype"===O&&"value"in I&&y in I&&!I[y]){var P=d(b,O);P&&P[y]&&(b[O]=I.value,I={configurable:m in I?I[m]:P[m],enumerable:v in I?I[v]:P[v],writable:!1})}return c(b,O,I)}:c:function(b,O,I){if(i(b),O=s(O),i(I),r)try{return c(b,O,I)}catch{}if("get"in I||"set"in I)throw u("Accessors not supported");return"value"in I&&(b[O]=I.value),b}},1236:function(a,f,t){var e=t(9781),r=t(6916),n=t(5296),i=t(9114),s=t(5656),u=t(4948),c=t(2597),d=t(4664),v=Object.getOwnPropertyDescriptor;f.f=e?v:function(m,y){if(m=s(m),y=u(y),d)try{return v(m,y)}catch{}if(c(m,y))return i(!r(n.f,m,y),m[y])}},1156:function(a,f,t){var e=t(4326),r=t(5656),n=t(8006).f,i=t(1589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];a.exports.f=function(u){return s&&"Window"==e(u)?function(c){try{return n(c)}catch{return i(s)}}(u):n(r(u))}},8006:function(a,f,t){var e=t(6324),r=t(748).concat("length","prototype");f.f=Object.getOwnPropertyNames||function(n){return e(n,r)}},5181:function(a,f){f.f=Object.getOwnPropertySymbols},9518:function(a,f,t){var e=t(2597),r=t(614),n=t(7908),i=t(6200),s=t(8544),u=i("IE_PROTO"),c=Object,d=c.prototype;a.exports=s?c.getPrototypeOf:function(v){var m=n(v);if(e(m,u))return m[u];var y=m.constructor;return r(y)&&m instanceof y?y.prototype:m instanceof c?d:null}},7976:function(a,f,t){var e=t(1702);a.exports=e({}.isPrototypeOf)},6324:function(a,f,t){var e=t(1702),r=t(2597),n=t(5656),i=t(1318).indexOf,s=t(3501),u=e([].push);a.exports=function(c,d){var v,m=n(c),y=0,b=[];for(v in m)!r(s,v)&&r(m,v)&&u(b,v);for(;d.length>y;)r(m,v=d[y++])&&(~i(b,v)||u(b,v));return b}},1956:function(a,f,t){var e=t(6324),r=t(748);a.exports=Object.keys||function(n){return e(n,r)}},5296:function(a,f){"use strict";var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);f.f=r?function(n){var i=e(this,n);return!!i&&i.enumerable}:t},9026:function(a,f,t){"use strict";var e=t(1913),r=t(7854),n=t(7293),i=t(8008);a.exports=e||!n(function(){if(!(i&&i<535)){var s=Math.random();__defineSetter__.call(null,s,function(){}),delete r[s]}})},7674:function(a,f,t){var e=t(5668),r=t(9670),n=t(6077);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,s=!1,u={};try{(i=e(Object.prototype,"__proto__","set"))(u,[]),s=u instanceof Array}catch{}return function(c,d){return r(c),n(d),s?i(c,d):c.__proto__=d,c}}():void 0)},288:function(a,f,t){"use strict";var e=t(1694),r=t(648);a.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(a,f,t){var e=t(6916),r=t(614),n=t(111),i=TypeError;a.exports=function(s,u){var c,d;if("string"===u&&r(c=s.toString)&&!n(d=e(c,s))||r(c=s.valueOf)&&!n(d=e(c,s))||"string"!==u&&r(c=s.toString)&&!n(d=e(c,s)))return d;throw i("Can't convert object to primitive value")}},3887:function(a,f,t){var e=t(5005),r=t(1702),n=t(8006),i=t(5181),s=t(9670),u=r([].concat);a.exports=e("Reflect","ownKeys")||function(c){var d=n.f(s(c)),v=i.f;return v?u(d,v(c)):d}},857:function(a,f,t){var e=t(7854);a.exports=e},2626:function(a,f,t){var e=t(3070).f;a.exports=function(r,n,i){i in r||e(r,i,{configurable:!0,get:function(){return n[i]},set:function(s){n[i]=s}})}},7651:function(a,f,t){var e=t(6916),r=t(9670),n=t(614),i=t(4326),s=t(2261),u=TypeError;a.exports=function(c,d){var v=c.exec;if(n(v)){var m=e(v,c,d);return null!==m&&r(m),m}if("RegExp"===i(c))return e(s,c,d);throw u("RegExp#exec called on incompatible receiver")}},2261:function(a,f,t){"use strict";var e,r,n=t(6916),i=t(1702),s=t(1340),u=t(7066),c=t(2999),d=t(2309),v=t(30),m=t(9909).get,y=t(9441),b=t(7168),O=d("native-string-replace",String.prototype.replace),I=RegExp.prototype.exec,P=I,N=i("".charAt),A=i("".indexOf),L=i("".replace),D=i("".slice),F=(r=/b*/g,n(I,e=/a/,"a"),n(I,r,"a"),0!==e.lastIndex||0!==r.lastIndex),_=c.BROKEN_CARET,B=void 0!==/()??/.exec("")[1];(F||B||_||y||b)&&(P=function(R){var $,Z,Y,G,E,g,S,x=this,o=m(x),l=s(R),p=o.raw;if(p)return p.lastIndex=x.lastIndex,$=n(P,p,l),x.lastIndex=p.lastIndex,$;var h=o.groups,M=_&&x.sticky,C=n(u,x),w=x.source,k=0,V=l;if(M&&(C=L(C,"y",""),-1===A(C,"g")&&(C+="g"),V=D(l,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==N(l,x.lastIndex-1))&&(w="(?: "+w+")",V=" "+V,k++),Z=new RegExp("^(?:"+w+")",C)),B&&(Z=new RegExp("^"+w+"$(?!\\s)",C)),F&&(Y=x.lastIndex),G=n(I,M?Z:x,V),M?G?(G.input=D(G.input,k),G[0]=D(G[0],k),G.index=x.lastIndex,x.lastIndex+=G[0].length):x.lastIndex=0:F&&G&&(x.lastIndex=x.global?G.index+G[0].length:Y),B&&G&&G.length>1&&n(O,G[0],Z,function(){for(E=1;E<arguments.length-2;E++)void 0===arguments[E]&&(G[E]=void 0)}),G&&h)for(G.groups=g=v(null),E=0;E<h.length;E++)g[(S=h[E])[0]]=G[S[1]];return G}),a.exports=P},7066:function(a,f,t){"use strict";var e=t(9670);a.exports=function(){var r=e(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}},4706:function(a,f,t){var e=t(6916),r=t(2597),n=t(7976),i=t(7066),s=RegExp.prototype;a.exports=function(u){var c=u.flags;return void 0!==c||"flags"in s||r(u,"flags")||!n(s,u)?c:e(i,u)}},2999:function(a,f,t){var e=t(7293),r=t(7854).RegExp,n=e(function(){var u=r("a","y");return u.lastIndex=2,null!=u.exec("abcd")}),i=n||e(function(){return!r("a","y").sticky}),s=n||e(function(){var u=r("^r","gy");return u.lastIndex=2,null!=u.exec("str")});a.exports={BROKEN_CARET:s,MISSED_STICKY:i,UNSUPPORTED_Y:n}},9441:function(a,f,t){var e=t(7293),r=t(7854).RegExp;a.exports=e(function(){var n=r(".","s");return!(n.dotAll&&n.exec("\n")&&"s"===n.flags)})},7168:function(a,f,t){var e=t(7293),r=t(7854).RegExp;a.exports=e(function(){var n=r("(?<a>b)","g");return"b"!==n.exec("b").groups.a||"bc"!=="b".replace(n,"$<a>c")})},4488:function(a,f,t){var e=t(8554),r=TypeError;a.exports=function(n){if(e(n))throw r("Can't call method on "+n);return n}},6340:function(a,f,t){"use strict";var e=t(5005),r=t(7045),n=t(5112),i=t(9781),s=n("species");a.exports=function(u){var c=e(u);i&&c&&!c[s]&&r(c,s,{configurable:!0,get:function(){return this}})}},8003:function(a,f,t){var e=t(3070).f,r=t(2597),n=t(5112)("toStringTag");a.exports=function(i,s,u){i&&!u&&(i=i.prototype),i&&!r(i,n)&&e(i,n,{configurable:!0,value:s})}},6200:function(a,f,t){var e=t(2309),r=t(9711),n=e("keys");a.exports=function(i){return n[i]||(n[i]=r(i))}},5465:function(a,f,t){var e=t(7854),r=t(3072),n="__core-js_shared__",i=e[n]||r(n,{});a.exports=i},2309:function(a,f,t){var e=t(1913),r=t(5465);(a.exports=function(n,i){return r[n]||(r[n]=void 0!==i?i:{})})("versions",[]).push({version:"3.29.1",mode:e?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(a,f,t){var e=t(9670),r=t(9483),n=t(8554),i=t(5112)("species");a.exports=function(s,u){var c,d=e(s).constructor;return void 0===d||n(c=e(d)[i])?u:r(c)}},8710:function(a,f,t){var e=t(1702),r=t(9303),n=t(1340),i=t(4488),s=e("".charAt),u=e("".charCodeAt),c=e("".slice),d=function(v){return function(m,y){var b,O,I=n(i(m)),P=r(y),N=I.length;return P<0||P>=N?v?"":void 0:(b=u(I,P))<55296||b>56319||P+1===N||(O=u(I,P+1))<56320||O>57343?v?s(I,P):b:v?c(I,P,P+2):O-56320+(b-55296<<10)+65536}};a.exports={codeAt:d(!1),charAt:d(!0)}},6091:function(a,f,t){var e=t(6530).PROPER,r=t(7293),n=t(1361);a.exports=function(i){return r(function(){return!!n[i]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[i]()||e&&n[i].name!==i})}},3111:function(a,f,t){var e=t(1702),r=t(4488),n=t(1340),i=t(1361),s=e("".replace),u=RegExp("^["+i+"]+"),c=RegExp("(^|[^"+i+"])["+i+"]+$"),d=function(v){return function(m){var y=n(r(m));return 1&v&&(y=s(y,u,"")),2&v&&(y=s(y,c,"$1")),y}};a.exports={start:d(1),end:d(2),trim:d(3)}},6293:function(a,f,t){var e=t(7392),r=t(7293);a.exports=!!Object.getOwnPropertySymbols&&!r(function(){var n=Symbol();return!String(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&e&&e<41})},6532:function(a,f,t){var e=t(6916),r=t(5005),n=t(5112),i=t(8052);a.exports=function(){var s=r("Symbol"),u=s&&s.prototype,c=u&&u.valueOf,d=n("toPrimitive");u&&!u[d]&&i(u,d,function(v){return e(c,this)},{arity:1})}},2015:function(a,f,t){var e=t(6293);a.exports=e&&!!Symbol.for&&!!Symbol.keyFor},863:function(a,f,t){var e=t(1702);a.exports=e(1..valueOf)},1400:function(a,f,t){var e=t(9303),r=Math.max,n=Math.min;a.exports=function(i,s){var u=e(i);return u<0?r(u+s,0):n(u,s)}},5656:function(a,f,t){var e=t(8361),r=t(4488);a.exports=function(n){return e(r(n))}},9303:function(a,f,t){var e=t(4758);a.exports=function(r){var n=+r;return n!=n||0===n?0:e(n)}},7466:function(a,f,t){var e=t(9303),r=Math.min;a.exports=function(n){return n>0?r(e(n),9007199254740991):0}},7908:function(a,f,t){var e=t(4488),r=Object;a.exports=function(n){return r(e(n))}},7593:function(a,f,t){var e=t(6916),r=t(111),n=t(2190),i=t(8173),s=t(2140),u=t(5112),c=TypeError,d=u("toPrimitive");a.exports=function(v,m){if(!r(v)||n(v))return v;var y,b=i(v,d);if(b){if(void 0===m&&(m="default"),y=e(b,v,m),!r(y)||n(y))return y;throw c("Can't convert object to primitive value")}return void 0===m&&(m="number"),s(v,m)}},4948:function(a,f,t){var e=t(7593),r=t(2190);a.exports=function(n){var i=e(n,"string");return r(i)?i:i+""}},1694:function(a,f,t){var e={};e[t(5112)("toStringTag")]="z",a.exports="[object z]"===String(e)},1340:function(a,f,t){var e=t(648),r=String;a.exports=function(n){if("Symbol"===e(n))throw TypeError("Cannot convert a Symbol value to a string");return r(n)}},6330:function(a){var f=String;a.exports=function(t){try{return f(t)}catch{return"Object"}}},9711:function(a,f,t){var e=t(1702),r=0,n=Math.random(),i=e(1..toString);a.exports=function(s){return"Symbol("+(void 0===s?"":s)+")_"+i(++r+n,36)}},3307:function(a,f,t){var e=t(6293);a.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(a,f,t){var e=t(9781),r=t(7293);a.exports=e&&r(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},4811:function(a,f,t){var e=t(7854),r=t(614),n=e.WeakMap;a.exports=r(n)&&/native code/.test(String(n))},6800:function(a,f,t){var e=t(857),r=t(2597),n=t(6061),i=t(3070).f;a.exports=function(s){var u=e.Symbol||(e.Symbol={});r(u,s)||i(u,s,{value:n.f(s)})}},6061:function(a,f,t){var e=t(5112);f.f=e},5112:function(a,f,t){var e=t(7854),r=t(2309),n=t(2597),i=t(9711),s=t(6293),u=t(3307),c=e.Symbol,d=r("wks"),v=u?c.for||c:c&&c.withoutSetter||i;a.exports=function(m){return n(d,m)||(d[m]=s&&n(c,m)?c[m]:v("Symbol."+m)),d[m]}},1361:function(a){a.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},2222:function(a,f,t){"use strict";var e=t(2109),r=t(7293),n=t(3157),i=t(111),s=t(7908),u=t(6244),c=t(7207),d=t(6135),v=t(5417),m=t(1194),y=t(5112),b=t(7392),O=y("isConcatSpreadable"),I=b>=51||!r(function(){var N=[];return N[O]=!1,N.concat()[0]!==N}),P=function(N){if(!i(N))return!1;var A=N[O];return void 0!==A?!!A:n(N)};e({target:"Array",proto:!0,arity:1,forced:!I||!m("concat")},{concat:function(N){var A,L,D,F,_,B=s(this),R=v(B,0),$=0;for(A=-1,D=arguments.length;A<D;A++)if(P(_=-1===A?B:arguments[A]))for(F=u(_),c($+F),L=0;L<F;L++,$++)L in _&&d(R,$,_[L]);else c($+1),d(R,$++,_);return R.length=$,R}})},7327:function(a,f,t){"use strict";var e=t(2109),r=t(2092).filter;e({target:"Array",proto:!0,forced:!t(1194)("filter")},{filter:function(n){return r(this,n,arguments.length>1?arguments[1]:void 0)}})},1038:function(a,f,t){var e=t(2109),r=t(8457);e({target:"Array",stat:!0,forced:!t(7072)(function(n){Array.from(n)})},{from:r})},6699:function(a,f,t){"use strict";var e=t(2109),r=t(1318).includes,n=t(7293),i=t(1223);e({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),i("includes")},2772:function(a,f,t){"use strict";var e=t(2109),r=t(1470),n=t(1318).indexOf,i=t(9341),s=r([].indexOf),u=!!s&&1/s([1],1,-0)<0;e({target:"Array",proto:!0,forced:u||!i("indexOf")},{indexOf:function(c){var d=arguments.length>1?arguments[1]:void 0;return u?s(this,c,d)||0:n(this,c,d)}})},6992:function(a,f,t){"use strict";var e=t(5656),r=t(1223),n=t(7497),i=t(9909),s=t(3070).f,u=t(1656),c=t(6178),d=t(1913),v=t(9781),m="Array Iterator",y=i.set,b=i.getterFor(m);a.exports=u(Array,"Array",function(I,P){y(this,{type:m,target:e(I),index:0,kind:P})},function(){var I=b(this),P=I.target,N=I.kind,A=I.index++;return!P||A>=P.length?(I.target=void 0,c(void 0,!0)):c("keys"==N?A:"values"==N?P[A]:[A,P[A]],!1)},"values");var O=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!d&&v&&"values"!==O.name)try{s(O,"name",{value:"values"})}catch{}},9600:function(a,f,t){"use strict";var e=t(2109),r=t(1702),n=t(8361),i=t(5656),s=t(9341),u=r([].join);e({target:"Array",proto:!0,forced:n!=Object||!s("join",",")},{join:function(c){return u(i(this),void 0===c?",":c)}})},1249:function(a,f,t){"use strict";var e=t(2109),r=t(2092).map;e({target:"Array",proto:!0,forced:!t(1194)("map")},{map:function(n){return r(this,n,arguments.length>1?arguments[1]:void 0)}})},5827:function(a,f,t){"use strict";var e=t(2109),r=t(3671).left,n=t(9341),i=t(7392);e({target:"Array",proto:!0,forced:!t(5268)&&i>79&&i<83||!n("reduce")},{reduce:function(s){var u=arguments.length;return r(this,s,u,u>1?arguments[1]:void 0)}})},7042:function(a,f,t){"use strict";var e=t(2109),r=t(3157),n=t(4411),i=t(111),s=t(1400),u=t(6244),c=t(5656),d=t(6135),v=t(5112),m=t(1194),y=t(206),b=m("slice"),O=v("species"),I=Array,P=Math.max;e({target:"Array",proto:!0,forced:!b},{slice:function(N,A){var L,D,F,_=c(this),B=u(_),R=s(N,B),$=s(void 0===A?B:A,B);if(r(_)&&((n(L=_.constructor)&&(L===I||r(L.prototype))||i(L)&&null===(L=L[O]))&&(L=void 0),L===I||void 0===L))return y(_,R,$);for(D=new(void 0===L?I:L)(P($-R,0)),F=0;R<$;R++,F++)R in _&&d(D,F,_[R]);return D.length=F,D}})},2707:function(a,f,t){"use strict";var e=t(2109),r=t(1702),n=t(9662),i=t(7908),s=t(6244),u=t(5117),c=t(1340),d=t(7293),v=t(4362),m=t(9341),y=t(8886),b=t(256),O=t(7392),I=t(8008),P=[],N=r(P.sort),A=r(P.push),L=d(function(){P.sort(void 0)}),D=d(function(){P.sort(null)}),F=m("sort"),_=!d(function(){if(O)return O<70;if(!(y&&y>3)){if(b)return!0;if(I)return I<603;var B,R,$,Z,Y="";for(B=65;B<76;B++){switch(R=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:$=3;break;case 68:case 71:$=4;break;default:$=2}for(Z=0;Z<47;Z++)P.push({k:R+Z,v:$})}for(P.sort(function(G,E){return E.v-G.v}),Z=0;Z<P.length;Z++)R=P[Z].k.charAt(0),Y.charAt(Y.length-1)!==R&&(Y+=R);return"DGBEFHACIJK"!==Y}});e({target:"Array",proto:!0,forced:L||!D||!F||!_},{sort:function(B){void 0!==B&&n(B);var R=i(this);if(_)return void 0===B?N(R):N(R,B);var $,Z,Y=[],G=s(R);for(Z=0;Z<G;Z++)Z in R&&A(Y,R[Z]);for(v(Y,function(E){return function(g,S){return void 0===S?-1:void 0===g?1:void 0!==E?+E(g,S)||0:c(g)>c(S)?1:-1}}(B)),$=s(Y),Z=0;Z<$;)R[Z]=Y[Z++];for(;Z<G;)u(R,Z++);return R}})},561:function(a,f,t){"use strict";var e=t(2109),r=t(7908),n=t(1400),i=t(9303),s=t(6244),u=t(3658),c=t(7207),d=t(5417),v=t(6135),m=t(5117),y=t(1194)("splice"),b=Math.max,O=Math.min;e({target:"Array",proto:!0,forced:!y},{splice:function(I,P){var N,A,L,D,F,_,B=r(this),R=s(B),$=n(I,R),Z=arguments.length;for(0===Z?N=A=0:1===Z?(N=0,A=R-$):(N=Z-2,A=O(b(i(P),0),R-$)),c(R+N-A),L=d(B,A),D=0;D<A;D++)(F=$+D)in B&&v(L,D,B[F]);if(L.length=A,N<A){for(D=$;D<R-A;D++)_=D+N,(F=D+A)in B?B[_]=B[F]:m(B,_);for(D=R;D>R-A+N;D--)m(B,D-1)}else if(N>A)for(D=R-A;D>$;D--)_=D+N-1,(F=D+A-1)in B?B[_]=B[F]:m(B,_);for(D=0;D<N;D++)B[D+$]=arguments[D+2];return u(B,R-A+N),L}})},6078:function(a,f,t){var e=t(2597),r=t(8052),n=t(8709),i=t(5112)("toPrimitive"),s=Date.prototype;e(s,i)||r(s,i,n)},8309:function(a,f,t){var e=t(9781),r=t(6530).EXISTS,n=t(1702),i=t(7045),s=Function.prototype,u=n(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=n(c.exec);e&&!r&&i(s,"name",{configurable:!0,get:function(){try{return d(c,u(this))[1]}catch{return""}}})},8862:function(a,f,t){var e=t(2109),r=t(5005),n=t(2104),i=t(6916),s=t(1702),u=t(7293),c=t(614),d=t(2190),v=t(206),m=t(8044),y=t(6293),b=String,O=r("JSON","stringify"),I=s(/./.exec),P=s("".charAt),N=s("".charCodeAt),A=s("".replace),L=s(1..toString),D=/[\uD800-\uDFFF]/g,F=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,B=!y||u(function(){var Y=r("Symbol")();return"[null]"!=O([Y])||"{}"!=O({a:Y})||"{}"!=O(Object(Y))}),R=u(function(){return'"\\udf06\\ud834"'!==O("\udf06\ud834")||'"\\udead"'!==O("\udead")}),$=function(Y,G){var E=v(arguments),g=m(G);if(c(g)||void 0!==Y&&!d(Y))return E[1]=function(S,x){if(c(g)&&(x=i(g,this,b(S),x)),!d(x))return x},n(O,null,E)},Z=function(Y,G,E){var g=P(E,G-1),S=P(E,G+1);return I(F,Y)&&!I(_,S)||I(_,Y)&&!I(F,g)?"\\u"+L(N(Y,0),16):Y};O&&e({target:"JSON",stat:!0,arity:3,forced:B||R},{stringify:function(Y,G,E){var g=v(arguments),S=n(B?$:O,null,g);return R&&"string"==typeof S?A(S,D,Z):S}})},9653:function(a,f,t){"use strict";var e=t(2109),r=t(1913),n=t(9781),i=t(7854),s=t(857),u=t(1702),c=t(4705),d=t(2597),v=t(9587),m=t(7976),y=t(2190),b=t(7593),O=t(7293),I=t(8006).f,P=t(1236).f,N=t(3070).f,A=t(863),L=t(3111).trim,D="Number",F=i[D],_=s[D],B=F.prototype,R=i.TypeError,$=u("".slice),Z=u("".charCodeAt),Y=function(o){var l=b(o,"number");return"bigint"==typeof l?l:G(l)},G=function(o){var l,p,h,M,C,w,k,V,j=b(o,"number");if(y(j))throw R("Cannot convert a Symbol value to a number");if("string"==typeof j&&j.length>2)if(j=L(j),43===(l=Z(j,0))||45===l){if(88===(p=Z(j,2))||120===p)return NaN}else if(48===l){switch(Z(j,1)){case 66:case 98:h=2,M=49;break;case 79:case 111:h=8,M=55;break;default:return+j}for(w=(C=$(j,2)).length,k=0;k<w;k++)if((V=Z(C,k))<48||V>M)return NaN;return parseInt(C,h)}return+j},E=c(D,!F(" 0o1")||!F("0b1")||F("+0x1")),g=function(o){return m(B,o)&&O(function(){A(o)})},S=function(o){var l=arguments.length<1?0:F(Y(o));return g(this)?v(Object(l),this,S):l};S.prototype=B,E&&!r&&(B.constructor=S),e({global:!0,constructor:!0,wrap:!0,forced:E},{Number:S});var x=function(o,l){for(var p,h=n?I(l):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),M=0;h.length>M;M++)d(l,p=h[M])&&!d(o,p)&&N(o,p,P(l,p))};r&&_&&x(s[D],_),(E||r)&&x(s[D],F)},3161:function(a,f,t){t(2109)({target:"Number",stat:!0},{isInteger:t(5988)})},9601:function(a,f,t){var e=t(2109),r=t(1574);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},9595:function(a,f,t){"use strict";var e=t(2109),r=t(9781),n=t(9026),i=t(9662),s=t(7908),u=t(3070);r&&e({target:"Object",proto:!0,forced:n},{__defineGetter__:function(c,d){u.f(s(this),c,{get:i(d),enumerable:!0,configurable:!0})}})},5003:function(a,f,t){var e=t(2109),r=t(7293),n=t(5656),i=t(1236).f,s=t(9781);e({target:"Object",stat:!0,forced:!s||r(function(){i(1)}),sham:!s},{getOwnPropertyDescriptor:function(u,c){return i(n(u),c)}})},9337:function(a,f,t){var e=t(2109),r=t(9781),n=t(3887),i=t(5656),s=t(1236),u=t(6135);e({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(c){for(var d,v,m=i(c),y=s.f,b=n(m),O={},I=0;b.length>I;)void 0!==(v=y(m,d=b[I++]))&&u(O,d,v);return O}})},6210:function(a,f,t){var e=t(2109),r=t(7293),n=t(1156).f;e({target:"Object",stat:!0,forced:r(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:n})},9660:function(a,f,t){var e=t(2109),r=t(6293),n=t(7293),i=t(5181),s=t(7908);e({target:"Object",stat:!0,forced:!r||n(function(){i.f(1)})},{getOwnPropertySymbols:function(u){var c=i.f;return c?c(s(u)):[]}})},7941:function(a,f,t){var e=t(2109),r=t(7908),n=t(1956);e({target:"Object",stat:!0,forced:t(7293)(function(){n(1)})},{keys:function(i){return n(r(i))}})},1539:function(a,f,t){var e=t(1694),r=t(8052),n=t(288);e||r(Object.prototype,"toString",n,{unsafe:!0})},4603:function(a,f,t){var e=t(9781),r=t(7854),n=t(1702),i=t(4705),s=t(9587),u=t(8880),c=t(8006).f,d=t(7976),v=t(7850),m=t(1340),y=t(4706),b=t(2999),O=t(2626),I=t(8052),P=t(7293),N=t(2597),A=t(9909).enforce,L=t(6340),D=t(5112),F=t(9441),_=t(7168),B=D("match"),R=r.RegExp,$=R.prototype,Z=r.SyntaxError,Y=n($.exec),G=n("".charAt),E=n("".replace),g=n("".indexOf),S=n("".slice),x=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,o=/a/g,l=/a/g,p=new R(o)!==o,h=b.MISSED_STICKY,M=b.UNSUPPORTED_Y;if(i("RegExp",e&&(!p||h||F||_||P(function(){return l[B]=!1,R(o)!=o||R(l)==l||"/a/i"!=R(o,"i")})))){for(var w=function(j,T){var H,z,U,Q,rt,st,it=d($,this),ft=v(j),xt=void 0===T,vt=[],tt=j;if(!it&&ft&&xt&&j.constructor===w)return j;if((ft||d($,j))&&(j=j.source,xt&&(T=y(tt))),j=void 0===j?"":m(j),T=void 0===T?"":m(T),tt=j,F&&"dotAll"in o&&(z=!!T&&g(T,"s")>-1)&&(T=E(T,/s/g,"")),H=T,h&&"sticky"in o&&(U=!!T&&g(T,"y")>-1)&&M&&(T=E(T,/y/g,"")),_&&(j=(Q=function(ut){for(var at,nt=ut.length,ct=0,dt="",ht=[],Et={},mt=!1,bt=!1,wt=0,gt="";ct<=nt;ct++){if("\\"===(at=G(ut,ct)))at+=G(ut,++ct);else if("]"===at)mt=!1;else if(!mt)switch(!0){case"["===at:mt=!0;break;case"("===at:Y(x,S(ut,ct+1))&&(ct+=2,bt=!0),dt+=at,wt++;continue;case">"===at&&bt:if(""===gt||N(Et,gt))throw new Z("Invalid capture group name");Et[gt]=!0,ht[ht.length]=[gt,wt],bt=!1,gt="";continue}bt?gt+=at:dt+=at}return[dt,ht]}(j))[0],vt=Q[1]),rt=s(R(j,T),it?this:$,w),(z||U||vt.length)&&(st=A(rt),z&&(st.dotAll=!0,st.raw=w(function(ut){for(var at,nt=ut.length,ct=0,dt="",ht=!1;ct<=nt;ct++)"\\"!==(at=G(ut,ct))?ht||"."!==at?("["===at?ht=!0:"]"===at&&(ht=!1),dt+=at):dt+="[\\s\\S]":dt+=at+G(ut,++ct);return dt}(j),H)),U&&(st.sticky=!0),vt.length&&(st.groups=vt)),j!==tt)try{u(rt,"source",""===tt?"(?:)":tt)}catch{}return rt},k=c(R),V=0;k.length>V;)O(w,R,k[V++]);$.constructor=w,w.prototype=$,I(r,"RegExp",w,{constructor:!0})}L("RegExp")},4916:function(a,f,t){"use strict";var e=t(2109),r=t(2261);e({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},9714:function(a,f,t){"use strict";var e=t(6530).PROPER,r=t(8052),n=t(9670),i=t(1340),s=t(7293),u=t(4706),c="toString",d=RegExp.prototype[c];(s(function(){return"/a/b"!=d.call({source:"a",flags:"b"})})||e&&d.name!=c)&&r(RegExp.prototype,c,function(){var y=n(this);return"/"+i(y.source)+"/"+i(u(y))},{unsafe:!0})},2023:function(a,f,t){"use strict";var e=t(2109),r=t(1702),n=t(3929),i=t(4488),s=t(1340),u=t(4964),c=r("".indexOf);e({target:"String",proto:!0,forced:!u("includes")},{includes:function(d){return!!~c(s(i(this)),s(n(d)),arguments.length>1?arguments[1]:void 0)}})},8783:function(a,f,t){"use strict";var e=t(8710).charAt,r=t(1340),n=t(9909),i=t(1656),s=t(6178),u="String Iterator",c=n.set,d=n.getterFor(u);i(String,"String",function(v){c(this,{type:u,string:r(v),index:0})},function(){var v,m=d(this),y=m.string,b=m.index;return b>=y.length?s(void 0,!0):(v=e(y,b),m.index+=v.length,s(v,!1))})},6373:function(a,f,t){"use strict";var e=t(2109),r=t(6916),n=t(1470),i=t(3061),s=t(6178),u=t(4488),c=t(7466),d=t(1340),v=t(9670),m=t(8554),y=t(4326),b=t(7850),O=t(4706),I=t(8173),P=t(8052),N=t(7293),A=t(5112),L=t(6707),D=t(1530),F=t(7651),_=t(9909),B=t(1913),R=A("matchAll"),$="RegExp String",Z=$+" Iterator",Y=_.set,G=_.getterFor(Z),E=RegExp.prototype,g=TypeError,S=n("".indexOf),x=n("".matchAll),o=!!x&&!N(function(){x("a",/./)}),l=i(function(h,M,C,w){Y(this,{type:Z,regexp:h,string:M,global:C,unicode:w,done:!1})},$,function(){var h=G(this);if(h.done)return s(void 0,!0);var M=h.regexp,C=h.string,w=F(M,C);return null===w?(h.done=!0,s(void 0,!0)):h.global?(""===d(w[0])&&(M.lastIndex=D(C,c(M.lastIndex),h.unicode)),s(w,!1)):(h.done=!0,s(w,!1))}),p=function(h){var M,C,w,k=v(this),V=d(h),j=L(k,RegExp),T=d(O(k));return M=new j(j===RegExp?k.source:k,T),C=!!~S(T,"g"),w=!!~S(T,"u"),M.lastIndex=c(k.lastIndex),new l(M,V,C,w)};e({target:"String",proto:!0,forced:o},{matchAll:function(h){var M,C,w,k,V=u(this);if(m(h)){if(o)return x(V,h)}else{if(b(h)&&(M=d(u(O(h))),!~S(M,"g")))throw g("`.matchAll` does not allow non-global regexes");if(o)return x(V,h);if(void 0===(w=I(h,R))&&B&&"RegExp"==y(h)&&(w=p),w)return r(w,h,V)}return C=d(V),k=new RegExp(h,"g"),B?r(p,k,C):k[R](C)}}),B||R in E||P(E,R,p)},4723:function(a,f,t){"use strict";var e=t(6916),r=t(7007),n=t(9670),i=t(8554),s=t(7466),u=t(1340),c=t(4488),d=t(8173),v=t(1530),m=t(7651);r("match",function(y,b,O){return[function(I){var P=c(this),N=i(I)?void 0:d(I,y);return N?e(N,I,P):new RegExp(I)[y](u(P))},function(I){var P=n(this),N=u(I),A=O(b,P,N);if(A.done)return A.value;if(!P.global)return m(P,N);var L=P.unicode;P.lastIndex=0;for(var D,F=[],_=0;null!==(D=m(P,N));){var B=u(D[0]);F[_]=B,""===B&&(P.lastIndex=v(N,s(P.lastIndex),L)),_++}return 0===_?null:F}]})},5306:function(a,f,t){"use strict";var e=t(2104),r=t(6916),n=t(1702),i=t(7007),s=t(7293),u=t(9670),c=t(614),d=t(8554),v=t(9303),m=t(7466),y=t(1340),b=t(4488),O=t(1530),I=t(8173),P=t(647),N=t(7651),A=t(5112)("replace"),L=Math.max,D=Math.min,F=n([].concat),_=n([].push),B=n("".indexOf),R=n("".slice),$="$0"==="a".replace(/./,"$0"),Z=!!/./[A]&&""===/./[A]("a","$0");i("replace",function(Y,G,E){var g=Z?"$":"$0";return[function(S,x){var o=b(this),l=d(S)?void 0:I(S,A);return l?r(l,S,o,x):r(G,y(o),S,x)},function(S,x){var o=u(this),l=y(S);if("string"==typeof x&&-1===B(x,g)&&-1===B(x,"$<")){var p=E(G,o,l,x);if(p.done)return p.value}var h=c(x);h||(x=y(x));var M=o.global;if(M){var C=o.unicode;o.lastIndex=0}for(var w=[];;){var k=N(o,l);if(null===k||(_(w,k),!M))break;""===y(k[0])&&(o.lastIndex=O(l,m(o.lastIndex),C))}for(var V,j="",T=0,H=0;H<w.length;H++){for(var z=y((k=w[H])[0]),U=L(D(v(k.index),l.length),0),Q=[],rt=1;rt<k.length;rt++)_(Q,void 0===(V=k[rt])?V:String(V));var st=k.groups;if(h){var it=F([z],Q,U,l);void 0!==st&&_(it,st);var ft=y(e(x,void 0,it))}else ft=P(z,l,U,Q,st,x);U>=T&&(j+=R(l,T,U)+ft,T=U+z.length)}return j+R(l,T)}]},!!s(function(){var Y=/./;return Y.exec=function(){var G=[];return G.groups={a:"7"},G},"7"!=="".replace(Y,"$<a>")})||!$||Z)},3123:function(a,f,t){"use strict";var e=t(2104),r=t(6916),n=t(1702),i=t(7007),s=t(9670),u=t(8554),c=t(7850),d=t(4488),v=t(6707),m=t(1530),y=t(7466),b=t(1340),O=t(8173),I=t(1589),P=t(7651),N=t(2261),A=t(2999),L=t(7293),D=A.UNSUPPORTED_Y,F=4294967295,_=Math.min,B=[].push,R=n(/./.exec),$=n(B),Z=n("".slice),Y=!L(function(){var G=/(?:)/,E=G.exec;G.exec=function(){return E.apply(this,arguments)};var g="ab".split(G);return 2!==g.length||"a"!==g[0]||"b"!==g[1]});i("split",function(G,E,g){var S;return S="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(x,o){var l=b(d(this)),p=void 0===o?F:o>>>0;if(0===p)return[];if(void 0===x)return[l];if(!c(x))return r(E,l,x,p);for(var h,M,C,w=[],V=0,j=new RegExp(x.source,(x.ignoreCase?"i":"")+(x.multiline?"m":"")+(x.unicode?"u":"")+(x.sticky?"y":"")+"g");(h=r(N,j,l))&&!((M=j.lastIndex)>V&&($(w,Z(l,V,h.index)),h.length>1&&h.index<l.length&&e(B,w,I(h,1)),C=h[0].length,V=M,w.length>=p));)j.lastIndex===h.index&&j.lastIndex++;return V===l.length?!C&&R(j,"")||$(w,""):$(w,Z(l,V)),w.length>p?I(w,0,p):w}:"0".split(void 0,0).length?function(x,o){return void 0===x&&0===o?[]:r(E,this,x,o)}:E,[function(x,o){var l=d(this),p=u(x)?void 0:O(x,G);return p?r(p,x,l,o):r(S,b(l),x,o)},function(x,o){var l=s(this),p=b(x),h=g(S,l,p,o,S!==E);if(h.done)return h.value;var M=v(l,RegExp),C=l.unicode,k=new M(D?"^(?:"+l.source+")":l,(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(D?"g":"y")),V=void 0===o?F:o>>>0;if(0===V)return[];if(0===p.length)return null===P(k,p)?[p]:[];for(var j=0,T=0,H=[];T<p.length;){k.lastIndex=D?0:T;var z,U=P(k,D?Z(p,T):p);if(null===U||(z=_(y(k.lastIndex+(D?T:0)),p.length))===j)T=m(p,T,C);else{if($(H,Z(p,j,T)),H.length===V)return H;for(var Q=1;Q<=U.length-1;Q++)if($(H,U[Q]),H.length===V)return H;T=j=z}}return $(H,Z(p,j)),H}]},!Y,D)},3210:function(a,f,t){"use strict";var e=t(2109),r=t(3111).trim;e({target:"String",proto:!0,forced:t(6091)("trim")},{trim:function(){return r(this)}})},4032:function(a,f,t){"use strict";var e=t(2109),r=t(7854),n=t(6916),i=t(1702),s=t(1913),u=t(9781),c=t(6293),d=t(7293),v=t(2597),m=t(7976),y=t(9670),b=t(5656),O=t(4948),I=t(1340),P=t(9114),N=t(30),A=t(1956),L=t(8006),D=t(1156),F=t(5181),_=t(1236),B=t(3070),R=t(6048),$=t(5296),Z=t(8052),Y=t(7045),G=t(2309),E=t(6200),g=t(3501),S=t(9711),x=t(5112),o=t(6061),l=t(6800),p=t(6532),h=t(8003),M=t(9909),C=t(2092).forEach,w=E("hidden"),k="Symbol",V="prototype",j=M.set,T=M.getterFor(k),H=Object[V],z=r.Symbol,U=z&&z[V],Q=r.TypeError,rt=r.QObject,st=_.f,it=B.f,ft=D.f,xt=$.f,vt=i([].push),tt=G("symbols"),ut=G("op-symbols"),at=G("wks"),nt=!rt||!rt[V]||!rt[V].findChild,ct=u&&d(function(){return 7!=N(it({},"a",{get:function(){return it(this,"a",{value:7}).a}})).a})?function(J,X,q){var ot=st(H,X);ot&&delete H[X],it(J,X,q),ot&&J!==H&&it(H,X,ot)}:it,dt=function(J,X){var q=tt[J]=N(U);return j(q,{type:k,tag:J,description:X}),u||(q.description=X),q},ht=function(J,X,q){J===H&&ht(ut,X,q),y(J);var ot=O(X);return y(q),v(tt,ot)?(q.enumerable?(v(J,w)&&J[w][ot]&&(J[w][ot]=!1),q=N(q,{enumerable:P(0,!1)})):(v(J,w)||it(J,w,P(1,{})),J[w][ot]=!0),ct(J,ot,q)):it(J,ot,q)},Et=function(J,X){y(J);var q=b(X),ot=A(q).concat(gt(q));return C(ot,function(pt){u&&!n(mt,q,pt)||ht(J,pt,q[pt])}),J},mt=function(J){var X=O(J),q=n(xt,this,X);return!(this===H&&v(tt,X)&&!v(ut,X))&&(!(q||!v(this,X)||!v(tt,X)||v(this,w)&&this[w][X])||q)},bt=function(J,X){var q=b(J),ot=O(X);if(q!==H||!v(tt,ot)||v(ut,ot)){var pt=st(q,ot);return!pt||!v(tt,ot)||v(q,w)&&q[w][ot]||(pt.enumerable=!0),pt}},wt=function(J){var X=ft(b(J)),q=[];return C(X,function(ot){v(tt,ot)||v(g,ot)||vt(q,ot)}),q},gt=function(J){var X=J===H,q=ft(X?ut:b(J)),ot=[];return C(q,function(pt){!v(tt,pt)||X&&!v(H,pt)||vt(ot,tt[pt])}),ot};c||(z=function(){if(m(U,this))throw Q("Symbol is not a constructor");var J=arguments.length&&void 0!==arguments[0]?I(arguments[0]):void 0,X=S(J),q=function(ot){this===H&&n(q,ut,ot),v(this,w)&&v(this[w],X)&&(this[w][X]=!1),ct(this,X,P(1,ot))};return u&&nt&&ct(H,X,{configurable:!0,set:q}),dt(X,J)},Z(U=z[V],"toString",function(){return T(this).tag}),Z(z,"withoutSetter",function(J){return dt(S(J),J)}),$.f=mt,B.f=ht,R.f=Et,_.f=bt,L.f=D.f=wt,F.f=gt,o.f=function(J){return dt(x(J),J)},u&&(Y(U,"description",{configurable:!0,get:function(){return T(this).description}}),s||Z(H,"propertyIsEnumerable",mt,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),C(A(at),function(J){l(J)}),e({target:k,stat:!0,forced:!c},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),e({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(J,X){return void 0===X?N(J):Et(N(J),X)},defineProperty:ht,defineProperties:Et,getOwnPropertyDescriptor:bt}),e({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:wt}),p(),h(z,k),g[w]=!0},1817:function(a,f,t){"use strict";var e=t(2109),r=t(9781),n=t(7854),i=t(1702),s=t(2597),u=t(614),c=t(7976),d=t(1340),v=t(7045),m=t(9920),y=n.Symbol,b=y&&y.prototype;if(r&&u(y)&&(!("description"in b)||void 0!==y().description)){var O={},I=function(){var _=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),B=c(b,this)?new y(_):void 0===_?y():y(_);return""===_&&(O[B]=!0),B};m(I,y),I.prototype=b,b.constructor=I;var P="Symbol(test)"==String(y("test")),N=i(b.valueOf),A=i(b.toString),L=/^Symbol\((.*)\)[^)]+$/,D=i("".replace),F=i("".slice);v(b,"description",{configurable:!0,get:function(){var _=N(this);if(s(O,_))return"";var B=A(_),R=P?F(B,7,-1):D(B,L,"$1");return""===R?void 0:R}}),e({global:!0,constructor:!0,forced:!0},{Symbol:I})}},763:function(a,f,t){var e=t(2109),r=t(5005),n=t(2597),i=t(1340),s=t(2309),u=t(2015),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!u},{for:function(v){var m=i(v);if(n(c,m))return c[m];var y=r("Symbol")(m);return c[m]=y,d[y]=m,y}})},2165:function(a,f,t){t(6800)("iterator")},2526:function(a,f,t){t(4032),t(763),t(6620),t(8862),t(9660)},6620:function(a,f,t){var e=t(2109),r=t(2597),n=t(2190),i=t(6330),s=t(2309),u=t(2015),c=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!u},{keyFor:function(d){if(!n(d))throw TypeError(i(d)+" is not a symbol");if(r(c,d))return c[d]}})},6649:function(a,f,t){var e=t(6800),r=t(6532);e("toPrimitive"),r()},3728:function(a,f,t){t(6373)},4747:function(a,f,t){var e=t(7854),r=t(8324),n=t(8509),i=t(8533),s=t(8880),u=function(d){if(d&&d.forEach!==i)try{s(d,"forEach",i)}catch{d.forEach=i}};for(var c in r)r[c]&&u(e[c]&&e[c].prototype);u(n)},3948:function(a,f,t){var e=t(7854),r=t(8324),n=t(8509),i=t(6992),s=t(8880),u=t(5112),c=u("iterator"),d=u("toStringTag"),v=i.values,m=function(b,O){if(b){if(b[c]!==v)try{s(b,c,v)}catch{b[c]=v}if(b[d]||s(b,d,O),r[O])for(var I in i)if(b[I]!==i[I])try{s(b,I,i[I])}catch{b[I]=i[I]}}};for(var y in r)m(e[y]&&e[y].prototype,y);m(n,"DOMTokenList")}},et={};function K(a){var f=et[a];if(void 0!==f)return f.exports;var t=et[a]={exports:{}};return lt[a](t,t.exports,K),t.exports}K.d=function(a,f){for(var t in f)K.o(f,t)&&!K.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:f[t]})},K.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),K.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)},K.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var W={};return function(){"use strict";function f(E,g){if(E){if("string"==typeof E)return t(E,g);var S=Object.prototype.toString.call(E).slice(8,-1);return"Object"===S&&E.constructor&&(S=E.constructor.name),"Map"===S||"Set"===S?Array.from(E):"Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?t(E,g):void 0}}function t(E,g){(null==g||g>E.length)&&(g=E.length);for(var S=0,x=new Array(g);S<g;S++)x[S]=E[S];return x}function e(E){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(E)}function r(E,g){for(var S=0;S<g.length;S++){var x=g[S];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(E,i(x.key),x)}}function n(E,g,S){return(g=i(g))in E?Object.defineProperty(E,g,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[g]=S,E}function i(E){var g=function(S,x){if("object"!==e(S)||null===S)return S;var o=S[Symbol.toPrimitive];if(void 0!==o){var l=o.call(S,"string");if("object"!==e(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)}(E);return"symbol"===e(g)?g:String(g)}K.r(W),K.d(W,{SimpleKeyboard:function(){return Y},default:function(){return G}}),K(3210),K(4916),K(5306),K(2772),K(8309),K(3123),K(1539),K(9714),K(561),K(9600),K(9595),K(7042),typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(E){if("Element"in E){var g="classList",S="prototype",x=E.Element[S],o=Object,l=String[S].trim||function(){return this.replace(/^\s+|\s+$/g,"")},p=Array[S].indexOf||function(j){for(var T=0,H=this.length;T<H;T++)if(T in this&&this[T]===j)return T;return-1},h=function(j,T){this.name=j,this.code=DOMException[j],this.message=T},M=function(j,T){if(""===T)throw new h("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(T))throw new h("INVALID_CHARACTER_ERR","The token must not contain space characters.");return p.call(j,T)},C=function(j){for(var T=l.call(j.getAttribute("class")||""),H=T?T.split(/\s+/):[],z=0,U=H.length;z<U;z++)this.push(H[z]);this._updateClassName=function(){j.setAttribute("class",this.toString())}},w=C[S]=[],k=function(){return new C(this)};if(h[S]=Error[S],w.item=function(j){return this[j]||null},w.contains=function(j){return~M(this,j+"")},w.add=function(){var j,T=arguments,H=0,z=T.length,U=!1;do{~M(this,j=T[H]+"")||(this.push(j),U=!0)}while(++H<z);U&&this._updateClassName()},w.remove=function(){var j,T,H=arguments,z=0,U=H.length,Q=!1;do{for(T=M(this,j=H[z]+"");~T;)this.splice(T,1),Q=!0,T=M(this,j)}while(++z<U);Q&&this._updateClassName()},w.toggle=function(j,T){var H=this.contains(j),z=H?!0!==T&&"remove":!1!==T&&"add";return z&&this[z](j),!0===T||!1===T?T:!H},w.replace=function(j,T){var H=M(j+"");~H&&(this.splice(H,1,T),this._updateClassName())},w.toString=function(){return this.join(" ")},o.defineProperty){var V={get:k,enumerable:!0,configurable:!0};try{o.defineProperty(x,g,V)}catch(j){void 0!==j.number&&-2146823252!==j.number||(V.enumerable=!1,o.defineProperty(x,g,V))}}else o[S].__defineGetter__&&x.__defineGetter__(g,k)}}(self),function(){var E=document.createElement("_");if(E.classList.add("c1","c2"),!E.classList.contains("c2")){var g=function(x){var o=DOMTokenList.prototype[x];DOMTokenList.prototype[x]=function(l){var p,h=arguments.length;for(p=0;p<h;p++)o.call(this,l=arguments[p])}};g("add"),g("remove")}if(E.classList.toggle("c3",!1),E.classList.contains("c3")){var S=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(x,o){return 1 in arguments&&!this.contains(x)==!o?o:S.call(this,x)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(x,o){var l=this.toString().split(" "),p=l.indexOf(x+"");~p&&(l=l.slice(p),this.remove.apply(this,l),this.add(o),this.add.apply(this,l.slice(1)))}),E=null}()),K(7327),K(2222),K(7941),K(4603),K(3728),K(2707),K(6699),K(2023),K(4747),K(9601),K(1249),K(1038),K(8783),K(6649),K(6078),K(2526),K(1817),K(9653),K(5003),K(9337),K(2165),K(6992),K(3948),K(3161),K(4723),K(5827),K(6210);var s=function(){function E(o){var l=o.getOptions,p=o.getCaretPosition,h=o.getCaretPositionEnd,M=o.dispatch;(function(C,w){if(!(C instanceof w))throw new TypeError("Cannot call a class as a function")})(this,E),n(this,"getOptions",void 0),n(this,"getCaretPosition",void 0),n(this,"getCaretPositionEnd",void 0),n(this,"dispatch",void 0),n(this,"maxLengthReached",void 0),n(this,"isStandardButton",function(C){return C&&!("{"===C[0]&&"}"===C[C.length-1])}),this.getOptions=l,this.getCaretPosition=p,this.getCaretPositionEnd=h,this.dispatch=M,E.bindMethods(E,this)}var g,S,x;return g=E,S=[{key:"getButtonType",value:function(o){return o.includes("{")&&o.includes("}")&&"{//}"!==o?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(o){var l=this.getButtonType(o),p=o.replace("{","").replace("}",""),h="";return"standardBtn"!==l&&(h=" hg-button-".concat(p)),"hg-".concat(l).concat(h)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"\u2191","{arrowleft}":"\u2190","{arrowdown}":"\u2193","{arrowright}":"\u2192","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(o,l){return(l=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),l):l||this.getDefaultDiplay())[o]||o}},{key:"getUpdatedInput",value:function(o,l,p){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p,M=arguments.length>4&&void 0!==arguments[4]&&arguments[4],C=this.getOptions(),w=[p,h,M],k=l;return("{bksp}"===o||"{backspace}"===o)&&k.length>0?k=this.removeAt.apply(this,[k].concat(w)):("{delete}"===o||"{forwarddelete}"===o)&&k.length>0?k=this.removeForwardsAt.apply(this,[k].concat(w)):"{space}"===o?k=this.addStringAt.apply(this,[k," "].concat(w)):"{tab}"!==o||"boolean"==typeof C.tabCharOnTab&&!1===C.tabCharOnTab?"{enter}"!==o&&"{numpadenter}"!==o||!C.newLineOnEnter?o.includes("numpad")&&Number.isInteger(Number(o[o.length-2]))?k=this.addStringAt.apply(this,[k,o[o.length-2]].concat(w)):"{numpaddivide}"===o?k=this.addStringAt.apply(this,[k,"/"].concat(w)):"{numpadmultiply}"===o?k=this.addStringAt.apply(this,[k,"*"].concat(w)):"{numpadsubtract}"===o?k=this.addStringAt.apply(this,[k,"-"].concat(w)):"{numpadadd}"===o?k=this.addStringAt.apply(this,[k,"+"].concat(w)):"{numpaddecimal}"===o?k=this.addStringAt.apply(this,[k,"."].concat(w)):"{"===o||"}"===o?k=this.addStringAt.apply(this,[k,o].concat(w)):o.includes("{")||o.includes("}")||(k=this.addStringAt.apply(this,[k,o].concat(w))):k=this.addStringAt.apply(this,[k,"\n"].concat(w)):k=this.addStringAt.apply(this,[k,"\t"].concat(w)),C.debug&&console.log("Input will be: "+k),k}},{key:"updateCaretPos",value:function(o){var p=this.updateCaretPosAction(o,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);this.dispatch(function(h){h.setCaretPosition(p)})}},{key:"updateCaretPosAction",value:function(o){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],p=this.getOptions(),h=this.getCaretPosition();return null!=h&&(l?h>0&&(h-=o):h+=o),p.debug&&console.log("Caret at:",h),h}},{key:"addStringAt",value:function(o,l){var p,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.length,M=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.length,C=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return h||0===h?(p=[o.slice(0,h),l,o.slice(M)].join(""),this.isMaxLengthReached()||C&&this.updateCaretPos(l.length)):p=o+l,p}},{key:"removeAt",value:function(o){var l,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.length,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.length,M=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===p&&0===h)return o;if(p===h){var C=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;p&&p>=0?o.substring(p-2,p).match(C)?(l=o.substr(0,p-2)+o.substr(p),M&&this.updateCaretPos(2,!0)):(l=o.substr(0,p-1)+o.substr(p),M&&this.updateCaretPos(1,!0)):o.slice(-2).match(C)?(l=o.slice(0,-2),M&&this.updateCaretPos(2,!0)):(l=o.slice(0,-1),M&&this.updateCaretPos(1,!0))}else l=o.slice(0,p)+o.slice(h),M&&this.dispatch(function(w){w.setCaretPosition(p)});return l}},{key:"removeForwardsAt",value:function(o){var l,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.length,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.length,M=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=o&&o.length&&null!==p?(p===h?l=o.substring(p,p+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?o.substr(0,p)+o.substr(p+2):o.substr(0,p)+o.substr(p+1):(l=o.slice(0,p)+o.slice(h),M&&this.dispatch(function(C){C.setCaretPosition(p)})),l):o}},{key:"handleMaxLength",value:function(o,l){var p=this.getOptions(),h=p.maxLength,C=l.length-1>=h;if(l.length<=o[p.inputName||"default"].length)return!1;if(Number.isInteger(h))return p.debug&&console.log("maxLength (num) reached:",C),C?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===e(h)){var w=l.length-1>=h[p.inputName||"default"];return p.debug&&console.log("maxLength (obj) reached:",w),w?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(o){return o?o.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(l,p){return p.length?l+p[0].toUpperCase()+p.slice(1):l}):""}},{key:"chunkArray",value:function(o,l){return function a(E){return function(g){if(Array.isArray(g))return t(g)}(E)||function(g){if(typeof Symbol<"u"&&null!=g[Symbol.iterator]||null!=g["@@iterator"])return Array.from(g)}(E)||f(E)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array(Math.ceil(o.length/l))).map(function(p,h){return o.slice(l*h,l+l*h)})}},{key:"escapeRegex",value:function(o){return o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(o,l){var p=o,h=l.indexOf("\u202b");return h<o&&-1!=h&&p--,l.indexOf("\u202c")<o&&-1!=h&&p--,p<0?0:p}}],x=[{key:"bindMethods",value:function(o,l){var p,h=function(C,w){var k=typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(!k){if(Array.isArray(C)||(k=f(C))){k&&(C=k);var V=0,j=function(){};return{s:j,n:function(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function(U){throw U},f:j}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var T,H=!0,z=!1;return{s:function(){k=k.call(C)},n:function(){var U=k.next();return H=U.done,U},e:function(U){z=!0,T=U},f:function(){try{H||null==k.return||k.return()}finally{if(z)throw T}}}}(Object.getOwnPropertyNames(o.prototype));try{for(h.s();!(p=h.n()).done;){var M=p.value;"constructor"===M||"bindMethods"===M||(l[M]=l[M].bind(l))}}catch(C){h.e(C)}finally{h.f()}}}],S&&r(g.prototype,S),x&&r(g,x),Object.defineProperty(g,"prototype",{writable:!1}),E}();n(s,"noop",function(){});var u=s;function c(E){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(E)}function d(E,g){for(var S=0;S<g.length;S++){var x=g[S];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(E,m(x.key),x)}}function v(E,g,S){return(g=m(g))in E?Object.defineProperty(E,g,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[g]=S,E}function m(E){var g=function(S,x){if("object"!==c(S)||null===S)return S;var o=S[Symbol.toPrimitive];if(void 0!==o){var l=o.call(S,"string");if("object"!==c(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)}(E);return"symbol"===c(g)?g:String(g)}var y=function(){function E(o){var l=this,p=o.dispatch,h=o.getOptions;(function(M,C){if(!(M instanceof C))throw new TypeError("Cannot call a class as a function")})(this,E),v(this,"getOptions",void 0),v(this,"dispatch",void 0),v(this,"isMofifierKey",function(M){return M.altKey||M.ctrlKey||M.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(M.code||M.key||l.keyCodeToKey(M?.keyCode))}),this.dispatch=p,this.getOptions=h,u.bindMethods(E,this)}var g,S;return g=E,(S=[{key:"handleHighlightKeyDown",value:function(o){var l=this.getOptions();l.physicalKeyboardHighlightPreventDefault&&this.isMofifierKey(o)&&(o.preventDefault(),o.stopImmediatePropagation());var p=this.getSimpleKeyboardLayoutKey(o);this.dispatch(function(h){var M,C,w=h.getButtonElement(p),k=h.getButtonElement("{".concat(p,"}"));if(w)M=w,C=p;else{if(!k)return;M=k,C="{".concat(p,"}")}var V,j=function(H){H.style.background=l.physicalKeyboardHighlightBgColor||"#dadce4",H.style.color=l.physicalKeyboardHighlightTextColor||"black"};if(M)if(Array.isArray(M)){if(M.forEach(function(H){return j(H)}),l.physicalKeyboardHighlightPress)if(l.physicalKeyboardHighlightPressUsePointerEvents)null===(V=M[0])||void 0===V||V.onpointerdown();else if(l.physicalKeyboardHighlightPressUseClick){var T;null===(T=M[0])||void 0===T||T.click()}else h.handleButtonClicked(C,o)}else j(M),l.physicalKeyboardHighlightPress&&(l.physicalKeyboardHighlightPressUsePointerEvents?M.onpointerdown():l.physicalKeyboardHighlightPressUseClick?M.click():h.handleButtonClicked(C,o))})}},{key:"handleHighlightKeyUp",value:function(o){var l=this.getOptions();l.physicalKeyboardHighlightPreventDefault&&this.isMofifierKey(o)&&(o.preventDefault(),o.stopImmediatePropagation());var p=this.getSimpleKeyboardLayoutKey(o);this.dispatch(function(h){var M,C=h.getButtonElement(p)||h.getButtonElement("{".concat(p,"}")),w=function(k){k.removeAttribute&&k.removeAttribute("style")};C&&(Array.isArray(C)?(C.forEach(function(k){return w(k)}),l.physicalKeyboardHighlightPressUsePointerEvents&&(null===(M=C[0])||void 0===M||M.onpointerup())):(w(C),l.physicalKeyboardHighlightPressUsePointerEvents&&C.onpointerup()))})}},{key:"getSimpleKeyboardLayoutKey",value:function(o){var l,p,h=o.code||o.key||this.keyCodeToKey(o?.keyCode);return(p=null!=h&&h.includes("Numpad")||null!=h&&h.includes("Shift")||null!=h&&h.includes("Space")||null!=h&&h.includes("Backspace")||null!=h&&h.includes("Control")||null!=h&&h.includes("Alt")||null!=h&&h.includes("Meta")?o.code||"":o.key||this.keyCodeToKey(o?.keyCode)||"").length>1?null===(l=p)||void 0===l?void 0:l.toLowerCase():p}},{key:"keyCodeToKey",value:function(o){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[o]||""}}])&&d(g.prototype,S),Object.defineProperty(g,"prototype",{writable:!1}),E}();function b(E){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(E)}function O(E,g){for(var S=0;S<g.length;S++){var x=g[S];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(E,P(x.key),x)}}function I(E,g,S){return(g=P(g))in E?Object.defineProperty(E,g,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[g]=S,E}function P(E){var g=function(S,x){if("object"!==b(S)||null===S)return S;var o=S[Symbol.toPrimitive];if(void 0!==o){var l=o.call(S,"string");if("object"!==b(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)}(E);return"symbol"===b(g)?g:String(g)}var N=function(){function E(o){var l=o.utilities,p=o.options;(function(h,M){if(!(h instanceof M))throw new TypeError("Cannot call a class as a function")})(this,E),I(this,"utilities",void 0),I(this,"options",void 0),I(this,"candidateBoxElement",void 0),I(this,"pageIndex",0),I(this,"pageSize",void 0),this.utilities=l,this.options=p,u.bindMethods(E,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5}var g,S;return g=E,S=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(o){var l=this,p=o.candidateValue,h=o.targetElement,M=o.onSelect;if(p&&p.length){var C=this.utilities.chunkArray(p.split(" "),this.pageSize);this.renderPage({candidateListPages:C,targetElement:h,pageIndex:this.pageIndex,nbPages:C.length,onItemSelected:function(w,k){M(w,k),l.destroy()}})}}},{key:"renderPage",value:function(o){var l,p=this,h=o.candidateListPages,M=o.targetElement,C=o.pageIndex,w=o.nbPages,k=o.onItemSelected;null===(l=this.candidateBoxElement)||void 0===l||l.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var V=document.createElement("ul");V.className="hg-candidate-box-list",h[C].forEach(function(U){var Q,rt=document.createElement("li"),st=function(){var it=new MouseEvent("click");return Object.defineProperty(it,"target",{value:rt}),it};rt.className="hg-candidate-box-list-item",rt.innerHTML=(null===(Q=p.options.display)||void 0===Q?void 0:Q[U])||U,rt.onclick=function(){var it=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st();return k(U,it)},V.appendChild(rt)});var j=C>0,T=document.createElement("div");T.classList.add("hg-candidate-box-prev"),j&&T.classList.add("hg-candidate-box-btn-active"),T.onclick=function(){j&&p.renderPage({candidateListPages:h,targetElement:M,pageIndex:C-1,nbPages:w,onItemSelected:k})},this.candidateBoxElement.appendChild(T),this.candidateBoxElement.appendChild(V);var H=C<w-1,z=document.createElement("div");z.classList.add("hg-candidate-box-next"),H&&z.classList.add("hg-candidate-box-btn-active"),z.onclick=function(){H&&p.renderPage({candidateListPages:h,targetElement:M,pageIndex:C+1,nbPages:w,onItemSelected:k})},this.candidateBoxElement.appendChild(z),M.prepend(this.candidateBoxElement)}}],S&&O(g.prototype,S),Object.defineProperty(g,"prototype",{writable:!1}),E}(),A=N;function L(E){return function(g){if(Array.isArray(g))return D(g)}(E)||function(g){if(typeof Symbol<"u"&&null!=g[Symbol.iterator]||null!=g["@@iterator"])return Array.from(g)}(E)||function(g,S){if(g){if("string"==typeof g)return D(g,S);var x=Object.prototype.toString.call(g).slice(8,-1);if("Object"===x&&g.constructor&&(x=g.constructor.name),"Map"===x||"Set"===x)return Array.from(g);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return D(g,S)}}(E)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(E,g){(null==g||g>E.length)&&(g=E.length);for(var S=0,x=new Array(g);S<g;S++)x[S]=E[S];return x}function F(E){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(E)}function _(E,g){var S=Object.keys(E);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(E);g&&(x=x.filter(function(o){return Object.getOwnPropertyDescriptor(E,o).enumerable})),S.push.apply(S,x)}return S}function B(E,g){for(var S=0;S<g.length;S++){var x=g[S];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(E,$(x.key),x)}}function R(E,g,S){return(g=$(g))in E?Object.defineProperty(E,g,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[g]=S,E}function $(E){var g=function(S,x){if("object"!==F(S)||null===S)return S;var o=S[Symbol.toPrimitive];if(void 0!==o){var l=o.call(S,"string");if("object"!==F(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)}(E);return"symbol"===F(g)?g:String(g)}var Z=function(){function E(o,l){var p=this;if(function(T,H){if(!(T instanceof H))throw new TypeError("Cannot call a class as a function")}(this,E),R(this,"input",void 0),R(this,"options",void 0),R(this,"utilities",void 0),R(this,"caretPosition",void 0),R(this,"caretPositionEnd",void 0),R(this,"keyboardDOM",void 0),R(this,"keyboardPluginClasses",void 0),R(this,"keyboardDOMClass",void 0),R(this,"buttonElements",void 0),R(this,"currentInstanceName",void 0),R(this,"allKeyboardInstances",void 0),R(this,"keyboardInstanceNames",void 0),R(this,"isFirstKeyboardInstance",void 0),R(this,"physicalKeyboard",void 0),R(this,"modules",void 0),R(this,"activeButtonClass",void 0),R(this,"holdInteractionTimeout",void 0),R(this,"holdTimeout",void 0),R(this,"isMouseHold",void 0),R(this,"initialized",void 0),R(this,"candidateBox",void 0),R(this,"keyboardRowsDOM",void 0),R(this,"defaultName","default"),R(this,"activeInputElement",null),R(this,"handleParams",function(T,H){var z,U,Q;if("string"==typeof T)z=T.split(".").join(""),U=document.querySelector(".".concat(z)),Q=H;else if(T instanceof HTMLDivElement){if(!T.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");z=T.className.split(" ")[0],U=T,Q=H}else z="simple-keyboard",U=document.querySelector(".".concat(z)),Q=T;return{keyboardDOMClass:z,keyboardDOM:U,options:Q}}),R(this,"getOptions",function(){return p.options}),R(this,"getCaretPosition",function(){return p.caretPosition}),R(this,"getCaretPositionEnd",function(){return p.caretPositionEnd}),R(this,"registerModule",function(T,H){p.modules[T]||(p.modules[T]={}),H(p.modules[T])}),R(this,"getKeyboardClassString",function(){for(var T=arguments.length,H=new Array(T),z=0;z<T;z++)H[z]=arguments[z];return[p.keyboardDOMClass].concat(H).filter(function(U){return!!U}).join(" ")}),typeof window<"u"){var h=this.handleParams(o,l),M=h.keyboardDOMClass,C=h.keyboardDOM,w=h.options,k=void 0===w?{}:w;this.utilities=new u({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=C,this.options=function(T){for(var H=1;H<arguments.length;H++){var z=null!=arguments[H]?arguments[H]:{};H%2?_(Object(z),!0).forEach(function(U){R(T,U,z[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(z)):_(Object(z)).forEach(function(U){Object.defineProperty(T,U,Object.getOwnPropertyDescriptor(z,U))})}return T}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},k),this.keyboardPluginClasses="",u.bindMethods(E,this);var V=this.options.inputName,j=void 0===V?this.defaultName:V;if(this.input={},this.input[j]="",this.keyboardDOMClass=M,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new y({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new A({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(M,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}}var g,S;return g=E,S=[{key:"setCaretPosition",value:function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;this.caretPosition=o,this.caretPositionEnd=l}},{key:"getInputCandidates",value:function(o){var l=this,p=this.options,h=p.layoutCandidates,M=p.layoutCandidatesCaseSensitiveMatch;if(!h||"object"!==F(h))return{};var C=Object.keys(h).filter(function(V){var j=o.substring(0,l.getCaretPositionEnd()||0)||o,T=new RegExp("".concat(l.utilities.escapeRegex(V),"$"),M?"g":"gi");return!!L(j.matchAll(T)).length});if(C.length>1){var w=C.sort(function(V,j){return j.length-V.length})[0];return{candidateKey:w,candidateValue:h[w]}}if(C.length){var k=C[0];return{candidateKey:k,candidateValue:h[k]}}return{}}},{key:"showCandidatesBox",value:function(o,l,p){var h=this;this.candidateBox&&this.candidateBox.show({candidateValue:l,targetElement:p,onSelect:function(M,C){var w=h.options,k=w.layoutCandidatesCaseSensitiveMatch,j=w.enableLayoutCandidatesKeyPress,T=M;w.disableCandidateNormalization||(T=M.normalize("NFD"));var H=h.getInput(h.options.inputName,!0),z=h.getCaretPositionEnd()||0,U=H.substring(0,z||0)||H,Q=new RegExp("".concat(h.utilities.escapeRegex(o),"$"),k?"g":"gi"),rt=U.replace(Q,T),st=H.replace(U,rt),ft=(z||H.length)+(rt.length-U.length);ft<0&&(ft=0),h.setInput(st,h.options.inputName,!0),h.setCaretPosition(ft),j&&"function"==typeof h.options.onKeyPress&&h.options.onKeyPress(M,C),"function"==typeof h.options.onChange&&h.options.onChange(h.getInput(h.options.inputName,!0),C),"function"==typeof h.options.onChangeAll&&h.options.onChangeAll(h.getAllInputs(),C)}})}},{key:"handleButtonClicked",value:function(o,l){var p=this.options,h=p.inputName,M=void 0===h?this.defaultName:h,C=p.debug;if("{//}"!==o){this.input[M]||(this.input[M]="");var w=this.utilities.getUpdatedInput(o,this.input[M],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(o)&&this.activeInputElement&&this.input[M]&&this.input[M]===w&&0===this.caretPosition&&this.caretPositionEnd===w.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(o,l);if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(o,l),this.input[M]!==w&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(w))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,w))return;var k=this.utilities.getUpdatedInput(o,this.input[M],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(k,this.options.inputName,!0),C&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),l?.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,!0),l),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),l),null!=l&&l.target&&this.options.enableLayoutCandidates){var V,j=this.getInputCandidates(w),T=j.candidateKey,H=j.candidateValue;T&&H?this.showCandidatesBox(T,H,this.keyboardDOM):null===(V=this.candidateBox)||void 0===V||V.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),C&&console.log("Key pressed:",o)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(o){this.options.syncInstanceInputs?this.dispatch(function(l){l.isMouseHold=o}):this.isMouseHold=o}},{key:"handleButtonMouseDown",value:function(o,l){var p=this;l&&(this.options.preventMouseDownDefault&&l.preventDefault(),this.options.stopMouseDownPropagation&&l.stopPropagation(),l.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(p.getMouseHold()&&(!o.includes("{")&&!o.includes("}")||"{delete}"===o||"{backspace}"===o||"{bksp}"===o||"{space}"===o||"{tab}"===o)||"{arrowright}"===o||"{arrowleft}"===o||"{arrowup}"===o||"{arrowdown}"===o)&&(p.options.debug&&console.log("Button held:",o),p.handleButtonHold(o)),clearTimeout(p.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(o,l){var p=this;l&&(this.options.preventMouseUpDefault&&l.preventDefault&&l.preventDefault(),this.options.stopMouseUpPropagation&&l.stopPropagation&&l.stopPropagation(),!(l.target===this.keyboardDOM||l.target&&this.keyboardDOM.contains(l.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(l.target===this.candidateBox.candidateBoxElement||l.target&&this.candidateBox.candidateBoxElement.contains(l.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(h){h.classList.remove(p.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),o&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(o,l)}},{key:"handleKeyboardContainerMouseDown",value:function(o){this.options.preventMouseDownDefault&&o.preventDefault()}},{key:"handleButtonHold",value:function(o){var l=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){l.getMouseHold()?(l.handleButtonClicked(o),l.handleButtonHold(o)):clearTimeout(l.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var o=this;this.dispatch(function(l){l.replaceInput(o.input),l.setCaretPosition(o.caretPosition,o.caretPositionEnd)})}},{key:"clearInput",value:function(){this.input[arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName;return this.options.syncInstanceInputs&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this.syncInstanceInputs(),this.options.rtl?"\u202b"+this.input[o].replace("\u202b","").replace("\u202c","")+"\u202c":this.input[o]}},{key:"getAllInputs",value:function(){var o=this,l={};return Object.keys(this.input).forEach(function(p){l[p]=o.getInput(p,!0)}),l}},{key:"setInput",value:function(o){var p=arguments.length>2?arguments[2]:void 0;this.input[arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName]=o,!p&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(o){this.input=o}},{key:"setOptions",value:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=this.changedOptions(o);this.options=Object.assign(this.options,o),l.length&&(this.options.debug&&console.log("changedOptions",l),this.onSetOptions(l),this.render())}},{key:"changedOptions",value:function(o){var l=this;return Object.keys(o).filter(function(p){return JSON.stringify(o[p])!==JSON.stringify(l.options[p])})}},{key:"onSetOptions",value:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(o.includes("layoutCandidatesPageSize")||o.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new A({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(o){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(l){o(window.SimpleKeyboardInstances[l],l)})}},{key:"addButtonTheme",value:function(o,l){var p=this;l&&o&&(o.split(" ").forEach(function(h){l.split(" ").forEach(function(M){p.options.buttonTheme||(p.options.buttonTheme=[]);var C=!1;p.options.buttonTheme.map(function(w){if(null!=w&&w.class.split(" ").includes(M)){C=!0;var k=w.buttons.split(" ");k.includes(h)||(C=!0,k.push(h),w.buttons=k.join(" "))}return w}),C||p.options.buttonTheme.push({class:M,buttons:o})})}),this.render())}},{key:"removeButtonTheme",value:function(o,l){var p=this;if(!o&&!l)return this.options.buttonTheme=[],void this.render();o&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(o.split(" ").forEach(function(h){var M,C;null===(M=p.options)||void 0===M||null===(C=M.buttonTheme)||void 0===C||C.map(function(w,k){if(w&&l&&l.includes(w.class)||!l){var V,j,T=null===(V=w)||void 0===V?void 0:V.buttons.split(" ").filter(function(H){return H!==h});w&&null!=T&&T.length?w.buttons=T.join(" "):(null===(j=p.options.buttonTheme)||void 0===j||j.splice(k,1),w=null)}return w})}),this.render())}},{key:"getButtonElement",value:function(o){var l,p=this.buttonElements[o];return p&&(l=p.length>1?p:p[0]),l}},{key:"inputPatternIsValid",value:function(o){var l,p=this.options.inputPattern;if((l=p instanceof RegExp?p:p[this.options.inputName||this.defaultName])&&o){var h=l.test(o);return this.options.debug&&console.log('inputPattern ("'.concat(l,'"): ').concat(h?"passed":"did not pass!")),h}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var o=this.options.physicalKeyboardHighlightPreventDefault,l=void 0!==o&&o;document.addEventListener("keyup",this.handleKeyUp,l),document.addEventListener("keydown",this.handleKeyDown,l),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(o){this.caretEventHandler(o),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(o)}},{key:"handleKeyDown",value:function(o){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(o)}},{key:"handleMouseUp",value:function(o){this.caretEventHandler(o)}},{key:"handleTouchEnd",value:function(o){this.caretEventHandler(o)}},{key:"handleSelect",value:function(o){this.caretEventHandler(o)}},{key:"handleSelectionChange",value:function(o){navigator.userAgent.includes("Firefox")||this.caretEventHandler(o)}},{key:"caretEventHandler",value:function(o){var l,p=this;o.target.tagName&&(l=o.target.tagName.toLowerCase()),this.dispatch(function(h){var M=o.target===h.keyboardDOM||o.target&&h.keyboardDOM.contains(o.target);if(p.options.syncInstanceInputs&&Array.isArray(o.path)&&(M=o.path.some(function(k){var V;return null==k||null===(V=k.hasAttribute)||void 0===V?void 0:V.call(k,"data-skInstance")})),("textarea"===l||"input"===l&&["text","search","url","tel","password"].includes(o.target.type))&&!h.options.disableCaretPositioning){var C=o.target.selectionStart,w=o.target.selectionEnd;h.options.rtl&&(C=h.utilities.getRtlOffset(C,h.getInput()),w=h.utilities.getRtlOffset(w,h.getInput())),h.setCaretPosition(C,w),p.activeInputElement=o.target,h.options.debug&&console.log("Caret at: ",h.getCaretPosition(),h.getCaretPositionEnd(),o&&o.target.tagName.toLowerCase(),"(".concat(h.keyboardDOMClass,")"),o?.type)}else!h.options.disableCaretPositioning&&M||"selectionchange"===o?.type||(h.setCaretPosition(null),p.activeInputElement=null,h.options.debug&&console.log('Caret position reset due to "'.concat(o?.type,'" event'),o))})}},{key:"recurseButtons",value:function(o){var l=this;o&&Object.keys(this.buttonElements).forEach(function(p){return l.buttonElements[p].forEach(o)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var o=this.options.physicalKeyboardHighlightPreventDefault,l=void 0!==o&&o;document.removeEventListener("keyup",this.handleKeyUp,l),document.removeEventListener("keydown",this.handleKeyDown,l),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(p){p&&(p.onpointerdown=null,p.onpointerup=null,p.onpointercancel=null,p.ontouchstart=null,p.ontouchend=null,p.ontouchcancel=null,p.onclick=null,p.onmousedown=null,p.onmouseup=null,p.remove(),p=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(o){var l=this.options.buttonTheme,p=[];return Array.isArray(l)&&l.forEach(function(h){if(h&&h.class&&"string"==typeof h.class&&h.buttons&&"string"==typeof h.buttons){var M=h.class.split(" ");h.buttons.split(" ").includes(o)&&(p=[].concat(L(p),L(M)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',h)}),p}},{key:"setDOMButtonAttributes",value:function(o,l){var p=this.options.buttonAttributes;Array.isArray(p)&&p.forEach(function(h){h.attribute&&"string"==typeof h.attribute&&h.value&&"string"==typeof h.value&&h.buttons&&"string"==typeof h.buttons?h.buttons.split(" ").includes(o)&&l(h.attribute,h.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',h)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(o){if(o.target.classList.contains("hg-button"))return o.preventDefault(),o.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender(this)}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var o=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(l){var p=new l(o);p.init&&p.init(o)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(o,l){return!!this.modules[o]&&this.modules[o][l]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(o,l,p,h){var M=this,C=Array.from(o.children),w=0;return C.length&&p.forEach(function(k,V){var j=h[V];if(!(j&&j>k))return!1;var T=k-w,H=j-w,z=document.createElement("div");z.className+="hg-button-container";var U="".concat(M.options.layoutName,"-r").concat(l,"c").concat(V);z.setAttribute("data-skUID",U);var Q=C.splice(T,H-T+1);w=H-T,Q.forEach(function(rt){return z.appendChild(rt)}),C.splice(T,0,z),o.innerHTML="",C.forEach(function(rt){return o.appendChild(rt)}),M.options.debug&&console.log("rowDOMContainer",Q,T,H,w+1)}),o}},{key:"render",value:function(){var o=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var l="hg-layout-".concat(this.options.layoutName),p=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},h=this.options.useTouchEvents||!1,C=this.options.useMouseEvents||!1,w=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,l,this.keyboardPluginClasses,h?"hg-touch-events":""),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",p[this.options.layoutName||this.defaultName].forEach(function(k,V){var j=k.split(" ");o.options.excludeFromLayout&&o.options.excludeFromLayout[o.options.layoutName||o.defaultName]&&(j=j.filter(function(U){return o.options.excludeFromLayout&&!o.options.excludeFromLayout[o.options.layoutName||o.defaultName].includes(U)}));var T=document.createElement("div");T.className+="hg-row";var H=[],z=[];j.forEach(function(U,Q){var rt,st=!w&&"string"==typeof U&&U.length>1&&0===U.indexOf("["),it=!w&&"string"==typeof U&&U.length>1&&U.indexOf("]")===U.length-1;st&&(H.push(Q),U=U.replace(/\[/g,"")),it&&(z.push(Q),U=U.replace(/\]/g,""));var ft=o.utilities.getButtonClass(U),xt=o.utilities.getButtonDisplayName(U,o.options.display,o.options.mergeDisplay),tt=document.createElement(o.options.useButtonTag?"button":"div");tt.className+="hg-button ".concat(ft),(rt=tt.classList).add.apply(rt,L(o.getButtonThemeClasses(U))),o.setDOMButtonAttributes(U,function(nt,ct){tt.setAttribute(nt,ct)}),o.activeButtonClass="hg-activeButton",!o.utilities.pointerEventsSupported()||h||C?h?(tt.ontouchstart=function(nt){o.handleButtonClicked(U,nt),o.handleButtonMouseDown(U,nt)},tt.ontouchend=function(nt){o.handleButtonMouseUp(U,nt)},tt.ontouchcancel=function(nt){o.handleButtonMouseUp(U,nt)}):(tt.onclick=function(nt){o.setMouseHold(!1),"function"!=typeof o.options.onKeyReleased&&o.handleButtonClicked(U,nt)},tt.onmousedown=function(nt){"function"!=typeof o.options.onKeyReleased||o.isMouseHold||o.handleButtonClicked(U,nt),o.handleButtonMouseDown(U,nt)},tt.onmouseup=function(nt){o.handleButtonMouseUp(U,nt)}):(tt.onpointerdown=function(nt){o.handleButtonClicked(U,nt),o.handleButtonMouseDown(U,nt)},tt.onpointerup=function(nt){o.handleButtonMouseUp(U,nt)},tt.onpointercancel=function(nt){o.handleButtonMouseUp(U,nt)}),tt.setAttribute("data-skBtn",U);var ut="".concat(o.options.layoutName,"-r").concat(V,"b").concat(Q);tt.setAttribute("data-skBtnUID",ut);var at=document.createElement("span");at.innerHTML=xt,tt.appendChild(at),o.buttonElements[U]||(o.buttonElements[U]=[]),o.buttonElements[U].push(tt),T.appendChild(tt)}),T=o.parseRowDOMContainers(T,V,H,z),o.keyboardRowsDOM.appendChild(T)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||h||C?h?(document.ontouchend=function(k){return o.handleButtonMouseUp(void 0,k)},document.ontouchcancel=function(k){return o.handleButtonMouseUp(void 0,k)},this.keyboardDOM.ontouchstart=function(k){return o.handleKeyboardContainerMouseDown(k)}):h||(document.onmouseup=function(k){return o.handleButtonMouseUp(void 0,k)},this.keyboardDOM.onmousedown=function(k){return o.handleKeyboardContainerMouseDown(k)}):(document.onpointerup=function(k){return o.handleButtonMouseUp(void 0,k)},this.keyboardDOM.onpointerdown=function(k){return o.handleKeyboardContainerMouseDown(k)}),this.onInit())}}],S&&B(g.prototype,S),Object.defineProperty(g,"prototype",{writable:!1}),E}(),Y=Z,G=Z}(),W}()}}]);