survey-core
Version:
survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
2 lines • 1.36 MB
JavaScript
/*! For license information please see survey.core.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("survey-core",[],t):"object"==typeof exports?exports["survey-core"]=t():e.Survey=t()}(this,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{Action:()=>at,ActionContainer:()=>_e,ActionDropdownViewModel:()=>lt,AdaptiveActionContainer:()=>ct,AnimationBoolean:()=>yt,AnimationGroup:()=>mt,AnimationGroupUtils:()=>ft,AnimationProperty:()=>gt,AnimationPropertyUtils:()=>dt,AnimationTab:()=>bt,AnimationUtils:()=>ht,AnswerCountValidator:()=>In,AnswerRequiredError:()=>pn,ArrayChanges:()=>Ve,ArrayOperand:()=>ne,Base:()=>we,BaseAction:()=>st,BinaryOperand:()=>ee,ButtonGroupItemModel:()=>ma,ButtonGroupItemValue:()=>ga,CalculatedValue:()=>Un,CharacterCounter:()=>$i,ChoicesRestful:()=>Zn,ChoicesRestfull:()=>$n,ComponentCollection:()=>uo,ComponentQuestionJSON:()=>lo,ComputedUpdater:()=>Pe,ConditionRunner:()=>ge,ConditionsParser:()=>ce,Const:()=>oe,Cover:()=>ui,CoverCell:()=>li,CssClassBuilder:()=>Ae,CustomError:()=>Vn,CustomWidgetCollection:()=>_n,DefaultTitleModel:()=>Vr,DragDropChoices:()=>Fr,DragDropCore:()=>qo,DragDropRankingSelectToRank:()=>zr,DragOrClickHelper:()=>Ho,DropdownListModel:()=>zi,DropdownMultiSelectListModel:()=>Lr,ElementFactory:()=>yo,EmailValidator:()=>Dn,Event:()=>xe,EventBase:()=>Oe,ExceedSizeError:()=>fn,ExpressionExecutor:()=>de,ExpressionRunner:()=>ye,ExpressionValidator:()=>jn,FlowPanelModel:()=>wr,FunctionFactory:()=>N,FunctionOperand:()=>re,Helpers:()=>r,HtmlConditionItem:()=>Jn,ImageItemValue:()=>bs,InputMaskBase:()=>va,InputMaskCurrency:()=>ka,InputMaskDateTime:()=>Da,InputMaskNumeric:()=>Ta,InputMaskPattern:()=>xa,IsMobile:()=>ze,IsTouch:()=>We,ItemValue:()=>zn,JsonError:()=>V,JsonIncorrectTypeError:()=>T,JsonMetadata:()=>w,JsonMetadataClass:()=>P,JsonMissingTypeError:()=>S,JsonMissingTypeErrorBase:()=>O,JsonObject:()=>A,JsonObjectProperty:()=>v,JsonRequiredPropertyError:()=>E,JsonUnknownPropertyError:()=>x,ListModel:()=>Be,LocalizableString:()=>xt,LocalizableStrings:()=>Ot,MatrixCells:()=>Ki,MatrixDropdownCell:()=>Ao,MatrixDropdownColumn:()=>wo,MatrixDropdownRowModel:()=>Mo,MatrixDropdownRowModelBase:()=>Lo,MatrixDynamicRowModel:()=>Wo,MatrixRowModel:()=>Ji,Model:()=>_i,MultiSelectListModel:()=>Ar,MultipleTextCell:()=>vr,MultipleTextEditorModel:()=>fr,MultipleTextErrorCell:()=>Cr,MultipleTextItemModel:()=>gr,MutlipleTextErrorRow:()=>br,MutlipleTextRow:()=>mr,Notifier:()=>ri,NumericValidator:()=>En,OneAnswerRequiredError:()=>hn,Operand:()=>$,PageModel:()=>Vi,PanelModel:()=>Pi,PanelModelBase:()=>Ci,PopupBaseViewModel:()=>na,PopupDropdownViewModel:()=>aa,PopupModalViewModel:()=>ua,PopupModel:()=>$e,PopupSurveyModel:()=>Ys,ProcessValue:()=>L,ProgressButtons:()=>Oi,ProgressButtonsResponsivityManager:()=>Si,Question:()=>Bn,QuestionBooleanModel:()=>gs,QuestionButtonGroupModel:()=>ya,QuestionCheckboxBase:()=>Fi,QuestionCheckboxModel:()=>Rr,QuestionCommentModel:()=>Jr,QuestionCompositeModel:()=>fo,QuestionCustomModel:()=>po,QuestionCustomWidget:()=>Ln,QuestionDropdownModel:()=>Wi,QuestionEmptyModel:()=>Tr,QuestionExpressionModel:()=>bo,QuestionFactory:()=>go,QuestionFileModel:()=>ns,QuestionFilePage:()=>ts,QuestionHtmlModel:()=>rs,QuestionImageModel:()=>Vs,QuestionImagePickerModel:()=>vs,QuestionMatrixBaseModel:()=>no,QuestionMatrixDropdownModel:()=>Fo,QuestionMatrixDropdownModelBase:()=>No,QuestionMatrixDropdownRenderedCell:()=>So,QuestionMatrixDropdownRenderedErrorRow:()=>Eo,QuestionMatrixDropdownRenderedRow:()=>To,QuestionMatrixDropdownRenderedTable:()=>Ro,QuestionMatrixDynamicModel:()=>Go,QuestionMatrixModel:()=>Yi,QuestionMultipleTextModel:()=>yr,QuestionNonValue:()=>Or,QuestionPanelDynamicItem:()=>Ns,QuestionPanelDynamicModel:()=>Ms,QuestionRadiogroupModel:()=>as,QuestionRankingModel:()=>Wr,QuestionRatingModel:()=>hs,QuestionRowModel:()=>vi,QuestionSelectBase:()=>Mi,QuestionSignaturePadModel:()=>Is,QuestionTagboxModel:()=>kr,QuestionTextBase:()=>er,QuestionTextModel:()=>sr,RegexValidator:()=>An,ReleaseDate:()=>La,RenderedRatingItem:()=>cs,RendererFactory:()=>Nn,RequreNumericError:()=>dn,ResponsivityManager:()=>Re,ScrollViewModel:()=>Zs,Serializer:()=>D,SurveyElement:()=>wt,SurveyElementCore:()=>Pt,SurveyError:()=>un,SurveyModel:()=>_i,SurveyProgressModel:()=>Fs,SurveyTimer:()=>$o,SurveyTimerModel:()=>ni,SurveyTrigger:()=>Qs,SurveyTriggerComplete:()=>Hs,SurveyTriggerCopyValue:()=>Js,SurveyTriggerRunExpression:()=>Gs,SurveyTriggerSetValue:()=>Us,SurveyTriggerSkip:()=>Ws,SurveyTriggerVisible:()=>zs,SurveyValidator:()=>Sn,SurveyWindowModel:()=>Xs,SvgIconRegistry:()=>za,SvgRegistry:()=>Ha,SvgThemeSets:()=>Ua,TOCModel:()=>Di,TextAreaModel:()=>kn,TextPreProcessor:()=>ro,TextValidator:()=>Rn,Trigger:()=>qs,UnaryOperand:()=>te,UrlConditionItem:()=>Kn,ValidatorResult:()=>On,ValidatorRunner:()=>Tn,Variable:()=>ie,Version:()=>ja,VerticalResponsivityManager:()=>Ie,_setIsTablet:()=>Ke,_setIsTouch:()=>Ge,activateLazyRenderingChecks:()=>jt,addIconsToThemeSet:()=>Wa,checkLibraryVersion:()=>Ma,chooseFiles:()=>tn,classesToSelector:()=>Kt,cleanHtmlElementAfterAnimation:()=>rn,confirmAction:()=>St,confirmActionAsync:()=>Tt,createDropdownActionModel:()=>nt,createDropdownActionModelAdvanced:()=>ot,createPopupModalViewModel:()=>pa,createPopupModelWithListModel:()=>it,createPopupViewModel:()=>ha,createSvg:()=>Mt,createTOCListModel:()=>Ri,defaultActionBarCss:()=>Le,defaultCss:()=>Yo,defaultThemeName:()=>Xo,detectIEOrEdge:()=>Et,doKey2ClickBlur:()=>zt,doKey2ClickDown:()=>Ut,doKey2ClickUp:()=>Ht,englishStrings:()=>s,getActionDropdownButtonTarget:()=>rt,getElement:()=>At,getIconNameFromProxy:()=>Nt,getLocaleString:()=>l,getLocaleStrings:()=>u,getOriginalEvent:()=>Gt,getTocRootCss:()=>Ai,hasLicense:()=>qa,increaseHeightByContent:()=>Wt,loadFileFromBase64:()=>Rt,matrixDropdownColumnTypes:()=>Po,prepareElementForVerticalAnimation:()=>on,property:()=>y,propertyArray:()=>b,registerFunction:()=>k,renamedIcons:()=>_t,sanitizeEditableContent:()=>Zt,setLicenseKey:()=>Fa,settings:()=>ln,setupLocale:()=>c,slk:()=>Ba,surveyCss:()=>Ko,surveyLocalization:()=>a,surveyStrings:()=>p,tryFocusPage:()=>Ti,unwrap:()=>Ft});var n=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof window},e.isFileReaderAvailable=function(){return!!e.isAvailable()&&!!window.FileReader},e.getLocation=function(){if(e.isAvailable())return window.location},e.getVisualViewport=function(){return e.isAvailable()?window.visualViewport:null},e.getInnerWidth=function(){if(e.isAvailable())return window.innerWidth},e.getInnerHeight=function(){return e.isAvailable()?window.innerHeight:null},e.getDevicePixelRatio=function(){return e.isAvailable()?window.devicePixelRatio:null},e.getWindow=function(){if(e.isAvailable())return window},e.hasOwn=function(t){if(e.isAvailable())return t in window},e.getSelection=function(){if(e.isAvailable()&&window.getSelection)return window.getSelection()},e.requestAnimationFrame=function(t){if(e.isAvailable())return window.requestAnimationFrame(t)},e.addEventListener=function(t,n){e.isAvailable()&&window.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&window.removeEventListener(t,n)},e.matchMedia=function(t){return e.isAvailable()&&void 0!==window.matchMedia?window.matchMedia(t):null},e}(),o=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof document},e.getBody=function(){if(e.isAvailable())return document.body},e.getDocumentElement=function(){if(e.isAvailable())return document.documentElement},e.getDocument=function(){if(e.isAvailable())return document},e.getCookie=function(){if(e.isAvailable())return document.cookie},e.setCookie=function(t){e.isAvailable()&&(document.cookie=t)},e.activeElementBlur=function(){if(e.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},e.createElement=function(t){if(e.isAvailable())return document.createElement(t)},e.getComputedStyle=function(t){return e.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},e.addEventListener=function(t,n){e.isAvailable()&&document.addEventListener(t,n)},e.removeEventListener=function(t,n){e.isAvailable()&&document.removeEventListener(t,n)},e}();function i(e,t){if(!t)return new Date;var n;ln.storeUtcDates||"string"!=typeof t||(n=t).indexOf("T")>0||!/\d{4}-\d{2}-\d{2}/.test(n)||isNaN(new Date(n).getTime())||(t+="T00:00:00");var o=new Date(t);return ln.onDateCreated(o,e,t)}var r=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isValueUndefined=function(e){return null==e||"number"==typeof e&&isNaN(e)},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++){for(var i=0;i<n.length&&!e.isTwoValueEquals(t[o],n[i]);i++);if(i===n.length)return!1}return!0},e.isArraysEqual=function(t,n,o,i,r){if(void 0===o&&(o=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(o){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(n[l]);s.sort(),a.sort(),t=s,n=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],o,i,r))return!1;return!0},e.compareStrings=function(e,t){var n=ln.comparator.normalizeTextCallback;if(e&&(e=n(e,"compare").trim()),t&&(t=n(t,"compare").trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var o=-1,i=0;i<e.length&&i<t.length;i++){if(this.isCharDigit(e[i])&&this.isCharDigit(t[i])){o=i;break}if(e[i]!==t[i])break}if(o>-1){var r=this.getNumberFromStr(e,o),s=this.getNumberFromStr(t,o);if(!Number.isNaN(r)&&!Number.isNaN(s)&&r!==s)return r>s?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,n,o,i,r){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===r&&(r=ln.comparator.trimStrings),void 0===i&&(i=ln.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n){var s=ln.comparator.normalizeTextCallback;return t=s(t,"compare"),n=s(n,"compare"),r&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!e.isValueObject(t)&&!e.isValueObject(n))return t==n;if(!e.isValueObject(t)||!e.isValueObject(n))return!1;if(t.equals&&n.equals)return t.equals(n);if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,i,r);for(var a in t)if(t.hasOwnProperty(a)){if(!n.hasOwnProperty(a))return!1;if(!this.isTwoValueEquals(t[a],n[a],o,i,r))return!1}for(a in n)if(n.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var n=[],o=0;o<t.length;o++)n.push(e.getUnbindValue(t[o]));return n}return!t||!e.isValueObject(t)||t instanceof Date?t:JSON.parse(JSON.stringify(t))},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e,t){return e instanceof Object&&(!t||!Array.isArray(e))},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(t){var n=e.getNumberCore(t);return ln.parseNumber(t,n)},e.getNumberCore=function(t){if("string"==typeof t){if(!(t=t.trim()))return NaN;if(0==t.indexOf("0x"))return t.length>32?NaN:parseInt(t);if(t.length>15&&e.isDigitsOnly(t))return NaN;if(e.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);var n=parseFloat(t);return isNaN(n)||!isFinite(t)?NaN:n},e.isStringHasOperator=function(e){if(e.lastIndexOf("-")>0)return!1;if(e.lastIndexOf("+")>0)return!1;for(var t=0;t<4;t++)if(e.indexOf("*^/%"[t])>-1)return!0;return!1},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0||!ln.showMaxLengthIndicator?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n,o){if(t<0)return"";var i=1,r="",s=".",a=!0,l="A",u="",c=function(t){if(!t)return!1;for(var n=0;n<t.length;n++)if(e.isCharDigit(t[n]))return!0;return!1};if(n){for(var p=(u=n).length-1,h=c(u),d=function(){return h&&!e.isCharDigit(u[p])||e.isCharNotLetterAndDigit(u[p])};p>=0&&d();)p--;var f="";for(p<u.length-1&&(f=u.substring(p+1),u=u.substring(0,p+1)),p=u.length-1;p>=0&&!d()&&(p--,h););l=u.substring(p+1),r=u.substring(0,p+1),parseInt(l)?i=parseInt(l):1==l.length&&(a=!1),(f||r)&&(s=f)}if(o>-1&&c(r)&&(r=this.getNumberByIndex(o,r)),a){for(var g=(t+i).toString();g.length<l.length;)g="0"+g;return r+g+s}return r+String.fromCharCode(l.charCodeAt(0)+t)+s},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.isDigitsOnly=function(t){if(!t)return!1;for(var n=0;n<t.length;n++)if(!e.isCharDigit(t[n]))return!1;return!0},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,o){var i=e.countDecimals(t),r=e.countDecimals(n);if(i>0||r>0){var s=Math.max(i,r);o=parseFloat(o.toFixed(s))}return o},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var o=Array.isArray(t)?t:n,i=o===t?n:t;if("string"==typeof i){var r=o.join(", ");return o===t?r+i:i+r}if("number"==typeof i){for(var s=0,a=0;a<o.length;a++)"number"==typeof o[a]&&(s=e.correctAfterPlusMinis(s,o[a],s+o[a]));return e.correctAfterPlusMinis(s,i,s+i)}}return t+n}return"string"==typeof t||"string"==typeof n?t+n:e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,o){var i=e.countDecimals(t)+e.countDecimals(n);return i>0&&(o=parseFloat(o.toFixed(i))),o},e.convertArrayValueToObject=function(t,n,o){void 0===o&&(o=void 0);var i=new Array;if(!t||!Array.isArray(t))return i;for(var r=0;r<t.length;r++){var s=void 0;Array.isArray(o)&&(s=e.findObjByPropValue(o,n,t[r])),s||((s={})[n]=t[r]),i.push(s)}return i},e.findObjByPropValue=function(t,n,o){for(var i=0;i<t.length;i++)if(e.isTwoValueEquals(t[i][n],o))return t[i]},e.convertArrayObjectToValue=function(t,n){var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var r=t[i]?t[i][n]:void 0;e.isValueEmpty(r)||o.push(r)}return o},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):this.getUnbindValue(t)},e.compareVerions=function(e,t){if(!e&&!t)return 0;for(var n=e.split("."),o=t.split("."),i=n.length,r=o.length,s=0;s<i&&s<r;s++){var a=n[s],l=o[s];if(a.length!==l.length)return a.length<l.length?-1:1;if(a!==l)return a<l?-1:1}return i===r?0:i<r?-1:1},e.isUrlYoutubeVideo=function(e){if(!e)return!1;var t=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];e=(e=e.toLowerCase()).replace(/^https?:\/\//,"");for(var n=0;n<t.length;n++)if(0===e.indexOf(t[n]+"/"))return!0;return!1},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))});var s={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",deselectAllItemText:"Deselect all",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textNoDigitsAllow:"Numbers are not allowed.",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",noRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",choices_Choice:"Choice option",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",loadingPage:"Loading...",loadingData:"Loading...",noEntriesText:"No entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"},a={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(e){this.useEnglishNames=e},setupLocale:function(e){var t=e.localeCode;this.locales[t]=e.strings,this.localeNames[t]=e.nativeName,this.localeNamesInEnglish[t]=e.englishName,void 0!==e.rtl&&(this.localeDirections[t]=e.rtl)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var o=new Array,i=function(e){var t=n.locales[e];t&&o.push(t)},r=function(e){if(e){i(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),i(e))}};r(t),r(this.currentLocale),r(this.defaultLocale),"en"!==this.defaultLocale&&i("en");for(var s=0;s<o.length;s++){var a=o[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocaleName:function(e,t){if(!e)return"";void 0===t&&(t=this.showNamesInEnglish);var n=t?this.localeNamesInEnglish:this.localeNames,o=t?this.localeNames:this.localeNamesInEnglish;return n[e]||o[e]||e},getLocales:function(e){var t=this;void 0===e&&(e=!1);var n=[];n.push("");var o=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){o={};for(var i=0;i<this.supportedLocales.length;i++)o[this.supportedLocales[i]]=!0}for(var r in o)e&&r==this.defaultLocale||n.push(r);var s=function(e){return t.getLocaleName(e).toLowerCase()};return n.sort((function(e,t){var n=s(e),o=s(t);return n===o?0:n<o?-1:1})),n},onGetExternalString:function(e,t){}};function l(e,t){return void 0===t&&(t=null),a.getString(e,t)}function u(e){return a.getLocaleStrings(e)}function c(e){a.setupLocale(e)}var p=s;a.locales.en=s,a.localeNames.en="english";var h,d=(h=function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},h(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};function g(e,t,n){var o=e.getLocalizableString(n);if(!o){var i=void 0;"object"==typeof t.localizable&&t.localizable.defaultStr&&(i=t.localizable.defaultStr),o=e.createLocalizableString(n,e,!0,i),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(o.onGetTextCallback=t.localizable.onGetTextCallback)}}function y(e){return void 0===e&&(e={}),function(t,n){var o=function(e,t){if(t&&"object"==typeof t&&t.type===Pe.ComputedUpdaterType){we.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var o=t.updater(),i=we.finishCollectDependencies();return t.setDependencies(i),e.dependencies[n]&&e.dependencies[n].dispose(),e.dependencies[n]=t,o}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){g(e,t,n);var o=e.getLocalizableStringText(n);if(o)return o;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return l(t.localizable.defaultStr,i)}return""}(this,e,n)},set:function(t){g(this,e,n);var i=o(this,t);this.setLocalizableStringText(n,i),e&&e.onSet&&e.onSet(i,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return g(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var i=o(this,t),r=this.getPropertyValue(n);i!==r&&(this.setPropertyValue(n,i),e&&e.onSet&&e.onSet(i,this,r))}})}}function m(e,t,n){e.ensureArray(n,(function(n,o){var i=t?t.onPush:null;i&&i(n,o,e)}),(function(n,o){var i=t?t.onRemove:null;i&&i(n,o,e)}))}function b(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return m(this,e,n),this.getPropertyValue(n)},set:function(t){m(this,e,n);var o=this.getPropertyValue(n);t!==o&&(o?o.splice.apply(o,f([0,o.length],t||[],!1)):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var v=function(){function e(t,n,o){void 0===o&&(o=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=o,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locationInTable",{get:function(){return this.locationInTableValue||"column"},set:function(e){this.locationInTableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showMode",{get:function(){var e=this.locationInTableValue;return"detail"===e?"form":"column"===e?"list":""},set:function(e){this.locationInTable="form"===e?"detail":"list"===e?"column":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){e!==this.isRequired&&(this.isRequiredValue=e,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),e.prototype.isPropertySerializable=function(e){return this.isSerializableFunc?this.isSerializableFunc(e):this.isSerializable},e.prototype.getDefaultValue=function(t){var n=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return e.getItemValuesDefaultValue&&D.isDescendantOf(this.className,"itemvalue")&&(n=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),n},Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return this.isDefaultValueByObj(void 0,e)},e.prototype.isDefaultValueByObj=function(e,t){if(this.isLocalizable)return null==t;var n=this.getDefaultValue(e);return void 0!==n?"object"!=typeof n?n===t:r.isTwoValueEquals(t,n,!1,!0,!1):!1===t&&("boolean"==this.type||"switch"==this.type)&&!this.defaultValueFunc||""===t||r.isValueEmpty(t)},e.prototype.getSerializableValue=function(e,t){if(this.onSerializeValue)return this.onSerializeValue(e);var n=this.getValue(e);return null==n||!t&&this.isDefaultValueByObj(e,n)?void 0:n},e.prototype.getValue=function(e){return this.onGetValue?(e=this.getOriginalObj(e),this.onGetValue(e)):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?(e=this.getOriginalObj(e),this.onSetValue(e,t,n)):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t,!0):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.validateValue=function(e){var t=this.choices;return!Array.isArray(t)||0===t.length||t.indexOf(e)>-1},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isEnable=function(e){return!this.readOnly&&(!e||!this.enableIf||this.enableIf(this.getOriginalObj(e)))},e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||!e||this.layout===e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(this.getOriginalObj(t)))},e.prototype.getOriginalObj=function(e){if(e&&e.getOriginalObj){var t=e.getOriginalObj();if(t&&D.findProperty(t.getType(),this.name))return t}return e},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),e.prototype.isAvailableInVersion=function(e){return!(!this.alternativeName&&!this.oldName)||this.isAvailableInVersionCore(e)},e.prototype.getSerializedName=function(e){return this.alternativeName?this.isAvailableInVersionCore(e)?this.name:this.alternativeName||this.oldName:this.name},e.prototype.getSerializedProperty=function(e,t){return!this.oldName||this.isAvailableInVersionCore(t)?this:e&&e.getType?D.findProperty(e.getType(),this.oldName):null},e.prototype.isAvailableInVersionCore=function(e){return!e||!this.version||r.compareVerions(this.version,e)<=0},Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,o=0;o<n.length;o++)this.mergeValue(t,n[o])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","locationInTable","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),C=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var o=e.properties;o[t]||(o[t]=[]),o[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var o=e.properties;if(o[t])for(var i=o[t],r=0;r<i.length;r++)if(i[r].name==n){o[t].splice(r,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],o=e.properties;t;){var i=o[t];if(i)for(var r=0;r<i.length;r++)n.push(i[r]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var o=e.properties;o[n]&&e.createPropertiesInObj(t,o[n]);var i=e.parentClasses[n];i&&e.createPropertiesCore(t,i)},e.createPropertiesInObj=function(t,n){for(var o=0;o<n.length;o++)e.createPropertyInObj(t,n[o])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name).defaultValue=n.getDefaultValue(t);var o={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,o);var i={get:function(){return t.getLocalizableStringText(n.name)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,i)}else{var r=n.isArray||"multiplevalues"===n.type;if("function"==typeof t.createNewArray&&(D.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,(function(e){e.locOwner=t,e.ownerPropertyName=n.name})),r=!0):r&&t.createNewArray(n.name),r)){var s=n.getDefaultValue(t);Array.isArray(s)&&t.setPropertyValue(n.name,s)}t.getPropertyValue&&t.setPropertyValue&&(i={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,void 0)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,i))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),P=function(){function e(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=null),this.name=e,this.creator=n,this.parentName=o,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),C.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var i=0;i<t.length;i++)this.createProperty(t[i],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var e=this.getAllProperties(),t=0;t<e.length;t++)e[t].isRequired&&this.requiredProperties.push(e[t]);return this.requiredProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var e=D.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var n=this.parentName?D.findClass(this.parentName):null;n&&n.getAllProperties().forEach((function(n){var o=t[n.name];o?(o.mergeWith(n),e.addPropCore(o)):e.addPropCore(n)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!D.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;C.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=D.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var o="string"==typeof t?t:t.name;if(o){var i=null,s=o.indexOf(e.typeSymbol);s>-1&&(i=o.substring(s+1),o=o.substring(0,s));var a=this.getIsPropertyNameRequired(o)||!!t.isRequired;o=this.getPropertyName(o);var l=new v(this,o,a);if(i&&(l.type=i),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),r.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),r.isValueEmpty(t.isSerializableFunc)||(l.isSerializableFunc=t.isSerializableFunc),r.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),r.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),void 0!==t.displayName&&(l.displayName=t.displayName),r.isValueEmpty(t.category)||(l.category=t.category),r.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),r.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),r.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),r.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),r.isValueEmpty(t.showMode)||(l.showMode=t.showMode),r.isValueEmpty(t.locationInTable)||(l.locationInTable=t.locationInTable),r.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),r.isValueEmpty(t.minValue)||(l.minValue=t.minValue),r.isValueEmpty(t.dataList)||(l.dataList=t.dataList),r.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),r.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),r.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),r.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),r.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.enableIf&&(l.enableIf=t.enableIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),!0===t.availableInMatrixColumn&&(l.availableInMatrixColumn=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onSerializeValue&&(l.onSerializeValue=t.onSerializeValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName,l.isArray=!0),!0===l.isArray&&(l.isArray=!0),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.oldName&&(l.oldName=t.oldName),t.layout&&(l.layout=t.layout),t.version&&(l.version=t.version),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,C.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){var n=Array.isArray(t)?t:[t];e.dependsOn=n;for(var o=0;o<n.length;o++)this.addDependsOnProperty(e,n[o])},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=D.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),w=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)&&this.isNeedUseObjWrapper(e,t)){var n=e.getOriginalObj(),o=D.findProperty(n.getType(),t);if(o)return this.getObjPropertyValueCore(n,o)}var i=D.findProperty(e.getType(),t);return i?this.getObjPropertyValueCore(e,i):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n,!0);else{if(Array.isArray(n)){for(var o=[],i=0;i<n.length;i++)o.push(n[i]);n=o}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isPropertySerializable(e))return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];var n=e.getLocalizableString(t.name);if(n)return n.isDefautlLocale?n.text:n.getValue(n.locale);if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.isNeedUseObjWrapper=function(e,t){if(!e.getDynamicProperties)return!0;var n=e.getDynamicProperties();if(!Array.isArray(n))return!1;for(var o=0;o<n.length;o++)if(n[o].name===t)return!0;return!1},e.prototype.addClass=function(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=null),e=e.toLowerCase();var i=new P(e,t,n,o);return this.classes[e]=i,o&&(o=o.toLowerCase(),this.childrenClasses[o]||(this.childrenClasses[o]=[]),this.childrenClasses[o].push(i)),i},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){var t=e&&e.getType?e.getType():void 0;if(!t)return[];for(var n=this.getProperties(t),o=this.getDynamicPropertiesByObj(e),i=o.length-1;i>=0;i--)this.findProperty(t,o[i].name)&&o.splice(i,1);return 0===o.length?n:[].concat(n).concat(o)},e.prototype.addDynamicPropertiesIntoObj=function(e,t,n){var o=this;n.forEach((function(n){o.addDynamicPropertyIntoObj(e,t,n.name,!1),n.serializationProperty&&o.addDynamicPropertyIntoObj(e,t,n.serializationProperty,!0),n.alternativeName&&o.addDynamicPropertyIntoObj(e,t,n.alternativeName,!1)}))},e.prototype.addDynamicPropertyIntoObj=function(e,t,n,o){var i={configurable:!0,get:function(){return t[n]}};o||(i.set=function(e){t[n]=e}),Object.defineProperty(e,n,i)},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType)return[];if(e.getDynamicProperties)return e.getDynamicProperties();if(!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();return this.getDynamicPropertiesByTypes(e.getType(),n)},e.prototype.getDynamicPropertiesByTypes=function(e,t,n){if(!t)return[];var o=t+"-"+e;if(this.dynamicPropsCache[o])return this.dynamicPropsCache[o];var i=this.getProperties(t);if(!i||0==i.length)return[];for(var r={},s=this.getProperties(e),a=0;a<s.length;a++)r[s[a].name]=s[a];var l=[];n||(n=[]);for(var u=0;u<i.length;u++){var c=i[u];n.indexOf(c.name)<0&&this.canAddDybamicProp(c,r[c.name])&&l.push(c)}return this.dynamicPropsCache[o]=l,l},e.prototype.canAddDybamicProp=function(e,t){if(!t)return!0;if(e===t)return!1;for(var n=e.classInfo;n&&n.parentName;){if((e=this.findProperty(n.parentName,e.name))&&e===t)return!0;n=e?e.classInfo:void 0}return!1},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var o=this.findClass(e);if(n.classInfo===o)return n;var i=new v(o,n.name,n.isRequired);return i.mergeWith(n),i.isArray=n.isArray,o.properties.push(i),o.resetAllProperties(),i},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,o=this.findClass(e);if(!o)return n;for(var i=0;i<t.length;i++){var r=o.findProperty(t[i]);r&&n.push(r)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),o=0;o<n.length;o++)for(var i=this.findClass(n[o]),r=0;r<i.properties.length;r++)if(i.properties[r].name==e){t.push(i.properties[r]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var o=n.parentName;o;){if(!(n=this.findClass(o)))return null;if(o=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var o=t(n),i=e,r=o.getTemplate?o.getTemplate():o.getType();return o.getType=function(){return i},o.getTemplate=function(){return r},C.createProperties(o),o},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){var t=this.findClass(e);if(!t)return[];for(var n=t.getRequiredProperties(),o=[],i=0;i<n.length;i++)o.push(n[i].name);return o},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),o=0;o<t.length;o++)this.addCustomPropertyCore(n,t[o])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&(this.clearDynamicPropsCache(e),e.resetAllProperties()),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var o=n.find(t);o&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,o),n.resetAllProperties(),C.removeProperty(n.name,t))},e.prototype.clearDynamicPropsCache=function(e){this.dynamicPropsCache={}},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var o=this.childrenClasses[e];if(o)for(var i=0;i<o.length;i++)t&&!o[i].creator||n.push(o[i]),this.fillChildrenClasses(o[i].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!