diff --git a/backup/static/default.zip b/backup/static/default.zip index 07d0441..8e09421 100644 Binary files a/backup/static/default.zip and b/backup/static/default.zip differ diff --git a/static/app.json b/static/app.json index af1251d..3ff6863 100644 --- a/static/app.json +++ b/static/app.json @@ -1 +1 @@ -{"mainPage":"home","isFunctionsMigrated":true,"isFunctionsRenamedToUid":true,"publishedPath":"web/output","customFunctionsMap":{"1e23a48a29f82b3fc1f647fd98cb53f6":"getSocketOrigin","4f8fe7d853c915840a67685fa058d83f":"getTooltip","696a14dd8d2f85be7023c2c4441a65a5":"ProManagerAPI","8f16ba2ef5c9c7a7b32d569b3762f6c4":"showMessage"},"shownInViewer":false,"viewport":{"width":null,"height":null,"initialScale":1,"minScale":1,"maxScale":5,"userScalable":true},"metaTags":{},"externalLibraries":[],"faviconHash":"8cb9a0ae","pages":{"404":{"label":"Not Found Page","style":{"padding":"20px 20px 20px 20px"},"usedComponentTypes":["panel","block","text","button"],"components":{"page":{"type":"page","moduleType":"system","moduleId":"page","handlers":{}},"902c9641de4ec9e73427e7192a118d14":{"id":"Button - 1","type":"button","moduleType":"system","moduleId":"button","handlers":{"onClick":{"usedCustomFunctions":[]}}}},"dataBinding":{},"attrs":{},"pods":{},"html":"
Upgrade consists of 2 steps. The first is the database upgrade, and the second backendless images upgrade. It is not possible to revert the database upgrade automatically, so be careful and make sure that you have database backup to be able to downgrade.
Upgrade consists of 2 steps. The first is the database upgrade, and the second backendless images upgrade. It is not possible to revert the database upgrade automatically, so be careful and make sure that you have database backup to be able to downgrade.
{"use strict";function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;qF,s:()=>$});var F={AUTOCOMPLETE:"autocomplete",SEARCH_BOX:"search_box"},W={current:null},$={getPlacesPredictions:(M,q,Z)=>{if(!W.current&&window.google&&(W.current=new window.google.maps.places.AutocompleteService),W.current){var $=function getLocation(M){if(!M||!window.google)return null;var q=M.lat,Z=M.lng;if("number"!=typeof q&&!isNaN(q))return null;if("number"!=typeof Z&&!isNaN(Z))return null;return new window.google.maps.LatLng(q,Z)}(q.location),Y=_objectSpread(_objectSpread({},q),{},{location:$});return Y.input?function optionsLoader(M,q,Z){if(M===F.AUTOCOMPLETE)return W.current.getPlacePredictions(q,Z);return W.current.getQueryPredictions(q,Z)}(M,Y,Z):{predictions:[]}}}}},44627:(M,q,Z)=>{"use strict";Z.d(q,{Z:()=>ye});var F=Z(94770),W=Z(47323),$=Z(61800);function asyncGeneratorStep(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}function _asyncToGenerator(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function _next(M){asyncGeneratorStep($,F,W,_next,_throw,"next",M)}function _throw(M){asyncGeneratorStep($,F,W,_next,_throw,"throw",M)}_next(void 0)}))}}var Y=["places"];function GoogleMapApiLoader(M){var{googleApiKey:q,children:Z,libraries:W=Y}=M,[$,X]=(0,F.useState)(!1),ee=(0,F.useSafeAsync)();return(0,F.useEffect)((()=>{ee(function loadLib(M,q){return _loadLib.apply(this,arguments)}(q,W)).then((()=>X(!0)))}),[q,W]),$?Z:null}var X={};function composeLibURL(M,q){var Z={key:M};q&&(Z.libraries=q);var F=function toQueryParams(M){return Object.keys(M).map((q=>"".concat(q,"=").concat(M[q]))).join("&")}(Z);return X[F]||(X[F]={},X[F].fnName="google_api_callback_".concat($.h.mini()),X[F].callback=new Promise((M=>{window[X[F].fnName]=()=>M()}))),{url:"".concat("//maps.googleapis.com/maps/api/js","?").concat(F,"&callback=").concat(X[F].fnName),callback:X[F].callback}}function _loadLib(){return(_loadLib=_asyncToGenerator((function*(M,q){var{url:Z,callback:F}=composeLibURL(M,q);yield W.Z.loadLibrary(Z),yield F}))).apply(this,arguments)}var ee=Z(67294),ae=Z(50066);function GoogleMarker(M){var{mapRef:q,map:Z,point:F,showInfoWindow:W,onMarkerClick:$}=M;return(0,ee.useEffect)((()=>{var M=new google.maps.Marker({title:F.title,position:{lat:F.lat,lng:F.lng},map:Z});return M.data=F,M.addListener("click",(function(){$?$({point:F}):W(M)})),F.autoOpenInfo&&W(M),q.current.markers.push(M),()=>{q.current.markers=q.current.markers.filter((q=>q!==M)),M.setMap(null)}}),[Z,F.infoWindow,F.autoOpenInfo,F.title,F.lat,F.lng]),null}var ie=["elRef","className","mapRef","style","onZoom","onPan","onMarkerClick","traffic","scrollWheel"];function _objectWithoutProperties(M,q){if(null==M)return{};var Z,F,W=function _objectWithoutPropertiesLoose(M,q){if(null==M)return{};var Z,F,W={},$=Object.keys(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||(W[Z]=M[Z]);return W}(M,q);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||Object.prototype.propertyIsEnumerable.call(M,Z)&&(W[Z]=M[Z])}return W}var le=Z(23493),ce=Z.n(le),de=Z(66986),pe=Z(14226),fe=["googleApiKey","searchMode","value","onChange","id","style","classList","queryPredictionsSettings","placesPredictionsSettings","variant","required","disabled","placeholder","readOnly","size"];function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;q =0||(W[Z]=M[Z]);return W}(M,q);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||Object.prototype.propertyIsEnumerable.call(M,Z)&&(W[Z]=M[Z])}return W}function getOptionLabel(M){return"string"==typeof M?M:M.description?M.description:"No data"}function renderOption(M){var q=M.structured_formatting?M.structured_formatting.main_text:"";return(0,ee.createElement)(de.Z.Grid,{container:!0,alignItems:"center"},(0,ee.createElement)(de.Z.Grid,{item:!0,xs:!0},q,(0,ee.createElement)(de.Z.Typography,{variant:"body2",color:"textSecondary"},M.structured_formatting?M.structured_formatting.secondary_text:"")))}const ye={GoogleMapApiLoader,GoogleMap:function GoogleMap(M){var{elRef:q,className:Z,mapRef:W,style:$,onZoom:Y,onPan:X,onMarkerClick:le,traffic:ce,scrollWheel:de}=M,pe=_objectWithoutProperties(M,ie),{googleApiKey:fe}=M,[ye,be]=(0,F.useState)(),[we]=(0,F.useState)((()=>({freezeSettingCenter:!1,mapOptions:null,nextCenter:null,infoWindow:null,trafficLayer:null}))),_e=(0,F.useMemo)((()=>({lat:pe.center.lat,lng:pe.center.lng})),[pe.center.lat,pe.center.lng]);we.mapOptions=pe,we.nextCenter=_e,de||(pe.scrollWheel=de);var Se=pe.points||[],hideInfoWindow=()=>{ye&&we.infoWindow.close()},xe=function showInfoWindow(M){var{content:q,options:Z}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hideInfoWindow(),!M||M instanceof google.maps.Marker||(M=W.current.markers.find((q=>q.data===M))),ye&&M&&((q=q||M.data.title||M.data.infoWindow)&&we.infoWindow.setContent(q),Z&&we.infoWindow.setOptions(Z),we.infoWindow.open(ye,M))};return W.current&&(W.current.showInfoWindow=xe,W.current.hideInfoWindow=hideInfoWindow),(0,F.useEffect)((()=>{if(ye&&!we.freezeSettingCenter){var M=ye.getCenter(),q=M&&M.toJSON()||{};(_e&&q.lat!==_e.lat||q.lng!==_e.lng)&&ye.setCenter(_e)}}),[ye,_e]),(0,F.useEffect)((()=>{ye&&pe.zoom&&ye.getZoom()!==pe.zoom&&ye.setZoom(pe.zoom)}),[ye,pe.zoom]),(0,F.useEffect)((()=>{ye&&pe.mapType&&ye.getMapTypeId()!==pe.mapType&&ye.setMapTypeId(pe.mapType)}),[ye,pe.mapType]),(0,F.useEffect)((()=>{ye&&(ce&&(we.trafficLayer=new google.maps.TrafficLayer,we.trafficLayer.setMap(ye)),!ce&&we.trafficLayer&&we.trafficLayer.setMap(null))}),[ye,ce]),(0,F.useEffect)((()=>{ye&&ye.setOptions({zoomControl:pe.zoomControl,mapTypeControl:pe.mapTypeControl,scaleControl:pe.scaleControl,streetViewControl:pe.streetViewControl,rotateControl:pe.rotateControl,fullscreenControl:pe.fullscreenControl,scrollwheel:pe.scrollWheel,gestureHandling:pe.gestureHandling})}),[ye,pe.zoomControl,pe.mapTypeControl,pe.scaleControl,pe.streetViewControl,pe.rotateControl,pe.fullscreenControl,pe.scrollWheel,pe.gestureHandling]),ee.createElement(GoogleMapApiLoader,{googleApiKey:fe},ee.createElement("div",{ref:q,className:(0,ae.cn)("bl-google-map",Z),style:$},ee.createElement("div",{style:{position:"relative",width:"auto",height:"auto",minWidth:"100%"}},ee.createElement("div",{ref:M=>{if(M&&!ye){we.infoWindow=new google.maps.InfoWindow({content:""});var q=new google.maps.Map(M,{disableDefaultUI:!0});q.addListener("dragstart",(()=>{we.freezeSettingCenter=!0})),q.addListener("dragend",(()=>{we.freezeSettingCenter=!1})),q.addListener("center_changed",(()=>{var M=q.getCenter().toJSON(),Z=we.nextCenter;if(M&&(Z.lat!==M.lat||Z.lng!==M.lng)){var F=q.getBounds(),W=F.getNorthEast().toJSON(),$=F.getSouthWest().toJSON();X({currentCenter:M,northEast:W,southWest:$})}})),q.addListener("zoom_changed",(()=>{var M=q.getZoom();we.mapOptions.zoom!==M&&Y({currentZoom:M})})),q.addListener("maptypeid_changed",(()=>{if(we.mapOptions.setMapType){var M=q.getMapTypeId();M!==we.mapOptions.mapType&&we.mapOptions.setMapType(M)}})),be(q),W.current={map:q,markers:[],showInfoWindow:xe,hideInfoWindow}}},style:{position:"absolute",width:"100%",height:"100%"}},ye&&Se.map(((M,q)=>ee.createElement(GoogleMarker,{key:q,mapRef:W,map:ye,point:M,showInfoWindow:xe,hideInfoWindow,onMarkerClick:le})))))))},AutocompleteGooglePlaces:function AutocompleteGooglePlaces(M){var{googleApiKey:q,searchMode:Z,value:F,onChange:W,id:$,style:Y,classList:X,queryPredictionsSettings:ie,placesPredictionsSettings:le,variant:ye,required:be,disabled:we,placeholder:_e,readOnly:Se,size:xe}=M,Pe=autocomplete_google_places_objectWithoutProperties(M,fe),[Re,Te]=(0,ee.useState)([]),[Ie,qe]=(0,ee.useState)(""),ze=Z===pe.Q.AUTOCOMPLETE?le:ie,Ve=(0,ee.useMemo)((()=>ce()(((M,q,Z)=>{BackendlessUI.GoogleAPI.getPlacesPredictions(M,q,Z)}),200)),[]);(0,ee.useEffect)((()=>{(()=>{if(""!==Ie){var M=_objectSpread(_objectSpread({},ze),{},{input:Ie});Ve(Z,M,(M=>{var q=[];F&&(q=[F]),M&&(q=[...q,...M]),Te(q)}))}else Te(F?[F]:[])})()}),[F,Ie,Z,ze]),(0,ee.useEffect)((()=>{F?"string"==typeof F?qe(F):F.description!==Ie&&qe(F.description):qe("")}),[F]);var We=_objectSpread(_objectSpread({},Pe),{},{value:Ie,type:"text",variant:ye,required:be,placeholder:_e,disabled:we,InputLabelProps:{classes:{root:"bl-autocomplete-google-places-label",focused:"bl-autocomplete-google-places-label--focused",disabled:"bl-autocomplete-google-places-label--disabled",required:"bl-autocomplete-google-places-label--required",filled:"bl-autocomplete-google-places-label--filled",outlined:"bl-autocomplete-google-places-label--outlined"},shrink:!!_e||void 0},InputProps:{readOnly:!!Se,classes:{focused:"bl-autocomplete-google-places-input-input--focused",disabled:"bl-autocomplete-google-places-input-input--disabled"}}});return(0,ee.createElement)(GoogleMapApiLoader,{googleApiKey:q},(0,ee.createElement)(de.Z.Autocomplete,{id:$,options:Re,value:F,style:Y,disabled:we,size:xe,onChange:(M,q)=>{Te(q?[q,...Re]:Re),W(q)},autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,renderOption,getOptionLabel,filterOptions:M=>M,onInputChange:(M,q)=>qe(q),renderInput:M=>function _renderInput(M,q){var Z=_objectSpread(_objectSpread(_objectSpread({},M),{},{inputProps:_objectSpread(_objectSpread({},M.inputProps),{},{value:q.value})},q),{},{InputProps:_objectSpread(_objectSpread({},M.InputProps),q.InputProps),InputLabelProps:_objectSpread(_objectSpread({},M.InputLabelProps),q.InputLabelProps)});return(0,ee.createElement)(de.Z.TextField,Z)}(M,We),className:(0,ae.cn)(X,"bl-autocomplete-google-places-input","bl-autocomplete-google-places-input--".concat(ye),{"bl-autocomplete-google-places-input--disabled":we,"bl-autocomplete-google-places-input--required":be,"bl-autocomplete-google-places-input--with-value":!!F}),classes:{root:"bl-autocomplete-google-places",focused:"bl-autocomplete-google-places--focused",inputRoot:"bl-autocomplete-google-places-input-input-root",listbox:"bl-autocomplete-google-places--listbox",noOptions:"bl-autocomplete-google-places--noOptions",option:"bl-autocomplete-google-places--option",groupUl:"bl-autocomplete-google-places--groupUl"}}))}}},72484:(M,q,Z)=>{"use strict";Z.d(q,{j:()=>F});var F={MaterialUI:Z(66986).Z}},66986:(M,q,Z)=>{"use strict";Z.d(q,{Z:()=>lt});var F=Z(45987),W=Z(4942),$=Z(87462),Y=Z(67294),X=Z(86010),ee=Z(52543),ae=Z(96617),ie=Z(96837),le=Z(79895),ce=Z(17812),de=Z(71267),pe=Z(63786);const fe=(0,pe.Z)(Y.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ye=(0,pe.Z)(Y.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var be=Z(29439),we=Z(95001),_e=Z(22775),Se=Z(55192),xe=Z(34236);function stripDiacritics(M){return void 0!==M.normalize?M.normalize("NFD").replace(/[\u0300-\u036f]/g,""):M}function findIndex(M,q){for(var Z=0;Z 0&&void 0!==arguments[0]?arguments[0]:{},q=M.ignoreAccents,Z=void 0===q||q,F=M.ignoreCase,W=void 0===F||F,$=M.limit,Y=M.matchFrom,X=void 0===Y?"any":Y,ee=M.stringify,ae=M.trim,ie=void 0!==ae&&ae;return function(M,q){var F=q.inputValue,Y=q.getOptionLabel,ae=ie?F.trim():F;W&&(ae=ae.toLowerCase()),Z&&(ae=stripDiacritics(ae));var le=M.filter((function(M){var q=(ee||Y)(M);return W&&(q=q.toLowerCase()),Z&&(q=stripDiacritics(q)),"start"===X?0===q.indexOf(ae):q.indexOf(ae)>-1}));return"number"==typeof $?le.slice(0,$):le}}();function useAutocomplete(M){var q=M.autoComplete,Z=void 0!==q&&q,F=M.autoHighlight,W=void 0!==F&&F,X=M.autoSelect,ee=void 0!==X&&X,ae=M.blurOnSelect,ie=void 0!==ae&&ae,le=M.clearOnBlur,ce=void 0===le?!M.freeSolo:le,de=M.clearOnEscape,pe=void 0!==de&&de,fe=M.componentName,ye=void 0===fe?"useAutocomplete":fe,Re=M.debug,Te=void 0!==Re&&Re,Ie=M.defaultValue,qe=void 0===Ie?M.multiple?[]:null:Ie,ze=M.disableClearable,Ve=void 0!==ze&&ze,We=M.disableCloseOnSelect,He=void 0!==We&&We,Ye=M.disabledItemsFocusable,Qe=void 0!==Ye&&Ye,Xe=M.disableListWrap,et=void 0!==Xe&&Xe,tt=M.filterOptions,nt=void 0===tt?Pe:tt,rt=M.filterSelectedOptions,ot=void 0!==rt&&rt,at=M.freeSolo,it=void 0!==at&&at,st=M.getOptionDisabled,ut=M.getOptionLabel,lt=void 0===ut?function(M){return M}:ut,ct=M.getOptionSelected,dt=void 0===ct?function(M,q){return M===q}:ct,pt=M.groupBy,ft=M.handleHomeEndKeys,ht=void 0===ft?!M.freeSolo:ft,yt=M.id,mt=M.includeInputInList,vt=void 0!==mt&&mt,gt=M.inputValue,bt=M.multiple,wt=void 0!==bt&&bt,_t=M.onChange,kt=M.onClose,Ot=M.onHighlightChange,Et=M.onInputChange,St=M.onOpen,xt=M.open,Pt=M.openOnFocus,Ct=void 0!==Pt&&Pt,jt=M.options,Rt=M.selectOnFocus,Tt=void 0===Rt?!M.freeSolo:Rt,Dt=M.value,Lt=(0,we.Z)(yt),It=lt;var At=Y.useRef(!1),Nt=Y.useRef(!0),Mt=Y.useRef(null),Bt=Y.useRef(null),Ut=Y.useState(null),qt=Ut[0],Zt=Ut[1],Ft=Y.useState(-1),zt=Ft[0],Vt=Ft[1],Wt=W?0:-1,Kt=Y.useRef(Wt),Ht=(0,_e.Z)({controlled:Dt,default:qe,name:ye}),Gt=(0,be.Z)(Ht,2),$t=Gt[0],Jt=Gt[1],Yt=(0,_e.Z)({controlled:gt,default:"",name:ye,state:"inputValue"}),Qt=(0,be.Z)(Yt,2),Xt=Qt[0],en=Qt[1],tn=Y.useState(!1),nn=tn[0],rn=tn[1],on=(0,Se.Z)((function(M,q){var Z;if(wt)Z="";else if(null==q)Z="";else{var F=It(q);Z="string"==typeof F?F:""}Xt!==Z&&(en(Z),Et&&Et(M,Z,"reset"))}));Y.useEffect((function(){on(null,$t)}),[$t,on]);var an=(0,_e.Z)({controlled:xt,default:!1,name:ye,state:"open"}),sn=(0,be.Z)(an,2),un=sn[0],ln=sn[1],dn=!wt&&null!=$t&&Xt===It($t),pn=un,fn=pn?nt(jt.filter((function(M){return!ot||!(wt?$t:[$t]).some((function(q){return null!==q&&dt(M,q)}))})),{inputValue:dn?"":Xt,getOptionLabel:It}):[],hn=(0,Se.Z)((function(M){-1===M?Mt.current.focus():qt.querySelector('[data-tag-index="'.concat(M,'"]')).focus()}));Y.useEffect((function(){wt&&zt>$t.length-1&&(Vt(-1),hn(-1))}),[$t,wt,zt,hn]);var yn=(0,Se.Z)((function(M){var q=M.event,Z=M.index,F=M.reason,W=void 0===F?"auto":F;if(Kt.current=Z,-1===Z?Mt.current.removeAttribute("aria-activedescendant"):Mt.current.setAttribute("aria-activedescendant","".concat(Lt,"-option-").concat(Z)),Ot&&Ot(q,-1===Z?null:fn[Z],W),Bt.current){var $=Bt.current.querySelector("[data-focus]");$&&$.removeAttribute("data-focus");var Y=Bt.current.parentElement.querySelector('[role="listbox"]');if(Y)if(-1!==Z){var X=Bt.current.querySelector('[data-option-index="'.concat(Z,'"]'));if(X&&(X.setAttribute("data-focus","true"),Y.scrollHeight>Y.clientHeight&&"mouse"!==W)){var ee=X,ae=Y.clientHeight+Y.scrollTop,ie=ee.offsetTop+ee.offsetHeight;ie>ae?Y.scrollTop=ie-Y.clientHeight:ee.offsetTop-ee.offsetHeight*(pt?1.3:0) 1?0:M:q>M?q===M+1&&vt?-1:et||Math.abs(F)>1?M:0:q}(),$);if(yn({index:ee,reason:X,event:q}),Z&&"reset"!==F)if(-1===ee)Mt.current.value=Xt;else{var ae=It(fn[ee]);Mt.current.value=ae,0===ae.toLowerCase().indexOf(Xt.toLowerCase())&&Xt.length>0&&Mt.current.setSelectionRange(Xt.length,ae.length)}}})),vn=Y.useCallback((function(){if(pn){var M=wt?$t[0]:$t;if(0!==fn.length&&null!=M){if(Bt.current)if(ot||null==M)Kt.current>=fn.length-1?yn({index:fn.length-1}):yn({index:Kt.current});else{var q=fn[Kt.current];if(wt&&q&&-1!==findIndex($t,(function(M){return dt(q,M)})))return;var Z=findIndex(fn,(function(q){return dt(q,M)}));-1===Z?mn({diff:"reset"}):yn({index:Z})}}else mn({diff:"reset"})}}),[0===fn.length,!wt&&$t,ot,mn,yn,pn,Xt,wt]),gn=(0,Se.Z)((function(M){(0,xe.Z)(Bt,M),M&&vn()}));Y.useEffect((function(){vn()}),[vn]);var bn=function handleOpen(M){un||(ln(!0),St&&St(M))},wn=function handleClose(M,q){un&&(ln(!1),kt&&kt(M,q))},_n=function handleValue(M,q,Z,F){$t!==q&&(_t&&_t(M,q,Z,F),Jt(q))},kn=Y.useRef(!1),On=function selectNewValue(M,q){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",F=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",W=Z,$=q;if(wt){var Y=findIndex($=Array.isArray($t)?$t.slice():[],(function(M){return dt(q,M)}));-1===Y?$.push(q):"freeSolo"!==F&&($.splice(Y,1),W="remove-option")}on(M,$),_n(M,$,W,{option:q}),He||wn(M,W),(!0===ie||"touch"===ie&&kn.current||"mouse"===ie&&!kn.current)&&Mt.current.blur()};var En=function handleFocusTag(M,q){if(wt){wn(M,"toggleInput");var Z=zt;-1===zt?""===Xt&&"previous"===q&&(Z=$t.length-1):((Z+="next"===q?1:-1)<0&&(Z=0),Z===$t.length&&(Z=-1)),Z=function validTagIndex(M,q){if(-1===M)return-1;for(var Z=M;;){if("next"===q&&Z===$t.length||"previous"===q&&-1===Z)return-1;var F=qt.querySelector('[data-tag-index="'.concat(Z,'"]'));if(!F||F.hasAttribute("tabindex")&&!F.disabled&&"true"!==F.getAttribute("aria-disabled"))return Z;Z+="next"===q?1:-1}}(Z,q),Vt(Z),hn(Z)}},Sn=function handleClear(M){At.current=!0,en(""),Et&&Et(M,"","clear"),_n(M,wt?[]:null,"clear")},xn=function handleKeyDown(M){return function(q){switch(-1!==zt&&-1===["ArrowLeft","ArrowRight"].indexOf(q.key)&&(Vt(-1),hn(-1)),q.key){case"Home":pn&&ht&&(q.preventDefault(),mn({diff:"start",direction:"next",reason:"keyboard",event:q}));break;case"End":pn&&ht&&(q.preventDefault(),mn({diff:"end",direction:"previous",reason:"keyboard",event:q}));break;case"PageUp":q.preventDefault(),mn({diff:-5,direction:"previous",reason:"keyboard",event:q}),bn(q);break;case"PageDown":q.preventDefault(),mn({diff:5,direction:"next",reason:"keyboard",event:q}),bn(q);break;case"ArrowDown":q.preventDefault(),mn({diff:1,direction:"next",reason:"keyboard",event:q}),bn(q);break;case"ArrowUp":q.preventDefault(),mn({diff:-1,direction:"previous",reason:"keyboard",event:q}),bn(q);break;case"ArrowLeft":En(q,"previous");break;case"ArrowRight":En(q,"next");break;case"Enter":if(229===q.which)break;if(-1!==Kt.current&&pn){var F=fn[Kt.current],W=!!st&&st(F);if(q.preventDefault(),W)return;On(q,F,"select-option"),Z&&Mt.current.setSelectionRange(Mt.current.value.length,Mt.current.value.length)}else it&&""!==Xt&&!1===dn&&(wt&&q.preventDefault(),On(q,Xt,"create-option","freeSolo"));break;case"Escape":pn?(q.preventDefault(),q.stopPropagation(),wn(q,"escape")):pe&&(""!==Xt||wt&&$t.length>0)&&(q.preventDefault(),q.stopPropagation(),Sn(q));break;case"Backspace":if(wt&&""===Xt&&$t.length>0){var $=-1===zt?$t.length-1:zt,Y=$t.slice();Y.splice($,1),_n(q,Y,"remove-option",{option:$t[$]})}}M.onKeyDown&&M.onKeyDown(q)}},Pn=function handleFocus(M){rn(!0),Ct&&!At.current&&bn(M)},Cn=function handleBlur(M){null===Bt.current||document.activeElement!==Bt.current.parentElement?(rn(!1),Nt.current=!0,At.current=!1,Te&&""!==Xt||(ee&&-1!==Kt.current&&pn?On(M,fn[Kt.current],"blur"):ee&&it&&""!==Xt?On(M,Xt,"blur","freeSolo"):ce&&on(M,$t),wn(M,"blur"))):Mt.current.focus()},jn=function handleInputChange(M){var q=M.target.value;Xt!==q&&(en(q),Et&&Et(M,q,"input")),""===q?Ve||wt||_n(M,null,"clear"):bn(M)},Rn=function handleOptionMouseOver(M){yn({event:M,index:Number(M.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Tn=function handleOptionTouchStart(){kn.current=!0},Dn=function handleOptionClick(M){var q=Number(M.currentTarget.getAttribute("data-option-index"));On(M,fn[q],"select-option"),kn.current=!1},Ln=function handleTagDelete(M){return function(q){var Z=$t.slice();Z.splice(M,1),_n(q,Z,"remove-option",{option:$t[M]})}},In=function handlePopupIndicator(M){un?wn(M,"toggleInput"):bn(M)},An=function handleMouseDown(M){M.target.getAttribute("id")!==Lt&&M.preventDefault()},Nn=function handleClick(){Mt.current.focus(),Tt&&Nt.current&&Mt.current.selectionEnd-Mt.current.selectionStart==0&&Mt.current.select(),Nt.current=!1},Mn=function handleInputMouseDown(M){""!==Xt&&un||In(M)},Bn=it&&Xt.length>0;Bn=Bn||(wt?$t.length>0:null!==$t);var Un=fn;if(pt){new Map;Un=fn.reduce((function(M,q,Z){var F=pt(q);return M.length>0&&M[M.length-1].group===F?M[M.length-1].options.push(q):M.push({key:Z,index:Z,group:F,options:[q]}),M}),[])}return{getRootProps:function getRootProps(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,$.Z)({"aria-owns":pn?"".concat(Lt,"-popup"):null,role:"combobox","aria-expanded":pn},M,{onKeyDown:xn(M),onMouseDown:An,onClick:Nn})},getInputLabelProps:function getInputLabelProps(){return{id:"".concat(Lt,"-label"),htmlFor:Lt}},getInputProps:function getInputProps(){return{id:Lt,value:Xt,onBlur:Cn,onFocus:Pn,onChange:jn,onMouseDown:Mn,"aria-activedescendant":pn?"":null,"aria-autocomplete":Z?"both":"list","aria-controls":pn?"".concat(Lt,"-popup"):null,autoComplete:"off",ref:Mt,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function getClearProps(){return{tabIndex:-1,onClick:Sn}},getPopupIndicatorProps:function getPopupIndicatorProps(){return{tabIndex:-1,onClick:In}},getTagProps:function getTagProps(M){var q=M.index;return{key:q,"data-tag-index":q,tabIndex:-1,onDelete:Ln(q)}},getListboxProps:function getListboxProps(){return{role:"listbox",id:"".concat(Lt,"-popup"),"aria-labelledby":"".concat(Lt,"-label"),ref:gn,onMouseDown:function onMouseDown(M){M.preventDefault()}}},getOptionProps:function getOptionProps(M){var q=M.index,Z=M.option,F=(wt?$t:[$t]).some((function(M){return null!=M&&dt(Z,M)})),W=!!st&&st(Z);return{key:q,tabIndex:-1,role:"option",id:"".concat(Lt,"-option-").concat(q),onMouseOver:Rn,onClick:Dn,onTouchStart:Tn,"data-option-index":q,"aria-disabled":W,"aria-selected":F}},id:Lt,inputValue:Xt,value:$t,dirty:Bn,popupOpen:pn,focused:nn||-1!==zt,anchorEl:qt,setAnchorEl:Zt,focusedTag:zt,groupedOptions:Un}}function DisablePortal(M){M.anchorEl,M.open;var q=(0,F.Z)(M,["anchorEl","open"]);return Y.createElement("div",q)}var Re=Y.createElement(fe,{fontSize:"small"}),Te=Y.createElement(ye,null),Ie=Y.forwardRef((function Autocomplete(M,q){M.autoComplete,M.autoHighlight,M.autoSelect,M.blurOnSelect;var Z,W=M.ChipProps,ee=M.classes,pe=M.className,fe=M.clearOnBlur,ye=(void 0===fe&&M.freeSolo,M.clearOnEscape,M.clearText),be=void 0===ye?"Clear":ye,we=M.closeIcon,_e=void 0===we?Re:we,Se=M.closeText,xe=void 0===Se?"Close":Se,Pe=(M.debug,M.defaultValue),Ie=(void 0===Pe&&M.multiple,M.disableClearable),qe=void 0!==Ie&&Ie,ze=(M.disableCloseOnSelect,M.disabled),Ve=void 0!==ze&&ze,We=(M.disabledItemsFocusable,M.disableListWrap,M.disablePortal),He=void 0!==We&&We,Ye=(M.filterOptions,M.filterSelectedOptions,M.forcePopupIcon),Qe=void 0===Ye?"auto":Ye,Xe=M.freeSolo,et=void 0!==Xe&&Xe,tt=M.fullWidth,nt=void 0!==tt&&tt,rt=M.getLimitTagsText,ot=void 0===rt?function(M){return"+".concat(M)}:rt,at=(M.getOptionDisabled,M.getOptionLabel),it=void 0===at?function(M){return M}:at,st=(M.getOptionSelected,M.groupBy),ut=M.handleHomeEndKeys,lt=(void 0===ut&&M.freeSolo,M.id,M.includeInputInList,M.inputValue,M.limitTags),ct=void 0===lt?-1:lt,dt=M.ListboxComponent,pt=void 0===dt?"ul":dt,ft=M.ListboxProps,ht=M.loading,yt=void 0!==ht&&ht,mt=M.loadingText,vt=void 0===mt?"Loading…":mt,gt=M.multiple,bt=void 0!==gt&>,wt=M.noOptionsText,_t=void 0===wt?"No options":wt,kt=(M.onChange,M.onClose,M.onHighlightChange,M.onInputChange,M.onOpen,M.open,M.openOnFocus,M.openText),Ot=void 0===kt?"Open":kt,Et=(M.options,M.PaperComponent),St=void 0===Et?le.Z:Et,xt=M.PopperComponent,Pt=void 0===xt?ae.Z:xt,Ct=M.popupIcon,jt=void 0===Ct?Te:Ct,Rt=M.renderGroup,Tt=M.renderInput,Dt=M.renderOption,Lt=M.renderTags,It=M.selectOnFocus,At=(void 0===It&&M.freeSolo,M.size),Nt=void 0===At?"medium":At,Mt=(M.value,(0,F.Z)(M,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),Bt=He?DisablePortal:Pt,Ut=useAutocomplete((0,$.Z)({},M,{componentName:"Autocomplete"})),qt=Ut.getRootProps,Zt=Ut.getInputProps,Ft=Ut.getInputLabelProps,zt=Ut.getPopupIndicatorProps,Vt=Ut.getClearProps,Wt=Ut.getTagProps,Kt=Ut.getListboxProps,Ht=Ut.getOptionProps,Gt=Ut.value,$t=Ut.dirty,Jt=Ut.id,Yt=Ut.popupOpen,Qt=Ut.focused,Xt=Ut.focusedTag,en=Ut.anchorEl,tn=Ut.setAnchorEl,nn=Ut.inputValue,rn=Ut.groupedOptions;if(bt&&Gt.length>0){var on=function getCustomizedTagProps(M){return(0,$.Z)({className:(0,X.default)(ee.tag,"small"===Nt&&ee.tagSizeSmall),disabled:Ve},Wt(M))};Z=Lt?Lt(Gt,on):Gt.map((function(M,q){return Y.createElement(de.Z,(0,$.Z)({label:it(M),size:Nt},on({index:q}),W))}))}if(ct>-1&&Array.isArray(Z)){var an=Z.length-ct;!Qt&&an>0&&(Z=Z.splice(0,ct)).push(Y.createElement("span",{className:ee.tag,key:Z.length},ot(an)))}var sn=Rt||function defaultRenderGroup(M){return Y.createElement("li",{key:M.key},Y.createElement(ie.Z,{className:ee.groupLabel,component:"div"},M.group),Y.createElement("ul",{className:ee.groupUl},M.children))},un=Dt||it,ln=function renderListOption(M,q){var Z=Ht({option:M,index:q});return Y.createElement("li",(0,$.Z)({},Z,{className:ee.option}),un(M,{selected:Z["aria-selected"],inputValue:nn}))},dn=!qe&&!Ve,pn=(!et||!0===Qe)&&!1!==Qe;return Y.createElement(Y.Fragment,null,Y.createElement("div",(0,$.Z)({ref:q,className:(0,X.default)(ee.root,pe,Qt&&ee.focused,nt&&ee.fullWidth,dn&&ee.hasClearIcon,pn&&ee.hasPopupIcon)},qt(Mt)),Tt({id:Jt,disabled:Ve,fullWidth:!0,size:"small"===Nt?"small":void 0,InputLabelProps:Ft(),InputProps:{ref:tn,className:ee.inputRoot,startAdornment:Z,endAdornment:Y.createElement("div",{className:ee.endAdornment},dn?Y.createElement(ce.Z,(0,$.Z)({},Vt(),{"aria-label":be,title:be,className:(0,X.default)(ee.clearIndicator,$t&&ee.clearIndicatorDirty)}),_e):null,pn?Y.createElement(ce.Z,(0,$.Z)({},zt(),{disabled:Ve,"aria-label":Yt?xe:Ot,title:Yt?xe:Ot,className:(0,X.default)(ee.popupIndicator,Yt&&ee.popupIndicatorOpen)}),jt):null)},inputProps:(0,$.Z)({className:(0,X.default)(ee.input,-1===Xt&&ee.inputFocused),disabled:Ve},Zt())})),Yt&&en?Y.createElement(Bt,{className:(0,X.default)(ee.popper,He&&ee.popperDisablePortal),style:{width:en?en.clientWidth:null},role:"presentation",anchorEl:en,open:!0},Y.createElement(St,{className:ee.paper},yt&&0===rn.length?Y.createElement("div",{className:ee.loading},vt):null,0!==rn.length||et||yt?null:Y.createElement("div",{className:ee.noOptions},_t),rn.length>0?Y.createElement(pt,(0,$.Z)({className:ee.listbox},Kt(),ft),rn.map((function(M,q){return st?sn({key:M.key,group:M.group,children:M.options.map((function(q,Z){return ln(q,M.index+Z)}))}):ln(M,q)}))):null)):null)}));const qe=(0,ee.Z)((function styles(M){var q;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:M.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,$.Z)({},M.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:M.palette.text.secondary,padding:"14px 16px"},noOptions:{color:M.palette.text.secondary,padding:"14px 16px"},option:(q={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,W.Z)(q,M.breakpoints.up("sm"),{minHeight:"auto"}),(0,W.Z)(q,'&[aria-selected="true"]',{backgroundColor:M.palette.action.selected}),(0,W.Z)(q,'&[data-focus="true"]',{backgroundColor:M.palette.action.hover}),(0,W.Z)(q,"&:active",{backgroundColor:M.palette.action.selected}),(0,W.Z)(q,'&[aria-disabled="true"]',{opacity:M.palette.action.disabledOpacity,pointerEvents:"none"}),q),groupLabel:{backgroundColor:M.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(Ie);var ze=Z(282),Ve=Z(110),We=Z(96394),He=Z(85639),Ye=Z(64436),Qe=Z(9570),Xe=Z(13258),et=Z(868),tt=Z(48662),nt=Z(52541),rt=Z(30553),ot=Z(39803),at=Z(92863),it=Z(44845),st=Z(41749),ut=Z(22318);const lt={Select:Ve.Z,InputLabel:We.Z,MenuItem:He.Z,FormControl:Ye.Z,Radio:tt.Z,RadioGroup:nt.Z,FormControlLabel:rt.Z,Button:ze.Z,Chip:de.Z,Switch:Qe.Z,Checkbox:Xe.Z,Slider:it.Z,Icon:at.Z,TextField:ot.Z,Tooltip:et.ZP,Autocomplete:qe,Grid:st.Z,Typography:ut.Z}},19610:(M,q,Z)=>{"use strict";Z.d(q,{C:()=>$});var F=Z(61595),W=Z(63999);function asyncGeneratorStep(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}var $={getCurrentGeolocation:()=>function _asyncToGenerator(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function _next(M){asyncGeneratorStep($,F,W,_next,_throw,"next",M)}function _throw(M){asyncGeneratorStep($,F,W,_next,_throw,"throw",M)}_next(void 0)}))}}((function*(){return(yield F.L.isRunningEnv(F.L.RunningENVs.NATIVE_SHELL))?F.L.getCurrentLocation():new Promise(((M,q)=>navigator.geolocation.getCurrentPosition((q=>M({lat:q.coords.latitude,lng:q.coords.longitude})),(M=>q(M)))))}))(),getNextPageUrl(M,q){if(q&&("object"!=typeof q||Array.isArray(q)))throw new Error("Page data can be only object.");q=JSON.stringify(q||{});var Z="?".concat(W.L.stringify({page:M,data:q},{sort:!1}));return"".concat(location.origin||"").concat(location.pathname||"").concat(Z)},goToPage(M,q){var Z=this.getNextPageUrl(M,q);window.history.pushState({name:M,url:Z},"",Z),window.dispatchEvent(new Event("popstate"))},openWebPage(M,q,Z){var F=function queryParamsToString(M){if("string"==typeof M)return M.startsWith("?")?M.substring(1):M;return BackendlessUI.QueryString.stringify(M)}(Z),[W,$]=M.split("?");F=[$,F].filter((M=>M)).join("&"),M="".concat(W).concat(F?"?":"").concat(F),q?window.open(M,"_blank"):window.location=M}}},27727:(M,q,Z)=>{"use strict";Z.d(q,{T:()=>Page});var F=Z(17788),W=Z(16557),$=Z(50066),Y=Z(94770);function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;q ((0,F.h)(Z.initialPageData,q)&&(Z.initialPageData=q,Z.sourcePageData=_objectSpread({},q)),Z.sourcePageData)),[q]);return(0,Y.useDataStore)(M,W)}(q,ee),le=(0,Y.useMemo)((()=>({})),[q]),ce=(0,Y.useMemo)((()=>({})),[q]),de={appData:Z,pageData:ie,dataModel:ie,setAppTitle:X,componentsRegister:le,podsDataModelsRegister:ce,getPodDataModelByUid(M){return this.podsDataModelsRegister[M]},getComponentByUid(M){return this.componentsRegister[M]},getComponentDataStoreByUid(M){var q=this.getComponentByUid(M);return q&&q.dataStore},setComponentDataStoreByUid(M,q){var Z=this.getComponentByUid(M);return Z&&Z.setDataStore(q)},getComponentClassesByUid(M){var q=this.getComponentByUid(M);return q&&q.classList},getComponentStyleByUid(M){var q=this.getComponentByUid(M);return q&&q.style}},pe=(0,Y.useOnScrollHandler)({node:q,componentContext:de}),fe=(0,Y.useHandlerRunner)({node:q,componentContext:de}),[ye]=(0,Y.useDynamicProperty)({node:q,componentContext:de},{handler:"onTitleAssignment",initialValue:()=>q.attrs["data-title"]});return(0,Y.useEffect)((()=>{X(ye)}),[ye]),(0,Y.useEffect)((()=>{BackendlessUI.logger.log("Page: ".concat(q.pageName),de)}),[q]),(0,Y.useComponentLifecycle)(_objectSpread(_objectSpread({},M),{},{componentContext:de}),{onBeforeMount:"onBeforeEnter",onMounted:"onEnter",onBeforeUnmount:"onLeave",onRender(){(0,Y.useLayoutEffect)((()=>{(0,F.h)(ae,ee)&&fe("onPageQuery",{prevPageQuery:ae,pageQuery:ee})}),[ae,ee])}}),(0,Y.useEffect)((()=>{var onPageResize=M=>{var q=M.target.innerHeight,Z=M.target.innerWidth;fe("onResize",{screenHeight:q,screenWidth:Z})};return window.addEventListener("resize",onPageResize),()=>{window.removeEventListener("resize",onPageResize)}}),[]),React.createElement("div",{id:"page",className:"bl-page",style:(0,$.j5)(q.style),"data-page":q.pageName,onScroll:pe},(0,W.uC)(q.children,{componentContext:de}))}},6337:(M,q,Z)=>{Z.p=window.uiBuilderSDKPath+"/"},74095:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>CustomComponentResources});var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8679),hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__),_api_request__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(97865),_ui_components_custom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(61148),_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(86367);function asyncGeneratorStep(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}function _asyncToGenerator(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function _next(M){asyncGeneratorStep($,F,W,_next,_throw,"next",M)}function _throw(M){asyncGeneratorStep($,F,W,_next,_throw,"throw",M)}_next(void 0)}))}}function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;q {M.settings[Z.name]=void 0===q[Z.name]?Z.defaultValue:q[Z.name],SettingsParsers[Z.type]&&(M.settings[Z.name]=SettingsParsers[Z.type](M.settings[Z.name]))})),M.properties=Array.isArray(this.model.properties)?this.model.properties:[],M.eventHandlers=Array.isArray(this.model.eventHandlers)?this.model.eventHandlers:[],M.CustomComponent=this.CustomComponent,M.pods={},this.model.pods)for(var Z in this.model.pods){var F=this.model.pods[Z];M.pods[F.id]=_objectSpread({},F)}M.children&&((Array.isArray(M.children)?M.children:[M.children]).forEach((q=>{var Z;if(null!==(Z=q.data)&&void 0!==Z&&Z.podContext){var F,W=null===(F=q.data)||void 0===F?void 0:F.podContext,$=this.model.pods[W];$&&$.id&&(M.pods[$.id].podUID=W,M.pods[$.id].children=q.children)}})),delete M.children)}loadModel(){var M=this;return _asyncToGenerator((function*(){var q=M.loadedModel?yield Promise.resolve(M.loadedModel):yield _api_request__WEBPACK_IMPORTED_MODULE_1__.x.loadJSON("./components/custom/".concat(M.moduleId,"/component.json"));return q.id=M.moduleId,q}))()}load(){var _this2=this;return _asyncToGenerator((function*(){var modulesPaths=[];if(_this2.model=yield _this2.loadModel(),_this2.modelError=_this2.composeModelErrors(),_this2.modelError)throw _this2.modelError;_this2.modulePath=_this2.model.mainJS?"./components/custom/".concat(_this2.moduleId,"/").concat(_this2.model.mainJS):"./components/custom/".concat(_this2.moduleId,"/bundle.js"),modulesPaths.push(_this2.modulePath),_this2.Component=M=>(0,_ui_components_custom__WEBPACK_IMPORTED_MODULE_2__.Y)(M),_this2.Component.displayName="CustomComponentWrapper(".concat(_this2.model.name,")"),_this2.Component.WrappedComponent=_ui_components_custom__WEBPACK_IMPORTED_MODULE_2__.Y,hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default()(_this2.Component,_ui_components_custom__WEBPACK_IMPORTED_MODULE_2__.Y),yield(0,_utils__WEBPACK_IMPORTED_MODULE_3__.DF)(modulesPaths);var module=eval("require")(_this2.modulePath);if(_this2.CustomComponent=module.default||module,!_this2.CustomComponent)throw new Error("The Custom Component [".concat(_this2.moduleId," ] does not export any class"))}))()}composeModelErrors(){var M,q,Z=[],F=null===(M=this.model)||void 0===M||null===(q=M.errors)||void 0===q?void 0:q.files;if(F&&Object.keys(F).forEach((M=>{var q=F[M];Z.push('In file:"./'.concat(M,'"').concat(q.line?" at line:".concat(q.line):""," ").concat(q.message))})),Z.length){var W=new Error('The component "'.concat(this.model.name,'" (id=').concat(this.model.id,") was not built correctly"));return W.stack=Z.join("\n\n"),W}return null}}var SettingsParsers={number:function number(M){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Number";if("number"==typeof M)return M;if(""===M||void 0===M)return null;var Z=Number(M);if(!isNaN(Z))return Z;BackendlessUI.logger.error('Can not cast to "'.concat(q,'" type the following component setting value "').concat(M,'"'))},range:M=>SettingsParsers.number(M,"Range"),json:M=>{try{if(M)return JSON.parse(M)}catch(q){BackendlessUI.logger.error('Can not parse JSON setting value "'.concat(M,'"'))}}}},49178:(M,q,Z)=>{"use strict";Z.d(q,{oc:()=>I18n,pu:()=>ResourcesManager});var F=Z(18657),W=Z(46179),$=Z(74095),Y=Z(39610),X=Z(86367);function asyncGeneratorStep(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}function _asyncToGenerator(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function _next(M){asyncGeneratorStep($,F,W,_next,_throw,"next",M)}function _throw(M){asyncGeneratorStep($,F,W,_next,_throw,"throw",M)}_next(void 0)}))}}class Functions{constructor(M){this.resourcesManager=M,this.appConfig=this.resourcesManager.appConfig,this.customFunctionsMap=this.appConfig.customFunctionsMap,this.Custom={}}loadAll(){if(!this.loadingAllPromise){var M=Object.keys(this.customFunctionsMap);this.loadingAllPromise=Promise.all(M.map((M=>this.require(M))))}return this.loadingAllPromise}call(M){var q=arguments,Z=this;return _asyncToGenerator((function*(){for(var F=yield Z.get(M),W=q.length,$=new Array(W>1?W-1:0),Y=1;Y {W.a[M]&&F.push(M)})),yield Promise.all(F.map(function(){var M=manager_asyncToGenerator((function*(M){Z.systemComponents[M]||(Z.systemComponents[M]=W.a[M],"function"==typeof Z.systemComponents[M].load&&(yield Z.systemComponents[M].load()))}));return function(q){return M.apply(this,arguments)}}()))}))()}loadCustomComponents(M){var q=this;return manager_asyncToGenerator((function*(){var Z=getModulesIds(M,"custom");yield Promise.all(Z.map(function(){var M=manager_asyncToGenerator((function*(M){q.customComponents[M]||(q.customComponents[M]=new $.B(q,M),yield q.customComponents[M].load())}));return function(q){return M.apply(this,arguments)}}()))}))()}loadReusableComponents(M){var q=this;return manager_asyncToGenerator((function*(){var Z=getModulesIds(M,"reusable");yield Promise.all(Z.map(function(){var M=manager_asyncToGenerator((function*(M){q.reusableComponents[M]||(q.reusableComponents[M]=new Y.l(q,M),yield q.reusableComponents[M].load())}));return function(q){return M.apply(this,arguments)}}()))}))()}}function getModulesIds(M,q){var Z=M.querySelectorAll('[data-module-type="'.concat(q,'"]')),F=[],W={};return Z.forEach((M=>{var{moduleId:q}=M.dataset;W[q]||(W[q]=1,F.push(q))})),F}var ee=Z(97865),ae=Z(59057),ie=Z(82154);function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;q {"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>PageResources});var _utils_nodes__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(16557),_utils_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(78531),_utils_errors__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(31828),_api_request__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(97865),_ui_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(46179),_page__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(27727),_logger__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(89177),_utils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(86367);function asyncGeneratorStep(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}function _asyncToGenerator(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function _next(M){asyncGeneratorStep($,F,W,_next,_throw,"next",M)}function _throw(M){asyncGeneratorStep($,F,W,_next,_throw,"throw",M)}_next(void 0)}))}}class PageResources{constructor(M,q){var Z=this;this.resourcesManager=M,this.appConfig=this.resourcesManager.appConfig,this.pageName=q,this.loadedModel=this.appConfig.pages&&this.appConfig.pages[this.pageName],this.style={},this.componentHandlers={},this.dom=null,this.Component=M=>(0,_page__WEBPACK_IMPORTED_MODULE_5__.T)(M),this.Component.displayName="".concat(this.pageName,"(Page)");var F=this.load;this.load=()=>(this.loadingPromise||(this.loadingPromise=Promise.resolve().then(_asyncToGenerator((function*(){try{yield F.apply(Z),Z.loaded=!0}catch(M){BackendlessUI.logger.error(M),Z.error=M}BackendlessUI.logger.log("pageResources:".concat(q),Z)})))),this.loadingPromise)}loadUI(){return this.loadedModel?Promise.resolve(this.loadedModel.html):_api_request__WEBPACK_IMPORTED_MODULE_3__.x.loadFileContent("./pages/".concat(this.pageName,"/index.html"))}loadModel(){return this.loadedModel?Promise.resolve(this.loadedModel):_api_request__WEBPACK_IMPORTED_MODULE_3__.x.loadJSON("./pages/".concat(this.pageName,"/page.json"))}load(){var _this2=this;return _asyncToGenerator((function*(){var[model,html]=yield Promise.all([_this2.loadModel().catch((M=>_utils_errors__WEBPACK_IMPORTED_MODULE_2__.N.wrap(M))),_this2.loadUI().catch((M=>_utils_errors__WEBPACK_IMPORTED_MODULE_2__.N.wrap(M)))]);_this2.model=model,_this2.html=(0,_utils__WEBPACK_IMPORTED_MODULE_7__.H)(html),_this2.dom=(0,_utils__WEBPACK_IMPORTED_MODULE_7__.cR)(_this2.html),Object.keys(model.style||{}).forEach((M=>{_this2.style[_utils_string__WEBPACK_IMPORTED_MODULE_1__.x.snakeToCamel(M)]=model.style[M]}));var pageModules=[];yield _this2.resourcesManager.loadComponents(_this2.dom,_this2.model),Object.keys(model.components).forEach((M=>{var q=model.components[M].handlers||{};Object.keys(q).length&&(_this2.componentHandlers[M]="./pages/".concat(_this2.pageName,"/components/").concat(M,"/bundle.js"),pageModules.push(_this2.componentHandlers[M]))})),_logger__WEBPACK_IMPORTED_MODULE_6__.k.log("Page Modules:",pageModules),yield(0,_utils__WEBPACK_IMPORTED_MODULE_7__.DF)(pageModules),_this2.pageContext={pods:{},resourcesManager:_this2.resourcesManager,requireComponent:M=>"reusable"===M.moduleType?_this2.resourcesManager.getReusableComponent(M.moduleId).Component:"custom"===M.moduleType?_this2.resourcesManager.getCustomComponent(M.moduleId).Component:_ui_components__WEBPACK_IMPORTED_MODULE_4__.Z[M.moduleId],requireHandlers:componentUid=>{if(_this2.componentHandlers[componentUid])return eval("require")(_this2.componentHandlers[componentUid])}},_this2.children=(0,_utils_nodes__WEBPACK_IMPORTED_MODULE_0__.X0)(_this2.pageContext,_this2.dom),_this2.handlers=_this2.pageContext.requireHandlers("page")||{},_this2.node={pageName:_this2.pageName,style:_this2.style,attrs:_this2.model.attrs||{},dataBinding:_this2.model.dataBinding||{},handlers:_this2.handlers,children:_this2.children},(0,_utils_nodes__WEBPACK_IMPORTED_MODULE_0__.x5)(_this2.node),(0,_utils_nodes__WEBPACK_IMPORTED_MODULE_0__.$g)(_this2.node)}))()}}},39610:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{l:()=>ReusableComponentResources});var _api_request__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(97865),_utils_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(78531),_ui_components_reusable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(39829),_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(86367);function asyncGeneratorStep(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}function _asyncToGenerator(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function _next(M){asyncGeneratorStep($,F,W,_next,_throw,"next",M)}function _throw(M){asyncGeneratorStep($,F,W,_next,_throw,"throw",M)}_next(void 0)}))}}class ReusableComponentResources{constructor(M,q){this.resourcesManager=M,this.appConfig=this.resourcesManager.appConfig,this.moduleId=q,this.loadedModel=this.appConfig.reusableComponents&&this.appConfig.reusableComponents[this.moduleId],this.Component=null,this.componentModel=null,this.componentHtml=null,this.componentHandlers={},this.componentRootData={}}composeComponentRootData(){var M=this.componentModel.attrs||{};for(var q in this.componentRootData={},M)if(q.startsWith("data-")){var Z=M[q];q=_utils_string__WEBPACK_IMPORTED_MODULE_1__.x.snakeToCamel(q.replace("data-","")),this.componentRootData[q]=Z}}extendNode(node){node.dataContainer=!!this.componentRootData.dataContainer,node.rootHandlers=this.componentHandlers.root?eval("require")(this.componentHandlers.root):{}}getName(){return this.componentModel&&this.componentModel.name||"<< >>"}loadModel(){return this.loadedModel?Promise.resolve(this.loadedModel):_api_request__WEBPACK_IMPORTED_MODULE_0__.x.loadJSON("./components/reusable/".concat(this.moduleId,"/component.json"))}loadUI(){return this.loadedModel?Promise.resolve(this.loadedModel.html):_api_request__WEBPACK_IMPORTED_MODULE_0__.x.loadFileContent("./components/reusable/".concat(this.moduleId,"/ui.html"))}load(){var M=this;return _asyncToGenerator((function*(){var q=[],[Z,F]=yield Promise.all([M.loadModel(),M.loadUI()]);M.componentModel=Z,M.componentHtml=F,M.composeComponentRootData();var W=M.getName().replace(/\(/g,"[").replace(/\)/g,"]");M.Component=M=>(0,_ui_components_reusable__WEBPACK_IMPORTED_MODULE_2__.h)(M),M.Component.resolve=_ui_components_reusable__WEBPACK_IMPORTED_MODULE_2__.h.resolve,M.Component.displayName="ReusableComponent(".concat(W,")"),Object.keys(Z.components||{}).forEach((F=>{var W=Z.components[F].handlers||{};Object.keys(W).length&&(M.componentHandlers[F]="./components/reusable/".concat(M.moduleId,"/logic/").concat(F,"/bundle.js"),q.push(M.componentHandlers[F]))})),yield(0,_utils__WEBPACK_IMPORTED_MODULE_3__.DF)(q);var $=(0,_utils__WEBPACK_IMPORTED_MODULE_3__.cR)(F);yield M.resourcesManager.loadComponents($,M.componentModel)}))()}}},86367:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function requireModules(paths){return new Promise(((resolve,reject)=>{eval("require")(paths,resolve,reject)}))}function convertHTMLToDOM(M){var q=document.createElement("div");return q.innerHTML=M,q}function normalizeHTMLText(M){return M.replace(/background-image:url\(\//g,"background-image:url(/~=~=~/")}__webpack_require__.d(__webpack_exports__,{DF:()=>requireModules,H:()=>normalizeHTMLText,cR:()=>convertHTMLToDOM})},59057:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var _public_path_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6337),_public_path_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_public_path_js__WEBPACK_IMPORTED_MODULE_0__),backendless__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(41638),backendless__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(backendless__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(67294),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73935),_logger__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(89177),_utils_uuid__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(61800),_utils_query_string__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(63999),_utils_nodes__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(16557),_utils_data_store__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(35327),_utils_date__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(15558),_utils_css__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(50066),_utils_loader__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(47323),_utils_url__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(8327),_modules_geo_google_api__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(14226),_api_device__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(61595),_api_request__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(97865),_api_automations__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(81539),_modules__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(72484),_ui_components__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(46179),_resources__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(49178),_navigator__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(19610),_app__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(81250),_hooks__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(94770),_excluded=["serverURL","filesURL","appId","apiKey","apiDomain","filesDomain","components","custom"];function _objectWithoutProperties(M,q){if(null==M)return{};var Z,F,W=_objectWithoutPropertiesLoose(M,q);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||Object.prototype.propertyIsEnumerable.call(M,Z)&&(W[Z]=M[Z])}return W}function _objectWithoutPropertiesLoose(M,q){if(null==M)return{};var Z,F,W={},$=Object.keys(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||(W[Z]=M[Z]);return W}function asyncGeneratorStep(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}function _asyncToGenerator(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function _next(M){asyncGeneratorStep($,F,W,_next,_throw,"next",M)}function _throw(M){asyncGeneratorStep($,F,W,_next,_throw,"throw",M)}_next(void 0)}))}}window.React=react__WEBPACK_IMPORTED_MODULE_2__,window.ReactDOM=react_dom__WEBPACK_IMPORTED_MODULE_3__,window.Backendless=backendless__WEBPACK_IMPORTED_MODULE_1___default();var build=void 0!=={created:1683013616489,version:"1.11.3"}&&{created:1683013616489,version:"1.11.3"}||null;build&&(build.created=new Date(build.created));var BackendlessUI={config:null,logger:_logger__WEBPACK_IMPORTED_MODULE_4__.k,build,Modules:_modules__WEBPACK_IMPORTED_MODULE_17__.j,UIComponents:_ui_components__WEBPACK_IMPORTED_MODULE_18__.Z,UUID:_utils_uuid__WEBPACK_IMPORTED_MODULE_5__.h,DeviceAPI:_api_device__WEBPACK_IMPORTED_MODULE_14__.L,QueryString:_utils_query_string__WEBPACK_IMPORTED_MODULE_6__.L,Hooks:_hooks__WEBPACK_IMPORTED_MODULE_22__,DataStore:_utils_data_store__WEBPACK_IMPORTED_MODULE_8__.K,DateUtils:_utils_date__WEBPACK_IMPORTED_MODULE_9__.E,LoaderUtils:_utils_loader__WEBPACK_IMPORTED_MODULE_11__.Z,CSSUtils:_utils_css__WEBPACK_IMPORTED_MODULE_10__.sH,GoogleAPI:_modules_geo_google_api__WEBPACK_IMPORTED_MODULE_13__.s,renderNodes:_utils_nodes__WEBPACK_IMPORTED_MODULE_7__.uC,Navigator:_navigator__WEBPACK_IMPORTED_MODULE_20__.C,debugMode(M){if("undefined"==typeof localStorage){if(void 0===M)return this.__debugMode;this.__debugMode=!!M}else{if(void 0===M)return!!Number(localStorage.getItem("UIBuilderDebugMode"));localStorage.setItem("UIBuilderDebugMode",M?1:0)}},requireModule(path){return Array.isArray(path)&&(console.warn("You use wrong format while requiring an external module in runtime. "+"Instead BackendlessUI.requireModule(['".concat(path,"']) ")+"use BackendlessUI.requireModule('".concat(path,"') without brackets. ")+"At this moment it still accepts with brackets, but in the nearest feature, it will not be supported!"),path=path[0]),new Promise(((resolve,reject)=>{eval("require")([path],resolve,reject)}))},getSettings:()=>BackendlessUI.config.settings,getCustomSettings:()=>BackendlessUI.config.customSettings,getClientUserLocale:()=>backendless__WEBPACK_IMPORTED_MODULE_1___default().UserService.Utils.getClientUserLocale(),provideFileUrl(M){if(M.startsWith("/")){var{filesURL:q,filesDomain:Z,appId:F,apiKey:W,apiDomain:$}=BackendlessUI.config;return Z||$?"".concat(_utils_url__WEBPACK_IMPORTED_MODULE_12__.j.ensureProtocol(Z||$),"/api/files").concat(M):"".concat(q,"/").concat(F,"/").concat(W,"/files").concat(M)}return M},getCurrentGeolocation:()=>_navigator__WEBPACK_IMPORTED_MODULE_20__.C.getCurrentGeolocation(),getNextPageUrl:(M,q)=>_navigator__WEBPACK_IMPORTED_MODULE_20__.C.getNextPageUrl(M,q),goToPage:(M,q)=>_navigator__WEBPACK_IMPORTED_MODULE_20__.C.goToPage(M,q),startApp:M=>_asyncToGenerator((function*(){var q=document.createComment(" jss-insertion-point ");document.head.append(q);var[Z,F]=yield Promise.all([_api_request__WEBPACK_IMPORTED_MODULE_15__.x.loadJSON("./app.json"),_api_request__WEBPACK_IMPORTED_MODULE_15__.x.loadJSON("./settings.json")]);BackendlessUI.config=Z;var{serverURL:W,filesURL:$,appId:Y,apiKey:X,apiDomain:ee,filesDomain:ae,components:ie,custom:le}=F,ce=_objectWithoutProperties(F,_excluded),de=yield _api_request__WEBPACK_IMPORTED_MODULE_15__.x.loadJSON("./automations.json",!0);BackendlessUI.config.libraryPath=window.uiBuilderSDKPath,BackendlessUI.config.settings=ce,BackendlessUI.config.componentsSettings=ie||{},BackendlessUI.config.customSettings=buildCustomSettings(le,Z.customConfigs),BackendlessUI.config.serverURL=W,BackendlessUI.config.filesURL=$,BackendlessUI.config.filesDomain=ae,BackendlessUI.config.appId=Y,BackendlessUI.config.apiKey=X,BackendlessUI.config.apiDomain=ee,void 0===BackendlessUI.config.debugMode&&(BackendlessUI.config.debugMode=BackendlessUI.debugMode()),BackendlessUI.config.customFunctionsMap||(BackendlessUI.config.customFunctionsMap={}),BackendlessUI.logger.log("App Config",Z),(M||window.uiBuilderInitialPage)&&(Z.mainPage=M||window.uiBuilderInitialPage);var pe={debugMode:BackendlessUI.config.debugMode,useTableClassesFromGlobalScope:!1};Z.serverURL&&(pe.serverURL=Z.serverURL),ee?pe.domain=_utils_url__WEBPACK_IMPORTED_MODULE_12__.j.ensureProtocol(ee):(pe.appId=Z.appId,pe.apiKey=Z.apiKey),BackendlessUI.logger.log("JS-SDK Config",pe),backendless__WEBPACK_IMPORTED_MODULE_1___default().initApp(pe);var fe=document.getElementById("app"),ye=new _resources__WEBPACK_IMPORTED_MODULE_19__.pu(Z);return BackendlessUI.Functions=ye.functions,BackendlessUI.I18n=new _resources__WEBPACK_IMPORTED_MODULE_19__.oc(Z),de&&(BackendlessUI.Automations=new _api_automations__WEBPACK_IMPORTED_MODULE_16__.j(de)),yield BackendlessUI.I18n.init(),react_dom__WEBPACK_IMPORTED_MODULE_3__.render(react__WEBPACK_IMPORTED_MODULE_2__.createElement(_app__WEBPACK_IMPORTED_MODULE_21__.g,{appConfig:Z,resourcesManager:ye}),fe),fe}))()};function buildCustomSettings(M,q){return M=M||{},(q=q||[]).forEach((q=>{void 0===M[q.name]&&"text"===q.type&&(M[q.name]="")})),M}"object"==typeof window&&(window.BackendlessUI=BackendlessUI);const __WEBPACK_DEFAULT_EXPORT__=BackendlessUI},87930:(M,q,Z)=>{"use strict";Z.d(q,{z:()=>Button,o:()=>ce});var F=Z(67294),W=Z(94770),$=Z(50066),Y=Z(66986),X=Z(70567),ee=Z(3144),ae=["tooltipText","tooltipPlacement","tooltipControlled","tooltipVisibility"],ie=["style","startIcon","endIcon","className","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(M){for(var q=1;q =0||(W[Z]=M[Z]);return W}(M,q);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||Object.prototype.propertyIsEnumerable.call(M,Z)&&(W[Z]=M[Z])}return W}var le={root:"bl-button",label:"bl-button-label",contained:"bl-button--contained",outlined:"bl-button--outlined",text:"bl-button--text",sizeSmall:"bl-button--small",sizeLarge:"bl-button--large",disableElevation:"bl-button--unelevated",disabled:"bl-button--disabled",startIcon:"bl-button-start-icon",endIcon:"bl-button-end-icon"},ce=F.forwardRef((function ButtonUI(M,q){var{tooltipText:Z,tooltipPlacement:W,tooltipControlled:$,tooltipVisibility:ce}=M,de=_objectWithoutProperties(M,ae),{style:pe,startIcon:fe,endIcon:ye,className:be,children:we}=de,_e=_objectWithoutProperties(de,ie),Se=F.createElement(Y.Z.Button,_extends({},_e,{ref:q,style:_objectSpread({textTransform:"initial"},pe),className:be,classes:le,startIcon:fe?F.createElement(ee.I,{icon:fe}):void 0,endIcon:ye?F.createElement(ee.I,{icon:ye}):void 0}),we||"");return Z?(0,X.TC)(Se,{tooltipText:Z,tooltipPlacement:W,tooltipControlled:$,tooltipVisibility:ce}):Se}));function button_extends(){return button_extends=Object.assign?Object.assign.bind():function(M){for(var q=1;q q.attrs.type}),[fe,ye]=(0,W.useDynamicProperty)(M,{handler:"onLabelAssignment",initialValue:()=>q.data.label||""}),[be,we]=(0,W.useDynamicProperty)(M,{initialValue:()=>q.data.variant}),[_e,Se]=(0,W.useDynamicProperty)(M,{initialValue:()=>q.data.size}),[xe,Pe]=(0,W.useDynamicProperty)(M,{initialValue:()=>q.data.startIcon}),[Re,Te]=(0,W.useDynamicProperty)(M,{initialValue:()=>q.data.endIcon}),[Ie,qe]=(0,W.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.disableElevation}),[ze,Ve]=(0,W.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.disableRipple}),[We,He]=(0,W.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),[Ye,Qe]=(0,W.useDynamicProperty)(M,{handler:"onTooltipTextAssignment",initialValue:()=>q.data.tooltipText}),[Xe,et]=(0,W.useDynamicProperty)(M,{handler:"onTooltipVisibilityAssignment"}),[tt,nt]=(0,W.useDynamicProperty)(M,{initialValue:()=>q.data.tooltipPlacement}),rt=(0,W.useElRef)();(0,W.useComponentRegister)(M,{style:X,classList:{get:()=>ee,set:M=>ae(M)},display:{get:()=>ie,set:M=>le(!!M)},type:{get:()=>de,set:M=>pe(M)},disabled:{get:()=>We,set:M=>He(!!M)},variant:{get:()=>be,set:M=>we(M)},size:{get:()=>_e,set:M=>Se(M)},startIcon:{get:()=>xe,set:M=>Pe(M)},endIcon:{get:()=>Re,set:M=>Te(M)},disableElevation:{get:()=>Ie,set:M=>qe(!!M)},disableRipple:{get:()=>ze,set:M=>Ve(!!M)},el:{get:()=>rt.current},label:{get:()=>fe,set:M=>ye(M)},tooltipText:{get:()=>Ye,set:M=>Qe(M)},tooltipPlacement:{get:()=>tt,set:M=>nt(M)},tooltipVisibility:{get:()=>Xe,set:M=>et(!!M)}});var ot=(0,W.useSimpleEventHandlers)(M,["onClick"]);return ie?F.createElement(ce,button_extends({ref:rt,id:q.id,startIcon:xe,endIcon:Re,style:button_objectSpread({},X),type:de,variant:be,size:_e,className:(0,$.cn)(ee),disableElevation:Ie,disableRipple:ze,disabled:We,tooltipText:Z(Ye),tooltipPlacement:tt,tooltipControlled:Y.available("onTooltipVisibilityAssignment"),tooltipVisibility:Xe},ot),Z(fe)||""):null}Button.normalize=function(M){void 0===M.data.variant&&(M.data.variant=M.data.outlined?"outlined":"contained")}},14204:(M,q,Z)=>{"use strict";Z.d(q,{J:()=>X});var F=Z(67294),W=Z(50066),$=Z(70567),Y=Z(66986),X=F.forwardRef((function CheckboxUI(M,q){var{style:Z,className:X,checked:ee,disabled:ae,label:ie,name:le,onChange:ce,onLabelClick:de,onInputClick:pe}=M,{tooltipText:fe,tooltipPlacement:ye,tooltipControlled:be,tooltipVisibility:we}=M,_e=F.createElement(Y.Z.Checkbox,{name:le,checked:!!ee,disabled:!!ae,onChange:ce,classes:{root:"bl-checkbox-root"},onClick:pe}),Se=F.createElement("div",{ref:q,style:Z,className:(0,W.cn)(X,"bl-checkbox",{"bl-checkbox--checked":ee,"bl-checkbox--disabled":ae})},F.createElement(Y.Z.FormControlLabel,{label:ie,style:{marginLeft:0},classes:{root:"bl-checkbox-label-root",label:"bl-checkbox-label"},control:_e,onClick:de}));return fe?(0,$.TC)(Se,{tooltipText:fe,tooltipPlacement:ye,tooltipControlled:be,tooltipVisibility:we}):Se}))},61148:(M,q,Z)=>{"use strict";Z.d(q,{Y:()=>CustomComponentWrapper});var F=Z(78531),W=Z(94770),$=Z(16557);function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;q {var Z={};return M.node.eventHandlers.forEach((M=>{Z[M.name]=Z=>q(M.name,Z),Z[M.name].hasLogic=q.available(M.name)})),Z}),[])}(M),ae=(0,W.useStyle)(M),[ie,le]=(0,W.useClassList)(M),[ce,de]=(0,W.useComponentDisplay)(M),pe=(0,W.useRef)(null),fe=function usePods(M,q){var Z=function usePodsDataModels(M,q){var Z={};for(var F in M.pods){var{dataContainer:$,podUID:Y}=M.pods[F];$&&(Z[F]=(0,W.useDataStore)(M),q.podsDataModelsRegister[Y]=Z[F])}return Z}(M,q),F=(0,W.useRef)({}),Y=(0,W.useRef)(null);Y.current=q;var X=(0,W.useMemo)((()=>new Proxy({},{get(M,q){if("$$typeof"!==q&&"string"==typeof q){if(!F.current[q]){var Z=Object.keys(F.current);throw new Error('The Component does not have a pod with id:"'.concat(q,'". ')+"See allowed ids:[".concat(Z.join(","),"]"))}return F.current[q]}}})),[]),ee=function _loop(q){F.current[q]={dataModel:Z[q]},F.current[q].render=(0,W.useCallback)((()=>{var Z=F.current[q].dataModel,W=Z?_objectSpread(_objectSpread({},Y.current),{},{podDataModel:Z,dataModel:Z}):Y.current;return(0,$.uC)(M.pods[q].children,{componentContext:W})}),[])};for(var ae in M.pods)ee(ae);return X}(q,Z),ye={style:ae,classList:{get:()=>ie,set:M=>le(M)},display:{get:()=>ce,set:M=>de(!!M)},el:{get:()=>pe.current,set:M=>{BackendlessUI.logger.warn('Do not use "component.el = domElement", instead pass elRef as ref to element in JSX in CustomComponents, for ex: . '),pe.current=M}}};q.properties.forEach((Z=>{var F=void 0===Z.initialValue?q.customData[Z.name]:Z.initialValue;"function"==typeof F&&(F=void 0,console.warn('Initial values for property "'.concat(Z.name,'" should not be a function')));var[$,Y]=(0,W.useDynamicProperty)(M,{handler:Z.handlerId,validator:Z.validator,forceDefault:Z.forceDefault,initialValue:()=>F});ye[Z.name]={get:()=>$,set:Y}}));var be=(0,W.useComponentRegister)(M,ye);return React.createElement(q.CustomComponent,{definition:q.definition,settings:q.settings,instanceId:q.hashSum,component:be,eventHandlers:ee,appData:F,pageData:Y,parentDataModel:X,pods:fe,elRef:pe})}var Y={checkbox:M=>"true"===M,number:function number(M){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Number";if(""===M||void 0===M)return null;var Z=Number(M);if(!isNaN(Z))return Z;BackendlessUI.logger.error('Can not cast to "'.concat(q,'" the following value from string="').concat(M,'"'))},range:M=>Y.number(M,"Range"),json:M=>{try{if(M)return JSON.parse(M)}catch(q){BackendlessUI.logger.error('Can not transform JSON value from string="'.concat(M,'"'),q)}}};CustomComponentWrapper.normalize=M=>{M.customData={},M.properties.forEach((q=>{if(q.name){var Z="custom".concat(F.x.capitalizeFirstLetter(q.name.toLowerCase()));M.customData[q.name]=M.data[Z]||void 0,Y[q.type]&&(M.customData[q.name]=Y[q.type](M.customData[q.name])),delete M.data[Z]}})),M.CustomComponent.normalizeProperties&&(M.properties=M.CustomComponent.normalizeProperties(M.properties,{data:M.customData}),Array.isArray(M.properties)||(console.warn("CustomComponent.normalizeProperties method did not return a list of component properties"),M.properties=[]),M.properties=M.properties.filter((M=>function isPropertyValid(M){var q=function validateProperty(M){if(!M.name)return'"property.name" property is missed';if(M.validator&&"function"!=typeof M.validator)return'"property.validator" can be only a function'}(M);q&&console.warn("Can not assign a property to the custom component because of: ",q);return!q}(M))))}},53405:(M,q,Z)=>{"use strict";Z.d(q,{I:()=>le});var F=Z(67294),W=Z(94770),$=Z(66986),Y=Z(50066),X=Z(70567),ee=["tooltipText","tooltipPlacement","tooltipControlled","tooltipVisibility"],ae=["icon","className","size"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(M){for(var q=1;q=0||(W[Z]=M[Z]);return W}(M,q);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||Object.prototype.propertyIsEnumerable.call(M,Z)&&(W[Z]=M[Z])}return W}var ie={default:"medium",inherit:"inherit",small:"small",medium:"medium",large:"large"},le=F.forwardRef((function IconUI(M,q){var{tooltipText:Z,tooltipPlacement:le,tooltipControlled:ce,tooltipVisibility:de}=M,pe=_objectWithoutProperties(M,ee),{icon:fe,className:ye,size:be}=pe,we=_objectWithoutProperties(pe,ae),_e=(0,W.useMemo)((()=>(be&&!ie[be]&&console.error('Invalid size "'.concat(be,'" in the Icon Component, ')+"make sure the size value is one of [".concat(Object.keys(ie).join(","),"]")),ie[be]||ie.default)),[be]),Se=(0,W.useMemo)((()=>fe&&fe.replace(/[-,\s]/g,"_").toLowerCase()),[fe]),xe=F.createElement($.Z.Icon,_extends({component:"i"},we,{ref:q,fontSize:_e,className:(0,Y.cn)("bl-icon","material-icons-round",ye)}),Se);return Z?(0,X.TC)(xe,{tooltipText:Z,tooltipPlacement:le,tooltipControlled:ce,tooltipVisibility:de}):xe}))},3144:(M,q,Z)=>{"use strict";Z.d(q,{I:()=>Y.I,J:()=>Icon});var F=Z(67294),W=Z(94770),$=Z(50066),Y=Z(53405);function _extends(){return _extends=Object.assign?Object.assign.bind():function(M){for(var q=1;q q.data.size}),[fe,ye]=(0,W.useDynamicProperty)(M,{handler:"onIconAssignment",initialValue:()=>q.data.icon}),[be,we]=(0,W.useDynamicProperty)(M,{handler:"onTooltipTextAssignment",initialValue:()=>q.data.tooltipText}),[_e,Se]=(0,W.useDynamicProperty)(M,{handler:"onTooltipVisibilityAssignment"}),[xe,Pe]=(0,W.useDynamicProperty)(M,{initialValue:()=>q.data.tooltipPlacement}),Re=(0,W.useElRef)();(0,W.useComponentRegister)(M,{style:ee,classList:{get:()=>ae,set:M=>ie(M)},display:{get:()=>le,set:M=>ce(!!M)},icon:{get:()=>fe,set:ye},el:{get:()=>Re.current},tooltipText:{get:()=>be,set:M=>we(M)},tooltipPlacement:{get:()=>xe,set:M=>Pe(M)},tooltipVisibility:{get:()=>_e,set:M=>Se(!!M)},size:{get:()=>de,set:pe}});var Te=(0,W.useSimpleEventHandlers)(M,["onClick","onMouseOver","onMouseOut"]);return le&&fe?F.createElement(Y.I,_extends({ref:Re,style:_objectSpread({},ee),className:(0,$.cn)(q.classes.root,ae),size:de,icon:fe,tooltipText:Z(be),tooltipControlled:X.available("onTooltipVisibilityAssignment"),tooltipVisibility:_e,tooltipPlacement:xe},Te)):null}Icon.normalize=function(M){M.data.size||(M.data.size=X)}},46179:(M,q,Z)=>{"use strict";Z.d(q,{a:()=>ft,Z:()=>pt});var F=Z(94770),W=Z(50066),$=Z(16557),Y=Z(70567);function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _defineProperty(M,q,Z){return q in M?Object.defineProperty(M,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):M[q]=Z,M}function Block(M){var{node:q,componentContext:Z}=M,{dataStore:X,setDataStore:ee,dynamicItemData:ae,dynamicListItems:ie,setDynamicListItems:le,itemsRenderer:ce}=M,de=(0,F.useI18n)(q),pe=(0,F.useHandlerRunner)(M),fe=(0,F.useStyle)(M),[ye,be]=(0,F.useClassList)(M),[we,_e]=(0,F.useComponentDisplay)(M),[Se,xe]=(0,F.useDynamicProperty)(M,{handler:"onAnchorAssignment",initialValue:()=>q.data.anchor}),[Pe,Re]=(0,F.useDynamicProperty)(M,{handler:"onTooltipTextAssignment",initialValue:()=>q.data.tooltipText}),[Te,Ie]=(0,F.useDynamicProperty)(M,{handler:"onTooltipVisibilityAssignment"}),[qe,ze]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.tooltipPlacement}),Ve=(0,F.useElRef)(),We={style:fe,classList:{get:()=>ye,set:M=>be(M)},display:{get:()=>we,set:M=>_e(!!M)},anchor:{get:()=>Se,set:M=>xe(M)},el:{get:()=>Ve.current},tooltipText:{get:()=>Pe,set:M=>Re(M)},tooltipPlacement:{get:()=>qe,set:M=>ze(M)},tooltipVisibility:{get:()=>Te,set:M=>Ie(!!M)}};le&&(We.dynamicListItems={get:()=>ie,set:M=>le(M)}),(X||ae)&&(We.dataStore=X||ae),ee&&(We.setDataStore=ee),(0,F.useComponentRegister)(M,We),(0,F.useComponentLifecycle)(M);var He=(0,F.useOnScrollHandler)(M),Ye=(0,F.useSimpleEventHandlers)(M,["onClick","onMouseOver","onMouseOut"]);if(!we)return null;var Qe=React.createElement("div",function _objectSpread(M){for(var q=1;q "bl-block";var X=Z(8679),ee=Z.n(X);function Panel(M){return Block(M)}function Jumbotron(M){return Block(M)}ee()(Panel,Block),Panel.getStaticClasses=()=>"bl-panel",ee()(Jumbotron,Block),Jumbotron.getStaticClasses=()=>"bl-jumbotron";var ae=Z(87930),ie=Z(67294),le=Z(66986);function chip_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function chip_objectSpread(M){for(var q=1;q ie.createElement(le.Z.Icon,{component:"i",className:(0,W.cn)("material-icons-round","bl-chip-".concat(q,"-icon"))},M),useIconName=M=>ie.useMemo((()=>M&&M.replace(/[-,\s]/g,"_").toLowerCase()),[M]);function asyncGeneratorStep(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}function _asyncToGenerator(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function _next(M){asyncGeneratorStep($,F,W,_next,_throw,"next",M)}function _throw(M){asyncGeneratorStep($,F,W,_next,_throw,"throw",M)}_next(void 0)}))}}var ce={};function ColorPicker(M){return ce.ColorPickerNode(M)}function chart_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function chart_objectSpread(M){for(var q=1;q q.data.accept}),[Re,Te]=(0,F.useDynamicProperty)(M,{handler:"onMultipleFilesAssignment",initialValue:()=>"true"===q.data.multipleFiles}),[Ie,qe]=(0,F.useDynamicProperty)(M,{handler:"onDirectoryAssignment",initialValue:()=>q.data.directory}),[ze,Ve]=(0,F.useDynamicProperty)(M,{handler:"onOverwriteAssignment",initialValue:()=>"true"===q.data.overwrite}),[We,He]=(0,F.useDynamicProperty)(M,{handler:"onButtonLabelAssignment",initialValue:()=>q.data.buttonLabel||""}),[Ye,Qe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.variant}),[Xe,et]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.size}),[tt,nt]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.disableElevation}),[rt,ot]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.disableRipple}),[at,it]=(0,F.useDynamicProperty)(M,{handler:"onUploadSuccessMsgAssignment",initialValue:()=>q.data.uploadSuccessMsg}),[st,ut]=(0,F.useDynamicProperty)(M,{handler:"onUploadFailMsgAssignment",initialValue:()=>q.data.uploadFailMsg}),[lt,ct]=(0,F.useDynamicProperty)(M,{handler:"onUploadProgressMsgAssignment",initialValue:()=>q.data.uploadProgressMsg}),[dt,pt]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),ft=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:fe,reset:()=>{X||(ee(!1),ce(null),pe(null))},classList:{get:()=>ye,set:M=>be(M)},display:{get:()=>we,set:M=>_e(!!M)},accept:{get:()=>xe,set:Pe},multipleFiles:{get:()=>Re,set:M=>Te(!!M)},directory:{get:()=>Ie,set:qe},overwrite:{get:()=>ze,set:M=>Ve(!!M)},buttonLabel:{get:()=>We,set:M=>He(M)},uploadSuccessMsg:{get:()=>at,set:it},uploadFailMsg:{get:()=>st,set:ut},uploadProgressMsg:{get:()=>lt,set:ct},disabled:{get:()=>dt,set:M=>pt(!!M)},el:{get:()=>ft&&ft.current},variant:{get:()=>Ye,set:M=>Qe(M)},size:{get:()=>Xe,set:M=>et(M)},disableElevation:{get:()=>tt,set:M=>nt(!!M)},disableRipple:{get:()=>rt,set:M=>ot(!!M)}});var ht=function(){var M=file_uploader_button_asyncToGenerator((function*(M){var q=Re?[...M.target.files]:[M.target.files[0]];ee(!0);try{if(Y.available("onBeforeUpload")){var Z=yield Y("onBeforeUpload",{files:q});Array.isArray(Z)&&(q=Z)}var F=yield Promise.all(q.map(function(){var M=file_uploader_button_asyncToGenerator((function*(M){var q=void 0===M.overwrite?ze:M.overwrite;if(Y.available("onFileNameAssignment")){var Z=yield Y("onFileNameAssignment",{file:M});if("string"!=typeof Z)throw new Error("New File Name must be a string, check onFileNameAssignment handler in FileUploadButton component.");M=new File([M],Z,{type:M.type})}var{fileURL:F}=yield Backendless.Files.upload(M,Ie||"",!!q);return F}));return function(q){return M.apply(this,arguments)}}()));onUploadSuccess(Re?F:F[0])}catch(M){onUploadFail(M)}$.current&&($.current.value="")}));return function onChange(q){return M.apply(this,arguments)}}(),onUploadSuccess=M=>{ee(!1),ce(!0),Y.available("onUploadSuccess")||Se(M),Y("onUploadSuccess",{uploadedFiles:M})},onUploadFail=M=>{ee(!1),pe(M),Y("onUploadFail",{error:M})};return we?ie.createElement(ie.Fragment,null,X&<&&ie.createElement("div",{style:{color:"#555"}},Z(lt)),ae&&at&&ie.createElement("div",{style:{color:"#39a139"}},Z(at)),de&&st&&ie.createElement("div",{style:{color:"#97181a"}},Z(st)),ie.createElement("span",{role:"none",ref:ft}),!X&&!de&&!ae&&ie.createElement(le.Z.Button,{className:(0,W.cn)(ye),variant:Ye,size:Xe,classes:{root:"bl-button",label:"bl-button-label",contained:"bl-button--contained",outlined:"bl-button--outlined",text:"bl-button--text",disableElevation:"bl-button--unelevated",disabled:"bl-button--disabled"},disableElevation:tt,disableRipple:rt,style:file_uploader_button_objectSpread({textTransform:"initial"},fe),id:q.id,disabled:!!dt,onClick:M=>{M.preventDefault(),$.current.click()}},Z(We)||""),ie.createElement("input",{style:{display:"none"},ref:$,type:"file",multiple:!!Re,accept:xe,onChange:ht})):null}function form_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function form_defineProperty(M,q,Z){return q in M?Object.defineProperty(M,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):M[q]=Z,M}function Form(M){var{node:q,dataStore:Z,setDataStore:Y,componentContext:X}=M,ee=(0,F.useStyle)(M),[ae,ie]=(0,F.useClassList)(M),[le,ce]=(0,F.useComponentDisplay)(M),de=(0,F.useHandlerRunner)({node:q,componentContext:X}),pe=(0,F.useElRef)();function submit(){pe.current&&pe.current.requestSubmit()}function reset(){pe.current&&pe.current.reset()}(0,F.useComponentRegister)(M,{style:ee,dataStore:Z,setDataStore:Y,classList:{get:()=>ae,set:M=>ie(M)},display:{get:()=>le,set:M=>ce(!!M)},el:{get:()=>pe.current},submit:{get:()=>submit},reset:{get:()=>reset}}),(0,F.useComponentLifecycle)(M);return le?React.createElement("form",{ref:pe,className:(0,W.cn)(q.staticClasses.root,ae),style:(0,W.j5)(ee),onSubmit:M=>{M.preventDefault(),de("onSubmit",{event:M,data:Z})},onReset:M=>{M.preventDefault();var q=function form_objectSpread(M){for(var q=1;q {Z[M]=null})),de("onReset",{event:M,data:Z,prevData:q})}},(0,$.uC)(q.children,{componentContext:X})):null}DateTimePicker.normalize=M=>ye.DateTimePickerNode.normalize(M),DateTimePicker.load=datetime_picker_asyncToGenerator((function*(){var{DateTimePickerNode:M}=yield Z.e(67).then(Z.bind(Z,74655));ye.DateTimePickerNode=M})),FileUploaderButton.normalize=function(M){void 0===M.data.variant&&(M.data.variant=M.data.outlined?"outlined":"contained")},Form.resolve=function(M){return M.dataContainer=!0,(0,Y.GW)(this,M,Y.zJ)},Form.getStaticClasses=()=>"bl-form";var be=Z(44627);function google_map_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function google_map_objectSpread(M){for(var q=1;q =0||(W[Z]=M[Z]);return W}(M,q);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||Object.prototype.propertyIsEnumerable.call(M,Z)&&(W[Z]=M[Z])}return W}var Pe=ie.forwardRef((function IconButtonUI(M,q){var{icon:Z,className:F}=M,W=_objectWithoutProperties(M,xe);return ie.createElement(ae.o,_extends({},W,{ref:q,className:Se()("bl-icon-button",F)}),ie.createElement(we.I,{icon:Z}))}));function icon_button_extends(){return icon_button_extends=Object.assign?Object.assign.bind():function(M){for(var q=1;q {if(""===M)return{value:null,valid:!0};var q=Number(M);return{value:q,valid:M===String(q)}}};function Input(M){var{node:q}=M,Z=(0,F.useI18n)(q),$=(0,F.useUid)(),Y=(0,F.useHandlerRunner)(M),X=(0,F.useStyle)(M),[ee,ae]=(0,F.useClassList)(M),[ie,le]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.variant}),[pe,fe]=(0,F.useDynamicProperty)(M,{handler:"onTypeAssignment",initialValue:()=>q.data.type}),[ye,be]=(0,F.useDynamicProperty)(M,{handler:"onNameAssignment",initialValue:()=>q.data.name}),[we,_e]=(0,F.useDynamicProperty)(M,{handler:"onLabelAssignment",initialValue:()=>q.data.label}),[Se,xe]=(0,F.useDynamicProperty)(M,{handler:"onValueAssignment",forceDefault:!0,initialValue:()=>q.data.value}),[Pe,Re]=(0,F.useDynamicProperty)(M,{handler:"onPlaceholderAssignment",initialValue:()=>q.data.placeholder}),[qe,ze]=(0,F.useDynamicProperty)(M,{handler:"onReadOnlyStateAssignment",initialValue:()=>q.data.readonly}),[Ve,We]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),[He,Ye]=(0,F.useDynamicProperty)(M,{handler:"onRequiredStateAssignment",initialValue:()=>q.data.required}),[Qe,Xe]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.autofocus}),[et,tt]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.scrollChanging}),[nt,rt]=(0,F.useState)(Se);(0,F.useEffect)((()=>{rt(Se)}),[Se]);var ot=(0,F.useElRef)();function updateValue(M){var{value:q,valid:Z}=Ie[pe]?Ie[pe](M):{value:M,valid:!0};return Z&&xe(q),rt(M),{value:q,valid:Z}}var at=(0,F.useComponentRegister)(M,{style:X,classList:{get:()=>ee,set:ae},display:{get:()=>ie,set:M=>le(!!M)},variant:{get:()=>ce,set:de},value:{get:()=>Se,set:updateValue},label:{get:()=>we,set:_e},type:{get:()=>pe,set:fe},name:{get:()=>ye,set:be},readOnly:{get:()=>qe,set:M=>ze(!!M)},disabled:{get:()=>Ve,set:M=>We(!!M)},required:{get:()=>He,set:M=>Ye(!!M)},autoFocus:{get:()=>Qe,set:M=>Xe(!!M)},scrollChanging:{get:()=>et,set:M=>tt(!!M)},el:{get:()=>ot.current},focus:()=>ot.current.focus(),placeholder:{get:()=>Pe,set:Re}}),it=(0,F.useSimpleEventHandlers)(M,["onFocus","onBlur"]),st=(0,F.useCallback)((M=>{var{altKey:q,ctrlKey:Z,shiftKey:F,keyCode:W}=M;Y("onKeyDown",{event:M,altKey:q,ctrlKey:Z,shiftKey:F,keyCode:W,component:at})}),[at]),ut=(0,F.useCallback)((M=>{var{altKey:q,ctrlKey:Z,shiftKey:F,keyCode:W}=M;Y("onKeyUp",{event:M,altKey:q,ctrlKey:Z,shiftKey:F,keyCode:W,component:at})}),[at]),lt=(0,F.useMemo)((()=>{if(!et&&"number"===pe)return M=>M.target.blur()}),[et,pe]),ct=(0,F.useLayoutEffectProperty)(He);if(!ie)return null;var dt=input_objectSpread({onChange:M=>{var q=M.target.value,{value:Z,valid:F}=updateValue(q);F&&Y("onChange",{event:M,value:Z})},onKeyDown:st,onKeyUp:ut,onWheel:lt},it);return React.createElement(Te.w,input_extends({className:(0,W.cn)(ee),style:input_objectSpread({},X),inputRef:ot,id:$,value:Se,rawValue:nt,disabled:Ve,label:Z(we),readOnly:qe,_required:ct,type:pe,variant:ce,placeholder:Z(Pe),autoFocus:Qe},dt))}function layout_cell_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function layout_cell_defineProperty(M,q,Z){return q in M?Object.defineProperty(M,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):M[q]=Z,M}function LayoutCell(M){var{node:q,componentContext:Z}=M,{dataStore:Y,setDataStore:X,dynamicItemData:ee}=M,ae=(0,F.useStyle)(M),[le,ce]=(0,F.useClassList)(M),[de,pe]=(0,F.useComponentDisplay)(M),[fe,ye]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.sizeDesktop}),[be,we]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.sizeTablet}),[_e,Se]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.sizePhone}),xe=(0,F.useElRef)(),Pe={style:ae,classList:{get:()=>le,set:M=>ce(M)},display:{get:()=>de,set:M=>pe(!!M)},sizeDesktop:{get:()=>fe,set:M=>ye(M)},sizeTablet:{get:()=>be,set:M=>we(M)},sizePhone:{get:()=>_e,set:M=>Se(M)},el:{get:()=>xe.current}};(Y||ee)&&(Pe.dataStore=Y||ee),X&&(Pe.setDataStore=X),(0,F.useComponentRegister)(M,Pe),(0,F.useComponentLifecycle)(M);var Re=(0,F.useSimpleEventHandlers)(M,["onClick","onMouseOver","onMouseOut"]),Te=ie.useMemo((()=>(0,W.cn)("bl-layout-cell",le,{["bl-layout-cell--".concat(fe,"-desktop")]:fe,["bl-layout-cell--".concat(be,"-tablet")]:be,["bl-layout-cell--".concat(_e,"-phone")]:_e})),[le,fe,be,_e]);return de?ie.createElement("div",function layout_cell_objectSpread(M){for(var q=1;q pe,set:M=>fe(M)},display:{get:()=>ye,set:M=>be(!!M)},el:{get:()=>we.current}};(Y||ee)&&(_e.dataStore=Y||ee),X&&(_e.setDataStore=X),le&&(_e.dynamicListItems={get:()=>ae,set:M=>le(M)}),(0,F.useComponentRegister)(M,_e),(0,F.useComponentLifecycle)(M);var Se=(0,F.useSimpleEventHandlers)(M,["onClick","onMouseOver","onMouseOut"]);if(!ye)return null;return ie.createElement("div",function layout_container_objectSpread(M){for(var q=1;q q.data.gridGap}),Se=(0,F.useElRef)(),xe={style:de,classList:{get:()=>pe,set:M=>fe(M)},gridGap:{get:()=>we,set:M=>_e(M)},display:{get:()=>ye,set:M=>be(!!M)},el:{get:()=>Se.current}};(Y||ee)&&(xe.dataStore=Y||ee),X&&(xe.setDataStore=X),le&&(xe.dynamicListItems={get:()=>ae,set:M=>le(M)}),(0,F.useComponentRegister)(M,xe),(0,F.useComponentLifecycle)(M);var Pe=(0,F.useSimpleEventHandlers)(M,["onClick","onMouseOver","onMouseOut"]);if(!ye)return null;return ie.createElement("div",layout_row_objectSpread({ref:Se,style:layout_row_objectSpread({gridGap:we?"".concat(we,"px"):null},(0,W.j5)(de)),className:(0,W.cn)("bl-layout-row",pe)},Pe),...ce?ce():(0,$.uC)(q.children,{componentContext:Z}))}function link_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function link_objectSpread(M){for(var q=1;q [...M.attributes].filter((q=>((M,q)=>!We.test(q)&&!Ve[M.nodeName].includes(q))(M,q.name))),prepareNode=M=>(M=>!!Ve[M.nodeName]||3===M.nodeType)(M)?(M=>{M.attributes&&(M.childElementCount&&M.childNodes.forEach((M=>prepareNode(M))),getUnsafeAttrs(M).forEach((q=>M.removeAttribute(q.name))))})(M):M.remove(),sanitize=M=>{var q=document.createElement("div");return q.innerHTML=M,q.childElementCount?(q.childNodes.forEach((M=>prepareNode(M))),q.innerHTML):M};function paragraph_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function paragraph_objectSpread(M){for(var q=1;q ie.createElement(le.Z.MenuItem,{key:q,value:M.value,classes:Qe.option},M.label)))))}));function select_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function select_objectSpread(M){for(var q=1;q q.data.variant}),[fe,ye]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.rows}),[be,we]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.rowsMax}),[_e,Se]=(0,F.useDynamicProperty)(M,{handler:"onNameAssignment",initialValue:()=>q.data.name}),[xe,Pe]=(0,F.useDynamicProperty)(M,{handler:"onLabelAssignment",initialValue:()=>q.data.label}),[Re,Te]=(0,F.useDynamicProperty)(M,{handler:"onPlaceholderAssignment",initialValue:()=>q.data.placeholder}),[Ie,qe]=(0,F.useDynamicProperty)(M,{handler:"onMaxLengthAssignment",initialValue:()=>q.data.maxLength}),[ze,Ve]=(0,F.useDynamicProperty)(M,{handler:"onValueAssignment",forceDefault:!0,initialValue:()=>q.data.value}),[We,He]=(0,F.useDynamicProperty)(M,{handler:"onReadOnlyStateAssignment",initialValue:()=>q.data.readonly}),[Ye,Qe]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),[Xe,tt]=(0,F.useDynamicProperty)(M,{handler:"onRequiredStateAssignment",initialValue:()=>q.data.required}),nt=(0,F.useElRef)(),rt=(0,F.useSimpleEventHandlers)(M,["onFocus","onBlur"]);(0,F.useComponentRegister)(M,{style:X,classList:{get:()=>ee,set:M=>ae(M)},display:{get:()=>le,set:M=>ce(!!M)},variant:{get:()=>de,set:pe},name:{get:()=>_e,set:Se},label:{get:()=>xe,set:Pe},placeholder:{get:()=>Re,set:Te},maxLength:{get:()=>Ie,set:qe},rows:{get:()=>fe,set:ye},rowsMax:{get:()=>be,set:we},value:{get:()=>ze,set:Ve},readOnly:{get:()=>We,set:M=>He(!!M)},disabled:{get:()=>Ye,set:M=>Qe(!!M)},required:{get:()=>Xe,set:M=>tt(!!M)},el:{get:()=>nt.current},focus:()=>nt.current.focus()});return le?ie.createElement(et.s,textarea_extends({},rt,{className:(0,W.cn)(ee),style:textarea_objectSpread({},X),id:$,value:ze,onChange:M=>{var q=M.target.value;Ve(q),Y("onChange",{event:M,value:q})},disabled:Ye,required:Xe,readOnly:We,label:Z(xe)||"",variant:de,placeholder:Z(Re),multiline:!0,minRows:fe,maxRows:be,maxLength:Ie,inputRef:nt})):null}Textarea.normalize=function(M){void 0===M.data.variant&&(M.data.variant="outlined")};var tt=Z(34392);function video_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function video_objectSpread(M){for(var q=1;q {var M=q.startsWith(nt)?q.replace(nt,""):q.replace(rt,""),ae=ee?rt:nt,ie=[];return Z&&ie.push("autoplay=1"),$&&ie.push("mute=1"),W&&ie.push("loop=1&playlist=".concat(M)),F||ie.push("controls=0"),X||ie.push("rel=0"),Y&&ie.push("modestbranding=1"),"".concat(ae).concat(M,"?").concat(ie.join("&"))}),[q,Z,F,W,$,Y,X,ee]);return ie.createElement("iframe",{style:{width:"100%",border:"none"},src:ae,title:"YoutubeProviderVideo",allow:"".concat(Z?"autoplay; ":"","fullscreen"),allowFullScreen:!0})}function VimeoProvider(M){var{source:q,autoplay:Z,background:F,controls:W,loop:$,color:Y}=M,X=ie.useMemo((()=>{var M=q.replace(ot,""),X=[];return Z&&X.push("autoplay=1"),F&&X.push("background=1"),$&&X.push("loop=1"),W||X.push("title=0&portrait=0&badge=0"),Y&&X.push("color=".concat(Y)),"".concat("https://player.vimeo.com/video/").concat(M,"?").concat(X.join("&"))}),[q,Z,F,W,$,Y]);return ie.createElement("iframe",{style:{width:"100%",border:"none"},src:X,title:"VimeoProviderVideo",allow:"".concat(Z?"autoplay; ":"","fullscreen"),allowFullScreen:!0})}function HTML5Provider(M){var{source:q,autoplay:Z,controls:F,playsInline:W,mute:$,loop:Y}=M;return ie.createElement("video",{style:{width:"100%",border:"none"},src:BackendlessUI.provideFileUrl(q),autoPlay:Z,muted:$,loop:Y,controls:F,playsInline:W})}function IFrameProvider(M){var{source:q,autoplay:Z}=M,F=ie.useMemo((()=>{var M=[];return Z&&M.push("autoplay=1"),"".concat(q,"?").concat(M.join("&"))}),[q,Z]);return ie.createElement("iframe",{style:{width:"100%",border:"none"},src:F,allowFullScreen:!0,title:"IFrameProviderVideo",allow:"".concat(Z?"autoplay; ":"","fullscreen")})}YoutubeProvider.match=M=>M.startsWith(nt)||M.startsWith(rt),VimeoProvider.match=M=>M.startsWith(ot),HTML5Provider.match=M=>at.test(M),IFrameProvider.match=M=>M.startsWith("http");var it=[YoutubeProvider,VimeoProvider,HTML5Provider,IFrameProvider];function slider_ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function slider_objectSpread(M){for(var q=1;q q.data.chartName}),ce=(0,F.useElRef)();return(0,F.useComponentRegister)(M,{style:Z,classList:{get:()=>$,set:M=>Y(M)},display:{get:()=>X,set:M=>ee(!!M)},chartName:{get:()=>ae,set:le},el:{get:()=>ce.current}}),X&&ae?ie.createElement("div",{ref:ce,className:(0,W.cn)($,"bl-chart"),style:chart_objectSpread({},Z)},ie.createElement("iframe",{style:{border:"none",height:"100%",width:"100%"},src:BackendlessUI.provideFileUrl("/chart-builder/".concat(ae,"/index.html"))})):null},checkbox:function Checkbox(M){var{node:q}=M,Z=(0,F.useI18n)(q),$=(0,F.useHandlerRunner)(M),Y=(0,F.useStyle)(M),[X,ee]=(0,F.useClassList)(M),[ae,le]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{handler:"onNameAssignment",initialValue:()=>q.data.name}),[fe,ye]=(0,F.useDynamicProperty)(M,{handler:"onLabelAssignment",initialValue:()=>q.data.label}),[be,we]=(0,F.useDynamicProperty)(M,{handler:"onCheckedStateAssignment",forceDefault:!0,initialValue:()=>q.data.checked}),[_e,Se]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),[xe,Pe]=(0,F.useDynamicProperty)(M,{handler:"onTooltipTextAssignment",initialValue:()=>q.data.tooltipText}),[Re,Te]=(0,F.useDynamicProperty)(M,{handler:"onTooltipVisibilityAssignment"}),[Ie,qe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.tooltipPlacement}),ze=(0,F.useElRef)();return(0,F.useComponentRegister)(M,{style:Y,classList:{get:()=>X,set:M=>ee(M)},display:{get:()=>ae,set:M=>le(!!M)},name:{get:()=>ce,set:de},label:{get:()=>fe,set:ye},checked:{get:()=>be,set:M=>we(!!M)},disabled:{get:()=>_e,set:M=>Se(!!M)},el:{get:()=>ze.current},tooltipText:{get:()=>xe,set:M=>Pe(M)},tooltipPlacement:{get:()=>Ie,set:M=>qe(M)},tooltipVisibility:{get:()=>Re,set:M=>Te(!!M)}}),ae?ie.createElement(pe.J,{ref:ze,style:checkbox_objectSpread({},Y),className:(0,W.cn)(X),checked:be,disabled:_e,label:Z(fe),name:ce,onChange:M=>{var q=M.target.checked;we(q),$("onChange",{event:M,value:q})},tooltipText:Z(xe),tooltipPlacement:Ie,tooltipControlled:$.available("onTooltipVisibilityAssignment"),tooltipVisibility:Re}):null},"data-table":DataTable,"datetime-picker":DateTimePicker,divider:function Divider(M){var q=(0,F.useStyle)(M),[Z,$]=(0,F.useClassList)(M),[Y,X]=(0,F.useComponentDisplay)(M),ee=(0,F.useElRef)();return(0,F.useComponentRegister)(M,{style:q,classList:{get:()=>Z,set:M=>$(M)},display:{get:()=>Y,set:M=>X(!!M)},el:{get:()=>ee.current}}),Y?ie.createElement("hr",{style:divider_objectSpread({},q),ref:ee,className:(0,W.cn)(Z,"bl-divider")}):null},"file-uploader-button":FileUploaderButton,form:Form,"google-map":function GoogleMap(M){var{node:q}=M,{googleApiKey:Z}=BackendlessUI.getSettings(),W=(0,F.useHandlerRunner)(M),$=(0,F.useStyle)(M),[Y,X]=(0,F.useClassList)(M),[ee,ae]=(0,F.useComponentDisplay)(M),[le,ce]=(0,F.useDynamicProperty)(M,{handler:"onMapTypeAssignment",initialValue:()=>q.data.mapType}),[de,pe]=(0,F.useDynamicProperty)(M,{handler:"onMapZoomAssignment",initialValue:()=>Math.max(1,Math.min(22,parseInt(q.data.mapZoom)))}),[fe,ye]=(0,F.useDynamicProperty)(M,{handler:"onMapCenterAssignment",initialValue:()=>function parseMapLocationString(M){if(M)try{return JSON.parse(M)}catch(M){return BackendlessUI.logger.warn("Could not parse map location",M),{lat:0,lng:0}}}(q.data.mapCenter)}),[we,_e]=(0,F.useDynamicProperty)(M,{handler:"onZoomControlAssignment",initialValue:()=>"true"===q.data.zoomControl}),[Se,xe]=(0,F.useDynamicProperty)(M,{handler:"onMapTypeControlAssignment",initialValue:()=>"true"===q.data.mapTypeControl}),[Pe,Re]=(0,F.useDynamicProperty)(M,{handler:"onScaleControlAssignment",initialValue:()=>"true"===q.data.scaleControl}),[Te,Ie]=(0,F.useDynamicProperty)(M,{handler:"onStreetViewControlAssignment",initialValue:()=>"true"===q.data.streetViewControl}),[qe,ze]=(0,F.useDynamicProperty)(M,{handler:"onRotateControlAssignment",initialValue:()=>"true"===q.data.rotateControl}),[Ve,We]=(0,F.useDynamicProperty)(M,{handler:"onFullscreenControlAssignment",initialValue:()=>"true"===q.data.fullscreenControl}),[He,Ye]=(0,F.useDynamicProperty)(M,{handler:"onTrafficAssignment",initialValue:()=>q.data.mapTraffic}),[Qe,Xe]=(0,F.useDynamicProperty)(M,{handler:"onScrollWheelAssignment",initialValue:()=>q.data.mapScrollwheel}),[et,tt]=(0,F.useDynamicProperty)(M,{handler:"onGestureHandlingAssignment",initialValue:()=>q.data.mapGestureHandling}),[nt,rt]=(0,F.useDynamicProperty)(M,{handler:"onPointsAssignment",initialValue:()=>function parseMapPointsString(M){if(M)try{return JSON.parse(M)}catch(M){return BackendlessUI.logger.warn("Could not parse map location",M),[]}}(q.data.mapPoints),sensitiveKeys:["infoWindow","autoOpenInfo","title","lat","lng"]}),ot=(0,F.useElRef)(),at=(0,F.useElRef)();if((0,F.useComponentRegister)(M,{style:$,classList:{get:()=>Y,set:M=>X(M)},display:{get:()=>ee,set:M=>ae(!!M)},mapType:{get:()=>le,set:ce},zoom:{get:()=>de,set:pe},center:{get:()=>fe,set:ye},points:{get:()=>nt,set:rt},zoomControl:{get:()=>we,set:_e},mapTypeControl:{get:()=>Se,set:xe},scaleControl:{get:()=>Pe,set:Re},streetViewControl:{get:()=>Te,set:Ie},rotateControl:{get:()=>qe,set:ze},fullscreenControl:{get:()=>Ve,set:We},traffic:{get:()=>He,set:Ye},scrollWheel:{get:()=>Qe,set:Xe},gestureHandling:{get:()=>et,set:tt},map:{get:()=>ot.current},el:{get:()=>at&&at.current}}),(0,F.useComponentLifecycle)(M),!ee||!Z)return null;var it=W.available("onMarkerClick")?M=>{var{point:q}=M;return W("onMarkerClick",{point:q})}:null;return ie.createElement(be.Z.GoogleMap,{elRef:at,mapRef:ot,style:google_map_objectSpread({},$),className:Y,googleApiKey:Z,mapType:le,setMapType:ce,zoom:de,center:fe,points:nt,zoomControl:we,mapTypeControl:Se,scaleControl:Pe,streetViewControl:Te,rotateControl:qe,fullscreenControl:Ve,onZoom:M=>{var{currentZoom:q}=M;pe(q),W("onZoomChange",{value:q})},onPan:M=>{var{currentCenter:q,northEast:Z,southWest:F}=M;ye(q),W("onPanChange",{value:q,northEast:Z,southWest:F})},onMarkerClick:it,scrollWheel:Qe,gestureHandling:et,traffic:He})},icon:we.J,"icon-button":function IconButton(M){var{node:q}=M,Z=(0,F.useI18n)(q),$=(0,F.useHandlerRunner)(M),Y=(0,F.useStyle)(M),[X,ee]=(0,F.useClassList)(M),[ae,le]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{handler:"onTypeAssignment",initialValue:()=>q.attrs.type}),[pe,fe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.variant}),[ye,be]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.size}),[we,_e]=(0,F.useDynamicProperty)(M,{handler:"onIconAssignment",initialValue:()=>q.data.icon}),[Se,xe]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.disableElevation}),[Re,Te]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.disableRipple}),[Ie,qe]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),[ze,Ve]=(0,F.useDynamicProperty)(M,{handler:"onTooltipTextAssignment",initialValue:()=>q.data.tooltipText}),[We,He]=(0,F.useDynamicProperty)(M,{handler:"onTooltipVisibilityAssignment"}),[Ye,Qe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.tooltipPlacement}),Xe=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:Y,classList:{get:()=>X,set:M=>ee(M)},display:{get:()=>ae,set:M=>le(!!M)},type:{get:()=>ce,set:M=>de(M)},disabled:{get:()=>Ie,set:M=>qe(!!M)},variant:{get:()=>pe,set:M=>fe(M)},size:{get:()=>ye,set:M=>be(M)},icon:{get:()=>we,set:M=>_e(M)},disableElevation:{get:()=>Se,set:M=>xe(!!M)},disableRipple:{get:()=>Re,set:M=>Te(!!M)},el:{get:()=>Xe.current},tooltipText:{get:()=>ze,set:M=>Ve(M)},tooltipPlacement:{get:()=>Ye,set:M=>Qe(M)},tooltipVisibility:{get:()=>We,set:M=>He(!!M)}});var et=(0,F.useSimpleEventHandlers)(M,["onClick"]);return ae?ie.createElement(Pe,icon_button_extends({ref:Xe,style:Y,type:ce,variant:pe,size:ye,icon:we,className:(0,W.cn)(X),disableElevation:Se,disableRipple:Re,disabled:Ie,tooltipText:Z(ze),tooltipControlled:$.available("onTooltipVisibilityAssignment"),tooltipVisibility:We,tooltipPlacement:Ye},et)):null},iframe:function Iframe(M){var{node:q}=M,Z=(0,F.useStyle)(M),[$,Y]=(0,F.useClassList)(M),[X,ee]=(0,F.useComponentDisplay)(M),[ae,le]=(0,F.useDynamicProperty)(M,{handler:"onSourceUrlAssignment",initialValue:()=>q.data.sourceUrl}),[ce,de]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.title||""}),pe=(0,F.useElRef)();return(0,F.useComponentRegister)(M,{style:Z,classList:{get:()=>$,set:M=>Y(M)},display:{get:()=>X,set:M=>ee(!!M)},sourceUrl:{get:()=>ae,set:le},title:{get:()=>ce,set:de},el:{get:()=>pe.current}}),X&&ae?ie.createElement("div",{style:iframe_objectSpread({},Z),ref:pe,className:(0,W.cn)($,"bl-iframe")},ie.createElement("iframe",{style:{width:"100%",height:"100%",border:"none"},title:ce||"iframe",src:ae})):null},image:function Image(M){var{node:q}=M,Z=(0,F.useStyle)(M),[$,Y]=(0,F.useClassList)(M),[X,ee]=(0,F.useComponentDisplay)(M),[ae,le]=(0,F.useDynamicProperty)(M,{handler:"onSourceUrlAssignment",initialValue:()=>q.data.url}),[ce,de]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.alt}),[pe,fe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.width}),[ye,be]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.height}),[we,_e]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.loadMode}),Se=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:Z,classList:{get:()=>$,set:M=>Y(M)},display:{get:()=>X,set:M=>ee(!!M)},src:{get:()=>ae,set:le},alt:{get:()=>ce,set:de},width:{get:()=>pe,set:fe},height:{get:()=>ye,set:be},loadMode:{get:()=>we,set:_e},el:{get:()=>Se.current}});var xe=(0,F.useSimpleEventHandlers)(M,["onClick","onMouseOver","onMouseOut","onLoad","onError"]),Pe=ae,Te=(0,F.useMemo)((()=>Re[we]?we:null),[we]);return X&&Pe?ie.createElement("img",image_objectSpread({style:image_objectSpread({},Z),ref:Se,width:pe||void 0,height:ye||void 0,alt:ce||"image",loading:Te||Re.lazy,className:(0,W.cn)($,"bl-image"),src:BackendlessUI.provideFileUrl(Pe)},xe)):null},input:Input,"layout-cell":LayoutCell,"layout-container":LayoutContainer,"layout-row":LayoutRow,link:function Link(M){var{node:q}=M,Z=(0,F.useI18n)(q),$=(0,F.useHandlerRunner)(M),Y=(0,F.useStyle)(M),[X,ee]=(0,F.useClassList)(M),[ae,le]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{handler:"onTargetTypeAssignment",initialValue:()=>q.data.targetType}),[pe,fe]=(0,F.useDynamicProperty)(M,{handler:"onTargetPathAssignment",initialValue:()=>q.data.targetPath}),[ye,be]=(0,F.useDynamicProperty)(M,{handler:"onPageNameAssignment",initialValue:()=>q.data.pageName}),[we,_e]=(0,F.useDynamicProperty)(M,{handler:"onTextAssignment",initialValue:()=>q.data.text}),[Se,xe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.ariaLabel}),Pe=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:Y,classList:{get:()=>X,set:M=>ee(M)},display:{get:()=>ae,set:M=>le(!!M)},targetType:{get:()=>ce,set:de},targetPath:{get:()=>pe,set:fe},pageName:{get:()=>ye,set:be},text:{get:()=>we,set:_e},ariaLabel:{get:()=>Se,set:xe},el:{get:()=>Pe.current}});var Re=(0,F.useMemo)((()=>ye?BackendlessUI.Navigator.getNextPageUrl(ye):ce===qe?"mailto:"+pe:pe||"#"),[ye,pe,ce]),Te=(0,F.useMemo)((()=>{if(ce===ze)return ce}),[ce]),Ie=(0,F.useSimpleEventHandlers)(M,["onMouseOver","onMouseOut","onFocus","onBlur"]);return ae?ie.createElement("a",link_objectSpread({style:link_objectSpread({},Y),ref:Pe,className:(0,W.cn)(X,"bl-link"),"aria-label":Se||"link",target:Te,href:Re,onClick:M=>{$.available("onClick")?(M.preventDefault(),$("onClick",{event:M})):ye&&ce!==ze&&(M.preventDefault(),BackendlessUI.Navigator.goToPage(ye))}},Ie),Z(we)):null},paragraph:function Paragraph(M){var{node:q}=M,Z=(0,F.useI18n)(q),Y=(0,F.useStyle)(M),[X,ee]=(0,F.useClassList)(M),[ae,le]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{handler:"onContentAssignment",initialValue:()=>ie.createElement(ie.Fragment,null,...(0,$.uC)(q.children))}),[pe,fe]=(0,F.useMemo)((()=>"string"==typeof ce?[{__html:sanitize(Z(ce))},null]:[void 0,ce]),[ce,BackendlessUI.I18n.lang]),ye=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:Y,classList:{get:()=>X,set:M=>ee(M)},display:{get:()=>ae,set:M=>le(!!M)},content:{get:()=>ce,set:M=>de(M)},el:{get:()=>ye.current}}),(0,F.useComponentLifecycle)(M);var be=(0,F.useSimpleEventHandlers)(M,["onClick","onMouseOver","onMouseOut"]);return ae?ie.createElement("div",paragraph_objectSpread({style:paragraph_objectSpread({whiteSpace:pe?"break-spaces":void 0},Y),ref:ye,className:(0,W.cn)(X,"bl-paragraph"),dangerouslySetInnerHTML:Z(pe)},be),Z(fe)):null},"qr-code":QRCode,"radio-button":function RadioButton(M){var{node:q}=M,Z=(0,F.useI18n)(q),$=(0,F.useUid)(),Y=(0,F.useHandlerRunner)(M),X=(0,F.useStyle)(M),[ee,ae]=(0,F.useClassList)(M),[ce,de]=(0,F.useComponentDisplay)(M),[pe,fe]=(0,F.useDynamicProperty)(M,{handler:"onNameAssignment",fromProps:()=>M.groupName,initialValue:()=>M.groupName||q.data.name}),[ye,be]=(0,F.useDynamicProperty)(M,{handler:"onLabelAssignment",initialValue:()=>q.data.label}),[we,_e]=(0,F.useDynamicProperty)(M,{handler:"onValueAssignment",initialValue:()=>q.data.value}),[Se,xe]=(0,F.useDynamicProperty)(M,{handler:"onCheckedValueAssignment",fromProps:()=>M.checkedValue,initialValue:()=>q.data.checked?q.data.value:null}),[Pe,Re]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),Te=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:X,classList:{get:()=>ee,set:M=>ae(M)},display:{get:()=>ce,set:M=>de(!!M)},name:{get:()=>pe,set:fe},label:{get:()=>ye,set:be},value:{get:()=>we,set:_e},checkedValue:{get:()=>Se,set:xe},disabled:{get:()=>Pe,set:M=>Re(!!M)},el:{get:()=>Te.current}});var Ie=M.onChange||(M=>{var q=M.target.value;xe(q),Y("onChange",{event:M,value:q})});return ce?ie.createElement(le.Z.FormControlLabel,{label:Z(ye),disabled:Pe,style:radio_button_objectSpread({},X),className:(0,W.cn)(ee,"bl-radio-button",{"bl-radio-button--checked":we===Se}),classes:{label:"bl-radio-button-label",disabled:"bl-radio-button--disabled"},control:ie.createElement(le.Z.Radio,{name:pe,onChange:Ie,inputRef:Te,id:$,value:Pe?"disabled":we,checked:we===Se,classes:{root:"bl-radio-button-control",checked:"bl-radio-button--checked",disabled:"bl-radio-button--disabled",colorPrimary:"bl-radio-button-color-primary",colorSecondary:"bl-radio-button-color-secondary"}})}):null},"radio-buttons-group":function RadioButtonsGroup(M){var{node:q,componentContext:Z}=M,Y=(0,F.useHandlerRunner)(M),X=(0,F.useStyle)(M),[ee,ae]=(0,F.useClassList)(M),[le,ce]=(0,F.useComponentDisplay)(M),[de,pe]=(0,F.useDynamicProperty)(M,{handler:"onNameAssignment",initialValue:()=>q.data.name}),[fe,ye]=(0,F.useDynamicProperty)(M,{handler:"onCheckedValueAssignment",initialValue:()=>q.data.checkedValue}),be=(0,F.useElRef)();return(0,F.useComponentRegister)(M,{style:X,classList:{get:()=>ee,set:M=>ae(M)},display:{get:()=>le,set:M=>ce(!!M)},name:{get:()=>de,set:pe},checkedValue:{get:()=>fe,set:ye},el:{get:()=>be.current}}),(0,F.useComponentLifecycle)(M),le?ie.createElement("div",{ref:be,style:radio_buttons_group_objectSpread({},X),className:(0,W.cn)(ee,"bl-radio-button-group")},...(0,$.uC)(q.children,{componentContext:Z,groupName:de,checkedValue:fe,onChange:M=>{var q=M.target.value;ye(q),Y("onChange",{event:M,checkedValue:q})}})):null},select:function Select(M){var{node:q}=M,Z=(0,F.useI18n)(q),$=(0,F.useUid)(),Y=(0,F.useHandlerRunner)(M),X=(0,F.useStyle)(M),[ee,ae]=(0,F.useClassList)(M),[le,ce]=(0,F.useComponentDisplay)(M),[de,pe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.variant||"outlined"}),[fe,ye]=(0,F.useDynamicProperty)(M,{handler:"onLabelAssignment",initialValue:()=>q.data.label}),[be,we]=(0,F.useDynamicProperty)(M,{handler:"onOptionsAssignment",initialValue:()=>function parseSelectOptions(M){var q=[];if(M)try{M.split(";").forEach((M=>{var[Z,F]=M.split(":");q.push({value:Z,label:F})}))}catch(M){BackendlessUI.logger.error("Can not parse Select Options",M)}return q}(q.data.options)}),[_e,Se]=(0,F.useDynamicProperty)(M,{handler:"onValueKeyAssignment",initialValue:()=>q.data.valueKey}),[xe,Pe]=(0,F.useDynamicProperty)(M,{handler:"onLabelKeyAssignment",initialValue:()=>q.data.labelKey}),[Re,Te]=(0,F.useDynamicProperty)(M,{handler:"onValueAssignment",forceDefault:!0,initialValue:()=>q.data.value}),[Ie,qe]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),[ze,Ve]=(0,F.useDynamicProperty)(M,{handler:"onRequiredStateAssignment",initialValue:()=>q.data.required}),[We,He]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.size}),Qe=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:X,classList:{get:()=>ee,set:M=>ae(M)},display:{get:()=>le,set:M=>ce(!!M)},label:{get:()=>fe,set:ye},options:{get:()=>be,set:we},valueKey:{get:()=>_e,set:Se},labelKey:{get:()=>xe,set:Pe},variant:{get:()=>de,set:pe},value:{get:()=>Re,set:Te},disabled:{get:()=>Ie,set:M=>qe(!!M)},required:{get:()=>ze,set:M=>Ve(!!M)},size:{get:()=>We,set:He},el:{get:()=>Qe.current}});var et=ie.useMemo((()=>{var M=[];if(Array.isArray(be)){var q=!1;for(var F of be){var W=F[_e||"value"];if(void 0===W)q||(console.error("Invalid option item in the Select Component, "+'make sure each option object has defined "'.concat(_e,'" property, otherwise the option will be skipped')),q=!0);else{var $=F[xe]||F.label||W;M.push({value:"".concat(W),label:Z($)})}}}return M}),[Ye.K.getUpdatedAt(be),be,_e,xe,BackendlessUI.I18n.lang]);return le?ie.createElement(Xe,{style:select_objectSpread({},X),disabled:Ie,required:ze,size:We,ref:Qe,variant:de,className:(0,W.cn)(ee),id:$,label:Z(fe),value:Re,onChange:M=>{var q=et.find((q=>q.value===M.target.value)).value;Te(q),Y("onChange",{value:q})},options:et}):null},spinner:function Spinner(M){var q=(0,F.useStyle)(M),[Z,$]=(0,F.useClassList)(M),[Y,X]=(0,F.useComponentDisplay)(M),ee=(0,F.useElRef)();return(0,F.useComponentRegister)(M,{style:q,classList:{get:()=>Z,set:M=>$(M)},display:{get:()=>Y,set:M=>X(!!M)},el:{get:()=>ee.current}}),(0,F.useComponentLifecycle)(M),Y?ie.createElement("svg",{ref:ee,className:(0,W.cn)("base-spinner",Z),style:spinner_objectSpread(spinner_objectSpread({},q),{},{width:50,height:50})},ie.createElement("circle",{cx:"50%",cy:"50%",r:"40%",fill:"none",stroke:"currentColor",strokeWidth:3,strokeMiterlimit:10})):null},switch:function Switch(M){var{node:q}=M,Z=(0,F.useHandlerRunner)(M),$=(0,F.useStyle)(M),[Y,X]=(0,F.useClassList)(M),[ee,ae]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{handler:"onNameAssignment",initialValue:()=>q.data.name}),[pe,fe]=(0,F.useDynamicProperty)(M,{handler:"onCheckedStateAssignment",forceDefault:!0,initialValue:()=>q.data.checked}),[ye,be]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),we=(0,F.useElRef)();return(0,F.useComponentRegister)(M,{style:$,classList:{get:()=>Y,set:M=>X(M)},display:{get:()=>ee,set:M=>ae(!!M)},name:{get:()=>ce,set:de},checked:{get:()=>pe,set:M=>fe(!!M)},disabled:{get:()=>ye,set:M=>be(!!M)},el:{get:()=>we.current}}),ee?ie.createElement("span",{ref:we,style:switch_objectSpread(switch_objectSpread({},$),{},{display:"inline-flex",flexShrink:0}),className:(0,W.cn)(Y,"bl-switch",{"bl-switch--checked":pe,"bl-switch--disabled":ye})},ie.createElement(le.Z.Switch,{name:ce,checked:!!pe,disabled:!!ye,onChange:M=>{var q=M.target.checked;fe(q),Z("onChange",{event:M,value:q})},classes:{root:"bl-switch-root",switchBase:"bl-switch-base",thumb:"bl-switch-thumb",track:"bl-switch-track"}})):null},text:function Text(M){var{node:q}=M,Z=(0,F.useI18n)(q),Y=(0,F.useStyle)(M),[X,ee]=(0,F.useClassList)(M),[ae,le]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{handler:"onContentAssignment",initialValue:()=>q.data.content||ie.createElement(ie.Fragment,null,...(0,$.uC)(q.children))}),[pe,fe]=(0,F.useMemo)((()=>"string"==typeof ce?[{__html:sanitize(Z(ce))},null]:[void 0,ce]),[ce,BackendlessUI.I18n.lang]),ye=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:Y,classList:{get:()=>X,set:M=>ee(M)},display:{get:()=>ae,set:M=>le(!!M)},content:{get:()=>ce,set:de},el:{get:()=>ye.current}});var be=(0,F.useSimpleEventHandlers)(M,["onClick","onMouseOver","onMouseOut"]);return ae?ie.createElement(q.tagName,text_objectSpread({ref:ye,className:(0,W.cn)(X,"bl-text"),dangerouslySetInnerHTML:pe,style:text_objectSpread({whiteSpace:"break-spaces"},Y)},be),Z(fe)):null},textarea:Textarea,video:function Video(M){var{node:q}=M,Z=(0,F.useStyle)(M),[$,Y]=(0,F.useClassList)(M),[X,ee]=(0,F.useComponentDisplay)(M),[ae,le]=(0,F.useDynamicProperty)(M,{handler:"onSourceAssignment",initialValue:()=>q.data.source}),[ce,de]=(0,F.useDynamicProperty)(M,{handler:"onAutoplayAssignment",initialValue:()=>"true"===q.data.autoplay}),[pe,fe]=(0,F.useDynamicProperty)(M,{handler:"onControlsAssignment",initialValue:()=>"true"===q.data.controls}),[ye,be]=(0,F.useDynamicProperty)(M,{handler:"onLoopAssignment",initialValue:()=>"true"===q.data.loop}),[we,_e]=(0,F.useDynamicProperty)(M,{handler:"onMuteAssignment",initialValue:()=>"true"===q.data.mute}),[Se,xe]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.playsinline}),[Pe,Re]=(0,F.useDynamicProperty)(M,{handler:"onBackgroundAssignment",initialValue:()=>"true"===q.data.background}),[Te,Ie]=(0,F.useDynamicProperty)(M,{handler:"onModestBrandingAssignment",initialValue:()=>"true"===q.data.modestBranding}),[qe,ze]=(0,F.useDynamicProperty)(M,{handler:"onShowRelatedAssignment",initialValue:()=>"true"===q.data.showRelated}),[Ve,We]=(0,F.useDynamicProperty)(M,{handler:"onNoCookieAssignment",initialValue:()=>"true"===q.data.noCookie}),[He,Ye]=(0,F.useDynamicProperty)(M,{handler:"onColorAssignment",initialValue:()=>q.data.color}),Qe=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:Z,classList:{get:()=>$,set:M=>Y(M)},display:{get:()=>X,set:M=>ee(!!M)},source:{get:()=>ae,set:le},autoplay:{get:()=>ce,set:de},controls:{get:()=>pe,set:fe},playsInline:{get:()=>Se,set:xe},loop:{get:()=>ye,set:be},mute:{get:()=>we,set:_e},background:{get:()=>Pe,set:Re},modestBranding:{get:()=>Te,set:Ie},showRelated:{get:()=>qe,set:ze},noCookie:{get:()=>Ve,set:We},color:{get:()=>He,set:Ye},el:{get:()=>Qe.current}}),(0,F.useComponentLifecycle)(M);var Xe=function getProvider(M){if(M)for(var q of it)if(q.match(M))return q}(ae);if(!X||!Xe)return null;var et={source:ae,autoplay:ce,controls:pe,playsInline:Se,loop:ye,mute:we,background:Pe,modestBranding:Te,showRelated:qe,noCookie:Ve,color:He};return ie.createElement("div",{ref:Qe,className:(0,W.cn)($,"bl-video"),style:video_objectSpread({display:"flex",overflow:"hidden"},Z)},ie.createElement(Xe,et))},slider:function Slider(M){var{node:q}=M,Z=(0,F.useHandlerRunner)(M),$=(0,F.useStyle)(M),[Y,X]=(0,F.useClassList)(M),[ee,ae]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{handler:"onNameAssignment",initialValue:()=>q.data.name}),[pe,fe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.mode||"single"}),[ye,be]=(0,F.useDynamicProperty)(M,{initialValue:()=>toNumber(q.data.minValue,0)}),[we,_e]=(0,F.useDynamicProperty)(M,{initialValue:()=>toNumber(q.data.maxValue,100)}),[Se,xe]=(0,F.useDynamicProperty)(M,{handler:"onValueAssignment",forceDefault:!0,initialValue:()=>{if("range"===pe){if(!q.data.startValue||!q.data.endValue)return;return[ensureValue(q.data.startValue,{defaultValue:ye,minValue:ye,maxValue:we}),ensureValue(q.data.endValue,{defaultValue:we,minValue:ye,maxValue:we})]}return ensureValue(q.data.value,{defaultValue:ye,minValue:ye,maxValue:we})}}),[Pe,Re]=(0,F.useDynamicProperty)(M,{initialValue:()=>Math.abs(q.data.step)}),[Te,Ie]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.valueLabelDisplay}),[qe,ze]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.orientationVariant}),[Ve,We]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.marks}),[He,Ye]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),Qe=(0,F.useElRef)(),Xe=we-ye,et=ie.useMemo((()=>function isMarksVisible(M,q,Z,F){if(!Z||!M||!q)return!1;return Z/q Y,set:M=>X(M)},display:{get:()=>ee,set:M=>ae(!!M)},name:{get:()=>ce,set:de},value:{get:()=>Se,set:xe},minValue:{get:()=>ye,set:be},maxValue:{get:()=>we,set:_e},step:{get:()=>Pe,set:Re},valueLabelDisplay:{get:()=>Te,set:Ie},mode:{get:()=>pe,set:fe},orientationVariant:{get:()=>qe,set:ze},marks:{get:()=>Ve,set:M=>We(!!M)},disabled:{get:()=>He,set:M=>Ye(!!M)},el:{get:()=>Qe.current}});var tt=(0,F.useMemo)((()=>"range"===pe?Array.isArray(Se)?Se:[ye,we]:ensureValue(Se,{defaultValue:ye,minValue:ye,maxValue:we})),[pe,Se,ye,we]);return ee?ie.createElement(le.Z.Slider,{name:ce,disabled:He,onChange:(M,q)=>{xe(q),Z("onChange",{event:M,value:q})},valueLabelDisplay:Te,className:(0,W.cn)(Y),marks:et,style:slider_objectSpread({},$),value:tt,step:+Pe||Xe/100,ref:Qe,min:toNumber(ye,0),max:toNumber(we,100),orientation:qe,valueLabelFormat:M=>function nFormatter(M){var q,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,F=[{value:1,symbol:""},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],W=/\.0+$|(\.[0-9]*[1-9])0+$/,$=Math.sign(M),Y=M*$;for(q=F.length-1;q>0&&!(Y>=F[q].value);q--);return(Y/F[q].value).toFixed(Z).replace(W,"$1")*$+F[q].symbol}(M),classes:{root:"bl-slider",disabled:"bl-slider--disabled",rail:"bl-slider-rail",track:"bl-slider-track",mark:"bl-slider--mark",markActive:"bl-slider--mark-active",thumb:"bl-slider-thumb",focusVisible:"bl-slider-thumb--focus",active:"bl-slider--active",valueLabel:"bl-slider--value-label",vertical:"bl-slider--vertical"}}):null},chip:function Chip(M){var{node:q}=M,Z=(0,F.useI18n)(q),$=(0,F.useStyle)(M),[Y,X]=(0,F.useClassList)(M),[ee,ae]=(0,F.useComponentDisplay)(M),ce=(0,F.useSimpleEventHandlers)(M,["onClick","onDelete"]),[de,pe]=(0,F.useDynamicProperty)(M,{handler:"onLabelAssignment",initialValue:()=>q.data.label||""}),[fe,ye]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.variant}),[be,we]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.size}),[_e,Se]=(0,F.useDynamicProperty)(M,{handler:"onIconAssignment",initialValue:()=>q.data.frontIcon}),[xe,Pe]=(0,F.useDynamicProperty)(M,{handler:"onIconAssignment",initialValue:()=>q.data.deleteIcon}),[Re,Te]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),Ie=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:$,classList:{get:()=>Y,set:M=>X(M)},display:{get:()=>ee,set:M=>ae(!!M)},disabled:{get:()=>Re,set:M=>Te(!!M)},variant:{get:()=>fe,set:M=>ye(M)},size:{get:()=>be,set:M=>we(M)},frontIcon:{get:()=>_e,set:Se},deleteIcon:{get:()=>xe,set:Pe},el:{get:()=>Ie.current},label:{get:()=>de,set:M=>pe(M)}});var qe=useIconName(_e),ze=useIconName(xe||"cancel");if(!ee)return null;var Ve=_e&&createIconComponent(qe,"front"),We=createIconComponent(ze,"delete");return ie.createElement(le.Z.Chip,chip_objectSpread(chip_objectSpread({ref:Ie,style:(0,W.j5)($),variant:fe,label:Z(de),size:be,icon:Ve,id:q.id,className:(0,W.cn)(Y),classes:{root:"bl-chip",label:"bl-chip-label",outlined:"bl-chip--outlined",disabled:"bl-chip--disabled"},disabled:Re},ce),{},{deleteIcon:We}))},"color-picker":ColorPicker,"autocomplete-google-places":function AutocompleteGooglePlaces(M){var{node:q}=M,{googleApiKey:Z}=BackendlessUI.getSettings(),W=(0,F.useI18n)(q),$=(0,F.useUid)(),Y=(0,F.useHandlerRunner)(M),X=(0,F.useStyle)(M),[ee,ae]=(0,F.useClassList)(M),[ie,le]=(0,F.useComponentDisplay)(M),[ce,de]=(0,F.useDynamicProperty)(M,{forceDefault:!0,initialValue:()=>q.data.variant||"standard"}),[pe,fe]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.searchMode}),[ye,we]=(0,F.useDynamicProperty)(M,{handler:"onQueryPredictionsAssignment",initialValue:()=>null}),[_e,Se]=(0,F.useDynamicProperty)(M,{handler:"onPlacesPredictionsAssignment",initialValue:()=>null}),[xe,Pe]=(0,F.useDynamicProperty)(M,{handler:"onLabelAssignment",initialValue:()=>q.data.label}),[Re,Te]=(0,F.useDynamicProperty)(M,{handler:"onValueAssignment",initialValue:()=>null}),[Ie,qe]=(0,F.useDynamicProperty)(M,{handler:"onPlaceholderAssignment",initialValue:()=>q.data.placeholder}),[ze,Ve]=(0,F.useDynamicProperty)(M,{handler:"onReadOnlyStateAssignment",initialValue:()=>q.data.readonly}),[We,He]=(0,F.useDynamicProperty)(M,{handler:"onDisabledStateAssignment",initialValue:()=>q.data.disabled}),[Ye,Qe]=(0,F.useDynamicProperty)(M,{handler:"onRequiredStateAssignment",initialValue:()=>q.data.required}),[Xe,et]=(0,F.useDynamicProperty)(M,{initialValue:()=>"true"===q.data.autofocus}),[tt,nt]=(0,F.useDynamicProperty)(M,{initialValue:()=>q.data.size}),rt=(0,F.useElRef)();(0,F.useComponentRegister)(M,{style:X,classList:{get:()=>ee,set:M=>ae(M)},display:{get:()=>ie,set:M=>le(!!M)},variant:{get:()=>ce,set:de},value:{get:()=>Re,set:Te},label:{get:()=>xe,set:Pe},readOnly:{get:()=>ze,set:M=>Ve(!!M)},disabled:{get:()=>We,set:M=>He(!!M)},required:{get:()=>Ye,set:M=>Qe(!!M)},autoFocus:{get:()=>Xe,set:M=>et(!!M)},el:{get:()=>rt.current},focus:()=>rt.current.focus(),size:{get:()=>tt,set:nt},placeholder:{get:()=>Ie,set:qe},searchMode:{get:()=>pe,set:fe},placesPredictionsSettings:{get:()=>_e,set:Se},queryPredictionsSettings:{get:()=>ye,set:we}}),(0,F.useComponentLifecycle)(M);var ot=(0,F.useSimpleEventHandlers)(M,["onFocus","onBlur"]),at=(0,F.useLayoutEffectProperty)(Ye);return ie?React.createElement(be.Z.AutocompleteGooglePlaces,autocomplete_google_places_objectSpread({searchMode:pe,googleApiKey:Z,onChange:M=>{Te(M),Y("onChange",{event,value:M})},onKeyDown:M=>{var{altKey:q,ctrlKey:Z,shiftKey:F,keyCode:W}=M;Y("onKeyDown",{event:M,altKey:q,ctrlKey:Z,shiftKey:F,keyCode:W})},readOnly:ze,size:tt,value:Re,classList:ee,variant:ce,style:autocomplete_google_places_objectSpread({},X),label:W(xe)||"",placeholder:W(Ie)||"",inputRef:rt,id:$,required:!!at,disabled:!!We,autoFocus:!!Xe,queryPredictionsSettings:ye||{},placesPredictionsSettings:_e||{}},ot)):null},"view-data-grid":ViewDataGrid,"chart-visualization":ChartVisualization,"data-grid-visualization":DataGridVisualization,"calendar-visualization":CalendarVisualization},ft=pt},17702:(M,q,Z)=>{"use strict";Z.d(q,{w:()=>ie});var F=Z(67294),W=Z(50066),$=Z(66986),Y=["className","style","inputRef","id","value","rawValue","disabled","label","readOnly","_required"],X=["type","variant","placeholder","autoFocus","onChange","onKeyDown"],ee=["onKeyUp","onFocus","onBlur","onWheel","size","maxLength"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(M){for(var q=1;q =0||(W[Z]=M[Z]);return W}(M,q);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(M);for(F=0;F<$.length;F++)Z=$[F],q.indexOf(Z)>=0||Object.prototype.propertyIsEnumerable.call(M,Z)&&(W[Z]=M[Z])}return W}var ae={label:{root:"bl-input-label",focused:"bl-input-label--focused",disabled:"bl-input-label--disabled",required:"bl-input-label--required",filled:"bl-input-label--filled",outlined:"bl-input-label--outlined"},input:{root:"bl-input-input-root",focused:"bl-input-input--focused",disabled:"bl-input-input--disabled"}},ie=F.forwardRef((function InputUI(M,q){var{className:Z,style:ie,inputRef:le,id:ce,value:de,rawValue:pe,disabled:fe,label:ye,readOnly:be,_required:we}=M,_e=_objectWithoutProperties(M,Y),{type:Se,variant:xe,placeholder:Pe,autoFocus:Re,onChange:Te,onKeyDown:Ie}=_e,qe=_objectWithoutProperties(_e,X),{onKeyUp:ze,onFocus:Ve,onBlur:We,onWheel:He,size:Ye,maxLength:Qe}=qe,Xe=_objectWithoutProperties(qe,ee);return F.createElement($.Z.TextField,_extends({},Xe,{style:ie,ref:q,inputRef:le,id:ce,value:null==pe?"":pe.toString(),disabled:!!fe,label:ye||"",required:we,type:Se||"text",variant:xe,size:Ye,placeholder:Pe||"",autoFocus:!!Re,maxLength:Qe,onChange:Te,onKeyDown:Ie,onKeyUp:ze,onFocus:Ve,onBlur:We,onWheel:He,inputProps:{step:"number"===Se?"any":void 0},InputProps:{classes:ae.input,readOnly:!!be},InputLabelProps:{classes:ae.label,shrink:!!Pe||void 0},className:(0,W.cn)(Z,"bl-input","bl-input--".concat(xe),{"bl-input--disabled":!!fe,"bl-input--required":!!we,"bl-input--with-value":!!de})}))}))},39829:(M,q,Z)=>{"use strict";Z.d(q,{h:()=>ReusableComponentInstance});var F=Z(16557),W=Z(94770),$=Z(70567);function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;q _objectSpread(_objectSpread({},M.componentContext),{},{rootComponentData:$})),[M.componentContext,$]),X=_objectSpread(_objectSpread({},M),{},{componentContext:Y}),[ee,ae]=(0,W.useComponentDisplay)(X),ie={display:{get:()=>ee,set:M=>ae(!!M)}};return $&&(ie.dataStore=$,ie.setDataStore=F),(0,W.useComponentRegister)(X,ie),(0,W.useComponentLifecycle)(X),React.createElement(ReusableComponentClass,{node:q,componentContext:X.componentContext,display:ee})}function ReusableComponentClass(M){var{node:q,componentContext:Z,display:$}=M;return(0,W.useComponentLifecycle)(M,{onBeforeMount:q.rootHandlers.onBeforeMount,onMounted:q.rootHandlers.onMounted,onBeforeUnmount:q.rootHandlers.onBeforeUnmount}),$?(0,F.uC)(q.children,{componentContext:Z}):null}ReusableComponentInstance.resolve=function(M){return(0,$.GW)(this,M,$.zJ)}},86479:(M,q,Z)=>{"use strict";Z.d(q,{s:()=>X});var F=Z(67294),W=Z(50066),$=Z(66986),Y={label:{root:"bl-textarea-label",focused:"bl-textarea-label--focused",disabled:"bl-textarea-label--disabled",required:"bl-textarea-label--required",filled:"bl-textarea-label--filled",outlined:"bl-textarea-label--outlined"},input:{root:"bl-textarea-input-root",focused:"bl-textarea-input--focused",disabled:"bl-textarea-input--disabled"}},X=F.forwardRef((function TextareaUI(M,q){var{className:Z,style:X,id:ee,value:ae,onChange:ie,disabled:le,required:ce,readOnly:de,label:pe,variant:fe}=M,{placeholder:ye,multiline:be,minRows:we,maxRows:_e,maxLength:Se,inputRef:xe,size:Pe,autoFocus:Re,onFocus:Te,onBlur:Ie}=M;return F.createElement($.Z.TextField,{ref:q,style:X,id:ee,value:ae||"",onChange:ie,onFocus:Te,onBlur:Ie,disabled:!!le,required:ce,label:pe||"",variant:fe,size:Pe,autoFocus:Re,placeholder:ye,multiline:be,minRows:we,maxRows:_e,inputRef:xe,className:(0,W.cn)(Z,"bl-textarea","bl-textarea--".concat(fe),{"bl-textarea--disabled":le,"bl-textarea--required":ce,"bl-textarea--with-value":ae}),InputLabelProps:{classes:Y.label,shrink:!!ye||void 0},inputProps:{maxLength:Se},InputProps:{readOnly:!!de,classes:Y.input}})}))},34392:(M,q)=>{q.W="\\.(mp4|webm|ogg|m3u8|ts|3gp|mov)$"},50066:(M,q,Z)=>{"use strict";Z.d(q,{R0:()=>enrichWithSuffix,cn:()=>cn,j5:()=>normalizeStyle,sH:()=>ae});var F=Z(94184),W=Z.n(F);function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _defineProperty(M,q,Z){return q in M?Object.defineProperty(M,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):M[q]=Z,M}var $=/^url\('?"?(.*?)'?"?\)$/i,Y=/.*\/~=~=~\//,X=/[a-zA-Z%]+$/,ee=["px","rem","em","%","cm","mm","in","pt","pc","vh","vw","ch","vmin","vmax"],ae={cn,normalizePropertyValue,normalizeDimensionValue:function normalizeDimensionValue(M,q){return normalizePropertyValue(M,ee,q||"px")}};var ie={backgroundImage(M){var q=function resolveFileURL(M){var q=$.exec(M),Z=q&&q[1]||null;return Z?Z.replace(Y,"/"):Z}(M);return q?function toFileURL(M){return M?"url(".concat(M,")"):"none"}(BackendlessUI.provideFileUrl(q)):M}},le=Object.keys(ie);function normalizeStyle(M){return M=function _objectSpread(M){for(var q=1;q {M[q]&&(M[q]=ie[q](M[q]))})),M}function cn(){for(var M=[],q=arguments.length,Z=new Array(q),F=0;F {Array.isArray(q)?M.push(...q):M.push(q)})),W()(M)||void 0}cn.mergeClasses=function(){for(var M={},q=arguments.length,Z=new Array(q),F=0;F{Object.keys(q||{}).forEach((Z=>{M[Z]=cn(M[Z],q[Z])}))})),M};var addPrefixToItems=(M,q)=>M.map((M=>M&&"".concat(M,"__").concat(q)));function enrichWithSuffix(M,q){return Array.isArray(M)?addPrefixToItems(M,q):M&&"string"==typeof M?addPrefixToItems(M.trim().split(" "),q).join(" "):""}function normalizePropertyValue(M,q,Z){if("string"!=typeof M)throw new Error("the property must be a string");Z||(Z=q[0]);var F=parseFloat(M),W=M.match(X);return W&&q.includes(W[0])?"".concat(F).concat(W):"".concat(F).concat(Z)}},35327:(M,q,Z)=>{"use strict";function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _defineProperty(M,q,Z){return q in M?Object.defineProperty(M,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):M[q]=Z,M}Z.d(q,{K:()=>DataStore});var F=Symbol("isProxy"),W=Symbol("updateAt"),$=Symbol("initedProxy"),Y=Symbol("contextProxy"),buildProxy=(M,q)=>new Proxy(M,{set:(M,Z,F)=>(M[Z]!==F&&(M[Z]=F,q.onChange&&q.onChange("set",{property:Z,value:F})),!0),get(M,Z){if(Z===F)return!0;if(Z===Y)return q;if(Z===W)return q.updateAt;var X=M[Z];if(Z===$)return X;var ee=X&&X[$];if(ee)return ee;if(X&&(Array.isArray(X)||"object"==typeof X&&X.constructor===Object)){var ae=buildProxy(X,q);return Object.defineProperty(ae,$,{value:ae}),ae}return X},deleteProperty:(M,Z)=>(Z in M&&(delete M[Z],q.onChange&&q.onChange("delete",{prop:Z})),!0)});function DataStore(M){var q={updateAt:Date.now(),listeners:[],addListener(M){this.listeners.includes(M)||this.listeners.push(M)},removeListener(M){this.listeners.includes(M)&&this.listeners.splice(this.listeners.indexOf(M),1)},onChange(M,q){this.updateAt=Date.now(),this.listeners.forEach((Z=>Z(function _objectSpread(M){for(var q=1;q!(!M||!M[F]),DataStore.getUpdatedAt=M=>M&&M[W],DataStore.getContext=M=>M&&M[Y]},17788:(M,q,Z)=>{"use strict";Z.d(q,{h:()=>isDataChanged});var F=Z(18446),W=Z.n(F);function isDataChanged(M,q,Z){if(typeof M!=typeof q)return!0;if(M===q)return!1;if(null===M||null===q)return!0;if(Array.isArray(M)&&Array.isArray(q)){if(M.length!==q.length)return!0;for(var F in M)if(isDataChanged(M[F],q[F],Z))return!0;return!1}if(!Z||!Z.length)return!W()(M,q);for(var $=0;$ {"use strict";Z.d(q,{E:()=>X});var F=new Date,W=F.toLocaleDateString(),$=F.toLocaleDateString(),Y=F.toLocaleString().replace(W,"").replace($,""),toTimestamp=M=>{var q=new Date(M);if(q.toLocaleString()===M)return q.getTime()},isValid=M=>!!toTimestamp(M),combine=(M,q)=>"".concat(M).concat(Y).concat(q),X={toTimestamp,isDateValid:M=>isValid(combine(M,$)),isTimeValid:M=>isValid(combine($,M))}},31828:(M,q,Z)=>{"use strict";Z.d(q,{N:()=>NotFoundPageError,t:()=>buildComponentError});var F=Z(16557);class NotFoundPageError extends Error{static wrap(M){throw new NotFoundPageError(M.message)}}var buildComponentError=(M,q)=>{var{handler:Z}=q,W=(0,F.Qe)(M),$=['The error occurred in the "'.concat(W,'" rendered by: ').concat(M.parent.renderCallstack),"Node UID: ".concat(M.uid)];return Z&&$.push("Handler: ".concat(Z)),$.join("\n")}},82154:(M,q,Z)=>{"use strict";Z.d(q,{v:()=>EventEmitter});class EventEmitter{constructor(){this.subsciptions={}}emit(M,q){this.subsciptions[M]&&this.subsciptions[M].forEach((M=>M(q)))}on(M,q){this.subsciptions[M]=this.subsciptions[M]||[],this.subsciptions[M].push(q)}off(M,q){this.subsciptions[M]&&(this.subsciptions[M]=q?this.subsciptions[M].filter((M=>M!==q)):[],this.subsciptions[M].length||delete this.subsciptions[M])}count(M){return this.subsciptions[M]?this.subsciptions[M].length:0}}},49561:(M,q,Z)=>{"use strict";Z.d(q,{R:()=>$});var F=Z(80504),W=Z.n(F),$={generate:M=>W()(M)}},47323:(M,q,Z)=>{"use strict";Z.d(q,{Z:()=>Y});var F=Z(5277),W=Z.n(F),$=Z(8327),Y={loadLibrary:M=>M?new Promise((q=>{W()($.j.ensureProtocol(M),(()=>{q()}))})):Promise.reject(new Error('"url" argument must be a valid url'))}},16557:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$g:()=>enrichComponentTreeWithRenderCallstack,Qe:()=>getNodeDisplayName,X0:()=>prepareNodeChildren,uC:()=>renderNodes,x5:()=>enrichComponentTreeWithParents});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8679),hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__),_string__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(78531),_uuid__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(61800),_hash_sum__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(49561);function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;q "true"===M,disabled:M=>"true"===M,readonly:M=>"true"===M,required:M=>"true"===M,raised:M=>"true"===M,unelevated:M=>"true"===M,outlined:M=>"true"===M,dense:M=>"true"===M};function prepareNode(M,q){var Z={context:M=_objectSpread({},M)};if(q.nodeType===document.TEXT_NODE)Z.text=q.wholeText,"\n"===Z.text&&(Z.text="");else if(q.nodeType===document.ELEMENT_NODE&&"SCRIPT"!==q.nodeName){var F={},W={},$={};Object.keys(q.dataset).forEach((M=>{M.startsWith("binding_")?$[M.replace("binding_","")]=q.dataset[M]:W[M]=AttrParsers[M]?AttrParsers[M](q.dataset[M]):q.dataset[M]})),q.getAttributeNames().filter((M=>{"class"===M||"style"===M||M.startsWith("data-")||(F[M]=q.getAttribute(M))})),Z.key=_uuid__WEBPACK_IMPORTED_MODULE_3__.h.short(),Z.id=F.id,Z.uid=W.uid,Z.moduleType=W.moduleType,Z.moduleId=W.moduleId,!Z.moduleId&&Z.moduleType&&(Z.moduleId=Z.moduleType,Z.moduleType="system"),Z.attrs=F,Z.style=composeNodeStyle(q),Z.data=W,Z.provideLogger=M=>!M||M()?function(){return console.log(...arguments)}:()=>null,"true"===W.dynamicListBehaviour&&(Z.dynamicListBehaviour=!0),"true"===W.dataContainer&&(Z.dataContainer=!0),"true"===W.podContainer&&(Z.podContainer=!0),(Z.podContainer||"reusable"===Z.moduleType||"custom"===Z.moduleType)&&(Z.componentPath=M.componentPath=M.componentPath?"".concat(M.componentPath,"/").concat(Z.uid):Z.uid),Z.hashSum=_hash_sum__WEBPACK_IMPORTED_MODULE_4__.R.generate(Z.componentPath||Z.uid),Z.dataBinding=$;var Y=Array.prototype.slice.apply(q.classList);if(Z.classes={root:Y.join(" ")},Z.tagName=q.tagName.toLowerCase(),"reusable"!==Z.moduleType&&"custom"!==Z.moduleType||parseNodePods(M,Z,q),Z.podContainer){var X=M.pods[Z.componentPath];Z.children=X.children,Z.podUID=X.podUID}else"reusable"===Z.moduleType?Z.children=prepareReusableComponentNodeChildren(M,Z):Z.children=prepareNodeChildren(M,q);if(Z.handlers=M.requireHandlers(Z.uid)||{},Z.moduleId){if(Z.Component=M.requireComponent(Z),"reusable"===Z.moduleType?M.resourcesManager.getReusableComponent(Z.moduleId).extendNode(Z,M):"custom"===Z.moduleType&&M.resourcesManager.getCustomComponent(Z.moduleId).extendNode(Z),!Z.Component)throw new Error('Could not find "'.concat(Z.moduleType,'" module (').concat(Z.moduleId,")"));if(Z.id||Z.dataContainer||Z.dynamicListBehaviour||Z.podContainer){var ee=Z.Component,ae=ee.displayName||ee.name||"Component";Z.dataContainer&&(ae="".concat(ae," - DataContainer")),Z.dynamicListBehaviour&&(ae="".concat(ae," - Repeater")),Z.podContainer&&(ae="".concat(ae," - POD")),Z.Component=M=>ee(M),Z.Component.displayName=Z.id?"".concat(ae,"(").concat(Z.id,")"):ae,Z.Component.WrappedComponent=ee,hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(Z.Component,ee)}if("function"==typeof Z.Component.normalize&&Z.Component.normalize(Z),"function"==typeof Z.Component.resolve&&(Z.Component=Z.Component.resolve(Z)),"function"==typeof Z.Component.getStaticClasses){var ie=Z.Component.getStaticClasses(Z);Z.staticClasses="string"==typeof ie?{root:ie}:ie}}delete Z.attrs.id,delete Z.data.uid,delete Z.data.moduleType,delete Z.data.moduleId,delete Z.data.dynamicListBehaviour,delete Z.data.dataContainer,delete Z.data.podContainer}return Z}var CSS_PROPERTIES_MAP={"overflow-y":"overflow","overflow-x":"overflow","background-repeat-y":"backgroundRepeat","background-repeat-x":"backgroundRepeat"};function composeNodeStyle(M){for(var q={},Z=0;Z renderNode(M,q,Z))):[]}function enrichComponentTreeWithParents(M){Array.isArray(M.children)?M.children.forEach((q=>{q.parent=M,enrichComponentTreeWithParents(q)})):M.children&&(M.children.parent=M,enrichComponentTreeWithParents(M.children))}var getNodeDisplayName=M=>M.Component?M.Component.displayName||M.Component.name:M.tagName;function enrichComponentTreeWithRenderCallstack(M){M.parent?M.renderCallstack=getNodeDisplayName(M)+" <- "+M.parent.renderCallstack:M.renderCallstack='Page "'.concat(M.pageName,'"'),Array.isArray(M.children)?M.children.forEach(enrichComponentTreeWithRenderCallstack):M.children&&enrichComponentTreeWithRenderCallstack(M.children)}function renderNode(M,q,Z){return q=q||{},M?M.Component?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(M.Component,_objectSpread({key:Z,node:M},q)):M.tagName?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(M.tagName,Object.assign({},M.attrs,{style:M.style,className:M.classes.root||void 0}),...renderNodes(M.children,{componentContext:q.componentContext})):M.text||null:null}function parseNodePods(M,q,Z){if(Z&&Z.childNodes&&Z.childNodes.length)for(var F=0;F {"use strict";Z.d(q,{L:()=>W});var F=Z(17563);function ownKeys(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function _objectSpread(M){for(var q=1;q "string"==typeof M?M:F.stringify(M,q),parse(M){var q=F.parse(M),Z=F.parse(M,{parseNumbers:!0,parseBooleans:!0});for(var[W,$]of Object.entries(Z))"number"==typeof $&&q[W].length!==String($).length&&(Z[W]=q[W]);return Z},excludeParams:(M,q)=>F.exclude(M,q),appendParams(M,q){var Z=_objectSpread(_objectSpread({},W.parse(M)),q);return F.stringify(Z)}}},78531:(M,q,Z)=>{"use strict";Z.d(q,{x:()=>F});var F={snakeToCamel:M=>M.replace(/(-\w)/g,(M=>M[1].toUpperCase())),capitalizeFirstLetter:M=>M.charAt(0).toUpperCase()+M.slice(1),pluralize(M,q){return 1===q?M:M+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s")}}},8327:(M,q,Z)=>{"use strict";Z.d(q,{j:()=>W});var F=Z(63999),resolveLocalProtocol=()=>!location.protocol||"https:"!==location.protocol&&"http:"!==location.protocol?"https:":location.protocol,W={ensureProtocol:M=>(M=>["https://","http://","//"].some((q=>M.startsWith(q))))(M)?M.startsWith("//")?"".concat(resolveLocalProtocol()).concat(M):M:"".concat(resolveLocalProtocol(),"//").concat(M),appendParams:(M,q)=>{var Z=(M=new URL(M)).href.split("?")[0],W=M.search,$=F.L.appendParams(W,q);return"".concat(Z,"?").concat($)}}},61800:(M,q,Z)=>{"use strict";Z.d(q,{h:()=>F});var chr4=()=>Math.random().toString(16).slice(-4),chr8=()=>"".concat(chr4()).concat(chr4()),F={micro:()=>chr4(),mini:()=>chr8(),short:()=>"".concat(chr8()).concat(chr8()).concat(chr8()).concat(chr8()),long:()=>"".concat(chr8(),"-").concat(chr4(),"-").concat(chr4(),"-").concat(chr4(),"-").concat(chr8()).concat(chr4())}},41638:(M,q)=>{var Z,F,W;window,M.exports=function(M){var q={};function r(Z){if(q[Z])return q[Z].exports;var F=q[Z]={i:Z,l:!1,exports:{}};return M[Z].call(F.exports,F,F.exports,r),F.l=!0,F.exports}return r.m=M,r.c=q,r.d=function(M,q,Z){r.o(M,q)||Object.defineProperty(M,q,{enumerable:!0,get:Z})},r.r=function(M){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},r.t=function(M,q){if(1&q&&(M=r(M)),8&q)return M;if(4&q&&"object"==typeof M&&M&&M.__esModule)return M;var Z=Object.create(null);if(r.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:M}),2&q&&"string"!=typeof M)for(var F in M)r.d(Z,F,function(q){return M[q]}.bind(null,F));return Z},r.n=function(M){var q=M&&M.__esModule?function(){return M.default}:function(){return M};return r.d(q,"a",q),q},r.o=function(M,q){return Object.prototype.hasOwnProperty.call(M,q)},r.p="",r(r.s=48)}([function(M,q){M.exports=function(M){return M&&M.__esModule?M:{default:M}},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q){M.exports=function(M,q){if(!(M instanceof q))throw new TypeError("Cannot call a class as a function")},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q){function r(M,q){for(var Z=0;Z 0&&q.push("pageSize=".concat(M.pageSize)),M.offset>0&&q.push("offset=".concat(M.offset)),Array.isArray(M.properties)&&M.properties.length&&M.properties.map((function(M){q.push("property=".concat(encodeURIComponent(M)))})),Array.isArray(M.excludeProps)&&M.excludeProps.length&&q.push("excludeProps=".concat(f(M.excludeProps))),M.where&&q.push("where=".concat(encodeURIComponent(M.where))),M.having&&q.push("having=".concat(encodeURIComponent(M.having))),M.sortBy&&q.push(Array.isArray(M.sortBy)?"sortBy=".concat(f(M.sortBy)):"sortBy=".concat(encodeURIComponent(M.sortBy))),M.groupBy&&q.push(Array.isArray(M.groupBy)?"groupBy=".concat(f(M.groupBy)):"groupBy=".concat(encodeURIComponent(M.groupBy))),Array.isArray(M.relations)&&q.push(M.relations.length?"loadRelations=".concat(f(M.relations)):"loadRelations=*"),M.relationsDepth>0&&q.push("relationsDepth=".concat(M.relationsDepth)),M.relationsPageSize>0&&q.push("relationsPageSize=".concat(M.relationsPageSize)),M.distinct&&q.push("distinct=".concat(M.distinct)),M.fileReferencePrefix&&q.push("fileReferencePrefix=".concat(encodeURIComponent(M.fileReferencePrefix))),q.join("&")}}}]),e}();function f(M){return M.map((function(M){return encodeURIComponent(M)})).join(",")}q.default=ae},function(M,q,Z){var F=Z(73);function o(q,Z,W){return"undefined"!=typeof Reflect&&Reflect.get?(M.exports=o=Reflect.get,M.exports.default=M.exports,M.exports.__esModule=!0):(M.exports=o=function(M,q,Z){var W=F(M,q);if(W){var $=Object.getOwnPropertyDescriptor(W,q);return $.get?$.get.call(Z):$.value}},M.exports.default=M.exports,M.exports.__esModule=!0),o(q,Z,W||q)}M.exports=o,M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=F(Z(26)),X=F(Z(40)),ee=F(Z(41)),ae=function(){function e(M){(0,W.default)(this,e),this.srs=M||Y.default.DEFAULT}return(0,$.default)(e,[{key:"getSRS",value:function(){return this.srs}},{key:"getGeojsonType",value:function(){}},{key:"getWktType",value:function(){}},{key:"wktCoordinatePairs",value:function(){}},{key:"jsonCoordinatePairs",value:function(){}},{key:"asGeoJSON",value:function(){return{type:this.getGeojsonType(),coordinates:this.jsonCoordinatePairs()}}},{key:"asWKT",value:function(){return this.getWktType()+"("+this.wktCoordinatePairs()+")"}},{key:"toJSON",value:function(){return this.asGeoJSON()}},{key:"toString",value:function(){return"'"+this.asWKT()+"'"}}],[{key:"fromWKT",value:function(M,q){return new ee.default(q).read(M)}},{key:"fromGeoJSON",value:function(M,q){return new X.default(q).read(M)}}]),e}();q.default=ae},function(M,q,Z){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.GeoTypes=void 0,q.GeoTypes={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon"}},function(M,q,Z){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.HiveTypes=void 0,q.HiveTypes={KEY_VALUE:"key-value",LIST:"list",MAP:"map",SET:"set",SORTED_SET:"sorted-set"}},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.HiveStore=void 0;var W=F(Z(7)),$=F(Z(8)),Y=F(Z(1)),X=F(Z(2)),ee=F(Z(4)),ae=F(Z(9));function l(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function f(M){for(var q=1;q 0&&void 0!==arguments[0]?arguments[0]:15e3;return this.cacheTTL=M,this}},{key:"resetCache",value:function(M){return M&&this.tags&&F.a.deleteByTags(this.tags),this}},{key:"type",value:function(M){return this.set("Content-Type",M),this}},{key:"unwrapBody",value:function(M){return this.unwrap=M,this}},{key:"setEncoding",value:function(M){return this.encoding=M,this}},{key:"setTimeout",value:function(M){return this.timeout=M,this}},{key:"send",value:function(M){var q=this;this.emit("request",this);var Z=this.path,W=$.a(this.queryParams);if(W&&(Z+="?"+W),this.cacheTTL){var X=F.a.get(Z);if(void 0!==X)return Promise.resolve(X)}this.headers["Content-Type"]||!Object(Y.c)(M)||Object(Y.b)(M)||this.type("application/json"),M&&(M="application/json"===this.headers["Content-Type"]&&"string"!=typeof M?JSON.stringify(M):M),u.verbose&&console.log(this.method.toUpperCase(),decodeURIComponent(Z),M,this.headers);var ee=u.send(Z,this.method.toUpperCase(),this.headers,M,this.encoding,this.timeout).then(b).then(g).then((function(M){return q.unwrap?M.body:M})).then((function(M){return q.cacheTTL&&F.a.set(Z,M,q.tags,q.cacheTTL),M})).then((function(M){return q.tags&&"get"!==q.method&&F.a.deleteByTags(q.tags),M}));return ee.then((function(M){q.emit("response",M),q.emit("done",null,M)})).catch((function(M){q.emit("error",M),q.emit("done",M)})),ee}},{key:"then",value:function(M,q){return this.promise=this.promise||this.send(this.body),this.promise.then(M,q)}},{key:"catch",value:function(M){return this.promise=this.promise||this.send(this.body),this.promise.catch(M)}}])&&p(q.prototype,Z),W&&p(q,W),Object.defineProperty(q,"prototype",{writable:!1}),u}(W.a);function b(M){try{return l(l({},M),{},{body:JSON.parse(M.body)})}catch(q){return M}}function g(M){if(M.status>=200&&M.status<300)return M;throw new X.a(M)}},function(M,q,Z){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var F=Z(4),W=Z(9),$=Z(2);Object.defineProperty($.a,"FormData",{get:function(){return"undefined"!=typeof FormData?FormData:Z(14)}}),$.a.XMLHttpRequest="undefined"!=typeof XMLHttpRequest?XMLHttpRequest:void 0,$.a.send=function(M,q,Z,Y,X,ee){return(void 0!==$.a.XMLHttpRequest?W.a:F.a)(M,q,Z,Y,X,ee)},$.a.verbose=!1,$.a.methods=["get","post","put","patch","delete"],$.a.methods.forEach((function(M){$.a[M]=function(q,Z){return new $.a(q,M,Z)}})),q.default=$.a},function(M,q,Z){"use strict";q.a=function(M,q,W,$,Y,X){return new Promise((function(ee,ae){var ie=Z(6).parse(M),le=Object(F.b)($)&&$,ce="https:"===ie.protocol,de={host:ie.hostname,port:ie.port||(ce?443:80),path:ie.pathname+(ie.search||""),method:q,headers:W,timeout:X},h=function(){var M=Z(1).Buffer,q=Z(ce?7:8).request(de,(function(q){var Z=[],F=[],W=0,$="",X=q.statusCode,ie=q.statusMessage,le=q.headers;q.on("data",(function(q){M.isBuffer(q)?q.length&&(W+=q.length,F.push(q)):Z.push(q)})),q.on("end",(function(){W?($=M.concat(F,W),null!=Y&&($=$.toString(Y))):Z.length&&($=Z.join()),ee({status:X,statusText:ie,headers:le,body:$})})),q.on("error",ae)}));if(q.on("error",ae),q.on("timeout",(function(){q.destroy(new Error("Connection aborted due to timeout"))})),$){if(Object(F.d)($))return void $.pipe(q);q.write($)}q.end()};if(le)Object.assign(de.headers,le.getHeaders()),le.getLength((function(M,q){M||isNaN(q)||(de.headers["content-length"]=q),h()}));else{if($&&!de.headers["content-length"]){var pe=Z(1).Buffer;de.headers["content-length"]=pe.byteLength($)}h()}}))};var F=Z(0)},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q,Z){"use strict";q.a=function(M,q,Z,W,$,Y){return new Promise((function(X,ee){var ae=new F.a.XMLHttpRequest;ae.timeout=Y,$||(ae.responseType="arraybuffer"),ae.open(q.toUpperCase(),M,!0),ae.onload=function(){var M,q,Z=(M=ae.getAllResponseHeaders(),q={},M?(M.split("\n").forEach((function(M){var Z=M.indexOf(":"),F=M.substr(0,Z).trim(),W=M.substr(Z+1).trim();F&&(q[F]=q[F]?q[F]+", "+W:W)})),q):q),F=ae,W={status:F.status,statusText:F.statusText,headers:Z};"utf8"===$?W.body=ae.response||ae.responseText:ae.response&&(W.body=new Uint8Array(ae.response)),X(W),ae=null},ae.onerror=function(){ee(new Error("Network Error")),ae=null},ae.ontimeout=function(){ee(new Error("Connection aborted due to timeout")),ae=null},Object.keys(Z).forEach((function(M){ae.setRequestHeader(M,Z[M])})),ae.send(W)}))};var F=Z(2)},function(M,q,Z){"use strict";function n(M,q){return function(M){if(Array.isArray(M))return M}(M)||function(M,q){var Z=null==M?null:"undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(null!=Z){var F,W,$=[],Y=!0,X=!1;try{for(Z=Z.call(M);!(Y=(F=Z.next()).done)&&($.push(F.value),!q||$.length!==q);Y=!0);}catch(M){X=!0,W=M}finally{try{Y||null==Z.return||Z.return()}finally{if(X)throw W}}return $}}(M,q)||s(M,q)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(M,q){var Z="undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(!Z){if(Array.isArray(M)||(Z=s(M))||q&&M&&"number"==typeof M.length){Z&&(M=Z);var F=0,o=function(){};return{s:o,n:function(){return F>=M.length?{done:!0}:{done:!1,value:M[F++]}},e:function(M){throw M},f:o}}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 W,$=!0,Y=!1;return{s:function(){Z=Z.call(M)},n:function(){var M=Z.next();return $=M.done,M},e:function(M){Y=!0,W=M},f:function(){try{$||null==Z.return||Z.return()}finally{if(Y)throw W}}}}function s(M,q){if(M){if("string"==typeof M)return i(M,q);var Z=Object.prototype.toString.call(M).slice(8,-1);return"Object"===Z&&M.constructor&&(Z=M.constructor.name),"Map"===Z||"Set"===Z?Array.from(M):"Arguments"===Z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z)?i(M,q):void 0}}function i(M,q){(null==q||q>M.length)&&(q=M.length);for(var Z=0,F=new Array(q);Z u())return q.value;this.map.delete(M)}}},{key:"set",value:function(M,q,Z,F){this.map.set(M,function(M,q,Z){return{value:M,tags:q,ttl:Z}}(q,Z,u()+F)),this.flushInterval&&!this.flushTimer&&(this.flushTimer=setInterval(this.flush.bind(this),this.flushInterval),this.flushTimer.unref&&this.flushTimer.unref())}},{key:"delete",value:function(M){this.map.delete(M)}},{key:"deleteAll",value:function(){var M,q=o(this.map);try{for(q.s();!(M=q.n()).done;){var Z=n(M.value,1)[0];this.delete(Z)}}catch(M){q.e(M)}finally{q.f()}}},{key:"deleteByTags",value:function(M){var q,Z=o(this.map);try{for(Z.s();!(q=Z.n()).done;){var F=n(q.value,2),W=F[0],$=F[1];$.tags&&c(M,$.tags)&&this.delete(W)}}catch(M){Z.e(M)}finally{Z.f()}}},{key:"flush",value:function(){var M,q=u(),Z=o(this.map);try{for(Z.s();!(M=Z.n()).done;){var F=n(M.value,2),W=F[0];F[1].ttl1?q-1:0),F=1;FM.length)&&(q=M.length);for(var Z=0,F=new Array(q);Z=0||Object.prototype.propertyIsEnumerable.call(M,Z)&&($[Z]=M[Z])}return $},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q){M.exports=function(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=F(Z(13)),X=F(Z(5)),ee=F(Z(6)),ae=F(Z(3));function l(M){var q=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(M){return!1}}();return function(){var Z,F=(0,ae.default)(M);if(q){var W=(0,ae.default)(this).constructor;Z=Reflect.construct(F,arguments,W)}else Z=F.apply(this,arguments);return(0,ee.default)(this,Z)}}var ie=function(M){(0,X.default)(r,M);var q=l(r);function r(M){var Z;return(0,W.default)(this,r),(Z=q.call(this)).relationModel=M,Z.relationName=null,Z}return(0,$.default)(r,[{key:"setRelationName",value:function(M){return this.relationName=M,this}},{key:"getRelationName",value:function(){return this.relationName}},{key:"setRelationModel",value:function(M){return this.relationModel=M,this}},{key:"getRelationModel",value:function(){return this.relationModel}},{key:"toJSON",value:function(){var M=(0,Y.default)((0,ae.default)(r.prototype),"toJSON",this).call(this);return M.relationName=this.getRelationName(),M.relationModel=this.getRelationModel(),M}}],[{key:"of",value:function(M){return new this(M)}}]),r}(F(Z(12)).default);q.default=ie},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(5)),$=F(Z(6)),Y=F(Z(3)),X=F(Z(1)),ee=F(Z(2));function c(M){var q=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(M){return!1}}();return function(){var Z,F=(0,Y.default)(M);if(q){var W=(0,Y.default)(this).constructor;Z=Reflect.construct(F,arguments,W)}else Z=F.apply(this,arguments);return(0,$.default)(this,Z)}}var ae="JSON_SET",ie="JSON_INSERT",le="JSON_REPLACE",ce="JSON_REMOVE",de="JSON_ARRAY_APPEND",pe="JSON_ARRAY_INSERT",fe=function(){function e(M){(0,X.default)(this,e),this.operationName=M,this.args={}}return(0,ee.default)(e,[{key:"addArgument",value:function(M,q){if(void 0===q)throw new Error("You have to specify function's second argument");return this.args[M]=q,this}},{key:"toJSON",value:function(){return this.validate(),{___operation:this.operationName,args:this.args}}},{key:"create",value:function(){return this.toJSON()}},{key:"validate",value:function(){if(!Object.keys(this.args).length)throw new Error("You have to add at least one argument")}}],[{key:"SET",value:function(){return new e(ae)}},{key:"INSERT",value:function(){return new e(ie)}},{key:"REPLACE",value:function(){return new e(le)}},{key:"REMOVE",value:function(){return new ye}},{key:"ARRAY_APPEND",value:function(){return new e(de)}},{key:"ARRAY_INSERT",value:function(){return new e(pe)}}]),e}();q.default=fe;var ye=function(M){(0,W.default)(r,M);var q=c(r);function r(){var M;return(0,X.default)(this,r),(M=q.call(this,ce)).args=[],M}return(0,ee.default)(r,[{key:"addArgument",value:function(M){return this.args.push(M),this}},{key:"validate",value:function(){if(!this.args.length)throw new Error("You have to add at least one argument")}}]),r}(fe)},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=F(Z(5)),X=F(Z(6)),ee=F(Z(3)),ae=F(Z(14));function l(M){var q=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(M){return!1}}();return function(){var Z,F=(0,ee.default)(M);if(q){var W=(0,ee.default)(this).constructor;Z=Reflect.construct(F,arguments,W)}else Z=F.apply(this,arguments);return(0,X.default)(this,Z)}}var ie=Z(15).GeoTypes.POINT,le=ie.toUpperCase(),ce=function(M){(0,Y.default)(r,M);var q=l(r);function r(M){return(0,W.default)(this,r),q.call(this,M)}return(0,$.default)(r,[{key:"lng",get:function(){return this.getLongitude()},set:function(M){this.setLongitude(M)}},{key:"lat",get:function(){return this.getLatitude()},set:function(M){this.setLatitude(M)}},{key:"getX",value:function(){return this.x}},{key:"getY",value:function(){return this.y}},{key:"getLongitude",value:function(){return this.x}},{key:"getLatitude",value:function(){return this.y}},{key:"setX",value:function(M){return this.x=M,this}},{key:"setY",value:function(M){return this.y=M,this}},{key:"setLongitude",value:function(M){return this.setX(M)}},{key:"setLatitude",value:function(M){return this.setY(M)}},{key:"getGeojsonType",value:function(){return ie}},{key:"getWktType",value:function(){return le}},{key:"wktCoordinatePairs",value:function(){return"".concat(this.x," ").concat(this.y)}},{key:"jsonCoordinatePairs",value:function(){return[this.x,this.y]}},{key:"equals",value:function(M){return this===M||M instanceof r&&Math.abs(M.x-this.x)<1e-9&&Math.abs(M.y-this.y)<1e-9&&this.srs===M.srs}}]),r}(ae.default);q.default=ce},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=F(Z(25)),X=function(){function e(M){(0,W.default)(this,e),this.srs=M}return(0,$.default)(e,[{key:"read",value:function(M){return(0,Y.default)(M,this.srs)}}]),e}();q.default=X},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=F(Z(77)),X=F(Z(25)),ee=function(){function e(M){(0,W.default)(this,e),this.srs=M}return(0,$.default)(e,[{key:"read",value:function(M){var q=(0,Y.default)(M);if(!q)throw new Error("WKT string is invalid");return(0,X.default)(q,this.srs)}}]),e}();q.default=ee},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(11)),$=F(Z(1)),Y=F(Z(2)),X=F(Z(5)),ee=F(Z(6)),ae=F(Z(3)),ie=F(Z(14)),le=F(Z(27));function p(M){var q=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(M){return!1}}();return function(){var Z,F=(0,ae.default)(M);if(q){var W=(0,ae.default)(this).constructor;Z=Reflect.construct(F,arguments,W)}else Z=F.apply(this,arguments);return(0,ee.default)(this,Z)}}var ce=Z(15).GeoTypes.POLYGON,de=ce.toUpperCase(),pe=function(M){(0,X.default)(r,M);var q=p(r);function r(M,Z,F){var W;return(0,$.default)(this,r),(W=q.call(this,F)).setBoundary(M),W.setHoles(Z),W}return(0,Y.default)(r,[{key:"getBoundary",value:function(){return this.boundary}},{key:"setBoundary",value:function(M){if(!M)throw new Error("The 'boundary' argument is required.");return M instanceof le.default||(M=new le.default(M,this.srs)),this.boundary=M,this}},{key:"getHoles",value:function(){return this.holes}},{key:"setHoles",value:function(M){return this.holes=M||[],this}},{key:"getGeojsonType",value:function(){return ce}},{key:"getWktType",value:function(){return de}},{key:"jsonCoordinatePairs",value:function(){var M=[];this.getBoundary().getPoints().forEach((function(q){M.push([q.getX(),q.getY()])}));var q=this.holes.map((function(M){return M.getPoints().map((function(M){return[M.getX(),M.getY()]}))}));return[M].concat((0,W.default)(q))}},{key:"wktCoordinatePairs",value:function(){var M=[this.getBoundary().wktCoordinatePairs()];return this.holes.forEach((function(q){return M.push(q.wktCoordinatePairs())})),M.map((function(M){return"("+M+")"})).join(",")}}]),r}(ie.default);q.default=pe},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=F(Z(4)),X="GRANT",ee="DENY",ae=function(){function e(M,q){(0,W.default)(this,e),this.permission=M,this.app=q,this.grantUser=this.backwardCompatibility("grantForUser","grantUser"),this.denyUser=this.backwardCompatibility("denyForUser","denyUser"),this.grantRole=this.backwardCompatibility("grantForRole","grantRole"),this.denyRole=this.backwardCompatibility("denyForRole","denyRole"),this.grant=this.backwardCompatibility("grantForAllUsers","grant"),this.deny=this.backwardCompatibility("denyForAllUsers","deny")}return(0,$.default)(e,[{key:"backwardCompatibility",value:function(M,q){var Z=this,F=this.constructor.BACKWARD_COMPATIBILITY_LABEL;return function(){var W='"'.concat(F,".").concat(q,'" is deprecated and will be removed in the nearest release.'),$='Please use "'.concat(F,".").concat(M,'" instead of.');return console.warn("".concat(W,"\n").concat($)),Z[M].apply(Z,arguments)}}},{key:"grantForUser",value:function(M,q){return this.sendRequest(X,q,{userId:M})}},{key:"denyForUser",value:function(M,q){return this.sendRequest(ee,q,{userId:M})}},{key:"grantForRole",value:function(M,q){return this.sendRequest(X,q,{roleName:M})}},{key:"denyForRole",value:function(M,q){return this.sendRequest(ee,q,{roleName:M})}},{key:"grantForAllUsers",value:function(M){return this.sendRequest(X,M,{userId:"*"})}},{key:"denyForAllUsers",value:function(M){return this.sendRequest(ee,M,{userId:"*"})}},{key:"grantForAllRoles",value:function(M){return this.sendRequest(X,M,{roleName:"*"})}},{key:"denyForAllRoles",value:function(M){return this.sendRequest(ee,M,{roleName:"*"})}},{key:"sendRequest",value:function(M,q,Z){var F=Z.userId,W=Z.roleName,$={permission:this.permission};return F?$.user=F:W&&($.role=W),this.app.request.put({url:this.getRequestURL(M,q),data:$})}},{key:"getRequestURL",value:function(){}}]),e}();q.default=ae,(0,Y.default)(ae,"BACKWARD_COMPATIBILITY_LABEL",null)},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.SetStore=void 0;var W=F(Z(11)),$=F(Z(1)),Y=F(Z(2)),X=F(Z(5)),ee=F(Z(6)),ae=F(Z(3)),ie=F(Z(4)),le=Z(17),ce=Z(16),de=Z(18);function h(M){var q=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(M){return!1}}();return function(){var Z,F=(0,ae.default)(M);if(q){var W=(0,ae.default)(this).constructor;Z=Reflect.construct(F,arguments,W)}else Z=F.apply(this,arguments);return(0,ee.default)(this,Z)}}var pe=function(M){(0,X.default)(r,M);var q=h(r);function r(){return(0,$.default)(this,r),q.apply(this,arguments)}return(0,Y.default)(r,[{key:"get",value:function(){return this.app.request.get({url:this.getBaseURL()})}},{key:"getRandom",value:function(M){if(void 0!==M&&(isNaN(M)||"number"!=typeof M))throw new Error("Count must be a number.");return this.app.request.get({url:"".concat(this.getBaseURL(),"/random"),query:{count:M}})}},{key:"getRandomAndDelete",value:function(M){if(void 0!==M&&(isNaN(M)||"number"!=typeof M))throw new Error("Count must be a number.");return this.app.request.put({url:"".concat(this.getBaseURL(),"/random"),query:{count:M}})}},{key:"addValue",value:function(M){if(!(0,de.isHiveValueValid)(M))throw new Error("Value must be provided and must be one of types: string, number, boolean, object, array.");return this.app.request.put({url:"".concat(this.getBaseURL(),"/add"),data:[M]})}},{key:"addValues",value:function(M){if(!(M&&Array.isArray(M)&&M.length&&(0,de.isHiveValueValid)(M)))throw new Error("Value must be provided and must be a list of valid JSON items.");return this.app.request.put({url:"".concat(this.getBaseURL(),"/add"),data:M})}},{key:"deleteValue",value:function(M){if(!(0,de.isHiveValueValid)(M))throw new Error("Value must be provided and must be one of types: string, number, boolean, object, array.");return this.app.request.delete({url:"".concat(this.getBaseURL(),"/values"),data:[M]})}},{key:"deleteValues",value:function(M){if(!(M&&Array.isArray(M)&&M.length&&(0,de.isHiveValueValid)(M)))throw new Error("Value must be provided and must be a list of valid JSON items.");return this.app.request.delete({url:"".concat(this.getBaseURL(),"/values"),data:M})}},{key:"isValueMember",value:function(M){if(!(0,de.isHiveValueValid)(M))throw new Error("Value must be provided and must be one of types: string, number, boolean, object, array.");return this.app.request.post({url:"".concat(this.getBaseURL(),"/contains"),data:[M]})}},{key:"isValuesMembers",value:function(M){if(!(M&&Array.isArray(M)&&M.length&&(0,de.isHiveValueValid)(M)))throw new Error("Value must be provided and must be a list of valid JSON items.");return this.app.request.post({url:"".concat(this.getBaseURL(),"/contains"),data:M})}},{key:"length",value:function(){return this.app.request.get({url:"".concat(this.getBaseURL(),"/length")})}}],[{key:"difference",value:function(M){if(!Array.isArray(M))throw new Error("Store keys must be provided and must be an array.");return this.app.request.post({url:"".concat(this.app.urls.hiveStore(this.hiveName,this.TYPE),"/action/difference"),data:M})}},{key:"intersection",value:function(M){if(!Array.isArray(M))throw new Error("Store keys must be provided and must be an array.");return this.app.request.post({url:"".concat(this.app.urls.hiveStore(this.hiveName,this.TYPE),"/action/intersection"),data:M})}},{key:"union",value:function(M){if(!Array.isArray(M))throw new Error("Store keys must be provided and must be an array.");return this.app.request.post({url:"".concat(this.app.urls.hiveStore(this.hiveName,this.TYPE),"/action/union"),data:M})}}]),r}(le.HiveStore);q.SetStore=pe,(0,ie.default)(pe,"TYPE",ce.HiveTypes.SET),(0,ie.default)(pe,"STATIC_METHODS",[].concat((0,W.default)(le.HiveStore.STATIC_METHODS),["difference","intersection","union"]))},function(M,q){M.exports=function(M,q,Z,F,W){var $={};return Object.keys(F).forEach((function(M){$[M]=F[M]})),$.enumerable=!!$.enumerable,$.configurable=!!$.configurable,("value"in $||$.initializer)&&($.writable=!0),$=Z.slice().reverse().reduce((function(Z,F){return F(M,q,Z)||Z}),$),W&&void 0!==$.initializer&&($.value=$.initializer?$.initializer.call(W):void 0,$.initializer=void 0),void 0===$.initializer&&(Object.defineProperty(M,q,$),$=null),$},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.OpResult=void 0;var W=F(Z(1)),$=F(Z(2)),Y=Z(28),X=Z(47),ee=function(){function e(M,q){var Z=q.operationType,F=q.table,$=q.payload;(0,W.default)(this,e),this.uow=M,this.operationType=Z,this.table=F,this.payload=$;var Y=this.uow.getOpStackName(Z,F),X=this.uow.getNextOpResultIndex(Y);this.opResultId="".concat(Y).concat(X),this.result=null}return(0,$.default)(e,[{key:"setResult",value:function(M){this.result=M}},{key:"getResult",value:function(){return this.result}},{key:"setError",value:function(M){this.error=M}},{key:"getError",value:function(){return this.error}},{key:"getType",value:function(){return this.operationType}},{key:"isFindRef",value:function(){return this.operationType===Y.OperationType.FIND}},{key:"isCollectionRef",value:function(){return this.operationType===Y.OperationType.FIND||this.operationType===Y.OperationType.CREATE_BULK}},{key:"isObjectRef",value:function(){return this.operationType===Y.OperationType.CREATE||this.operationType===Y.OperationType.UPDATE}},{key:"setOpResultId",value:function(M){return this.opResultId=M,this}},{key:"getOpResultId",value:function(){return this.opResultId}},{key:"getTableName",value:function(){return this.table}},{key:"resolveTo",value:function(M,q){return"string"==typeof M&&(q=M,M=void 0),new X.OpResultValueReference(this,{resultIndex:M,propName:q})}},{key:"toJSON",value:function(){var M={___ref:!0,opResultId:this.opResultId};return this.isObjectRef()&&(M.propName="objectId"),M}}]),e}();q.OpResult=ee},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.OpResultValueReference=void 0;var W=F(Z(1)),$=F(Z(2)),Y=function(){function e(M,q){var Z=q.resultIndex,F=q.propName;(0,W.default)(this,e),this.opResult=M,this.resultIndex=Z,this.propName=F}return(0,$.default)(e,[{key:"getTableName",value:function(){return this.opResult.getTableName()}},{key:"toJSON",value:function(){var M=this.opResult.toJSON();return void 0!==this.resultIndex&&(M.resultIndex=this.resultIndex),void 0!==this.propName&&(M.propName=this.propName),!M.propName&&this.opResult.isFindRef()&&(M.propName="objectId"),M}}]),e}();q.OpResultValueReference=Y},function(M,q,Z){"use strict";(function(F){var W=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var $=W(Z(4)),Y=W(Z(1)),X=W(Z(2)),ee=W(Z(10)),ae=W(Z(21)),ie=W(Z(49)),le=W(Z(50)),ce=W(Z(9));function d(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}var de={appId:null,apiKey:null,serverURL:"https://api.backendless.com",domain:null,apiURI:"/api",debugMode:!1,standalone:!1,XMLHttpRequest:"undefined"!=typeof XMLHttpRequest?XMLHttpRequest:void 0},pe=["appId","apiKey","domain"],fe="object"===("undefined"==typeof self?"undefined":(0,ee.default)(self))&&self.self===self&&self||"object"===(void 0===F?"undefined":(0,ee.default)(F))&&F.global===F&&F,ye=fe&&fe.Backendless,b=function(){for(var M=arguments.length,q=new Array(M),Z=0;Z=this.numOfMessages&&this.startFlushInterval()}},{key:"checkMessagesLimit",value:function(){this.messages.length>this.messagesLimit&&(this.messages=this.messages.slice(this.messages.length-this.messagesLimit))}},{key:"startFlushInterval",value:function(){var M=this;this.flushInterval||(this.flushInterval=setTimeout((function(){return M.flush()}),1e3*this.timeFrequency))}},{key:"stopFlushInterval",value:function(){this.flushInterval&&(clearTimeout(this.flushInterval),delete this.flushInterval)}},{key:"setLogReportingPolicy",value:function(M,q){void 0!==q&&this.timeFrequency!==q&&this.stopFlushInterval(),M>this.messagesLimit&&(this.messagesLimit=M),this.numOfMessages=M,this.timeFrequency=q,this.checkMessagesLen()}},{key:"setMessagesLimit",value:function(M){this.messagesLimit=M,this.checkMessagesLimit()}}]),e}();q.default=ie},function(M,q,Z){var F=function(M){"use strict";var q=Object.prototype,Z=q.hasOwnProperty,F="function"==typeof Symbol?Symbol:{},W=F.iterator||"@@iterator",$=F.asyncIterator||"@@asyncIterator",Y=F.toStringTag||"@@toStringTag";function a(M,q,Z){return Object.defineProperty(M,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}),M[q]}try{a({},"")}catch(M){a=function(M,q,Z){return M[q]=Z}}function u(M,q,Z,F){var W=q&&q.prototype instanceof f?q:f,$=Object.create(W.prototype),Y=new O(F||[]);return $._invoke=function(M,q,Z){var F="suspendedStart";return function(W,$){if("executing"===F)throw new Error("Generator is already running");if("completed"===F){if("throw"===W)throw $;return _()}for(Z.method=W,Z.arg=$;;){var Y=Z.delegate;if(Y){var ee=w(Y,Z);if(ee){if(ee===X)continue;return ee}}if("next"===Z.method)Z.sent=Z._sent=Z.arg;else if("throw"===Z.method){if("suspendedStart"===F)throw F="completed",Z.arg;Z.dispatchException(Z.arg)}else"return"===Z.method&&Z.abrupt("return",Z.arg);F="executing";var ae=c(M,q,Z);if("normal"===ae.type){if(F=Z.done?"completed":"suspendedYield",ae.arg===X)continue;return{value:ae.arg,done:Z.done}}"throw"===ae.type&&(F="completed",Z.method="throw",Z.arg=ae.arg)}}}(M,Z,Y),$}function c(M,q,Z){try{return{type:"normal",arg:M.call(q,Z)}}catch(M){return{type:"throw",arg:M}}}M.wrap=u;var X={};function f(){}function p(){}function d(){}var ee={};ee[W]=function(){return this};var ae=Object.getPrototypeOf,ie=ae&&ae(ae(S([])));ie&&ie!==q&&Z.call(ie,W)&&(ee=ie);var le=d.prototype=f.prototype=Object.create(ee);function b(M){["next","throw","return"].forEach((function(q){a(M,q,(function(M){return this._invoke(q,M)}))}))}function g(M,q){var F;this._invoke=function(W,$){function i(){return new q((function(F,Y){!function n(F,W,$,Y){var X=c(M[F],M,W);if("throw"!==X.type){var ee=X.arg,ae=ee.value;return ae&&"object"==typeof ae&&Z.call(ae,"__await")?q.resolve(ae.__await).then((function(M){n("next",M,$,Y)}),(function(M){n("throw",M,$,Y)})):q.resolve(ae).then((function(M){ee.value=M,$(ee)}),(function(M){return n("throw",M,$,Y)}))}Y(X.arg)}(W,$,F,Y)}))}return F=F?F.then(i,i):i()}}function w(M,q){var Z=M.iterator[q.method];if(void 0===Z){if(q.delegate=null,"throw"===q.method){if(M.iterator.return&&(q.method="return",q.arg=void 0,w(M,q),"throw"===q.method))return X;q.method="throw",q.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var F=c(Z,M.iterator,q.arg);if("throw"===F.type)return q.method="throw",q.arg=F.arg,q.delegate=null,X;var W=F.arg;return W?W.done?(q[M.resultName]=W.value,q.next=M.nextLoc,"return"!==q.method&&(q.method="next",q.arg=void 0),q.delegate=null,X):W:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,X)}function k(M){var q={tryLoc:M[0]};1 in M&&(q.catchLoc=M[1]),2 in M&&(q.finallyLoc=M[2],q.afterLoc=M[3]),this.tryEntries.push(q)}function E(M){var q=M.completion||{};q.type="normal",delete q.arg,M.completion=q}function O(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(k,this),this.reset(!0)}function S(M){if(M){var q=M[W];if(q)return q.call(M);if("function"==typeof M.next)return M;if(!isNaN(M.length)){var F=-1,$=function t(){for(;++F =0;--F){var W=this.tryEntries[F],$=W.completion;if("root"===W.tryLoc)return n("end");if(W.tryLoc<=this.prev){var Y=Z.call(W,"catchLoc"),X=Z.call(W,"finallyLoc");if(Y&&X){if(this.prev =0;--F){var W=this.tryEntries[F];if(W.tryLoc<=this.prev&&Z.call(W,"finallyLoc")&&this.prev =0;--q){var Z=this.tryEntries[q];if(Z.finallyLoc===M)return this.complete(Z.completion,Z.afterLoc),E(Z),X}},catch:function(M){for(var q=this.tryEntries.length-1;q>=0;--q){var Z=this.tryEntries[q];if(Z.tryLoc===M){var F=Z.completion;if("throw"===F.type){var W=F.arg;E(Z)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(M,q,Z){return this.delegate={iterator:S(M),resultName:q,nextLoc:Z},"next"===this.method&&(this.arg=void 0),X}},M}(M.exports);try{regeneratorRuntime=F}catch(M){Function("r","regeneratorRuntime = r")(F)}},function(M,q,Z){var F=Z(30);M.exports=function(M){if(Array.isArray(M))return F(M)},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q){M.exports=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.")},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=function(){function e(M,q){(0,W.default)(this,e),this.name=M,this.logging=q}return(0,$.default)(e,[{key:"debug",value:function(M){return this.logging.push(this.name,"DEBUG",M)}},{key:"info",value:function(M){return this.logging.push(this.name,"INFO",M)}},{key:"warn",value:function(M,q){return this.logging.push(this.name,"WARN",M,q)}},{key:"error",value:function(M,q){return this.logging.push(this.name,"ERROR",M,q)}},{key:"fatal",value:function(M,q){return this.logging.push(this.name,"FATAL",M,q)}},{key:"trace",value:function(M){return this.logging.push(this.name,"TRACE",M)}}]),e}();q.default=Y},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(7)),$=F(Z(8)),Y=F(Z(1)),X=F(Z(2)),ee=F(Z(57)),ae=function(){function e(M){(0,Y.default)(this,e),this.app=M}var M,q,Z,F,ae,ie,le,ce,de,pe;return(0,X.default)(e,[{key:"of",value:function(M){return new ee.default(M,this)}},{key:"list",value:(pe=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(null==M||"string"==typeof M){q.next=2;break}throw new Error("Counters Pattern can be a string only");case 2:return q.abrupt("return",this.app.request.get({url:this.app.urls.countersList(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return pe.apply(this,arguments)})},{key:"incrementAndGet",value:(de=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(M&&"string"==typeof M){q.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:return q.abrupt("return",this.app.request.put({url:this.app.urls.counterIncrementAndGet(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return de.apply(this,arguments)})},{key:"getAndIncrement",value:(ce=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(M&&"string"==typeof M){q.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:return q.abrupt("return",this.app.request.put({url:this.app.urls.counterGetAndIncrement(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return ce.apply(this,arguments)})},{key:"decrementAndGet",value:(le=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(M&&"string"==typeof M){q.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:return q.abrupt("return",this.app.request.put({url:this.app.urls.counterDecrementAndGet(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return le.apply(this,arguments)})},{key:"getAndDecrement",value:(ie=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(M&&"string"==typeof M){q.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:return q.abrupt("return",this.app.request.put({url:this.app.urls.counterGetAndDecrement(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return ie.apply(this,arguments)})},{key:"reset",value:(ae=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(M&&"string"==typeof M){q.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:return q.abrupt("return",this.app.request.put({url:this.app.urls.counterReset(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return ae.apply(this,arguments)})},{key:"get",value:(F=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(M&&"string"==typeof M){q.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:return q.abrupt("return",this.app.request.get({url:this.app.urls.counter(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return F.apply(this,arguments)})},{key:"addAndGet",value:(Z=(0,$.default)(W.default.mark((function e(M,q){return W.default.wrap((function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(M&&"string"==typeof M){Z.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:if("number"==typeof q){Z.next=4;break}throw new Error("Counter Value must be a number.");case 4:return Z.abrupt("return",this.app.request.put({url:this.app.urls.counterAddAndGet(M),query:{value:q}}));case 5:case"end":return Z.stop()}}),e,this)}))),function(M,q){return Z.apply(this,arguments)})},{key:"getAndAdd",value:(q=(0,$.default)(W.default.mark((function e(M,q){return W.default.wrap((function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(M&&"string"==typeof M){Z.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:if("number"==typeof q){Z.next=4;break}throw new Error("Counter Value must be a number.");case 4:return Z.abrupt("return",this.app.request.put({url:this.app.urls.counterGetAndAdd(M),query:{value:q}}));case 5:case"end":return Z.stop()}}),e,this)}))),function(M,Z){return q.apply(this,arguments)})},{key:"compareAndSet",value:(M=(0,$.default)(W.default.mark((function e(M,q,Z){return W.default.wrap((function(F){for(;;)switch(F.prev=F.next){case 0:if(M&&"string"==typeof M){F.next=2;break}throw new Error("Counter Name must be provided and must be a string.");case 2:if("number"==typeof q){F.next=4;break}throw new Error("Counter Expected Value must be a number.");case 4:if("number"==typeof Z){F.next=6;break}throw new Error("Counter Updated Value must be a number.");case 6:return F.abrupt("return",this.app.request.put({url:this.app.urls.counterCompareAndSet(M),query:{expected:q,updatedvalue:Z}}));case 7:case"end":return F.stop()}}),e,this)}))),function(q,Z,F){return M.apply(this,arguments)})}]),e}();q.default=ae},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=function(){function e(M,q){if((0,W.default)(this,e),!M||"string"!=typeof M)throw new Error("Counter Name must be non empty String");this.name=M,this.counters=q}return(0,$.default)(e,[{key:"incrementAndGet",value:function(){return this.counters.incrementAndGet(this.name)}},{key:"getAndIncrement",value:function(){return this.counters.getAndIncrement(this.name)}},{key:"decrementAndGet",value:function(){return this.counters.decrementAndGet(this.name)}},{key:"getAndDecrement",value:function(){return this.counters.getAndDecrement(this.name)}},{key:"reset",value:function(){return this.counters.reset(this.name)}},{key:"get",value:function(){return this.counters.get(this.name)}},{key:"addAndGet",value:function(M){return this.counters.addAndGet(this.name,M)}},{key:"getAndAdd",value:function(M){return this.counters.getAndAdd(this.name,M)}},{key:"compareAndSet",value:function(M,q){return this.counters.compareAndSet(this.name,M,q)}}]),e}();q.default=Y},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(7)),$=F(Z(8)),Y=F(Z(1)),X=F(Z(2)),ee=F(Z(9)),ae=function(){function e(M){(0,Y.default)(this,e),this.app=M,this.parsers={}}var M,q,Z,F,ae,ie;return(0,X.default)(e,[{key:"setObjectFactory",value:function(M,q){this.parsers[M]=q}},{key:"parseItem",value:function(M){var q=M&&M.___class;if(q){var Z=this.parsers[q];Z&&(M=new Z(M))}return M}},{key:"stringifyItem",value:function(M){return ee.default.isCustomClassInstance(M)&&(M.___class=M.___class||ee.default.getClassName(M)),JSON.stringify(M)}},{key:"put",value:(ie=(0,$.default)(W.default.mark((function e(M,q,Z){return W.default.wrap((function(F){for(;;)switch(F.prev=F.next){case 0:if(M&&"string"==typeof M){F.next=2;break}throw new Error("Cache Key must be provided and must be a string.");case 2:if(!Z||!("number"!=typeof Z||Z<0)){F.next=4;break}throw new Error("Cache TimeToLive must be a positive number.");case 4:return F.abrupt("return",this.app.request.put({url:this.app.urls.cacheItem(M),query:{timeout:Z},headers:{"Content-Type":"application/json"},data:this.stringifyItem(q)}));case 5:case"end":return F.stop()}}),e,this)}))),function(M,q,Z){return ie.apply(this,arguments)})},{key:"get",value:(ae=(0,$.default)(W.default.mark((function e(M){var q=this;return W.default.wrap((function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(M&&"string"==typeof M){Z.next=2;break}throw new Error("Cache Key must be provided and must be a string.");case 2:return Z.abrupt("return",this.app.request.get({url:this.app.urls.cacheItem(M)}).then((function(M){return q.parseItem(M)})));case 3:case"end":return Z.stop()}}),e,this)}))),function(M){return ae.apply(this,arguments)})},{key:"remove",value:(F=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(M&&"string"==typeof M){q.next=2;break}throw new Error("Cache Key must be provided and must be a string.");case 2:return q.abrupt("return",this.app.request.delete({url:this.app.urls.cacheItem(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return F.apply(this,arguments)})},{key:"contains",value:(Z=(0,$.default)(W.default.mark((function e(M){return W.default.wrap((function(q){for(;;)switch(q.prev=q.next){case 0:if(M&&"string"==typeof M){q.next=2;break}throw new Error("Cache Key must be provided and must be a string.");case 2:return q.abrupt("return",this.app.request.get({url:this.app.urls.cacheItemCheck(M)}));case 3:case"end":return q.stop()}}),e,this)}))),function(M){return Z.apply(this,arguments)})},{key:"expireIn",value:(q=(0,$.default)(W.default.mark((function e(M,q){return W.default.wrap((function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(M&&"string"==typeof M){Z.next=2;break}throw new Error("Cache Key must be provided and must be a string.");case 2:if(!("number"!=typeof q||q<=0)){Z.next=4;break}throw new Error("Cache Expiration must be provided and must be a number of seconds.");case 4:return Z.abrupt("return",this.app.request.put({url:this.app.urls.cacheItemExpireIn(M),query:{timeout:q},data:{}}));case 5:case"end":return Z.stop()}}),e,this)}))),function(M,Z){return q.apply(this,arguments)})},{key:"expireAt",value:(M=(0,$.default)(W.default.mark((function e(M,q){return W.default.wrap((function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(M&&"string"==typeof M){Z.next=2;break}throw new Error("Cache Key must be provided and must be a string.");case 2:if(!(q instanceof Date)){Z.next=6;break}q=q.getTime(),Z.next=8;break;case 6:if(!("number"!=typeof q||q<=0)){Z.next=8;break}throw new Error("Cache Expiration must be provided and must be a timestamp or an instance of Date.");case 8:return Z.abrupt("return",this.app.request.put({url:this.app.urls.cacheItemExpireAt(M),query:{timestamp:q},data:{}}));case 9:case"end":return Z.stop()}}),e,this)}))),function(q,Z){return M.apply(this,arguments)})}]),e}();q.default=ae},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(7)),$=F(Z(8)),Y=F(Z(1)),X=F(Z(2)),ee=function(){function e(M){(0,Y.default)(this,e),this.app=M}var M,q,Z;return(0,X.default)(e,[{key:"validatePlayPurchase",value:(Z=(0,$.default)(W.default.mark((function e(M,q,Z){return W.default.wrap((function(F){for(;;)switch(F.prev=F.next){case 0:if(M&&"string"==typeof M){F.next=2;break}throw new Error("Package Name must be provided and must be a string.");case 2:if(q&&"string"==typeof q){F.next=4;break}throw new Error("Product Id must be provided and must be a string.");case 4:if(Z&&"string"==typeof Z){F.next=6;break}throw new Error("Token must be provided and must be a string.");case 6:return F.abrupt("return",this.app.request.get({url:this.app.urls.commerceValidate(M,q,Z)}));case 7:case"end":return F.stop()}}),e,this)}))),function(M,q,F){return Z.apply(this,arguments)})},{key:"cancelPlaySubscription",value:(q=(0,$.default)(W.default.mark((function e(M,q,Z){return W.default.wrap((function(F){for(;;)switch(F.prev=F.next){case 0:if(M&&"string"==typeof M){F.next=2;break}throw new Error("Package Name must be provided and must be a string.");case 2:if(q&&"string"==typeof q){F.next=4;break}throw new Error("Subscription Id must be provided and must be a string.");case 4:if(Z&&"string"==typeof Z){F.next=6;break}throw new Error("Token must be provided and must be a string.");case 6:return F.abrupt("return",this.app.request.post({url:this.app.urls.commerceSubCancel(M,q,Z)}));case 7:case"end":return F.stop()}}),e,this)}))),function(M,Z,F){return q.apply(this,arguments)})},{key:"getPlaySubscriptionStatus",value:(M=(0,$.default)(W.default.mark((function e(M,q,Z){return W.default.wrap((function(F){for(;;)switch(F.prev=F.next){case 0:if(M&&"string"==typeof M){F.next=2;break}throw new Error("Package Name must be provided and must be a string.");case 2:if(q&&"string"==typeof q){F.next=4;break}throw new Error("Subscription Id must be provided and must be a string.");case 4:if(Z&&"string"==typeof Z){F.next=6;break}throw new Error("Token must be provided and must be a string.");case 6:return F.abrupt("return",this.app.request.get({url:this.app.urls.commerceSubStatus(M,q,Z)}));case 7:case"end":return F.stop()}}),e,this)}))),function(q,Z,F){return M.apply(this,arguments)})}]),e}();q.default=ee},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(7)),$=F(Z(4)),Y=F(Z(8)),X=F(Z(1)),ee=F(Z(2)),ae=Z(61),ie=F(Z(19)),le=F(Z(62)),ce=F(Z(63));function d(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function h(M){for(var q=1;q =0||(W[Z]=M[Z]);return W},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q,Z){"use strict";var F=Z(0);Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z(1)),$=F(Z(2)),Y=F(Z(13)),X=F(Z(5)),ee=F(Z(6)),ae=F(Z(3)),ie=Z(20);function f(M){var q=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(M){return!1}}();return function(){var Z,F=(0,ae.default)(M);if(q){var W=(0,ae.default)(this).constructor;Z=Reflect.construct(F,arguments,W)}else Z=F.apply(this,arguments);return(0,ee.default)(this,Z)}}var le="created",ce="updated",de="deleted",pe="upserted",fe="bulk-created",ye="bulk-updated",be="bulk-deleted",we="bulk-upserted",_e="add",Se="set",xe="delete",Pe=[le,ce,de,pe],Re=function(M){(0,X.default)(r,M);var q=f(r);function r(M){var Z;return(0,W.default)(this,r),(Z=q.call(this)).dataStore=M,Z.app=M.app,Z}return(0,$.default)(r,[{key:"getSubscriptionOptions",value:function(){return{tableName:this.dataStore.className}}},{key:"addCreateListener",value:function(M,q,Z){this.addChangesListener(le,M,q,Z)}},{key:"removeCreateListeners",value:function(M,q){this.removeChangesListeners(le,M,q)}},{key:"removeCreateListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeCreateListeners(void 0,M)}},{key:"addUpsertListener",value:function(M,q,Z){this.addChangesListener(pe,M,q,Z)}},{key:"removeUpsertListeners",value:function(M,q){this.removeChangesListeners(pe,M,q)}},{key:"removeUpsertListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeUpsertListeners(void 0,M)}},{key:"addUpdateListener",value:function(M,q,Z){this.addChangesListener(ce,M,q,Z)}},{key:"removeUpdateListeners",value:function(M,q){this.removeChangesListeners(ce,M,q)}},{key:"removeUpdateListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeUpdateListeners(void 0,M)}},{key:"addDeleteListener",value:function(M,q,Z){this.addChangesListener(de,M,q,Z)}},{key:"removeDeleteListeners",value:function(M,q){this.removeChangesListeners(de,M,q)}},{key:"removeDeleteListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeDeleteListeners(void 0,M)}},{key:"addBulkCreateListener",value:function(M,q,Z){this.addChangesListener(fe,M,q,Z)}},{key:"removeBulkCreateListeners",value:function(){this.removeChangesListeners(fe)}},{key:"removeBulkCreateListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeChangesListeners(fe,void 0,M)}},{key:"addBulkUpdateListener",value:function(M,q,Z){this.addChangesListener(ye,M,q,Z)}},{key:"removeBulkUpdateListeners",value:function(M,q){this.removeChangesListeners(ye,M,q)}},{key:"removeBulkUpdateListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeBulkUpdateListeners(void 0,M)}},{key:"addBulkDeleteListener",value:function(M,q,Z){this.addChangesListener(be,M,q,Z)}},{key:"removeBulkDeleteListeners",value:function(M,q){this.removeChangesListeners(be,M,q)}},{key:"removeBulkDeleteListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeBulkDeleteListeners(void 0,M)}},{key:"addBulkUpsertListener",value:function(M,q,Z){this.addChangesListener(we,M,q,Z)}},{key:"removeBulkUpsertListeners",value:function(){this.removeChangesListeners(we)}},{key:"removeBulkUpsertListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeChangesListeners(we,void 0,M)}},{key:"addSetRelationListener",value:function(M,q,Z,F){this.addRelationsChangesListener(Se,M,q,Z,F)}},{key:"removeSetRelationListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeRelationsChangesListeners(Se,void 0,M)}},{key:"removeSetRelationListeners",value:function(M,q){this.removeRelationsChangesListeners(Se,M,q)}},{key:"addAddRelationListener",value:function(M,q,Z,F){this.addRelationsChangesListener(_e,M,q,Z,F)}},{key:"removeAddRelationListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeRelationsChangesListeners(_e,void 0,M)}},{key:"removeAddRelationListeners",value:function(M,q){this.removeRelationsChangesListeners(_e,M,q)}},{key:"addDeleteRelationListener",value:function(M,q,Z,F){this.addRelationsChangesListener(xe,M,q,Z,F)}},{key:"removeDeleteRelationListener",value:function(M){if(!M||"function"!=typeof M)throw new Error("Listener Function must be passed.");this.removeRelationsChangesListeners(xe,void 0,M)}},{key:"removeDeleteRelationListeners",value:function(M,q){this.removeRelationsChangesListeners(xe,M,q)}},{key:"addChangesListener",value:function(M,q,Z,F){if("function"==typeof q&&(F=Z,Z=q,q=void 0),"function"!=typeof Z)throw new Error("Listener Function must be passed.");this.addSubscription(M,this.app.RT.subscriptions.onObjectsChanges,{callback:Z,onError:F,parser:Pe.includes(M)?this.parseObjectToInstance.bind(this):void 0,params:{event:M,whereClause:q}})}},{key:"removeChangesListeners",value:function(M,q,Z){"function"==typeof q&&(Z=q,q=void 0),this.stopSubscription(M,{matcher:function(M){var F=M.params;return q?F.whereClause===q:!Z||M.callback===Z}})}},{key:"addRelationsChangesListener",value:function(M,q,Z,F,W){if(!q||"string"!=typeof q)throw new Error("Relation Column Name must be a string.");if("function"==typeof Z&&(W=F,F=Z,Z=void 0),"function"!=typeof F)throw new Error("Listener Function must be passed.");if(Z){if(!Array.isArray(Z))throw new Error("Parent Objects must be an array");Z=Z.map((function(M){return M.objectId||M}))}this.addSubscription(M,this.app.RT.subscriptions.onRelationsChanges,{callback:F,onError:W,params:{event:M,relationColumnName:q,parentObjects:Z}})}},{key:"removeRelationsChangesListeners",value:function(M,q,Z){"function"==typeof q&&(Z=q,q=void 0),this.stopSubscription(M,{matcher:function(M){var F=M.params;return q?F.relationColumnName===q:!Z||M.callback===Z}})}},{key:"removeAllListeners",value:function(){(0,Y.default)((0,ae.default)(r.prototype),"removeAllListeners",this).call(this)}},{key:"parseObjectToInstance",value:function(M){return this.dataStore.parseResponse(M)}}]),r}(ie.RTListeners);q.default=Re},function(M,q,Z){var F=Z(3);M.exports=function(M,q){for(;!Object.prototype.hasOwnProperty.call(M,q)&&null!==(M=F(M)););return M},M.exports.default=M.exports,M.exports.__esModule=!0},function(M,q,Z){(function(q){var Z,F,W,$;self,$=()=>(()=>{var M={"./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js":M=>{M.exports=function(M,q,Z,F,W){var $={};return Object.keys(F).forEach((function(M){$[M]=F[M]})),$.enumerable=!!$.enumerable,$.configurable=!!$.configurable,("value"in $||$.initializer)&&($.writable=!0),$=Z.slice().reverse().reduce((function(Z,F){return F(M,q,Z)||Z}),$),W&&void 0!==$.initializer&&($.value=$.initializer?$.initializer.call(W):void 0,$.initializer=void 0),void 0===$.initializer&&(Object.defineProperty(M,q,$),$=null),$},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/assertThisInitialized.js":M=>{M.exports=function(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/asyncToGenerator.js":M=>{function t(M,q,Z,F,W,$,Y){try{var X=M[$](Y),ee=X.value}catch(M){return void Z(M)}X.done?q(ee):Promise.resolve(ee).then(F,W)}M.exports=function(M){return function(){var q=this,Z=arguments;return new Promise((function(F,W){var $=M.apply(q,Z);function a(M){t($,F,W,a,u,"next",M)}function u(M){t($,F,W,a,u,"throw",M)}a(void 0)}))}},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/classCallCheck.js":M=>{M.exports=function(M,q){if(!(M instanceof q))throw new TypeError("Cannot call a class as a function")},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/createClass.js":M=>{function t(M,q){for(var Z=0;Z {M.exports=function(M,q,Z){return q in M?Object.defineProperty(M,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):M[q]=Z,M},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/get.js":(M,q,Z)=>{var F=Z("./node_modules/@babel/runtime/helpers/superPropBase.js");function o(){return"undefined"!=typeof Reflect&&Reflect.get?(M.exports=o=Reflect.get.bind(),M.exports.__esModule=!0,M.exports.default=M.exports):(M.exports=o=function(M,q,Z){var W=F(M,q);if(W){var $=Object.getOwnPropertyDescriptor(W,q);return $.get?$.get.call(arguments.length<3?M:Z):$.value}},M.exports.__esModule=!0,M.exports.default=M.exports),o.apply(this,arguments)}M.exports=o,M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/getPrototypeOf.js":M=>{function t(q){return M.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},M.exports.__esModule=!0,M.exports.default=M.exports,t(q)}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/inherits.js":(M,q,Z)=>{var F=Z("./node_modules/@babel/runtime/helpers/setPrototypeOf.js");M.exports=function(M,q){if("function"!=typeof q&&null!==q)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(q&&q.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),q&&F(M,q)},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":M=>{M.exports=function(M){return M&&M.__esModule?M:{default:M}},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":(M,q,Z)=>{var F=Z("./node_modules/@babel/runtime/helpers/typeof.js").default,W=Z("./node_modules/@babel/runtime/helpers/assertThisInitialized.js");M.exports=function(M,q){if(q&&("object"===F(q)||"function"==typeof q))return q;if(void 0!==q)throw new TypeError("Derived constructors may only return object or undefined");return W(M)},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":(M,q,Z)=>{var F=Z("./node_modules/@babel/runtime/helpers/typeof.js").default;function o(){"use strict";M.exports=o=function(){return q},M.exports.__esModule=!0,M.exports.default=M.exports;var q={},Z=Object.prototype,W=Z.hasOwnProperty,$="function"==typeof Symbol?Symbol:{},Y=$.iterator||"@@iterator",X=$.asyncIterator||"@@asyncIterator",ee=$.toStringTag||"@@toStringTag";function l(M,q,Z){return Object.defineProperty(M,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}),M[q]}try{l({},"")}catch(M){l=function(M,q,Z){return M[q]=Z}}function f(M,q,Z,F){var W=q&&q.prototype instanceof h?q:h,$=Object.create(W.prototype),Y=new R(F||[]);return $._invoke=function(M,q,Z){var F="suspendedStart";return function(W,$){if("executing"===F)throw new Error("Generator is already running");if("completed"===F){if("throw"===W)throw $;return{value:void 0,done:!0}}for(Z.method=W,Z.arg=$;;){var Y=Z.delegate;if(Y){var X=O(Y,Z);if(X){if(X===ae)continue;return X}}if("next"===Z.method)Z.sent=Z._sent=Z.arg;else if("throw"===Z.method){if("suspendedStart"===F)throw F="completed",Z.arg;Z.dispatchException(Z.arg)}else"return"===Z.method&&Z.abrupt("return",Z.arg);F="executing";var ee=p(M,q,Z);if("normal"===ee.type){if(F=Z.done?"completed":"suspendedYield",ee.arg===ae)continue;return{value:ee.arg,done:Z.done}}"throw"===ee.type&&(F="completed",Z.method="throw",Z.arg=ee.arg)}}}(M,Z,Y),$}function p(M,q,Z){try{return{type:"normal",arg:M.call(q,Z)}}catch(M){return{type:"throw",arg:M}}}q.wrap=f;var ae={};function h(){}function y(){}function v(){}var ie={};l(ie,Y,(function(){return this}));var le=Object.getPrototypeOf,ce=le&&le(le(x([])));ce&&ce!==Z&&W.call(ce,Y)&&(ie=ce);var de=v.prototype=h.prototype=Object.create(ie);function k(M){["next","throw","return"].forEach((function(q){l(M,q,(function(M){return this._invoke(q,M)}))}))}function E(M,q){var Z;this._invoke=function($,Y){function a(){return new q((function(Z,X){!function r(Z,$,Y,X){var ee=p(M[Z],M,$);if("throw"!==ee.type){var ae=ee.arg,ie=ae.value;return ie&&"object"==F(ie)&&W.call(ie,"__await")?q.resolve(ie.__await).then((function(M){r("next",M,Y,X)}),(function(M){r("throw",M,Y,X)})):q.resolve(ie).then((function(M){ae.value=M,Y(ae)}),(function(M){return r("throw",M,Y,X)}))}X(ee.arg)}($,Y,Z,X)}))}return Z=Z?Z.then(a,a):a()}}function O(M,q){var Z=M.iterator[q.method];if(void 0===Z){if(q.delegate=null,"throw"===q.method){if(M.iterator.return&&(q.method="return",q.arg=void 0,O(M,q),"throw"===q.method))return ae;q.method="throw",q.arg=new TypeError("The iterator does not provide a 'throw' method")}return ae}var F=p(Z,M.iterator,q.arg);if("throw"===F.type)return q.method="throw",q.arg=F.arg,q.delegate=null,ae;var W=F.arg;return W?W.done?(q[M.resultName]=W.value,q.next=M.nextLoc,"return"!==q.method&&(q.method="next",q.arg=void 0),q.delegate=null,ae):W:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,ae)}function S(M){var q={tryLoc:M[0]};1 in M&&(q.catchLoc=M[1]),2 in M&&(q.finallyLoc=M[2],q.afterLoc=M[3]),this.tryEntries.push(q)}function _(M){var q=M.completion||{};q.type="normal",delete q.arg,M.completion=q}function R(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(S,this),this.reset(!0)}function x(M){if(M){var q=M[Y];if(q)return q.call(M);if("function"==typeof M.next)return M;if(!isNaN(M.length)){var Z=-1,F=function t(){for(;++Z =0;--Z){var F=this.tryEntries[Z],$=F.completion;if("root"===F.tryLoc)return r("end");if(F.tryLoc<=this.prev){var Y=W.call(F,"catchLoc"),X=W.call(F,"finallyLoc");if(Y&&X){if(this.prev =0;--Z){var F=this.tryEntries[Z];if(F.tryLoc<=this.prev&&W.call(F,"finallyLoc")&&this.prev =0;--q){var Z=this.tryEntries[q];if(Z.finallyLoc===M)return this.complete(Z.completion,Z.afterLoc),_(Z),ae}},catch:function(M){for(var q=this.tryEntries.length-1;q>=0;--q){var Z=this.tryEntries[q];if(Z.tryLoc===M){var F=Z.completion;if("throw"===F.type){var W=F.arg;_(Z)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(M,q,Z){return this.delegate={iterator:x(M),resultName:q,nextLoc:Z},"next"===this.method&&(this.arg=void 0),ae}},q}M.exports=o,M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":M=>{function t(q,Z){return M.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(M,q){return M.__proto__=q,M},M.exports.__esModule=!0,M.exports.default=M.exports,t(q,Z)}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/superPropBase.js":(M,q,Z)=>{var F=Z("./node_modules/@babel/runtime/helpers/getPrototypeOf.js");M.exports=function(M,q){for(;!Object.prototype.hasOwnProperty.call(M,q)&&null!==(M=F(M)););return M},M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/helpers/typeof.js":M=>{function t(q){return M.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},M.exports.__esModule=!0,M.exports.default=M.exports,t(q)}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},"./node_modules/@babel/runtime/regenerator/index.js":(M,q,Z)=>{const F=Z("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();M.exports=F;try{regeneratorRuntime=F}catch(M){"object"==typeof globalThis?globalThis.regeneratorRuntime=F:Function("r","regeneratorRuntime = r")(F)}},"./node_modules/after/index.js":M=>{function t(){}M.exports=function(M,q,Z){var F=!1;return Z=Z||t,s.count=M,0===M?q():s;function s(M,W){if(s.count<=0)throw new Error("after called too many times");--s.count,M?(F=!0,q(M),q=Z):0!==s.count||F||q(null,W)}}},"./node_modules/arraybuffer.slice/index.js":M=>{M.exports=function(M,q,Z){var F=M.byteLength;if(q=q||0,Z=Z||F,M.slice)return M.slice(q,Z);if(q<0&&(q+=F),Z<0&&(Z+=F),Z>F&&(Z=F),q>=F||q>=Z||0===F)return new ArrayBuffer(0);for(var W=new Uint8Array(M),$=new Uint8Array(Z-q),Y=q,X=0;Y {"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z("./node_modules/@babel/runtime/helpers/classCallCheck.js")),$=F(Z("./node_modules/@babel/runtime/helpers/createClass.js")),Y=F(Z("./node_modules/@babel/runtime/helpers/defineProperty.js")),X=Z("./src/constants.js"),ee=F(Z("./src/config.js")),ae=F(Z("./src/subscriptions.js")),ie=F(Z("./src/methods.js")),le=F(Z("./src/session.js")),ce=[X.NativeSocketEvents.CONNECTING,X.NativeSocketEvents.CONNECT,X.NativeSocketEvents.CONNECT_ERROR,X.NativeSocketEvents.DISCONNECT,X.NativeSocketEvents.RECONNECT_ATTEMPT],de=function(){function e(M){var q=this;(0,W.default)(this,e),(0,Y.default)(this,"onConnectError",(function(){q.subscriptions.hasActivity()||q.methods.hasActivity()||(q.disconnect("There are no active subscriptions and methods"),q.connectible=!0)})),(0,Y.default)(this,"connectOnMethod",(function(M){return function(){for(var Z=arguments.length,F=new Array(Z),W=0;W 1?Z-1:0),W=1;W {"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z("./node_modules/@babel/runtime/regenerator/index.js")),$=F(Z("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),Y=F(Z("./node_modules/@babel/runtime/helpers/classCallCheck.js")),X=F(Z("./node_modules/@babel/runtime/helpers/createClass.js")),ee=F(Z("./node_modules/@babel/runtime/helpers/typeof.js")),ae=F(Z("./node_modules/backendless-request/dist/backendless-request.js")),l=function(M){return void 0===M},f=function(M){return"string"==typeof M},p=function(M){return"function"==typeof M},d=function(M){return"object"===(0,ee.default)(M)&&null!==M},ie=function(){function e(M){(0,Y.default)(this,e),this.appId=null,this.lookupPath=null,this.lookupHeaders={},this.debugMode=!1,this.connectQuery={},this.socketConfigTransform=null,this.socketConfig=null,this.set(M)}var M;return(0,X.default)(e,[{key:"set",value:function(M){if(M){if(!l(M.appId)){if(!f(M.appId))throw new Error('"appId" must be String.');this.appId=M.appId}if(!l(M.lookupPath)){if(!f(M.lookupPath))throw new Error('"lookupPath" must be String.');this.lookupPath=M.lookupPath}if(!l(M.lookupHeaders)){if(!d(M.lookupHeaders))throw new Error('"lookupHeaders" must be Object.');this.lookupHeaders=M.lookupHeaders}if(l(M.debugMode)||(this.debugMode=!!M.debugMode),!l(M.connectQuery))if(p(M.connectQuery))this.getConnectQuery=M.connectQuery;else{if(!d(M.connectQuery))throw new Error('"connectQuery" must be Function or Object.');this.connectQuery=M.connectQuery}if(!l(M.socketConfigTransform)){if(!p(M.socketConfigTransform))throw new Error('"socketConfigTransform" must be Function.');this.socketConfigTransform=M.socketConfigTransform}}}},{key:"getConnectQuery",value:function(){return this.connectQuery}},{key:"prepare",value:(M=(0,$.default)(W.default.mark((function e(){var M,q,Z,F,$;return W.default.wrap((function(W){for(;;)switch(W.prev=W.next){case 0:if(f(this.lookupPath)){W.next=2;break}throw new Error("lookupPath must be String");case 2:return W.next=4,ae.default.get(this.lookupPath).set(this.lookupHeaders);case 4:if(M=W.sent,q=this.appId?"".concat(M,"/").concat(this.appId):M,Z=this.appId?"/".concat(this.appId):void 0,F=this.getConnectQuery(),this.socketConfig={host:M,url:q,options:{path:Z,query:F,forceNew:!0,autoConnect:!1,reconnection:!1}},!this.socketConfigTransform){W.next=14;break}return W.next=12,this.socketConfigTransform(this.socketConfig);case 12:($=W.sent)&&(this.socketConfig=$);case 14:case"end":return W.stop()}}),e,this)}))),function(){return M.apply(this,arguments)})},{key:"getSocketConfig",value:function(){return this.socketConfig}}]),e}();q.default=ie},"./src/constants.js":(M,q)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.RTSubscriptionTypes=q.RTSocketEvents=q.RTMethodTypes=q.NativeSocketEvents=void 0,q.NativeSocketEvents={CONNECTING:"connecting",CONNECT:"connect",CONNECT_ERROR:"connect_error",CONNECT_TIMEOUT:"connect_timeout",DISCONNECT:"disconnect",RECONNECT:"reconnect",RECONNECT_ATTEMPT:"reconnect_attempt",RECONNECTING:"reconnecting",RECONNECT_ERROR:"reconnect_error",RECONNECT_FAILED:"reconnect_failed",ERROR:"error",PING:"ping",PONG:"pong"},q.RTSocketEvents={SUB_ON:"SUB_ON",SUB_OFF:"SUB_OFF",SUB_RES:"SUB_RES",SUB_READY:"SUB_READY",MET_REQ:"MET_REQ",MET_RES:"MET_RES"},q.RTSubscriptionTypes={OBJECTS_CHANGES:"OBJECTS_CHANGES",RELATIONS_CHANGES:"RELATIONS_CHANGES",PUB_SUB_CONNECT:"PUB_SUB_CONNECT",PUB_SUB_MESSAGES:"PUB_SUB_MESSAGES",PUB_SUB_COMMANDS:"PUB_SUB_COMMANDS",PUB_SUB_USERS:"PUB_SUB_USERS",RSO_CONNECT:"RSO_CONNECT",RSO_CHANGES:"RSO_CHANGES",RSO_CLEARED:"RSO_CLEARED",RSO_COMMANDS:"RSO_COMMANDS",RSO_INVOKE:"RSO_INVOKE",RSO_USERS:"RSO_USERS",LOGGING_MESSAGES:"LOGGING_MESSAGES",CONSOLE_MESSAGES:"CONSOLE_MESSAGES",DEVELOPER_MESSAGES:"DEVELOPER_MESSAGES"},q.RTMethodTypes={SET_USER_TOKEN:"SET_USER_TOKEN",RSO_GET:"RSO_GET",RSO_SET:"RSO_SET",RSO_CLEAR:"RSO_CLEAR",RSO_COMMAND:"RSO_COMMAND",RSO_INVOKE:"RSO_INVOKE",PUB_SUB_COMMAND:"PUB_SUB_COMMAND"}},"./src/index.js":(M,q,Z)=>{"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=q.RTScopeConnector=q.RTListeners=void 0;var W=F(Z("./node_modules/@babel/runtime/helpers/typeof.js")),$=F(Z("./node_modules/backendless-request/dist/backendless-request.js")),Y=F(Z("./src/client.js")),X=F(Z("./src/listeners.js")),ee=F(Z("./src/scope-connector.js")),ae="object"===("undefined"==typeof self?"undefined":(0,W.default)(self))&&self.self===self&&self||"object"===(void 0===Z.g?"undefined":(0,W.default)(Z.g))&&Z.g.global===Z.g&&Z.g;Y.default.Request=$.default,Y.default.Listeners=X.default,Y.default.ScopeConnector=ee.default,ae&&(ae.BackendlessRTClient=Y.default),M.exports=Y.default;var ie=Y.default;q.default=ie;var le=X.default;q.RTListeners=le;var ce=ee.default;q.RTScopeConnector=ce},"./src/listeners.js":(M,q,Z)=>{"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z("./node_modules/@babel/runtime/helpers/defineProperty.js")),$=F(Z("./node_modules/@babel/runtime/helpers/classCallCheck.js")),Y=F(Z("./node_modules/@babel/runtime/helpers/createClass.js"));function a(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function u(M){for(var q=1;q 1?q-1:0),F=1;F {"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z("./node_modules/@babel/runtime/helpers/classCallCheck.js")),$=F(Z("./node_modules/@babel/runtime/helpers/createClass.js")),Y=F(Z("./node_modules/@babel/runtime/helpers/defineProperty.js")),X=Z("./src/constants.js"),ee=F(Z("./src/utils.js")),c=function(M){return function(q){return this.send(M,q)}},ae=function(){function e(M){var q=this,Z=M.onMessage,F=M.emitMessage;(0,W.default)(this,e),(0,Y.default)(this,"sendRequest",(function(M){q.invocations[M]&&q.emitMessage(X.RTSocketEvents.MET_REQ,q.invocations[M].data)})),(0,Y.default)(this,"onResponse",(function(M){var Z=M.id,F=M.error,W=M.result;if(q.invocations[Z]){var $=q.invocations[Z];F?$.reject(F):$.resolve(W),delete q.invocations[Z]}})),(0,Y.default)(this,"setUserToken",c(X.RTMethodTypes.SET_USER_TOKEN).bind(this)),(0,Y.default)(this,"sendPubSubCommand",c(X.RTMethodTypes.PUB_SUB_COMMAND).bind(this)),(0,Y.default)(this,"getRSO",c(X.RTMethodTypes.RSO_GET).bind(this)),(0,Y.default)(this,"setRSO",c(X.RTMethodTypes.RSO_SET).bind(this)),(0,Y.default)(this,"clearRSO",c(X.RTMethodTypes.RSO_CLEAR).bind(this)),(0,Y.default)(this,"sendRSOCommand",c(X.RTMethodTypes.RSO_COMMAND).bind(this)),(0,Y.default)(this,"invokeRSOMethod",c(X.RTMethodTypes.RSO_INVOKE).bind(this)),this.onMessage=Z,this.emitMessage=F,this.invocations={}}return(0,$.default)(e,[{key:"initialize",value:function(){this.onMessage(X.RTSocketEvents.MET_RES,this.onResponse)}},{key:"restore",value:function(){var M=this;Object.keys(this.invocations).forEach((function(q){M.sendRequest(q)}))}},{key:"stop",value:function(){}},{key:"reset",value:function(){this.invocations={}}},{key:"hasActivity",value:function(){return!!Object.keys(this.invocations).length}},{key:"send",value:function(M,q){var Z=this,F=ee.default.generateUID();return this.invocations[F]={data:{id:F,name:M,options:q}},this.sendRequest(F),new Promise((function(M,q){Z.invocations[F].resolve=M,Z.invocations[F].reject=q}))}}]),e}();q.default=ae},"./src/scope-connector.js":(M,q,Z)=>{"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W,$,Y,X,ee,ae,ie,le=F(Z("./node_modules/@babel/runtime/helpers/classCallCheck.js")),ce=F(Z("./node_modules/@babel/runtime/helpers/createClass.js")),de=F(Z("./node_modules/@babel/runtime/helpers/get.js")),pe=F(Z("./node_modules/@babel/runtime/helpers/inherits.js")),fe=F(Z("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),ye=F(Z("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),be=F(Z("./node_modules/@babel/runtime/helpers/defineProperty.js")),we=F(Z("./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js")),_e=F(Z("./src/listeners.js"));function w(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function k(M){for(var q=1;q{"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z("./node_modules/@babel/runtime/helpers/classCallCheck.js")),$=F(Z("./node_modules/@babel/runtime/helpers/createClass.js")),Y=Z("./src/constants.js"),X=F(Z("./src/socket.js")),ee=function(){function e(M,q,Z){(0,W.default)(this,e),this.config=M,this.dispatch=q,this.onDisconnect=Z,this.connectAttempt=0,this.socketPromise=this.connect()}return(0,$.default)(e,[{key:"terminate",value:function(){this.terminated||(this.terminated=!0,this.dispatch=function(){},this.socketPromise.then((function(M){M&&M.close()})))}},{key:"getSocket",value:function(){var M=this;return this.socketPromise.then((function(q){return M.terminated?new Promise((function(){})):q}))}},{key:"connect",value:function(){var M=this;if(!this.terminated){this.connectAttempt=this.connectAttempt+1;var q=this.getNextReconnectionTimeout();return this.onConnecting(),this.connectAttempt>1&&this.onReconnectAttempt(this.connectAttempt-1,q),X.default.connect(this.config,this.onSocketDisconnect.bind(this)).then((function(q){return M.connectAttempt=0,M.onConnect(),q})).catch((function(Z){if(M.onConnectError(Z),!M.terminated)return(F=q,new Promise((function(M){return setTimeout(M,F)}))).then((function(){return M.connect()}));var F}))}}},{key:"getNextReconnectionTimeout",value:function(){var M=Math.ceil(this.connectAttempt/10),q=200*Math.pow(2,M);return Math.min(q,6e4)}},{key:"onSocketDisconnect",value:function(M){this.dispatch(Y.NativeSocketEvents.DISCONNECT,M),this.terminated||(this.terminate(),this.onDisconnect())}},{key:"onConnecting",value:function(){this.dispatch(Y.NativeSocketEvents.CONNECTING)}},{key:"onConnect",value:function(){this.dispatch(Y.NativeSocketEvents.CONNECT)}},{key:"onConnectError",value:function(M){this.dispatch(Y.NativeSocketEvents.CONNECT_ERROR,M&&M.message||M)}},{key:"onReconnectAttempt",value:function(M,q){this.dispatch(Y.NativeSocketEvents.RECONNECT_ATTEMPT,M,q)}}]),e}();q.default=ee},"./src/socket-parser.js":(M,q,Z)=>{"use strict";var F=Z("./node_modules/component-emitter/index.js");function o(){}function s(M){var Z=""+M.type;return q.BINARY_EVENT!==M.type&&q.BINARY_ACK!==M.type||(Z+=M.attachments+"-"),M.nsp&&"/"!==M.nsp&&(Z+=M.nsp+","),null!=M.id&&(Z+=M.id),null!=M.data&&(Z+=JSON.stringify(M.data)),Z}function i(){}function a(){return{type:q.ERROR,data:"parser error"}}q.protocol=4,q.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],q.CONNECT=0,q.DISCONNECT=1,q.EVENT=2,q.ACK=3,q.ERROR=4,q.BINARY_EVENT=5,q.BINARY_ACK=6,q.Encoder=o,q.Decoder=i,o.prototype.encode=function(M,q){q([s(M)])},F(i.prototype),i.prototype.add=function(M){if("string"!=typeof M)throw new Error("Unknown type: "+M);this.emit("decoded",function(M){var Z=0,F={type:Number(M.charAt(0))};if(null==q.types[F.type])return a();if(q.BINARY_EVENT===F.type||q.BINARY_ACK===F.type){for(var W="";"-"!==M.charAt(++Z)&&(W+=M.charAt(Z),Z!=M.length););if(W!=Number(W)||"-"!==M.charAt(Z))throw new Error("Illegal attachments");F.attachments=Number(W)}if("/"===M.charAt(Z+1))for(F.nsp="";++Z&&","!==(Y=M.charAt(Z))&&(F.nsp+=Y,Z!==M.length););else F.nsp="/";var $=M.charAt(Z+1);if(""!==$&&Number($)==$){for(F.id="";++Z;){var Y;if(null==(Y=M.charAt(Z))||Number(Y)!=Y){--Z;break}if(F.id+=M.charAt(Z),Z===M.length)break}F.id=Number(F.id)}return M.charAt(++Z)&&(F=function(M,q){try{M.data=JSON.parse(q)}catch(M){return a()}return M}(F,M.substr(Z))),F}(M))},i.prototype.destroy=function(){}},"./src/socket.js":(M,q,Z)=>{"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z("./node_modules/@babel/runtime/helpers/classCallCheck.js")),$=F(Z("./node_modules/@babel/runtime/helpers/createClass.js")),Y=Z("./src/constants.js"),X=function(){function e(M,q){(0,W.default)(this,e);var F=Z("./node_modules/socket.io-client/lib/index.js");this.config=M,this.events={};var $=M.getSocketConfig(),Y=$.url,X=$.options;this.ioSocket=F(Y,X)}return(0,$.default)(e,[{key:"connect",value:function(){this.ioSocket.connect()}},{key:"close",value:function(){this.log("log","close socket"),this.events={},this.ioSocket.off(),this.ioSocket.close()}},{key:"on",value:function(M,q){var Z=this;this.events[M]||this.ioSocket.on(M,(function(q){return Z.onEvent(M,q)})),this.events[M]=this.events[M]||[],this.events[M].push(q)}},{key:"off",value:function(M,q){this.events[M]=q?this.events[M].filter((function(M){return M!==q})):[],this.events[M].length||delete this.events[M],this.events[M]||this.ioSocket.off(M)}},{key:"onEvent",value:function(M,q){this.logMessage("FROM SERVER",M,q),this.events[M]&&this.events[M].forEach((function(M){return M(q)}))}},{key:"emit",value:function(M,q){this.logMessage("TO SERVER",M,q),this.ioSocket.emit(M,q)}},{key:"log",value:function(M){if(this.config.debugMode){for(var q,Z=arguments.length,F=new Array(Z>1?Z-1:0),W=1;W {"use strict";var F=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var W=F(Z("./node_modules/@babel/runtime/helpers/classCallCheck.js")),$=F(Z("./node_modules/@babel/runtime/helpers/createClass.js")),Y=F(Z("./node_modules/@babel/runtime/helpers/defineProperty.js")),X=Z("./src/constants.js"),ee=F(Z("./src/utils.js")),c=function(M){return function(q,Z){return this.subscribe(M,q,Z)}},ae=function(){function e(M){var q=M.onMessage,Z=M.emitMessage;(0,W.default)(this,e),(0,Y.default)(this,"onObjectsChanges",c(X.RTSubscriptionTypes.OBJECTS_CHANGES).bind(this)),(0,Y.default)(this,"onRelationsChanges",c(X.RTSubscriptionTypes.RELATIONS_CHANGES).bind(this)),(0,Y.default)(this,"connectToPubSub",c(X.RTSubscriptionTypes.PUB_SUB_CONNECT).bind(this)),(0,Y.default)(this,"onPubSubMessage",c(X.RTSubscriptionTypes.PUB_SUB_MESSAGES).bind(this)),(0,Y.default)(this,"onPubSubCommand",c(X.RTSubscriptionTypes.PUB_SUB_COMMANDS).bind(this)),(0,Y.default)(this,"onPubSubUserStatus",c(X.RTSubscriptionTypes.PUB_SUB_USERS).bind(this)),(0,Y.default)(this,"connectToRSO",c(X.RTSubscriptionTypes.RSO_CONNECT).bind(this)),(0,Y.default)(this,"onRSOChanges",c(X.RTSubscriptionTypes.RSO_CHANGES).bind(this)),(0,Y.default)(this,"onRSOClear",c(X.RTSubscriptionTypes.RSO_CLEARED).bind(this)),(0,Y.default)(this,"onRSOCommand",c(X.RTSubscriptionTypes.RSO_COMMANDS).bind(this)),(0,Y.default)(this,"onRSOInvoke",c(X.RTSubscriptionTypes.RSO_INVOKE).bind(this)),(0,Y.default)(this,"onRSOUserStatus",c(X.RTSubscriptionTypes.RSO_USERS).bind(this)),(0,Y.default)(this,"onLoggingMessages",c(X.RTSubscriptionTypes.LOGGING_MESSAGES).bind(this)),(0,Y.default)(this,"onConsoleMessages",c(X.RTSubscriptionTypes.CONSOLE_MESSAGES).bind(this)),(0,Y.default)(this,"onDeveloperMessage",c(X.RTSubscriptionTypes.DEVELOPER_MESSAGES).bind(this)),this.onMessage=q,this.emitMessage=Z,this.subscriptions={}}return(0,$.default)(e,[{key:"initialize",value:function(){var M=this;this.onMessage(X.RTSocketEvents.SUB_READY,(function(q){return M.onSubscriptionReady(q)})),this.onMessage(X.RTSocketEvents.SUB_RES,(function(q){return M.onSubscriptionResponse(q)}))}},{key:"stop",value:function(){var M=this;Object.keys(this.subscriptions).forEach((function(q){M.subscriptions[q].ready=!1}))}},{key:"reset",value:function(){var M=this;Object.keys(this.subscriptions).forEach((function(q){return M.stopSubscription(q)}))}},{key:"restore",value:function(){var M=this;Object.keys(this.subscriptions).forEach((function(q){M.startSubscription(q)}))}},{key:"hasActivity",value:function(){return!!Object.keys(this.subscriptions).length}},{key:"subscribe",value:function(M,q,Z){var F=this,W=Z.parser,$=Z.onData,Y=Z.onError,X=Z.onStop,ae=Z.onReady,ie=ee.default.generateUID();return this.subscriptions[ie]={data:{id:ie,name:M,options:q},ready:!1,parser:W,onData:$,onError:Y,onStop:X,onReady:ae},this.startSubscription(ie),{isReady:function(){return!!F.subscriptions[ie]&&F.subscriptions[ie].ready},stop:function(){F.subscriptions[ie]&&F.offSubscription(ie)}}}},{key:"startSubscription",value:function(M){var q=this.subscriptions[M];this.emitMessage(X.RTSocketEvents.SUB_ON,q.data)}},{key:"stopSubscription",value:function(M){var q=this.subscriptions[M];q&&(q.onStop&&q.onStop(),delete this.subscriptions[M])}},{key:"offSubscription",value:function(M){this.subscriptions[M]&&(this.emitMessage(X.RTSocketEvents.SUB_OFF,{id:M}),this.stopSubscription(M))}},{key:"onSubscriptionReady",value:function(M){var q=M.id,Z=this.subscriptions[q];Z&&!Z.ready&&(Z.ready=!0,Z.onReady&&Z.onReady())}},{key:"onSubscriptionResponse",value:function(M){var q=M.id,Z=M.data,F=M.error,W=this.subscriptions[q];W&&(F?(W.onError&&W.onError(F),this.stopSubscription(q)):(W.ready||(W.ready=!0,W.onReady&&W.onReady()),W.onData&&("function"==typeof W.parser&&(Z=W.parser(Z)),W.onData(Z))))}}]),e}();q.default=ae},"./src/utils.js":(M,q)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",F={generateUID:function(){for(var M="",q=0;q<8;q++)M+=Z.charAt(Math.floor(Math.random()*Z.length));return M+Date.now()}};q.default=F},"./node_modules/backendless-request/dist/backendless-request.js":function(M,q){var $;"undefined"!=typeof self&&self,$=function(){return function(M){var q={};function r(Z){if(q[Z])return q[Z].exports;var F=q[Z]={i:Z,l:!1,exports:{}};return M[Z].call(F.exports,F,F.exports,r),F.l=!0,F.exports}return r.m=M,r.c=q,r.d=function(M,q,Z){r.o(M,q)||Object.defineProperty(M,q,{configurable:!1,enumerable:!0,get:Z})},r.n=function(M){var q=M&&M.__esModule?function(){return M.default}:function(){return M};return r.d(q,"a",q),q},r.o=function(M,q){return Object.prototype.hasOwnProperty.call(M,q)},r.p="",r(r.s=3)}([function(M,q,Z){"use strict";function n(M){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(M)}Object.defineProperty(q,"__esModule",{value:!0}),q.isStream=q.isObject=q.isFormData=q.castArray=void 0,q.castArray=function(M){return Array.isArray(M)?M:[M]},q.isObject=function(M){return null!=M&&"object"===n(M)},q.isFormData=function(M){return M&&M.constructor&&0===M.constructor.toString().trim().indexOf("function FormData")},q.isStream=function(M){return M instanceof Z(5).Stream}},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q,Z){"use strict";function n(M){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(M)}Object.defineProperty(q,"__esModule",{value:!0}),q.Request=void 0;var F,W=Z(10),$=(F=Z(11))&&F.__esModule?F:{default:F},Y=function(M,q){if(!q&&M&&M.__esModule)return M;if(null===M||"object"!==n(M)&&"function"!=typeof M)return{default:M};var Z=l(q);if(Z&&Z.has(M))return Z.get(M);var F={},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in M)if("default"!==$&&Object.prototype.hasOwnProperty.call(M,$)){var Y=W?Object.getOwnPropertyDescriptor(M,$):null;Y&&(Y.get||Y.set)?Object.defineProperty(F,$,Y):F[$]=M[$]}return F.default=M,Z&&Z.set(M,F),F}(Z(12)),X=Z(0),ee=Z(13);function l(M){if("function"!=typeof WeakMap)return null;var q=new WeakMap,Z=new WeakMap;return(l=function(M){return M?Z:q})(M)}function f(M,q){var Z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);q&&(F=F.filter((function(q){return Object.getOwnPropertyDescriptor(M,q).enumerable}))),Z.push.apply(Z,F)}return Z}function p(M){for(var q=1;q 0&&void 0!==arguments[0]?arguments[0]:15e3;return this.cacheTTL=M,this}},{key:"resetCache",value:function(M){return M&&this.tags&&W.cache.deleteByTags(this.tags),this}},{key:"type",value:function(M){return this.set("Content-Type",M),this}},{key:"unwrapBody",value:function(M){return this.unwrap=M,this}},{key:"setEncoding",value:function(M){return this.encoding=M,this}},{key:"setTimeout",value:function(M){return this.timeout=M,this}},{key:"send",value:function(M){var q=this;this.emit("request",this);var Z=this.path,F=Y.stringify(this.queryParams);if(F&&(Z+="?"+F),this.cacheTTL){var $=W.cache.get(Z);if(void 0!==$)return Promise.resolve($)}this.headers["Content-Type"]||!(0,X.isObject)(M)||(0,X.isFormData)(M)||this.type("application/json"),M&&(M="application/json"===this.headers["Content-Type"]&&"string"!=typeof M?JSON.stringify(M):M),i.verbose&&console.log(this.method.toUpperCase(),decodeURIComponent(Z),M,this.headers);var ee=i.send(Z,this.method.toUpperCase(),this.headers,M,this.encoding,this.timeout).then(w).then(k).then((function(M){return q.unwrap?M.body:M})).then((function(M){return q.cacheTTL&&W.cache.set(Z,M,q.tags,q.cacheTTL),M})).then((function(M){return q.tags&&"get"!==q.method&&W.cache.deleteByTags(q.tags),M}));return ee.then((function(M){q.emit("response",M),q.emit("done",null,M)})).catch((function(M){q.emit("error",M),q.emit("done",M)})),ee}},{key:"then",value:function(M,q){return this.promise=this.promise||this.send(this.body),this.promise.then(M,q)}},{key:"catch",value:function(M){return this.promise=this.promise||this.send(this.body),this.promise.catch(M)}}])&&h(q.prototype,Z),F&&h(q,F),Object.defineProperty(q,"prototype",{writable:!1}),i}($.default);function w(M){try{return p(p({},M),{},{body:JSON.parse(M.body)})}catch(q){return M}}function k(M){if(M.status>=200&&M.status<300)return M;throw new ee.ResponseError(M)}q.Request=ae},function(M,q,Z){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var F=Z(4),W=Z(9),$=Z(2);Object.defineProperty($.Request,"FormData",{get:function(){return"undefined"!=typeof FormData?FormData:Z(14)}}),$.Request.XMLHttpRequest="undefined"!=typeof XMLHttpRequest?XMLHttpRequest:void 0,$.Request.send=function(M,q,Z,Y,X,ee){return(void 0!==$.Request.XMLHttpRequest?W.sendXmlHttpRequest:F.sendNodeAPIRequest)(M,q,Z,Y,X,ee)},$.Request.verbose=!1,$.Request.methods=["get","post","put","patch","delete"],$.Request.methods.forEach((function(M){$.Request[M]=function(q,Z){return new $.Request(q,M,Z)}})),q=M.exports=$.Request;var Y=$.Request;q.default=Y},function(M,q,Z){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.sendNodeAPIRequest=function(M,q,W,$,Y,X){return new Promise((function(ee,ae){var ie=Z(6).parse(M),le=(0,F.isFormData)($)&&$,ce="https:"===ie.protocol,de={host:ie.hostname,port:ie.port||(ce?443:80),path:ie.pathname+(ie.search||""),method:q,headers:W,timeout:X},h=function(){var M=Z(1).Buffer,q=Z(ce?7:8).request(de,(function(q){var Z=[],F=[],W=0,$="",X=q.statusCode,ie=q.statusMessage,le=q.headers;q.on("data",(function(q){M.isBuffer(q)?q.length&&(W+=q.length,F.push(q)):Z.push(q)})),q.on("end",(function(){W?($=M.concat(F,W),null!=Y&&($=$.toString(Y))):Z.length&&($=Z.join()),ee({status:X,statusText:ie,headers:le,body:$})})),q.on("error",ae)}));if(q.on("error",ae),q.on("timeout",(function(){q.destroy(new Error("Connection aborted due to timeout"))})),$){if((0,F.isStream)($))return void $.pipe(q);q.write($)}q.end()};if(le)Object.assign(de.headers,le.getHeaders()),le.getLength((function(M,q){M||isNaN(q)||(de.headers["content-length"]=q),h()}));else{if($&&!de.headers["content-length"]){var pe=Z(1).Buffer;de.headers["content-length"]=pe.byteLength($)}h()}}))};var F=Z(0)},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q){throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')},function(M,q,Z){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.sendXmlHttpRequest=function(M,q,Z,W,$,Y){return new Promise((function(X,ee){var ae=new F.Request.XMLHttpRequest;ae.timeout=Y,$||(ae.responseType="arraybuffer"),ae.open(q.toUpperCase(),M,!0),ae.onload=function(){var M,q,Z=(M=ae.getAllResponseHeaders(),q={},M?(M.split("\n").forEach((function(M){var Z=M.indexOf(":"),F=M.substr(0,Z).trim(),W=M.substr(Z+1).trim();F&&(q[F]=q[F]?q[F]+", "+W:W)})),q):q),F=ae,W={status:F.status,statusText:F.statusText,headers:Z};"utf8"===$?W.body=ae.response||ae.responseText:ae.response&&(W.body=new Uint8Array(ae.response)),X(W),ae=null},ae.onerror=function(){ee(new Error("Network Error")),ae=null},ae.ontimeout=function(){ee(new Error("Connection aborted due to timeout")),ae=null},Object.keys(Z).forEach((function(M){ae.setRequestHeader(M,Z[M])})),ae.send(W)}))};var F=Z(2)},function(M,q,Z){"use strict";function n(M,q){return function(M){if(Array.isArray(M))return M}(M)||function(M,q){var Z=null==M?null:"undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(null!=Z){var F,W,$=[],Y=!0,X=!1;try{for(Z=Z.call(M);!(Y=(F=Z.next()).done)&&($.push(F.value),!q||$.length!==q);Y=!0);}catch(M){X=!0,W=M}finally{try{Y||null==Z.return||Z.return()}finally{if(X)throw W}}return $}}(M,q)||s(M,q)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(M,q){var Z="undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(!Z){if(Array.isArray(M)||(Z=s(M))||q&&M&&"number"==typeof M.length){Z&&(M=Z);var F=0,o=function(){};return{s:o,n:function(){return F>=M.length?{done:!0}:{done:!1,value:M[F++]}},e:function(M){throw M},f:o}}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 W,$=!0,Y=!1;return{s:function(){Z=Z.call(M)},n:function(){var M=Z.next();return $=M.done,M},e:function(M){Y=!0,W=M},f:function(){try{$||null==Z.return||Z.return()}finally{if(Y)throw W}}}}function s(M,q){if(M){if("string"==typeof M)return i(M,q);var Z=Object.prototype.toString.call(M).slice(8,-1);return"Object"===Z&&M.constructor&&(Z=M.constructor.name),"Map"===Z||"Set"===Z?Array.from(M):"Arguments"===Z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z)?i(M,q):void 0}}function i(M,q){(null==q||q>M.length)&&(q=M.length);for(var Z=0,F=new Array(q);Z u())return q.value;this.map.delete(M)}}},{key:"set",value:function(M,q,Z,F){this.map.set(M,function(M,q,Z){return{value:M,tags:q,ttl:Z}}(q,Z,u()+F)),this.flushInterval&&!this.flushTimer&&(this.flushTimer=setInterval(this.flush.bind(this),this.flushInterval),this.flushTimer.unref&&this.flushTimer.unref())}},{key:"delete",value:function(M){this.map.delete(M)}},{key:"deleteAll",value:function(){var M,q=o(this.map);try{for(q.s();!(M=q.n()).done;){var Z=n(M.value,1)[0];this.delete(Z)}}catch(M){q.e(M)}finally{q.f()}}},{key:"deleteByTags",value:function(M){var q,Z=o(this.map);try{for(Z.s();!(q=Z.n()).done;){var F=n(q.value,2),W=F[0],$=F[1];$.tags&&c(M,$.tags)&&this.delete(W)}}catch(M){Z.e(M)}finally{Z.f()}}},{key:"flush",value:function(){var M,q=u(),Z=o(this.map);try{for(Z.s();!(M=Z.n()).done;){var F=n(M.value,2),W=F[0];F[1].ttl1?q-1:0),F=1;F{function t(M){M=M||{},this.ms=M.min||100,this.max=M.max||1e4,this.factor=M.factor||2,this.jitter=M.jitter>0&&M.jitter<=1?M.jitter:0,this.attempts=0}M.exports=t,t.prototype.duration=function(){var M=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var q=Math.random(),Z=Math.floor(q*this.jitter*M);M=0==(1&Math.floor(10*q))?M-Z:M+Z}return 0|Math.min(M,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(M){this.ms=M},t.prototype.setMax=function(M){this.max=M},t.prototype.setJitter=function(M){this.jitter=M}},"./node_modules/base64-arraybuffer/lib/base64-arraybuffer.js":(M,q)=>{!function(){"use strict";for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=new Uint8Array(256),F=0;F>2],$+=M[(3&F[Z])<<4|F[Z+1]>>4],$+=M[(15&F[Z+1])<<2|F[Z+2]>>6],$+=M[63&F[Z+2]];return W%3==2?$=$.substring(0,$.length-1)+"=":W%3==1&&($=$.substring(0,$.length-2)+"=="),$},q.decode=function(M){var q,F,W,$,Y,X=.75*M.length,ee=M.length,ae=0;"="===M[M.length-1]&&(X--,"="===M[M.length-2]&&X--);var ie=new ArrayBuffer(X),le=new Uint8Array(ie);for(q=0;q >4,le[ae++]=(15&W)<<4|$>>2,le[ae++]=(3&$)<<6|63&Y;return ie}}()},"./node_modules/blob/index.js":(M,q,Z)=>{var F=Z.g.BlobBuilder||Z.g.WebKitBlobBuilder||Z.g.MSBlobBuilder||Z.g.MozBlobBuilder,W=function(){try{return 2===new Blob(["hi"]).size}catch(M){return!1}}(),$=W&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(M){return!1}}(),Y=F&&F.prototype.append&&F.prototype.getBlob;function a(M){for(var q=0;q {var q=[].slice;M.exports=function(M,Z){if("string"==typeof Z&&(Z=M[Z]),"function"!=typeof Z)throw new Error("bind() requires a function");var F=q.call(arguments,2);return function(){return Z.apply(M,F.concat(q.call(arguments)))}}},"./node_modules/component-emitter/index.js":M=>{function t(M){if(M)return function(M){for(var q in t.prototype)M[q]=t.prototype[q];return M}(M)}M.exports=t,t.prototype.on=t.prototype.addEventListener=function(M,q){return this._callbacks=this._callbacks||{},(this._callbacks["$"+M]=this._callbacks["$"+M]||[]).push(q),this},t.prototype.once=function(M,q){function r(){this.off(M,r),q.apply(this,arguments)}return r.fn=q,this.on(M,r),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(M,q){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var Z,F=this._callbacks["$"+M];if(!F)return this;if(1==arguments.length)return delete this._callbacks["$"+M],this;for(var W=0;W {M.exports=function(M,q){var r=function(){};r.prototype=q.prototype,M.prototype=new r,M.prototype.constructor=M}},"./node_modules/debug/src/browser.js":(M,Z,F)=>{function o(){var M;try{M=Z.storage.debug}catch(M){}return!M&&void 0!==q&&"env"in q&&(M=q.env.DEBUG),M}(Z=M.exports=F("./node_modules/debug/src/debug.js")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},Z.formatArgs=function(M){var q=this.useColors;if(M[0]=(q?"%c":"")+this.namespace+(q?" %c":" ")+M[0]+(q?"%c ":" ")+"+"+Z.humanize(this.diff),q){var F="color: "+this.color;M.splice(1,0,F,"color: inherit");var W=0,$=0;M[0].replace(/%[a-zA-Z%]/g,(function(M){"%%"!==M&&(W++,"%c"===M&&($=W))})),M.splice($,0,F)}},Z.save=function(M){try{null==M?Z.storage.removeItem("debug"):Z.storage.debug=M}catch(M){}},Z.load=o,Z.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},Z.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(M){}}(),Z.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],Z.formatters.j=function(M){try{return JSON.stringify(M)}catch(M){return"[UnexpectedJSONParseError]: "+M.message}},Z.enable(o())},"./node_modules/debug/src/debug.js":(M,q,Z)=>{var F;function o(M){function r(){if(r.enabled){var M=r,Z=+new Date,W=Z-(F||Z);M.diff=W,M.prev=F,M.curr=Z,F=Z;for(var $=new Array(arguments.length),Y=0;Y<$.length;Y++)$[Y]=arguments[Y];$[0]=q.coerce($[0]),"string"!=typeof $[0]&&$.unshift("%O");var X=0;$[0]=$[0].replace(/%([a-zA-Z%])/g,(function(Z,F){if("%%"===Z)return Z;X++;var W=q.formatters[F];if("function"==typeof W){var Y=$[X];Z=W.call(M,Y),$.splice(X,1),X--}return Z})),q.formatArgs.call(M,$),(r.log||q.log||console.log.bind(console)).apply(M,$)}}return r.namespace=M,r.enabled=q.enabled(M),r.useColors=q.useColors(),r.color=function(M){var Z,F=0;for(Z in M)F=(F<<5)-F+M.charCodeAt(Z),F|=0;return q.colors[Math.abs(F)%q.colors.length]}(M),"function"==typeof q.init&&q.init(r),r}(q=M.exports=o.debug=o.default=o).coerce=function(M){return M instanceof Error?M.stack||M.message:M},q.disable=function(){q.enable("")},q.enable=function(M){q.save(M),q.names=[],q.skips=[];for(var Z=("string"==typeof M?M:"").split(/[\s,]+/),F=Z.length,W=0;W {M.exports=Z("./node_modules/engine.io-client/lib/socket.js"),M.exports.parser=Z("./node_modules/engine.io-parser/lib/browser.js")},"./node_modules/engine.io-client/lib/socket.js":(M,q,Z)=>{var F=Z("./node_modules/engine.io-client/lib/transports/index.js"),W=Z("./node_modules/component-emitter/index.js"),$=Z("./node_modules/debug/src/browser.js")("engine.io-client:socket"),Y=Z("./node_modules/indexof/index.js"),X=Z("./node_modules/engine.io-parser/lib/browser.js"),ee=Z("./node_modules/parseuri/index.js"),ae=Z("./node_modules/parseqs/index.js");function l(M,q){if(!(this instanceof l))return new l(M,q);q=q||{},M&&"object"==typeof M&&(q=M,M=null),M?(M=ee(M),q.hostname=M.host,q.secure="https"===M.protocol||"wss"===M.protocol,q.port=M.port,M.query&&(q.query=M.query)):q.host&&(q.hostname=ee(q.host).host),this.secure=null!=q.secure?q.secure:Z.g.location&&"https:"===location.protocol,q.hostname&&!q.port&&(q.port=this.secure?"443":"80"),this.agent=q.agent||!1,this.hostname=q.hostname||(Z.g.location?location.hostname:"localhost"),this.port=q.port||(Z.g.location&&location.port?location.port:this.secure?443:80),this.query=q.query||{},"string"==typeof this.query&&(this.query=ae.decode(this.query)),this.upgrade=!1!==q.upgrade,this.path=(q.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!q.forceJSONP,this.jsonp=!1!==q.jsonp,this.forceBase64=!!q.forceBase64,this.enablesXDR=!!q.enablesXDR,this.timestampParam=q.timestampParam||"t",this.timestampRequests=q.timestampRequests,this.transports=q.transports||["polling","websocket"],this.transportOptions=q.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=q.policyPort||843,this.rememberUpgrade=q.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=q.onlyBinaryUpgrades,this.perMessageDeflate=!1!==q.perMessageDeflate&&(q.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=q.pfx||null,this.key=q.key||null,this.passphrase=q.passphrase||null,this.cert=q.cert||null,this.ca=q.ca||null,this.ciphers=q.ciphers||null,this.rejectUnauthorized=void 0===q.rejectUnauthorized||q.rejectUnauthorized,this.forceNode=!!q.forceNode;var F="object"==typeof Z.g&&Z.g;F.global===F&&(q.extraHeaders&&Object.keys(q.extraHeaders).length>0&&(this.extraHeaders=q.extraHeaders),q.localAddress&&(this.localAddress=q.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}M.exports=l,l.priorWebsocketSuccess=!1,W(l.prototype),l.protocol=X.protocol,l.Socket=l,l.Transport=Z("./node_modules/engine.io-client/lib/transport.js"),l.transports=Z("./node_modules/engine.io-client/lib/transports/index.js"),l.parser=Z("./node_modules/engine.io-parser/lib/browser.js"),l.prototype.createTransport=function(M){$('creating transport "%s"',M);var q=function(M){var q={};for(var Z in M)M.hasOwnProperty(Z)&&(q[Z]=M[Z]);return q}(this.query);q.EIO=X.protocol,q.transport=M;var Z=this.transportOptions[M]||{};return this.id&&(q.sid=this.id),new F[M]({query:q,socket:this,agent:Z.agent||this.agent,hostname:Z.hostname||this.hostname,port:Z.port||this.port,secure:Z.secure||this.secure,path:Z.path||this.path,forceJSONP:Z.forceJSONP||this.forceJSONP,jsonp:Z.jsonp||this.jsonp,forceBase64:Z.forceBase64||this.forceBase64,enablesXDR:Z.enablesXDR||this.enablesXDR,timestampRequests:Z.timestampRequests||this.timestampRequests,timestampParam:Z.timestampParam||this.timestampParam,policyPort:Z.policyPort||this.policyPort,pfx:Z.pfx||this.pfx,key:Z.key||this.key,passphrase:Z.passphrase||this.passphrase,cert:Z.cert||this.cert,ca:Z.ca||this.ca,ciphers:Z.ciphers||this.ciphers,rejectUnauthorized:Z.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:Z.perMessageDeflate||this.perMessageDeflate,extraHeaders:Z.extraHeaders||this.extraHeaders,forceNode:Z.forceNode||this.forceNode,localAddress:Z.localAddress||this.localAddress,requestTimeout:Z.requestTimeout||this.requestTimeout,protocols:Z.protocols||void 0})},l.prototype.open=function(){var M;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))M="websocket";else{if(0===this.transports.length){var q=this;return void setTimeout((function(){q.emit("error","No transports available")}),0)}M=this.transports[0]}this.readyState="opening";try{M=this.createTransport(M)}catch(M){return this.transports.shift(),void this.open()}M.open(),this.setTransport(M)},l.prototype.setTransport=function(M){$("setting transport %s",M.name);var q=this;this.transport&&($("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=M,M.on("drain",(function(){q.onDrain()})).on("packet",(function(M){q.onPacket(M)})).on("error",(function(M){q.onError(M)})).on("close",(function(){q.onClose("transport close")}))},l.prototype.probe=function(M){$('probing transport "%s"',M);var q=this.createTransport(M,{probe:1}),Z=!1,F=this;function o(){if(F.onlyBinaryUpgrades){var W=!this.supportsBinary&&F.transport.supportsBinary;Z=Z||W}Z||($('probe transport "%s" opened',M),q.send([{type:"ping",data:"probe"}]),q.once("packet",(function(W){if(!Z)if("pong"===W.type&&"probe"===W.data){if($('probe transport "%s" pong',M),F.upgrading=!0,F.emit("upgrading",q),!q)return;l.priorWebsocketSuccess="websocket"===q.name,$('pausing current transport "%s"',F.transport.name),F.transport.pause((function(){Z||"closed"!==F.readyState&&($("changing transport and sending upgrade packet"),p(),F.setTransport(q),q.send([{type:"upgrade"}]),F.emit("upgrade",q),q=null,F.upgrading=!1,F.flush())}))}else{$('probe transport "%s" failed',M);var Y=new Error("probe error");Y.transport=q.name,F.emit("upgradeError",Y)}})))}function i(){Z||(Z=!0,p(),q.close(),q=null)}function a(Z){var W=new Error("probe error: "+Z);W.transport=q.name,i(),$('probe transport "%s" failed because of error: %s',M,Z),F.emit("upgradeError",W)}function u(){a("transport closed")}function c(){a("socket closed")}function f(M){q&&M.name!==q.name&&($('"%s" works - aborting "%s"',M.name,q.name),i())}function p(){q.removeListener("open",o),q.removeListener("error",a),q.removeListener("close",u),F.removeListener("close",c),F.removeListener("upgrading",f)}l.priorWebsocketSuccess=!1,q.once("open",o),q.once("error",a),q.once("close",u),this.once("close",c),this.once("upgrading",f),q.open()},l.prototype.onOpen=function(){if($("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){$("starting upgrade probes");for(var M=0,q=this.upgrades.length;M {var F=Z("./node_modules/engine.io-parser/lib/browser.js"),W=Z("./node_modules/component-emitter/index.js");function s(M){this.path=M.path,this.hostname=M.hostname,this.port=M.port,this.secure=M.secure,this.query=M.query,this.timestampParam=M.timestampParam,this.timestampRequests=M.timestampRequests,this.readyState="",this.agent=M.agent||!1,this.socket=M.socket,this.enablesXDR=M.enablesXDR,this.pfx=M.pfx,this.key=M.key,this.passphrase=M.passphrase,this.cert=M.cert,this.ca=M.ca,this.ciphers=M.ciphers,this.rejectUnauthorized=M.rejectUnauthorized,this.forceNode=M.forceNode,this.extraHeaders=M.extraHeaders,this.localAddress=M.localAddress}M.exports=s,W(s.prototype),s.prototype.onError=function(M,q){var Z=new Error(M);return Z.type="TransportError",Z.description=q,this.emit("error",Z),this},s.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},s.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},s.prototype.send=function(M){if("open"!==this.readyState)throw new Error("Transport not open");this.write(M)},s.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},s.prototype.onData=function(M){var q=F.decodePacket(M,this.socket.binaryType);this.onPacket(q)},s.prototype.onPacket=function(M){this.emit("packet",M)},s.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},"./node_modules/engine.io-client/lib/transports/index.js":(M,q,Z)=>{var F=Z("./node_modules/engine.io-client/lib/xmlhttprequest.js"),W=Z("./node_modules/engine.io-client/lib/transports/polling-xhr.js"),$=Z("./node_modules/engine.io-client/lib/transports/polling-jsonp.js"),Y=Z("./node_modules/engine.io-client/lib/transports/websocket.js");q.polling=function(M){var q=!1,Y=!1,X=!1!==M.jsonp;if(Z.g.location){var ee="https:"===location.protocol,ae=location.port;ae||(ae=ee?443:80),q=M.hostname!==location.hostname||ae!==M.port,Y=M.secure!==ee}if(M.xdomain=q,M.xscheme=Y,"open"in new F(M)&&!M.forceJSONP)return new W(M);if(!X)throw new Error("JSONP disabled");return new $(M)},q.websocket=Y},"./node_modules/engine.io-client/lib/transports/polling-jsonp.js":(M,q,Z)=>{var F=Z("./node_modules/engine.io-client/lib/transports/polling.js"),W=Z("./node_modules/component-inherit/index.js");M.exports=c;var $,Y=/\n/g,X=/\\n/g;function u(){}function c(M){F.call(this,M),this.query=this.query||{},$||(Z.g.___eio||(Z.g.___eio=[]),$=Z.g.___eio),this.index=$.length;var q=this;$.push((function(M){q.onData(M)})),this.query.j=this.index,Z.g.document&&Z.g.addEventListener&&Z.g.addEventListener("beforeunload",(function(){q.script&&(q.script.onerror=u)}),!1)}W(c,F),c.prototype.supportsBinary=!1,c.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),F.prototype.doClose.call(this)},c.prototype.doPoll=function(){var M=this,q=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),q.async=!0,q.src=this.uri(),q.onerror=function(q){M.onError("jsonp poll error",q)};var Z=document.getElementsByTagName("script")[0];Z?Z.parentNode.insertBefore(q,Z):(document.head||document.body).appendChild(q),this.script=q,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var M=document.createElement("iframe");document.body.appendChild(M),document.body.removeChild(M)}),100)},c.prototype.doWrite=function(M,q){var Z=this;if(!this.form){var F,W=document.createElement("form"),$=document.createElement("textarea"),ee=this.iframeId="eio_iframe_"+this.index;W.className="socketio",W.style.position="absolute",W.style.top="-1000px",W.style.left="-1000px",W.target=ee,W.method="POST",W.setAttribute("accept-charset","utf-8"),$.name="d",W.appendChild($),document.body.appendChild(W),this.form=W,this.area=$}function c(){l(),q()}function l(){if(Z.iframe)try{Z.form.removeChild(Z.iframe)}catch(M){Z.onError("jsonp polling iframe removal error",M)}try{var M='